diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 9e53fe565fe0..5747738f77c6 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.25.0 pom import @@ -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-admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.34.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.38.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/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java new file mode 100644 index 000000000000..d75b918b3cda --- /dev/null +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -0,0 +1,1952 @@ +/* + * 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. + */ + +package com.google.analytics.admin.v1alpha; + +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAdSenseLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListChannelGroupsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListEventCreateRulesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListRollupPropertySourceLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; + +import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AnalyticsAdminServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getAccount to 30 seconds: + * + *

{@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
+ * AnalyticsAdminServiceSettings.Builder analyticsAdminServiceSettingsBuilder =
+ *     AnalyticsAdminServiceSettings.newBuilder();
+ * analyticsAdminServiceSettingsBuilder
+ *     .getAccountSettings()
+ *     .setRetrySettings(
+ *         analyticsAdminServiceSettingsBuilder
+ *             .getAccountSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
+ *     analyticsAdminServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AnalyticsAdminServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getAccount. */ + public UnaryCallSettings getAccountSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccountSettings(); + } + + /** Returns the object with the settings used for calls to listAccounts. */ + public PagedCallSettings + listAccountsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountsSettings(); + } + + /** Returns the object with the settings used for calls to deleteAccount. */ + public UnaryCallSettings deleteAccountSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAccountSettings(); + } + + /** Returns the object with the settings used for calls to updateAccount. */ + public UnaryCallSettings updateAccountSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAccountSettings(); + } + + /** Returns the object with the settings used for calls to provisionAccountTicket. */ + public UnaryCallSettings + provisionAccountTicketSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).provisionAccountTicketSettings(); + } + + /** Returns the object with the settings used for calls to listAccountSummaries. */ + public PagedCallSettings< + ListAccountSummariesRequest, + ListAccountSummariesResponse, + ListAccountSummariesPagedResponse> + listAccountSummariesSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountSummariesSettings(); + } + + /** Returns the object with the settings used for calls to getProperty. */ + public UnaryCallSettings getPropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getPropertySettings(); + } + + /** Returns the object with the settings used for calls to listProperties. */ + public PagedCallSettings< + ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> + listPropertiesSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listPropertiesSettings(); + } + + /** Returns the object with the settings used for calls to createProperty. */ + public UnaryCallSettings createPropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createPropertySettings(); + } + + /** Returns the object with the settings used for calls to deleteProperty. */ + public UnaryCallSettings deletePropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deletePropertySettings(); + } + + /** Returns the object with the settings used for calls to updateProperty. */ + public UnaryCallSettings updatePropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updatePropertySettings(); + } + + /** Returns the object with the settings used for calls to createFirebaseLink. */ + public UnaryCallSettings createFirebaseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteFirebaseLink. */ + public UnaryCallSettings deleteFirebaseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteFirebaseLinkSettings(); + } + + /** Returns the object with the settings used for calls to listFirebaseLinks. */ + public PagedCallSettings< + ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> + listFirebaseLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listFirebaseLinksSettings(); + } + + /** Returns the object with the settings used for calls to getGlobalSiteTag. */ + public UnaryCallSettings getGlobalSiteTagSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getGlobalSiteTagSettings(); + } + + /** Returns the object with the settings used for calls to createGoogleAdsLink. */ + public UnaryCallSettings + createGoogleAdsLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createGoogleAdsLinkSettings(); + } + + /** Returns the object with the settings used for calls to updateGoogleAdsLink. */ + public UnaryCallSettings + updateGoogleAdsLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateGoogleAdsLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteGoogleAdsLink. */ + public UnaryCallSettings deleteGoogleAdsLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteGoogleAdsLinkSettings(); + } + + /** Returns the object with the settings used for calls to listGoogleAdsLinks. */ + public PagedCallSettings< + ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> + listGoogleAdsLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listGoogleAdsLinksSettings(); + } + + /** Returns the object with the settings used for calls to getDataSharingSettings. */ + public UnaryCallSettings + getDataSharingSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings(); + } + + /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings + getMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listMeasurementProtocolSecretsSettings(); + } + + /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings + createMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings + deleteMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings + updateMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .acknowledgeUserDataCollectionSettings(); + } + + /** Returns the object with the settings used for calls to getSKAdNetworkConversionValueSchema. */ + public UnaryCallSettings< + GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + getSKAdNetworkConversionValueSchemaSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the object with the settings used for calls to createSKAdNetworkConversionValueSchema. + */ + public UnaryCallSettings< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the object with the settings used for calls to deleteSKAdNetworkConversionValueSchema. + */ + public UnaryCallSettings + deleteSKAdNetworkConversionValueSchemaSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the object with the settings used for calls to updateSKAdNetworkConversionValueSchema. + */ + public UnaryCallSettings< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the object with the settings used for calls to listSKAdNetworkConversionValueSchemas. + */ + public PagedCallSettings< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse, + ListSKAdNetworkConversionValueSchemasPagedResponse> + listSKAdNetworkConversionValueSchemasSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listSKAdNetworkConversionValueSchemasSettings(); + } + + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .searchChangeHistoryEventsSettings(); + } + + /** Returns the object with the settings used for calls to getGoogleSignalsSettings. */ + public UnaryCallSettings + getGoogleSignalsSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getGoogleSignalsSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateGoogleSignalsSettings. */ + public UnaryCallSettings + updateGoogleSignalsSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateGoogleSignalsSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createConversionEvent. */ + public UnaryCallSettings + createConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to updateConversionEvent. */ + public UnaryCallSettings + updateConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to getConversionEvent. */ + public UnaryCallSettings + getConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings deleteConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to listConversionEvents. */ + public PagedCallSettings< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings(); + } + + /** Returns the object with the settings used for calls to getDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings + getDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDisplayVideo360AdvertiserLinkSettings(); + } + + /** Returns the object with the settings used for calls to listDisplayVideo360AdvertiserLinks. */ + public PagedCallSettings< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listDisplayVideo360AdvertiserLinksSettings(); + } + + /** Returns the object with the settings used for calls to createDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createDisplayVideo360AdvertiserLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteDisplayVideo360AdvertiserLinkSettings(); + } + + /** Returns the object with the settings used for calls to updateDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the object with the settings used for calls to + * getDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * listDisplayVideo360AdvertiserLinkProposals. + */ + public PagedCallSettings< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listDisplayVideo360AdvertiserLinkProposalsSettings(); + } + + /** + * Returns the object with the settings used for calls to + * createDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * deleteDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * approveDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .approveDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * cancelDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .cancelDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** Returns the object with the settings used for calls to createCustomDimension. */ + public UnaryCallSettings + createCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings + updateCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to listCustomDimensions. */ + public PagedCallSettings< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomDimensionsSettings(); + } + + /** Returns the object with the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings archiveCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to getCustomDimension. */ + public UnaryCallSettings + getCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to createCustomMetric. */ + public UnaryCallSettings createCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings updateCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to listCustomMetrics. */ + public PagedCallSettings< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomMetricsSettings(); + } + + /** Returns the object with the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings archiveCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to getCustomMetric. */ + public UnaryCallSettings getCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings + getDataRetentionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDataRetentionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings + updateDataRetentionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateDataRetentionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createDataStream. */ + public UnaryCallSettings createDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to deleteDataStream. */ + public UnaryCallSettings deleteDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to updateDataStream. */ + public UnaryCallSettings updateDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to listDataStreams. */ + public PagedCallSettings< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listDataStreamsSettings(); + } + + /** Returns the object with the settings used for calls to getDataStream. */ + public UnaryCallSettings getDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to getAudience. */ + public UnaryCallSettings getAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAudienceSettings(); + } + + /** Returns the object with the settings used for calls to listAudiences. */ + public PagedCallSettings + listAudiencesSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAudiencesSettings(); + } + + /** Returns the object with the settings used for calls to createAudience. */ + public UnaryCallSettings createAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAudienceSettings(); + } + + /** Returns the object with the settings used for calls to updateAudience. */ + public UnaryCallSettings updateAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAudienceSettings(); + } + + /** Returns the object with the settings used for calls to archiveAudience. */ + public UnaryCallSettings archiveAudienceSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveAudienceSettings(); + } + + /** Returns the object with the settings used for calls to getSearchAds360Link. */ + public UnaryCallSettings + getSearchAds360LinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getSearchAds360LinkSettings(); + } + + /** Returns the object with the settings used for calls to listSearchAds360Links. */ + public PagedCallSettings< + ListSearchAds360LinksRequest, + ListSearchAds360LinksResponse, + ListSearchAds360LinksPagedResponse> + listSearchAds360LinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listSearchAds360LinksSettings(); + } + + /** Returns the object with the settings used for calls to createSearchAds360Link. */ + public UnaryCallSettings + createSearchAds360LinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createSearchAds360LinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteSearchAds360Link. */ + public UnaryCallSettings deleteSearchAds360LinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteSearchAds360LinkSettings(); + } + + /** Returns the object with the settings used for calls to updateSearchAds360Link. */ + public UnaryCallSettings + updateSearchAds360LinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateSearchAds360LinkSettings(); + } + + /** Returns the object with the settings used for calls to getAttributionSettings. */ + public UnaryCallSettings + getAttributionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAttributionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateAttributionSettings. */ + public UnaryCallSettings + updateAttributionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateAttributionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to runAccessReport. */ + public UnaryCallSettings + runAccessReportSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).runAccessReportSettings(); + } + + /** Returns the object with the settings used for calls to createAccessBinding. */ + public UnaryCallSettings + createAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to getAccessBinding. */ + public UnaryCallSettings getAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to updateAccessBinding. */ + public UnaryCallSettings + updateAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to deleteAccessBinding. */ + public UnaryCallSettings deleteAccessBindingSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAccessBindingSettings(); + } + + /** Returns the object with the settings used for calls to listAccessBindings. */ + public PagedCallSettings< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchCreateAccessBindings. */ + public UnaryCallSettings + batchCreateAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .batchCreateAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchGetAccessBindings. */ + public UnaryCallSettings + batchGetAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchGetAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchUpdateAccessBindings. */ + public UnaryCallSettings + batchUpdateAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .batchUpdateAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to batchDeleteAccessBindings. */ + public UnaryCallSettings + batchDeleteAccessBindingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .batchDeleteAccessBindingsSettings(); + } + + /** Returns the object with the settings used for calls to getExpandedDataSet. */ + public UnaryCallSettings + getExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getExpandedDataSetSettings(); + } + + /** Returns the object with the settings used for calls to listExpandedDataSets. */ + public PagedCallSettings< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listExpandedDataSetsSettings(); + } + + /** Returns the object with the settings used for calls to createExpandedDataSet. */ + public UnaryCallSettings + createExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createExpandedDataSetSettings(); + } + + /** Returns the object with the settings used for calls to updateExpandedDataSet. */ + public UnaryCallSettings + updateExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateExpandedDataSetSettings(); + } + + /** Returns the object with the settings used for calls to deleteExpandedDataSet. */ + public UnaryCallSettings deleteExpandedDataSetSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteExpandedDataSetSettings(); + } + + /** Returns the object with the settings used for calls to getChannelGroup. */ + public UnaryCallSettings getChannelGroupSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getChannelGroupSettings(); + } + + /** Returns the object with the settings used for calls to listChannelGroups. */ + public PagedCallSettings< + ListChannelGroupsRequest, ListChannelGroupsResponse, ListChannelGroupsPagedResponse> + listChannelGroupsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listChannelGroupsSettings(); + } + + /** Returns the object with the settings used for calls to createChannelGroup. */ + public UnaryCallSettings createChannelGroupSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createChannelGroupSettings(); + } + + /** Returns the object with the settings used for calls to updateChannelGroup. */ + public UnaryCallSettings updateChannelGroupSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateChannelGroupSettings(); + } + + /** Returns the object with the settings used for calls to deleteChannelGroup. */ + public UnaryCallSettings deleteChannelGroupSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteChannelGroupSettings(); + } + + /** Returns the object with the settings used for calls to setAutomatedGa4ConfigurationOptOut. */ + public UnaryCallSettings< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .setAutomatedGa4ConfigurationOptOutSettings(); + } + + /** + * Returns the object with the settings used for calls to fetchAutomatedGa4ConfigurationOptOut. + */ + public UnaryCallSettings< + FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .fetchAutomatedGa4ConfigurationOptOutSettings(); + } + + /** Returns the object with the settings used for calls to getBigQueryLink. */ + public UnaryCallSettings getBigQueryLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getBigQueryLinkSettings(); + } + + /** Returns the object with the settings used for calls to listBigQueryLinks. */ + public PagedCallSettings< + ListBigQueryLinksRequest, ListBigQueryLinksResponse, ListBigQueryLinksPagedResponse> + listBigQueryLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listBigQueryLinksSettings(); + } + + /** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */ + public UnaryCallSettings + getEnhancedMeasurementSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getEnhancedMeasurementSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */ + public UnaryCallSettings + updateEnhancedMeasurementSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateEnhancedMeasurementSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createConnectedSiteTag. */ + public UnaryCallSettings + createConnectedSiteTagSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConnectedSiteTagSettings(); + } + + /** Returns the object with the settings used for calls to deleteConnectedSiteTag. */ + public UnaryCallSettings deleteConnectedSiteTagSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConnectedSiteTagSettings(); + } + + /** Returns the object with the settings used for calls to listConnectedSiteTags. */ + public UnaryCallSettings + listConnectedSiteTagsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConnectedSiteTagsSettings(); + } + + /** Returns the object with the settings used for calls to fetchConnectedGa4Property. */ + public UnaryCallSettings + fetchConnectedGa4PropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .fetchConnectedGa4PropertySettings(); + } + + /** Returns the object with the settings used for calls to getAdSenseLink. */ + public UnaryCallSettings getAdSenseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAdSenseLinkSettings(); + } + + /** Returns the object with the settings used for calls to createAdSenseLink. */ + public UnaryCallSettings createAdSenseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAdSenseLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteAdSenseLink. */ + public UnaryCallSettings deleteAdSenseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAdSenseLinkSettings(); + } + + /** Returns the object with the settings used for calls to listAdSenseLinks. */ + public PagedCallSettings< + ListAdSenseLinksRequest, ListAdSenseLinksResponse, ListAdSenseLinksPagedResponse> + listAdSenseLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAdSenseLinksSettings(); + } + + /** Returns the object with the settings used for calls to getEventCreateRule. */ + public UnaryCallSettings + getEventCreateRuleSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getEventCreateRuleSettings(); + } + + /** Returns the object with the settings used for calls to listEventCreateRules. */ + public PagedCallSettings< + ListEventCreateRulesRequest, + ListEventCreateRulesResponse, + ListEventCreateRulesPagedResponse> + listEventCreateRulesSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listEventCreateRulesSettings(); + } + + /** Returns the object with the settings used for calls to createEventCreateRule. */ + public UnaryCallSettings + createEventCreateRuleSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createEventCreateRuleSettings(); + } + + /** Returns the object with the settings used for calls to updateEventCreateRule. */ + public UnaryCallSettings + updateEventCreateRuleSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateEventCreateRuleSettings(); + } + + /** Returns the object with the settings used for calls to deleteEventCreateRule. */ + public UnaryCallSettings deleteEventCreateRuleSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteEventCreateRuleSettings(); + } + + /** Returns the object with the settings used for calls to updateDataRedactionSettings. */ + public UnaryCallSettings + updateDataRedactionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateDataRedactionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to getDataRedactionSettings. */ + public UnaryCallSettings + getDataRedactionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDataRedactionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createRollupProperty. */ + public UnaryCallSettings + createRollupPropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createRollupPropertySettings(); + } + + /** Returns the object with the settings used for calls to getRollupPropertySourceLink. */ + public UnaryCallSettings + getRollupPropertySourceLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getRollupPropertySourceLinkSettings(); + } + + /** Returns the object with the settings used for calls to listRollupPropertySourceLinks. */ + public PagedCallSettings< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listRollupPropertySourceLinksSettings(); + } + + /** Returns the object with the settings used for calls to createRollupPropertySourceLink. */ + public UnaryCallSettings + createRollupPropertySourceLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createRollupPropertySourceLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteRollupPropertySourceLink. */ + public UnaryCallSettings + deleteRollupPropertySourceLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteRollupPropertySourceLinkSettings(); + } + + /** Returns the object with the settings used for calls to createSubproperty. */ + public UnaryCallSettings + createSubpropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createSubpropertySettings(); + } + + /** Returns the object with the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings + deleteSubpropertyEventFilterSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteSubpropertyEventFilterSettings(); + } + + /** Returns the object with the settings used for calls to createSubpropertyEventFilter. */ + public UnaryCallSettings + createSubpropertyEventFilterSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createSubpropertyEventFilterSettings(); + } + + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) + throws IOException { + return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AnalyticsAdminServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AnalyticsAdminServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AnalyticsAdminServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AnalyticsAdminServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AnalyticsAdminServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AnalyticsAdminServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AnalyticsAdminServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AnalyticsAdminServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AnalyticsAdminServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AnalyticsAdminServiceStubSettings.newHttpJsonBuilder()); + } + + public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getAccount. */ + public UnaryCallSettings.Builder getAccountSettings() { + return getStubSettingsBuilder().getAccountSettings(); + } + + /** Returns the builder for the settings used for calls to listAccounts. */ + public PagedCallSettings.Builder< + ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> + listAccountsSettings() { + return getStubSettingsBuilder().listAccountsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccount. */ + public UnaryCallSettings.Builder deleteAccountSettings() { + return getStubSettingsBuilder().deleteAccountSettings(); + } + + /** Returns the builder for the settings used for calls to updateAccount. */ + public UnaryCallSettings.Builder updateAccountSettings() { + return getStubSettingsBuilder().updateAccountSettings(); + } + + /** Returns the builder for the settings used for calls to provisionAccountTicket. */ + public UnaryCallSettings.Builder + provisionAccountTicketSettings() { + return getStubSettingsBuilder().provisionAccountTicketSettings(); + } + + /** Returns the builder for the settings used for calls to listAccountSummaries. */ + public PagedCallSettings.Builder< + ListAccountSummariesRequest, + ListAccountSummariesResponse, + ListAccountSummariesPagedResponse> + listAccountSummariesSettings() { + return getStubSettingsBuilder().listAccountSummariesSettings(); + } + + /** Returns the builder for the settings used for calls to getProperty. */ + public UnaryCallSettings.Builder getPropertySettings() { + return getStubSettingsBuilder().getPropertySettings(); + } + + /** Returns the builder for the settings used for calls to listProperties. */ + public PagedCallSettings.Builder< + ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> + listPropertiesSettings() { + return getStubSettingsBuilder().listPropertiesSettings(); + } + + /** Returns the builder for the settings used for calls to createProperty. */ + public UnaryCallSettings.Builder createPropertySettings() { + return getStubSettingsBuilder().createPropertySettings(); + } + + /** Returns the builder for the settings used for calls to deleteProperty. */ + public UnaryCallSettings.Builder deletePropertySettings() { + return getStubSettingsBuilder().deletePropertySettings(); + } + + /** Returns the builder for the settings used for calls to updateProperty. */ + public UnaryCallSettings.Builder updatePropertySettings() { + return getStubSettingsBuilder().updatePropertySettings(); + } + + /** Returns the builder for the settings used for calls to createFirebaseLink. */ + public UnaryCallSettings.Builder + createFirebaseLinkSettings() { + return getStubSettingsBuilder().createFirebaseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ + public UnaryCallSettings.Builder + deleteFirebaseLinkSettings() { + return getStubSettingsBuilder().deleteFirebaseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listFirebaseLinks. */ + public PagedCallSettings.Builder< + ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> + listFirebaseLinksSettings() { + return getStubSettingsBuilder().listFirebaseLinksSettings(); + } + + /** Returns the builder for the settings used for calls to getGlobalSiteTag. */ + public UnaryCallSettings.Builder + getGlobalSiteTagSettings() { + return getStubSettingsBuilder().getGlobalSiteTagSettings(); + } + + /** Returns the builder for the settings used for calls to createGoogleAdsLink. */ + public UnaryCallSettings.Builder + createGoogleAdsLinkSettings() { + return getStubSettingsBuilder().createGoogleAdsLinkSettings(); + } + + /** Returns the builder for the settings used for calls to updateGoogleAdsLink. */ + public UnaryCallSettings.Builder + updateGoogleAdsLinkSettings() { + return getStubSettingsBuilder().updateGoogleAdsLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteGoogleAdsLink. */ + public UnaryCallSettings.Builder + deleteGoogleAdsLinkSettings() { + return getStubSettingsBuilder().deleteGoogleAdsLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listGoogleAdsLinks. */ + public PagedCallSettings.Builder< + ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> + listGoogleAdsLinksSettings() { + return getStubSettingsBuilder().listGoogleAdsLinksSettings(); + } + + /** Returns the builder for the settings used for calls to getDataSharingSettings. */ + public UnaryCallSettings.Builder + getDataSharingSettingsSettings() { + return getStubSettingsBuilder().getDataSharingSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + getMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().getMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings.Builder< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return getStubSettingsBuilder().listMeasurementProtocolSecretsSettings(); + } + + /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().createMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + deleteMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().deleteMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings.Builder< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return getStubSettingsBuilder().acknowledgeUserDataCollectionSettings(); + } + + /** + * Returns the builder for the settings used for calls to getSKAdNetworkConversionValueSchema. + */ + public UnaryCallSettings.Builder< + GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + getSKAdNetworkConversionValueSchemaSettings() { + return getStubSettingsBuilder().getSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * createSKAdNetworkConversionValueSchema. + */ + public UnaryCallSettings.Builder< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaSettings() { + return getStubSettingsBuilder().createSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * deleteSKAdNetworkConversionValueSchema. + */ + public UnaryCallSettings.Builder + deleteSKAdNetworkConversionValueSchemaSettings() { + return getStubSettingsBuilder().deleteSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * updateSKAdNetworkConversionValueSchema. + */ + public UnaryCallSettings.Builder< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaSettings() { + return getStubSettingsBuilder().updateSKAdNetworkConversionValueSchemaSettings(); + } + + /** + * Returns the builder for the settings used for calls to listSKAdNetworkConversionValueSchemas. + */ + public PagedCallSettings.Builder< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse, + ListSKAdNetworkConversionValueSchemasPagedResponse> + listSKAdNetworkConversionValueSchemasSettings() { + return getStubSettingsBuilder().listSKAdNetworkConversionValueSchemasSettings(); + } + + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); + } + + /** Returns the builder for the settings used for calls to getGoogleSignalsSettings. */ + public UnaryCallSettings.Builder + getGoogleSignalsSettingsSettings() { + return getStubSettingsBuilder().getGoogleSignalsSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateGoogleSignalsSettings. */ + public UnaryCallSettings.Builder + updateGoogleSignalsSettingsSettings() { + return getStubSettingsBuilder().updateGoogleSignalsSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createConversionEvent. */ + public UnaryCallSettings.Builder + createConversionEventSettings() { + return getStubSettingsBuilder().createConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to updateConversionEvent. */ + public UnaryCallSettings.Builder + updateConversionEventSettings() { + return getStubSettingsBuilder().updateConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to getConversionEvent. */ + public UnaryCallSettings.Builder + getConversionEventSettings() { + return getStubSettingsBuilder().getConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings.Builder + deleteConversionEventSettings() { + return getStubSettingsBuilder().deleteConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to listConversionEvents. */ + public PagedCallSettings.Builder< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return getStubSettingsBuilder().listConversionEventsSettings(); + } + + /** Returns the builder for the settings used for calls to getDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to listDisplayVideo360AdvertiserLinks. + */ + public PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings() { + return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinksSettings(); + } + + /** + * Returns the builder for the settings used for calls to createDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to deleteDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder + deleteDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to updateDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().updateDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * getDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * listDisplayVideo360AdvertiserLinkProposals. + */ + public PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings() { + return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinkProposalsSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * createDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * deleteDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder + deleteDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * approveDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().approveDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * cancelDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + CancelDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().cancelDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomDimension. */ + public UnaryCallSettings.Builder + createCustomDimensionSettings() { + return getStubSettingsBuilder().createCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings.Builder + updateCustomDimensionSettings() { + return getStubSettingsBuilder().updateCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to listCustomDimensions. */ + public PagedCallSettings.Builder< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return getStubSettingsBuilder().listCustomDimensionsSettings(); + } + + /** Returns the builder for the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings.Builder + archiveCustomDimensionSettings() { + return getStubSettingsBuilder().archiveCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to getCustomDimension. */ + public UnaryCallSettings.Builder + getCustomDimensionSettings() { + return getStubSettingsBuilder().getCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomMetric. */ + public UnaryCallSettings.Builder + createCustomMetricSettings() { + return getStubSettingsBuilder().createCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings.Builder + updateCustomMetricSettings() { + return getStubSettingsBuilder().updateCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to listCustomMetrics. */ + public PagedCallSettings.Builder< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return getStubSettingsBuilder().listCustomMetricsSettings(); + } + + /** Returns the builder for the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings.Builder + archiveCustomMetricSettings() { + return getStubSettingsBuilder().archiveCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to getCustomMetric. */ + public UnaryCallSettings.Builder + getCustomMetricSettings() { + return getStubSettingsBuilder().getCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings.Builder + getDataRetentionSettingsSettings() { + return getStubSettingsBuilder().getDataRetentionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings.Builder + updateDataRetentionSettingsSettings() { + return getStubSettingsBuilder().updateDataRetentionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createDataStream. */ + public UnaryCallSettings.Builder + createDataStreamSettings() { + return getStubSettingsBuilder().createDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataStream. */ + public UnaryCallSettings.Builder deleteDataStreamSettings() { + return getStubSettingsBuilder().deleteDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataStream. */ + public UnaryCallSettings.Builder + updateDataStreamSettings() { + return getStubSettingsBuilder().updateDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to listDataStreams. */ + public PagedCallSettings.Builder< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return getStubSettingsBuilder().listDataStreamsSettings(); + } + + /** Returns the builder for the settings used for calls to getDataStream. */ + public UnaryCallSettings.Builder getDataStreamSettings() { + return getStubSettingsBuilder().getDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to getAudience. */ + public UnaryCallSettings.Builder getAudienceSettings() { + return getStubSettingsBuilder().getAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to listAudiences. */ + public PagedCallSettings.Builder< + ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> + listAudiencesSettings() { + return getStubSettingsBuilder().listAudiencesSettings(); + } + + /** Returns the builder for the settings used for calls to createAudience. */ + public UnaryCallSettings.Builder createAudienceSettings() { + return getStubSettingsBuilder().createAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to updateAudience. */ + public UnaryCallSettings.Builder updateAudienceSettings() { + return getStubSettingsBuilder().updateAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to archiveAudience. */ + public UnaryCallSettings.Builder archiveAudienceSettings() { + return getStubSettingsBuilder().archiveAudienceSettings(); + } + + /** Returns the builder for the settings used for calls to getSearchAds360Link. */ + public UnaryCallSettings.Builder + getSearchAds360LinkSettings() { + return getStubSettingsBuilder().getSearchAds360LinkSettings(); + } + + /** Returns the builder for the settings used for calls to listSearchAds360Links. */ + public PagedCallSettings.Builder< + ListSearchAds360LinksRequest, + ListSearchAds360LinksResponse, + ListSearchAds360LinksPagedResponse> + listSearchAds360LinksSettings() { + return getStubSettingsBuilder().listSearchAds360LinksSettings(); + } + + /** Returns the builder for the settings used for calls to createSearchAds360Link. */ + public UnaryCallSettings.Builder + createSearchAds360LinkSettings() { + return getStubSettingsBuilder().createSearchAds360LinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteSearchAds360Link. */ + public UnaryCallSettings.Builder + deleteSearchAds360LinkSettings() { + return getStubSettingsBuilder().deleteSearchAds360LinkSettings(); + } + + /** Returns the builder for the settings used for calls to updateSearchAds360Link. */ + public UnaryCallSettings.Builder + updateSearchAds360LinkSettings() { + return getStubSettingsBuilder().updateSearchAds360LinkSettings(); + } + + /** Returns the builder for the settings used for calls to getAttributionSettings. */ + public UnaryCallSettings.Builder + getAttributionSettingsSettings() { + return getStubSettingsBuilder().getAttributionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateAttributionSettings. */ + public UnaryCallSettings.Builder + updateAttributionSettingsSettings() { + return getStubSettingsBuilder().updateAttributionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to runAccessReport. */ + public UnaryCallSettings.Builder + runAccessReportSettings() { + return getStubSettingsBuilder().runAccessReportSettings(); + } + + /** Returns the builder for the settings used for calls to createAccessBinding. */ + public UnaryCallSettings.Builder + createAccessBindingSettings() { + return getStubSettingsBuilder().createAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to getAccessBinding. */ + public UnaryCallSettings.Builder + getAccessBindingSettings() { + return getStubSettingsBuilder().getAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to updateAccessBinding. */ + public UnaryCallSettings.Builder + updateAccessBindingSettings() { + return getStubSettingsBuilder().updateAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccessBinding. */ + public UnaryCallSettings.Builder + deleteAccessBindingSettings() { + return getStubSettingsBuilder().deleteAccessBindingSettings(); + } + + /** Returns the builder for the settings used for calls to listAccessBindings. */ + public PagedCallSettings.Builder< + ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> + listAccessBindingsSettings() { + return getStubSettingsBuilder().listAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchCreateAccessBindings. */ + public UnaryCallSettings.Builder< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsSettings() { + return getStubSettingsBuilder().batchCreateAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchGetAccessBindings. */ + public UnaryCallSettings.Builder + batchGetAccessBindingsSettings() { + return getStubSettingsBuilder().batchGetAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchUpdateAccessBindings. */ + public UnaryCallSettings.Builder< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsSettings() { + return getStubSettingsBuilder().batchUpdateAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to batchDeleteAccessBindings. */ + public UnaryCallSettings.Builder + batchDeleteAccessBindingsSettings() { + return getStubSettingsBuilder().batchDeleteAccessBindingsSettings(); + } + + /** Returns the builder for the settings used for calls to getExpandedDataSet. */ + public UnaryCallSettings.Builder + getExpandedDataSetSettings() { + return getStubSettingsBuilder().getExpandedDataSetSettings(); + } + + /** Returns the builder for the settings used for calls to listExpandedDataSets. */ + public PagedCallSettings.Builder< + ListExpandedDataSetsRequest, + ListExpandedDataSetsResponse, + ListExpandedDataSetsPagedResponse> + listExpandedDataSetsSettings() { + return getStubSettingsBuilder().listExpandedDataSetsSettings(); + } + + /** Returns the builder for the settings used for calls to createExpandedDataSet. */ + public UnaryCallSettings.Builder + createExpandedDataSetSettings() { + return getStubSettingsBuilder().createExpandedDataSetSettings(); + } + + /** Returns the builder for the settings used for calls to updateExpandedDataSet. */ + public UnaryCallSettings.Builder + updateExpandedDataSetSettings() { + return getStubSettingsBuilder().updateExpandedDataSetSettings(); + } + + /** Returns the builder for the settings used for calls to deleteExpandedDataSet. */ + public UnaryCallSettings.Builder + deleteExpandedDataSetSettings() { + return getStubSettingsBuilder().deleteExpandedDataSetSettings(); + } + + /** Returns the builder for the settings used for calls to getChannelGroup. */ + public UnaryCallSettings.Builder + getChannelGroupSettings() { + return getStubSettingsBuilder().getChannelGroupSettings(); + } + + /** Returns the builder for the settings used for calls to listChannelGroups. */ + public PagedCallSettings.Builder< + ListChannelGroupsRequest, ListChannelGroupsResponse, ListChannelGroupsPagedResponse> + listChannelGroupsSettings() { + return getStubSettingsBuilder().listChannelGroupsSettings(); + } + + /** Returns the builder for the settings used for calls to createChannelGroup. */ + public UnaryCallSettings.Builder + createChannelGroupSettings() { + return getStubSettingsBuilder().createChannelGroupSettings(); + } + + /** Returns the builder for the settings used for calls to updateChannelGroup. */ + public UnaryCallSettings.Builder + updateChannelGroupSettings() { + return getStubSettingsBuilder().updateChannelGroupSettings(); + } + + /** Returns the builder for the settings used for calls to deleteChannelGroup. */ + public UnaryCallSettings.Builder + deleteChannelGroupSettings() { + return getStubSettingsBuilder().deleteChannelGroupSettings(); + } + + /** + * Returns the builder for the settings used for calls to setAutomatedGa4ConfigurationOptOut. + */ + public UnaryCallSettings.Builder< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutSettings() { + return getStubSettingsBuilder().setAutomatedGa4ConfigurationOptOutSettings(); + } + + /** + * Returns the builder for the settings used for calls to fetchAutomatedGa4ConfigurationOptOut. + */ + public UnaryCallSettings.Builder< + FetchAutomatedGa4ConfigurationOptOutRequest, + FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutSettings() { + return getStubSettingsBuilder().fetchAutomatedGa4ConfigurationOptOutSettings(); + } + + /** Returns the builder for the settings used for calls to getBigQueryLink. */ + public UnaryCallSettings.Builder + getBigQueryLinkSettings() { + return getStubSettingsBuilder().getBigQueryLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listBigQueryLinks. */ + public PagedCallSettings.Builder< + ListBigQueryLinksRequest, ListBigQueryLinksResponse, ListBigQueryLinksPagedResponse> + listBigQueryLinksSettings() { + return getStubSettingsBuilder().listBigQueryLinksSettings(); + } + + /** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */ + public UnaryCallSettings.Builder< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsSettings() { + return getStubSettingsBuilder().getEnhancedMeasurementSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */ + public UnaryCallSettings.Builder< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsSettings() { + return getStubSettingsBuilder().updateEnhancedMeasurementSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createConnectedSiteTag. */ + public UnaryCallSettings.Builder + createConnectedSiteTagSettings() { + return getStubSettingsBuilder().createConnectedSiteTagSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConnectedSiteTag. */ + public UnaryCallSettings.Builder + deleteConnectedSiteTagSettings() { + return getStubSettingsBuilder().deleteConnectedSiteTagSettings(); + } + + /** Returns the builder for the settings used for calls to listConnectedSiteTags. */ + public UnaryCallSettings.Builder + listConnectedSiteTagsSettings() { + return getStubSettingsBuilder().listConnectedSiteTagsSettings(); + } + + /** Returns the builder for the settings used for calls to fetchConnectedGa4Property. */ + public UnaryCallSettings.Builder< + FetchConnectedGa4PropertyRequest, FetchConnectedGa4PropertyResponse> + fetchConnectedGa4PropertySettings() { + return getStubSettingsBuilder().fetchConnectedGa4PropertySettings(); + } + + /** Returns the builder for the settings used for calls to getAdSenseLink. */ + public UnaryCallSettings.Builder getAdSenseLinkSettings() { + return getStubSettingsBuilder().getAdSenseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to createAdSenseLink. */ + public UnaryCallSettings.Builder + createAdSenseLinkSettings() { + return getStubSettingsBuilder().createAdSenseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAdSenseLink. */ + public UnaryCallSettings.Builder deleteAdSenseLinkSettings() { + return getStubSettingsBuilder().deleteAdSenseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listAdSenseLinks. */ + public PagedCallSettings.Builder< + ListAdSenseLinksRequest, ListAdSenseLinksResponse, ListAdSenseLinksPagedResponse> + listAdSenseLinksSettings() { + return getStubSettingsBuilder().listAdSenseLinksSettings(); + } + + /** Returns the builder for the settings used for calls to getEventCreateRule. */ + public UnaryCallSettings.Builder + getEventCreateRuleSettings() { + return getStubSettingsBuilder().getEventCreateRuleSettings(); + } + + /** Returns the builder for the settings used for calls to listEventCreateRules. */ + public PagedCallSettings.Builder< + ListEventCreateRulesRequest, + ListEventCreateRulesResponse, + ListEventCreateRulesPagedResponse> + listEventCreateRulesSettings() { + return getStubSettingsBuilder().listEventCreateRulesSettings(); + } + + /** Returns the builder for the settings used for calls to createEventCreateRule. */ + public UnaryCallSettings.Builder + createEventCreateRuleSettings() { + return getStubSettingsBuilder().createEventCreateRuleSettings(); + } + + /** Returns the builder for the settings used for calls to updateEventCreateRule. */ + public UnaryCallSettings.Builder + updateEventCreateRuleSettings() { + return getStubSettingsBuilder().updateEventCreateRuleSettings(); + } + + /** Returns the builder for the settings used for calls to deleteEventCreateRule. */ + public UnaryCallSettings.Builder + deleteEventCreateRuleSettings() { + return getStubSettingsBuilder().deleteEventCreateRuleSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataRedactionSettings. */ + public UnaryCallSettings.Builder + updateDataRedactionSettingsSettings() { + return getStubSettingsBuilder().updateDataRedactionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to getDataRedactionSettings. */ + public UnaryCallSettings.Builder + getDataRedactionSettingsSettings() { + return getStubSettingsBuilder().getDataRedactionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createRollupProperty. */ + public UnaryCallSettings.Builder + createRollupPropertySettings() { + return getStubSettingsBuilder().createRollupPropertySettings(); + } + + /** Returns the builder for the settings used for calls to getRollupPropertySourceLink. */ + public UnaryCallSettings.Builder + getRollupPropertySourceLinkSettings() { + return getStubSettingsBuilder().getRollupPropertySourceLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listRollupPropertySourceLinks. */ + public PagedCallSettings.Builder< + ListRollupPropertySourceLinksRequest, + ListRollupPropertySourceLinksResponse, + ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksSettings() { + return getStubSettingsBuilder().listRollupPropertySourceLinksSettings(); + } + + /** Returns the builder for the settings used for calls to createRollupPropertySourceLink. */ + public UnaryCallSettings.Builder< + CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> + createRollupPropertySourceLinkSettings() { + return getStubSettingsBuilder().createRollupPropertySourceLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteRollupPropertySourceLink. */ + public UnaryCallSettings.Builder + deleteRollupPropertySourceLinkSettings() { + return getStubSettingsBuilder().deleteRollupPropertySourceLinkSettings(); + } + + /** Returns the builder for the settings used for calls to createSubproperty. */ + public UnaryCallSettings.Builder + createSubpropertySettings() { + return getStubSettingsBuilder().createSubpropertySettings(); + } + + /** Returns the builder for the settings used for calls to deleteSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + deleteSubpropertyEventFilterSettings() { + return getStubSettingsBuilder().deleteSubpropertyEventFilterSettings(); + } + + /** Returns the builder for the settings used for calls to createSubpropertyEventFilter. */ + public UnaryCallSettings.Builder + createSubpropertyEventFilterSettings() { + return getStubSettingsBuilder().createSubpropertyEventFilterSettings(); + } + + @Override + public AnalyticsAdminServiceSettings build() throws IOException { + return new AnalyticsAdminServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java new file mode 100644 index 000000000000..e455c375570f --- /dev/null +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -0,0 +1,5189 @@ +/* + * 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. + */ + +package com.google.analytics.admin.v1alpha.stub; + +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAdSenseLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListChannelGroupsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListEventCreateRulesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListRollupPropertySourceLinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; + +import com.google.analytics.admin.v1alpha.AccessBinding; +import com.google.analytics.admin.v1alpha.Account; +import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; +import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; +import com.google.analytics.admin.v1alpha.AdSenseLink; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; +import com.google.analytics.admin.v1alpha.ArchiveAudienceRequest; +import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; +import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; +import com.google.analytics.admin.v1alpha.AttributionSettings; +import com.google.analytics.admin.v1alpha.Audience; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.BigQueryLink; +import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.ChannelGroup; +import com.google.analytics.admin.v1alpha.ConversionEvent; +import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; +import com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest; +import com.google.analytics.admin.v1alpha.CreateAudienceRequest; +import com.google.analytics.admin.v1alpha.CreateChannelGroupRequest; +import com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest; +import com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse; +import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; +import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; +import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest; +import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1alpha.CreatePropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest; +import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; +import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest; +import com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; +import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; +import com.google.analytics.admin.v1alpha.CustomDimension; +import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRedactionSettings; +import com.google.analytics.admin.v1alpha.DataRetentionSettings; +import com.google.analytics.admin.v1alpha.DataSharingSettings; +import com.google.analytics.admin.v1alpha.DataStream; +import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; +import com.google.analytics.admin.v1alpha.DeleteAccountRequest; +import com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest; +import com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest; +import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; +import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest; +import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1alpha.DeletePropertyRequest; +import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest; +import com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; +import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; +import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; +import com.google.analytics.admin.v1alpha.EventCreateRule; +import com.google.analytics.admin.v1alpha.ExpandedDataSet; +import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; +import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; +import com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; +import com.google.analytics.admin.v1alpha.FirebaseLink; +import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; +import com.google.analytics.admin.v1alpha.GetAccountRequest; +import com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest; +import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.GetAudienceRequest; +import com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest; +import com.google.analytics.admin.v1alpha.GetChannelGroupRequest; +import com.google.analytics.admin.v1alpha.GetConversionEventRequest; +import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; +import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; +import com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest; +import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; +import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; +import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1alpha.GetPropertyRequest; +import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; +import com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest; +import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; +import com.google.analytics.admin.v1alpha.GlobalSiteTag; +import com.google.analytics.admin.v1alpha.GoogleAdsLink; +import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; +import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; +import com.google.analytics.admin.v1alpha.ListAccessBindingsResponse; +import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; +import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; +import com.google.analytics.admin.v1alpha.ListAccountsRequest; +import com.google.analytics.admin.v1alpha.ListAccountsResponse; +import com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest; +import com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse; +import com.google.analytics.admin.v1alpha.ListAudiencesRequest; +import com.google.analytics.admin.v1alpha.ListAudiencesResponse; +import com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest; +import com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse; +import com.google.analytics.admin.v1alpha.ListChannelGroupsRequest; +import com.google.analytics.admin.v1alpha.ListChannelGroupsResponse; +import com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest; +import com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse; +import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; +import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; +import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; +import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; +import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; +import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; +import com.google.analytics.admin.v1alpha.ListDataStreamsRequest; +import com.google.analytics.admin.v1alpha.ListDataStreamsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; +import com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest; +import com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; +import com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse; +import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; +import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; +import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; +import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; +import com.google.analytics.admin.v1alpha.ListPropertiesRequest; +import com.google.analytics.admin.v1alpha.ListPropertiesResponse; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest; +import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse; +import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest; +import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse; +import com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; +import com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; +import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; +import com.google.analytics.admin.v1alpha.Property; +import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; +import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; +import com.google.analytics.admin.v1alpha.RunAccessReportRequest; +import com.google.analytics.admin.v1alpha.RunAccessReportResponse; +import com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema; +import com.google.analytics.admin.v1alpha.SearchAds360Link; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; +import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; +import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; +import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; +import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; +import com.google.analytics.admin.v1alpha.UpdateAccountRequest; +import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; +import com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest; +import com.google.analytics.admin.v1alpha.UpdateConversionEventRequest; +import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; +import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; +import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest; +import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; +import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; +import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; +import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AnalyticsAdminService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { + private static final MethodDescriptor getAccountMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount") + .setRequestMarshaller(ProtoUtils.marshaller(GetAccountRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAccountsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts") + .setRequestMarshaller(ProtoUtils.marshaller(ListAccountsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccountsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteAccountMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteAccountRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAccountMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAccountRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> + provisionAccountTicketMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket") + .setRequestMarshaller( + ProtoUtils.marshaller(ProvisionAccountTicketRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ProvisionAccountTicketResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAccountSummariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccountSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccountSummariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getPropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty") + .setRequestMarshaller(ProtoUtils.marshaller(GetPropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listPropertiesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPropertiesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPropertiesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createPropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(CreatePropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deletePropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(DeletePropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updatePropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdatePropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createFirebaseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFirebaseLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteFirebaseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFirebaseLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listFirebaseLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFirebaseLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFirebaseLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getGlobalSiteTagMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag") + .setRequestMarshaller( + ProtoUtils.marshaller(GetGlobalSiteTagRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(GlobalSiteTag.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGoogleAdsLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGoogleAdsLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateGoogleAdsLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateGoogleAdsLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGoogleAdsLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGoogleAdsLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGoogleAdsLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGoogleAdsLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGoogleAdsLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataSharingSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataSharingSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + getMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMeasurementProtocolSecretsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMeasurementProtocolSecretsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection") + .setRequestMarshaller( + ProtoUtils.marshaller(AcknowledgeUserDataCollectionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AcknowledgeUserDataCollectionResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + getSKAdNetworkConversionValueSchemaMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SKAdNetworkConversionValueSchema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SKAdNetworkConversionValueSchema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSKAdNetworkConversionValueSchemaMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SKAdNetworkConversionValueSchema.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse> + listSKAdNetworkConversionValueSchemasMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListSKAdNetworkConversionValueSchemasRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListSKAdNetworkConversionValueSchemasResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> + searchChangeHistoryEventsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getGoogleSignalsSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetGoogleSignalsSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateGoogleSignalsSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateGoogleSignalsSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listConversionEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConversionEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinkProposalsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + ApproveDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + CancelDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCustomDimensionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomDimensionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomDimensionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCustomMetricsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomMetricsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomMetricsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataRetentionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataRetentionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataRetentionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataRetentionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDataStreamsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataStreamsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience") + .setRequestMarshaller(ProtoUtils.marshaller(GetAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAudiencesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAudiencesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAudiencesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveAudienceMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveAudienceRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getSearchAds360LinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link") + .setRequestMarshaller( + ProtoUtils.marshaller(GetSearchAds360LinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchAds360Link.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listSearchAds360LinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links") + .setRequestMarshaller( + ProtoUtils.marshaller(ListSearchAds360LinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListSearchAds360LinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSearchAds360LinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSearchAds360LinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchAds360Link.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSearchAds360LinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSearchAds360LinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateSearchAds360LinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateSearchAds360LinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(SearchAds360Link.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAttributionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAttributionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AttributionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAttributionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAttributionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AttributionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + runAccessReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport") + .setRequestMarshaller( + ProtoUtils.marshaller(RunAccessReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RunAccessReportResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteAccessBindingMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAccessBindingRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAccessBindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> + batchCreateAccessBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchCreateAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchCreateAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse> + batchGetAccessBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchGetAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchGetAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchUpdateAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(BatchUpdateAccessBindingsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + batchDeleteAccessBindingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(BatchDeleteAccessBindingsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(GetExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listExpandedDataSetsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListExpandedDataSetsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListExpandedDataSetsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteExpandedDataSetMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteExpandedDataSetRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getChannelGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(GetChannelGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ChannelGroup.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listChannelGroupsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups") + .setRequestMarshaller( + ProtoUtils.marshaller(ListChannelGroupsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListChannelGroupsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createChannelGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateChannelGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ChannelGroup.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateChannelGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateChannelGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ChannelGroup.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteChannelGroupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteChannelGroupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut") + .setRequestMarshaller( + ProtoUtils.marshaller( + SetAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut") + .setRequestMarshaller( + ProtoUtils.marshaller( + FetchAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + FetchAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getBigQueryLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink") + .setRequestMarshaller( + ProtoUtils.marshaller(GetBigQueryLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(BigQueryLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listBigQueryLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListBigQueryLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListBigQueryLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + getEnhancedMeasurementSettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> + updateEnhancedMeasurementSettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateConnectedSiteTagRequest, CreateConnectedSiteTagResponse> + createConnectedSiteTagMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConnectedSiteTagRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CreateConnectedSiteTagResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConnectedSiteTagMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConnectedSiteTagRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listConnectedSiteTagsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConnectedSiteTagsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConnectedSiteTagsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + FetchConnectedGa4PropertyRequest, FetchConnectedGa4PropertyResponse> + fetchConnectedGa4PropertyMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property") + .setRequestMarshaller( + ProtoUtils.marshaller(FetchConnectedGa4PropertyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FetchConnectedGa4PropertyResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getAdSenseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAdSenseLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AdSenseLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createAdSenseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAdSenseLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AdSenseLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteAdSenseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAdSenseLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAdSenseLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAdSenseLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAdSenseLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getEventCreateRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule") + .setRequestMarshaller( + ProtoUtils.marshaller(GetEventCreateRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EventCreateRule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listEventCreateRulesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules") + .setRequestMarshaller( + ProtoUtils.marshaller(ListEventCreateRulesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListEventCreateRulesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createEventCreateRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateEventCreateRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EventCreateRule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateEventCreateRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateEventCreateRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(EventCreateRule.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteEventCreateRuleMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteEventCreateRuleRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataRedactionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataRedactionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRedactionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataRedactionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataRedactionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRedactionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createRollupPropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateRollupPropertyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CreateRollupPropertyResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetRollupPropertySourceLinkRequest, RollupPropertySourceLink> + getRollupPropertySourceLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink") + .setRequestMarshaller( + ProtoUtils.marshaller(GetRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RollupPropertySourceLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListRollupPropertySourceLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListRollupPropertySourceLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> + createRollupPropertySourceLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RollupPropertySourceLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteRollupPropertySourceLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSubpropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSubpropertyRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CreateSubpropertyResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteSubpropertyEventFilterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteSubpropertyEventFilterRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createSubpropertyEventFilterMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateSubpropertyEventFilterRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SubpropertyEventFilter.getDefaultInstance())) + .build(); + + private final UnaryCallable getAccountCallable; + private final UnaryCallable listAccountsCallable; + private final UnaryCallable + listAccountsPagedCallable; + private final UnaryCallable deleteAccountCallable; + private final UnaryCallable updateAccountCallable; + private final UnaryCallable + provisionAccountTicketCallable; + private final UnaryCallable + listAccountSummariesCallable; + private final UnaryCallable + listAccountSummariesPagedCallable; + private final UnaryCallable getPropertyCallable; + private final UnaryCallable listPropertiesCallable; + private final UnaryCallable + listPropertiesPagedCallable; + private final UnaryCallable createPropertyCallable; + private final UnaryCallable deletePropertyCallable; + private final UnaryCallable updatePropertyCallable; + private final UnaryCallable createFirebaseLinkCallable; + private final UnaryCallable deleteFirebaseLinkCallable; + private final UnaryCallable + listFirebaseLinksCallable; + private final UnaryCallable + listFirebaseLinksPagedCallable; + private final UnaryCallable getGlobalSiteTagCallable; + private final UnaryCallable + createGoogleAdsLinkCallable; + private final UnaryCallable + updateGoogleAdsLinkCallable; + private final UnaryCallable deleteGoogleAdsLinkCallable; + private final UnaryCallable + listGoogleAdsLinksCallable; + private final UnaryCallable + listGoogleAdsLinksPagedCallable; + private final UnaryCallable + getDataSharingSettingsCallable; + private final UnaryCallable + getMeasurementProtocolSecretCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable; + private final UnaryCallable + createMeasurementProtocolSecretCallable; + private final UnaryCallable + deleteMeasurementProtocolSecretCallable; + private final UnaryCallable + updateMeasurementProtocolSecretCallable; + private final UnaryCallable< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionCallable; + private final UnaryCallable< + GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + getSKAdNetworkConversionValueSchemaCallable; + private final UnaryCallable< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaCallable; + private final UnaryCallable + deleteSKAdNetworkConversionValueSchemaCallable; + private final UnaryCallable< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaCallable; + private final UnaryCallable< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse> + listSKAdNetworkConversionValueSchemasCallable; + private final UnaryCallable< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasPagedResponse> + listSKAdNetworkConversionValueSchemasPagedCallable; + private final UnaryCallable + searchChangeHistoryEventsCallable; + private final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable; + private final UnaryCallable + getGoogleSignalsSettingsCallable; + private final UnaryCallable + updateGoogleSignalsSettingsCallable; + private final UnaryCallable + createConversionEventCallable; + private final UnaryCallable + updateConversionEventCallable; + private final UnaryCallable + getConversionEventCallable; + private final UnaryCallable deleteConversionEventCallable; + private final UnaryCallable + listConversionEventsCallable; + private final UnaryCallable + listConversionEventsPagedCallable; + private final UnaryCallable< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksPagedCallable; + private final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable + deleteDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsPagedCallable; + private final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable + deleteDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable + createCustomDimensionCallable; + private final UnaryCallable + updateCustomDimensionCallable; + private final UnaryCallable + listCustomDimensionsCallable; + private final UnaryCallable + listCustomDimensionsPagedCallable; + private final UnaryCallable archiveCustomDimensionCallable; + private final UnaryCallable + getCustomDimensionCallable; + private final UnaryCallable createCustomMetricCallable; + private final UnaryCallable updateCustomMetricCallable; + private final UnaryCallable + listCustomMetricsCallable; + private final UnaryCallable + listCustomMetricsPagedCallable; + private final UnaryCallable archiveCustomMetricCallable; + private final UnaryCallable getCustomMetricCallable; + private final UnaryCallable + getDataRetentionSettingsCallable; + private final UnaryCallable + updateDataRetentionSettingsCallable; + private final UnaryCallable createDataStreamCallable; + private final UnaryCallable deleteDataStreamCallable; + private final UnaryCallable updateDataStreamCallable; + private final UnaryCallable + listDataStreamsCallable; + private final UnaryCallable + listDataStreamsPagedCallable; + private final UnaryCallable getDataStreamCallable; + private final UnaryCallable getAudienceCallable; + private final UnaryCallable listAudiencesCallable; + private final UnaryCallable + listAudiencesPagedCallable; + private final UnaryCallable createAudienceCallable; + private final UnaryCallable updateAudienceCallable; + private final UnaryCallable archiveAudienceCallable; + private final UnaryCallable + getSearchAds360LinkCallable; + private final UnaryCallable + listSearchAds360LinksCallable; + private final UnaryCallable + listSearchAds360LinksPagedCallable; + private final UnaryCallable + createSearchAds360LinkCallable; + private final UnaryCallable deleteSearchAds360LinkCallable; + private final UnaryCallable + updateSearchAds360LinkCallable; + private final UnaryCallable + getAttributionSettingsCallable; + private final UnaryCallable + updateAttributionSettingsCallable; + private final UnaryCallable + runAccessReportCallable; + private final UnaryCallable + createAccessBindingCallable; + private final UnaryCallable getAccessBindingCallable; + private final UnaryCallable + updateAccessBindingCallable; + private final UnaryCallable deleteAccessBindingCallable; + private final UnaryCallable + listAccessBindingsCallable; + private final UnaryCallable + listAccessBindingsPagedCallable; + private final UnaryCallable + batchCreateAccessBindingsCallable; + private final UnaryCallable + batchGetAccessBindingsCallable; + private final UnaryCallable + batchUpdateAccessBindingsCallable; + private final UnaryCallable + batchDeleteAccessBindingsCallable; + private final UnaryCallable + getExpandedDataSetCallable; + private final UnaryCallable + listExpandedDataSetsCallable; + private final UnaryCallable + listExpandedDataSetsPagedCallable; + private final UnaryCallable + createExpandedDataSetCallable; + private final UnaryCallable + updateExpandedDataSetCallable; + private final UnaryCallable deleteExpandedDataSetCallable; + private final UnaryCallable getChannelGroupCallable; + private final UnaryCallable + listChannelGroupsCallable; + private final UnaryCallable + listChannelGroupsPagedCallable; + private final UnaryCallable createChannelGroupCallable; + private final UnaryCallable updateChannelGroupCallable; + private final UnaryCallable deleteChannelGroupCallable; + private final UnaryCallable< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutCallable; + private final UnaryCallable< + FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutCallable; + private final UnaryCallable getBigQueryLinkCallable; + private final UnaryCallable + listBigQueryLinksCallable; + private final UnaryCallable + listBigQueryLinksPagedCallable; + private final UnaryCallable + getEnhancedMeasurementSettingsCallable; + private final UnaryCallable + updateEnhancedMeasurementSettingsCallable; + private final UnaryCallable + createConnectedSiteTagCallable; + private final UnaryCallable deleteConnectedSiteTagCallable; + private final UnaryCallable + listConnectedSiteTagsCallable; + private final UnaryCallable + fetchConnectedGa4PropertyCallable; + private final UnaryCallable getAdSenseLinkCallable; + private final UnaryCallable createAdSenseLinkCallable; + private final UnaryCallable deleteAdSenseLinkCallable; + private final UnaryCallable + listAdSenseLinksCallable; + private final UnaryCallable + listAdSenseLinksPagedCallable; + private final UnaryCallable + getEventCreateRuleCallable; + private final UnaryCallable + listEventCreateRulesCallable; + private final UnaryCallable + listEventCreateRulesPagedCallable; + private final UnaryCallable + createEventCreateRuleCallable; + private final UnaryCallable + updateEventCreateRuleCallable; + private final UnaryCallable deleteEventCreateRuleCallable; + private final UnaryCallable + updateDataRedactionSettingsCallable; + private final UnaryCallable + getDataRedactionSettingsCallable; + private final UnaryCallable + createRollupPropertyCallable; + private final UnaryCallable + getRollupPropertySourceLinkCallable; + private final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinksCallable; + private final UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable; + private final UnaryCallable + createRollupPropertySourceLinkCallable; + private final UnaryCallable + deleteRollupPropertySourceLinkCallable; + private final UnaryCallable + createSubpropertyCallable; + private final UnaryCallable + deleteSubpropertyEventFilterCallable; + private final UnaryCallable + createSubpropertyEventFilterCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAnalyticsAdminServiceStub create( + AnalyticsAdminServiceStubSettings settings) throws IOException { + return new GrpcAnalyticsAdminServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAnalyticsAdminServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAnalyticsAdminServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAnalyticsAdminServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listAccountsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccountsMethodDescriptor) + .build(); + GrpcCallSettings deleteAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("account.name", String.valueOf(request.getAccount().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + provisionAccountTicketTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(provisionAccountTicketMethodDescriptor) + .build(); + GrpcCallSettings + listAccountSummariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccountSummariesMethodDescriptor) + .build(); + GrpcCallSettings getPropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPropertyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPropertiesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPropertiesMethodDescriptor) + .build(); + GrpcCallSettings createPropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPropertyMethodDescriptor) + .build(); + GrpcCallSettings deletePropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePropertyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updatePropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updatePropertyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("property.name", String.valueOf(request.getProperty().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createFirebaseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFirebaseLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteFirebaseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listFirebaseLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFirebaseLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getGlobalSiteTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGlobalSiteTagMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "google_ads_link.name", + String.valueOf(request.getGoogleAdsLink().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGoogleAdsLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDataSharingSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMeasurementProtocolSecretsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMeasurementProtocolSecretTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "measurement_protocol_secret.name", + String.valueOf(request.getMeasurementProtocolSecret().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + acknowledgeUserDataCollectionTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("property", String.valueOf(request.getProperty())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getSKAdNetworkConversionValueSchemaTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getSKAdNetworkConversionValueSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(createSKAdNetworkConversionValueSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteSKAdNetworkConversionValueSchemaTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSKAdNetworkConversionValueSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(updateSKAdNetworkConversionValueSchemaMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "skadnetwork_conversion_value_schema.name", + String.valueOf(request.getSkadnetworkConversionValueSchema().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse> + listSKAdNetworkConversionValueSchemasTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listSKAdNetworkConversionValueSchemasMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + searchChangeHistoryEventsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("account", String.valueOf(request.getAccount())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getGoogleSignalsSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGoogleSignalsSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateGoogleSignalsSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGoogleSignalsSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "google_signals_settings.name", + String.valueOf(request.getGoogleSignalsSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "conversion_event.name", + String.valueOf(request.getConversionEvent().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listConversionEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConversionEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listDisplayVideo360AdvertiserLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(createDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(updateDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "display_video_360_advertiser_link.name", + String.valueOf(request.getDisplayVideo360AdvertiserLink().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + CreateDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(createDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + CancelDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_dimension.name", + String.valueOf(request.getCustomDimension().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listCustomDimensionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomDimensionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings archiveCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listCustomMetricsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomMetricsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings archiveCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDataRetentionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateDataRetentionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_retention_settings.name", + String.valueOf(request.getDataRetentionSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_stream.name", String.valueOf(request.getDataStream().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDataStreamsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataStreamsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listAudiencesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAudiencesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("audience.name", String.valueOf(request.getAudience().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings archiveAudienceTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveAudienceMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getSearchAds360LinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getSearchAds360LinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listSearchAds360LinksTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listSearchAds360LinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createSearchAds360LinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSearchAds360LinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteSearchAds360LinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSearchAds360LinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateSearchAds360LinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateSearchAds360LinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "search_ads_360_link.name", + String.valueOf(request.getSearchAds360Link().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getAttributionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAttributionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateAttributionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAttributionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "attribution_settings.name", + String.valueOf(request.getAttributionSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + runAccessReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runAccessReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("entity", String.valueOf(request.getEntity())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "access_binding.name", + String.valueOf(request.getAccessBinding().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAccessBindingTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessBindingMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listAccessBindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchCreateAccessBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(batchCreateAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchGetAccessBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(batchGetAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchUpdateAccessBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(batchUpdateAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + batchDeleteAccessBindingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(batchDeleteAccessBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listExpandedDataSetsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listExpandedDataSetsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "expanded_data_set.name", + String.valueOf(request.getExpandedDataSet().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteExpandedDataSetTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteExpandedDataSetMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getChannelGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getChannelGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listChannelGroupsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listChannelGroupsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings createChannelGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createChannelGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateChannelGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateChannelGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "channel_group.name", String.valueOf(request.getChannelGroup().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteChannelGroupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteChannelGroupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(setAutomatedGa4ConfigurationOptOutMethodDescriptor) + .build(); + GrpcCallSettings< + FetchAutomatedGa4ConfigurationOptOutRequest, + FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(fetchAutomatedGa4ConfigurationOptOutMethodDescriptor) + .build(); + GrpcCallSettings getBigQueryLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getBigQueryLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listBigQueryLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listBigQueryLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getEnhancedMeasurementSettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getEnhancedMeasurementSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateEnhancedMeasurementSettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateEnhancedMeasurementSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "enhanced_measurement_settings.name", + String.valueOf(request.getEnhancedMeasurementSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createConnectedSiteTagTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createConnectedSiteTagMethodDescriptor) + .build(); + GrpcCallSettings deleteConnectedSiteTagTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConnectedSiteTagMethodDescriptor) + .build(); + GrpcCallSettings + listConnectedSiteTagsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listConnectedSiteTagsMethodDescriptor) + .build(); + GrpcCallSettings + fetchConnectedGa4PropertyTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(fetchConnectedGa4PropertyMethodDescriptor) + .build(); + GrpcCallSettings getAdSenseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAdSenseLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createAdSenseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAdSenseLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAdSenseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAdSenseLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listAdSenseLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAdSenseLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getEventCreateRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getEventCreateRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listEventCreateRulesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listEventCreateRulesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createEventCreateRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createEventCreateRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateEventCreateRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateEventCreateRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "event_create_rule.name", + String.valueOf(request.getEventCreateRule().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteEventCreateRuleTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteEventCreateRuleMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateDataRedactionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataRedactionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_redaction_settings.name", + String.valueOf(request.getDataRedactionSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDataRedactionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataRedactionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createRollupPropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createRollupPropertyMethodDescriptor) + .build(); + GrpcCallSettings + getRollupPropertySourceLinkTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getRollupPropertySourceLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listRollupPropertySourceLinksTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listRollupPropertySourceLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createRollupPropertySourceLinkTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createRollupPropertySourceLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteRollupPropertySourceLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteRollupPropertySourceLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createSubpropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createSubpropertyMethodDescriptor) + .build(); + GrpcCallSettings + deleteSubpropertyEventFilterTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteSubpropertyEventFilterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createSubpropertyEventFilterTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createSubpropertyEventFilterMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + + this.getAccountCallable = + callableFactory.createUnaryCallable( + getAccountTransportSettings, settings.getAccountSettings(), clientContext); + this.listAccountsCallable = + callableFactory.createUnaryCallable( + listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); + this.listAccountsPagedCallable = + callableFactory.createPagedCallable( + listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); + this.deleteAccountCallable = + callableFactory.createUnaryCallable( + deleteAccountTransportSettings, settings.deleteAccountSettings(), clientContext); + this.updateAccountCallable = + callableFactory.createUnaryCallable( + updateAccountTransportSettings, settings.updateAccountSettings(), clientContext); + this.provisionAccountTicketCallable = + callableFactory.createUnaryCallable( + provisionAccountTicketTransportSettings, + settings.provisionAccountTicketSettings(), + clientContext); + this.listAccountSummariesCallable = + callableFactory.createUnaryCallable( + listAccountSummariesTransportSettings, + settings.listAccountSummariesSettings(), + clientContext); + this.listAccountSummariesPagedCallable = + callableFactory.createPagedCallable( + listAccountSummariesTransportSettings, + settings.listAccountSummariesSettings(), + clientContext); + this.getPropertyCallable = + callableFactory.createUnaryCallable( + getPropertyTransportSettings, settings.getPropertySettings(), clientContext); + this.listPropertiesCallable = + callableFactory.createUnaryCallable( + listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); + this.listPropertiesPagedCallable = + callableFactory.createPagedCallable( + listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); + this.createPropertyCallable = + callableFactory.createUnaryCallable( + createPropertyTransportSettings, settings.createPropertySettings(), clientContext); + this.deletePropertyCallable = + callableFactory.createUnaryCallable( + deletePropertyTransportSettings, settings.deletePropertySettings(), clientContext); + this.updatePropertyCallable = + callableFactory.createUnaryCallable( + updatePropertyTransportSettings, settings.updatePropertySettings(), clientContext); + this.createFirebaseLinkCallable = + callableFactory.createUnaryCallable( + createFirebaseLinkTransportSettings, + settings.createFirebaseLinkSettings(), + clientContext); + this.deleteFirebaseLinkCallable = + callableFactory.createUnaryCallable( + deleteFirebaseLinkTransportSettings, + settings.deleteFirebaseLinkSettings(), + clientContext); + this.listFirebaseLinksCallable = + callableFactory.createUnaryCallable( + listFirebaseLinksTransportSettings, + settings.listFirebaseLinksSettings(), + clientContext); + this.listFirebaseLinksPagedCallable = + callableFactory.createPagedCallable( + listFirebaseLinksTransportSettings, + settings.listFirebaseLinksSettings(), + clientContext); + this.getGlobalSiteTagCallable = + callableFactory.createUnaryCallable( + getGlobalSiteTagTransportSettings, settings.getGlobalSiteTagSettings(), clientContext); + this.createGoogleAdsLinkCallable = + callableFactory.createUnaryCallable( + createGoogleAdsLinkTransportSettings, + settings.createGoogleAdsLinkSettings(), + clientContext); + this.updateGoogleAdsLinkCallable = + callableFactory.createUnaryCallable( + updateGoogleAdsLinkTransportSettings, + settings.updateGoogleAdsLinkSettings(), + clientContext); + this.deleteGoogleAdsLinkCallable = + callableFactory.createUnaryCallable( + deleteGoogleAdsLinkTransportSettings, + settings.deleteGoogleAdsLinkSettings(), + clientContext); + this.listGoogleAdsLinksCallable = + callableFactory.createUnaryCallable( + listGoogleAdsLinksTransportSettings, + settings.listGoogleAdsLinksSettings(), + clientContext); + this.listGoogleAdsLinksPagedCallable = + callableFactory.createPagedCallable( + listGoogleAdsLinksTransportSettings, + settings.listGoogleAdsLinksSettings(), + clientContext); + this.getDataSharingSettingsCallable = + callableFactory.createUnaryCallable( + getDataSharingSettingsTransportSettings, + settings.getDataSharingSettingsSettings(), + clientContext); + this.getMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + getMeasurementProtocolSecretTransportSettings, + settings.getMeasurementProtocolSecretSettings(), + clientContext); + this.listMeasurementProtocolSecretsCallable = + callableFactory.createUnaryCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.listMeasurementProtocolSecretsPagedCallable = + callableFactory.createPagedCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.createMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + createMeasurementProtocolSecretTransportSettings, + settings.createMeasurementProtocolSecretSettings(), + clientContext); + this.deleteMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + deleteMeasurementProtocolSecretTransportSettings, + settings.deleteMeasurementProtocolSecretSettings(), + clientContext); + this.updateMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + updateMeasurementProtocolSecretTransportSettings, + settings.updateMeasurementProtocolSecretSettings(), + clientContext); + this.acknowledgeUserDataCollectionCallable = + callableFactory.createUnaryCallable( + acknowledgeUserDataCollectionTransportSettings, + settings.acknowledgeUserDataCollectionSettings(), + clientContext); + this.getSKAdNetworkConversionValueSchemaCallable = + callableFactory.createUnaryCallable( + getSKAdNetworkConversionValueSchemaTransportSettings, + settings.getSKAdNetworkConversionValueSchemaSettings(), + clientContext); + this.createSKAdNetworkConversionValueSchemaCallable = + callableFactory.createUnaryCallable( + createSKAdNetworkConversionValueSchemaTransportSettings, + settings.createSKAdNetworkConversionValueSchemaSettings(), + clientContext); + this.deleteSKAdNetworkConversionValueSchemaCallable = + callableFactory.createUnaryCallable( + deleteSKAdNetworkConversionValueSchemaTransportSettings, + settings.deleteSKAdNetworkConversionValueSchemaSettings(), + clientContext); + this.updateSKAdNetworkConversionValueSchemaCallable = + callableFactory.createUnaryCallable( + updateSKAdNetworkConversionValueSchemaTransportSettings, + settings.updateSKAdNetworkConversionValueSchemaSettings(), + clientContext); + this.listSKAdNetworkConversionValueSchemasCallable = + callableFactory.createUnaryCallable( + listSKAdNetworkConversionValueSchemasTransportSettings, + settings.listSKAdNetworkConversionValueSchemasSettings(), + clientContext); + this.listSKAdNetworkConversionValueSchemasPagedCallable = + callableFactory.createPagedCallable( + listSKAdNetworkConversionValueSchemasTransportSettings, + settings.listSKAdNetworkConversionValueSchemasSettings(), + clientContext); + this.searchChangeHistoryEventsCallable = + callableFactory.createUnaryCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); + this.searchChangeHistoryEventsPagedCallable = + callableFactory.createPagedCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); + this.getGoogleSignalsSettingsCallable = + callableFactory.createUnaryCallable( + getGoogleSignalsSettingsTransportSettings, + settings.getGoogleSignalsSettingsSettings(), + clientContext); + this.updateGoogleSignalsSettingsCallable = + callableFactory.createUnaryCallable( + updateGoogleSignalsSettingsTransportSettings, + settings.updateGoogleSignalsSettingsSettings(), + clientContext); + this.createConversionEventCallable = + callableFactory.createUnaryCallable( + createConversionEventTransportSettings, + settings.createConversionEventSettings(), + clientContext); + this.updateConversionEventCallable = + callableFactory.createUnaryCallable( + updateConversionEventTransportSettings, + settings.updateConversionEventSettings(), + clientContext); + this.getConversionEventCallable = + callableFactory.createUnaryCallable( + getConversionEventTransportSettings, + settings.getConversionEventSettings(), + clientContext); + this.deleteConversionEventCallable = + callableFactory.createUnaryCallable( + deleteConversionEventTransportSettings, + settings.deleteConversionEventSettings(), + clientContext); + this.listConversionEventsCallable = + callableFactory.createUnaryCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.listConversionEventsPagedCallable = + callableFactory.createPagedCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.getDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + getDisplayVideo360AdvertiserLinkTransportSettings, + settings.getDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinksCallable = + callableFactory.createUnaryCallable( + listDisplayVideo360AdvertiserLinksTransportSettings, + settings.listDisplayVideo360AdvertiserLinksSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinksPagedCallable = + callableFactory.createPagedCallable( + listDisplayVideo360AdvertiserLinksTransportSettings, + settings.listDisplayVideo360AdvertiserLinksSettings(), + clientContext); + this.createDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + createDisplayVideo360AdvertiserLinkTransportSettings, + settings.createDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.deleteDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + deleteDisplayVideo360AdvertiserLinkTransportSettings, + settings.deleteDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.updateDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + updateDisplayVideo360AdvertiserLinkTransportSettings, + settings.updateDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.getDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + getDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.getDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinkProposalsCallable = + callableFactory.createUnaryCallable( + listDisplayVideo360AdvertiserLinkProposalsTransportSettings, + settings.listDisplayVideo360AdvertiserLinkProposalsSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinkProposalsPagedCallable = + callableFactory.createPagedCallable( + listDisplayVideo360AdvertiserLinkProposalsTransportSettings, + settings.listDisplayVideo360AdvertiserLinkProposalsSettings(), + clientContext); + this.createDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + createDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.createDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.deleteDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + deleteDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.deleteDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.approveDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + approveDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.approveDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.cancelDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + cancelDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.cancelDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.createCustomDimensionCallable = + callableFactory.createUnaryCallable( + createCustomDimensionTransportSettings, + settings.createCustomDimensionSettings(), + clientContext); + this.updateCustomDimensionCallable = + callableFactory.createUnaryCallable( + updateCustomDimensionTransportSettings, + settings.updateCustomDimensionSettings(), + clientContext); + this.listCustomDimensionsCallable = + callableFactory.createUnaryCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.listCustomDimensionsPagedCallable = + callableFactory.createPagedCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.archiveCustomDimensionCallable = + callableFactory.createUnaryCallable( + archiveCustomDimensionTransportSettings, + settings.archiveCustomDimensionSettings(), + clientContext); + this.getCustomDimensionCallable = + callableFactory.createUnaryCallable( + getCustomDimensionTransportSettings, + settings.getCustomDimensionSettings(), + clientContext); + this.createCustomMetricCallable = + callableFactory.createUnaryCallable( + createCustomMetricTransportSettings, + settings.createCustomMetricSettings(), + clientContext); + this.updateCustomMetricCallable = + callableFactory.createUnaryCallable( + updateCustomMetricTransportSettings, + settings.updateCustomMetricSettings(), + clientContext); + this.listCustomMetricsCallable = + callableFactory.createUnaryCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.listCustomMetricsPagedCallable = + callableFactory.createPagedCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.archiveCustomMetricCallable = + callableFactory.createUnaryCallable( + archiveCustomMetricTransportSettings, + settings.archiveCustomMetricSettings(), + clientContext); + this.getCustomMetricCallable = + callableFactory.createUnaryCallable( + getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext); + this.getDataRetentionSettingsCallable = + callableFactory.createUnaryCallable( + getDataRetentionSettingsTransportSettings, + settings.getDataRetentionSettingsSettings(), + clientContext); + this.updateDataRetentionSettingsCallable = + callableFactory.createUnaryCallable( + updateDataRetentionSettingsTransportSettings, + settings.updateDataRetentionSettingsSettings(), + clientContext); + this.createDataStreamCallable = + callableFactory.createUnaryCallable( + createDataStreamTransportSettings, settings.createDataStreamSettings(), clientContext); + this.deleteDataStreamCallable = + callableFactory.createUnaryCallable( + deleteDataStreamTransportSettings, settings.deleteDataStreamSettings(), clientContext); + this.updateDataStreamCallable = + callableFactory.createUnaryCallable( + updateDataStreamTransportSettings, settings.updateDataStreamSettings(), clientContext); + this.listDataStreamsCallable = + callableFactory.createUnaryCallable( + listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); + this.listDataStreamsPagedCallable = + callableFactory.createPagedCallable( + listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); + this.getDataStreamCallable = + callableFactory.createUnaryCallable( + getDataStreamTransportSettings, settings.getDataStreamSettings(), clientContext); + this.getAudienceCallable = + callableFactory.createUnaryCallable( + getAudienceTransportSettings, settings.getAudienceSettings(), clientContext); + this.listAudiencesCallable = + callableFactory.createUnaryCallable( + listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); + this.listAudiencesPagedCallable = + callableFactory.createPagedCallable( + listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); + this.createAudienceCallable = + callableFactory.createUnaryCallable( + createAudienceTransportSettings, settings.createAudienceSettings(), clientContext); + this.updateAudienceCallable = + callableFactory.createUnaryCallable( + updateAudienceTransportSettings, settings.updateAudienceSettings(), clientContext); + this.archiveAudienceCallable = + callableFactory.createUnaryCallable( + archiveAudienceTransportSettings, settings.archiveAudienceSettings(), clientContext); + this.getSearchAds360LinkCallable = + callableFactory.createUnaryCallable( + getSearchAds360LinkTransportSettings, + settings.getSearchAds360LinkSettings(), + clientContext); + this.listSearchAds360LinksCallable = + callableFactory.createUnaryCallable( + listSearchAds360LinksTransportSettings, + settings.listSearchAds360LinksSettings(), + clientContext); + this.listSearchAds360LinksPagedCallable = + callableFactory.createPagedCallable( + listSearchAds360LinksTransportSettings, + settings.listSearchAds360LinksSettings(), + clientContext); + this.createSearchAds360LinkCallable = + callableFactory.createUnaryCallable( + createSearchAds360LinkTransportSettings, + settings.createSearchAds360LinkSettings(), + clientContext); + this.deleteSearchAds360LinkCallable = + callableFactory.createUnaryCallable( + deleteSearchAds360LinkTransportSettings, + settings.deleteSearchAds360LinkSettings(), + clientContext); + this.updateSearchAds360LinkCallable = + callableFactory.createUnaryCallable( + updateSearchAds360LinkTransportSettings, + settings.updateSearchAds360LinkSettings(), + clientContext); + this.getAttributionSettingsCallable = + callableFactory.createUnaryCallable( + getAttributionSettingsTransportSettings, + settings.getAttributionSettingsSettings(), + clientContext); + this.updateAttributionSettingsCallable = + callableFactory.createUnaryCallable( + updateAttributionSettingsTransportSettings, + settings.updateAttributionSettingsSettings(), + clientContext); + this.runAccessReportCallable = + callableFactory.createUnaryCallable( + runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); + this.createAccessBindingCallable = + callableFactory.createUnaryCallable( + createAccessBindingTransportSettings, + settings.createAccessBindingSettings(), + clientContext); + this.getAccessBindingCallable = + callableFactory.createUnaryCallable( + getAccessBindingTransportSettings, settings.getAccessBindingSettings(), clientContext); + this.updateAccessBindingCallable = + callableFactory.createUnaryCallable( + updateAccessBindingTransportSettings, + settings.updateAccessBindingSettings(), + clientContext); + this.deleteAccessBindingCallable = + callableFactory.createUnaryCallable( + deleteAccessBindingTransportSettings, + settings.deleteAccessBindingSettings(), + clientContext); + this.listAccessBindingsCallable = + callableFactory.createUnaryCallable( + listAccessBindingsTransportSettings, + settings.listAccessBindingsSettings(), + clientContext); + this.listAccessBindingsPagedCallable = + callableFactory.createPagedCallable( + listAccessBindingsTransportSettings, + settings.listAccessBindingsSettings(), + clientContext); + this.batchCreateAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchCreateAccessBindingsTransportSettings, + settings.batchCreateAccessBindingsSettings(), + clientContext); + this.batchGetAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchGetAccessBindingsTransportSettings, + settings.batchGetAccessBindingsSettings(), + clientContext); + this.batchUpdateAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchUpdateAccessBindingsTransportSettings, + settings.batchUpdateAccessBindingsSettings(), + clientContext); + this.batchDeleteAccessBindingsCallable = + callableFactory.createUnaryCallable( + batchDeleteAccessBindingsTransportSettings, + settings.batchDeleteAccessBindingsSettings(), + clientContext); + this.getExpandedDataSetCallable = + callableFactory.createUnaryCallable( + getExpandedDataSetTransportSettings, + settings.getExpandedDataSetSettings(), + clientContext); + this.listExpandedDataSetsCallable = + callableFactory.createUnaryCallable( + listExpandedDataSetsTransportSettings, + settings.listExpandedDataSetsSettings(), + clientContext); + this.listExpandedDataSetsPagedCallable = + callableFactory.createPagedCallable( + listExpandedDataSetsTransportSettings, + settings.listExpandedDataSetsSettings(), + clientContext); + this.createExpandedDataSetCallable = + callableFactory.createUnaryCallable( + createExpandedDataSetTransportSettings, + settings.createExpandedDataSetSettings(), + clientContext); + this.updateExpandedDataSetCallable = + callableFactory.createUnaryCallable( + updateExpandedDataSetTransportSettings, + settings.updateExpandedDataSetSettings(), + clientContext); + this.deleteExpandedDataSetCallable = + callableFactory.createUnaryCallable( + deleteExpandedDataSetTransportSettings, + settings.deleteExpandedDataSetSettings(), + clientContext); + this.getChannelGroupCallable = + callableFactory.createUnaryCallable( + getChannelGroupTransportSettings, settings.getChannelGroupSettings(), clientContext); + this.listChannelGroupsCallable = + callableFactory.createUnaryCallable( + listChannelGroupsTransportSettings, + settings.listChannelGroupsSettings(), + clientContext); + this.listChannelGroupsPagedCallable = + callableFactory.createPagedCallable( + listChannelGroupsTransportSettings, + settings.listChannelGroupsSettings(), + clientContext); + this.createChannelGroupCallable = + callableFactory.createUnaryCallable( + createChannelGroupTransportSettings, + settings.createChannelGroupSettings(), + clientContext); + this.updateChannelGroupCallable = + callableFactory.createUnaryCallable( + updateChannelGroupTransportSettings, + settings.updateChannelGroupSettings(), + clientContext); + this.deleteChannelGroupCallable = + callableFactory.createUnaryCallable( + deleteChannelGroupTransportSettings, + settings.deleteChannelGroupSettings(), + clientContext); + this.setAutomatedGa4ConfigurationOptOutCallable = + callableFactory.createUnaryCallable( + setAutomatedGa4ConfigurationOptOutTransportSettings, + settings.setAutomatedGa4ConfigurationOptOutSettings(), + clientContext); + this.fetchAutomatedGa4ConfigurationOptOutCallable = + callableFactory.createUnaryCallable( + fetchAutomatedGa4ConfigurationOptOutTransportSettings, + settings.fetchAutomatedGa4ConfigurationOptOutSettings(), + clientContext); + this.getBigQueryLinkCallable = + callableFactory.createUnaryCallable( + getBigQueryLinkTransportSettings, settings.getBigQueryLinkSettings(), clientContext); + this.listBigQueryLinksCallable = + callableFactory.createUnaryCallable( + listBigQueryLinksTransportSettings, + settings.listBigQueryLinksSettings(), + clientContext); + this.listBigQueryLinksPagedCallable = + callableFactory.createPagedCallable( + listBigQueryLinksTransportSettings, + settings.listBigQueryLinksSettings(), + clientContext); + this.getEnhancedMeasurementSettingsCallable = + callableFactory.createUnaryCallable( + getEnhancedMeasurementSettingsTransportSettings, + settings.getEnhancedMeasurementSettingsSettings(), + clientContext); + this.updateEnhancedMeasurementSettingsCallable = + callableFactory.createUnaryCallable( + updateEnhancedMeasurementSettingsTransportSettings, + settings.updateEnhancedMeasurementSettingsSettings(), + clientContext); + this.createConnectedSiteTagCallable = + callableFactory.createUnaryCallable( + createConnectedSiteTagTransportSettings, + settings.createConnectedSiteTagSettings(), + clientContext); + this.deleteConnectedSiteTagCallable = + callableFactory.createUnaryCallable( + deleteConnectedSiteTagTransportSettings, + settings.deleteConnectedSiteTagSettings(), + clientContext); + this.listConnectedSiteTagsCallable = + callableFactory.createUnaryCallable( + listConnectedSiteTagsTransportSettings, + settings.listConnectedSiteTagsSettings(), + clientContext); + this.fetchConnectedGa4PropertyCallable = + callableFactory.createUnaryCallable( + fetchConnectedGa4PropertyTransportSettings, + settings.fetchConnectedGa4PropertySettings(), + clientContext); + this.getAdSenseLinkCallable = + callableFactory.createUnaryCallable( + getAdSenseLinkTransportSettings, settings.getAdSenseLinkSettings(), clientContext); + this.createAdSenseLinkCallable = + callableFactory.createUnaryCallable( + createAdSenseLinkTransportSettings, + settings.createAdSenseLinkSettings(), + clientContext); + this.deleteAdSenseLinkCallable = + callableFactory.createUnaryCallable( + deleteAdSenseLinkTransportSettings, + settings.deleteAdSenseLinkSettings(), + clientContext); + this.listAdSenseLinksCallable = + callableFactory.createUnaryCallable( + listAdSenseLinksTransportSettings, settings.listAdSenseLinksSettings(), clientContext); + this.listAdSenseLinksPagedCallable = + callableFactory.createPagedCallable( + listAdSenseLinksTransportSettings, settings.listAdSenseLinksSettings(), clientContext); + this.getEventCreateRuleCallable = + callableFactory.createUnaryCallable( + getEventCreateRuleTransportSettings, + settings.getEventCreateRuleSettings(), + clientContext); + this.listEventCreateRulesCallable = + callableFactory.createUnaryCallable( + listEventCreateRulesTransportSettings, + settings.listEventCreateRulesSettings(), + clientContext); + this.listEventCreateRulesPagedCallable = + callableFactory.createPagedCallable( + listEventCreateRulesTransportSettings, + settings.listEventCreateRulesSettings(), + clientContext); + this.createEventCreateRuleCallable = + callableFactory.createUnaryCallable( + createEventCreateRuleTransportSettings, + settings.createEventCreateRuleSettings(), + clientContext); + this.updateEventCreateRuleCallable = + callableFactory.createUnaryCallable( + updateEventCreateRuleTransportSettings, + settings.updateEventCreateRuleSettings(), + clientContext); + this.deleteEventCreateRuleCallable = + callableFactory.createUnaryCallable( + deleteEventCreateRuleTransportSettings, + settings.deleteEventCreateRuleSettings(), + clientContext); + this.updateDataRedactionSettingsCallable = + callableFactory.createUnaryCallable( + updateDataRedactionSettingsTransportSettings, + settings.updateDataRedactionSettingsSettings(), + clientContext); + this.getDataRedactionSettingsCallable = + callableFactory.createUnaryCallable( + getDataRedactionSettingsTransportSettings, + settings.getDataRedactionSettingsSettings(), + clientContext); + this.createRollupPropertyCallable = + callableFactory.createUnaryCallable( + createRollupPropertyTransportSettings, + settings.createRollupPropertySettings(), + clientContext); + this.getRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + getRollupPropertySourceLinkTransportSettings, + settings.getRollupPropertySourceLinkSettings(), + clientContext); + this.listRollupPropertySourceLinksCallable = + callableFactory.createUnaryCallable( + listRollupPropertySourceLinksTransportSettings, + settings.listRollupPropertySourceLinksSettings(), + clientContext); + this.listRollupPropertySourceLinksPagedCallable = + callableFactory.createPagedCallable( + listRollupPropertySourceLinksTransportSettings, + settings.listRollupPropertySourceLinksSettings(), + clientContext); + this.createRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + createRollupPropertySourceLinkTransportSettings, + settings.createRollupPropertySourceLinkSettings(), + clientContext); + this.deleteRollupPropertySourceLinkCallable = + callableFactory.createUnaryCallable( + deleteRollupPropertySourceLinkTransportSettings, + settings.deleteRollupPropertySourceLinkSettings(), + clientContext); + this.createSubpropertyCallable = + callableFactory.createUnaryCallable( + createSubpropertyTransportSettings, + settings.createSubpropertySettings(), + clientContext); + this.deleteSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + deleteSubpropertyEventFilterTransportSettings, + settings.deleteSubpropertyEventFilterSettings(), + clientContext); + this.createSubpropertyEventFilterCallable = + callableFactory.createUnaryCallable( + createSubpropertyEventFilterTransportSettings, + settings.createSubpropertyEventFilterSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getAccountCallable() { + return getAccountCallable; + } + + @Override + public UnaryCallable listAccountsCallable() { + return listAccountsCallable; + } + + @Override + public UnaryCallable listAccountsPagedCallable() { + return listAccountsPagedCallable; + } + + @Override + public UnaryCallable deleteAccountCallable() { + return deleteAccountCallable; + } + + @Override + public UnaryCallable updateAccountCallable() { + return updateAccountCallable; + } + + @Override + public UnaryCallable + provisionAccountTicketCallable() { + return provisionAccountTicketCallable; + } + + @Override + public UnaryCallable + listAccountSummariesCallable() { + return listAccountSummariesCallable; + } + + @Override + public UnaryCallable + listAccountSummariesPagedCallable() { + return listAccountSummariesPagedCallable; + } + + @Override + public UnaryCallable getPropertyCallable() { + return getPropertyCallable; + } + + @Override + public UnaryCallable listPropertiesCallable() { + return listPropertiesCallable; + } + + @Override + public UnaryCallable + listPropertiesPagedCallable() { + return listPropertiesPagedCallable; + } + + @Override + public UnaryCallable createPropertyCallable() { + return createPropertyCallable; + } + + @Override + public UnaryCallable deletePropertyCallable() { + return deletePropertyCallable; + } + + @Override + public UnaryCallable updatePropertyCallable() { + return updatePropertyCallable; + } + + @Override + public UnaryCallable createFirebaseLinkCallable() { + return createFirebaseLinkCallable; + } + + @Override + public UnaryCallable deleteFirebaseLinkCallable() { + return deleteFirebaseLinkCallable; + } + + @Override + public UnaryCallable + listFirebaseLinksCallable() { + return listFirebaseLinksCallable; + } + + @Override + public UnaryCallable + listFirebaseLinksPagedCallable() { + return listFirebaseLinksPagedCallable; + } + + @Override + public UnaryCallable getGlobalSiteTagCallable() { + return getGlobalSiteTagCallable; + } + + @Override + public UnaryCallable createGoogleAdsLinkCallable() { + return createGoogleAdsLinkCallable; + } + + @Override + public UnaryCallable updateGoogleAdsLinkCallable() { + return updateGoogleAdsLinkCallable; + } + + @Override + public UnaryCallable deleteGoogleAdsLinkCallable() { + return deleteGoogleAdsLinkCallable; + } + + @Override + public UnaryCallable + listGoogleAdsLinksCallable() { + return listGoogleAdsLinksCallable; + } + + @Override + public UnaryCallable + listGoogleAdsLinksPagedCallable() { + return listGoogleAdsLinksPagedCallable; + } + + @Override + public UnaryCallable + getDataSharingSettingsCallable() { + return getDataSharingSettingsCallable; + } + + @Override + public UnaryCallable + getMeasurementProtocolSecretCallable() { + return getMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable() { + return listMeasurementProtocolSecretsCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable() { + return listMeasurementProtocolSecretsPagedCallable; + } + + @Override + public UnaryCallable + createMeasurementProtocolSecretCallable() { + return createMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + deleteMeasurementProtocolSecretCallable() { + return deleteMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + updateMeasurementProtocolSecretCallable() { + return updateMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + acknowledgeUserDataCollectionCallable() { + return acknowledgeUserDataCollectionCallable; + } + + @Override + public UnaryCallable + getSKAdNetworkConversionValueSchemaCallable() { + return getSKAdNetworkConversionValueSchemaCallable; + } + + @Override + public UnaryCallable< + CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchemaCallable() { + return createSKAdNetworkConversionValueSchemaCallable; + } + + @Override + public UnaryCallable + deleteSKAdNetworkConversionValueSchemaCallable() { + return deleteSKAdNetworkConversionValueSchemaCallable; + } + + @Override + public UnaryCallable< + UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchemaCallable() { + return updateSKAdNetworkConversionValueSchemaCallable; + } + + @Override + public UnaryCallable< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasResponse> + listSKAdNetworkConversionValueSchemasCallable() { + return listSKAdNetworkConversionValueSchemasCallable; + } + + @Override + public UnaryCallable< + ListSKAdNetworkConversionValueSchemasRequest, + ListSKAdNetworkConversionValueSchemasPagedResponse> + listSKAdNetworkConversionValueSchemasPagedCallable() { + return listSKAdNetworkConversionValueSchemasPagedCallable; + } + + @Override + public UnaryCallable + searchChangeHistoryEventsCallable() { + return searchChangeHistoryEventsCallable; + } + + @Override + public UnaryCallable + searchChangeHistoryEventsPagedCallable() { + return searchChangeHistoryEventsPagedCallable; + } + + @Override + public UnaryCallable + getGoogleSignalsSettingsCallable() { + return getGoogleSignalsSettingsCallable; + } + + @Override + public UnaryCallable + updateGoogleSignalsSettingsCallable() { + return updateGoogleSignalsSettingsCallable; + } + + @Override + public UnaryCallable + createConversionEventCallable() { + return createConversionEventCallable; + } + + @Override + public UnaryCallable + updateConversionEventCallable() { + return updateConversionEventCallable; + } + + @Override + public UnaryCallable getConversionEventCallable() { + return getConversionEventCallable; + } + + @Override + public UnaryCallable deleteConversionEventCallable() { + return deleteConversionEventCallable; + } + + @Override + public UnaryCallable + listConversionEventsCallable() { + return listConversionEventsCallable; + } + + @Override + public UnaryCallable + listConversionEventsPagedCallable() { + return listConversionEventsPagedCallable; + } + + @Override + public UnaryCallable + getDisplayVideo360AdvertiserLinkCallable() { + return getDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksCallable() { + return listDisplayVideo360AdvertiserLinksCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksPagedCallable() { + return listDisplayVideo360AdvertiserLinksPagedCallable; + } + + @Override + public UnaryCallable + createDisplayVideo360AdvertiserLinkCallable() { + return createDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable + deleteDisplayVideo360AdvertiserLinkCallable() { + return deleteDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable + updateDisplayVideo360AdvertiserLinkCallable() { + return updateDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalCallable() { + return getDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsCallable() { + return listDisplayVideo360AdvertiserLinkProposalsCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { + return listDisplayVideo360AdvertiserLinkProposalsPagedCallable; + } + + @Override + public UnaryCallable< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalCallable() { + return createDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable + deleteDisplayVideo360AdvertiserLinkProposalCallable() { + return deleteDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalCallable() { + return approveDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalCallable() { + return cancelDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable + createCustomDimensionCallable() { + return createCustomDimensionCallable; + } + + @Override + public UnaryCallable + updateCustomDimensionCallable() { + return updateCustomDimensionCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsCallable() { + return listCustomDimensionsCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsPagedCallable() { + return listCustomDimensionsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomDimensionCallable() { + return archiveCustomDimensionCallable; + } + + @Override + public UnaryCallable getCustomDimensionCallable() { + return getCustomDimensionCallable; + } + + @Override + public UnaryCallable createCustomMetricCallable() { + return createCustomMetricCallable; + } + + @Override + public UnaryCallable updateCustomMetricCallable() { + return updateCustomMetricCallable; + } + + @Override + public UnaryCallable + listCustomMetricsCallable() { + return listCustomMetricsCallable; + } + + @Override + public UnaryCallable + listCustomMetricsPagedCallable() { + return listCustomMetricsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomMetricCallable() { + return archiveCustomMetricCallable; + } + + @Override + public UnaryCallable getCustomMetricCallable() { + return getCustomMetricCallable; + } + + @Override + public UnaryCallable + getDataRetentionSettingsCallable() { + return getDataRetentionSettingsCallable; + } + + @Override + public UnaryCallable + updateDataRetentionSettingsCallable() { + return updateDataRetentionSettingsCallable; + } + + @Override + public UnaryCallable createDataStreamCallable() { + return createDataStreamCallable; + } + + @Override + public UnaryCallable deleteDataStreamCallable() { + return deleteDataStreamCallable; + } + + @Override + public UnaryCallable updateDataStreamCallable() { + return updateDataStreamCallable; + } + + @Override + public UnaryCallable listDataStreamsCallable() { + return listDataStreamsCallable; + } + + @Override + public UnaryCallable + listDataStreamsPagedCallable() { + return listDataStreamsPagedCallable; + } + + @Override + public UnaryCallable getDataStreamCallable() { + return getDataStreamCallable; + } + + @Override + public UnaryCallable getAudienceCallable() { + return getAudienceCallable; + } + + @Override + public UnaryCallable listAudiencesCallable() { + return listAudiencesCallable; + } + + @Override + public UnaryCallable + listAudiencesPagedCallable() { + return listAudiencesPagedCallable; + } + + @Override + public UnaryCallable createAudienceCallable() { + return createAudienceCallable; + } + + @Override + public UnaryCallable updateAudienceCallable() { + return updateAudienceCallable; + } + + @Override + public UnaryCallable archiveAudienceCallable() { + return archiveAudienceCallable; + } + + @Override + public UnaryCallable getSearchAds360LinkCallable() { + return getSearchAds360LinkCallable; + } + + @Override + public UnaryCallable + listSearchAds360LinksCallable() { + return listSearchAds360LinksCallable; + } + + @Override + public UnaryCallable + listSearchAds360LinksPagedCallable() { + return listSearchAds360LinksPagedCallable; + } + + @Override + public UnaryCallable + createSearchAds360LinkCallable() { + return createSearchAds360LinkCallable; + } + + @Override + public UnaryCallable deleteSearchAds360LinkCallable() { + return deleteSearchAds360LinkCallable; + } + + @Override + public UnaryCallable + updateSearchAds360LinkCallable() { + return updateSearchAds360LinkCallable; + } + + @Override + public UnaryCallable + getAttributionSettingsCallable() { + return getAttributionSettingsCallable; + } + + @Override + public UnaryCallable + updateAttributionSettingsCallable() { + return updateAttributionSettingsCallable; + } + + @Override + public UnaryCallable runAccessReportCallable() { + return runAccessReportCallable; + } + + @Override + public UnaryCallable createAccessBindingCallable() { + return createAccessBindingCallable; + } + + @Override + public UnaryCallable getAccessBindingCallable() { + return getAccessBindingCallable; + } + + @Override + public UnaryCallable updateAccessBindingCallable() { + return updateAccessBindingCallable; + } + + @Override + public UnaryCallable deleteAccessBindingCallable() { + return deleteAccessBindingCallable; + } + + @Override + public UnaryCallable + listAccessBindingsCallable() { + return listAccessBindingsCallable; + } + + @Override + public UnaryCallable + listAccessBindingsPagedCallable() { + return listAccessBindingsPagedCallable; + } + + @Override + public UnaryCallable + batchCreateAccessBindingsCallable() { + return batchCreateAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchGetAccessBindingsCallable() { + return batchGetAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchUpdateAccessBindingsCallable() { + return batchUpdateAccessBindingsCallable; + } + + @Override + public UnaryCallable + batchDeleteAccessBindingsCallable() { + return batchDeleteAccessBindingsCallable; + } + + @Override + public UnaryCallable getExpandedDataSetCallable() { + return getExpandedDataSetCallable; + } + + @Override + public UnaryCallable + listExpandedDataSetsCallable() { + return listExpandedDataSetsCallable; + } + + @Override + public UnaryCallable + listExpandedDataSetsPagedCallable() { + return listExpandedDataSetsPagedCallable; + } + + @Override + public UnaryCallable + createExpandedDataSetCallable() { + return createExpandedDataSetCallable; + } + + @Override + public UnaryCallable + updateExpandedDataSetCallable() { + return updateExpandedDataSetCallable; + } + + @Override + public UnaryCallable deleteExpandedDataSetCallable() { + return deleteExpandedDataSetCallable; + } + + @Override + public UnaryCallable getChannelGroupCallable() { + return getChannelGroupCallable; + } + + @Override + public UnaryCallable + listChannelGroupsCallable() { + return listChannelGroupsCallable; + } + + @Override + public UnaryCallable + listChannelGroupsPagedCallable() { + return listChannelGroupsPagedCallable; + } + + @Override + public UnaryCallable createChannelGroupCallable() { + return createChannelGroupCallable; + } + + @Override + public UnaryCallable updateChannelGroupCallable() { + return updateChannelGroupCallable; + } + + @Override + public UnaryCallable deleteChannelGroupCallable() { + return deleteChannelGroupCallable; + } + + @Override + public UnaryCallable< + SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOutCallable() { + return setAutomatedGa4ConfigurationOptOutCallable; + } + + @Override + public UnaryCallable< + FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOutCallable() { + return fetchAutomatedGa4ConfigurationOptOutCallable; + } + + @Override + public UnaryCallable getBigQueryLinkCallable() { + return getBigQueryLinkCallable; + } + + @Override + public UnaryCallable + listBigQueryLinksCallable() { + return listBigQueryLinksCallable; + } + + @Override + public UnaryCallable + listBigQueryLinksPagedCallable() { + return listBigQueryLinksPagedCallable; + } + + @Override + public UnaryCallable + getEnhancedMeasurementSettingsCallable() { + return getEnhancedMeasurementSettingsCallable; + } + + @Override + public UnaryCallable + updateEnhancedMeasurementSettingsCallable() { + return updateEnhancedMeasurementSettingsCallable; + } + + @Override + public UnaryCallable + createConnectedSiteTagCallable() { + return createConnectedSiteTagCallable; + } + + @Override + public UnaryCallable deleteConnectedSiteTagCallable() { + return deleteConnectedSiteTagCallable; + } + + @Override + public UnaryCallable + listConnectedSiteTagsCallable() { + return listConnectedSiteTagsCallable; + } + + @Override + public UnaryCallable + fetchConnectedGa4PropertyCallable() { + return fetchConnectedGa4PropertyCallable; + } + + @Override + public UnaryCallable getAdSenseLinkCallable() { + return getAdSenseLinkCallable; + } + + @Override + public UnaryCallable createAdSenseLinkCallable() { + return createAdSenseLinkCallable; + } + + @Override + public UnaryCallable deleteAdSenseLinkCallable() { + return deleteAdSenseLinkCallable; + } + + @Override + public UnaryCallable + listAdSenseLinksCallable() { + return listAdSenseLinksCallable; + } + + @Override + public UnaryCallable + listAdSenseLinksPagedCallable() { + return listAdSenseLinksPagedCallable; + } + + @Override + public UnaryCallable getEventCreateRuleCallable() { + return getEventCreateRuleCallable; + } + + @Override + public UnaryCallable + listEventCreateRulesCallable() { + return listEventCreateRulesCallable; + } + + @Override + public UnaryCallable + listEventCreateRulesPagedCallable() { + return listEventCreateRulesPagedCallable; + } + + @Override + public UnaryCallable + createEventCreateRuleCallable() { + return createEventCreateRuleCallable; + } + + @Override + public UnaryCallable + updateEventCreateRuleCallable() { + return updateEventCreateRuleCallable; + } + + @Override + public UnaryCallable deleteEventCreateRuleCallable() { + return deleteEventCreateRuleCallable; + } + + @Override + public UnaryCallable + updateDataRedactionSettingsCallable() { + return updateDataRedactionSettingsCallable; + } + + @Override + public UnaryCallable + getDataRedactionSettingsCallable() { + return getDataRedactionSettingsCallable; + } + + @Override + public UnaryCallable + createRollupPropertyCallable() { + return createRollupPropertyCallable; + } + + @Override + public UnaryCallable + getRollupPropertySourceLinkCallable() { + return getRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + listRollupPropertySourceLinksCallable() { + return listRollupPropertySourceLinksCallable; + } + + @Override + public UnaryCallable< + ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> + listRollupPropertySourceLinksPagedCallable() { + return listRollupPropertySourceLinksPagedCallable; + } + + @Override + public UnaryCallable + createRollupPropertySourceLinkCallable() { + return createRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + deleteRollupPropertySourceLinkCallable() { + return deleteRollupPropertySourceLinkCallable; + } + + @Override + public UnaryCallable + createSubpropertyCallable() { + return createSubpropertyCallable; + } + + @Override + public UnaryCallable + deleteSubpropertyEventFilterCallable() { + return deleteSubpropertyEventFilterCallable; + } + + @Override + public UnaryCallable + createSubpropertyEventFilterCallable() { + return createSubpropertyEventFilterCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClient.java diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java new file mode 100644 index 000000000000..a80119445802 --- /dev/null +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java @@ -0,0 +1,826 @@ +/* + * 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. + */ + +package com.google.analytics.admin.v1beta; + +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; + +import com.google.analytics.admin.v1beta.stub.AnalyticsAdminServiceStubSettings; +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AnalyticsAdminServiceClient}. + * + *

The default instance has everything set to sensible defaults: + * + *

    + *
  • The default service address (analyticsadmin.googleapis.com) and default port (443) are + * used. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
+ * + *

The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

For example, to set the total timeout of getAccount to 30 seconds: + * + *

{@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
+ * AnalyticsAdminServiceSettings.Builder analyticsAdminServiceSettingsBuilder =
+ *     AnalyticsAdminServiceSettings.newBuilder();
+ * analyticsAdminServiceSettingsBuilder
+ *     .getAccountSettings()
+ *     .setRetrySettings(
+ *         analyticsAdminServiceSettingsBuilder
+ *             .getAccountSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
+ *     analyticsAdminServiceSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AnalyticsAdminServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to getAccount. */ + public UnaryCallSettings getAccountSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccountSettings(); + } + + /** Returns the object with the settings used for calls to listAccounts. */ + public PagedCallSettings + listAccountsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountsSettings(); + } + + /** Returns the object with the settings used for calls to deleteAccount. */ + public UnaryCallSettings deleteAccountSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAccountSettings(); + } + + /** Returns the object with the settings used for calls to updateAccount. */ + public UnaryCallSettings updateAccountSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAccountSettings(); + } + + /** Returns the object with the settings used for calls to provisionAccountTicket. */ + public UnaryCallSettings + provisionAccountTicketSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).provisionAccountTicketSettings(); + } + + /** Returns the object with the settings used for calls to listAccountSummaries. */ + public PagedCallSettings< + ListAccountSummariesRequest, + ListAccountSummariesResponse, + ListAccountSummariesPagedResponse> + listAccountSummariesSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountSummariesSettings(); + } + + /** Returns the object with the settings used for calls to getProperty. */ + public UnaryCallSettings getPropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getPropertySettings(); + } + + /** Returns the object with the settings used for calls to listProperties. */ + public PagedCallSettings< + ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> + listPropertiesSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listPropertiesSettings(); + } + + /** Returns the object with the settings used for calls to createProperty. */ + public UnaryCallSettings createPropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createPropertySettings(); + } + + /** Returns the object with the settings used for calls to deleteProperty. */ + public UnaryCallSettings deletePropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deletePropertySettings(); + } + + /** Returns the object with the settings used for calls to updateProperty. */ + public UnaryCallSettings updatePropertySettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updatePropertySettings(); + } + + /** Returns the object with the settings used for calls to createFirebaseLink. */ + public UnaryCallSettings createFirebaseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteFirebaseLink. */ + public UnaryCallSettings deleteFirebaseLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteFirebaseLinkSettings(); + } + + /** Returns the object with the settings used for calls to listFirebaseLinks. */ + public PagedCallSettings< + ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> + listFirebaseLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listFirebaseLinksSettings(); + } + + /** Returns the object with the settings used for calls to createGoogleAdsLink. */ + public UnaryCallSettings + createGoogleAdsLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createGoogleAdsLinkSettings(); + } + + /** Returns the object with the settings used for calls to updateGoogleAdsLink. */ + public UnaryCallSettings + updateGoogleAdsLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateGoogleAdsLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteGoogleAdsLink. */ + public UnaryCallSettings deleteGoogleAdsLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteGoogleAdsLinkSettings(); + } + + /** Returns the object with the settings used for calls to listGoogleAdsLinks. */ + public PagedCallSettings< + ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> + listGoogleAdsLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listGoogleAdsLinksSettings(); + } + + /** Returns the object with the settings used for calls to getDataSharingSettings. */ + public UnaryCallSettings + getDataSharingSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings(); + } + + /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings + getMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listMeasurementProtocolSecretsSettings(); + } + + /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings + createMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings + deleteMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings + updateMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .acknowledgeUserDataCollectionSettings(); + } + + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .searchChangeHistoryEventsSettings(); + } + + /** Returns the object with the settings used for calls to createConversionEvent. */ + public UnaryCallSettings + createConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to updateConversionEvent. */ + public UnaryCallSettings + updateConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to getConversionEvent. */ + public UnaryCallSettings + getConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings deleteConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to listConversionEvents. */ + public PagedCallSettings< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings(); + } + + /** Returns the object with the settings used for calls to createCustomDimension. */ + public UnaryCallSettings + createCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings + updateCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to listCustomDimensions. */ + public PagedCallSettings< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomDimensionsSettings(); + } + + /** Returns the object with the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings archiveCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to getCustomDimension. */ + public UnaryCallSettings + getCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to createCustomMetric. */ + public UnaryCallSettings createCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings updateCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to listCustomMetrics. */ + public PagedCallSettings< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomMetricsSettings(); + } + + /** Returns the object with the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings archiveCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to getCustomMetric. */ + public UnaryCallSettings getCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings + getDataRetentionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDataRetentionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings + updateDataRetentionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateDataRetentionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createDataStream. */ + public UnaryCallSettings createDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to deleteDataStream. */ + public UnaryCallSettings deleteDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to updateDataStream. */ + public UnaryCallSettings updateDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to listDataStreams. */ + public PagedCallSettings< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listDataStreamsSettings(); + } + + /** Returns the object with the settings used for calls to getDataStream. */ + public UnaryCallSettings getDataStreamSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings(); + } + + /** Returns the object with the settings used for calls to runAccessReport. */ + public UnaryCallSettings + runAccessReportSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).runAccessReportSettings(); + } + + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) + throws IOException { + return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AnalyticsAdminServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AnalyticsAdminServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AnalyticsAdminServiceStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AnalyticsAdminServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AnalyticsAdminServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AnalyticsAdminServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AnalyticsAdminServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AnalyticsAdminServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AnalyticsAdminServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AnalyticsAdminServiceStubSettings.newBuilder()); + } + + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AnalyticsAdminServiceStubSettings.newHttpJsonBuilder()); + } + + public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to getAccount. */ + public UnaryCallSettings.Builder getAccountSettings() { + return getStubSettingsBuilder().getAccountSettings(); + } + + /** Returns the builder for the settings used for calls to listAccounts. */ + public PagedCallSettings.Builder< + ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> + listAccountsSettings() { + return getStubSettingsBuilder().listAccountsSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccount. */ + public UnaryCallSettings.Builder deleteAccountSettings() { + return getStubSettingsBuilder().deleteAccountSettings(); + } + + /** Returns the builder for the settings used for calls to updateAccount. */ + public UnaryCallSettings.Builder updateAccountSettings() { + return getStubSettingsBuilder().updateAccountSettings(); + } + + /** Returns the builder for the settings used for calls to provisionAccountTicket. */ + public UnaryCallSettings.Builder + provisionAccountTicketSettings() { + return getStubSettingsBuilder().provisionAccountTicketSettings(); + } + + /** Returns the builder for the settings used for calls to listAccountSummaries. */ + public PagedCallSettings.Builder< + ListAccountSummariesRequest, + ListAccountSummariesResponse, + ListAccountSummariesPagedResponse> + listAccountSummariesSettings() { + return getStubSettingsBuilder().listAccountSummariesSettings(); + } + + /** Returns the builder for the settings used for calls to getProperty. */ + public UnaryCallSettings.Builder getPropertySettings() { + return getStubSettingsBuilder().getPropertySettings(); + } + + /** Returns the builder for the settings used for calls to listProperties. */ + public PagedCallSettings.Builder< + ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> + listPropertiesSettings() { + return getStubSettingsBuilder().listPropertiesSettings(); + } + + /** Returns the builder for the settings used for calls to createProperty. */ + public UnaryCallSettings.Builder createPropertySettings() { + return getStubSettingsBuilder().createPropertySettings(); + } + + /** Returns the builder for the settings used for calls to deleteProperty. */ + public UnaryCallSettings.Builder deletePropertySettings() { + return getStubSettingsBuilder().deletePropertySettings(); + } + + /** Returns the builder for the settings used for calls to updateProperty. */ + public UnaryCallSettings.Builder updatePropertySettings() { + return getStubSettingsBuilder().updatePropertySettings(); + } + + /** Returns the builder for the settings used for calls to createFirebaseLink. */ + public UnaryCallSettings.Builder + createFirebaseLinkSettings() { + return getStubSettingsBuilder().createFirebaseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ + public UnaryCallSettings.Builder + deleteFirebaseLinkSettings() { + return getStubSettingsBuilder().deleteFirebaseLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listFirebaseLinks. */ + public PagedCallSettings.Builder< + ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> + listFirebaseLinksSettings() { + return getStubSettingsBuilder().listFirebaseLinksSettings(); + } + + /** Returns the builder for the settings used for calls to createGoogleAdsLink. */ + public UnaryCallSettings.Builder + createGoogleAdsLinkSettings() { + return getStubSettingsBuilder().createGoogleAdsLinkSettings(); + } + + /** Returns the builder for the settings used for calls to updateGoogleAdsLink. */ + public UnaryCallSettings.Builder + updateGoogleAdsLinkSettings() { + return getStubSettingsBuilder().updateGoogleAdsLinkSettings(); + } + + /** Returns the builder for the settings used for calls to deleteGoogleAdsLink. */ + public UnaryCallSettings.Builder + deleteGoogleAdsLinkSettings() { + return getStubSettingsBuilder().deleteGoogleAdsLinkSettings(); + } + + /** Returns the builder for the settings used for calls to listGoogleAdsLinks. */ + public PagedCallSettings.Builder< + ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> + listGoogleAdsLinksSettings() { + return getStubSettingsBuilder().listGoogleAdsLinksSettings(); + } + + /** Returns the builder for the settings used for calls to getDataSharingSettings. */ + public UnaryCallSettings.Builder + getDataSharingSettingsSettings() { + return getStubSettingsBuilder().getDataSharingSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + getMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().getMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings.Builder< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return getStubSettingsBuilder().listMeasurementProtocolSecretsSettings(); + } + + /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().createMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + deleteMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().deleteMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ + public UnaryCallSettings.Builder< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionSettings() { + return getStubSettingsBuilder().acknowledgeUserDataCollectionSettings(); + } + + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); + } + + /** Returns the builder for the settings used for calls to createConversionEvent. */ + public UnaryCallSettings.Builder + createConversionEventSettings() { + return getStubSettingsBuilder().createConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to updateConversionEvent. */ + public UnaryCallSettings.Builder + updateConversionEventSettings() { + return getStubSettingsBuilder().updateConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to getConversionEvent. */ + public UnaryCallSettings.Builder + getConversionEventSettings() { + return getStubSettingsBuilder().getConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings.Builder + deleteConversionEventSettings() { + return getStubSettingsBuilder().deleteConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to listConversionEvents. */ + public PagedCallSettings.Builder< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return getStubSettingsBuilder().listConversionEventsSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomDimension. */ + public UnaryCallSettings.Builder + createCustomDimensionSettings() { + return getStubSettingsBuilder().createCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings.Builder + updateCustomDimensionSettings() { + return getStubSettingsBuilder().updateCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to listCustomDimensions. */ + public PagedCallSettings.Builder< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return getStubSettingsBuilder().listCustomDimensionsSettings(); + } + + /** Returns the builder for the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings.Builder + archiveCustomDimensionSettings() { + return getStubSettingsBuilder().archiveCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to getCustomDimension. */ + public UnaryCallSettings.Builder + getCustomDimensionSettings() { + return getStubSettingsBuilder().getCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomMetric. */ + public UnaryCallSettings.Builder + createCustomMetricSettings() { + return getStubSettingsBuilder().createCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings.Builder + updateCustomMetricSettings() { + return getStubSettingsBuilder().updateCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to listCustomMetrics. */ + public PagedCallSettings.Builder< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return getStubSettingsBuilder().listCustomMetricsSettings(); + } + + /** Returns the builder for the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings.Builder + archiveCustomMetricSettings() { + return getStubSettingsBuilder().archiveCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to getCustomMetric. */ + public UnaryCallSettings.Builder + getCustomMetricSettings() { + return getStubSettingsBuilder().getCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings.Builder + getDataRetentionSettingsSettings() { + return getStubSettingsBuilder().getDataRetentionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings.Builder + updateDataRetentionSettingsSettings() { + return getStubSettingsBuilder().updateDataRetentionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createDataStream. */ + public UnaryCallSettings.Builder + createDataStreamSettings() { + return getStubSettingsBuilder().createDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to deleteDataStream. */ + public UnaryCallSettings.Builder deleteDataStreamSettings() { + return getStubSettingsBuilder().deleteDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataStream. */ + public UnaryCallSettings.Builder + updateDataStreamSettings() { + return getStubSettingsBuilder().updateDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to listDataStreams. */ + public PagedCallSettings.Builder< + ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> + listDataStreamsSettings() { + return getStubSettingsBuilder().listDataStreamsSettings(); + } + + /** Returns the builder for the settings used for calls to getDataStream. */ + public UnaryCallSettings.Builder getDataStreamSettings() { + return getStubSettingsBuilder().getDataStreamSettings(); + } + + /** Returns the builder for the settings used for calls to runAccessReport. */ + public UnaryCallSettings.Builder + runAccessReportSettings() { + return getStubSettingsBuilder().runAccessReportSettings(); + } + + @Override + public AnalyticsAdminServiceSettings build() throws IOException { + return new AnalyticsAdminServiceSettings(this); + } + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/gapic_metadata.json diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/package-info.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStub.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/AnalyticsAdminServiceStubSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceCallableFactory.java diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java new file mode 100644 index 000000000000..bce69f6f8f3f --- /dev/null +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java @@ -0,0 +1,1994 @@ +/* + * 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. + */ + +package com.google.analytics.admin.v1beta.stub; + +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; +import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; + +import com.google.analytics.admin.v1beta.Account; +import com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest; +import com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse; +import com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest; +import com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest; +import com.google.analytics.admin.v1beta.ConversionEvent; +import com.google.analytics.admin.v1beta.CreateConversionEventRequest; +import com.google.analytics.admin.v1beta.CreateCustomDimensionRequest; +import com.google.analytics.admin.v1beta.CreateCustomMetricRequest; +import com.google.analytics.admin.v1beta.CreateDataStreamRequest; +import com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest; +import com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1beta.CreatePropertyRequest; +import com.google.analytics.admin.v1beta.CustomDimension; +import com.google.analytics.admin.v1beta.CustomMetric; +import com.google.analytics.admin.v1beta.DataRetentionSettings; +import com.google.analytics.admin.v1beta.DataSharingSettings; +import com.google.analytics.admin.v1beta.DataStream; +import com.google.analytics.admin.v1beta.DeleteAccountRequest; +import com.google.analytics.admin.v1beta.DeleteConversionEventRequest; +import com.google.analytics.admin.v1beta.DeleteDataStreamRequest; +import com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; +import com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1beta.DeletePropertyRequest; +import com.google.analytics.admin.v1beta.FirebaseLink; +import com.google.analytics.admin.v1beta.GetAccountRequest; +import com.google.analytics.admin.v1beta.GetConversionEventRequest; +import com.google.analytics.admin.v1beta.GetCustomDimensionRequest; +import com.google.analytics.admin.v1beta.GetCustomMetricRequest; +import com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; +import com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1beta.GetDataStreamRequest; +import com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1beta.GetPropertyRequest; +import com.google.analytics.admin.v1beta.GoogleAdsLink; +import com.google.analytics.admin.v1beta.ListAccountSummariesRequest; +import com.google.analytics.admin.v1beta.ListAccountSummariesResponse; +import com.google.analytics.admin.v1beta.ListAccountsRequest; +import com.google.analytics.admin.v1beta.ListAccountsResponse; +import com.google.analytics.admin.v1beta.ListConversionEventsRequest; +import com.google.analytics.admin.v1beta.ListConversionEventsResponse; +import com.google.analytics.admin.v1beta.ListCustomDimensionsRequest; +import com.google.analytics.admin.v1beta.ListCustomDimensionsResponse; +import com.google.analytics.admin.v1beta.ListCustomMetricsRequest; +import com.google.analytics.admin.v1beta.ListCustomMetricsResponse; +import com.google.analytics.admin.v1beta.ListDataStreamsRequest; +import com.google.analytics.admin.v1beta.ListDataStreamsResponse; +import com.google.analytics.admin.v1beta.ListFirebaseLinksRequest; +import com.google.analytics.admin.v1beta.ListFirebaseLinksResponse; +import com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; +import com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; +import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; +import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; +import com.google.analytics.admin.v1beta.ListPropertiesRequest; +import com.google.analytics.admin.v1beta.ListPropertiesResponse; +import com.google.analytics.admin.v1beta.MeasurementProtocolSecret; +import com.google.analytics.admin.v1beta.Property; +import com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest; +import com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1beta.RunAccessReportRequest; +import com.google.analytics.admin.v1beta.RunAccessReportResponse; +import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest; +import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; +import com.google.analytics.admin.v1beta.UpdateAccountRequest; +import com.google.analytics.admin.v1beta.UpdateConversionEventRequest; +import com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest; +import com.google.analytics.admin.v1beta.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1beta.UpdateDataStreamRequest; +import com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; +import com.google.analytics.admin.v1beta.UpdatePropertyRequest; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AnalyticsAdminService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { + private static final MethodDescriptor getAccountMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount") + .setRequestMarshaller(ProtoUtils.marshaller(GetAccountRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAccountsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts") + .setRequestMarshaller(ProtoUtils.marshaller(ListAccountsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccountsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor deleteAccountMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteAccountRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateAccountMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAccountRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> + provisionAccountTicketMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket") + .setRequestMarshaller( + ProtoUtils.marshaller(ProvisionAccountTicketRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ProvisionAccountTicketResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listAccountSummariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccountSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccountSummariesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor getPropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty") + .setRequestMarshaller(ProtoUtils.marshaller(GetPropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listPropertiesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties") + .setRequestMarshaller( + ProtoUtils.marshaller(ListPropertiesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListPropertiesResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createPropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(CreatePropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deletePropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(DeletePropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updatePropertyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdatePropertyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createFirebaseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateFirebaseLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteFirebaseLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteFirebaseLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listFirebaseLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListFirebaseLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListFirebaseLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createGoogleAdsLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateGoogleAdsLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateGoogleAdsLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateGoogleAdsLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteGoogleAdsLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteGoogleAdsLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listGoogleAdsLinksMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks") + .setRequestMarshaller( + ProtoUtils.marshaller(ListGoogleAdsLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListGoogleAdsLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataSharingSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataSharingSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + getMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMeasurementProtocolSecretsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMeasurementProtocolSecretsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection") + .setRequestMarshaller( + ProtoUtils.marshaller(AcknowledgeUserDataCollectionRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(AcknowledgeUserDataCollectionResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> + searchChangeHistoryEventsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listConversionEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConversionEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCustomDimensionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomDimensionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomDimensionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCustomMetricsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomMetricsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomMetricsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataRetentionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataRetentionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataRetentionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataRetentionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listDataStreamsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams") + .setRequestMarshaller( + ProtoUtils.marshaller(ListDataStreamsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListDataStreamsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getDataStreamMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataStreamRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + runAccessReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport") + .setRequestMarshaller( + ProtoUtils.marshaller(RunAccessReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RunAccessReportResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable getAccountCallable; + private final UnaryCallable listAccountsCallable; + private final UnaryCallable + listAccountsPagedCallable; + private final UnaryCallable deleteAccountCallable; + private final UnaryCallable updateAccountCallable; + private final UnaryCallable + provisionAccountTicketCallable; + private final UnaryCallable + listAccountSummariesCallable; + private final UnaryCallable + listAccountSummariesPagedCallable; + private final UnaryCallable getPropertyCallable; + private final UnaryCallable listPropertiesCallable; + private final UnaryCallable + listPropertiesPagedCallable; + private final UnaryCallable createPropertyCallable; + private final UnaryCallable deletePropertyCallable; + private final UnaryCallable updatePropertyCallable; + private final UnaryCallable createFirebaseLinkCallable; + private final UnaryCallable deleteFirebaseLinkCallable; + private final UnaryCallable + listFirebaseLinksCallable; + private final UnaryCallable + listFirebaseLinksPagedCallable; + private final UnaryCallable + createGoogleAdsLinkCallable; + private final UnaryCallable + updateGoogleAdsLinkCallable; + private final UnaryCallable deleteGoogleAdsLinkCallable; + private final UnaryCallable + listGoogleAdsLinksCallable; + private final UnaryCallable + listGoogleAdsLinksPagedCallable; + private final UnaryCallable + getDataSharingSettingsCallable; + private final UnaryCallable + getMeasurementProtocolSecretCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable; + private final UnaryCallable + createMeasurementProtocolSecretCallable; + private final UnaryCallable + deleteMeasurementProtocolSecretCallable; + private final UnaryCallable + updateMeasurementProtocolSecretCallable; + private final UnaryCallable< + AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollectionCallable; + private final UnaryCallable + searchChangeHistoryEventsCallable; + private final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable; + private final UnaryCallable + createConversionEventCallable; + private final UnaryCallable + updateConversionEventCallable; + private final UnaryCallable + getConversionEventCallable; + private final UnaryCallable deleteConversionEventCallable; + private final UnaryCallable + listConversionEventsCallable; + private final UnaryCallable + listConversionEventsPagedCallable; + private final UnaryCallable + createCustomDimensionCallable; + private final UnaryCallable + updateCustomDimensionCallable; + private final UnaryCallable + listCustomDimensionsCallable; + private final UnaryCallable + listCustomDimensionsPagedCallable; + private final UnaryCallable archiveCustomDimensionCallable; + private final UnaryCallable + getCustomDimensionCallable; + private final UnaryCallable createCustomMetricCallable; + private final UnaryCallable updateCustomMetricCallable; + private final UnaryCallable + listCustomMetricsCallable; + private final UnaryCallable + listCustomMetricsPagedCallable; + private final UnaryCallable archiveCustomMetricCallable; + private final UnaryCallable getCustomMetricCallable; + private final UnaryCallable + getDataRetentionSettingsCallable; + private final UnaryCallable + updateDataRetentionSettingsCallable; + private final UnaryCallable createDataStreamCallable; + private final UnaryCallable deleteDataStreamCallable; + private final UnaryCallable updateDataStreamCallable; + private final UnaryCallable + listDataStreamsCallable; + private final UnaryCallable + listDataStreamsPagedCallable; + private final UnaryCallable getDataStreamCallable; + private final UnaryCallable + runAccessReportCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAnalyticsAdminServiceStub create( + AnalyticsAdminServiceStubSettings settings) throws IOException { + return new GrpcAnalyticsAdminServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAnalyticsAdminServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAnalyticsAdminServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAnalyticsAdminServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcAnalyticsAdminServiceStub( + AnalyticsAdminServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings getAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings listAccountsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccountsMethodDescriptor) + .build(); + GrpcCallSettings deleteAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateAccountTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAccountMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("account.name", String.valueOf(request.getAccount().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + provisionAccountTicketTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(provisionAccountTicketMethodDescriptor) + .build(); + GrpcCallSettings + listAccountSummariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccountSummariesMethodDescriptor) + .build(); + GrpcCallSettings getPropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getPropertyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listPropertiesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listPropertiesMethodDescriptor) + .build(); + GrpcCallSettings createPropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createPropertyMethodDescriptor) + .build(); + GrpcCallSettings deletePropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deletePropertyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updatePropertyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updatePropertyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("property.name", String.valueOf(request.getProperty().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createFirebaseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createFirebaseLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteFirebaseLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listFirebaseLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listFirebaseLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "google_ads_link.name", + String.valueOf(request.getGoogleAdsLink().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteGoogleAdsLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listGoogleAdsLinksTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDataSharingSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listMeasurementProtocolSecretsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteMeasurementProtocolSecretTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "measurement_protocol_secret.name", + String.valueOf(request.getMeasurementProtocolSecret().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + acknowledgeUserDataCollectionTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("property", String.valueOf(request.getProperty())); + return builder.build(); + }) + .build(); + GrpcCallSettings + searchChangeHistoryEventsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("account", String.valueOf(request.getAccount())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "conversion_event.name", + String.valueOf(request.getConversionEvent().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversionEventMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listConversionEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConversionEventsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + createCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_dimension.name", + String.valueOf(request.getCustomDimension().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listCustomDimensionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomDimensionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings archiveCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomDimensionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listCustomMetricsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomMetricsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings archiveCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomMetricMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + getDataRetentionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + updateDataRetentionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_retention_settings.name", + String.valueOf(request.getDataRetentionSettings().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings createDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings updateDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "data_stream.name", String.valueOf(request.getDataStream().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + listDataStreamsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listDataStreamsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); + GrpcCallSettings getDataStreamTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataStreamMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + runAccessReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runAccessReportMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("entity", String.valueOf(request.getEntity())); + return builder.build(); + }) + .build(); + + this.getAccountCallable = + callableFactory.createUnaryCallable( + getAccountTransportSettings, settings.getAccountSettings(), clientContext); + this.listAccountsCallable = + callableFactory.createUnaryCallable( + listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); + this.listAccountsPagedCallable = + callableFactory.createPagedCallable( + listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); + this.deleteAccountCallable = + callableFactory.createUnaryCallable( + deleteAccountTransportSettings, settings.deleteAccountSettings(), clientContext); + this.updateAccountCallable = + callableFactory.createUnaryCallable( + updateAccountTransportSettings, settings.updateAccountSettings(), clientContext); + this.provisionAccountTicketCallable = + callableFactory.createUnaryCallable( + provisionAccountTicketTransportSettings, + settings.provisionAccountTicketSettings(), + clientContext); + this.listAccountSummariesCallable = + callableFactory.createUnaryCallable( + listAccountSummariesTransportSettings, + settings.listAccountSummariesSettings(), + clientContext); + this.listAccountSummariesPagedCallable = + callableFactory.createPagedCallable( + listAccountSummariesTransportSettings, + settings.listAccountSummariesSettings(), + clientContext); + this.getPropertyCallable = + callableFactory.createUnaryCallable( + getPropertyTransportSettings, settings.getPropertySettings(), clientContext); + this.listPropertiesCallable = + callableFactory.createUnaryCallable( + listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); + this.listPropertiesPagedCallable = + callableFactory.createPagedCallable( + listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); + this.createPropertyCallable = + callableFactory.createUnaryCallable( + createPropertyTransportSettings, settings.createPropertySettings(), clientContext); + this.deletePropertyCallable = + callableFactory.createUnaryCallable( + deletePropertyTransportSettings, settings.deletePropertySettings(), clientContext); + this.updatePropertyCallable = + callableFactory.createUnaryCallable( + updatePropertyTransportSettings, settings.updatePropertySettings(), clientContext); + this.createFirebaseLinkCallable = + callableFactory.createUnaryCallable( + createFirebaseLinkTransportSettings, + settings.createFirebaseLinkSettings(), + clientContext); + this.deleteFirebaseLinkCallable = + callableFactory.createUnaryCallable( + deleteFirebaseLinkTransportSettings, + settings.deleteFirebaseLinkSettings(), + clientContext); + this.listFirebaseLinksCallable = + callableFactory.createUnaryCallable( + listFirebaseLinksTransportSettings, + settings.listFirebaseLinksSettings(), + clientContext); + this.listFirebaseLinksPagedCallable = + callableFactory.createPagedCallable( + listFirebaseLinksTransportSettings, + settings.listFirebaseLinksSettings(), + clientContext); + this.createGoogleAdsLinkCallable = + callableFactory.createUnaryCallable( + createGoogleAdsLinkTransportSettings, + settings.createGoogleAdsLinkSettings(), + clientContext); + this.updateGoogleAdsLinkCallable = + callableFactory.createUnaryCallable( + updateGoogleAdsLinkTransportSettings, + settings.updateGoogleAdsLinkSettings(), + clientContext); + this.deleteGoogleAdsLinkCallable = + callableFactory.createUnaryCallable( + deleteGoogleAdsLinkTransportSettings, + settings.deleteGoogleAdsLinkSettings(), + clientContext); + this.listGoogleAdsLinksCallable = + callableFactory.createUnaryCallable( + listGoogleAdsLinksTransportSettings, + settings.listGoogleAdsLinksSettings(), + clientContext); + this.listGoogleAdsLinksPagedCallable = + callableFactory.createPagedCallable( + listGoogleAdsLinksTransportSettings, + settings.listGoogleAdsLinksSettings(), + clientContext); + this.getDataSharingSettingsCallable = + callableFactory.createUnaryCallable( + getDataSharingSettingsTransportSettings, + settings.getDataSharingSettingsSettings(), + clientContext); + this.getMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + getMeasurementProtocolSecretTransportSettings, + settings.getMeasurementProtocolSecretSettings(), + clientContext); + this.listMeasurementProtocolSecretsCallable = + callableFactory.createUnaryCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.listMeasurementProtocolSecretsPagedCallable = + callableFactory.createPagedCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.createMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + createMeasurementProtocolSecretTransportSettings, + settings.createMeasurementProtocolSecretSettings(), + clientContext); + this.deleteMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + deleteMeasurementProtocolSecretTransportSettings, + settings.deleteMeasurementProtocolSecretSettings(), + clientContext); + this.updateMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + updateMeasurementProtocolSecretTransportSettings, + settings.updateMeasurementProtocolSecretSettings(), + clientContext); + this.acknowledgeUserDataCollectionCallable = + callableFactory.createUnaryCallable( + acknowledgeUserDataCollectionTransportSettings, + settings.acknowledgeUserDataCollectionSettings(), + clientContext); + this.searchChangeHistoryEventsCallable = + callableFactory.createUnaryCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); + this.searchChangeHistoryEventsPagedCallable = + callableFactory.createPagedCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); + this.createConversionEventCallable = + callableFactory.createUnaryCallable( + createConversionEventTransportSettings, + settings.createConversionEventSettings(), + clientContext); + this.updateConversionEventCallable = + callableFactory.createUnaryCallable( + updateConversionEventTransportSettings, + settings.updateConversionEventSettings(), + clientContext); + this.getConversionEventCallable = + callableFactory.createUnaryCallable( + getConversionEventTransportSettings, + settings.getConversionEventSettings(), + clientContext); + this.deleteConversionEventCallable = + callableFactory.createUnaryCallable( + deleteConversionEventTransportSettings, + settings.deleteConversionEventSettings(), + clientContext); + this.listConversionEventsCallable = + callableFactory.createUnaryCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.listConversionEventsPagedCallable = + callableFactory.createPagedCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.createCustomDimensionCallable = + callableFactory.createUnaryCallable( + createCustomDimensionTransportSettings, + settings.createCustomDimensionSettings(), + clientContext); + this.updateCustomDimensionCallable = + callableFactory.createUnaryCallable( + updateCustomDimensionTransportSettings, + settings.updateCustomDimensionSettings(), + clientContext); + this.listCustomDimensionsCallable = + callableFactory.createUnaryCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.listCustomDimensionsPagedCallable = + callableFactory.createPagedCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.archiveCustomDimensionCallable = + callableFactory.createUnaryCallable( + archiveCustomDimensionTransportSettings, + settings.archiveCustomDimensionSettings(), + clientContext); + this.getCustomDimensionCallable = + callableFactory.createUnaryCallable( + getCustomDimensionTransportSettings, + settings.getCustomDimensionSettings(), + clientContext); + this.createCustomMetricCallable = + callableFactory.createUnaryCallable( + createCustomMetricTransportSettings, + settings.createCustomMetricSettings(), + clientContext); + this.updateCustomMetricCallable = + callableFactory.createUnaryCallable( + updateCustomMetricTransportSettings, + settings.updateCustomMetricSettings(), + clientContext); + this.listCustomMetricsCallable = + callableFactory.createUnaryCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.listCustomMetricsPagedCallable = + callableFactory.createPagedCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.archiveCustomMetricCallable = + callableFactory.createUnaryCallable( + archiveCustomMetricTransportSettings, + settings.archiveCustomMetricSettings(), + clientContext); + this.getCustomMetricCallable = + callableFactory.createUnaryCallable( + getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext); + this.getDataRetentionSettingsCallable = + callableFactory.createUnaryCallable( + getDataRetentionSettingsTransportSettings, + settings.getDataRetentionSettingsSettings(), + clientContext); + this.updateDataRetentionSettingsCallable = + callableFactory.createUnaryCallable( + updateDataRetentionSettingsTransportSettings, + settings.updateDataRetentionSettingsSettings(), + clientContext); + this.createDataStreamCallable = + callableFactory.createUnaryCallable( + createDataStreamTransportSettings, settings.createDataStreamSettings(), clientContext); + this.deleteDataStreamCallable = + callableFactory.createUnaryCallable( + deleteDataStreamTransportSettings, settings.deleteDataStreamSettings(), clientContext); + this.updateDataStreamCallable = + callableFactory.createUnaryCallable( + updateDataStreamTransportSettings, settings.updateDataStreamSettings(), clientContext); + this.listDataStreamsCallable = + callableFactory.createUnaryCallable( + listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); + this.listDataStreamsPagedCallable = + callableFactory.createPagedCallable( + listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); + this.getDataStreamCallable = + callableFactory.createUnaryCallable( + getDataStreamTransportSettings, settings.getDataStreamSettings(), clientContext); + this.runAccessReportCallable = + callableFactory.createUnaryCallable( + runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable getAccountCallable() { + return getAccountCallable; + } + + @Override + public UnaryCallable listAccountsCallable() { + return listAccountsCallable; + } + + @Override + public UnaryCallable listAccountsPagedCallable() { + return listAccountsPagedCallable; + } + + @Override + public UnaryCallable deleteAccountCallable() { + return deleteAccountCallable; + } + + @Override + public UnaryCallable updateAccountCallable() { + return updateAccountCallable; + } + + @Override + public UnaryCallable + provisionAccountTicketCallable() { + return provisionAccountTicketCallable; + } + + @Override + public UnaryCallable + listAccountSummariesCallable() { + return listAccountSummariesCallable; + } + + @Override + public UnaryCallable + listAccountSummariesPagedCallable() { + return listAccountSummariesPagedCallable; + } + + @Override + public UnaryCallable getPropertyCallable() { + return getPropertyCallable; + } + + @Override + public UnaryCallable listPropertiesCallable() { + return listPropertiesCallable; + } + + @Override + public UnaryCallable + listPropertiesPagedCallable() { + return listPropertiesPagedCallable; + } + + @Override + public UnaryCallable createPropertyCallable() { + return createPropertyCallable; + } + + @Override + public UnaryCallable deletePropertyCallable() { + return deletePropertyCallable; + } + + @Override + public UnaryCallable updatePropertyCallable() { + return updatePropertyCallable; + } + + @Override + public UnaryCallable createFirebaseLinkCallable() { + return createFirebaseLinkCallable; + } + + @Override + public UnaryCallable deleteFirebaseLinkCallable() { + return deleteFirebaseLinkCallable; + } + + @Override + public UnaryCallable + listFirebaseLinksCallable() { + return listFirebaseLinksCallable; + } + + @Override + public UnaryCallable + listFirebaseLinksPagedCallable() { + return listFirebaseLinksPagedCallable; + } + + @Override + public UnaryCallable createGoogleAdsLinkCallable() { + return createGoogleAdsLinkCallable; + } + + @Override + public UnaryCallable updateGoogleAdsLinkCallable() { + return updateGoogleAdsLinkCallable; + } + + @Override + public UnaryCallable deleteGoogleAdsLinkCallable() { + return deleteGoogleAdsLinkCallable; + } + + @Override + public UnaryCallable + listGoogleAdsLinksCallable() { + return listGoogleAdsLinksCallable; + } + + @Override + public UnaryCallable + listGoogleAdsLinksPagedCallable() { + return listGoogleAdsLinksPagedCallable; + } + + @Override + public UnaryCallable + getDataSharingSettingsCallable() { + return getDataSharingSettingsCallable; + } + + @Override + public UnaryCallable + getMeasurementProtocolSecretCallable() { + return getMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable() { + return listMeasurementProtocolSecretsCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable() { + return listMeasurementProtocolSecretsPagedCallable; + } + + @Override + public UnaryCallable + createMeasurementProtocolSecretCallable() { + return createMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + deleteMeasurementProtocolSecretCallable() { + return deleteMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + updateMeasurementProtocolSecretCallable() { + return updateMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + acknowledgeUserDataCollectionCallable() { + return acknowledgeUserDataCollectionCallable; + } + + @Override + public UnaryCallable + searchChangeHistoryEventsCallable() { + return searchChangeHistoryEventsCallable; + } + + @Override + public UnaryCallable + searchChangeHistoryEventsPagedCallable() { + return searchChangeHistoryEventsPagedCallable; + } + + @Override + public UnaryCallable + createConversionEventCallable() { + return createConversionEventCallable; + } + + @Override + public UnaryCallable + updateConversionEventCallable() { + return updateConversionEventCallable; + } + + @Override + public UnaryCallable getConversionEventCallable() { + return getConversionEventCallable; + } + + @Override + public UnaryCallable deleteConversionEventCallable() { + return deleteConversionEventCallable; + } + + @Override + public UnaryCallable + listConversionEventsCallable() { + return listConversionEventsCallable; + } + + @Override + public UnaryCallable + listConversionEventsPagedCallable() { + return listConversionEventsPagedCallable; + } + + @Override + public UnaryCallable + createCustomDimensionCallable() { + return createCustomDimensionCallable; + } + + @Override + public UnaryCallable + updateCustomDimensionCallable() { + return updateCustomDimensionCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsCallable() { + return listCustomDimensionsCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsPagedCallable() { + return listCustomDimensionsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomDimensionCallable() { + return archiveCustomDimensionCallable; + } + + @Override + public UnaryCallable getCustomDimensionCallable() { + return getCustomDimensionCallable; + } + + @Override + public UnaryCallable createCustomMetricCallable() { + return createCustomMetricCallable; + } + + @Override + public UnaryCallable updateCustomMetricCallable() { + return updateCustomMetricCallable; + } + + @Override + public UnaryCallable + listCustomMetricsCallable() { + return listCustomMetricsCallable; + } + + @Override + public UnaryCallable + listCustomMetricsPagedCallable() { + return listCustomMetricsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomMetricCallable() { + return archiveCustomMetricCallable; + } + + @Override + public UnaryCallable getCustomMetricCallable() { + return getCustomMetricCallable; + } + + @Override + public UnaryCallable + getDataRetentionSettingsCallable() { + return getDataRetentionSettingsCallable; + } + + @Override + public UnaryCallable + updateDataRetentionSettingsCallable() { + return updateDataRetentionSettingsCallable; + } + + @Override + public UnaryCallable createDataStreamCallable() { + return createDataStreamCallable; + } + + @Override + public UnaryCallable deleteDataStreamCallable() { + return deleteDataStreamCallable; + } + + @Override + public UnaryCallable updateDataStreamCallable() { + return updateDataStreamCallable; + } + + @Override + public UnaryCallable listDataStreamsCallable() { + return listDataStreamsCallable; + } + + @Override + public UnaryCallable + listDataStreamsPagedCallable() { + return listDataStreamsPagedCallable; + } + + @Override + public UnaryCallable getDataStreamCallable() { + return getDataStreamCallable; + } + + @Override + public UnaryCallable runAccessReportCallable() { + return runAccessReportCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceCallableFactory.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java rename to java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/HttpJsonAnalyticsAdminServiceStub.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json rename to java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json rename to java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1beta/reflect-config.json diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceClientTest.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminService.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java rename to java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1beta/MockAnalyticsAdminServiceImpl.java diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java new file mode 100644 index 000000000000..51a3b6b90303 --- /dev/null +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -0,0 +1,16824 @@ +/* + * 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. + */ +package com.google.analytics.admin.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Service Interface for the Analytics Admin API (GA4).
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/analytics/admin/v1alpha/analytics_admin.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AnalyticsAdminServiceGrpc { + + private AnalyticsAdminServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.analytics.admin.v1alpha.AnalyticsAdminService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccountRequest, + com.google.analytics.admin.v1alpha.Account> + getGetAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccount", + requestType = com.google.analytics.admin.v1alpha.GetAccountRequest.class, + responseType = com.google.analytics.admin.v1alpha.Account.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccountRequest, + com.google.analytics.admin.v1alpha.Account> + getGetAccountMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccountRequest, + com.google.analytics.admin.v1alpha.Account> + getGetAccountMethod; + if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { + AnalyticsAdminServiceGrpc.getGetAccountMethod = + getGetAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Account.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetAccount")) + .build(); + } + } + } + return getGetAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccountsRequest, + com.google.analytics.admin.v1alpha.ListAccountsResponse> + getListAccountsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccounts", + requestType = com.google.analytics.admin.v1alpha.ListAccountsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAccountsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccountsRequest, + com.google.analytics.admin.v1alpha.ListAccountsResponse> + getListAccountsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccountsRequest, + com.google.analytics.admin.v1alpha.ListAccountsResponse> + getListAccountsMethod; + if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { + AnalyticsAdminServiceGrpc.getListAccountsMethod = + getListAccountsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccounts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccountsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccountsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccounts")) + .build(); + } + } + } + return getListAccountsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccountRequest, com.google.protobuf.Empty> + getDeleteAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccount", + requestType = com.google.analytics.admin.v1alpha.DeleteAccountRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccountRequest, com.google.protobuf.Empty> + getDeleteAccountMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccountRequest, com.google.protobuf.Empty> + getDeleteAccountMethod; + if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { + AnalyticsAdminServiceGrpc.getDeleteAccountMethod = + getDeleteAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAccount")) + .build(); + } + } + } + return getDeleteAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccountRequest, + com.google.analytics.admin.v1alpha.Account> + getUpdateAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccount", + requestType = com.google.analytics.admin.v1alpha.UpdateAccountRequest.class, + responseType = com.google.analytics.admin.v1alpha.Account.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccountRequest, + com.google.analytics.admin.v1alpha.Account> + getUpdateAccountMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccountRequest, + com.google.analytics.admin.v1alpha.Account> + getUpdateAccountMethod; + if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { + AnalyticsAdminServiceGrpc.getUpdateAccountMethod = + getUpdateAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Account.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAccount")) + .build(); + } + } + } + return getUpdateAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + getProvisionAccountTicketMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ProvisionAccountTicket", + requestType = com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.class, + responseType = com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + getProvisionAccountTicketMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + getProvisionAccountTicketMethod; + if ((getProvisionAccountTicketMethod = + AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getProvisionAccountTicketMethod = + AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) + == null) { + AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod = + getProvisionAccountTicketMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ProvisionAccountTicket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ProvisionAccountTicket")) + .build(); + } + } + } + return getProvisionAccountTicketMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> + getListAccountSummariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccountSummaries", + requestType = com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> + getListAccountSummariesMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> + getListAccountSummariesMethod; + if ((getListAccountSummariesMethod = AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAccountSummariesMethod = + AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) + == null) { + AnalyticsAdminServiceGrpc.getListAccountSummariesMethod = + getListAccountSummariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAccountSummaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccountSummaries")) + .build(); + } + } + } + return getListAccountSummariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetPropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getGetPropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetProperty", + requestType = com.google.analytics.admin.v1alpha.GetPropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetPropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getGetPropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetPropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getGetPropertyMethod; + if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getGetPropertyMethod = + getGetPropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetPropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetProperty")) + .build(); + } + } + } + return getGetPropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListPropertiesRequest, + com.google.analytics.admin.v1alpha.ListPropertiesResponse> + getListPropertiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListProperties", + requestType = com.google.analytics.admin.v1alpha.ListPropertiesRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListPropertiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListPropertiesRequest, + com.google.analytics.admin.v1alpha.ListPropertiesResponse> + getListPropertiesMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListPropertiesRequest, + com.google.analytics.admin.v1alpha.ListPropertiesResponse> + getListPropertiesMethod; + if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { + AnalyticsAdminServiceGrpc.getListPropertiesMethod = + getListPropertiesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProperties")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListPropertiesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListPropertiesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListProperties")) + .build(); + } + } + } + return getListPropertiesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreatePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getCreatePropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateProperty", + requestType = com.google.analytics.admin.v1alpha.CreatePropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreatePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getCreatePropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreatePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getCreatePropertyMethod; + if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getCreatePropertyMethod = + getCreatePropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreatePropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateProperty")) + .build(); + } + } + } + return getCreatePropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getDeletePropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteProperty", + requestType = com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getDeletePropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getDeletePropertyMethod; + if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getDeletePropertyMethod = + getDeletePropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeletePropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteProperty")) + .build(); + } + } + } + return getDeletePropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdatePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getUpdatePropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateProperty", + requestType = com.google.analytics.admin.v1alpha.UpdatePropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdatePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getUpdatePropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdatePropertyRequest, + com.google.analytics.admin.v1alpha.Property> + getUpdatePropertyMethod; + if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getUpdatePropertyMethod = + getUpdatePropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateProperty")) + .build(); + } + } + } + return getUpdatePropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink> + getCreateFirebaseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFirebaseLink", + requestType = com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.FirebaseLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink> + getCreateFirebaseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink> + getCreateFirebaseLinkMethod; + if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod = + getCreateFirebaseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFirebaseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateFirebaseLink")) + .build(); + } + } + } + return getCreateFirebaseLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, com.google.protobuf.Empty> + getDeleteFirebaseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFirebaseLink", + requestType = com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, com.google.protobuf.Empty> + getDeleteFirebaseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, com.google.protobuf.Empty> + getDeleteFirebaseLinkMethod; + if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod = + getDeleteFirebaseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFirebaseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteFirebaseLink")) + .build(); + } + } + } + return getDeleteFirebaseLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> + getListFirebaseLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFirebaseLinks", + requestType = com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> + getListFirebaseLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> + getListFirebaseLinksMethod; + if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod = + getListFirebaseLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFirebaseLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListFirebaseLinks")) + .build(); + } + } + } + return getListFirebaseLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, + com.google.analytics.admin.v1alpha.GlobalSiteTag> + getGetGlobalSiteTagMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGlobalSiteTag", + requestType = com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.class, + responseType = com.google.analytics.admin.v1alpha.GlobalSiteTag.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, + com.google.analytics.admin.v1alpha.GlobalSiteTag> + getGetGlobalSiteTagMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, + com.google.analytics.admin.v1alpha.GlobalSiteTag> + getGetGlobalSiteTagMethod; + if ((getGetGlobalSiteTagMethod = AnalyticsAdminServiceGrpc.getGetGlobalSiteTagMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetGlobalSiteTagMethod = AnalyticsAdminServiceGrpc.getGetGlobalSiteTagMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetGlobalSiteTagMethod = + getGetGlobalSiteTagMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlobalSiteTag")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GlobalSiteTag + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetGlobalSiteTag")) + .build(); + } + } + } + return getGetGlobalSiteTagMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink> + getCreateGoogleAdsLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGoogleAdsLink", + requestType = com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleAdsLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink> + getCreateGoogleAdsLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink> + getCreateGoogleAdsLinkMethod; + if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod = + getCreateGoogleAdsLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateGoogleAdsLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleAdsLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateGoogleAdsLink")) + .build(); + } + } + } + return getCreateGoogleAdsLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink> + getUpdateGoogleAdsLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleAdsLink", + requestType = com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleAdsLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink> + getUpdateGoogleAdsLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink> + getUpdateGoogleAdsLinkMethod; + if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod = + getUpdateGoogleAdsLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateGoogleAdsLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleAdsLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateGoogleAdsLink")) + .build(); + } + } + } + return getUpdateGoogleAdsLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, com.google.protobuf.Empty> + getDeleteGoogleAdsLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGoogleAdsLink", + requestType = com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, com.google.protobuf.Empty> + getDeleteGoogleAdsLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, + com.google.protobuf.Empty> + getDeleteGoogleAdsLinkMethod; + if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod = + getDeleteGoogleAdsLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteGoogleAdsLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteGoogleAdsLink")) + .build(); + } + } + } + return getDeleteGoogleAdsLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> + getListGoogleAdsLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGoogleAdsLinks", + requestType = com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> + getListGoogleAdsLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> + getListGoogleAdsLinksMethod; + if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod = + getListGoogleAdsLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGoogleAdsLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListGoogleAdsLinks")) + .build(); + } + } + } + return getListGoogleAdsLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1alpha.DataSharingSettings> + getGetDataSharingSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataSharingSettings", + requestType = com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataSharingSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1alpha.DataSharingSettings> + getGetDataSharingSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1alpha.DataSharingSettings> + getGetDataSharingSettingsMethod; + if ((getGetDataSharingSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataSharingSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod = + getGetDataSharingSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataSharingSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataSharingSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDataSharingSettings")) + .build(); + } + } + } + return getGetDataSharingSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod = + getGetMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetMeasurementProtocolSecret")) + .build(); + } + } + } + return getGetMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMeasurementProtocolSecrets", + requestType = com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + responseType = + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod = + getListMeasurementProtocolSecretsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMeasurementProtocolSecrets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListMeasurementProtocolSecretsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListMeasurementProtocolSecretsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListMeasurementProtocolSecrets")) + .build(); + } + } + } + return getListMeasurementProtocolSecretsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod = + getCreateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateMeasurementProtocolSecret")) + .build(); + } + } + } + return getCreateMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod = + getDeleteMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteMeasurementProtocolSecret")) + .build(); + } + } + } + return getDeleteMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod = + getUpdateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateMeasurementProtocolSecret")) + .build(); + } + } + } + return getUpdateMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AcknowledgeUserDataCollection", + requestType = com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, + responseType = com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod; + if ((getAcknowledgeUserDataCollectionMethod = + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getAcknowledgeUserDataCollectionMethod = + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) + == null) { + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod = + getAcknowledgeUserDataCollectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AcknowledgeUserDataCollection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .AcknowledgeUserDataCollectionRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .AcknowledgeUserDataCollectionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "AcknowledgeUserDataCollection")) + .build(); + } + } + } + return getAcknowledgeUserDataCollectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getGetSKAdNetworkConversionValueSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSKAdNetworkConversionValueSchema", + requestType = + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.class, + responseType = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getGetSKAdNetworkConversionValueSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getGetSKAdNetworkConversionValueSchemaMethod; + if ((getGetSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getGetSKAdNetworkConversionValueSchemaMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getGetSKAdNetworkConversionValueSchemaMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetSKAdNetworkConversionValueSchemaMethod = + getGetSKAdNetworkConversionValueSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetSKAdNetworkConversionValueSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .GetSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetSKAdNetworkConversionValueSchema")) + .build(); + } + } + } + return getGetSKAdNetworkConversionValueSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getCreateSKAdNetworkConversionValueSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSKAdNetworkConversionValueSchema", + requestType = + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.class, + responseType = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getCreateSKAdNetworkConversionValueSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getCreateSKAdNetworkConversionValueSchemaMethod; + if ((getCreateSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getCreateSKAdNetworkConversionValueSchemaMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getCreateSKAdNetworkConversionValueSchemaMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateSKAdNetworkConversionValueSchemaMethod = + getCreateSKAdNetworkConversionValueSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateSKAdNetworkConversionValueSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateSKAdNetworkConversionValueSchema")) + .build(); + } + } + } + return getCreateSKAdNetworkConversionValueSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest, + com.google.protobuf.Empty> + getDeleteSKAdNetworkConversionValueSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSKAdNetworkConversionValueSchema", + requestType = + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest, + com.google.protobuf.Empty> + getDeleteSKAdNetworkConversionValueSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest, + com.google.protobuf.Empty> + getDeleteSKAdNetworkConversionValueSchemaMethod; + if ((getDeleteSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getDeleteSKAdNetworkConversionValueSchemaMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getDeleteSKAdNetworkConversionValueSchemaMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteSKAdNetworkConversionValueSchemaMethod = + getDeleteSKAdNetworkConversionValueSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteSKAdNetworkConversionValueSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteSKAdNetworkConversionValueSchema")) + .build(); + } + } + } + return getDeleteSKAdNetworkConversionValueSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getUpdateSKAdNetworkConversionValueSchemaMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSKAdNetworkConversionValueSchema", + requestType = + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.class, + responseType = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getUpdateSKAdNetworkConversionValueSchemaMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getUpdateSKAdNetworkConversionValueSchemaMethod; + if ((getUpdateSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getUpdateSKAdNetworkConversionValueSchemaMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateSKAdNetworkConversionValueSchemaMethod = + AnalyticsAdminServiceGrpc.getUpdateSKAdNetworkConversionValueSchemaMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateSKAdNetworkConversionValueSchemaMethod = + getUpdateSKAdNetworkConversionValueSchemaMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateSKAdNetworkConversionValueSchema")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateSKAdNetworkConversionValueSchema")) + .build(); + } + } + } + return getUpdateSKAdNetworkConversionValueSchemaMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest, + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse> + getListSKAdNetworkConversionValueSchemasMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSKAdNetworkConversionValueSchemas", + requestType = + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.class, + responseType = + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest, + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse> + getListSKAdNetworkConversionValueSchemasMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest, + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse> + getListSKAdNetworkConversionValueSchemasMethod; + if ((getListSKAdNetworkConversionValueSchemasMethod = + AnalyticsAdminServiceGrpc.getListSKAdNetworkConversionValueSchemasMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListSKAdNetworkConversionValueSchemasMethod = + AnalyticsAdminServiceGrpc.getListSKAdNetworkConversionValueSchemasMethod) + == null) { + AnalyticsAdminServiceGrpc.getListSKAdNetworkConversionValueSchemasMethod = + getListSKAdNetworkConversionValueSchemasMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListSKAdNetworkConversionValueSchemas")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListSKAdNetworkConversionValueSchemasRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListSKAdNetworkConversionValueSchemasResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListSKAdNetworkConversionValueSchemas")) + .build(); + } + } + } + return getListSKAdNetworkConversionValueSchemasMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchChangeHistoryEvents", + requestType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + responseType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod = + getSearchChangeHistoryEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchChangeHistoryEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "SearchChangeHistoryEvents")) + .build(); + } + } + } + return getSearchChangeHistoryEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGoogleSignalsSettings", + requestType = com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod; + if ((getGetGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod = + getGetGoogleSignalsSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetGoogleSignalsSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetGoogleSignalsSettings")) + .build(); + } + } + } + return getGetGoogleSignalsSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleSignalsSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod; + if ((getUpdateGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod = + getUpdateGoogleSignalsSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateGoogleSignalsSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateGoogleSignalsSettings")) + .build(); + } + } + } + return getUpdateGoogleSignalsSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversionEvent", + requestType = com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod; + if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateConversionEventMethod = + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod = + getCreateConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateConversionEvent")) + .build(); + } + } + } + return getCreateConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getUpdateConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConversionEvent", + requestType = com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.class, + responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getUpdateConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getUpdateConversionEventMethod; + if ((getUpdateConversionEventMethod = AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateConversionEventMethod = + AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod = + getUpdateConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateConversionEvent")) + .build(); + } + } + } + return getUpdateConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversionEvent", + requestType = com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod; + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetConversionEventMethod = + getGetConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetConversionEvent")) + .build(); + } + } + } + return getGetConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversionEvent", + requestType = com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod; + if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteConversionEventMethod = + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod = + getDeleteConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteConversionEvent")) + .build(); + } + } + } + return getDeleteConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversionEvents", + requestType = com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod; + if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListConversionEventsMethod = + AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListConversionEventsMethod = + getListConversionEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConversionEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListConversionEvents")) + .build(); + } + } + } + return getListConversionEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getGetDisplayVideo360AdvertiserLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getGetDisplayVideo360AdvertiserLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getGetDisplayVideo360AdvertiserLinkMethod; + if ((getGetDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod = + getGetDisplayVideo360AdvertiserLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDisplayVideo360AdvertiserLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDisplayVideo360AdvertiserLink")) + .build(); + } + } + } + return getGetDisplayVideo360AdvertiserLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + getListDisplayVideo360AdvertiserLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDisplayVideo360AdvertiserLinks", + requestType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, + responseType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + getListDisplayVideo360AdvertiserLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + getListDisplayVideo360AdvertiserLinksMethod; + if ((getListDisplayVideo360AdvertiserLinksMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListDisplayVideo360AdvertiserLinksMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod = + getListDisplayVideo360AdvertiserLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListDisplayVideo360AdvertiserLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListDisplayVideo360AdvertiserLinks")) + .build(); + } + } + } + return getListDisplayVideo360AdvertiserLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getCreateDisplayVideo360AdvertiserLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getCreateDisplayVideo360AdvertiserLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getCreateDisplayVideo360AdvertiserLinkMethod; + if ((getCreateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod = + getCreateDisplayVideo360AdvertiserLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateDisplayVideo360AdvertiserLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateDisplayVideo360AdvertiserLink")) + .build(); + } + } + } + return getCreateDisplayVideo360AdvertiserLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkMethod; + if ((getDeleteDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod = + getDeleteDisplayVideo360AdvertiserLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteDisplayVideo360AdvertiserLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteDisplayVideo360AdvertiserLink")) + .build(); + } + } + } + return getDeleteDisplayVideo360AdvertiserLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getUpdateDisplayVideo360AdvertiserLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getUpdateDisplayVideo360AdvertiserLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getUpdateDisplayVideo360AdvertiserLinkMethod; + if ((getUpdateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod = + getUpdateDisplayVideo360AdvertiserLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateDisplayVideo360AdvertiserLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateDisplayVideo360AdvertiserLink")) + .build(); + } + } + } + return getUpdateDisplayVideo360AdvertiserLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getGetDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getGetDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getGetDisplayVideo360AdvertiserLinkProposalMethod; + if ((getGetDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod = + getGetDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getGetDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + getListDisplayVideo360AdvertiserLinkProposalsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDisplayVideo360AdvertiserLinkProposals", + requestType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .class, + responseType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + getListDisplayVideo360AdvertiserLinkProposalsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + getListDisplayVideo360AdvertiserLinkProposalsMethod; + if ((getListDisplayVideo360AdvertiserLinkProposalsMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListDisplayVideo360AdvertiserLinkProposalsMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod = + getListDisplayVideo360AdvertiserLinkProposalsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListDisplayVideo360AdvertiserLinkProposals")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListDisplayVideo360AdvertiserLinkProposals")) + .build(); + } + } + } + return getListDisplayVideo360AdvertiserLinkProposalsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCreateDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCreateDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCreateDisplayVideo360AdvertiserLinkProposalMethod; + if ((getCreateDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod = + getCreateDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getCreateDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkProposalMethod; + if ((getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getDeleteDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + getApproveDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + getApproveDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + getApproveDisplayVideo360AdvertiserLinkProposalMethod; + if ((getApproveDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getApproveDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod = + getApproveDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ApproveDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ApproveDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getApproveDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCancelDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCancelDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCancelDisplayVideo360AdvertiserLinkProposalMethod; + if ((getCancelDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCancelDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod = + getCancelDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CancelDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CancelDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getCancelDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomDimension", + requestType = com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod; + if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod = + getCreateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateCustomDimension")) + .build(); + } + } + } + return getCreateCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomDimension", + requestType = com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod; + if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod = + getUpdateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateCustomDimension")) + .build(); + } + } + } + return getUpdateCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomDimensions", + requestType = com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; + if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListCustomDimensionsMethod = + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod = + getListCustomDimensionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCustomDimensions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomDimensions")) + .build(); + } + } + } + return getListCustomDimensionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomDimension", + requestType = com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod = + getArchiveCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ArchiveCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ArchiveCustomDimension")) + .build(); + } + } + } + return getArchiveCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomDimension", + requestType = com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod; + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod = + getGetCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomDimension")) + .build(); + } + } + } + return getGetCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getCreateCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomMetric", + requestType = com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getCreateCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getCreateCustomMetricMethod; + if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod = + getCreateCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomMetric")) + .build(); + } + } + } + return getCreateCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getUpdateCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomMetric", + requestType = com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getUpdateCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getUpdateCustomMetricMethod; + if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod = + getUpdateCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomMetric")) + .build(); + } + } + } + return getUpdateCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + getListCustomMetricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomMetrics", + requestType = com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + getListCustomMetricsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + getListCustomMetricsMethod; + if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListCustomMetricsMethod = + getListCustomMetricsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomMetrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomMetrics")) + .build(); + } + } + } + return getListCustomMetricsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, com.google.protobuf.Empty> + getArchiveCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomMetric", + requestType = com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, com.google.protobuf.Empty> + getArchiveCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, + com.google.protobuf.Empty> + getArchiveCustomMetricMethod; + if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod = + getArchiveCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ArchiveCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomMetric")) + .build(); + } + } + } + return getArchiveCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getGetCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomMetric", + requestType = com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getGetCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getGetCustomMetricMethod; + if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetCustomMetricMethod = + getGetCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomMetric")) + .build(); + } + } + } + return getGetCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getGetDataRetentionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataRetentionSettings", + requestType = com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getGetDataRetentionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getGetDataRetentionSettingsMethod; + if ((getGetDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod = + getGetDataRetentionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataRetentionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRetentionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDataRetentionSettings")) + .build(); + } + } + } + return getGetDataRetentionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataRetentionSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod; + if ((getUpdateDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod = + getUpdateDataRetentionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDataRetentionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRetentionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateDataRetentionSettings")) + .build(); + } + } + } + return getUpdateDataRetentionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getCreateDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataStream", + requestType = com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getCreateDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getCreateDataStreamMethod; + if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateDataStreamMethod = + getCreateDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateDataStream")) + .build(); + } + } + } + return getCreateDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataStream", + requestType = com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod; + if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod = + getDeleteDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteDataStream")) + .build(); + } + } + } + return getDeleteDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getUpdateDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataStream", + requestType = com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getUpdateDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getUpdateDataStreamMethod; + if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod = + getUpdateDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataStream")) + .build(); + } + } + } + return getUpdateDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + getListDataStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataStreams", + requestType = com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + getListDataStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + getListDataStreamsMethod; + if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListDataStreamsMethod = + getListDataStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListDataStreams")) + .build(); + } + } + } + return getListDataStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getGetDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataStream", + requestType = com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getGetDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream> + getGetDataStreamMethod; + if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { + AnalyticsAdminServiceGrpc.getGetDataStreamMethod = + getGetDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataStream")) + .build(); + } + } + } + return getGetDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getGetAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAudience", + requestType = com.google.analytics.admin.v1alpha.GetAudienceRequest.class, + responseType = com.google.analytics.admin.v1alpha.Audience.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getGetAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getGetAudienceMethod; + if ((getGetAudienceMethod = AnalyticsAdminServiceGrpc.getGetAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAudienceMethod = AnalyticsAdminServiceGrpc.getGetAudienceMethod) == null) { + AnalyticsAdminServiceGrpc.getGetAudienceMethod = + getGetAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetAudience")) + .build(); + } + } + } + return getGetAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + getListAudiencesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAudiences", + requestType = com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + getListAudiencesMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + getListAudiencesMethod; + if ((getListAudiencesMethod = AnalyticsAdminServiceGrpc.getListAudiencesMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAudiencesMethod = AnalyticsAdminServiceGrpc.getListAudiencesMethod) == null) { + AnalyticsAdminServiceGrpc.getListAudiencesMethod = + getListAudiencesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAudiences")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAudiencesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAudiencesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAudiences")) + .build(); + } + } + } + return getListAudiencesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getCreateAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAudience", + requestType = com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, + responseType = com.google.analytics.admin.v1alpha.Audience.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getCreateAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getCreateAudienceMethod; + if ((getCreateAudienceMethod = AnalyticsAdminServiceGrpc.getCreateAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateAudienceMethod = AnalyticsAdminServiceGrpc.getCreateAudienceMethod) == null) { + AnalyticsAdminServiceGrpc.getCreateAudienceMethod = + getCreateAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAudience")) + .build(); + } + } + } + return getCreateAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getUpdateAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAudience", + requestType = com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, + responseType = com.google.analytics.admin.v1alpha.Audience.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getUpdateAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience> + getUpdateAudienceMethod; + if ((getUpdateAudienceMethod = AnalyticsAdminServiceGrpc.getUpdateAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAudienceMethod = AnalyticsAdminServiceGrpc.getUpdateAudienceMethod) == null) { + AnalyticsAdminServiceGrpc.getUpdateAudienceMethod = + getUpdateAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAudience")) + .build(); + } + } + } + return getUpdateAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, com.google.protobuf.Empty> + getArchiveAudienceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveAudience", + requestType = com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, com.google.protobuf.Empty> + getArchiveAudienceMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, com.google.protobuf.Empty> + getArchiveAudienceMethod; + if ((getArchiveAudienceMethod = AnalyticsAdminServiceGrpc.getArchiveAudienceMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveAudienceMethod = AnalyticsAdminServiceGrpc.getArchiveAudienceMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveAudienceMethod = + getArchiveAudienceMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ArchiveAudience")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveAudience")) + .build(); + } + } + } + return getArchiveAudienceMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getGetSearchAds360LinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetSearchAds360Link", + requestType = com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.SearchAds360Link.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getGetSearchAds360LinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getGetSearchAds360LinkMethod; + if ((getGetSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getGetSearchAds360LinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getGetSearchAds360LinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetSearchAds360LinkMethod = + getGetSearchAds360LinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetSearchAds360Link")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchAds360Link + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetSearchAds360Link")) + .build(); + } + } + } + return getGetSearchAds360LinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + getListSearchAds360LinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListSearchAds360Links", + requestType = com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + getListSearchAds360LinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + getListSearchAds360LinksMethod; + if ((getListSearchAds360LinksMethod = AnalyticsAdminServiceGrpc.getListSearchAds360LinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListSearchAds360LinksMethod = + AnalyticsAdminServiceGrpc.getListSearchAds360LinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListSearchAds360LinksMethod = + getListSearchAds360LinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListSearchAds360Links")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListSearchAds360Links")) + .build(); + } + } + } + return getListSearchAds360LinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getCreateSearchAds360LinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSearchAds360Link", + requestType = com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.SearchAds360Link.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getCreateSearchAds360LinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getCreateSearchAds360LinkMethod; + if ((getCreateSearchAds360LinkMethod = + AnalyticsAdminServiceGrpc.getCreateSearchAds360LinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateSearchAds360LinkMethod = + AnalyticsAdminServiceGrpc.getCreateSearchAds360LinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateSearchAds360LinkMethod = + getCreateSearchAds360LinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSearchAds360Link")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchAds360Link + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateSearchAds360Link")) + .build(); + } + } + } + return getCreateSearchAds360LinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, + com.google.protobuf.Empty> + getDeleteSearchAds360LinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSearchAds360Link", + requestType = com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, + com.google.protobuf.Empty> + getDeleteSearchAds360LinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, + com.google.protobuf.Empty> + getDeleteSearchAds360LinkMethod; + if ((getDeleteSearchAds360LinkMethod = + AnalyticsAdminServiceGrpc.getDeleteSearchAds360LinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteSearchAds360LinkMethod = + AnalyticsAdminServiceGrpc.getDeleteSearchAds360LinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteSearchAds360LinkMethod = + getDeleteSearchAds360LinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSearchAds360Link")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteSearchAds360Link")) + .build(); + } + } + } + return getDeleteSearchAds360LinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getUpdateSearchAds360LinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateSearchAds360Link", + requestType = com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.SearchAds360Link.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getUpdateSearchAds360LinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link> + getUpdateSearchAds360LinkMethod; + if ((getUpdateSearchAds360LinkMethod = + AnalyticsAdminServiceGrpc.getUpdateSearchAds360LinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateSearchAds360LinkMethod = + AnalyticsAdminServiceGrpc.getUpdateSearchAds360LinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateSearchAds360LinkMethod = + getUpdateSearchAds360LinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateSearchAds360Link")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchAds360Link + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateSearchAds360Link")) + .build(); + } + } + } + return getUpdateSearchAds360LinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getGetAttributionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAttributionSettings", + requestType = com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.AttributionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getGetAttributionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getGetAttributionSettingsMethod; + if ((getGetAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod = + getGetAttributionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAttributionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AttributionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetAttributionSettings")) + .build(); + } + } + } + return getGetAttributionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getUpdateAttributionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAttributionSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.AttributionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getUpdateAttributionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings> + getUpdateAttributionSettingsMethod; + if ((getUpdateAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAttributionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod = + getUpdateAttributionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAttributionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AttributionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateAttributionSettings")) + .build(); + } + } + } + return getUpdateAttributionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + getRunAccessReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAccessReport", + requestType = com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, + responseType = com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + getRunAccessReportMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + getRunAccessReportMethod; + if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) + == null) { + AnalyticsAdminServiceGrpc.getRunAccessReportMethod = + getRunAccessReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAccessReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RunAccessReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RunAccessReportResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("RunAccessReport")) + .build(); + } + } + } + return getRunAccessReportMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getCreateAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAccessBinding", + requestType = com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, + responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getCreateAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getCreateAccessBindingMethod; + if ((getCreateAccessBindingMethod = AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateAccessBindingMethod = AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod = + getCreateAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AccessBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAccessBinding")) + .build(); + } + } + } + return getCreateAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getGetAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessBinding", + requestType = com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, + responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getGetAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getGetAccessBindingMethod; + if ((getGetAccessBindingMethod = AnalyticsAdminServiceGrpc.getGetAccessBindingMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAccessBindingMethod = AnalyticsAdminServiceGrpc.getGetAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetAccessBindingMethod = + getGetAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AccessBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetAccessBinding")) + .build(); + } + } + } + return getGetAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getUpdateAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccessBinding", + requestType = com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, + responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getUpdateAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding> + getUpdateAccessBindingMethod; + if ((getUpdateAccessBindingMethod = AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAccessBindingMethod = AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod = + getUpdateAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AccessBinding + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAccessBinding")) + .build(); + } + } + } + return getUpdateAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, com.google.protobuf.Empty> + getDeleteAccessBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccessBinding", + requestType = com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, com.google.protobuf.Empty> + getDeleteAccessBindingMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.protobuf.Empty> + getDeleteAccessBindingMethod; + if ((getDeleteAccessBindingMethod = AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteAccessBindingMethod = AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod = + getDeleteAccessBindingMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAccessBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAccessBinding")) + .build(); + } + } + } + return getDeleteAccessBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + getListAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccessBindings", + requestType = com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + getListAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + getListAccessBindingsMethod; + if ((getListAccessBindingsMethod = AnalyticsAdminServiceGrpc.getListAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAccessBindingsMethod = AnalyticsAdminServiceGrpc.getListAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListAccessBindingsMethod = + getListAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccessBindings")) + .build(); + } + } + } + return getListAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + getBatchCreateAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchCreateAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + getBatchCreateAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + getBatchCreateAccessBindingsMethod; + if ((getBatchCreateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchCreateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod = + getBatchCreateAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchCreateAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchCreateAccessBindings")) + .build(); + } + } + } + return getBatchCreateAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + getBatchGetAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchGetAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + getBatchGetAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + getBatchGetAccessBindingsMethod; + if ((getBatchGetAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchGetAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod = + getBatchGetAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchGetAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchGetAccessBindings")) + .build(); + } + } + } + return getBatchGetAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + getBatchUpdateAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchUpdateAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + getBatchUpdateAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + getBatchUpdateAccessBindingsMethod; + if ((getBatchUpdateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchUpdateAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod = + getBatchUpdateAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchUpdateAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchUpdateAccessBindings")) + .build(); + } + } + } + return getBatchUpdateAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty> + getBatchDeleteAccessBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BatchDeleteAccessBindings", + requestType = com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty> + getBatchDeleteAccessBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty> + getBatchDeleteAccessBindingsMethod; + if ((getBatchDeleteAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getBatchDeleteAccessBindingsMethod = + AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod = + getBatchDeleteAccessBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BatchDeleteAccessBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "BatchDeleteAccessBindings")) + .build(); + } + } + } + return getBatchDeleteAccessBindingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getGetExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, + responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getGetExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getGetExpandedDataSetMethod; + if ((getGetExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod = + getGetExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ExpandedDataSet + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetExpandedDataSet")) + .build(); + } + } + } + return getGetExpandedDataSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + getListExpandedDataSetsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListExpandedDataSets", + requestType = com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + getListExpandedDataSetsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + getListExpandedDataSetsMethod; + if ((getListExpandedDataSetsMethod = AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListExpandedDataSetsMethod = + AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod = + getListExpandedDataSetsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListExpandedDataSets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListExpandedDataSets")) + .build(); + } + } + } + return getListExpandedDataSetsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getCreateExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, + responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getCreateExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getCreateExpandedDataSetMethod; + if ((getCreateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateExpandedDataSetMethod = + AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod = + getCreateExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ExpandedDataSet + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateExpandedDataSet")) + .build(); + } + } + } + return getCreateExpandedDataSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getUpdateExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, + responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getUpdateExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getUpdateExpandedDataSetMethod; + if ((getUpdateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateExpandedDataSetMethod = + AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod = + getUpdateExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ExpandedDataSet + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateExpandedDataSet")) + .build(); + } + } + } + return getUpdateExpandedDataSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty> + getDeleteExpandedDataSetMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteExpandedDataSet", + requestType = com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty> + getDeleteExpandedDataSetMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty> + getDeleteExpandedDataSetMethod; + if ((getDeleteExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteExpandedDataSetMethod = + AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod = + getDeleteExpandedDataSetMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteExpandedDataSet")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteExpandedDataSet")) + .build(); + } + } + } + return getDeleteExpandedDataSetMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getGetChannelGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetChannelGroup", + requestType = com.google.analytics.admin.v1alpha.GetChannelGroupRequest.class, + responseType = com.google.analytics.admin.v1alpha.ChannelGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getGetChannelGroupMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getGetChannelGroupMethod; + if ((getGetChannelGroupMethod = AnalyticsAdminServiceGrpc.getGetChannelGroupMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetChannelGroupMethod = AnalyticsAdminServiceGrpc.getGetChannelGroupMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetChannelGroupMethod = + getGetChannelGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChannelGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetChannelGroup")) + .build(); + } + } + } + return getGetChannelGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest, + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse> + getListChannelGroupsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListChannelGroups", + requestType = com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest, + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse> + getListChannelGroupsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest, + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse> + getListChannelGroupsMethod; + if ((getListChannelGroupsMethod = AnalyticsAdminServiceGrpc.getListChannelGroupsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListChannelGroupsMethod = AnalyticsAdminServiceGrpc.getListChannelGroupsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListChannelGroupsMethod = + getListChannelGroupsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListChannelGroups")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListChannelGroups")) + .build(); + } + } + } + return getListChannelGroupsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getCreateChannelGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateChannelGroup", + requestType = com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.class, + responseType = com.google.analytics.admin.v1alpha.ChannelGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getCreateChannelGroupMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getCreateChannelGroupMethod; + if ((getCreateChannelGroupMethod = AnalyticsAdminServiceGrpc.getCreateChannelGroupMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateChannelGroupMethod = AnalyticsAdminServiceGrpc.getCreateChannelGroupMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateChannelGroupMethod = + getCreateChannelGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChannelGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateChannelGroup")) + .build(); + } + } + } + return getCreateChannelGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getUpdateChannelGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateChannelGroup", + requestType = com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.class, + responseType = com.google.analytics.admin.v1alpha.ChannelGroup.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getUpdateChannelGroupMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup> + getUpdateChannelGroupMethod; + if ((getUpdateChannelGroupMethod = AnalyticsAdminServiceGrpc.getUpdateChannelGroupMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateChannelGroupMethod = AnalyticsAdminServiceGrpc.getUpdateChannelGroupMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateChannelGroupMethod = + getUpdateChannelGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateChannelGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateChannelGroup")) + .build(); + } + } + } + return getUpdateChannelGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest, com.google.protobuf.Empty> + getDeleteChannelGroupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteChannelGroup", + requestType = com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest, com.google.protobuf.Empty> + getDeleteChannelGroupMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest, com.google.protobuf.Empty> + getDeleteChannelGroupMethod; + if ((getDeleteChannelGroupMethod = AnalyticsAdminServiceGrpc.getDeleteChannelGroupMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteChannelGroupMethod = AnalyticsAdminServiceGrpc.getDeleteChannelGroupMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteChannelGroupMethod = + getDeleteChannelGroupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteChannelGroup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteChannelGroup")) + .build(); + } + } + } + return getDeleteChannelGroupMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse> + getSetAutomatedGa4ConfigurationOptOutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetAutomatedGa4ConfigurationOptOut", + requestType = + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.class, + responseType = + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse> + getSetAutomatedGa4ConfigurationOptOutMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse> + getSetAutomatedGa4ConfigurationOptOutMethod; + if ((getSetAutomatedGa4ConfigurationOptOutMethod = + AnalyticsAdminServiceGrpc.getSetAutomatedGa4ConfigurationOptOutMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getSetAutomatedGa4ConfigurationOptOutMethod = + AnalyticsAdminServiceGrpc.getSetAutomatedGa4ConfigurationOptOutMethod) + == null) { + AnalyticsAdminServiceGrpc.getSetAutomatedGa4ConfigurationOptOutMethod = + getSetAutomatedGa4ConfigurationOptOutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "SetAutomatedGa4ConfigurationOptOut")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .SetAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "SetAutomatedGa4ConfigurationOptOut")) + .build(); + } + } + } + return getSetAutomatedGa4ConfigurationOptOutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse> + getFetchAutomatedGa4ConfigurationOptOutMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchAutomatedGa4ConfigurationOptOut", + requestType = + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.class, + responseType = + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse> + getFetchAutomatedGa4ConfigurationOptOutMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse> + getFetchAutomatedGa4ConfigurationOptOutMethod; + if ((getFetchAutomatedGa4ConfigurationOptOutMethod = + AnalyticsAdminServiceGrpc.getFetchAutomatedGa4ConfigurationOptOutMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getFetchAutomatedGa4ConfigurationOptOutMethod = + AnalyticsAdminServiceGrpc.getFetchAutomatedGa4ConfigurationOptOutMethod) + == null) { + AnalyticsAdminServiceGrpc.getFetchAutomatedGa4ConfigurationOptOutMethod = + getFetchAutomatedGa4ConfigurationOptOutMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "FetchAutomatedGa4ConfigurationOptOut")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .FetchAutomatedGa4ConfigurationOptOutRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .FetchAutomatedGa4ConfigurationOptOutResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "FetchAutomatedGa4ConfigurationOptOut")) + .build(); + } + } + } + return getFetchAutomatedGa4ConfigurationOptOutMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest, + com.google.analytics.admin.v1alpha.BigQueryLink> + getGetBigQueryLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBigQueryLink", + requestType = com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.BigQueryLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest, + com.google.analytics.admin.v1alpha.BigQueryLink> + getGetBigQueryLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest, + com.google.analytics.admin.v1alpha.BigQueryLink> + getGetBigQueryLinkMethod; + if ((getGetBigQueryLinkMethod = AnalyticsAdminServiceGrpc.getGetBigQueryLinkMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetBigQueryLinkMethod = AnalyticsAdminServiceGrpc.getGetBigQueryLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetBigQueryLinkMethod = + getGetBigQueryLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBigQueryLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetBigQueryLink")) + .build(); + } + } + } + return getGetBigQueryLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest, + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse> + getListBigQueryLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListBigQueryLinks", + requestType = com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest, + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse> + getListBigQueryLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest, + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse> + getListBigQueryLinksMethod; + if ((getListBigQueryLinksMethod = AnalyticsAdminServiceGrpc.getListBigQueryLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListBigQueryLinksMethod = AnalyticsAdminServiceGrpc.getListBigQueryLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListBigQueryLinksMethod = + getListBigQueryLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBigQueryLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListBigQueryLinks")) + .build(); + } + } + } + return getListBigQueryLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getGetEnhancedMeasurementSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEnhancedMeasurementSettings", + requestType = com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getGetEnhancedMeasurementSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getGetEnhancedMeasurementSettingsMethod; + if ((getGetEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod = + getGetEnhancedMeasurementSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetEnhancedMeasurementSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetEnhancedMeasurementSettings")) + .build(); + } + } + } + return getGetEnhancedMeasurementSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getUpdateEnhancedMeasurementSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEnhancedMeasurementSettings", + requestType = + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getUpdateEnhancedMeasurementSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getUpdateEnhancedMeasurementSettingsMethod; + if ((getUpdateEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateEnhancedMeasurementSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod = + getUpdateEnhancedMeasurementSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateEnhancedMeasurementSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateEnhancedMeasurementSettings")) + .build(); + } + } + } + return getUpdateEnhancedMeasurementSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse> + getCreateConnectedSiteTagMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConnectedSiteTag", + requestType = com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.class, + responseType = com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse> + getCreateConnectedSiteTagMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse> + getCreateConnectedSiteTagMethod; + if ((getCreateConnectedSiteTagMethod = + AnalyticsAdminServiceGrpc.getCreateConnectedSiteTagMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateConnectedSiteTagMethod = + AnalyticsAdminServiceGrpc.getCreateConnectedSiteTagMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateConnectedSiteTagMethod = + getCreateConnectedSiteTagMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConnectedSiteTag")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateConnectedSiteTag")) + .build(); + } + } + } + return getCreateConnectedSiteTagMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest, + com.google.protobuf.Empty> + getDeleteConnectedSiteTagMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConnectedSiteTag", + requestType = com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest, + com.google.protobuf.Empty> + getDeleteConnectedSiteTagMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest, + com.google.protobuf.Empty> + getDeleteConnectedSiteTagMethod; + if ((getDeleteConnectedSiteTagMethod = + AnalyticsAdminServiceGrpc.getDeleteConnectedSiteTagMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteConnectedSiteTagMethod = + AnalyticsAdminServiceGrpc.getDeleteConnectedSiteTagMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteConnectedSiteTagMethod = + getDeleteConnectedSiteTagMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConnectedSiteTag")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteConnectedSiteTag")) + .build(); + } + } + } + return getDeleteConnectedSiteTagMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse> + getListConnectedSiteTagsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConnectedSiteTags", + requestType = com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse> + getListConnectedSiteTagsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse> + getListConnectedSiteTagsMethod; + if ((getListConnectedSiteTagsMethod = AnalyticsAdminServiceGrpc.getListConnectedSiteTagsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListConnectedSiteTagsMethod = + AnalyticsAdminServiceGrpc.getListConnectedSiteTagsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListConnectedSiteTagsMethod = + getListConnectedSiteTagsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConnectedSiteTags")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListConnectedSiteTags")) + .build(); + } + } + } + return getListConnectedSiteTagsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse> + getFetchConnectedGa4PropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FetchConnectedGa4Property", + requestType = com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse> + getFetchConnectedGa4PropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse> + getFetchConnectedGa4PropertyMethod; + if ((getFetchConnectedGa4PropertyMethod = + AnalyticsAdminServiceGrpc.getFetchConnectedGa4PropertyMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getFetchConnectedGa4PropertyMethod = + AnalyticsAdminServiceGrpc.getFetchConnectedGa4PropertyMethod) + == null) { + AnalyticsAdminServiceGrpc.getFetchConnectedGa4PropertyMethod = + getFetchConnectedGa4PropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "FetchConnectedGa4Property")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "FetchConnectedGa4Property")) + .build(); + } + } + } + return getFetchConnectedGa4PropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink> + getGetAdSenseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAdSenseLink", + requestType = com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.AdSenseLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink> + getGetAdSenseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink> + getGetAdSenseLinkMethod; + if ((getGetAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getGetAdSenseLinkMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getGetAdSenseLinkMethod) == null) { + AnalyticsAdminServiceGrpc.getGetAdSenseLinkMethod = + getGetAdSenseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAdSenseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetAdSenseLink")) + .build(); + } + } + } + return getGetAdSenseLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink> + getCreateAdSenseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAdSenseLink", + requestType = com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.AdSenseLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink> + getCreateAdSenseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink> + getCreateAdSenseLinkMethod; + if ((getCreateAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getCreateAdSenseLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getCreateAdSenseLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateAdSenseLinkMethod = + getCreateAdSenseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAdSenseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAdSenseLink")) + .build(); + } + } + } + return getCreateAdSenseLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest, com.google.protobuf.Empty> + getDeleteAdSenseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAdSenseLink", + requestType = com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest, com.google.protobuf.Empty> + getDeleteAdSenseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest, com.google.protobuf.Empty> + getDeleteAdSenseLinkMethod; + if ((getDeleteAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteAdSenseLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteAdSenseLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteAdSenseLinkMethod = + getDeleteAdSenseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAdSenseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAdSenseLink")) + .build(); + } + } + } + return getDeleteAdSenseLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest, + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse> + getListAdSenseLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAdSenseLinks", + requestType = com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest, + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse> + getListAdSenseLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest, + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse> + getListAdSenseLinksMethod; + if ((getListAdSenseLinksMethod = AnalyticsAdminServiceGrpc.getListAdSenseLinksMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAdSenseLinksMethod = AnalyticsAdminServiceGrpc.getListAdSenseLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListAdSenseLinksMethod = + getListAdSenseLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAdSenseLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAdSenseLinks")) + .build(); + } + } + } + return getListAdSenseLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getGetEventCreateRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetEventCreateRule", + requestType = com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.class, + responseType = com.google.analytics.admin.v1alpha.EventCreateRule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getGetEventCreateRuleMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getGetEventCreateRuleMethod; + if ((getGetEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getGetEventCreateRuleMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getGetEventCreateRuleMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetEventCreateRuleMethod = + getGetEventCreateRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEventCreateRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.EventCreateRule + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetEventCreateRule")) + .build(); + } + } + } + return getGetEventCreateRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest, + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse> + getListEventCreateRulesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListEventCreateRules", + requestType = com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest, + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse> + getListEventCreateRulesMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest, + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse> + getListEventCreateRulesMethod; + if ((getListEventCreateRulesMethod = AnalyticsAdminServiceGrpc.getListEventCreateRulesMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListEventCreateRulesMethod = + AnalyticsAdminServiceGrpc.getListEventCreateRulesMethod) + == null) { + AnalyticsAdminServiceGrpc.getListEventCreateRulesMethod = + getListEventCreateRulesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListEventCreateRules")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListEventCreateRules")) + .build(); + } + } + } + return getListEventCreateRulesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getCreateEventCreateRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateEventCreateRule", + requestType = com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.class, + responseType = com.google.analytics.admin.v1alpha.EventCreateRule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getCreateEventCreateRuleMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getCreateEventCreateRuleMethod; + if ((getCreateEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getCreateEventCreateRuleMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateEventCreateRuleMethod = + AnalyticsAdminServiceGrpc.getCreateEventCreateRuleMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateEventCreateRuleMethod = + getCreateEventCreateRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateEventCreateRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.EventCreateRule + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateEventCreateRule")) + .build(); + } + } + } + return getCreateEventCreateRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getUpdateEventCreateRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateEventCreateRule", + requestType = com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.class, + responseType = com.google.analytics.admin.v1alpha.EventCreateRule.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getUpdateEventCreateRuleMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule> + getUpdateEventCreateRuleMethod; + if ((getUpdateEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getUpdateEventCreateRuleMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateEventCreateRuleMethod = + AnalyticsAdminServiceGrpc.getUpdateEventCreateRuleMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateEventCreateRuleMethod = + getUpdateEventCreateRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateEventCreateRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.EventCreateRule + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateEventCreateRule")) + .build(); + } + } + } + return getUpdateEventCreateRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, + com.google.protobuf.Empty> + getDeleteEventCreateRuleMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteEventCreateRule", + requestType = com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, + com.google.protobuf.Empty> + getDeleteEventCreateRuleMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, + com.google.protobuf.Empty> + getDeleteEventCreateRuleMethod; + if ((getDeleteEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getDeleteEventCreateRuleMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteEventCreateRuleMethod = + AnalyticsAdminServiceGrpc.getDeleteEventCreateRuleMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteEventCreateRuleMethod = + getDeleteEventCreateRuleMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteEventCreateRule")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteEventCreateRule")) + .build(); + } + } + } + return getDeleteEventCreateRuleMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getUpdateDataRedactionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataRedactionSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getUpdateDataRedactionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getUpdateDataRedactionSettingsMethod; + if ((getUpdateDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod = + getUpdateDataRedactionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDataRedactionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRedactionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateDataRedactionSettings")) + .build(); + } + } + } + return getUpdateDataRedactionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getGetDataRedactionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataRedactionSettings", + requestType = com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getGetDataRedactionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getGetDataRedactionSettingsMethod; + if ((getGetDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataRedactionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod = + getGetDataRedactionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataRedactionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRedactionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDataRedactionSettings")) + .build(); + } + } + } + return getGetDataRedactionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + getCreateRollupPropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRollupProperty", + requestType = com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + getCreateRollupPropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + getCreateRollupPropertyMethod; + if ((getCreateRollupPropertyMethod = AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateRollupPropertyMethod = + AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod = + getCreateRollupPropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateRollupProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateRollupProperty")) + .build(); + } + } + } + return getCreateRollupPropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getGetRollupPropertySourceLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetRollupPropertySourceLink", + requestType = com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getGetRollupPropertySourceLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getGetRollupPropertySourceLinkMethod; + if ((getGetRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod = + getGetRollupPropertySourceLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetRollupPropertySourceLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetRollupPropertySourceLink")) + .build(); + } + } + } + return getGetRollupPropertySourceLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + getListRollupPropertySourceLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListRollupPropertySourceLinks", + requestType = com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + getListRollupPropertySourceLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + getListRollupPropertySourceLinksMethod; + if ((getListRollupPropertySourceLinksMethod = + AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListRollupPropertySourceLinksMethod = + AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod = + getListRollupPropertySourceLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListRollupPropertySourceLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListRollupPropertySourceLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListRollupPropertySourceLinksResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListRollupPropertySourceLinks")) + .build(); + } + } + } + return getListRollupPropertySourceLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getCreateRollupPropertySourceLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateRollupPropertySourceLink", + requestType = com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getCreateRollupPropertySourceLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getCreateRollupPropertySourceLinkMethod; + if ((getCreateRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod = + getCreateRollupPropertySourceLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateRollupPropertySourceLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateRollupPropertySourceLink")) + .build(); + } + } + } + return getCreateRollupPropertySourceLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty> + getDeleteRollupPropertySourceLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteRollupPropertySourceLink", + requestType = com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty> + getDeleteRollupPropertySourceLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty> + getDeleteRollupPropertySourceLinkMethod; + if ((getDeleteRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteRollupPropertySourceLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod = + getDeleteRollupPropertySourceLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteRollupPropertySourceLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteRollupPropertySourceLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteRollupPropertySourceLink")) + .build(); + } + } + } + return getDeleteRollupPropertySourceLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + getCreateSubpropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubproperty", + requestType = com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, + responseType = com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + getCreateSubpropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + getCreateSubpropertyMethod; + if ((getCreateSubpropertyMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateSubpropertyMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod = + getCreateSubpropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubproperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateSubproperty")) + .build(); + } + } + } + return getCreateSubpropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty> + getDeleteSubpropertyEventFilterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteSubpropertyEventFilter", + requestType = com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty> + getDeleteSubpropertyEventFilterMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty> + getDeleteSubpropertyEventFilterMethod; + if ((getDeleteSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod = + getDeleteSubpropertyEventFilterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteSubpropertyEventFilter")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteSubpropertyEventFilter")) + .build(); + } + } + } + return getDeleteSubpropertyEventFilterMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateSubpropertyEventFilter", + requestType = com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, + responseType = com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + getCreateSubpropertyEventFilterMethod; + if ((getCreateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateSubpropertyEventFilterMethod = + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod = + getCreateSubpropertyEventFilterMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateSubpropertyEventFilter")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateSubpropertyEventFilter")) + .build(); + } + } + } + return getCreateSubpropertyEventFilterMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsAdminServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceStub(channel, callOptions); + } + }; + return AnalyticsAdminServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AnalyticsAdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsAdminServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceBlockingStub(channel, callOptions); + } + }; + return AnalyticsAdminServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AnalyticsAdminServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsAdminServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceFutureStub(channel, callOptions); + } + }; + return AnalyticsAdminServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + default void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + default void listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccountsMethod(), responseObserver); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * AccessBindings) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + default void deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + default void updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + default void provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getProvisionAccountTicketMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + default void listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccountSummariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + default void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + default void listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPropertiesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + default void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + default void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + default void updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + default void createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + default void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + default void listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirebaseLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + default void getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlobalSiteTagMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + default void createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + default void updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + default void deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + default void listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGoogleAdsLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + default void getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataSharingSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + default void getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + default void listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMeasurementProtocolSecretsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + default void createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + default void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + default void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + default void acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcknowledgeUserDataCollectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Looks up a single SKAdNetworkConversionValueSchema.
+     * 
+ */ + default void getSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSKAdNetworkConversionValueSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + default void createSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSKAdNetworkConversionValueSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes target SKAdNetworkConversionValueSchema.
+     * 
+ */ + default void deleteSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSKAdNetworkConversionValueSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + default void updateSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSKAdNetworkConversionValueSchemaMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists SKAdNetworkConversionValueSchema on a stream.
+     * Properties can have at most one SKAdNetworkConversionValueSchema.
+     * 
+ */ + default void listSKAdNetworkConversionValueSchemas( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSKAdNetworkConversionValueSchemasMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + default void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchChangeHistoryEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + default void getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGoogleSignalsSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + default void updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleSignalsSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + default void createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + default void updateConversionEvent( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + default void getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + default void deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + default void listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversionEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Look up a single DisplayVideo360AdvertiserLink
+     * 
+ */ + default void getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
+     * 
+ */ + default void listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDisplayVideo360AdvertiserLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
+     * 
+ */ + default void createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + default void deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + default void updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + default void getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+     * 
+ */ + default void listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDisplayVideo360AdvertiserLinkProposalsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + default void createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
+     * 
+ */ + default void deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
+     * 
+ */ + default void approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApproveDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
+     * 
+ */ + default void cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + default void createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + default void updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + default void listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomDimensionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + default void archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + default void getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + default void createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + default void updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + default void listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomMetricsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + default void archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + default void getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + default void getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataRetentionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + default void updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataRetentionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + default void createDataStream( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + default void deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + default void updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + default void listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + default void getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + default void getAudience( + com.google.analytics.admin.v1alpha.GetAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + default void listAudiences( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAudiencesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + default void createAudience( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + default void updateAudience( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + default void archiveAudience( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveAudienceMethod(), responseObserver); + } + + /** + * + * + *
+     * Look up a single SearchAds360Link
+     * 
+ */ + default void getSearchAds360Link( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetSearchAds360LinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all SearchAds360Links on a property.
+     * 
+ */ + default void listSearchAds360Links( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListSearchAds360LinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a SearchAds360Link.
+     * 
+ */ + default void createSearchAds360Link( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSearchAds360LinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a SearchAds360Link on a property.
+     * 
+ */ + default void deleteSearchAds360Link( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSearchAds360LinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a SearchAds360Link on a property.
+     * 
+ */ + default void updateSearchAds360Link( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateSearchAds360LinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + default void getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAttributionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + default void updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAttributionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + default void runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAccessReportMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an access binding on an account or property.
+     * 
+ */ + default void createAccessBinding( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets information about an access binding.
+     * 
+ */ + default void getAccessBinding( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an access binding on an account or property.
+     * 
+ */ + default void updateAccessBinding( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an access binding on an account or property.
+     * 
+ */ + default void deleteAccessBinding( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccessBindingMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all access bindings on an account or property.
+     * 
+ */ + default void listAccessBindings( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
+     * 
+ */ + default void batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets information about multiple access bindings to an account or property.
+     * 
+ */ + default void batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchGetAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates information about multiple access bindings to an account or
+     * property.
+     * 
+ */ + default void batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + default void batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteAccessBindingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single ExpandedDataSet.
+     * 
+ */ + default void getExpandedDataSet( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetExpandedDataSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ExpandedDataSets on a property.
+     * 
+ */ + default void listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListExpandedDataSetsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a ExpandedDataSet.
+     * 
+ */ + default void createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateExpandedDataSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ExpandedDataSet on a property.
+     * 
+ */ + default void updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateExpandedDataSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a ExpandedDataSet on a property.
+     * 
+ */ + default void deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteExpandedDataSetMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single ChannelGroup.
+     * 
+ */ + default void getChannelGroup( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetChannelGroupMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists ChannelGroups on a property.
+     * 
+ */ + default void listChannelGroups( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListChannelGroupsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a ChannelGroup.
+     * 
+ */ + default void createChannelGroup( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateChannelGroupMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a ChannelGroup.
+     * 
+ */ + default void updateChannelGroup( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateChannelGroupMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a ChannelGroup on a property.
+     * 
+ */ + default void deleteChannelGroup( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteChannelGroupMethod(), responseObserver); + } + + /** + * + * + *
+     * Sets the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + default void setAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSetAutomatedGa4ConfigurationOptOutMethod(), responseObserver); + } + + /** + * + * + *
+     * Fetches the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + default void fetchAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchAutomatedGa4ConfigurationOptOutMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single BigQuery Link.
+     * 
+ */ + default void getBigQueryLink( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetBigQueryLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists BigQuery Links on a property.
+     * 
+ */ + default void listBigQueryLinks( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListBigQueryLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + default void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEnhancedMeasurementSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + default void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a connected site tag for a Universal Analytics property. You can
+     * create a maximum of 20 connected site tags per property.
+     * Note: This API cannot be used on GA4 properties.
+     * 
+ */ + default void createConnectedSiteTag( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConnectedSiteTagMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a connected site tag for a Universal Analytics property.
+     * Note: this has no effect on GA4 properties.
+     * 
+ */ + default void deleteConnectedSiteTag( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConnectedSiteTagMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the connected site tags for a Universal Analytics property. A maximum
+     * of 20 connected site tags will be returned. Note: this has no effect on GA4
+     * property.
+     * 
+ */ + default void listConnectedSiteTags( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectedSiteTagsMethod(), responseObserver); + } + + /** + * + * + *
+     * Given a specified UA property, looks up the GA4 property connected to it.
+     * Note: this cannot be used with GA4 properties.
+     * 
+ */ + default void fetchConnectedGa4Property( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFetchConnectedGa4PropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Looks up a single AdSenseLink.
+     * 
+ */ + default void getAdSenseLink( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAdSenseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an AdSenseLink.
+     * 
+ */ + default void createAdSenseLink( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAdSenseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an AdSenseLink.
+     * 
+ */ + default void deleteAdSenseLink( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAdSenseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists AdSenseLinks on a property.
+     * 
+ */ + default void listAdSenseLinks( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAdSenseLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single EventCreateRule.
+     * 
+ */ + default void getEventCreateRule( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEventCreateRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists EventCreateRules on a web data stream.
+     * 
+ */ + default void listEventCreateRules( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListEventCreateRulesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an EventCreateRule.
+     * 
+ */ + default void createEventCreateRule( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateEventCreateRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an EventCreateRule.
+     * 
+ */ + default void updateEventCreateRule( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEventCreateRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an EventCreateRule.
+     * 
+ */ + default void deleteEventCreateRule( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteEventCreateRuleMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a DataRedactionSettings on a property.
+     * 
+ */ + default void updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataRedactionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataRedactionSettings.
+     * 
+ */ + default void getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataRedactionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a roll-up property and all roll-up property source links.
+     * 
+ */ + default void createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRollupPropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetRollupPropertySourceLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListRollupPropertySourceLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateRollupPropertySourceLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + default void deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteRollupPropertySourceLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
+     * 
+ */ + default void createSubproperty( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubpropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + default void deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteSubpropertyEventFilterMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a subproperty Event Filter.
+     * 
+ */ + default void createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateSubpropertyEventFilterMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public abstract static class AnalyticsAdminServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AnalyticsAdminServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AnalyticsAdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public void listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * AccessBindings) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public void deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public void updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public void provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public void listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public void listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + public void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public void updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + public void getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public void createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public void updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public void deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public void listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public void getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public void getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public void listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public void createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + public void acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Looks up a single SKAdNetworkConversionValueSchema.
+     * 
+ */ + public void getSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + public void createSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes target SKAdNetworkConversionValueSchema.
+     * 
+ */ + public void deleteSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + public void updateSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists SKAdNetworkConversionValueSchema on a stream.
+     * Properties can have at most one SKAdNetworkConversionValueSchema.
+     * 
+ */ + public void listSKAdNetworkConversionValueSchemas( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSKAdNetworkConversionValueSchemasMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + public void getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + public void updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public void createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + public void updateConversionEvent( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public void getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public void deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public void listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Look up a single DisplayVideo360AdvertiserLink
+     * 
+ */ + public void getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
+     * 
+ */ + public void listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
+     * 
+ */ + public void createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public void deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public void updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public void getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+     * 
+ */ + public void listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public void createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
+     * 
+ */ + public void deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
+     * 
+ */ + public void approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
+     * 
+ */ + public void cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel() + .newCall(getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public void createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public void updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public void listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public void archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public void getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public void createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public void updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public void listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public void archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public void getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public void getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public void updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public void createDataStream( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public void deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public void updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public void listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public void getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public void getAudience( + com.google.analytics.admin.v1alpha.GetAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public void listAudiences( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAudiencesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public void createAudience( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public void updateAudience( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public void archiveAudience( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Look up a single SearchAds360Link
+     * 
+ */ + public void getSearchAds360Link( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all SearchAds360Links on a property.
+     * 
+ */ + public void listSearchAds360Links( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListSearchAds360LinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a SearchAds360Link.
+     * 
+ */ + public void createSearchAds360Link( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a SearchAds360Link on a property.
+     * 
+ */ + public void deleteSearchAds360Link( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a SearchAds360Link on a property.
+     * 
+ */ + public void updateSearchAds360Link( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateSearchAds360LinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public void getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public void updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public void runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an access binding on an account or property.
+     * 
+ */ + public void createAccessBinding( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about an access binding.
+     * 
+ */ + public void getAccessBinding( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an access binding on an account or property.
+     * 
+ */ + public void updateAccessBinding( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an access binding on an account or property.
+     * 
+ */ + public void deleteAccessBinding( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccessBindingMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all access bindings on an account or property.
+     * 
+ */ + public void listAccessBindings( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
+     * 
+ */ + public void batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCreateAccessBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about multiple access bindings to an account or property.
+     * 
+ */ + public void batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetAccessBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates information about multiple access bindings to an account or
+     * property.
+     * 
+ */ + public void batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchUpdateAccessBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + public void batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchDeleteAccessBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single ExpandedDataSet.
+     * 
+ */ + public void getExpandedDataSet( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetExpandedDataSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists ExpandedDataSets on a property.
+     * 
+ */ + public void listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListExpandedDataSetsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a ExpandedDataSet.
+     * 
+ */ + public void createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateExpandedDataSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a ExpandedDataSet on a property.
+     * 
+ */ + public void updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateExpandedDataSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a ExpandedDataSet on a property.
+     * 
+ */ + public void deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteExpandedDataSetMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single ChannelGroup.
+     * 
+ */ + public void getChannelGroup( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetChannelGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists ChannelGroups on a property.
+     * 
+ */ + public void listChannelGroups( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListChannelGroupsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a ChannelGroup.
+     * 
+ */ + public void createChannelGroup( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateChannelGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a ChannelGroup.
+     * 
+ */ + public void updateChannelGroup( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateChannelGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a ChannelGroup on a property.
+     * 
+ */ + public void deleteChannelGroup( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteChannelGroupMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Sets the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + public void setAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Fetches the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + public void fetchAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single BigQuery Link.
+     * 
+ */ + public void getBigQueryLink( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetBigQueryLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists BigQuery Links on a property.
+     * 
+ */ + public void listBigQueryLinks( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListBigQueryLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a connected site tag for a Universal Analytics property. You can
+     * create a maximum of 20 connected site tags per property.
+     * Note: This API cannot be used on GA4 properties.
+     * 
+ */ + public void createConnectedSiteTag( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConnectedSiteTagMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a connected site tag for a Universal Analytics property.
+     * Note: this has no effect on GA4 properties.
+     * 
+ */ + public void deleteConnectedSiteTag( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConnectedSiteTagMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the connected site tags for a Universal Analytics property. A maximum
+     * of 20 connected site tags will be returned. Note: this has no effect on GA4
+     * property.
+     * 
+ */ + public void listConnectedSiteTags( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConnectedSiteTagsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Given a specified UA property, looks up the GA4 property connected to it.
+     * Note: this cannot be used with GA4 properties.
+     * 
+ */ + public void fetchConnectedGa4Property( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFetchConnectedGa4PropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Looks up a single AdSenseLink.
+     * 
+ */ + public void getAdSenseLink( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAdSenseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an AdSenseLink.
+     * 
+ */ + public void createAdSenseLink( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAdSenseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an AdSenseLink.
+     * 
+ */ + public void deleteAdSenseLink( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAdSenseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists AdSenseLinks on a property.
+     * 
+ */ + public void listAdSenseLinks( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAdSenseLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single EventCreateRule.
+     * 
+ */ + public void getEventCreateRule( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEventCreateRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists EventCreateRules on a web data stream.
+     * 
+ */ + public void listEventCreateRules( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListEventCreateRulesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an EventCreateRule.
+     * 
+ */ + public void createEventCreateRule( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateEventCreateRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an EventCreateRule.
+     * 
+ */ + public void updateEventCreateRule( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEventCreateRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an EventCreateRule.
+     * 
+ */ + public void deleteEventCreateRule( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteEventCreateRuleMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a DataRedactionSettings on a property.
+     * 
+ */ + public void updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataRedactionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataRedactionSettings.
+     * 
+ */ + public void getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataRedactionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a roll-up property and all roll-up property source links.
+     * 
+ */ + public void createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRollupPropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public void getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetRollupPropertySourceLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public void listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListRollupPropertySourceLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public void createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateRollupPropertySourceLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public void deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteRollupPropertySourceLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
+     * 
+ */ + public void createSubproperty( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSubpropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + public void deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteSubpropertyEventFilterMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a subproperty Event Filter.
+     * 
+ */ + public void createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AnalyticsAdminServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Account getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * AccessBindings) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public com.google.protobuf.Empty deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Account updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Property getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPropertiesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Property createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Property deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Property updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public com.google.protobuf.Empty deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public com.google.protobuf.Empty deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public com.google.protobuf.Empty deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Looks up a single SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + createSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCreateSKAdNetworkConversionValueSchemaMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deletes target SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.protobuf.Empty deleteSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getDeleteSKAdNetworkConversionValueSchemaMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Updates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + updateSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getUpdateSKAdNetworkConversionValueSchemaMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Lists SKAdNetworkConversionValueSchema on a stream.
+     * Properties can have at most one SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + listSKAdNetworkConversionValueSchemas( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListSKAdNetworkConversionValueSchemasMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGoogleSignalsSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGoogleSignalsSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ConversionEvent updateConversionEvent( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversionEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Look up a single DisplayVideo360AdvertiserLink
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getGetDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getListDisplayVideo360AdvertiserLinkProposalsMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCreateDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
+     * 
+ */ + public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getApproveDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), + getCancelDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CustomDimension createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CustomDimension updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public com.google.protobuf.Empty archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CustomMetric createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CustomMetric updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public com.google.protobuf.Empty archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataRetentionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataStream createDataStream( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataStream( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataStream updateDataStream( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse listDataStreams( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataStream getDataStream( + com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience getAudience( + com.google.analytics.admin.v1alpha.GetAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAudiencesResponse listAudiences( + com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAudiencesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience createAudience( + com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.Audience updateAudience( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public com.google.protobuf.Empty archiveAudience( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getArchiveAudienceMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Look up a single SearchAds360Link
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all SearchAds360Links on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse listSearchAds360Links( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListSearchAds360LinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a SearchAds360Link.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchAds360Link createSearchAds360Link( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a SearchAds360Link on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteSearchAds360Link( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a SearchAds360Link on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchAds360Link updateSearchAds360Link( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateSearchAds360LinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAttributionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAttributionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public com.google.analytics.admin.v1alpha.RunAccessReportResponse runAccessReport( + com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAccessReportMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an access binding on an account or property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AccessBinding createAccessBinding( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAccessBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets information about an access binding.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an access binding on an account or property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AccessBinding updateAccessBinding( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccessBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an access binding on an account or property.
+     * 
+ */ + public com.google.protobuf.Empty deleteAccessBinding( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccessBindingMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all access bindings on an account or property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse listAccessBindings( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccessBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCreateAccessBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets information about multiple access bindings to an account or property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetAccessBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates information about multiple access bindings to an account or
+     * property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchUpdateAccessBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + public com.google.protobuf.Empty batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeleteAccessBindingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single ExpandedDataSet.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetExpandedDataSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ExpandedDataSets on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListExpandedDataSetsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a ExpandedDataSet.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateExpandedDataSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a ExpandedDataSet on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateExpandedDataSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a ExpandedDataSet on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteExpandedDataSetMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single ChannelGroup.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetChannelGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists ChannelGroups on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse listChannelGroups( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListChannelGroupsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a ChannelGroup.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ChannelGroup createChannelGroup( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateChannelGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a ChannelGroup.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ChannelGroup updateChannelGroup( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateChannelGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a ChannelGroup on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteChannelGroup( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteChannelGroupMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Sets the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + setAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetAutomatedGa4ConfigurationOptOutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Fetches the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + fetchAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchAutomatedGa4ConfigurationOptOutMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single BigQuery Link.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.BigQueryLink getBigQueryLink( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetBigQueryLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists BigQuery Links on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse listBigQueryLinks( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListBigQueryLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a connected site tag for a Universal Analytics property. You can
+     * create a maximum of 20 connected site tags per property.
+     * Note: This API cannot be used on GA4 properties.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse createConnectedSiteTag( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConnectedSiteTagMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a connected site tag for a Universal Analytics property.
+     * Note: this has no effect on GA4 properties.
+     * 
+ */ + public com.google.protobuf.Empty deleteConnectedSiteTag( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConnectedSiteTagMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the connected site tags for a Universal Analytics property. A maximum
+     * of 20 connected site tags will be returned. Note: this has no effect on GA4
+     * property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse listConnectedSiteTags( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConnectedSiteTagsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Given a specified UA property, looks up the GA4 property connected to it.
+     * Note: this cannot be used with GA4 properties.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + fetchConnectedGa4Property( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFetchConnectedGa4PropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Looks up a single AdSenseLink.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AdSenseLink getAdSenseLink( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAdSenseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an AdSenseLink.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.AdSenseLink createAdSenseLink( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAdSenseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an AdSenseLink.
+     * 
+ */ + public com.google.protobuf.Empty deleteAdSenseLink( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAdSenseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists AdSenseLinks on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse listAdSenseLinks( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAdSenseLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single EventCreateRule.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEventCreateRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists EventCreateRules on a web data stream.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse listEventCreateRules( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListEventCreateRulesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an EventCreateRule.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.EventCreateRule createEventCreateRule( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateEventCreateRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an EventCreateRule.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.EventCreateRule updateEventCreateRule( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEventCreateRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes an EventCreateRule.
+     * 
+ */ + public com.google.protobuf.Empty deleteEventCreateRule( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteEventCreateRuleMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a DataRedactionSettings on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataRedactionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single DataRedactionSettings.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataRedactionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a roll-up property and all roll-up property source links.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRollupPropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetRollupPropertySourceLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListRollupPropertySourceLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink + createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateRollupPropertySourceLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.protobuf.Empty deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteRollupPropertySourceLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse createSubproperty( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubpropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + public com.google.protobuf.Empty deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteSubpropertyEventFilterMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a subproperty Event Filter.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateSubpropertyEventFilterMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AnalyticsAdminServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Account> + getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccountsResponse> + listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * AccessBindings) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Account> + updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> + listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListPropertiesResponse> + listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.FirebaseLink> + createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> + listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GlobalSiteTag> + getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleAdsLink> + createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleAdsLink> + updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> + listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataSharingSettings> + getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollection( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Looks up a single SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + getSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + createSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes target SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates a SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + updateSKAdNetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists SKAdNetworkConversionValueSchema on a stream.
+     * Properties can have at most one SKAdNetworkConversionValueSchema.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse> + listSKAdNetworkConversionValueSchemas( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSKAdNetworkConversionValueSchemasMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ConversionEvent> + createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ConversionEvent> + updateConversionEvent( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ConversionEvent> + getConversionEvent(com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Look up a single DisplayVideo360AdvertiserLink
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomDimension> + createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomDimension> + updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomDimension> + getCustomDimension(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomMetric> + createCustomMetric(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomMetric> + updateCustomMetric(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + listCustomMetrics(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + archiveCustomMetric(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomMetric> + getCustomMetric(com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRetentionSettings> + updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataStream> + createDataStream(com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataStream(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataStream> + updateDataStream(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListDataStreamsResponse> + listDataStreams(com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataStream> + getDataStream(com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single Audience.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Audience> + getAudience(com.google.analytics.admin.v1alpha.GetAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Audiences on a property.
+     * Audiences created before 2020 may not be supported.
+     * Default audiences will not show filter definitions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAudiencesResponse> + listAudiences(com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAudiencesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an Audience.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Audience> + createAudience(com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an Audience on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Audience> + updateAudience(com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Archives an Audience on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + archiveAudience(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Look up a single SearchAds360Link
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SearchAds360Link> + getSearchAds360Link(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetSearchAds360LinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all SearchAds360Links on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse> + listSearchAds360Links( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListSearchAds360LinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a SearchAds360Link.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SearchAds360Link> + createSearchAds360Link( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSearchAds360LinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a SearchAds360Link on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSearchAds360Link( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSearchAds360LinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a SearchAds360Link on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SearchAds360Link> + updateSearchAds360Link( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateSearchAds360LinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a AttributionSettings singleton.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AttributionSettings> + getAttributionSettings( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates attribution settings on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AttributionSettings> + updateAttributionSettings( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.RunAccessReportResponse> + runAccessReport(com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an access binding on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AccessBinding> + createAccessBinding(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets information about an access binding.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AccessBinding> + getAccessBinding(com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an access binding on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AccessBinding> + updateAccessBinding(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an access binding on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAccessBinding(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccessBindingMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all access bindings on an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse> + listAccessBindings(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates information about multiple access bindings to an account or
+     * property.
+     * This method is transactional. If any AccessBinding cannot be created, none
+     * of the AccessBindings will be created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse> + batchCreateAccessBindings( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCreateAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets information about multiple access bindings to an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse> + batchGetAccessBindings( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates information about multiple access bindings to an account or
+     * property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse> + batchUpdateAccessBindings( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchUpdateAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + batchDeleteAccessBindings( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeleteAccessBindingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single ExpandedDataSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ExpandedDataSet> + getExpandedDataSet(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetExpandedDataSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ExpandedDataSets on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse> + listExpandedDataSets( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListExpandedDataSetsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a ExpandedDataSet.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ExpandedDataSet> + createExpandedDataSet( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateExpandedDataSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a ExpandedDataSet on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ExpandedDataSet> + updateExpandedDataSet( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateExpandedDataSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a ExpandedDataSet on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteExpandedDataSet( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteExpandedDataSetMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single ChannelGroup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ChannelGroup> + getChannelGroup(com.google.analytics.admin.v1alpha.GetChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetChannelGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists ChannelGroups on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse> + listChannelGroups(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListChannelGroupsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a ChannelGroup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ChannelGroup> + createChannelGroup(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateChannelGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a ChannelGroup.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ChannelGroup> + updateChannelGroup(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateChannelGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a ChannelGroup on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteChannelGroup(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteChannelGroupMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Sets the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse> + setAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Fetches the opt out status for the automated GA4 setup process for a UA
+     * property.
+     * Note: this has no effect on GA4 property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse> + fetchAutomatedGa4ConfigurationOptOut( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lookup for a single BigQuery Link.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BigQueryLink> + getBigQueryLink(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetBigQueryLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists BigQuery Links on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse> + listBigQueryLinks(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListBigQueryLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates the enhanced measurement settings for this data stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a connected site tag for a Universal Analytics property. You can
+     * create a maximum of 20 connected site tags per property.
+     * Note: This API cannot be used on GA4 properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse> + createConnectedSiteTag( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConnectedSiteTagMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a connected site tag for a Universal Analytics property.
+     * Note: this has no effect on GA4 properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConnectedSiteTag( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConnectedSiteTagMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the connected site tags for a Universal Analytics property. A maximum
+     * of 20 connected site tags will be returned. Note: this has no effect on GA4
+     * property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse> + listConnectedSiteTags( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConnectedSiteTagsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Given a specified UA property, looks up the GA4 property connected to it.
+     * Note: this cannot be used with GA4 properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse> + fetchConnectedGa4Property( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFetchConnectedGa4PropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Looks up a single AdSenseLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AdSenseLink> + getAdSenseLink(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAdSenseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an AdSenseLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AdSenseLink> + createAdSenseLink(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAdSenseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an AdSenseLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAdSenseLink(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAdSenseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists AdSenseLinks on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse> + listAdSenseLinks(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAdSenseLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single EventCreateRule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.EventCreateRule> + getEventCreateRule(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetEventCreateRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists EventCreateRules on a web data stream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse> + listEventCreateRules( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListEventCreateRulesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an EventCreateRule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.EventCreateRule> + createEventCreateRule( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateEventCreateRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an EventCreateRule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.EventCreateRule> + updateEventCreateRule( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateEventCreateRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes an EventCreateRule.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteEventCreateRule( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteEventCreateRuleMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a DataRedactionSettings on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRedactionSettings> + updateDataRedactionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataRedactionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single DataRedactionSettings.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRedactionSettings> + getDataRedactionSettings( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataRedactionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Create a roll-up property and all roll-up property source links.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse> + createRollupProperty( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRollupPropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single roll-up property source Link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + getRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetRollupPropertySourceLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists roll-up property source Links on a property.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse> + listRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListRollupPropertySourceLinksMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink> + createRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateRollupPropertySourceLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a roll-up property source link.
+     * Only roll-up properties can have source links, so this method will throw an
+     * error if used on other types of properties.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteRollupPropertySourceLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Create a subproperty and a subproperty event filter that applies to the
+     * created subproperty.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse> + createSubproperty(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSubpropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a subproperty event filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteSubpropertyEventFilterMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a subproperty Event Filter.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter> + createSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_ACCOUNT = 0; + private static final int METHODID_LIST_ACCOUNTS = 1; + private static final int METHODID_DELETE_ACCOUNT = 2; + private static final int METHODID_UPDATE_ACCOUNT = 3; + private static final int METHODID_PROVISION_ACCOUNT_TICKET = 4; + private static final int METHODID_LIST_ACCOUNT_SUMMARIES = 5; + private static final int METHODID_GET_PROPERTY = 6; + private static final int METHODID_LIST_PROPERTIES = 7; + private static final int METHODID_CREATE_PROPERTY = 8; + private static final int METHODID_DELETE_PROPERTY = 9; + private static final int METHODID_UPDATE_PROPERTY = 10; + private static final int METHODID_CREATE_FIREBASE_LINK = 11; + private static final int METHODID_DELETE_FIREBASE_LINK = 12; + private static final int METHODID_LIST_FIREBASE_LINKS = 13; + private static final int METHODID_GET_GLOBAL_SITE_TAG = 14; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 15; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 16; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 17; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 18; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 19; + private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 20; + private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 21; + private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 22; + private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 23; + private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 24; + private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 25; + private static final int METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 26; + private static final int METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 27; + private static final int METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 28; + private static final int METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 29; + private static final int METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS = 30; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 31; + private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 32; + private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 33; + private static final int METHODID_CREATE_CONVERSION_EVENT = 34; + private static final int METHODID_UPDATE_CONVERSION_EVENT = 35; + private static final int METHODID_GET_CONVERSION_EVENT = 36; + private static final int METHODID_DELETE_CONVERSION_EVENT = 37; + private static final int METHODID_LIST_CONVERSION_EVENTS = 38; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 39; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 40; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 41; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 42; + private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 43; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 44; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 45; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 46; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 47; + private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 48; + private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 49; + private static final int METHODID_CREATE_CUSTOM_DIMENSION = 50; + private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 51; + private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 52; + private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 53; + private static final int METHODID_GET_CUSTOM_DIMENSION = 54; + private static final int METHODID_CREATE_CUSTOM_METRIC = 55; + private static final int METHODID_UPDATE_CUSTOM_METRIC = 56; + private static final int METHODID_LIST_CUSTOM_METRICS = 57; + private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 58; + private static final int METHODID_GET_CUSTOM_METRIC = 59; + private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 60; + private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 61; + private static final int METHODID_CREATE_DATA_STREAM = 62; + private static final int METHODID_DELETE_DATA_STREAM = 63; + private static final int METHODID_UPDATE_DATA_STREAM = 64; + private static final int METHODID_LIST_DATA_STREAMS = 65; + private static final int METHODID_GET_DATA_STREAM = 66; + private static final int METHODID_GET_AUDIENCE = 67; + private static final int METHODID_LIST_AUDIENCES = 68; + private static final int METHODID_CREATE_AUDIENCE = 69; + private static final int METHODID_UPDATE_AUDIENCE = 70; + private static final int METHODID_ARCHIVE_AUDIENCE = 71; + private static final int METHODID_GET_SEARCH_ADS360LINK = 72; + private static final int METHODID_LIST_SEARCH_ADS360LINKS = 73; + private static final int METHODID_CREATE_SEARCH_ADS360LINK = 74; + private static final int METHODID_DELETE_SEARCH_ADS360LINK = 75; + private static final int METHODID_UPDATE_SEARCH_ADS360LINK = 76; + private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 77; + private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 78; + private static final int METHODID_RUN_ACCESS_REPORT = 79; + private static final int METHODID_CREATE_ACCESS_BINDING = 80; + private static final int METHODID_GET_ACCESS_BINDING = 81; + private static final int METHODID_UPDATE_ACCESS_BINDING = 82; + private static final int METHODID_DELETE_ACCESS_BINDING = 83; + private static final int METHODID_LIST_ACCESS_BINDINGS = 84; + private static final int METHODID_BATCH_CREATE_ACCESS_BINDINGS = 85; + private static final int METHODID_BATCH_GET_ACCESS_BINDINGS = 86; + private static final int METHODID_BATCH_UPDATE_ACCESS_BINDINGS = 87; + private static final int METHODID_BATCH_DELETE_ACCESS_BINDINGS = 88; + private static final int METHODID_GET_EXPANDED_DATA_SET = 89; + private static final int METHODID_LIST_EXPANDED_DATA_SETS = 90; + private static final int METHODID_CREATE_EXPANDED_DATA_SET = 91; + private static final int METHODID_UPDATE_EXPANDED_DATA_SET = 92; + private static final int METHODID_DELETE_EXPANDED_DATA_SET = 93; + private static final int METHODID_GET_CHANNEL_GROUP = 94; + private static final int METHODID_LIST_CHANNEL_GROUPS = 95; + private static final int METHODID_CREATE_CHANNEL_GROUP = 96; + private static final int METHODID_UPDATE_CHANNEL_GROUP = 97; + private static final int METHODID_DELETE_CHANNEL_GROUP = 98; + private static final int METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 99; + private static final int METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 100; + private static final int METHODID_GET_BIG_QUERY_LINK = 101; + private static final int METHODID_LIST_BIG_QUERY_LINKS = 102; + private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 103; + private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 104; + private static final int METHODID_CREATE_CONNECTED_SITE_TAG = 105; + private static final int METHODID_DELETE_CONNECTED_SITE_TAG = 106; + private static final int METHODID_LIST_CONNECTED_SITE_TAGS = 107; + private static final int METHODID_FETCH_CONNECTED_GA4PROPERTY = 108; + private static final int METHODID_GET_AD_SENSE_LINK = 109; + private static final int METHODID_CREATE_AD_SENSE_LINK = 110; + private static final int METHODID_DELETE_AD_SENSE_LINK = 111; + private static final int METHODID_LIST_AD_SENSE_LINKS = 112; + private static final int METHODID_GET_EVENT_CREATE_RULE = 113; + private static final int METHODID_LIST_EVENT_CREATE_RULES = 114; + private static final int METHODID_CREATE_EVENT_CREATE_RULE = 115; + private static final int METHODID_UPDATE_EVENT_CREATE_RULE = 116; + private static final int METHODID_DELETE_EVENT_CREATE_RULE = 117; + private static final int METHODID_UPDATE_DATA_REDACTION_SETTINGS = 118; + private static final int METHODID_GET_DATA_REDACTION_SETTINGS = 119; + private static final int METHODID_CREATE_ROLLUP_PROPERTY = 120; + private static final int METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK = 121; + private static final int METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS = 122; + private static final int METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK = 123; + private static final int METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK = 124; + private static final int METHODID_CREATE_SUBPROPERTY = 125; + private static final int METHODID_DELETE_SUBPROPERTY_EVENT_FILTER = 126; + private static final int METHODID_CREATE_SUBPROPERTY_EVENT_FILTER = 127; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_ACCOUNT: + serviceImpl.getAccount( + (com.google.analytics.admin.v1alpha.GetAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ACCOUNTS: + serviceImpl.listAccounts( + (com.google.analytics.admin.v1alpha.ListAccountsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ACCOUNT: + serviceImpl.deleteAccount( + (com.google.analytics.admin.v1alpha.DeleteAccountRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ACCOUNT: + serviceImpl.updateAccount( + (com.google.analytics.admin.v1alpha.UpdateAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_PROVISION_ACCOUNT_TICKET: + serviceImpl.provisionAccountTicket( + (com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>) + responseObserver); + break; + case METHODID_LIST_ACCOUNT_SUMMARIES: + serviceImpl.listAccountSummaries( + (com.google.analytics.admin.v1alpha.ListAccountSummariesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>) + responseObserver); + break; + case METHODID_GET_PROPERTY: + serviceImpl.getProperty( + (com.google.analytics.admin.v1alpha.GetPropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PROPERTIES: + serviceImpl.listProperties( + (com.google.analytics.admin.v1alpha.ListPropertiesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListPropertiesResponse>) + responseObserver); + break; + case METHODID_CREATE_PROPERTY: + serviceImpl.createProperty( + (com.google.analytics.admin.v1alpha.CreatePropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PROPERTY: + serviceImpl.deleteProperty( + (com.google.analytics.admin.v1alpha.DeletePropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PROPERTY: + serviceImpl.updateProperty( + (com.google.analytics.admin.v1alpha.UpdatePropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FIREBASE_LINK: + serviceImpl.createFirebaseLink( + (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_FIREBASE_LINK: + serviceImpl.deleteFirebaseLink( + (com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FIREBASE_LINKS: + serviceImpl.listFirebaseLinks( + (com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse>) + responseObserver); + break; + case METHODID_GET_GLOBAL_SITE_TAG: + serviceImpl.getGlobalSiteTag( + (com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_GOOGLE_ADS_LINK: + serviceImpl.createGoogleAdsLink( + (com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_GOOGLE_ADS_LINK: + serviceImpl.updateGoogleAdsLink( + (com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_GOOGLE_ADS_LINK: + serviceImpl.deleteGoogleAdsLink( + (com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GOOGLE_ADS_LINKS: + serviceImpl.listGoogleAdsLinks( + (com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse>) + responseObserver); + break; + case METHODID_GET_DATA_SHARING_SETTINGS: + serviceImpl.getDataSharingSettings( + (com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.getMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS: + serviceImpl.listMeasurementProtocolSecrets( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse>) + responseObserver); + break; + case METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.createMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.deleteMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.updateMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION: + serviceImpl.acknowledgeUserDataCollection( + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse>) + responseObserver); + break; + case METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: + serviceImpl.getSKAdNetworkConversionValueSchema( + (com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>) + responseObserver); + break; + case METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: + serviceImpl.createSKAdNetworkConversionValueSchema( + (com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>) + responseObserver); + break; + case METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: + serviceImpl.deleteSKAdNetworkConversionValueSchema( + (com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: + serviceImpl.updateSKAdNetworkConversionValueSchema( + (com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>) + responseObserver); + break; + case METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS: + serviceImpl.listSKAdNetworkConversionValueSchemas( + (com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListSKAdNetworkConversionValueSchemasResponse>) + responseObserver); + break; + case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: + serviceImpl.searchChangeHistoryEvents( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>) + responseObserver); + break; + case METHODID_GET_GOOGLE_SIGNALS_SETTINGS: + serviceImpl.getGoogleSignalsSettings( + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>) + responseObserver); + break; + case METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS: + serviceImpl.updateGoogleSignalsSettings( + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>) + responseObserver); + break; + case METHODID_CREATE_CONVERSION_EVENT: + serviceImpl.createConversionEvent( + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CONVERSION_EVENT: + serviceImpl.updateConversionEvent( + (com.google.analytics.admin.v1alpha.UpdateConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONVERSION_EVENT: + serviceImpl.getConversionEvent( + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONVERSION_EVENT: + serviceImpl.deleteConversionEvent( + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSION_EVENTS: + serviceImpl.listConversionEvents( + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListConversionEventsResponse>) + responseObserver); + break; + case METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.getDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>) + responseObserver); + break; + case METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS: + serviceImpl.listDisplayVideo360AdvertiserLinks( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinksResponse>) + responseObserver); + break; + case METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.createDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>) + responseObserver); + break; + case METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.deleteDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.updateDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>) + responseObserver); + break; + case METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.getDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>) + responseObserver); + break; + case METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS: + serviceImpl.listDisplayVideo360AdvertiserLinkProposals( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse>) + responseObserver); + break; + case METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.createDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>) + responseObserver); + break; + case METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.deleteDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.approveDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse>) + responseObserver); + break; + case METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.cancelDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_DIMENSION: + serviceImpl.createCustomDimension( + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_DIMENSION: + serviceImpl.updateCustomDimension( + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_DIMENSIONS: + serviceImpl.listCustomDimensions( + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_DIMENSION: + serviceImpl.archiveCustomDimension( + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_DIMENSION: + serviceImpl.getCustomDimension( + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_METRIC: + serviceImpl.createCustomMetric( + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_METRIC: + serviceImpl.updateCustomMetric( + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_METRICS: + serviceImpl.listCustomMetrics( + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_METRIC: + serviceImpl.archiveCustomMetric( + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_METRIC: + serviceImpl.getCustomMetric( + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DATA_RETENTION_SETTINGS: + serviceImpl.getDataRetentionSettings( + (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRetentionSettings>) + responseObserver); + break; + case METHODID_UPDATE_DATA_RETENTION_SETTINGS: + serviceImpl.updateDataRetentionSettings( + (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRetentionSettings>) + responseObserver); + break; + case METHODID_CREATE_DATA_STREAM: + serviceImpl.createDataStream( + (com.google.analytics.admin.v1alpha.CreateDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DATA_STREAM: + serviceImpl.deleteDataStream( + (com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DATA_STREAM: + serviceImpl.updateDataStream( + (com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_STREAMS: + serviceImpl.listDataStreams( + (com.google.analytics.admin.v1alpha.ListDataStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListDataStreamsResponse>) + responseObserver); + break; + case METHODID_GET_DATA_STREAM: + serviceImpl.getDataStream( + (com.google.analytics.admin.v1alpha.GetDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_AUDIENCE: + serviceImpl.getAudience( + (com.google.analytics.admin.v1alpha.GetAudienceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_AUDIENCES: + serviceImpl.listAudiences( + (com.google.analytics.admin.v1alpha.ListAudiencesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAudiencesResponse>) + responseObserver); + break; + case METHODID_CREATE_AUDIENCE: + serviceImpl.createAudience( + (com.google.analytics.admin.v1alpha.CreateAudienceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_AUDIENCE: + serviceImpl.updateAudience( + (com.google.analytics.admin.v1alpha.UpdateAudienceRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_ARCHIVE_AUDIENCE: + serviceImpl.archiveAudience( + (com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_SEARCH_ADS360LINK: + serviceImpl.getSearchAds360Link( + (com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_SEARCH_ADS360LINKS: + serviceImpl.listSearchAds360Links( + (com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse>) + responseObserver); + break; + case METHODID_CREATE_SEARCH_ADS360LINK: + serviceImpl.createSearchAds360Link( + (com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_SEARCH_ADS360LINK: + serviceImpl.deleteSearchAds360Link( + (com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_SEARCH_ADS360LINK: + serviceImpl.updateSearchAds360Link( + (com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ATTRIBUTION_SETTINGS: + serviceImpl.getAttributionSettings( + (com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ATTRIBUTION_SETTINGS: + serviceImpl.updateAttributionSettings( + (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RUN_ACCESS_REPORT: + serviceImpl.runAccessReport( + (com.google.analytics.admin.v1alpha.RunAccessReportRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.RunAccessReportResponse>) + responseObserver); + break; + case METHODID_CREATE_ACCESS_BINDING: + serviceImpl.createAccessBinding( + (com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_ACCESS_BINDING: + serviceImpl.getAccessBinding( + (com.google.analytics.admin.v1alpha.GetAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ACCESS_BINDING: + serviceImpl.updateAccessBinding( + (com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ACCESS_BINDING: + serviceImpl.deleteAccessBinding( + (com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ACCESS_BINDINGS: + serviceImpl.listAccessBindings( + (com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_CREATE_ACCESS_BINDINGS: + serviceImpl.batchCreateAccessBindings( + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_GET_ACCESS_BINDINGS: + serviceImpl.batchGetAccessBindings( + (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_UPDATE_ACCESS_BINDINGS: + serviceImpl.batchUpdateAccessBindings( + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse>) + responseObserver); + break; + case METHODID_BATCH_DELETE_ACCESS_BINDINGS: + serviceImpl.batchDeleteAccessBindings( + (com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_EXPANDED_DATA_SET: + serviceImpl.getExpandedDataSet( + (com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EXPANDED_DATA_SETS: + serviceImpl.listExpandedDataSets( + (com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse>) + responseObserver); + break; + case METHODID_CREATE_EXPANDED_DATA_SET: + serviceImpl.createExpandedDataSet( + (com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_EXPANDED_DATA_SET: + serviceImpl.updateExpandedDataSet( + (com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_EXPANDED_DATA_SET: + serviceImpl.deleteExpandedDataSet( + (com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CHANNEL_GROUP: + serviceImpl.getChannelGroup( + (com.google.analytics.admin.v1alpha.GetChannelGroupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CHANNEL_GROUPS: + serviceImpl.listChannelGroups( + (com.google.analytics.admin.v1alpha.ListChannelGroupsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse>) + responseObserver); + break; + case METHODID_CREATE_CHANNEL_GROUP: + serviceImpl.createChannelGroup( + (com.google.analytics.admin.v1alpha.CreateChannelGroupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CHANNEL_GROUP: + serviceImpl.updateChannelGroup( + (com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CHANNEL_GROUP: + serviceImpl.deleteChannelGroup( + (com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT: + serviceImpl.setAutomatedGa4ConfigurationOptOut( + (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .SetAutomatedGa4ConfigurationOptOutResponse>) + responseObserver); + break; + case METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT: + serviceImpl.fetchAutomatedGa4ConfigurationOptOut( + (com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .FetchAutomatedGa4ConfigurationOptOutResponse>) + responseObserver); + break; + case METHODID_GET_BIG_QUERY_LINK: + serviceImpl.getBigQueryLink( + (com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_BIG_QUERY_LINKS: + serviceImpl.listBigQueryLinks( + (com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse>) + responseObserver); + break; + case METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS: + serviceImpl.getEnhancedMeasurementSettings( + (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>) + responseObserver); + break; + case METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS: + serviceImpl.updateEnhancedMeasurementSettings( + (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>) + responseObserver); + break; + case METHODID_CREATE_CONNECTED_SITE_TAG: + serviceImpl.createConnectedSiteTag( + (com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse>) + responseObserver); + break; + case METHODID_DELETE_CONNECTED_SITE_TAG: + serviceImpl.deleteConnectedSiteTag( + (com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONNECTED_SITE_TAGS: + serviceImpl.listConnectedSiteTags( + (com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse>) + responseObserver); + break; + case METHODID_FETCH_CONNECTED_GA4PROPERTY: + serviceImpl.fetchConnectedGa4Property( + (com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse>) + responseObserver); + break; + case METHODID_GET_AD_SENSE_LINK: + serviceImpl.getAdSenseLink( + (com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_AD_SENSE_LINK: + serviceImpl.createAdSenseLink( + (com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_AD_SENSE_LINK: + serviceImpl.deleteAdSenseLink( + (com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_AD_SENSE_LINKS: + serviceImpl.listAdSenseLinks( + (com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse>) + responseObserver); + break; + case METHODID_GET_EVENT_CREATE_RULE: + serviceImpl.getEventCreateRule( + (com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_EVENT_CREATE_RULES: + serviceImpl.listEventCreateRules( + (com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse>) + responseObserver); + break; + case METHODID_CREATE_EVENT_CREATE_RULE: + serviceImpl.createEventCreateRule( + (com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_EVENT_CREATE_RULE: + serviceImpl.updateEventCreateRule( + (com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_EVENT_CREATE_RULE: + serviceImpl.deleteEventCreateRule( + (com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DATA_REDACTION_SETTINGS: + serviceImpl.updateDataRedactionSettings( + (com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRedactionSettings>) + responseObserver); + break; + case METHODID_GET_DATA_REDACTION_SETTINGS: + serviceImpl.getDataRedactionSettings( + (com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRedactionSettings>) + responseObserver); + break; + case METHODID_CREATE_ROLLUP_PROPERTY: + serviceImpl.createRollupProperty( + (com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse>) + responseObserver); + break; + case METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK: + serviceImpl.getRollupPropertySourceLink( + (com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>) + responseObserver); + break; + case METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS: + serviceImpl.listRollupPropertySourceLinks( + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse>) + responseObserver); + break; + case METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK: + serviceImpl.createRollupPropertySourceLink( + (com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>) + responseObserver); + break; + case METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK: + serviceImpl.deleteRollupPropertySourceLink( + (com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SUBPROPERTY: + serviceImpl.createSubproperty( + (com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse>) + responseObserver); + break; + case METHODID_DELETE_SUBPROPERTY_EVENT_FILTER: + serviceImpl.deleteSubpropertyEventFilter( + (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_SUBPROPERTY_EVENT_FILTER: + serviceImpl.createSubpropertyEventFilter( + (com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAccountRequest, + com.google.analytics.admin.v1alpha.Account>(service, METHODID_GET_ACCOUNT))) + .addMethod( + getListAccountsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccountsRequest, + com.google.analytics.admin.v1alpha.ListAccountsResponse>( + service, METHODID_LIST_ACCOUNTS))) + .addMethod( + getDeleteAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAccountRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ACCOUNT))) + .addMethod( + getUpdateAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAccountRequest, + com.google.analytics.admin.v1alpha.Account>(service, METHODID_UPDATE_ACCOUNT))) + .addMethod( + getProvisionAccountTicketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( + service, METHODID_PROVISION_ACCOUNT_TICKET))) + .addMethod( + getListAccountSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>( + service, METHODID_LIST_ACCOUNT_SUMMARIES))) + .addMethod( + getGetPropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetPropertyRequest, + com.google.analytics.admin.v1alpha.Property>(service, METHODID_GET_PROPERTY))) + .addMethod( + getListPropertiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListPropertiesRequest, + com.google.analytics.admin.v1alpha.ListPropertiesResponse>( + service, METHODID_LIST_PROPERTIES))) + .addMethod( + getCreatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>( + service, METHODID_CREATE_PROPERTY))) + .addMethod( + getDeletePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property>( + service, METHODID_DELETE_PROPERTY))) + .addMethod( + getUpdatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>( + service, METHODID_UPDATE_PROPERTY))) + .addMethod( + getCreateFirebaseLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1alpha.FirebaseLink>( + service, METHODID_CREATE_FIREBASE_LINK))) + .addMethod( + getDeleteFirebaseLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_FIREBASE_LINK))) + .addMethod( + getListFirebaseLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse>( + service, METHODID_LIST_FIREBASE_LINKS))) + .addMethod( + getGetGlobalSiteTagMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, + com.google.analytics.admin.v1alpha.GlobalSiteTag>( + service, METHODID_GET_GLOBAL_SITE_TAG))) + .addMethod( + getCreateGoogleAdsLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink>( + service, METHODID_CREATE_GOOGLE_ADS_LINK))) + .addMethod( + getUpdateGoogleAdsLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1alpha.GoogleAdsLink>( + service, METHODID_UPDATE_GOOGLE_ADS_LINK))) + .addMethod( + getDeleteGoogleAdsLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_GOOGLE_ADS_LINK))) + .addMethod( + getListGoogleAdsLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse>( + service, METHODID_LIST_GOOGLE_ADS_LINKS))) + .addMethod( + getGetDataSharingSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1alpha.DataSharingSettings>( + service, METHODID_GET_DATA_SHARING_SETTINGS))) + .addMethod( + getGetMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + service, METHODID_GET_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getListMeasurementProtocolSecretsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse>( + service, METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS))) + .addMethod( + getCreateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + service, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getDeleteMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getUpdateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + service, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getAcknowledgeUserDataCollectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse>( + service, METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION))) + .addMethod( + getGetSKAdNetworkConversionValueSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>( + service, METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) + .addMethod( + getCreateSKAdNetworkConversionValueSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .CreateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>( + service, METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) + .addMethod( + getDeleteSKAdNetworkConversionValueSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .DeleteSKAdNetworkConversionValueSchemaRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) + .addMethod( + getUpdateSKAdNetworkConversionValueSchemaMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .UpdateSKAdNetworkConversionValueSchemaRequest, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>( + service, METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) + .addMethod( + getListSKAdNetworkConversionValueSchemasMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest, + com.google.analytics.admin.v1alpha + .ListSKAdNetworkConversionValueSchemasResponse>( + service, METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS))) + .addMethod( + getSearchChangeHistoryEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( + service, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) + .addMethod( + getGetGoogleSignalsSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( + service, METHODID_GET_GOOGLE_SIGNALS_SETTINGS))) + .addMethod( + getUpdateGoogleSignalsSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( + service, METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS))) + .addMethod( + getCreateConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent>( + service, METHODID_CREATE_CONVERSION_EVENT))) + .addMethod( + getUpdateConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent>( + service, METHODID_UPDATE_CONVERSION_EVENT))) + .addMethod( + getGetConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent>( + service, METHODID_GET_CONVERSION_EVENT))) + .addMethod( + getDeleteConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CONVERSION_EVENT))) + .addMethod( + getListConversionEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse>( + service, METHODID_LIST_CONVERSION_EVENTS))) + .addMethod( + getGetDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + service, METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getListDisplayVideo360AdvertiserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse>( + service, METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS))) + .addMethod( + getCreateDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + service, METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getDeleteDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getUpdateDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + service, METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getGetDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + service, METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getListDisplayVideo360AdvertiserLinkProposalsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse>( + service, METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS))) + .addMethod( + getCreateDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + service, METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getApproveDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse>( + service, METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getCancelDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + service, METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getCreateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + service, METHODID_CREATE_CUSTOM_DIMENSION))) + .addMethod( + getUpdateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + service, METHODID_UPDATE_CUSTOM_DIMENSION))) + .addMethod( + getListCustomDimensionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse>( + service, METHODID_LIST_CUSTOM_DIMENSIONS))) + .addMethod( + getArchiveCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty>(service, METHODID_ARCHIVE_CUSTOM_DIMENSION))) + .addMethod( + getGetCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + service, METHODID_GET_CUSTOM_DIMENSION))) + .addMethod( + getCreateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + service, METHODID_CREATE_CUSTOM_METRIC))) + .addMethod( + getUpdateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + service, METHODID_UPDATE_CUSTOM_METRIC))) + .addMethod( + getListCustomMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>( + service, METHODID_LIST_CUSTOM_METRICS))) + .addMethod( + getArchiveCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, + com.google.protobuf.Empty>(service, METHODID_ARCHIVE_CUSTOM_METRIC))) + .addMethod( + getGetCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + service, METHODID_GET_CUSTOM_METRIC))) + .addMethod( + getGetDataRetentionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings>( + service, METHODID_GET_DATA_RETENTION_SETTINGS))) + .addMethod( + getUpdateDataRetentionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings>( + service, METHODID_UPDATE_DATA_RETENTION_SETTINGS))) + .addMethod( + getCreateDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream>( + service, METHODID_CREATE_DATA_STREAM))) + .addMethod( + getDeleteDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DATA_STREAM))) + .addMethod( + getUpdateDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream>( + service, METHODID_UPDATE_DATA_STREAM))) + .addMethod( + getListDataStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse>( + service, METHODID_LIST_DATA_STREAMS))) + .addMethod( + getGetDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataStreamRequest, + com.google.analytics.admin.v1alpha.DataStream>( + service, METHODID_GET_DATA_STREAM))) + .addMethod( + getGetAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAudienceRequest, + com.google.analytics.admin.v1alpha.Audience>(service, METHODID_GET_AUDIENCE))) + .addMethod( + getListAudiencesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAudiencesRequest, + com.google.analytics.admin.v1alpha.ListAudiencesResponse>( + service, METHODID_LIST_AUDIENCES))) + .addMethod( + getCreateAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience>( + service, METHODID_CREATE_AUDIENCE))) + .addMethod( + getUpdateAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAudienceRequest, + com.google.analytics.admin.v1alpha.Audience>( + service, METHODID_UPDATE_AUDIENCE))) + .addMethod( + getArchiveAudienceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, + com.google.protobuf.Empty>(service, METHODID_ARCHIVE_AUDIENCE))) + .addMethod( + getGetSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link>( + service, METHODID_GET_SEARCH_ADS360LINK))) + .addMethod( + getListSearchAds360LinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse>( + service, METHODID_LIST_SEARCH_ADS360LINKS))) + .addMethod( + getCreateSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link>( + service, METHODID_CREATE_SEARCH_ADS360LINK))) + .addMethod( + getDeleteSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SEARCH_ADS360LINK))) + .addMethod( + getUpdateSearchAds360LinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, + com.google.analytics.admin.v1alpha.SearchAds360Link>( + service, METHODID_UPDATE_SEARCH_ADS360LINK))) + .addMethod( + getGetAttributionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings>( + service, METHODID_GET_ATTRIBUTION_SETTINGS))) + .addMethod( + getUpdateAttributionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, + com.google.analytics.admin.v1alpha.AttributionSettings>( + service, METHODID_UPDATE_ATTRIBUTION_SETTINGS))) + .addMethod( + getRunAccessReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.RunAccessReportRequest, + com.google.analytics.admin.v1alpha.RunAccessReportResponse>( + service, METHODID_RUN_ACCESS_REPORT))) + .addMethod( + getCreateAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding>( + service, METHODID_CREATE_ACCESS_BINDING))) + .addMethod( + getGetAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding>( + service, METHODID_GET_ACCESS_BINDING))) + .addMethod( + getUpdateAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.AccessBinding>( + service, METHODID_UPDATE_ACCESS_BINDING))) + .addMethod( + getDeleteAccessBindingMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ACCESS_BINDING))) + .addMethod( + getListAccessBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse>( + service, METHODID_LIST_ACCESS_BINDINGS))) + .addMethod( + getBatchCreateAccessBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse>( + service, METHODID_BATCH_CREATE_ACCESS_BINDINGS))) + .addMethod( + getBatchGetAccessBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse>( + service, METHODID_BATCH_GET_ACCESS_BINDINGS))) + .addMethod( + getBatchUpdateAccessBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse>( + service, METHODID_BATCH_UPDATE_ACCESS_BINDINGS))) + .addMethod( + getBatchDeleteAccessBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, + com.google.protobuf.Empty>(service, METHODID_BATCH_DELETE_ACCESS_BINDINGS))) + .addMethod( + getGetExpandedDataSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet>( + service, METHODID_GET_EXPANDED_DATA_SET))) + .addMethod( + getListExpandedDataSetsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse>( + service, METHODID_LIST_EXPANDED_DATA_SETS))) + .addMethod( + getCreateExpandedDataSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet>( + service, METHODID_CREATE_EXPANDED_DATA_SET))) + .addMethod( + getUpdateExpandedDataSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, + com.google.analytics.admin.v1alpha.ExpandedDataSet>( + service, METHODID_UPDATE_EXPANDED_DATA_SET))) + .addMethod( + getDeleteExpandedDataSetMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_EXPANDED_DATA_SET))) + .addMethod( + getGetChannelGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup>( + service, METHODID_GET_CHANNEL_GROUP))) + .addMethod( + getListChannelGroupsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest, + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse>( + service, METHODID_LIST_CHANNEL_GROUPS))) + .addMethod( + getCreateChannelGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup>( + service, METHODID_CREATE_CHANNEL_GROUP))) + .addMethod( + getUpdateChannelGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest, + com.google.analytics.admin.v1alpha.ChannelGroup>( + service, METHODID_UPDATE_CHANNEL_GROUP))) + .addMethod( + getDeleteChannelGroupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CHANNEL_GROUP))) + .addMethod( + getSetAutomatedGa4ConfigurationOptOutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse>( + service, METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT))) + .addMethod( + getFetchAutomatedGa4ConfigurationOptOutMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest, + com.google.analytics.admin.v1alpha + .FetchAutomatedGa4ConfigurationOptOutResponse>( + service, METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT))) + .addMethod( + getGetBigQueryLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest, + com.google.analytics.admin.v1alpha.BigQueryLink>( + service, METHODID_GET_BIG_QUERY_LINK))) + .addMethod( + getListBigQueryLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest, + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse>( + service, METHODID_LIST_BIG_QUERY_LINKS))) + .addMethod( + getGetEnhancedMeasurementSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( + service, METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS))) + .addMethod( + getUpdateEnhancedMeasurementSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( + service, METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS))) + .addMethod( + getCreateConnectedSiteTagMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse>( + service, METHODID_CREATE_CONNECTED_SITE_TAG))) + .addMethod( + getDeleteConnectedSiteTagMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CONNECTED_SITE_TAG))) + .addMethod( + getListConnectedSiteTagsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse>( + service, METHODID_LIST_CONNECTED_SITE_TAGS))) + .addMethod( + getFetchConnectedGa4PropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse>( + service, METHODID_FETCH_CONNECTED_GA4PROPERTY))) + .addMethod( + getGetAdSenseLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink>( + service, METHODID_GET_AD_SENSE_LINK))) + .addMethod( + getCreateAdSenseLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest, + com.google.analytics.admin.v1alpha.AdSenseLink>( + service, METHODID_CREATE_AD_SENSE_LINK))) + .addMethod( + getDeleteAdSenseLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_AD_SENSE_LINK))) + .addMethod( + getListAdSenseLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest, + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse>( + service, METHODID_LIST_AD_SENSE_LINKS))) + .addMethod( + getGetEventCreateRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule>( + service, METHODID_GET_EVENT_CREATE_RULE))) + .addMethod( + getListEventCreateRulesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest, + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse>( + service, METHODID_LIST_EVENT_CREATE_RULES))) + .addMethod( + getCreateEventCreateRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule>( + service, METHODID_CREATE_EVENT_CREATE_RULE))) + .addMethod( + getUpdateEventCreateRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest, + com.google.analytics.admin.v1alpha.EventCreateRule>( + service, METHODID_UPDATE_EVENT_CREATE_RULE))) + .addMethod( + getDeleteEventCreateRuleMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_EVENT_CREATE_RULE))) + .addMethod( + getUpdateDataRedactionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings>( + service, METHODID_UPDATE_DATA_REDACTION_SETTINGS))) + .addMethod( + getGetDataRedactionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRedactionSettings>( + service, METHODID_GET_DATA_REDACTION_SETTINGS))) + .addMethod( + getCreateRollupPropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse>( + service, METHODID_CREATE_ROLLUP_PROPERTY))) + .addMethod( + getGetRollupPropertySourceLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>( + service, METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK))) + .addMethod( + getListRollupPropertySourceLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse>( + service, METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS))) + .addMethod( + getCreateRollupPropertySourceLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink>( + service, METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK))) + .addMethod( + getDeleteRollupPropertySourceLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK))) + .addMethod( + getCreateSubpropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse>( + service, METHODID_CREATE_SUBPROPERTY))) + .addMethod( + getDeleteSubpropertyEventFilterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_SUBPROPERTY_EVENT_FILTER))) + .addMethod( + getCreateSubpropertyEventFilterMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter>( + service, METHODID_CREATE_SUBPROPERTY_EVENT_FILTER))) + .build(); + } + + private abstract static class AnalyticsAdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AnalyticsAdminServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AnalyticsAdminService"); + } + } + + private static final class AnalyticsAdminServiceFileDescriptorSupplier + extends AnalyticsAdminServiceBaseDescriptorSupplier { + AnalyticsAdminServiceFileDescriptorSupplier() {} + } + + private static final class AnalyticsAdminServiceMethodDescriptorSupplier + extends AnalyticsAdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AnalyticsAdminServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AnalyticsAdminServiceFileDescriptorSupplier()) + .addMethod(getGetAccountMethod()) + .addMethod(getListAccountsMethod()) + .addMethod(getDeleteAccountMethod()) + .addMethod(getUpdateAccountMethod()) + .addMethod(getProvisionAccountTicketMethod()) + .addMethod(getListAccountSummariesMethod()) + .addMethod(getGetPropertyMethod()) + .addMethod(getListPropertiesMethod()) + .addMethod(getCreatePropertyMethod()) + .addMethod(getDeletePropertyMethod()) + .addMethod(getUpdatePropertyMethod()) + .addMethod(getCreateFirebaseLinkMethod()) + .addMethod(getDeleteFirebaseLinkMethod()) + .addMethod(getListFirebaseLinksMethod()) + .addMethod(getGetGlobalSiteTagMethod()) + .addMethod(getCreateGoogleAdsLinkMethod()) + .addMethod(getUpdateGoogleAdsLinkMethod()) + .addMethod(getDeleteGoogleAdsLinkMethod()) + .addMethod(getListGoogleAdsLinksMethod()) + .addMethod(getGetDataSharingSettingsMethod()) + .addMethod(getGetMeasurementProtocolSecretMethod()) + .addMethod(getListMeasurementProtocolSecretsMethod()) + .addMethod(getCreateMeasurementProtocolSecretMethod()) + .addMethod(getDeleteMeasurementProtocolSecretMethod()) + .addMethod(getUpdateMeasurementProtocolSecretMethod()) + .addMethod(getAcknowledgeUserDataCollectionMethod()) + .addMethod(getGetSKAdNetworkConversionValueSchemaMethod()) + .addMethod(getCreateSKAdNetworkConversionValueSchemaMethod()) + .addMethod(getDeleteSKAdNetworkConversionValueSchemaMethod()) + .addMethod(getUpdateSKAdNetworkConversionValueSchemaMethod()) + .addMethod(getListSKAdNetworkConversionValueSchemasMethod()) + .addMethod(getSearchChangeHistoryEventsMethod()) + .addMethod(getGetGoogleSignalsSettingsMethod()) + .addMethod(getUpdateGoogleSignalsSettingsMethod()) + .addMethod(getCreateConversionEventMethod()) + .addMethod(getUpdateConversionEventMethod()) + .addMethod(getGetConversionEventMethod()) + .addMethod(getDeleteConversionEventMethod()) + .addMethod(getListConversionEventsMethod()) + .addMethod(getGetDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getListDisplayVideo360AdvertiserLinksMethod()) + .addMethod(getCreateDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getDeleteDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getUpdateDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getGetDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getListDisplayVideo360AdvertiserLinkProposalsMethod()) + .addMethod(getCreateDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getDeleteDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getApproveDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getCancelDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getCreateCustomDimensionMethod()) + .addMethod(getUpdateCustomDimensionMethod()) + .addMethod(getListCustomDimensionsMethod()) + .addMethod(getArchiveCustomDimensionMethod()) + .addMethod(getGetCustomDimensionMethod()) + .addMethod(getCreateCustomMetricMethod()) + .addMethod(getUpdateCustomMetricMethod()) + .addMethod(getListCustomMetricsMethod()) + .addMethod(getArchiveCustomMetricMethod()) + .addMethod(getGetCustomMetricMethod()) + .addMethod(getGetDataRetentionSettingsMethod()) + .addMethod(getUpdateDataRetentionSettingsMethod()) + .addMethod(getCreateDataStreamMethod()) + .addMethod(getDeleteDataStreamMethod()) + .addMethod(getUpdateDataStreamMethod()) + .addMethod(getListDataStreamsMethod()) + .addMethod(getGetDataStreamMethod()) + .addMethod(getGetAudienceMethod()) + .addMethod(getListAudiencesMethod()) + .addMethod(getCreateAudienceMethod()) + .addMethod(getUpdateAudienceMethod()) + .addMethod(getArchiveAudienceMethod()) + .addMethod(getGetSearchAds360LinkMethod()) + .addMethod(getListSearchAds360LinksMethod()) + .addMethod(getCreateSearchAds360LinkMethod()) + .addMethod(getDeleteSearchAds360LinkMethod()) + .addMethod(getUpdateSearchAds360LinkMethod()) + .addMethod(getGetAttributionSettingsMethod()) + .addMethod(getUpdateAttributionSettingsMethod()) + .addMethod(getRunAccessReportMethod()) + .addMethod(getCreateAccessBindingMethod()) + .addMethod(getGetAccessBindingMethod()) + .addMethod(getUpdateAccessBindingMethod()) + .addMethod(getDeleteAccessBindingMethod()) + .addMethod(getListAccessBindingsMethod()) + .addMethod(getBatchCreateAccessBindingsMethod()) + .addMethod(getBatchGetAccessBindingsMethod()) + .addMethod(getBatchUpdateAccessBindingsMethod()) + .addMethod(getBatchDeleteAccessBindingsMethod()) + .addMethod(getGetExpandedDataSetMethod()) + .addMethod(getListExpandedDataSetsMethod()) + .addMethod(getCreateExpandedDataSetMethod()) + .addMethod(getUpdateExpandedDataSetMethod()) + .addMethod(getDeleteExpandedDataSetMethod()) + .addMethod(getGetChannelGroupMethod()) + .addMethod(getListChannelGroupsMethod()) + .addMethod(getCreateChannelGroupMethod()) + .addMethod(getUpdateChannelGroupMethod()) + .addMethod(getDeleteChannelGroupMethod()) + .addMethod(getSetAutomatedGa4ConfigurationOptOutMethod()) + .addMethod(getFetchAutomatedGa4ConfigurationOptOutMethod()) + .addMethod(getGetBigQueryLinkMethod()) + .addMethod(getListBigQueryLinksMethod()) + .addMethod(getGetEnhancedMeasurementSettingsMethod()) + .addMethod(getUpdateEnhancedMeasurementSettingsMethod()) + .addMethod(getCreateConnectedSiteTagMethod()) + .addMethod(getDeleteConnectedSiteTagMethod()) + .addMethod(getListConnectedSiteTagsMethod()) + .addMethod(getFetchConnectedGa4PropertyMethod()) + .addMethod(getGetAdSenseLinkMethod()) + .addMethod(getCreateAdSenseLinkMethod()) + .addMethod(getDeleteAdSenseLinkMethod()) + .addMethod(getListAdSenseLinksMethod()) + .addMethod(getGetEventCreateRuleMethod()) + .addMethod(getListEventCreateRulesMethod()) + .addMethod(getCreateEventCreateRuleMethod()) + .addMethod(getUpdateEventCreateRuleMethod()) + .addMethod(getDeleteEventCreateRuleMethod()) + .addMethod(getUpdateDataRedactionSettingsMethod()) + .addMethod(getGetDataRedactionSettingsMethod()) + .addMethod(getCreateRollupPropertyMethod()) + .addMethod(getGetRollupPropertySourceLinkMethod()) + .addMethod(getListRollupPropertySourceLinksMethod()) + .addMethod(getCreateRollupPropertySourceLinkMethod()) + .addMethod(getDeleteRollupPropertySourceLinkMethod()) + .addMethod(getCreateSubpropertyMethod()) + .addMethod(getDeleteSubpropertyEventFilterMethod()) + .addMethod(getCreateSubpropertyEventFilterMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java new file mode 100644 index 000000000000..27d90a7a345e --- /dev/null +++ b/java-analytics-admin/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java @@ -0,0 +1,6450 @@ +/* + * 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. + */ +package com.google.analytics.admin.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service Interface for the Analytics Admin API (GA4).
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/analytics/admin/v1beta/analytics_admin.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AnalyticsAdminServiceGrpc { + + private AnalyticsAdminServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.analytics.admin.v1beta.AnalyticsAdminService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetAccountRequest, + com.google.analytics.admin.v1beta.Account> + getGetAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccount", + requestType = com.google.analytics.admin.v1beta.GetAccountRequest.class, + responseType = com.google.analytics.admin.v1beta.Account.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetAccountRequest, + com.google.analytics.admin.v1beta.Account> + getGetAccountMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetAccountRequest, + com.google.analytics.admin.v1beta.Account> + getGetAccountMethod; + if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { + AnalyticsAdminServiceGrpc.getGetAccountMethod = + getGetAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.Account.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetAccount")) + .build(); + } + } + } + return getGetAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListAccountsRequest, + com.google.analytics.admin.v1beta.ListAccountsResponse> + getListAccountsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccounts", + requestType = com.google.analytics.admin.v1beta.ListAccountsRequest.class, + responseType = com.google.analytics.admin.v1beta.ListAccountsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListAccountsRequest, + com.google.analytics.admin.v1beta.ListAccountsResponse> + getListAccountsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListAccountsRequest, + com.google.analytics.admin.v1beta.ListAccountsResponse> + getListAccountsMethod; + if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { + AnalyticsAdminServiceGrpc.getListAccountsMethod = + getListAccountsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccounts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListAccountsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListAccountsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccounts")) + .build(); + } + } + } + return getListAccountsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteAccountRequest, com.google.protobuf.Empty> + getDeleteAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccount", + requestType = com.google.analytics.admin.v1beta.DeleteAccountRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteAccountRequest, com.google.protobuf.Empty> + getDeleteAccountMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteAccountRequest, com.google.protobuf.Empty> + getDeleteAccountMethod; + if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { + AnalyticsAdminServiceGrpc.getDeleteAccountMethod = + getDeleteAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DeleteAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAccount")) + .build(); + } + } + } + return getDeleteAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateAccountRequest, + com.google.analytics.admin.v1beta.Account> + getUpdateAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccount", + requestType = com.google.analytics.admin.v1beta.UpdateAccountRequest.class, + responseType = com.google.analytics.admin.v1beta.Account.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateAccountRequest, + com.google.analytics.admin.v1beta.Account> + getUpdateAccountMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateAccountRequest, + com.google.analytics.admin.v1beta.Account> + getUpdateAccountMethod; + if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { + AnalyticsAdminServiceGrpc.getUpdateAccountMethod = + getUpdateAccountMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateAccountRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.Account.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAccount")) + .build(); + } + } + } + return getUpdateAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse> + getProvisionAccountTicketMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ProvisionAccountTicket", + requestType = com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.class, + responseType = com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse> + getProvisionAccountTicketMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse> + getProvisionAccountTicketMethod; + if ((getProvisionAccountTicketMethod = + AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getProvisionAccountTicketMethod = + AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) + == null) { + AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod = + getProvisionAccountTicketMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ProvisionAccountTicket")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ProvisionAccountTicket")) + .build(); + } + } + } + return getProvisionAccountTicketMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListAccountSummariesRequest, + com.google.analytics.admin.v1beta.ListAccountSummariesResponse> + getListAccountSummariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccountSummaries", + requestType = com.google.analytics.admin.v1beta.ListAccountSummariesRequest.class, + responseType = com.google.analytics.admin.v1beta.ListAccountSummariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListAccountSummariesRequest, + com.google.analytics.admin.v1beta.ListAccountSummariesResponse> + getListAccountSummariesMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListAccountSummariesRequest, + com.google.analytics.admin.v1beta.ListAccountSummariesResponse> + getListAccountSummariesMethod; + if ((getListAccountSummariesMethod = AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListAccountSummariesMethod = + AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) + == null) { + AnalyticsAdminServiceGrpc.getListAccountSummariesMethod = + getListAccountSummariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAccountSummaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListAccountSummariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccountSummaries")) + .build(); + } + } + } + return getListAccountSummariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetPropertyRequest, + com.google.analytics.admin.v1beta.Property> + getGetPropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetProperty", + requestType = com.google.analytics.admin.v1beta.GetPropertyRequest.class, + responseType = com.google.analytics.admin.v1beta.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetPropertyRequest, + com.google.analytics.admin.v1beta.Property> + getGetPropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetPropertyRequest, + com.google.analytics.admin.v1beta.Property> + getGetPropertyMethod; + if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getGetPropertyMethod = + getGetPropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetPropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetProperty")) + .build(); + } + } + } + return getGetPropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListPropertiesRequest, + com.google.analytics.admin.v1beta.ListPropertiesResponse> + getListPropertiesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListProperties", + requestType = com.google.analytics.admin.v1beta.ListPropertiesRequest.class, + responseType = com.google.analytics.admin.v1beta.ListPropertiesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListPropertiesRequest, + com.google.analytics.admin.v1beta.ListPropertiesResponse> + getListPropertiesMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListPropertiesRequest, + com.google.analytics.admin.v1beta.ListPropertiesResponse> + getListPropertiesMethod; + if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { + AnalyticsAdminServiceGrpc.getListPropertiesMethod = + getListPropertiesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProperties")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListPropertiesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListPropertiesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListProperties")) + .build(); + } + } + } + return getListPropertiesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreatePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getCreatePropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateProperty", + requestType = com.google.analytics.admin.v1beta.CreatePropertyRequest.class, + responseType = com.google.analytics.admin.v1beta.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreatePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getCreatePropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreatePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getCreatePropertyMethod; + if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getCreatePropertyMethod = + getCreatePropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreatePropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateProperty")) + .build(); + } + } + } + return getCreatePropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeletePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getDeletePropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteProperty", + requestType = com.google.analytics.admin.v1beta.DeletePropertyRequest.class, + responseType = com.google.analytics.admin.v1beta.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeletePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getDeletePropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeletePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getDeletePropertyMethod; + if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getDeletePropertyMethod = + getDeletePropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DeletePropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteProperty")) + .build(); + } + } + } + return getDeletePropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdatePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getUpdatePropertyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateProperty", + requestType = com.google.analytics.admin.v1beta.UpdatePropertyRequest.class, + responseType = com.google.analytics.admin.v1beta.Property.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdatePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getUpdatePropertyMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdatePropertyRequest, + com.google.analytics.admin.v1beta.Property> + getUpdatePropertyMethod; + if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { + AnalyticsAdminServiceGrpc.getUpdatePropertyMethod = + getUpdatePropertyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProperty")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdatePropertyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.Property.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateProperty")) + .build(); + } + } + } + return getUpdatePropertyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1beta.FirebaseLink> + getCreateFirebaseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateFirebaseLink", + requestType = com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.class, + responseType = com.google.analytics.admin.v1beta.FirebaseLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1beta.FirebaseLink> + getCreateFirebaseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1beta.FirebaseLink> + getCreateFirebaseLinkMethod; + if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod = + getCreateFirebaseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFirebaseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateFirebaseLink")) + .build(); + } + } + } + return getCreateFirebaseLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, com.google.protobuf.Empty> + getDeleteFirebaseLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteFirebaseLink", + requestType = com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, com.google.protobuf.Empty> + getDeleteFirebaseLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, com.google.protobuf.Empty> + getDeleteFirebaseLinkMethod; + if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod = + getDeleteFirebaseLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFirebaseLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteFirebaseLink")) + .build(); + } + } + } + return getDeleteFirebaseLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest, + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse> + getListFirebaseLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListFirebaseLinks", + requestType = com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.class, + responseType = com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest, + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse> + getListFirebaseLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest, + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse> + getListFirebaseLinksMethod; + if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod = + getListFirebaseLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFirebaseLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListFirebaseLinks")) + .build(); + } + } + } + return getListFirebaseLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink> + getCreateGoogleAdsLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateGoogleAdsLink", + requestType = com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.class, + responseType = com.google.analytics.admin.v1beta.GoogleAdsLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink> + getCreateGoogleAdsLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink> + getCreateGoogleAdsLinkMethod; + if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod = + getCreateGoogleAdsLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateGoogleAdsLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateGoogleAdsLink")) + .build(); + } + } + } + return getCreateGoogleAdsLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink> + getUpdateGoogleAdsLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleAdsLink", + requestType = com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.class, + responseType = com.google.analytics.admin.v1beta.GoogleAdsLink.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink> + getUpdateGoogleAdsLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink> + getUpdateGoogleAdsLinkMethod; + if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod = + getUpdateGoogleAdsLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateGoogleAdsLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateGoogleAdsLink")) + .build(); + } + } + } + return getUpdateGoogleAdsLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, com.google.protobuf.Empty> + getDeleteGoogleAdsLinkMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteGoogleAdsLink", + requestType = com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, com.google.protobuf.Empty> + getDeleteGoogleAdsLinkMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, com.google.protobuf.Empty> + getDeleteGoogleAdsLinkMethod; + if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod = + getDeleteGoogleAdsLinkMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteGoogleAdsLink")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteGoogleAdsLink")) + .build(); + } + } + } + return getDeleteGoogleAdsLinkMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse> + getListGoogleAdsLinksMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListGoogleAdsLinks", + requestType = com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.class, + responseType = com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse> + getListGoogleAdsLinksMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse> + getListGoogleAdsLinksMethod; + if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) + == null) { + AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod = + getListGoogleAdsLinksMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGoogleAdsLinks")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListGoogleAdsLinks")) + .build(); + } + } + } + return getListGoogleAdsLinksMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1beta.DataSharingSettings> + getGetDataSharingSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataSharingSettings", + requestType = com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.class, + responseType = com.google.analytics.admin.v1beta.DataSharingSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1beta.DataSharingSettings> + getGetDataSharingSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1beta.DataSharingSettings> + getGetDataSharingSettingsMethod; + if ((getGetDataSharingSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataSharingSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod = + getGetDataSharingSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataSharingSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DataSharingSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDataSharingSettings")) + .build(); + } + } + } + return getGetDataSharingSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod = + getGetMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetMeasurementProtocolSecret")) + .build(); + } + } + } + return getGetMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMeasurementProtocolSecrets", + requestType = com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.class, + responseType = com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod = + getListMeasurementProtocolSecretsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMeasurementProtocolSecrets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta + .ListMeasurementProtocolSecretsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta + .ListMeasurementProtocolSecretsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListMeasurementProtocolSecrets")) + .build(); + } + } + } + return getListMeasurementProtocolSecretsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod = + getCreateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta + .CreateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateMeasurementProtocolSecret")) + .build(); + } + } + } + return getCreateMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod = + getDeleteMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta + .DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteMeasurementProtocolSecret")) + .build(); + } + } + } + return getDeleteMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod = + getUpdateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta + .UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateMeasurementProtocolSecret")) + .build(); + } + } + } + return getUpdateMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AcknowledgeUserDataCollection", + requestType = com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.class, + responseType = com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse> + getAcknowledgeUserDataCollectionMethod; + if ((getAcknowledgeUserDataCollectionMethod = + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getAcknowledgeUserDataCollectionMethod = + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) + == null) { + AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod = + getAcknowledgeUserDataCollectionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AcknowledgeUserDataCollection")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta + .AcknowledgeUserDataCollectionResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "AcknowledgeUserDataCollection")) + .build(); + } + } + } + return getAcknowledgeUserDataCollectionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchChangeHistoryEvents", + requestType = com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.class, + responseType = com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod = + getSearchChangeHistoryEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchChangeHistoryEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "SearchChangeHistoryEvents")) + .build(); + } + } + } + return getSearchChangeHistoryEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getCreateConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversionEvent", + requestType = com.google.analytics.admin.v1beta.CreateConversionEventRequest.class, + responseType = com.google.analytics.admin.v1beta.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getCreateConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getCreateConversionEventMethod; + if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateConversionEventMethod = + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod = + getCreateConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreateConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateConversionEvent")) + .build(); + } + } + } + return getCreateConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getUpdateConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConversionEvent", + requestType = com.google.analytics.admin.v1beta.UpdateConversionEventRequest.class, + responseType = com.google.analytics.admin.v1beta.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getUpdateConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getUpdateConversionEventMethod; + if ((getUpdateConversionEventMethod = AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateConversionEventMethod = + AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod = + getUpdateConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateConversionEvent")) + .build(); + } + } + } + return getUpdateConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getGetConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversionEvent", + requestType = com.google.analytics.admin.v1beta.GetConversionEventRequest.class, + responseType = com.google.analytics.admin.v1beta.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getGetConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent> + getGetConversionEventMethod; + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetConversionEventMethod = + getGetConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetConversionEvent")) + .build(); + } + } + } + return getGetConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteConversionEventRequest, com.google.protobuf.Empty> + getDeleteConversionEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversionEvent", + requestType = com.google.analytics.admin.v1beta.DeleteConversionEventRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteConversionEventRequest, com.google.protobuf.Empty> + getDeleteConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod; + if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteConversionEventMethod = + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod = + getDeleteConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteConversionEvent")) + .build(); + } + } + } + return getDeleteConversionEventMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListConversionEventsRequest, + com.google.analytics.admin.v1beta.ListConversionEventsResponse> + getListConversionEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversionEvents", + requestType = com.google.analytics.admin.v1beta.ListConversionEventsRequest.class, + responseType = com.google.analytics.admin.v1beta.ListConversionEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListConversionEventsRequest, + com.google.analytics.admin.v1beta.ListConversionEventsResponse> + getListConversionEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListConversionEventsRequest, + com.google.analytics.admin.v1beta.ListConversionEventsResponse> + getListConversionEventsMethod; + if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListConversionEventsMethod = + AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListConversionEventsMethod = + getListConversionEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConversionEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListConversionEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListConversionEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListConversionEvents")) + .build(); + } + } + } + return getListConversionEventsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getCreateCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomDimension", + requestType = com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1beta.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getCreateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getCreateCustomDimensionMethod; + if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod = + getCreateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateCustomDimension")) + .build(); + } + } + } + return getCreateCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getUpdateCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomDimension", + requestType = com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1beta.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getUpdateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getUpdateCustomDimensionMethod; + if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod = + getUpdateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateCustomDimension")) + .build(); + } + } + } + return getUpdateCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest, + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomDimensions", + requestType = com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.class, + responseType = com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest, + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse> + getListCustomDimensionsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest, + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; + if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListCustomDimensionsMethod = + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod = + getListCustomDimensionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCustomDimensions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomDimensions")) + .build(); + } + } + } + return getListCustomDimensionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomDimension", + requestType = com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod = + getArchiveCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ArchiveCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ArchiveCustomDimension")) + .build(); + } + } + } + return getArchiveCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getGetCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomDimension", + requestType = com.google.analytics.admin.v1beta.GetCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1beta.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getGetCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension> + getGetCustomDimensionMethod; + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod = + getGetCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomDimension")) + .build(); + } + } + } + return getGetCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getCreateCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomMetric", + requestType = com.google.analytics.admin.v1beta.CreateCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1beta.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getCreateCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getCreateCustomMetricMethod; + if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod = + getCreateCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomMetric")) + .build(); + } + } + } + return getCreateCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getUpdateCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomMetric", + requestType = com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1beta.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getUpdateCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getUpdateCustomMetricMethod; + if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod = + getUpdateCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomMetric")) + .build(); + } + } + } + return getUpdateCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListCustomMetricsRequest, + com.google.analytics.admin.v1beta.ListCustomMetricsResponse> + getListCustomMetricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomMetrics", + requestType = com.google.analytics.admin.v1beta.ListCustomMetricsRequest.class, + responseType = com.google.analytics.admin.v1beta.ListCustomMetricsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListCustomMetricsRequest, + com.google.analytics.admin.v1beta.ListCustomMetricsResponse> + getListCustomMetricsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListCustomMetricsRequest, + com.google.analytics.admin.v1beta.ListCustomMetricsResponse> + getListCustomMetricsMethod; + if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListCustomMetricsMethod = + getListCustomMetricsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomMetrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListCustomMetricsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomMetrics")) + .build(); + } + } + } + return getListCustomMetricsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest, com.google.protobuf.Empty> + getArchiveCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomMetric", + requestType = com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest, com.google.protobuf.Empty> + getArchiveCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest, com.google.protobuf.Empty> + getArchiveCustomMetricMethod; + if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod = + getArchiveCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ArchiveCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomMetric")) + .build(); + } + } + } + return getArchiveCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getGetCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomMetric", + requestType = com.google.analytics.admin.v1beta.GetCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1beta.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getGetCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric> + getGetCustomMetricMethod; + if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetCustomMetricMethod = + getGetCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomMetric")) + .build(); + } + } + } + return getGetCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings> + getGetDataRetentionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataRetentionSettings", + requestType = com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.class, + responseType = com.google.analytics.admin.v1beta.DataRetentionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings> + getGetDataRetentionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings> + getGetDataRetentionSettingsMethod; + if ((getGetDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod = + getGetDataRetentionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataRetentionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DataRetentionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDataRetentionSettings")) + .build(); + } + } + } + return getGetDataRetentionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataRetentionSettings", + requestType = com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.class, + responseType = com.google.analytics.admin.v1beta.DataRetentionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod; + if ((getUpdateDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod = + getUpdateDataRetentionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDataRetentionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DataRetentionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateDataRetentionSettings")) + .build(); + } + } + } + return getUpdateDataRetentionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getCreateDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDataStream", + requestType = com.google.analytics.admin.v1beta.CreateDataStreamRequest.class, + responseType = com.google.analytics.admin.v1beta.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getCreateDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.CreateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getCreateDataStreamMethod; + if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateDataStreamMethod = + getCreateDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.CreateDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateDataStream")) + .build(); + } + } + } + return getCreateDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDataStream", + requestType = com.google.analytics.admin.v1beta.DeleteDataStreamRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.DeleteDataStreamRequest, com.google.protobuf.Empty> + getDeleteDataStreamMethod; + if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod = + getDeleteDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteDataStream")) + .build(); + } + } + } + return getDeleteDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getUpdateDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataStream", + requestType = com.google.analytics.admin.v1beta.UpdateDataStreamRequest.class, + responseType = com.google.analytics.admin.v1beta.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getUpdateDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.UpdateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getUpdateDataStreamMethod; + if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod = + getUpdateDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataStream")) + .build(); + } + } + } + return getUpdateDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListDataStreamsRequest, + com.google.analytics.admin.v1beta.ListDataStreamsResponse> + getListDataStreamsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDataStreams", + requestType = com.google.analytics.admin.v1beta.ListDataStreamsRequest.class, + responseType = com.google.analytics.admin.v1beta.ListDataStreamsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListDataStreamsRequest, + com.google.analytics.admin.v1beta.ListDataStreamsResponse> + getListDataStreamsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.ListDataStreamsRequest, + com.google.analytics.admin.v1beta.ListDataStreamsResponse> + getListDataStreamsMethod; + if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListDataStreamsMethod = + getListDataStreamsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataStreams")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListDataStreamsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.ListDataStreamsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListDataStreams")) + .build(); + } + } + } + return getListDataStreamsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getGetDataStreamMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataStream", + requestType = com.google.analytics.admin.v1beta.GetDataStreamRequest.class, + responseType = com.google.analytics.admin.v1beta.DataStream.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getGetDataStreamMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.GetDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream> + getGetDataStreamMethod; + if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { + AnalyticsAdminServiceGrpc.getGetDataStreamMethod = + getGetDataStreamMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataStream")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.GetDataStreamRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.DataStream.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataStream")) + .build(); + } + } + } + return getGetDataStreamMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.RunAccessReportRequest, + com.google.analytics.admin.v1beta.RunAccessReportResponse> + getRunAccessReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAccessReport", + requestType = com.google.analytics.admin.v1beta.RunAccessReportRequest.class, + responseType = com.google.analytics.admin.v1beta.RunAccessReportResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.RunAccessReportRequest, + com.google.analytics.admin.v1beta.RunAccessReportResponse> + getRunAccessReportMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1beta.RunAccessReportRequest, + com.google.analytics.admin.v1beta.RunAccessReportResponse> + getRunAccessReportMethod; + if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) + == null) { + AnalyticsAdminServiceGrpc.getRunAccessReportMethod = + getRunAccessReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAccessReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.RunAccessReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1beta.RunAccessReportResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("RunAccessReport")) + .build(); + } + } + } + return getRunAccessReportMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsAdminServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceStub(channel, callOptions); + } + }; + return AnalyticsAdminServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AnalyticsAdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsAdminServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceBlockingStub(channel, callOptions); + } + }; + return AnalyticsAdminServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AnalyticsAdminServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AnalyticsAdminServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceFutureStub(channel, callOptions); + } + }; + return AnalyticsAdminServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + default void getAccount( + com.google.analytics.admin.v1beta.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + default void listAccounts( + com.google.analytics.admin.v1beta.ListAccountsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccountsMethod(), responseObserver); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + default void deleteAccount( + com.google.analytics.admin.v1beta.DeleteAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + default void updateAccount( + com.google.analytics.admin.v1beta.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccountMethod(), responseObserver); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + default void provisionAccountTicket( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getProvisionAccountTicketMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + default void listAccountSummaries( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccountSummariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + default void getProperty( + com.google.analytics.admin.v1beta.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + default void listProperties( + com.google.analytics.admin.v1beta.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPropertiesMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + default void createProperty( + com.google.analytics.admin.v1beta.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + default void deleteProperty( + com.google.analytics.admin.v1beta.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + default void updateProperty( + com.google.analytics.admin.v1beta.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePropertyMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + default void createFirebaseLink( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + default void deleteFirebaseLink( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + default void listFirebaseLinks( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirebaseLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + default void createGoogleAdsLink( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + default void updateGoogleAdsLink( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + default void deleteGoogleAdsLink( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + default void listGoogleAdsLinks( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGoogleAdsLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + default void getDataSharingSettings( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataSharingSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + default void getMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + default void listMeasurementProtocolSecrets( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListMeasurementProtocolSecretsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + default void createMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + default void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + default void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + default void acknowledgeUserDataCollection( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAcknowledgeUserDataCollectionMethod(), responseObserver); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + default void searchChangeHistoryEvents( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchChangeHistoryEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + default void createConversionEvent( + com.google.analytics.admin.v1beta.CreateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + default void updateConversionEvent( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + default void getConversionEvent( + com.google.analytics.admin.v1beta.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + default void deleteConversionEvent( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + default void listConversionEvents( + com.google.analytics.admin.v1beta.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversionEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + default void createCustomDimension( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + default void updateCustomDimension( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + default void listCustomDimensions( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomDimensionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + default void archiveCustomDimension( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + default void getCustomDimension( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + default void createCustomMetric( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + default void updateCustomMetric( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + default void listCustomMetrics( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomMetricsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + default void archiveCustomMetric( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + default void getCustomMetric( + com.google.analytics.admin.v1beta.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + default void getDataRetentionSettings( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataRetentionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + default void updateDataRetentionSettings( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataRetentionSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + default void createDataStream( + com.google.analytics.admin.v1beta.CreateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + default void deleteDataStream( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + default void updateDataStream( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + default void listDataStreams( + com.google.analytics.admin.v1beta.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + default void getDataStream( + com.google.analytics.admin.v1beta.GetDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + default void runAccessReport( + com.google.analytics.admin.v1beta.RunAccessReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAccessReportMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public abstract static class AnalyticsAdminServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AnalyticsAdminServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AnalyticsAdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public void getAccount( + com.google.analytics.admin.v1beta.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public void listAccounts( + com.google.analytics.admin.v1beta.ListAccountsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public void deleteAccount( + com.google.analytics.admin.v1beta.DeleteAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public void updateAccount( + com.google.analytics.admin.v1beta.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public void provisionAccountTicket( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public void listAccountSummaries( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public void getProperty( + com.google.analytics.admin.v1beta.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public void listProperties( + com.google.analytics.admin.v1beta.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public void createProperty( + com.google.analytics.admin.v1beta.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + public void deleteProperty( + com.google.analytics.admin.v1beta.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public void updateProperty( + com.google.analytics.admin.v1beta.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void createFirebaseLink( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void listFirebaseLinks( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public void createGoogleAdsLink( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public void updateGoogleAdsLink( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public void deleteGoogleAdsLink( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public void listGoogleAdsLinks( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public void getDataSharingSettings( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public void getMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public void listMeasurementProtocolSecrets( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public void createMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + public void acknowledgeUserDataCollection( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public void createConversionEvent( + com.google.analytics.admin.v1beta.CreateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + public void updateConversionEvent( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public void getConversionEvent( + com.google.analytics.admin.v1beta.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public void deleteConversionEvent( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public void listConversionEvents( + com.google.analytics.admin.v1beta.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public void createCustomDimension( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public void updateCustomDimension( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public void listCustomDimensions( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public void archiveCustomDimension( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public void getCustomDimension( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public void createCustomMetric( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public void updateCustomMetric( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public void listCustomMetrics( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public void archiveCustomMetric( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public void getCustomMetric( + com.google.analytics.admin.v1beta.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public void getDataRetentionSettings( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public void updateDataRetentionSettings( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public void createDataStream( + com.google.analytics.admin.v1beta.CreateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public void deleteDataStream( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public void updateDataStream( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public void listDataStreams( + com.google.analytics.admin.v1beta.ListDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public void getDataStream( + com.google.analytics.admin.v1beta.GetDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public void runAccessReport( + com.google.analytics.admin.v1beta.RunAccessReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AnalyticsAdminServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public com.google.analytics.admin.v1beta.Account getAccount( + com.google.analytics.admin.v1beta.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListAccountsResponse listAccounts( + com.google.analytics.admin.v1beta.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public com.google.protobuf.Empty deleteAccount( + com.google.analytics.admin.v1beta.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public com.google.analytics.admin.v1beta.Account updateAccount( + com.google.analytics.admin.v1beta.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccountMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse provisionAccountTicket( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListAccountSummariesResponse listAccountSummaries( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.Property getProperty( + com.google.analytics.admin.v1beta.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListPropertiesResponse listProperties( + com.google.analytics.admin.v1beta.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPropertiesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public com.google.analytics.admin.v1beta.Property createProperty( + com.google.analytics.admin.v1beta.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.Property deleteProperty( + com.google.analytics.admin.v1beta.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.Property updateProperty( + com.google.analytics.admin.v1beta.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.analytics.admin.v1beta.FirebaseLink createFirebaseLink( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public com.google.protobuf.Empty deleteFirebaseLink( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse listFirebaseLinks( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public com.google.analytics.admin.v1beta.GoogleAdsLink createGoogleAdsLink( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public com.google.analytics.admin.v1beta.GoogleAdsLink updateGoogleAdsLink( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public com.google.protobuf.Empty deleteGoogleAdsLink( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse listGoogleAdsLinks( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public com.google.analytics.admin.v1beta.DataSharingSettings getDataSharingSettings( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + createMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public com.google.protobuf.Empty deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + acknowledgeUserDataCollection( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + searchChangeHistoryEvents( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ConversionEvent createConversionEvent( + com.google.analytics.admin.v1beta.CreateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ConversionEvent updateConversionEvent( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent( + com.google.analytics.admin.v1beta.GetConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteConversionEvent( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListConversionEventsResponse listConversionEvents( + com.google.analytics.admin.v1beta.ListConversionEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversionEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public com.google.analytics.admin.v1beta.CustomDimension createCustomDimension( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.CustomDimension updateCustomDimension( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse listCustomDimensions( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public com.google.protobuf.Empty archiveCustomDimension( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public com.google.analytics.admin.v1beta.CustomMetric createCustomMetric( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.CustomMetric updateCustomMetric( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListCustomMetricsResponse listCustomMetrics( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public com.google.protobuf.Empty archiveCustomMetric( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric( + com.google.analytics.admin.v1beta.GetCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataRetentionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.DataRetentionSettings updateDataRetentionSettings( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public com.google.analytics.admin.v1beta.DataStream createDataStream( + com.google.analytics.admin.v1beta.CreateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteDataStream( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.DataStream updateDataStream( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public com.google.analytics.admin.v1beta.ListDataStreamsResponse listDataStreams( + com.google.analytics.admin.v1beta.ListDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDataStreamsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public com.google.analytics.admin.v1beta.DataStream getDataStream( + com.google.analytics.admin.v1beta.GetDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataStreamMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public com.google.analytics.admin.v1beta.RunAccessReportResponse runAccessReport( + com.google.analytics.admin.v1beta.RunAccessReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAccessReportMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * AnalyticsAdminService. + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AnalyticsAdminServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.Account> + getAccount(com.google.analytics.admin.v1beta.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListAccountsResponse> + listAccounts(com.google.analytics.admin.v1beta.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAccount(com.google.analytics.admin.v1beta.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.Account> + updateAccount(com.google.analytics.admin.v1beta.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse> + provisionAccountTicket( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListAccountSummariesResponse> + listAccountSummaries( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.Property> + getProperty(com.google.analytics.admin.v1beta.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListPropertiesResponse> + listProperties(com.google.analytics.admin.v1beta.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.Property> + createProperty(com.google.analytics.admin.v1beta.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not a GA4 Property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.Property> + deleteProperty(com.google.analytics.admin.v1beta.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.Property> + updateProperty(com.google.analytics.admin.v1beta.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.FirebaseLink> + createFirebaseLink(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirebaseLink(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse> + listFirebaseLinks(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.GoogleAdsLink> + createGoogleAdsLink(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.GoogleAdsLink> + updateGoogleAdsLink(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteGoogleAdsLink(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse> + listGoogleAdsLinks(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.DataSharingSettings> + getDataSharingSettings( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + getMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + createMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret> + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Acknowledges the terms of user data collection for the specified property.
+     * This acknowledgement must be completed (either in the Google Analytics UI
+     * or through this API) before MeasurementProtocolSecret resources may be
+     * created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse> + acknowledgeUserDataCollection( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse> + searchChangeHistoryEvents( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ConversionEvent> + createConversionEvent( + com.google.analytics.admin.v1beta.CreateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ConversionEvent> + updateConversionEvent( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ConversionEvent> + getConversionEvent(com.google.analytics.admin.v1beta.GetConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteConversionEvent( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListConversionEventsResponse> + listConversionEvents( + com.google.analytics.admin.v1beta.ListConversionEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.CustomDimension> + createCustomDimension( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.CustomDimension> + updateCustomDimension( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse> + listCustomDimensions( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + archiveCustomDimension( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.CustomDimension> + getCustomDimension(com.google.analytics.admin.v1beta.GetCustomDimensionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.CustomMetric> + createCustomMetric(com.google.analytics.admin.v1beta.CreateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.CustomMetric> + updateCustomMetric(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListCustomMetricsResponse> + listCustomMetrics(com.google.analytics.admin.v1beta.ListCustomMetricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + archiveCustomMetric(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.CustomMetric> + getCustomMetric(com.google.analytics.admin.v1beta.GetCustomMetricRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.DataRetentionSettings> + getDataRetentionSettings( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.DataRetentionSettings> + updateDataRetentionSettings( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a DataStream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.DataStream> + createDataStream(com.google.analytics.admin.v1beta.CreateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a DataStream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDataStream(com.google.analytics.admin.v1beta.DeleteDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a DataStream on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.DataStream> + updateDataStream(com.google.analytics.admin.v1beta.UpdateDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists DataStreams on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.ListDataStreamsResponse> + listDataStreams(com.google.analytics.admin.v1beta.ListDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lookup for a single DataStream.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.DataStream> + getDataStream(com.google.analytics.admin.v1beta.GetDataStreamRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Returns a customized report of data access records. The report provides
+     * records of each time a user reads Google Analytics reporting data. Access
+     * records are retained for up to 2 years.
+     * Data Access Reports can be requested for a property. The property must be
+     * in Google Analytics 360. This method is only available to Administrators.
+     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
+     * GA4 Data API, and other products like Firebase & Admob that can retrieve
+     * data from Google Analytics through a linkage. These records don't include
+     * property configuration changes like adding a stream or changing a
+     * property's time zone. For configuration change history, see
+     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1beta.RunAccessReportResponse> + runAccessReport(com.google.analytics.admin.v1beta.RunAccessReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_ACCOUNT = 0; + private static final int METHODID_LIST_ACCOUNTS = 1; + private static final int METHODID_DELETE_ACCOUNT = 2; + private static final int METHODID_UPDATE_ACCOUNT = 3; + private static final int METHODID_PROVISION_ACCOUNT_TICKET = 4; + private static final int METHODID_LIST_ACCOUNT_SUMMARIES = 5; + private static final int METHODID_GET_PROPERTY = 6; + private static final int METHODID_LIST_PROPERTIES = 7; + private static final int METHODID_CREATE_PROPERTY = 8; + private static final int METHODID_DELETE_PROPERTY = 9; + private static final int METHODID_UPDATE_PROPERTY = 10; + private static final int METHODID_CREATE_FIREBASE_LINK = 11; + private static final int METHODID_DELETE_FIREBASE_LINK = 12; + private static final int METHODID_LIST_FIREBASE_LINKS = 13; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 14; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 15; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 16; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 17; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 18; + private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 19; + private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 20; + private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 21; + private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 22; + private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 23; + private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 24; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 25; + private static final int METHODID_CREATE_CONVERSION_EVENT = 26; + private static final int METHODID_UPDATE_CONVERSION_EVENT = 27; + private static final int METHODID_GET_CONVERSION_EVENT = 28; + private static final int METHODID_DELETE_CONVERSION_EVENT = 29; + private static final int METHODID_LIST_CONVERSION_EVENTS = 30; + private static final int METHODID_CREATE_CUSTOM_DIMENSION = 31; + private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 32; + private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 33; + private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 34; + private static final int METHODID_GET_CUSTOM_DIMENSION = 35; + private static final int METHODID_CREATE_CUSTOM_METRIC = 36; + private static final int METHODID_UPDATE_CUSTOM_METRIC = 37; + private static final int METHODID_LIST_CUSTOM_METRICS = 38; + private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 39; + private static final int METHODID_GET_CUSTOM_METRIC = 40; + private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 41; + private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 42; + private static final int METHODID_CREATE_DATA_STREAM = 43; + private static final int METHODID_DELETE_DATA_STREAM = 44; + private static final int METHODID_UPDATE_DATA_STREAM = 45; + private static final int METHODID_LIST_DATA_STREAMS = 46; + private static final int METHODID_GET_DATA_STREAM = 47; + private static final int METHODID_RUN_ACCESS_REPORT = 48; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_GET_ACCOUNT: + serviceImpl.getAccount( + (com.google.analytics.admin.v1beta.GetAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ACCOUNTS: + serviceImpl.listAccounts( + (com.google.analytics.admin.v1beta.ListAccountsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ACCOUNT: + serviceImpl.deleteAccount( + (com.google.analytics.admin.v1beta.DeleteAccountRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ACCOUNT: + serviceImpl.updateAccount( + (com.google.analytics.admin.v1beta.UpdateAccountRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_PROVISION_ACCOUNT_TICKET: + serviceImpl.provisionAccountTicket( + (com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse>) + responseObserver); + break; + case METHODID_LIST_ACCOUNT_SUMMARIES: + serviceImpl.listAccountSummaries( + (com.google.analytics.admin.v1beta.ListAccountSummariesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListAccountSummariesResponse>) + responseObserver); + break; + case METHODID_GET_PROPERTY: + serviceImpl.getProperty( + (com.google.analytics.admin.v1beta.GetPropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_PROPERTIES: + serviceImpl.listProperties( + (com.google.analytics.admin.v1beta.ListPropertiesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListPropertiesResponse>) + responseObserver); + break; + case METHODID_CREATE_PROPERTY: + serviceImpl.createProperty( + (com.google.analytics.admin.v1beta.CreatePropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_PROPERTY: + serviceImpl.deleteProperty( + (com.google.analytics.admin.v1beta.DeletePropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_PROPERTY: + serviceImpl.updateProperty( + (com.google.analytics.admin.v1beta.UpdatePropertyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_FIREBASE_LINK: + serviceImpl.createFirebaseLink( + (com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_FIREBASE_LINK: + serviceImpl.deleteFirebaseLink( + (com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_FIREBASE_LINKS: + serviceImpl.listFirebaseLinks( + (com.google.analytics.admin.v1beta.ListFirebaseLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse>) + responseObserver); + break; + case METHODID_CREATE_GOOGLE_ADS_LINK: + serviceImpl.createGoogleAdsLink( + (com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_GOOGLE_ADS_LINK: + serviceImpl.updateGoogleAdsLink( + (com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_GOOGLE_ADS_LINK: + serviceImpl.deleteGoogleAdsLink( + (com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_GOOGLE_ADS_LINKS: + serviceImpl.listGoogleAdsLinks( + (com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse>) + responseObserver); + break; + case METHODID_GET_DATA_SHARING_SETTINGS: + serviceImpl.getDataSharingSettings( + (com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.getMeasurementProtocolSecret( + (com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS: + serviceImpl.listMeasurementProtocolSecrets( + (com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse>) + responseObserver); + break; + case METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.createMeasurementProtocolSecret( + (com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.deleteMeasurementProtocolSecret( + (com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.updateMeasurementProtocolSecret( + (com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION: + serviceImpl.acknowledgeUserDataCollection( + (com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse>) + responseObserver); + break; + case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: + serviceImpl.searchChangeHistoryEvents( + (com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse>) + responseObserver); + break; + case METHODID_CREATE_CONVERSION_EVENT: + serviceImpl.createConversionEvent( + (com.google.analytics.admin.v1beta.CreateConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CONVERSION_EVENT: + serviceImpl.updateConversionEvent( + (com.google.analytics.admin.v1beta.UpdateConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONVERSION_EVENT: + serviceImpl.getConversionEvent( + (com.google.analytics.admin.v1beta.GetConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONVERSION_EVENT: + serviceImpl.deleteConversionEvent( + (com.google.analytics.admin.v1beta.DeleteConversionEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSION_EVENTS: + serviceImpl.listConversionEvents( + (com.google.analytics.admin.v1beta.ListConversionEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListConversionEventsResponse>) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_DIMENSION: + serviceImpl.createCustomDimension( + (com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_DIMENSION: + serviceImpl.updateCustomDimension( + (com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_DIMENSIONS: + serviceImpl.listCustomDimensions( + (com.google.analytics.admin.v1beta.ListCustomDimensionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_DIMENSION: + serviceImpl.archiveCustomDimension( + (com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_DIMENSION: + serviceImpl.getCustomDimension( + (com.google.analytics.admin.v1beta.GetCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_METRIC: + serviceImpl.createCustomMetric( + (com.google.analytics.admin.v1beta.CreateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_METRIC: + serviceImpl.updateCustomMetric( + (com.google.analytics.admin.v1beta.UpdateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_METRICS: + serviceImpl.listCustomMetrics( + (com.google.analytics.admin.v1beta.ListCustomMetricsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListCustomMetricsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_METRIC: + serviceImpl.archiveCustomMetric( + (com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_METRIC: + serviceImpl.getCustomMetric( + (com.google.analytics.admin.v1beta.GetCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_DATA_RETENTION_SETTINGS: + serviceImpl.getDataRetentionSettings( + (com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_DATA_RETENTION_SETTINGS: + serviceImpl.updateDataRetentionSettings( + (com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_DATA_STREAM: + serviceImpl.createDataStream( + (com.google.analytics.admin.v1beta.CreateDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_DATA_STREAM: + serviceImpl.deleteDataStream( + (com.google.analytics.admin.v1beta.DeleteDataStreamRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DATA_STREAM: + serviceImpl.updateDataStream( + (com.google.analytics.admin.v1beta.UpdateDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_DATA_STREAMS: + serviceImpl.listDataStreams( + (com.google.analytics.admin.v1beta.ListDataStreamsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.ListDataStreamsResponse>) + responseObserver); + break; + case METHODID_GET_DATA_STREAM: + serviceImpl.getDataStream( + (com.google.analytics.admin.v1beta.GetDataStreamRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_RUN_ACCESS_REPORT: + serviceImpl.runAccessReport( + (com.google.analytics.admin.v1beta.RunAccessReportRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1beta.RunAccessReportResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetAccountRequest, + com.google.analytics.admin.v1beta.Account>(service, METHODID_GET_ACCOUNT))) + .addMethod( + getListAccountsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListAccountsRequest, + com.google.analytics.admin.v1beta.ListAccountsResponse>( + service, METHODID_LIST_ACCOUNTS))) + .addMethod( + getDeleteAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeleteAccountRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ACCOUNT))) + .addMethod( + getUpdateAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateAccountRequest, + com.google.analytics.admin.v1beta.Account>(service, METHODID_UPDATE_ACCOUNT))) + .addMethod( + getProvisionAccountTicketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse>( + service, METHODID_PROVISION_ACCOUNT_TICKET))) + .addMethod( + getListAccountSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListAccountSummariesRequest, + com.google.analytics.admin.v1beta.ListAccountSummariesResponse>( + service, METHODID_LIST_ACCOUNT_SUMMARIES))) + .addMethod( + getGetPropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetPropertyRequest, + com.google.analytics.admin.v1beta.Property>(service, METHODID_GET_PROPERTY))) + .addMethod( + getListPropertiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListPropertiesRequest, + com.google.analytics.admin.v1beta.ListPropertiesResponse>( + service, METHODID_LIST_PROPERTIES))) + .addMethod( + getCreatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreatePropertyRequest, + com.google.analytics.admin.v1beta.Property>(service, METHODID_CREATE_PROPERTY))) + .addMethod( + getDeletePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeletePropertyRequest, + com.google.analytics.admin.v1beta.Property>(service, METHODID_DELETE_PROPERTY))) + .addMethod( + getUpdatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdatePropertyRequest, + com.google.analytics.admin.v1beta.Property>(service, METHODID_UPDATE_PROPERTY))) + .addMethod( + getCreateFirebaseLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest, + com.google.analytics.admin.v1beta.FirebaseLink>( + service, METHODID_CREATE_FIREBASE_LINK))) + .addMethod( + getDeleteFirebaseLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_FIREBASE_LINK))) + .addMethod( + getListFirebaseLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest, + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse>( + service, METHODID_LIST_FIREBASE_LINKS))) + .addMethod( + getCreateGoogleAdsLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink>( + service, METHODID_CREATE_GOOGLE_ADS_LINK))) + .addMethod( + getUpdateGoogleAdsLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest, + com.google.analytics.admin.v1beta.GoogleAdsLink>( + service, METHODID_UPDATE_GOOGLE_ADS_LINK))) + .addMethod( + getDeleteGoogleAdsLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_GOOGLE_ADS_LINK))) + .addMethod( + getListGoogleAdsLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse>( + service, METHODID_LIST_GOOGLE_ADS_LINKS))) + .addMethod( + getGetDataSharingSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest, + com.google.analytics.admin.v1beta.DataSharingSettings>( + service, METHODID_GET_DATA_SHARING_SETTINGS))) + .addMethod( + getGetMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret>( + service, METHODID_GET_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getListMeasurementProtocolSecretsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse>( + service, METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS))) + .addMethod( + getCreateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret>( + service, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getDeleteMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getUpdateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret>( + service, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getAcknowledgeUserDataCollectionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse>( + service, METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION))) + .addMethod( + getSearchChangeHistoryEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse>( + service, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) + .addMethod( + getCreateConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent>( + service, METHODID_CREATE_CONVERSION_EVENT))) + .addMethod( + getUpdateConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent>( + service, METHODID_UPDATE_CONVERSION_EVENT))) + .addMethod( + getGetConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetConversionEventRequest, + com.google.analytics.admin.v1beta.ConversionEvent>( + service, METHODID_GET_CONVERSION_EVENT))) + .addMethod( + getDeleteConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeleteConversionEventRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_CONVERSION_EVENT))) + .addMethod( + getListConversionEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListConversionEventsRequest, + com.google.analytics.admin.v1beta.ListConversionEventsResponse>( + service, METHODID_LIST_CONVERSION_EVENTS))) + .addMethod( + getCreateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension>( + service, METHODID_CREATE_CUSTOM_DIMENSION))) + .addMethod( + getUpdateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension>( + service, METHODID_UPDATE_CUSTOM_DIMENSION))) + .addMethod( + getListCustomDimensionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest, + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse>( + service, METHODID_LIST_CUSTOM_DIMENSIONS))) + .addMethod( + getArchiveCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty>(service, METHODID_ARCHIVE_CUSTOM_DIMENSION))) + .addMethod( + getGetCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetCustomDimensionRequest, + com.google.analytics.admin.v1beta.CustomDimension>( + service, METHODID_GET_CUSTOM_DIMENSION))) + .addMethod( + getCreateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric>( + service, METHODID_CREATE_CUSTOM_METRIC))) + .addMethod( + getUpdateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric>( + service, METHODID_UPDATE_CUSTOM_METRIC))) + .addMethod( + getListCustomMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListCustomMetricsRequest, + com.google.analytics.admin.v1beta.ListCustomMetricsResponse>( + service, METHODID_LIST_CUSTOM_METRICS))) + .addMethod( + getArchiveCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest, + com.google.protobuf.Empty>(service, METHODID_ARCHIVE_CUSTOM_METRIC))) + .addMethod( + getGetCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetCustomMetricRequest, + com.google.analytics.admin.v1beta.CustomMetric>( + service, METHODID_GET_CUSTOM_METRIC))) + .addMethod( + getGetDataRetentionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings>( + service, METHODID_GET_DATA_RETENTION_SETTINGS))) + .addMethod( + getUpdateDataRetentionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1beta.DataRetentionSettings>( + service, METHODID_UPDATE_DATA_RETENTION_SETTINGS))) + .addMethod( + getCreateDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.CreateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream>( + service, METHODID_CREATE_DATA_STREAM))) + .addMethod( + getDeleteDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.DeleteDataStreamRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_DATA_STREAM))) + .addMethod( + getUpdateDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.UpdateDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream>( + service, METHODID_UPDATE_DATA_STREAM))) + .addMethod( + getListDataStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.ListDataStreamsRequest, + com.google.analytics.admin.v1beta.ListDataStreamsResponse>( + service, METHODID_LIST_DATA_STREAMS))) + .addMethod( + getGetDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.GetDataStreamRequest, + com.google.analytics.admin.v1beta.DataStream>( + service, METHODID_GET_DATA_STREAM))) + .addMethod( + getRunAccessReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1beta.RunAccessReportRequest, + com.google.analytics.admin.v1beta.RunAccessReportResponse>( + service, METHODID_RUN_ACCESS_REPORT))) + .build(); + } + + private abstract static class AnalyticsAdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AnalyticsAdminServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AnalyticsAdminService"); + } + } + + private static final class AnalyticsAdminServiceFileDescriptorSupplier + extends AnalyticsAdminServiceBaseDescriptorSupplier { + AnalyticsAdminServiceFileDescriptorSupplier() {} + } + + private static final class AnalyticsAdminServiceMethodDescriptorSupplier + extends AnalyticsAdminServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AnalyticsAdminServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AnalyticsAdminServiceFileDescriptorSupplier()) + .addMethod(getGetAccountMethod()) + .addMethod(getListAccountsMethod()) + .addMethod(getDeleteAccountMethod()) + .addMethod(getUpdateAccountMethod()) + .addMethod(getProvisionAccountTicketMethod()) + .addMethod(getListAccountSummariesMethod()) + .addMethod(getGetPropertyMethod()) + .addMethod(getListPropertiesMethod()) + .addMethod(getCreatePropertyMethod()) + .addMethod(getDeletePropertyMethod()) + .addMethod(getUpdatePropertyMethod()) + .addMethod(getCreateFirebaseLinkMethod()) + .addMethod(getDeleteFirebaseLinkMethod()) + .addMethod(getListFirebaseLinksMethod()) + .addMethod(getCreateGoogleAdsLinkMethod()) + .addMethod(getUpdateGoogleAdsLinkMethod()) + .addMethod(getDeleteGoogleAdsLinkMethod()) + .addMethod(getListGoogleAdsLinksMethod()) + .addMethod(getGetDataSharingSettingsMethod()) + .addMethod(getGetMeasurementProtocolSecretMethod()) + .addMethod(getListMeasurementProtocolSecretsMethod()) + .addMethod(getCreateMeasurementProtocolSecretMethod()) + .addMethod(getDeleteMeasurementProtocolSecretMethod()) + .addMethod(getUpdateMeasurementProtocolSecretMethod()) + .addMethod(getAcknowledgeUserDataCollectionMethod()) + .addMethod(getSearchChangeHistoryEventsMethod()) + .addMethod(getCreateConversionEventMethod()) + .addMethod(getUpdateConversionEventMethod()) + .addMethod(getGetConversionEventMethod()) + .addMethod(getDeleteConversionEventMethod()) + .addMethod(getListConversionEventsMethod()) + .addMethod(getCreateCustomDimensionMethod()) + .addMethod(getUpdateCustomDimensionMethod()) + .addMethod(getListCustomDimensionsMethod()) + .addMethod(getArchiveCustomDimensionMethod()) + .addMethod(getGetCustomDimensionMethod()) + .addMethod(getCreateCustomMetricMethod()) + .addMethod(getUpdateCustomMetricMethod()) + .addMethod(getListCustomMetricsMethod()) + .addMethod(getArchiveCustomMetricMethod()) + .addMethod(getGetCustomMetricMethod()) + .addMethod(getGetDataRetentionSettingsMethod()) + .addMethod(getUpdateDataRetentionSettingsMethod()) + .addMethod(getCreateDataStreamMethod()) + .addMethod(getDeleteDataStreamMethod()) + .addMethod(getUpdateDataStreamMethod()) + .addMethod(getListDataStreamsMethod()) + .addMethod(getGetDataStreamMethod()) + .addMethod(getRunAccessReportMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java new file mode 100644 index 000000000000..d86f2246f141 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java @@ -0,0 +1,972 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * To express that the result needs to be between two numbers (inclusive).
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBetweenFilter} + */ +public final class AccessBetweenFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessBetweenFilter) + AccessBetweenFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessBetweenFilter.newBuilder() to construct. + private AccessBetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessBetweenFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessBetweenFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBetweenFilter.class, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder.class); + } + + public static final int FROM_VALUE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.NumericValue fromValue_; + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + @java.lang.Override + public boolean hasFromValue() { + return fromValue_ != null; + } + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } + + public static final int TO_VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.NumericValue toValue_; + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + @java.lang.Override + public boolean hasToValue() { + return toValue_ != null; + } + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getToValue() { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (fromValue_ != null) { + output.writeMessage(1, getFromValue()); + } + if (toValue_ != null) { + output.writeMessage(2, getToValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fromValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFromValue()); + } + if (toValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); + } + size += 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.admin.v1alpha.AccessBetweenFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessBetweenFilter other = + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) obj; + + if (hasFromValue() != other.hasFromValue()) return false; + if (hasFromValue()) { + if (!getFromValue().equals(other.getFromValue())) return false; + } + if (hasToValue() != other.hasToValue()) return false; + if (hasToValue()) { + if (!getToValue().equals(other.getToValue())) return false; + } + if (!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 (hasFromValue()) { + hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getFromValue().hashCode(); + } + if (hasToValue()) { + hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getToValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessBetweenFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * To express that the result needs to be between two numbers (inclusive).
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBetweenFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessBetweenFilter) + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBetweenFilter.class, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fromValue_ = null; + if (fromValueBuilder_ != null) { + fromValueBuilder_.dispose(); + fromValueBuilder_ = null; + } + toValue_ = null; + if (toValueBuilder_ != null) { + toValueBuilder_.dispose(); + toValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter build() { + com.google.analytics.admin.v1alpha.AccessBetweenFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessBetweenFilter result = + new com.google.analytics.admin.v1alpha.AccessBetweenFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessBetweenFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fromValue_ = fromValueBuilder_ == null ? fromValue_ : fromValueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toValue_ = toValueBuilder_ == null ? toValue_ : toValueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessBetweenFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessBetweenFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBetweenFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) + return this; + if (other.hasFromValue()) { + mergeFromValue(other.getFromValue()); + } + if (other.hasToValue()) { + mergeToValue(other.getToValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.NumericValue fromValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + fromValueBuilder_; + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + public boolean hasFromValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { + if (fromValueBuilder_ == null) { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } else { + return fromValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder setFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (fromValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fromValue_ = value; + } else { + fromValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder setFromValue( + com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { + if (fromValueBuilder_ == null) { + fromValue_ = builderForValue.build(); + } else { + fromValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder mergeFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (fromValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && fromValue_ != null + && fromValue_ != com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) { + getFromValueBuilder().mergeFrom(value); + } else { + fromValue_ = value; + } + } else { + fromValueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public Builder clearFromValue() { + bitField0_ = (bitField0_ & ~0x00000001); + fromValue_ = null; + if (fromValueBuilder_ != null) { + fromValueBuilder_.dispose(); + fromValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public com.google.analytics.admin.v1alpha.NumericValue.Builder getFromValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFromValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { + if (fromValueBuilder_ != null) { + return fromValueBuilder_.getMessageOrBuilder(); + } else { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + getFromValueFieldBuilder() { + if (fromValueBuilder_ == null) { + fromValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( + getFromValue(), getParentForChildren(), isClean()); + fromValue_ = null; + } + return fromValueBuilder_; + } + + private com.google.analytics.admin.v1alpha.NumericValue toValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + toValueBuilder_; + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + public boolean hasToValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + public com.google.analytics.admin.v1alpha.NumericValue getToValue() { + if (toValueBuilder_ == null) { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } else { + return toValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder setToValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (toValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toValue_ = value; + } else { + toValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder setToValue( + com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { + if (toValueBuilder_ == null) { + toValue_ = builderForValue.build(); + } else { + toValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder mergeToValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (toValueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && toValue_ != null + && toValue_ != com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) { + getToValueBuilder().mergeFrom(value); + } else { + toValue_ = value; + } + } else { + toValueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public Builder clearToValue() { + bitField0_ = (bitField0_ & ~0x00000002); + toValue_ = null; + if (toValueBuilder_ != null) { + toValueBuilder_.dispose(); + toValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValue.Builder getToValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getToValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { + if (toValueBuilder_ != null) { + return toValueBuilder_.getMessageOrBuilder(); + } else { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + getToValueFieldBuilder() { + if (toValueBuilder_ == null) { + toValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( + getToValue(), getParentForChildren(), isClean()); + toValue_ = null; + } + return toValueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessBetweenFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessBetweenFilter) + private static final com.google.analytics.admin.v1alpha.AccessBetweenFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessBetweenFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessBetweenFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java new file mode 100644 index 000000000000..4406326a4bce --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessBetweenFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessBetweenFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + boolean hasFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + com.google.analytics.admin.v1alpha.NumericValue getFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue from_value = 1; + */ + com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder(); + + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + boolean hasToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + com.google.analytics.admin.v1alpha.NumericValue getToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue to_value = 2; + */ + com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java new file mode 100644 index 000000000000..bfaab8683b45 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java @@ -0,0 +1,1409 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A binding of a user to a set of roles.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBinding} + */ +public final class AccessBinding extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessBinding) + AccessBindingOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessBinding.newBuilder() to construct. + private AccessBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessBinding() { + name_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessBinding(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBinding.class, + com.google.analytics.admin.v1alpha.AccessBinding.Builder.class); + } + + private int accessTargetCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object accessTarget_; + + public enum AccessTargetCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER(2), + ACCESSTARGET_NOT_SET(0); + private final int value; + + private AccessTargetCase(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 AccessTargetCase valueOf(int value) { + return forNumber(value); + } + + public static AccessTargetCase forNumber(int value) { + switch (value) { + case 2: + return USER; + case 0: + return ACCESSTARGET_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public AccessTargetCase getAccessTargetCase() { + return AccessTargetCase.forNumber(accessTargetCase_); + } + + public static final int USER_FIELD_NUMBER = 2; + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return Whether the user field is set. + */ + public boolean hasUser() { + return accessTargetCase_ == 2; + } + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return The user. + */ + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + 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 (accessTargetCase_ == 2) { + accessTarget_ = s; + } + return s; + } + } + /** + * + * + *
+   * If set, the email address of the user to set roles for.
+   * Format: "someuser@gmail.com"
+   * 
+ * + * string user = 2; + * + * @return The bytes for user. + */ + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (accessTargetCase_ == 2) { + accessTarget_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this binding.
+   *
+   * Format: accounts/{account}/accessBindings/{access_binding} or
+   * properties/{property}/accessBindings/{access_binding}
+   *
+   * Example:
+   * "accounts/100/accessBindings/200"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this binding.
+   *
+   * Format: accounts/{account}/accessBindings/{access_binding} or
+   * properties/{property}/accessBindings/{access_binding}
+   *
+   * Example:
+   * "accounts/100/accessBindings/200"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   *
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   *
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + return roles_; + } + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   *
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   *
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   *
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   *
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * + * + *
+   * A list of roles for to grant to the parent resource.
+   *
+   * Valid values:
+   * predefinedRoles/viewer
+   * predefinedRoles/analyst
+   * predefinedRoles/editor
+   * predefinedRoles/admin
+   * predefinedRoles/no-cost-data
+   * predefinedRoles/no-revenue-data
+   *
+   * For users, if an empty list of roles is set, this AccessBinding will be
+   * deleted.
+   * 
+ * + * repeated string roles = 3; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (accessTargetCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accessTarget_); + } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, roles_.getRaw(i)); + } + 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 (accessTargetCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accessTarget_); + } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 1 * getRolesList().size(); + } + 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.admin.v1alpha.AccessBinding)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessBinding other = + (com.google.analytics.admin.v1alpha.AccessBinding) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRolesList().equals(other.getRolesList())) return false; + if (!getAccessTargetCase().equals(other.getAccessTargetCase())) return false; + switch (accessTargetCase_) { + case 2: + if (!getUser().equals(other.getUser())) 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(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + switch (accessTargetCase_) { + case 2: + hash = (37 * hash) + USER_FIELD_NUMBER; + hash = (53 * hash) + getUser().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessBinding prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A binding of a user to a set of roles.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessBinding} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessBinding) + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessBinding.class, + com.google.analytics.admin.v1alpha.AccessBinding.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessBinding.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + accessTargetCase_ = 0; + accessTarget_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding build() { + com.google.analytics.admin.v1alpha.AccessBinding result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding buildPartial() { + com.google.analytics.admin.v1alpha.AccessBinding result = + new com.google.analytics.admin.v1alpha.AccessBinding(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessBinding result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + roles_.makeImmutable(); + result.roles_ = roles_; + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessBinding result) { + result.accessTargetCase_ = accessTargetCase_; + result.accessTarget_ = this.accessTarget_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessBinding) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessBinding) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBinding other) { + if (other == com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ |= 0x00000004; + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + switch (other.getAccessTargetCase()) { + case USER: + { + accessTargetCase_ = 2; + accessTarget_ = other.accessTarget_; + onChanged(); + break; + } + case ACCESSTARGET_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + accessTargetCase_ = 2; + accessTarget_ = s; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int accessTargetCase_ = 0; + private java.lang.Object accessTarget_; + + public AccessTargetCase getAccessTargetCase() { + return AccessTargetCase.forNumber(accessTargetCase_); + } + + public Builder clearAccessTarget() { + accessTargetCase_ = 0; + accessTarget_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return Whether the user field is set. + */ + @java.lang.Override + public boolean hasUser() { + return accessTargetCase_ == 2; + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return The user. + */ + @java.lang.Override + public java.lang.String getUser() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (accessTargetCase_ == 2) { + accessTarget_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return The bytes for user. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserBytes() { + java.lang.Object ref = ""; + if (accessTargetCase_ == 2) { + ref = accessTarget_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (accessTargetCase_ == 2) { + accessTarget_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @param value The user to set. + * @return This builder for chaining. + */ + public Builder setUser(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accessTargetCase_ = 2; + accessTarget_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @return This builder for chaining. + */ + public Builder clearUser() { + if (accessTargetCase_ == 2) { + accessTargetCase_ = 0; + accessTarget_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * If set, the email address of the user to set roles for.
+     * Format: "someuser@gmail.com"
+     * 
+ * + * string user = 2; + * + * @param value The bytes for user to set. + * @return This builder for chaining. + */ + public Builder setUserBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessTargetCase_ = 2; + accessTarget_ = value; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this binding.
+     *
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     *
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     *
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     *
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     *
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     *
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     *
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     *
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this binding.
+     *
+     * Format: accounts/{account}/accessBindings/{access_binding} or
+     * properties/{property}/accessBindings/{access_binding}
+     *
+     * Example:
+     * "accounts/100/accessBindings/200"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRolesIsMutable() { + if (!roles_.isModifiable()) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + } + bitField0_ |= 0x00000004; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList getRolesList() { + roles_.makeImmutable(); + return roles_; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString getRolesBytes(int index) { + return roles_.getByteString(index); + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles(java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, roles_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * A list of roles for to grant to the parent resource.
+     *
+     * Valid values:
+     * predefinedRoles/viewer
+     * predefinedRoles/analyst
+     * predefinedRoles/editor
+     * predefinedRoles/admin
+     * predefinedRoles/no-cost-data
+     * predefinedRoles/no-revenue-data
+     *
+     * For users, if an empty list of roles is set, this AccessBinding will be
+     * deleted.
+     * 
+ * + * repeated string roles = 3; + * + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessBinding) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessBinding) + private static final com.google.analytics.admin.v1alpha.AccessBinding DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessBinding(); + } + + public static com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessBinding parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java similarity index 80% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java index 4b8c391e35ef..acb92d979e58 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBindingOrBuilder.java @@ -1,45 +1,71 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface AccessBindingOrBuilder extends +public interface AccessBindingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessBinding) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * If set, the email address of the user to set roles for.
    * Format: "someuser@gmail.com"
    * 
* * string user = 2; + * * @return Whether the user field is set. */ boolean hasUser(); /** + * + * *
    * If set, the email address of the user to set roles for.
    * Format: "someuser@gmail.com"
    * 
* * string user = 2; + * * @return The user. */ java.lang.String getUser(); /** + * + * *
    * If set, the email address of the user to set roles for.
    * Format: "someuser@gmail.com"
    * 
* * string user = 2; + * * @return The bytes for user. */ - com.google.protobuf.ByteString - getUserBytes(); + com.google.protobuf.ByteString getUserBytes(); /** + * + * *
    * Output only. Resource name of this binding.
    *
@@ -51,10 +77,13 @@ public interface AccessBindingOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of this binding.
    *
@@ -66,12 +95,14 @@ public interface AccessBindingOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * A list of roles for to grant to the parent resource.
    *
@@ -88,11 +119,13 @@ public interface AccessBindingOrBuilder extends
    * 
* * repeated string roles = 3; + * * @return A list containing the roles. */ - java.util.List - getRolesList(); + java.util.List getRolesList(); /** + * + * *
    * A list of roles for to grant to the parent resource.
    *
@@ -109,10 +142,13 @@ public interface AccessBindingOrBuilder extends
    * 
* * repeated string roles = 3; + * * @return The count of roles. */ int getRolesCount(); /** + * + * *
    * A list of roles for to grant to the parent resource.
    *
@@ -129,11 +165,14 @@ public interface AccessBindingOrBuilder extends
    * 
* * repeated string roles = 3; + * * @param index The index of the element to return. * @return The roles at the given index. */ java.lang.String getRoles(int index); /** + * + * *
    * A list of roles for to grant to the parent resource.
    *
@@ -150,11 +189,11 @@ public interface AccessBindingOrBuilder extends
    * 
* * repeated string roles = 3; + * * @param index The index of the value to return. * @return The bytes of the roles at the given index. */ - com.google.protobuf.ByteString - getRolesBytes(int index); + com.google.protobuf.ByteString getRolesBytes(int index); com.google.analytics.admin.v1alpha.AccessBinding.AccessTargetCase getAccessTargetCase(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java new file mode 100644 index 000000000000..876bd277a0fc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java @@ -0,0 +1,848 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A contiguous range of days: startDate, startDate + 1, ..., endDate.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDateRange} + */ +public final class AccessDateRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDateRange) + AccessDateRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDateRange.newBuilder() to construct. + private AccessDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDateRange() { + startDate_ = ""; + endDate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDateRange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDateRange.class, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object startDate_ = ""; + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + @java.lang.Override + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startDate_ = s; + return s; + } + } + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_DATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object endDate_ = ""; + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + @java.lang.Override + public java.lang.String getEndDate() { + java.lang.Object ref = endDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endDate_ = s; + return s; + } + } + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndDateBytes() { + java.lang.Object ref = endDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); + } + 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(startDate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); + } + size += 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.admin.v1alpha.AccessDateRange)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDateRange other = + (com.google.analytics.admin.v1alpha.AccessDateRange) obj; + + if (!getStartDate().equals(other.getStartDate())) return false; + if (!getEndDate().equals(other.getEndDate())) return false; + if (!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) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessDateRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A contiguous range of days: startDate, startDate + 1, ..., endDate.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDateRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDateRange) + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDateRange.class, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDateRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startDate_ = ""; + endDate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange build() { + com.google.analytics.admin.v1alpha.AccessDateRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange buildPartial() { + com.google.analytics.admin.v1alpha.AccessDateRange result = + new com.google.analytics.admin.v1alpha.AccessDateRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDateRange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startDate_ = startDate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endDate_ = endDate_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDateRange) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDateRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDateRange other) { + if (other == com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()) + return this; + if (!other.getStartDate().isEmpty()) { + startDate_ = other.startDate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEndDate().isEmpty()) { + endDate_ = other.endDate_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + startDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + endDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object startDate_ = ""; + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @param value The startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartDate() { + startDate_ = getDefaultInstance().getStartDate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @param value The bytes for startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + startDate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object endDate_ = ""; + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + public java.lang.String getEndDate() { + java.lang.Object ref = endDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + public com.google.protobuf.ByteString getEndDateBytes() { + java.lang.Object ref = endDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @param value The endDate to set. + * @return This builder for chaining. + */ + public Builder setEndDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndDate() { + endDate_ = getDefaultInstance().getEndDate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @param value The bytes for endDate to set. + * @return This builder for chaining. + */ + public Builder setEndDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessDateRange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDateRange) + private static final com.google.analytics.admin.v1alpha.AccessDateRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDateRange(); + } + + public static com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDateRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java new file mode 100644 index 000000000000..247f8e06a04a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java @@ -0,0 +1,87 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDateRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDateRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + java.lang.String getStartDate(); + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + com.google.protobuf.ByteString getStartDateBytes(); + + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + java.lang.String getEndDate(); + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + com.google.protobuf.ByteString getEndDateBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java new file mode 100644 index 000000000000..042c4dc62a41 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java @@ -0,0 +1,656 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Dimensions are attributes of your data. For example, the dimension
+ * `userEmail` indicates the email of the user that accessed reporting data.
+ * Dimension values in report responses are strings.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimension} + */ +public final class AccessDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimension) + AccessDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimension.newBuilder() to construct. + private AccessDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimension() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimension(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimension.class, + com.google.analytics.admin.v1alpha.AccessDimension.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimensionName_ = ""; + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + 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.admin.v1alpha.AccessDimension)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDimension other = + (com.google.analytics.admin.v1alpha.AccessDimension) obj; + + if (!getDimensionName().equals(other.getDimensionName())) return false; + if (!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.admin.v1alpha.AccessDimension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessDimension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Dimensions are attributes of your data. For example, the dimension
+   * `userEmail` indicates the email of the user that accessed reporting data.
+   * Dimension values in report responses are strings.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimension) + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimension.class, + com.google.analytics.admin.v1alpha.AccessDimension.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDimension.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dimensionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension build() { + com.google.analytics.admin.v1alpha.AccessDimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension buildPartial() { + com.google.analytics.admin.v1alpha.AccessDimension result = + new com.google.analytics.admin.v1alpha.AccessDimension(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDimension result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimensionName_ = dimensionName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDimension) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimension other) { + if (other == com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()) + return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + dimensionName_ = getDefaultInstance().getDimensionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dimensionName_ = value; + 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.admin.v1alpha.AccessDimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimension) + private static final com.google.analytics.admin.v1alpha.AccessDimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimension(); + } + + public static com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java new file mode 100644 index 000000000000..88a685aa83c5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java @@ -0,0 +1,631 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Describes a dimension column in the report. Dimensions requested in a report
+ * produce column entries within rows and DimensionHeaders. However, dimensions
+ * used exclusively within filters or expressions do not produce columns in a
+ * report; correspondingly, those dimensions do not produce headers.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionHeader} + */ +public final class AccessDimensionHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionHeader) + AccessDimensionHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimensionHeader.newBuilder() to construct. + private AccessDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimensionHeader() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimensionHeader(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.class, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimensionName_ = ""; + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + 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.admin.v1alpha.AccessDimensionHeader)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDimensionHeader other = + (com.google.analytics.admin.v1alpha.AccessDimensionHeader) obj; + + if (!getDimensionName().equals(other.getDimensionName())) return false; + if (!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.admin.v1alpha.AccessDimensionHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessDimensionHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes a dimension column in the report. Dimensions requested in a report
+   * produce column entries within rows and DimensionHeaders. However, dimensions
+   * used exclusively within filters or expressions do not produce columns in a
+   * report; correspondingly, those dimensions do not produce headers.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimensionHeader) + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.class, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDimensionHeader.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dimensionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader build() { + com.google.analytics.admin.v1alpha.AccessDimensionHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader buildPartial() { + com.google.analytics.admin.v1alpha.AccessDimensionHeader result = + new com.google.analytics.admin.v1alpha.AccessDimensionHeader(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDimensionHeader result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimensionName_ = dimensionName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionHeader) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionHeader other) { + if (other == com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()) + return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + dimensionName_ = getDefaultInstance().getDimensionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dimensionName_ = value; + 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.admin.v1alpha.AccessDimensionHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionHeader) + private static final com.google.analytics.admin.v1alpha.AccessDimensionHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionHeader(); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimensionHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java new file mode 100644 index 000000000000..4f2df27eb81f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDimensionHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimensionHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java new file mode 100644 index 000000000000..d2d15b6f4f62 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java new file mode 100644 index 000000000000..05319b133a6c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java @@ -0,0 +1,632 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The value of a dimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionValue} + */ +public final class AccessDimensionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionValue) + AccessDimensionValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimensionValue.newBuilder() to construct. + private AccessDimensionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimensionValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimensionValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionValue.class, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + 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(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + 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.admin.v1alpha.AccessDimensionValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessDimensionValue other = + (com.google.analytics.admin.v1alpha.AccessDimensionValue) obj; + + if (!getValue().equals(other.getValue())) return false; + if (!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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessDimensionValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The value of a dimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimensionValue) + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessDimensionValue.class, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessDimensionValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue build() { + com.google.analytics.admin.v1alpha.AccessDimensionValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue buildPartial() { + com.google.analytics.admin.v1alpha.AccessDimensionValue result = + new com.google.analytics.admin.v1alpha.AccessDimensionValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDimensionValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionValue) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionValue other) { + if (other == com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + 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.admin.v1alpha.AccessDimensionValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionValue) + private static final com.google.analytics.admin.v1alpha.AccessDimensionValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionValue(); + } + + public static com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimensionValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java new file mode 100644 index 000000000000..cf3d8593a487 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java @@ -0,0 +1,52 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessDimensionValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimensionValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java new file mode 100644 index 000000000000..6a9b186bf221 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java @@ -0,0 +1,1898 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * An expression to filter dimension or metric values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilter} + */ +public final class AccessFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilter) + AccessFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilter.newBuilder() to construct. + private AccessFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilter.class, + com.google.analytics.admin.v1alpha.AccessFilter.Builder.class); + } + + private int oneFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + NUMERIC_FILTER(4), + BETWEEN_FILTER(5), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 4: + return NUMERIC_FILTER; + case 5: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int STRING_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder + getNumericFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); + } + size += 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.admin.v1alpha.AccessFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessFilter other = + (com.google.analytics.admin.v1alpha.AccessFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 4: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 5: + if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; + break; + case 0: + default: + } + if (!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) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getBetweenFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An expression to filter dimension or metric values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilter) + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilter.class, + com.google.analytics.admin.v1alpha.AccessFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } + fieldName_ = ""; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter build() { + com.google.analytics.admin.v1alpha.AccessFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessFilter result = + new com.google.analytics.admin.v1alpha.AccessFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fieldName_ = fieldName_; + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessFilter result) { + result.oneFilterCase_ = oneFilterCase_; + result.oneFilter_ = this.oneFilter_; + if (oneFilterCase_ == 2 && stringFilterBuilder_ != null) { + result.oneFilter_ = stringFilterBuilder_.build(); + } + if (oneFilterCase_ == 3 && inListFilterBuilder_ != null) { + result.oneFilter_ = inListFilterBuilder_.build(); + } + if (oneFilterCase_ == 4 && numericFilterBuilder_ != null) { + result.oneFilter_ = numericFilterBuilder_.build(); + } + if (oneFilterCase_ == 5 && betweenFilterBuilder_ != null) { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance()) + return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000010; + onChanged(); + } + switch (other.getOneFilterCase()) { + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case IN_LIST_FILTER: + { + mergeInListFilter(other.getInListFilter()); + break; + } + case NUMERIC_FILTER: + { + mergeNumericFilter(other.getNumericFilter()); + break; + } + case BETWEEN_FILTER: + { + mergeBetweenFilter(other.getBetweenFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessStringFilter, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder setStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessStringFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + public com.google.analytics.admin.v1alpha.AccessStringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessStringFilter, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 2)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessStringFilter, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 2; + onChanged(); + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessInListFilter, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder setInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder mergeInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessInListFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + public com.google.analytics.admin.v1alpha.AccessInListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder + getInListFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessInListFilter, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessInListFilter, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessNumericFilter, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter(com.google.analytics.admin.v1alpha.AccessNumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter( + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder mergeNumericFilter( + com.google.analytics.admin.v1alpha.AccessNumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessNumericFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + public com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder + getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder + getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessNumericFilter, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessNumericFilter, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBetweenFilter, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter(com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter( + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder mergeBetweenFilter( + com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder + getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBetweenFilter, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBetweenFilter, + com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + return betweenFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilter) + private static final com.google.analytics.admin.v1alpha.AccessFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java new file mode 100644 index 000000000000..79e79a4c7a36 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java @@ -0,0 +1,1745 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Expresses dimension or metric filters. The fields in the same expression need
+ * to be either all dimensions or all metrics.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpression} + */ +public final class AccessFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpression) + AccessFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilterExpression.newBuilder() to construct. + private AccessFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilterExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpression.class, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder.class); + } + + private int oneExpressionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneExpression_; + + public enum OneExpressionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + ACCESS_FILTER(4), + ONEEXPRESSION_NOT_SET(0); + private final int value; + + private OneExpressionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static OneExpressionCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return ACCESS_FILTER; + case 0: + return ONEEXPRESSION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneExpressionCase getOneExpressionCase() { + return OneExpressionCase.forNumber(oneExpressionCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return oneExpressionCase_ == 1; + } + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup() { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return oneExpressionCase_ == 2; + } + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup() { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return oneExpressionCase_ == 3; + } + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression() { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + + public static final int ACCESS_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + @java.lang.Override + public boolean hasAccessFilter() { + return oneExpressionCase_ == 4; + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneExpressionCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); + } + if (oneExpressionCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneExpressionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); + } + if (oneExpressionCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); + } + size += 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.admin.v1alpha.AccessFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessFilterExpression other = + (com.google.analytics.admin.v1alpha.AccessFilterExpression) obj; + + if (!getOneExpressionCase().equals(other.getOneExpressionCase())) return false; + switch (oneExpressionCase_) { + case 1: + if (!getAndGroup().equals(other.getAndGroup())) return false; + break; + case 2: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 3: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 4: + if (!getAccessFilter().equals(other.getAccessFilter())) return false; + break; + case 0: + default: + } + if (!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 (oneExpressionCase_) { + case 1: + hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAndGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 3: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 4: + hash = (37 * hash) + ACCESS_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAccessFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Expresses dimension or metric filters. The fields in the same expression need
+   * to be either all dimensions or all metrics.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilterExpression) + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpression.class, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (accessFilterBuilder_ != null) { + accessFilterBuilder_.clear(); + } + oneExpressionCase_ = 0; + oneExpression_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression build() { + com.google.analytics.admin.v1alpha.AccessFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.AccessFilterExpression result = + new com.google.analytics.admin.v1alpha.AccessFilterExpression(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessFilterExpression result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.AccessFilterExpression result) { + result.oneExpressionCase_ = oneExpressionCase_; + result.oneExpression_ = this.oneExpression_; + if (oneExpressionCase_ == 1 && andGroupBuilder_ != null) { + result.oneExpression_ = andGroupBuilder_.build(); + } + if (oneExpressionCase_ == 2 && orGroupBuilder_ != null) { + result.oneExpression_ = orGroupBuilder_.build(); + } + if (oneExpressionCase_ == 3 && notExpressionBuilder_ != null) { + result.oneExpression_ = notExpressionBuilder_.build(); + } + if (oneExpressionCase_ == 4 && accessFilterBuilder_ != null) { + result.oneExpression_ = accessFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpression) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpression other) { + if (other == com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) + return this; + switch (other.getOneExpressionCase()) { + case AND_GROUP: + { + mergeAndGroup(other.getAndGroup()); + break; + } + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case ACCESS_FILTER: + { + mergeAccessFilter(other.getAccessFilter()); + break; + } + case ONEEXPRESSION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getAccessFilterFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneExpressionCase_ = 0; + private java.lang.Object oneExpression_; + + public OneExpressionCase getOneExpressionCase() { + return OneExpressionCase.forNumber(oneExpressionCase_); + } + + public Builder clearOneExpression() { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return oneExpressionCase_ == 1; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder builderForValue) { + if (andGroupBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilterExpressionList + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) + oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public Builder clearAndGroup() { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 1) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + andGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((oneExpressionCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(oneExpressionCase_ == 1)) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 1; + onChanged(); + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return oneExpressionCase_ == 2; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder setOrGroup(com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder builderForValue) { + if (orGroupBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilterExpressionList + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) + oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 2) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((oneExpressionCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(oneExpressionCase_ == 2)) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpressionList, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 2; + onChanged(); + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return oneExpressionCase_ == 3; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 3) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((oneExpressionCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(oneExpressionCase_ == 3)) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 3; + onChanged(); + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilter, + com.google.analytics.admin.v1alpha.AccessFilter.Builder, + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder> + accessFilterBuilder_; + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + @java.lang.Override + public boolean hasAccessFilter() { + return oneExpressionCase_ == 4; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter() { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 4) { + return accessFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder setAccessFilter(com.google.analytics.admin.v1alpha.AccessFilter value) { + if (accessFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + accessFilterBuilder_.setMessage(value); + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder setAccessFilter( + com.google.analytics.admin.v1alpha.AccessFilter.Builder builderForValue) { + if (accessFilterBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + accessFilterBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder mergeAccessFilter(com.google.analytics.admin.v1alpha.AccessFilter value) { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4 + && oneExpression_ + != com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1alpha.AccessFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 4) { + accessFilterBuilder_.mergeFrom(value); + } else { + accessFilterBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public Builder clearAccessFilter() { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 4) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + accessFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + public com.google.analytics.admin.v1alpha.AccessFilter.Builder getAccessFilterBuilder() { + return getAccessFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder() { + if ((oneExpressionCase_ == 4) && (accessFilterBuilder_ != null)) { + return accessFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilter, + com.google.analytics.admin.v1alpha.AccessFilter.Builder, + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder> + getAccessFilterFieldBuilder() { + if (accessFilterBuilder_ == null) { + if (!(oneExpressionCase_ == 4)) { + oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); + } + accessFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilter, + com.google.analytics.admin.v1alpha.AccessFilter.Builder, + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 4; + onChanged(); + return accessFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilterExpression) + private static final com.google.analytics.admin.v1alpha.AccessFilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java new file mode 100644 index 000000000000..36329924d6b0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java @@ -0,0 +1,961 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpressionList} + */ +public final class AccessFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpressionList) + AccessFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilterExpressionList.newBuilder() to construct. + private AccessFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilterExpressionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List expressions_; + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( + int index) { + return expressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < expressions_.size(); i++) { + output.writeMessage(1, expressions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expressions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); + } + size += 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.admin.v1alpha.AccessFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessFilterExpressionList other = + (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) obj; + + if (!getExpressionsList().equals(other.getExpressionsList())) return false; + if (!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 (getExpressionsCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilterExpressionList) + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + } else { + expressions_ = null; + expressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList build() { + com.google.analytics.admin.v1alpha.AccessFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.AccessFilterExpressionList result = + new com.google.analytics.admin.v1alpha.AccessFilterExpressionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList result) { + if (expressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expressions_ = expressions_; + } else { + result.expressions_ = expressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AccessFilterExpressionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpressionList) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance()) + return this; + if (expressionsBuilder_ == null) { + if (!other.expressions_.isEmpty()) { + if (expressions_.isEmpty()) { + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpressionsIsMutable(); + expressions_.addAll(other.expressions_); + } + onChanged(); + } + } else { + if (!other.expressions_.isEmpty()) { + if (expressionsBuilder_.isEmpty()) { + expressionsBuilder_.dispose(); + expressionsBuilder_ = null; + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + expressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExpressionsFieldBuilder() + : null; + } else { + expressionsBuilder_.addAllMessages(other.expressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessFilterExpression m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessFilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List expressions_ = + java.util.Collections.emptyList(); + + private void ensureExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList( + expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder addAllExpressions( + java.lang.Iterable + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder getExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder addExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + expressions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + expressions_ = null; + } + return expressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.AccessFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..d027c1278bd1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + java.util.List getExpressionsList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + int getExpressionsCount(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + java.util.List + getExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java new file mode 100644 index 000000000000..d64a67c98f4d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder(); + + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder(); + + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + boolean hasAccessFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; + */ + com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder(); + + com.google.analytics.admin.v1alpha.AccessFilterExpression.OneExpressionCase + getOneExpressionCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java new file mode 100644 index 000000000000..aaa838c79645 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; + */ + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; + */ + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; + */ + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; + */ + com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + com.google.analytics.admin.v1alpha.AccessFilter.OneFilterCase getOneFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java new file mode 100644 index 000000000000..ffe79ff6e5d9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java @@ -0,0 +1,813 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The result needs to be in a list of string values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessInListFilter} + */ +public final class AccessInListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessInListFilter) + AccessInListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessInListFilter.newBuilder() to construct. + private AccessInListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessInListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessInListFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessInListFilter.class, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; + private boolean caseSensitive_ = false; + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (caseSensitive_ != false) { + output.writeBool(2, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); + } + size += 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.admin.v1alpha.AccessInListFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessInListFilter other = + (com.google.analytics.admin.v1alpha.AccessInListFilter) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) return false; + if (!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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessInListFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The result needs to be in a list of string values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessInListFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessInListFilter) + com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessInListFilter.class, + com.google.analytics.admin.v1alpha.AccessInListFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessInListFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter build() { + com.google.analytics.admin.v1alpha.AccessInListFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessInListFilter result = + new com.google.analytics.admin.v1alpha.AccessInListFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessInListFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessInListFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessInListFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessInListFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 16: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000002); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessInListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessInListFilter) + private static final com.google.analytics.admin.v1alpha.AccessInListFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessInListFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessInListFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java new file mode 100644 index 000000000000..61c37ef163af --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessInListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessInListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java new file mode 100644 index 000000000000..eda3b9b9166a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java @@ -0,0 +1,654 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The quantitative measurements of a report. For example, the metric
+ * `accessCount` is the total number of data access records.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetric} + */ +public final class AccessMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetric) + AccessMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetric.newBuilder() to construct. + private AccessMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetric() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetric.class, + com.google.analytics.admin.v1alpha.AccessMetric.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.admin.v1alpha.AccessMetric)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessMetric other = + (com.google.analytics.admin.v1alpha.AccessMetric) obj; + + if (!getMetricName().equals(other.getMetricName())) return false; + if (!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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessMetric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The quantitative measurements of a report. For example, the metric
+   * `accessCount` is the total number of data access records.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetric) + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetric.class, + com.google.analytics.admin.v1alpha.AccessMetric.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessMetric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric build() { + com.google.analytics.admin.v1alpha.AccessMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric buildPartial() { + com.google.analytics.admin.v1alpha.AccessMetric result = + new com.google.analytics.admin.v1alpha.AccessMetric(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessMetric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessMetric) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetric other) { + if (other == com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; + 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.admin.v1alpha.AccessMetric) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetric) + private static final com.google.analytics.admin.v1alpha.AccessMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetric(); + } + + public static com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java new file mode 100644 index 000000000000..48b3da04efb9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java @@ -0,0 +1,631 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Describes a metric column in the report. Visible metrics requested in a
+ * report produce column entries within rows and MetricHeaders. However,
+ * metrics used exclusively within filters or expressions do not produce columns
+ * in a report; correspondingly, those metrics do not produce headers.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricHeader} + */ +public final class AccessMetricHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricHeader) + AccessMetricHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetricHeader.newBuilder() to construct. + private AccessMetricHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetricHeader() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetricHeader(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricHeader.class, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.admin.v1alpha.AccessMetricHeader)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessMetricHeader other = + (com.google.analytics.admin.v1alpha.AccessMetricHeader) obj; + + if (!getMetricName().equals(other.getMetricName())) return false; + if (!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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessMetricHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes a metric column in the report. Visible metrics requested in a
+   * report produce column entries within rows and MetricHeaders. However,
+   * metrics used exclusively within filters or expressions do not produce columns
+   * in a report; correspondingly, those metrics do not produce headers.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetricHeader) + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricHeader.class, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessMetricHeader.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader build() { + com.google.analytics.admin.v1alpha.AccessMetricHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader buildPartial() { + com.google.analytics.admin.v1alpha.AccessMetricHeader result = + new com.google.analytics.admin.v1alpha.AccessMetricHeader(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessMetricHeader result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricHeader) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricHeader other) { + if (other == com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; + 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.admin.v1alpha.AccessMetricHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricHeader) + private static final com.google.analytics.admin.v1alpha.AccessMetricHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricHeader(); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetricHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java new file mode 100644 index 000000000000..4e645aa81827 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessMetricHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetricHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java new file mode 100644 index 000000000000..3d9117e68b06 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java new file mode 100644 index 000000000000..054169552d31 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java @@ -0,0 +1,624 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The value of a metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricValue} + */ +public final class AccessMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricValue) + AccessMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetricValue.newBuilder() to construct. + private AccessMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetricValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricValue.class, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + 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(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + 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.admin.v1alpha.AccessMetricValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessMetricValue other = + (com.google.analytics.admin.v1alpha.AccessMetricValue) obj; + + if (!getValue().equals(other.getValue())) return false; + if (!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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessMetricValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The value of a metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetricValue) + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessMetricValue.class, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue build() { + com.google.analytics.admin.v1alpha.AccessMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue buildPartial() { + com.google.analytics.admin.v1alpha.AccessMetricValue result = + new com.google.analytics.admin.v1alpha.AccessMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessMetricValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricValue) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricValue other) { + if (other == com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + 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.admin.v1alpha.AccessMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricValue) + private static final com.google.analytics.admin.v1alpha.AccessMetricValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricValue(); + } + + public static com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetricValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java new file mode 100644 index 000000000000..2950279bf1bc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java new file mode 100644 index 000000000000..c63575001192 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java @@ -0,0 +1,1090 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Filters for numeric or date values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessNumericFilter} + */ +public final class AccessNumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessNumericFilter) + AccessNumericFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessNumericFilter.newBuilder() to construct. + private AccessNumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessNumericFilter() { + operation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessNumericFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessNumericFilter.class, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder.class); + } + + /** + * + * + *
+   * The operation applied to a numeric filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AccessNumericFilter.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + OPERATION_UNSPECIFIED(0), + /** + * + * + *
+     * Equal
+     * 
+ * + * EQUAL = 1; + */ + EQUAL(1), + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 2; + */ + LESS_THAN(2), + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + LESS_THAN_OR_EQUAL(3), + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 4; + */ + GREATER_THAN(4), + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + GREATER_THAN_OR_EQUAL(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + public static final int OPERATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Equal
+     * 
+ * + * EQUAL = 1; + */ + public static final int EQUAL_VALUE = 1; + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 2; + */ + public static final int LESS_THAN_VALUE = 2; + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + public static final int LESS_THAN_OR_EQUAL_VALUE = 3; + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 4; + */ + public static final int GREATER_THAN_VALUE = 4; + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operation valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Operation forNumber(int value) { + switch (value) { + case 0: + return OPERATION_UNSPECIFIED; + case 1: + return EQUAL; + case 2: + return LESS_THAN; + case 3: + return LESS_THAN_OR_EQUAL; + case 4: + return GREATER_THAN; + case 5: + return GREATER_THAN_OR_EQUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operation findValueByNumber(int number) { + return Operation.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operation[] VALUES = values(); + + public static Operation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessNumericFilter.Operation) + } + + public static final int OPERATION_FIELD_NUMBER = 1; + private int operation_ = 0; + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.forNumber(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.NumericValue value_; + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getValue() { + return value_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : value_; + } + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { + return value_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (operation_ + != com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, operation_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operation_ + != com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operation_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + size += 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.admin.v1alpha.AccessNumericFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessNumericFilter other = + (com.google.analytics.admin.v1alpha.AccessNumericFilter) obj; + + if (operation_ != other.operation_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) return false; + } + if (!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) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessNumericFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Filters for numeric or date values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessNumericFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessNumericFilter) + com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessNumericFilter.class, + com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessNumericFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + operation_ = 0; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter build() { + com.google.analytics.admin.v1alpha.AccessNumericFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessNumericFilter result = + new com.google.analytics.admin.v1alpha.AccessNumericFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessNumericFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operation_ = operation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessNumericFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessNumericFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessNumericFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) + return this; + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + operation_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int operation_ = 0; + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + operation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.forNumber(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + operation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000001); + operation_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.NumericValue value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + valueBuilder_; + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + public com.google.analytics.admin.v1alpha.NumericValue getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder setValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder setValue( + com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder mergeValue(com.google.analytics.admin.v1alpha.NumericValue value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValue.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() + : value_; + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.NumericValue, + com.google.analytics.admin.v1alpha.NumericValue.Builder, + com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessNumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessNumericFilter) + private static final com.google.analytics.admin.v1alpha.AccessNumericFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessNumericFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessNumericFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java new file mode 100644 index 000000000000..3636195f7d59 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessNumericFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessNumericFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation(); + + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + com.google.analytics.admin.v1alpha.NumericValue getValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1alpha.NumericValue value = 2; + */ + com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java new file mode 100644 index 000000000000..94bf85c177ba --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java @@ -0,0 +1,2934 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Order bys define how rows will be sorted in the response. For example,
+ * ordering rows by descending access count is one ordering, and ordering rows
+ * by the country string is a different ordering.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy} + */ +public final class AccessOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy) + AccessOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessOrderBy.newBuilder() to construct. + private AccessOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessOrderBy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessOrderBy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder.class); + } + + public interface MetricOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); + } + /** + * + * + *
+   * Sorts by metric values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} + */ + public static final class MetricOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + MetricOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricOrderBy.newBuilder() to construct. + private MetricOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricOrderBy() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricOrderBy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.admin.v1alpha.AccessOrderBy.MetricOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy other = + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) obj; + + if (!getMetricName().equals(other.getMetricName())) return false; + if (!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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Sorts by metric values.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy build() { + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy buildPartial() { + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = + new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy other) { + if (other + == com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; + 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.admin.v1alpha.AccessOrderBy.MetricOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) + private static final com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DimensionOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); + + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + int getOrderTypeValue(); + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType getOrderType(); + } + /** + * + * + *
+   * Sorts by dimension values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} + */ + public static final class DimensionOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + DimensionOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use DimensionOrderBy.newBuilder() to construct. + private DimensionOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DimensionOrderBy() { + dimensionName_ = ""; + orderType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DimensionOrderBy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder.class); + } + + /** + * + * + *
+     * Rule to order the string dimension values by.
+     * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType} + */ + public enum OrderType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * ORDER_TYPE_UNSPECIFIED = 0; + */ + ORDER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
+       * "b" < "z".
+       * 
+ * + * ALPHANUMERIC = 1; + */ + ALPHANUMERIC(1), + /** + * + * + *
+       * Case insensitive alphanumeric sort by lower case Unicode code point.
+       * For example, "2" < "A" < "b" < "X" < "z".
+       * 
+ * + * CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + CASE_INSENSITIVE_ALPHANUMERIC(2), + /** + * + * + *
+       * Dimension values are converted to numbers before sorting. For example
+       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
+       * "25". Non-numeric dimension values all have equal ordering value below
+       * all numeric values.
+       * 
+ * + * NUMERIC = 3; + */ + NUMERIC(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * ORDER_TYPE_UNSPECIFIED = 0; + */ + public static final int ORDER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
+       * "b" < "z".
+       * 
+ * + * ALPHANUMERIC = 1; + */ + public static final int ALPHANUMERIC_VALUE = 1; + /** + * + * + *
+       * Case insensitive alphanumeric sort by lower case Unicode code point.
+       * For example, "2" < "A" < "b" < "X" < "z".
+       * 
+ * + * CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + public static final int CASE_INSENSITIVE_ALPHANUMERIC_VALUE = 2; + /** + * + * + *
+       * Dimension values are converted to numbers before sorting. For example
+       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
+       * "25". Non-numeric dimension values all have equal ordering value below
+       * all numeric values.
+       * 
+ * + * NUMERIC = 3; + */ + public static final int NUMERIC_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OrderType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OrderType forNumber(int value) { + switch (value) { + case 0: + return ORDER_TYPE_UNSPECIFIED; + case 1: + return ALPHANUMERIC; + case 2: + return CASE_INSENSITIVE_ALPHANUMERIC; + case 3: + return NUMERIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OrderType findValueByNumber(int number) { + return OrderType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final OrderType[] VALUES = values(); + + public static OrderType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OrderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType) + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_TYPE_FIELD_NUMBER = 2; + private int orderType_ = 0; + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + @java.lang.Override + public int getOrderTypeValue() { + return orderType_; + } + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + getOrderType() { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.forNumber( + orderType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + if (orderType_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + .ORDER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, orderType_); + } + 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_); + } + if (orderType_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + .ORDER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, orderType_); + } + 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.admin.v1alpha.AccessOrderBy.DimensionOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy other = + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) obj; + + if (!getDimensionName().equals(other.getDimensionName())) return false; + if (orderType_ != other.orderType_) return false; + if (!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 = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + orderType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Sorts by dimension values.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dimensionName_ = ""; + orderType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy build() { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy buildPartial() { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = + new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimensionName_ = dimensionName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orderType_ = orderType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy other) { + if (other + == com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance()) return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.orderType_ != 0) { + setOrderTypeValue(other.getOrderTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + orderType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + dimensionName_ = getDefaultInstance().getDimensionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int orderType_ = 0; + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + @java.lang.Override + public int getOrderTypeValue() { + return orderType_; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @param value The enum numeric value on the wire for orderType to set. + * @return This builder for chaining. + */ + public Builder setOrderTypeValue(int value) { + orderType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + getOrderType() { + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.forNumber( + orderType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @param value The orderType to set. + * @return This builder for chaining. + */ + public Builder setOrderType( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + orderType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearOrderType() { + bitField0_ = (bitField0_ & ~0x00000002); + orderType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + private static final com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DimensionOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneOrderByCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneOrderBy_; + + public enum OneOrderByCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + METRIC(1), + DIMENSION(2), + ONEORDERBY_NOT_SET(0); + private final int value; + + private OneOrderByCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneOrderByCase valueOf(int value) { + return forNumber(value); + } + + public static OneOrderByCase forNumber(int value) { + switch (value) { + case 1: + return METRIC; + case 2: + return DIMENSION; + case 0: + return ONEORDERBY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneOrderByCase getOneOrderByCase() { + return OneOrderByCase.forNumber(oneOrderByCase_); + } + + public static final int METRIC_FIELD_NUMBER = 1; + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return oneOrderByCase_ == 1; + } + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder + getMetricOrBuilder() { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + + public static final int DIMENSION_FIELD_NUMBER = 2; + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + @java.lang.Override + public boolean hasDimension() { + return oneOrderByCase_ == 2; + } + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); + } + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder() { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); + } + + public static final int DESC_FIELD_NUMBER = 3; + private boolean desc_ = false; + /** + * + * + *
+   * If true, sorts by descending order. If false or unspecified, sorts in
+   * ascending order.
+   * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + @java.lang.Override + public boolean getDesc() { + return desc_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneOrderByCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); + } + if (oneOrderByCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_); + } + if (desc_ != false) { + output.writeBool(3, desc_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneOrderByCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); + } + if (oneOrderByCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_); + } + if (desc_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, desc_); + } + size += 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.admin.v1alpha.AccessOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessOrderBy other = + (com.google.analytics.admin.v1alpha.AccessOrderBy) obj; + + if (getDesc() != other.getDesc()) return false; + if (!getOneOrderByCase().equals(other.getOneOrderByCase())) return false; + switch (oneOrderByCase_) { + case 1: + if (!getMetric().equals(other.getMetric())) return false; + break; + case 2: + if (!getDimension().equals(other.getDimension())) return false; + break; + case 0: + default: + } + if (!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) + DESC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDesc()); + switch (oneOrderByCase_) { + case 1: + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + break; + case 2: + hash = (37 * hash) + DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getDimension().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessOrderBy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Order bys define how rows will be sorted in the response. For example,
+   * ordering rows by descending access count is one ordering, and ordering rows
+   * by the country string is a different ordering.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy) + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessOrderBy.class, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessOrderBy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (metricBuilder_ != null) { + metricBuilder_.clear(); + } + if (dimensionBuilder_ != null) { + dimensionBuilder_.clear(); + } + desc_ = false; + oneOrderByCase_ = 0; + oneOrderBy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy build() { + com.google.analytics.admin.v1alpha.AccessOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy buildPartial() { + com.google.analytics.admin.v1alpha.AccessOrderBy result = + new com.google.analytics.admin.v1alpha.AccessOrderBy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessOrderBy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.desc_ = desc_; + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessOrderBy result) { + result.oneOrderByCase_ = oneOrderByCase_; + result.oneOrderBy_ = this.oneOrderBy_; + if (oneOrderByCase_ == 1 && metricBuilder_ != null) { + result.oneOrderBy_ = metricBuilder_.build(); + } + if (oneOrderByCase_ == 2 && dimensionBuilder_ != null) { + result.oneOrderBy_ = dimensionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessOrderBy other) { + if (other == com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()) + return this; + if (other.getDesc() != false) { + setDesc(other.getDesc()); + } + switch (other.getOneOrderByCase()) { + case METRIC: + { + mergeMetric(other.getMetric()); + break; + } + case DIMENSION: + { + mergeDimension(other.getDimension()); + break; + } + case ONEORDERBY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry); + oneOrderByCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getDimensionFieldBuilder().getBuilder(), extensionRegistry); + oneOrderByCase_ = 2; + break; + } // case 18 + case 24: + { + desc_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneOrderByCase_ = 0; + private java.lang.Object oneOrderBy_; + + public OneOrderByCase getOneOrderByCase() { + return OneOrderByCase.forNumber(oneOrderByCase_); + } + + public Builder clearOneOrderBy() { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> + metricBuilder_; + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return oneOrderByCase_ == 1; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } else { + if (oneOrderByCase_ == 1) { + return metricBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder setMetric(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { + if (metricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneOrderBy_ = value; + onChanged(); + } else { + metricBuilder_.setMessage(value); + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder setMetric( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder builderForValue) { + if (metricBuilder_ == null) { + oneOrderBy_ = builderForValue.build(); + onChanged(); + } else { + metricBuilder_.setMessage(builderForValue.build()); + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder mergeMetric( + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1 + && oneOrderBy_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy + .getDefaultInstance()) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.newBuilder( + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_) + .mergeFrom(value) + .buildPartial(); + } else { + oneOrderBy_ = value; + } + onChanged(); + } else { + if (oneOrderByCase_ == 1) { + metricBuilder_.mergeFrom(value); + } else { + metricBuilder_.setMessage(value); + } + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder clearMetric() { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + } + } else { + if (oneOrderByCase_ == 1) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + } + metricBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder + getMetricBuilder() { + return getMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder + getMetricOrBuilder() { + if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { + return metricBuilder_.getMessageOrBuilder(); + } else { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> + getMetricFieldBuilder() { + if (metricBuilder_ == null) { + if (!(oneOrderByCase_ == 1)) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + metricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_, + getParentForChildren(), + isClean()); + oneOrderBy_ = null; + } + oneOrderByCase_ = 1; + onChanged(); + return metricBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> + dimensionBuilder_; + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + @java.lang.Override + public boolean hasDimension() { + return oneOrderByCase_ == 2; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } else { + if (oneOrderByCase_ == 2) { + return dimensionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder setDimension( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { + if (dimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneOrderBy_ = value; + onChanged(); + } else { + dimensionBuilder_.setMessage(value); + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder setDimension( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder builderForValue) { + if (dimensionBuilder_ == null) { + oneOrderBy_ = builderForValue.build(); + onChanged(); + } else { + dimensionBuilder_.setMessage(builderForValue.build()); + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder mergeDimension( + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2 + && oneOrderBy_ + != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance()) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.newBuilder( + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) + oneOrderBy_) + .mergeFrom(value) + .buildPartial(); + } else { + oneOrderBy_ = value; + } + onChanged(); + } else { + if (oneOrderByCase_ == 2) { + dimensionBuilder_.mergeFrom(value); + } else { + dimensionBuilder_.setMessage(value); + } + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder clearDimension() { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + } + } else { + if (oneOrderByCase_ == 2) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + } + dimensionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder + getDimensionBuilder() { + return getDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder() { + if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { + return dimensionBuilder_.getMessageOrBuilder(); + } else { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> + getDimensionFieldBuilder() { + if (dimensionBuilder_ == null) { + if (!(oneOrderByCase_ == 2)) { + oneOrderBy_ = + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + dimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder>( + (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_, + getParentForChildren(), + isClean()); + oneOrderBy_ = null; + } + oneOrderByCase_ = 2; + onChanged(); + return dimensionBuilder_; + } + + private boolean desc_; + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + @java.lang.Override + public boolean getDesc() { + return desc_; + } + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @param value The desc to set. + * @return This builder for chaining. + */ + public Builder setDesc(boolean value) { + + desc_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @return This builder for chaining. + */ + public Builder clearDesc() { + bitField0_ = (bitField0_ & ~0x00000004); + desc_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy) + private static final com.google.analytics.admin.v1alpha.AccessOrderBy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy(); + } + + public static com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java new file mode 100644 index 000000000000..f4c7caecc2b5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + boolean hasMetric(); + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric(); + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); + + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + boolean hasDimension(); + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension(); + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder(); + + /** + * + * + *
+   * If true, sorts by descending order. If false or unspecified, sorts in
+   * ascending order.
+   * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + boolean getDesc(); + + com.google.analytics.admin.v1alpha.AccessOrderBy.OneOrderByCase getOneOrderByCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java new file mode 100644 index 000000000000..8894ffebbf0f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java @@ -0,0 +1,1924 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Current state of all quotas for this Analytics property. If any quota for a
+ * property is exhausted, all requests to that property will return Resource
+ * Exhausted errors.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuota} + */ +public final class AccessQuota extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuota) + AccessQuotaOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessQuota.newBuilder() to construct. + private AccessQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessQuota() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessQuota(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuota.class, + com.google.analytics.admin.v1alpha.AccessQuota.Builder.class); + } + + public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + @java.lang.Override + public boolean hasTokensPerDay() { + return tokensPerDay_ != null; + } + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + + public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + @java.lang.Override + public boolean hasTokensPerHour() { + return tokensPerHour_ != null; + } + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + + public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + @java.lang.Override + public boolean hasConcurrentRequests() { + return concurrentRequests_ != null; + } + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getConcurrentRequestsOrBuilder() { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + + public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + @java.lang.Override + public boolean hasServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHour_ != null; + } + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + + public static final int TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerProjectPerHour_; + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + @java.lang.Override + public boolean hasTokensPerProjectPerHour() { + return tokensPerProjectPerHour_ != null; + } + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return The tokensPerProjectPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerProjectPerHour() { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder() { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tokensPerDay_ != null) { + output.writeMessage(1, getTokensPerDay()); + } + if (tokensPerHour_ != null) { + output.writeMessage(2, getTokensPerHour()); + } + if (concurrentRequests_ != null) { + output.writeMessage(3, getConcurrentRequests()); + } + if (serverErrorsPerProjectPerHour_ != null) { + output.writeMessage(4, getServerErrorsPerProjectPerHour()); + } + if (tokensPerProjectPerHour_ != null) { + output.writeMessage(5, getTokensPerProjectPerHour()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tokensPerDay_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTokensPerDay()); + } + if (tokensPerHour_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTokensPerHour()); + } + if (concurrentRequests_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConcurrentRequests()); + } + if (serverErrorsPerProjectPerHour_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getServerErrorsPerProjectPerHour()); + } + if (tokensPerProjectPerHour_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTokensPerProjectPerHour()); + } + 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.admin.v1alpha.AccessQuota)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessQuota other = + (com.google.analytics.admin.v1alpha.AccessQuota) obj; + + if (hasTokensPerDay() != other.hasTokensPerDay()) return false; + if (hasTokensPerDay()) { + if (!getTokensPerDay().equals(other.getTokensPerDay())) return false; + } + if (hasTokensPerHour() != other.hasTokensPerHour()) return false; + if (hasTokensPerHour()) { + if (!getTokensPerHour().equals(other.getTokensPerHour())) return false; + } + if (hasConcurrentRequests() != other.hasConcurrentRequests()) return false; + if (hasConcurrentRequests()) { + if (!getConcurrentRequests().equals(other.getConcurrentRequests())) return false; + } + if (hasServerErrorsPerProjectPerHour() != other.hasServerErrorsPerProjectPerHour()) + return false; + if (hasServerErrorsPerProjectPerHour()) { + if (!getServerErrorsPerProjectPerHour().equals(other.getServerErrorsPerProjectPerHour())) + return false; + } + if (hasTokensPerProjectPerHour() != other.hasTokensPerProjectPerHour()) return false; + if (hasTokensPerProjectPerHour()) { + if (!getTokensPerProjectPerHour().equals(other.getTokensPerProjectPerHour())) 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 (hasTokensPerDay()) { + hash = (37 * hash) + TOKENS_PER_DAY_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerDay().hashCode(); + } + if (hasTokensPerHour()) { + hash = (37 * hash) + TOKENS_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerHour().hashCode(); + } + if (hasConcurrentRequests()) { + hash = (37 * hash) + CONCURRENT_REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getConcurrentRequests().hashCode(); + } + if (hasServerErrorsPerProjectPerHour()) { + hash = (37 * hash) + SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getServerErrorsPerProjectPerHour().hashCode(); + } + if (hasTokensPerProjectPerHour()) { + hash = (37 * hash) + TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerProjectPerHour().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessQuota prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Current state of all quotas for this Analytics property. If any quota for a
+   * property is exhausted, all requests to that property will return Resource
+   * Exhausted errors.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuota} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessQuota) + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuota.class, + com.google.analytics.admin.v1alpha.AccessQuota.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessQuota.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tokensPerDay_ = null; + if (tokensPerDayBuilder_ != null) { + tokensPerDayBuilder_.dispose(); + tokensPerDayBuilder_ = null; + } + tokensPerHour_ = null; + if (tokensPerHourBuilder_ != null) { + tokensPerHourBuilder_.dispose(); + tokensPerHourBuilder_ = null; + } + concurrentRequests_ = null; + if (concurrentRequestsBuilder_ != null) { + concurrentRequestsBuilder_.dispose(); + concurrentRequestsBuilder_ = null; + } + serverErrorsPerProjectPerHour_ = null; + if (serverErrorsPerProjectPerHourBuilder_ != null) { + serverErrorsPerProjectPerHourBuilder_.dispose(); + serverErrorsPerProjectPerHourBuilder_ = null; + } + tokensPerProjectPerHour_ = null; + if (tokensPerProjectPerHourBuilder_ != null) { + tokensPerProjectPerHourBuilder_.dispose(); + tokensPerProjectPerHourBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota build() { + com.google.analytics.admin.v1alpha.AccessQuota result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota buildPartial() { + com.google.analytics.admin.v1alpha.AccessQuota result = + new com.google.analytics.admin.v1alpha.AccessQuota(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessQuota result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tokensPerDay_ = + tokensPerDayBuilder_ == null ? tokensPerDay_ : tokensPerDayBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tokensPerHour_ = + tokensPerHourBuilder_ == null ? tokensPerHour_ : tokensPerHourBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.concurrentRequests_ = + concurrentRequestsBuilder_ == null + ? concurrentRequests_ + : concurrentRequestsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serverErrorsPerProjectPerHour_ = + serverErrorsPerProjectPerHourBuilder_ == null + ? serverErrorsPerProjectPerHour_ + : serverErrorsPerProjectPerHourBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tokensPerProjectPerHour_ = + tokensPerProjectPerHourBuilder_ == null + ? tokensPerProjectPerHour_ + : tokensPerProjectPerHourBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessQuota) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuota) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuota other) { + if (other == com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance()) return this; + if (other.hasTokensPerDay()) { + mergeTokensPerDay(other.getTokensPerDay()); + } + if (other.hasTokensPerHour()) { + mergeTokensPerHour(other.getTokensPerHour()); + } + if (other.hasConcurrentRequests()) { + mergeConcurrentRequests(other.getConcurrentRequests()); + } + if (other.hasServerErrorsPerProjectPerHour()) { + mergeServerErrorsPerProjectPerHour(other.getServerErrorsPerProjectPerHour()); + } + if (other.hasTokensPerProjectPerHour()) { + mergeTokensPerProjectPerHour(other.getTokensPerProjectPerHour()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTokensPerDayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTokensPerHourFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getTokensPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + tokensPerDayBuilder_; + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + public boolean hasTokensPerDay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { + if (tokensPerDayBuilder_ == null) { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } else { + return tokensPerDayBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerDayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerDay_ = value; + } else { + tokensPerDayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerDayBuilder_ == null) { + tokensPerDay_ = builderForValue.build(); + } else { + tokensPerDayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder mergeTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerDayBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && tokensPerDay_ != null + && tokensPerDay_ + != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { + getTokensPerDayBuilder().mergeFrom(value); + } else { + tokensPerDay_ = value; + } + } else { + tokensPerDayBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder clearTokensPerDay() { + bitField0_ = (bitField0_ & ~0x00000001); + tokensPerDay_ = null; + if (tokensPerDayBuilder_ != null) { + tokensPerDayBuilder_.dispose(); + tokensPerDayBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerDayBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokensPerDayFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getTokensPerDayOrBuilder() { + if (tokensPerDayBuilder_ != null) { + return tokensPerDayBuilder_.getMessageOrBuilder(); + } else { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getTokensPerDayFieldBuilder() { + if (tokensPerDayBuilder_ == null) { + tokensPerDayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getTokensPerDay(), getParentForChildren(), isClean()); + tokensPerDay_ = null; + } + return tokensPerDayBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + tokensPerHourBuilder_; + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + public boolean hasTokensPerHour() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { + if (tokensPerHourBuilder_ == null) { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } else { + return tokensPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerHour_ = value; + } else { + tokensPerHourBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerHourBuilder_ == null) { + tokensPerHour_ = builderForValue.build(); + } else { + tokensPerHourBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder mergeTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerHourBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && tokensPerHour_ != null + && tokensPerHour_ + != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { + getTokensPerHourBuilder().mergeFrom(value); + } else { + tokensPerHour_ = value; + } + } else { + tokensPerHourBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder clearTokensPerHour() { + bitField0_ = (bitField0_ & ~0x00000002); + tokensPerHour_ = null; + if (tokensPerHourBuilder_ != null) { + tokensPerHourBuilder_.dispose(); + tokensPerHourBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerHourBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTokensPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getTokensPerHourOrBuilder() { + if (tokensPerHourBuilder_ != null) { + return tokensPerHourBuilder_.getMessageOrBuilder(); + } else { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getTokensPerHourFieldBuilder() { + if (tokensPerHourBuilder_ == null) { + tokensPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getTokensPerHour(), getParentForChildren(), isClean()); + tokensPerHour_ = null; + } + return tokensPerHourBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + concurrentRequestsBuilder_; + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + public boolean hasConcurrentRequests() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { + if (concurrentRequestsBuilder_ == null) { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } else { + return concurrentRequestsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (concurrentRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + concurrentRequests_ = value; + } else { + concurrentRequestsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (concurrentRequestsBuilder_ == null) { + concurrentRequests_ = builderForValue.build(); + } else { + concurrentRequestsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder mergeConcurrentRequests( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (concurrentRequestsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && concurrentRequests_ != null + && concurrentRequests_ + != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { + getConcurrentRequestsBuilder().mergeFrom(value); + } else { + concurrentRequests_ = value; + } + } else { + concurrentRequestsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder clearConcurrentRequests() { + bitField0_ = (bitField0_ & ~0x00000004); + concurrentRequests_ = null; + if (concurrentRequestsBuilder_ != null) { + concurrentRequestsBuilder_.dispose(); + concurrentRequestsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder + getConcurrentRequestsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConcurrentRequestsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getConcurrentRequestsOrBuilder() { + if (concurrentRequestsBuilder_ != null) { + return concurrentRequestsBuilder_.getMessageOrBuilder(); + } else { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getConcurrentRequestsFieldBuilder() { + if (concurrentRequestsBuilder_ == null) { + concurrentRequestsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getConcurrentRequests(), getParentForChildren(), isClean()); + concurrentRequests_ = null; + } + return concurrentRequestsBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + serverErrorsPerProjectPerHourBuilder_; + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + public boolean hasServerErrorsPerProjectPerHour() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } else { + return serverErrorsPerProjectPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serverErrorsPerProjectPerHour_ = value; + } else { + serverErrorsPerProjectPerHourBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHour_ = builderForValue.build(); + } else { + serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder mergeServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serverErrorsPerProjectPerHour_ != null + && serverErrorsPerProjectPerHour_ + != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { + getServerErrorsPerProjectPerHourBuilder().mergeFrom(value); + } else { + serverErrorsPerProjectPerHour_ = value; + } + } else { + serverErrorsPerProjectPerHourBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder clearServerErrorsPerProjectPerHour() { + bitField0_ = (bitField0_ & ~0x00000008); + serverErrorsPerProjectPerHour_ = null; + if (serverErrorsPerProjectPerHourBuilder_ != null) { + serverErrorsPerProjectPerHourBuilder_.dispose(); + serverErrorsPerProjectPerHourBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder + getServerErrorsPerProjectPerHourBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ != null) { + return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); + } else { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getServerErrorsPerProjectPerHourFieldBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); + serverErrorsPerProjectPerHour_ = null; + } + return serverErrorsPerProjectPerHourBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerProjectPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + tokensPerProjectPerHourBuilder_; + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + public boolean hasTokensPerProjectPerHour() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * + * @return The tokensPerProjectPerHour. + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerProjectPerHour() { + if (tokensPerProjectPerHourBuilder_ == null) { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } else { + return tokensPerProjectPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder setTokensPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerProjectPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerProjectPerHour_ = value; + } else { + tokensPerProjectPerHourBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder setTokensPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHour_ = builderForValue.build(); + } else { + tokensPerProjectPerHourBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder mergeTokensPerProjectPerHour( + com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { + if (tokensPerProjectPerHourBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && tokensPerProjectPerHour_ != null + && tokensPerProjectPerHour_ + != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { + getTokensPerProjectPerHourBuilder().mergeFrom(value); + } else { + tokensPerProjectPerHour_ = value; + } + } else { + tokensPerProjectPerHourBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder clearTokensPerProjectPerHour() { + bitField0_ = (bitField0_ & ~0x00000010); + tokensPerProjectPerHour_ = null; + if (tokensPerProjectPerHourBuilder_ != null) { + tokensPerProjectPerHourBuilder_.dispose(); + tokensPerProjectPerHourBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder + getTokensPerProjectPerHourBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTokensPerProjectPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder() { + if (tokensPerProjectPerHourBuilder_ != null) { + return tokensPerProjectPerHourBuilder_.getMessageOrBuilder(); + } else { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> + getTokensPerProjectPerHourFieldBuilder() { + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuotaStatus, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( + getTokensPerProjectPerHour(), getParentForChildren(), isClean()); + tokensPerProjectPerHour_ = null; + } + return tokensPerProjectPerHourBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessQuota) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuota) + private static final com.google.analytics.admin.v1alpha.AccessQuota DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuota(); + } + + public static com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessQuota parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java new file mode 100644 index 000000000000..778e4a17dd56 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java @@ -0,0 +1,226 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessQuotaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessQuota) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + boolean hasTokensPerDay(); + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay(); + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder(); + + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + boolean hasTokensPerHour(); + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour(); + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder(); + + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + boolean hasConcurrentRequests(); + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests(); + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder(); + + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + boolean hasServerErrorsPerProjectPerHour(); + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour(); + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder(); + + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + boolean hasTokensPerProjectPerHour(); + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return The tokensPerProjectPerHour. + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerProjectPerHour(); + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; + */ + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java new file mode 100644 index 000000000000..2fc3e09078e0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java @@ -0,0 +1,627 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Current state for a particular quota group.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuotaStatus} + */ +public final class AccessQuotaStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuotaStatus) + AccessQuotaStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessQuotaStatus.newBuilder() to construct. + private AccessQuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessQuotaStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessQuotaStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.class, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder.class); + } + + public static final int CONSUMED_FIELD_NUMBER = 1; + private int consumed_ = 0; + /** + * + * + *
+   * Quota consumed by this request.
+   * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + @java.lang.Override + public int getConsumed() { + return consumed_; + } + + public static final int REMAINING_FIELD_NUMBER = 2; + private int remaining_ = 0; + /** + * + * + *
+   * Quota remaining after this request.
+   * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + @java.lang.Override + public int getRemaining() { + return remaining_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumed_ != 0) { + output.writeInt32(1, consumed_); + } + if (remaining_ != 0) { + output.writeInt32(2, remaining_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (consumed_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, consumed_); + } + if (remaining_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, remaining_); + } + size += 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.admin.v1alpha.AccessQuotaStatus)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessQuotaStatus other = + (com.google.analytics.admin.v1alpha.AccessQuotaStatus) obj; + + if (getConsumed() != other.getConsumed()) return false; + if (getRemaining() != other.getRemaining()) return false; + if (!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) + CONSUMED_FIELD_NUMBER; + hash = (53 * hash) + getConsumed(); + hash = (37 * hash) + REMAINING_FIELD_NUMBER; + hash = (53 * hash) + getRemaining(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessQuotaStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Current state for a particular quota group.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuotaStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessQuotaStatus) + com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessQuotaStatus.class, + com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumed_ = 0; + remaining_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus build() { + com.google.analytics.admin.v1alpha.AccessQuotaStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus buildPartial() { + com.google.analytics.admin.v1alpha.AccessQuotaStatus result = + new com.google.analytics.admin.v1alpha.AccessQuotaStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessQuotaStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consumed_ = consumed_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.remaining_ = remaining_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessQuotaStatus) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuotaStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuotaStatus other) { + if (other == com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) + return this; + if (other.getConsumed() != 0) { + setConsumed(other.getConsumed()); + } + if (other.getRemaining() != 0) { + setRemaining(other.getRemaining()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + consumed_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + remaining_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int consumed_; + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + @java.lang.Override + public int getConsumed() { + return consumed_; + } + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @param value The consumed to set. + * @return This builder for chaining. + */ + public Builder setConsumed(int value) { + + consumed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumed() { + bitField0_ = (bitField0_ & ~0x00000001); + consumed_ = 0; + onChanged(); + return this; + } + + private int remaining_; + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + @java.lang.Override + public int getRemaining() { + return remaining_; + } + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @param value The remaining to set. + * @return This builder for chaining. + */ + public Builder setRemaining(int value) { + + remaining_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @return This builder for chaining. + */ + public Builder clearRemaining() { + bitField0_ = (bitField0_ & ~0x00000002); + remaining_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessQuotaStatus) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuotaStatus) + private static final com.google.analytics.admin.v1alpha.AccessQuotaStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuotaStatus(); + } + + public static com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessQuotaStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java new file mode 100644 index 000000000000..fbb37de45439 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessQuotaStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessQuotaStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Quota consumed by this request.
+   * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + int getConsumed(); + + /** + * + * + *
+   * Quota remaining after this request.
+   * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + int getRemaining(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java new file mode 100644 index 000000000000..b814b2809813 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java @@ -0,0 +1,396 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public final class AccessReportProto { + private AccessReportProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/analytics/admin/v1alpha/access_" + + "report.proto\022\036google.analytics.admin.v1a" + + "lpha\")\n\017AccessDimension\022\026\n\016dimension_nam" + + "e\030\001 \001(\t\"#\n\014AccessMetric\022\023\n\013metric_name\030\001" + + " \001(\t\"7\n\017AccessDateRange\022\022\n\nstart_date\030\001 " + + "\001(\t\022\020\n\010end_date\030\002 \001(\t\"\344\002\n\026AccessFilterEx" + + "pression\022O\n\tand_group\030\001 \001(\0132:.google.ana" + + "lytics.admin.v1alpha.AccessFilterExpress" + + "ionListH\000\022N\n\010or_group\030\002 \001(\0132:.google.ana" + + "lytics.admin.v1alpha.AccessFilterExpress" + + "ionListH\000\022P\n\016not_expression\030\003 \001(\01326.goog" + + "le.analytics.admin.v1alpha.AccessFilterE" + + "xpressionH\000\022E\n\raccess_filter\030\004 \001(\0132,.goo" + + "gle.analytics.admin.v1alpha.AccessFilter" + + "H\000B\020\n\016one_expression\"i\n\032AccessFilterExpr" + + "essionList\022K\n\013expressions\030\001 \003(\01326.google" + + ".analytics.admin.v1alpha.AccessFilterExp" + + "ression\"\351\002\n\014AccessFilter\022K\n\rstring_filte" + + "r\030\002 \001(\01322.google.analytics.admin.v1alpha" + + ".AccessStringFilterH\000\022L\n\016in_list_filter\030" + + "\003 \001(\01322.google.analytics.admin.v1alpha.A" + + "ccessInListFilterH\000\022M\n\016numeric_filter\030\004 " + + "\001(\01323.google.analytics.admin.v1alpha.Acc" + + "essNumericFilterH\000\022M\n\016between_filter\030\005 \001" + + "(\01323.google.analytics.admin.v1alpha.Acce" + + "ssBetweenFilterH\000\022\022\n\nfield_name\030\001 \001(\tB\014\n" + + "\none_filter\"\225\002\n\022AccessStringFilter\022P\n\nma" + + "tch_type\030\001 \001(\0162<.google.analytics.admin." + + "v1alpha.AccessStringFilter.MatchType\022\r\n\005" + + "value\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n\t" + + "MatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n" + + "\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003" + + "\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTI" + + "AL_REGEXP\020\006\"<\n\022AccessInListFilter\022\016\n\006val" + + "ues\030\001 \003(\t\022\026\n\016case_sensitive\030\002 \001(\010\"\254\002\n\023Ac" + + "cessNumericFilter\022P\n\toperation\030\001 \001(\0162=.g" + + "oogle.analytics.admin.v1alpha.AccessNume" + + "ricFilter.Operation\022;\n\005value\030\002 \001(\0132,.goo" + + "gle.analytics.admin.v1alpha.NumericValue" + + "\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPECIFIED\020" + + "\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN" + + "_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025GREATER" + + "_THAN_OR_EQUAL\020\005\"\227\001\n\023AccessBetweenFilter" + + "\022@\n\nfrom_value\030\001 \001(\0132,.google.analytics." + + "admin.v1alpha.NumericValue\022>\n\010to_value\030\002" + + " \001(\0132,.google.analytics.admin.v1alpha.Nu" + + "mericValue\"J\n\014NumericValue\022\025\n\013int64_valu" + + "e\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone" + + "_value\"\355\003\n\rAccessOrderBy\022M\n\006metric\030\001 \001(\013" + + "2;.google.analytics.admin.v1alpha.Access" + + "OrderBy.MetricOrderByH\000\022S\n\tdimension\030\002 \001" + + "(\0132>.google.analytics.admin.v1alpha.Acce" + + "ssOrderBy.DimensionOrderByH\000\022\014\n\004desc\030\003 \001" + + "(\010\032$\n\rMetricOrderBy\022\023\n\013metric_name\030\001 \001(\t" + + "\032\363\001\n\020DimensionOrderBy\022\026\n\016dimension_name\030" + + "\001 \001(\t\022\\\n\norder_type\030\002 \001(\0162H.google.analy" + + "tics.admin.v1alpha.AccessOrderBy.Dimensi" + + "onOrderBy.OrderType\"i\n\tOrderType\022\032\n\026ORDE" + + "R_TYPE_UNSPECIFIED\020\000\022\020\n\014ALPHANUMERIC\020\001\022!" + + "\n\035CASE_INSENSITIVE_ALPHANUMERIC\020\002\022\013\n\007NUM" + + "ERIC\020\003B\016\n\014one_order_by\"/\n\025AccessDimensio" + + "nHeader\022\026\n\016dimension_name\030\001 \001(\t\")\n\022Acces" + + "sMetricHeader\022\023\n\013metric_name\030\001 \001(\t\"\245\001\n\tA" + + "ccessRow\022N\n\020dimension_values\030\001 \003(\01324.goo" + + "gle.analytics.admin.v1alpha.AccessDimens" + + "ionValue\022H\n\rmetric_values\030\002 \003(\01321.google" + + ".analytics.admin.v1alpha.AccessMetricVal" + + "ue\"%\n\024AccessDimensionValue\022\r\n\005value\030\001 \001(" + + "\t\"\"\n\021AccessMetricValue\022\r\n\005value\030\001 \001(\t\"\253\003" + + "\n\013AccessQuota\022I\n\016tokens_per_day\030\001 \001(\01321." + + "google.analytics.admin.v1alpha.AccessQuo" + + "taStatus\022J\n\017tokens_per_hour\030\002 \001(\01321.goog" + + "le.analytics.admin.v1alpha.AccessQuotaSt" + + "atus\022N\n\023concurrent_requests\030\003 \001(\01321.goog" + + "le.analytics.admin.v1alpha.AccessQuotaSt" + + "atus\022]\n\"server_errors_per_project_per_ho" + + "ur\030\004 \001(\01321.google.analytics.admin.v1alph" + + "a.AccessQuotaStatus\022V\n\033tokens_per_projec" + + "t_per_hour\030\005 \001(\01321.google.analytics.admi" + + "n.v1alpha.AccessQuotaStatus\"8\n\021AccessQuo" + + "taStatus\022\020\n\010consumed\030\001 \001(\005\022\021\n\tremaining\030" + + "\002 \001(\005By\n\"com.google.analytics.admin.v1al" + + "phaB\021AccessReportProtoP\001Z>cloud.google.c" + + "om/go/analytics/admin/apiv1alpha/adminpb" + + ";adminpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor, + new java.lang.String[] { + "DimensionName", + }); + internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "AccessFilter", "OneExpression", + }); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor, + new java.lang.String[] { + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "FieldName", + "OneFilter", + }); + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor, + new java.lang.String[] { + "Values", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor, + new java.lang.String[] { + "Operation", "Value", + }); + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor, + new java.lang.String[] { + "FromValue", "ToValue", + }); + internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor, + new java.lang.String[] { + "Int64Value", "DoubleValue", "OneValue", + }); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor, + new java.lang.String[] { + "Metric", "Dimension", "Desc", "OneOrderBy", + }); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor = + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor = + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor, + new java.lang.String[] { + "DimensionName", "OrderType", + }); + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor, + new java.lang.String[] { + "DimensionName", + }); + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor, + new java.lang.String[] { + "DimensionValues", "MetricValues", + }); + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor, + new java.lang.String[] { + "TokensPerDay", + "TokensPerHour", + "ConcurrentRequests", + "ServerErrorsPerProjectPerHour", + "TokensPerProjectPerHour", + }); + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor, + new java.lang.String[] { + "Consumed", "Remaining", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java new file mode 100644 index 000000000000..f707b926bec0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java @@ -0,0 +1,1525 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Access report data for each row.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessRow} + */ +public final class AccessRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessRow) + AccessRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessRow.newBuilder() to construct. + private AccessRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessRow() { + dimensionValues_ = java.util.Collections.emptyList(); + metricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessRow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessRow.class, + com.google.analytics.admin.v1alpha.AccessRow.Builder.class); + } + + public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dimensionValues_; + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionValuesList() { + return dimensionValues_; + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionValuesOrBuilderList() { + return dimensionValues_; + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public int getDimensionValuesCount() { + return dimensionValues_.size(); + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index) { + return dimensionValues_.get(index); + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder + getDimensionValuesOrBuilder(int index) { + return dimensionValues_.get(index); + } + + public static final int METRIC_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List metricValues_; + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List + getMetricValuesList() { + return metricValues_; + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List + getMetricValuesOrBuilderList() { + return metricValues_; + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public int getMetricValuesCount() { + return metricValues_.size(); + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index) { + return metricValues_.get(index); + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( + int index) { + return metricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensionValues_.size(); i++) { + output.writeMessage(1, dimensionValues_.get(i)); + } + for (int i = 0; i < metricValues_.size(); i++) { + output.writeMessage(2, metricValues_.get(i)); + } + 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)); + } + for (int i = 0; i < metricValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricValues_.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.admin.v1alpha.AccessRow)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessRow other = + (com.google.analytics.admin.v1alpha.AccessRow) obj; + + if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; + if (!getMetricValuesList().equals(other.getMetricValuesList())) return false; + if (!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(); + } + if (getMetricValuesCount() > 0) { + hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessRow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Access report data for each row.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessRow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessRow) + com.google.analytics.admin.v1alpha.AccessRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessRow.class, + com.google.analytics.admin.v1alpha.AccessRow.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessRow.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + } else { + dimensionValues_ = null; + dimensionValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (metricValuesBuilder_ == null) { + metricValues_ = java.util.Collections.emptyList(); + } else { + metricValues_ = null; + metricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow build() { + com.google.analytics.admin.v1alpha.AccessRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow buildPartial() { + com.google.analytics.admin.v1alpha.AccessRow result = + new com.google.analytics.admin.v1alpha.AccessRow(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.AccessRow result) { + if (dimensionValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionValues_ = dimensionValues_; + } else { + result.dimensionValues_ = dimensionValuesBuilder_.build(); + } + if (metricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricValues_ = java.util.Collections.unmodifiableList(metricValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricValues_ = metricValues_; + } else { + result.metricValues_ = metricValuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessRow result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessRow) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessRow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessRow other) { + if (other == com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()) return this; + if (dimensionValuesBuilder_ == null) { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValues_.isEmpty()) { + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionValuesIsMutable(); + dimensionValues_.addAll(other.dimensionValues_); + } + onChanged(); + } + } else { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValuesBuilder_.isEmpty()) { + dimensionValuesBuilder_.dispose(); + dimensionValuesBuilder_ = null; + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionValuesFieldBuilder() + : null; + } else { + dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); + } + } + } + if (metricValuesBuilder_ == null) { + if (!other.metricValues_.isEmpty()) { + if (metricValues_.isEmpty()) { + metricValues_ = other.metricValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricValuesIsMutable(); + metricValues_.addAll(other.metricValues_); + } + onChanged(); + } + } else { + if (!other.metricValues_.isEmpty()) { + if (metricValuesBuilder_.isEmpty()) { + metricValuesBuilder_.dispose(); + metricValuesBuilder_ = null; + metricValues_ = other.metricValues_; + bitField0_ = (bitField0_ & ~0x00000002); + metricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricValuesFieldBuilder() + : null; + } else { + metricValuesBuilder_.addAllMessages(other.metricValues_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessDimensionValue m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDimensionValue.parser(), + extensionRegistry); + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(m); + } else { + dimensionValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.AccessMetricValue m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessMetricValue.parser(), + extensionRegistry); + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(m); + } else { + metricValuesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + dimensionValues_ = java.util.Collections.emptyList(); + + private void ensureDimensionValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = + new java.util.ArrayList( + dimensionValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionValue, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> + dimensionValuesBuilder_; + + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List + getDimensionValuesList() { + if (dimensionValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionValues_); + } else { + return dimensionValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public int getDimensionValuesCount() { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.size(); + } else { + return dimensionValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder setDimensionValues( + int index, com.google.analytics.admin.v1alpha.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder setDimensionValues( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + com.google.analytics.admin.v1alpha.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + int index, com.google.analytics.admin.v1alpha.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addAllDimensionValues( + java.lang.Iterable + values) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_); + onChanged(); + } else { + dimensionValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder clearDimensionValues() { + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public Builder removeDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.remove(index); + onChanged(); + } else { + dimensionValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder + getDimensionValuesBuilder(int index) { + return getDimensionValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder + getDimensionValuesOrBuilder(int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> + getDimensionValuesOrBuilderList() { + if (dimensionValuesBuilder_ != null) { + return dimensionValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionValues_); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder + addDimensionValuesBuilder() { + return getDimensionValuesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder + addDimensionValuesBuilder(int index) { + return getDimensionValuesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List + getDimensionValuesBuilderList() { + return getDimensionValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionValue, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> + getDimensionValuesFieldBuilder() { + if (dimensionValuesBuilder_ == null) { + dimensionValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionValue, + com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder>( + dimensionValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionValues_ = null; + } + return dimensionValuesBuilder_; + } + + private java.util.List metricValues_ = + java.util.Collections.emptyList(); + + private void ensureMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricValues_ = + new java.util.ArrayList( + metricValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricValue, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder> + metricValuesBuilder_; + + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesList() { + if (metricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricValues_); + } else { + return metricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public int getMetricValuesCount() { + if (metricValuesBuilder_ == null) { + return metricValues_.size(); + } else { + return metricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index) { + if (metricValuesBuilder_ == null) { + return metricValues_.get(index); + } else { + return metricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder setMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.set(index, value); + onChanged(); + } else { + metricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder setMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues(com.google.analytics.admin.v1alpha.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.add(value); + onChanged(); + } else { + metricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.add(index, value); + onChanged(); + } else { + metricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + int index, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder addAllMetricValues( + java.lang.Iterable values) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricValues_); + onChanged(); + } else { + metricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder clearMetricValues() { + if (metricValuesBuilder_ == null) { + metricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public Builder removeMetricValues(int index) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.remove(index); + onChanged(); + } else { + metricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder getMetricValuesBuilder( + int index) { + return getMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( + int index) { + if (metricValuesBuilder_ == null) { + return metricValues_.get(index); + } else { + return metricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesOrBuilderList() { + if (metricValuesBuilder_ != null) { + return metricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricValues_); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder addMetricValuesBuilder() { + return getMetricValuesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder addMetricValuesBuilder( + int index) { + return getMetricValuesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesBuilderList() { + return getMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricValue, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder> + getMetricValuesFieldBuilder() { + if (metricValuesBuilder_ == null) { + metricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricValue, + com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder>( + metricValues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metricValues_ = null; + } + return metricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessRow) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessRow) + private static final com.google.analytics.admin.v1alpha.AccessRow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessRow(); + } + + public static com.google.analytics.admin.v1alpha.AccessRow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java new file mode 100644 index 000000000000..667500457ac8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java @@ -0,0 +1,145 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessRowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessRow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + java.util.List getDimensionValuesList(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + int getDimensionValuesCount(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + java.util.List + getDimensionValuesOrBuilderList(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( + int index); + + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + java.util.List getMetricValuesList(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + int getMetricValuesCount(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + java.util.List + getMetricValuesOrBuilderList(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java new file mode 100644 index 000000000000..896ad7071965 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java @@ -0,0 +1,1122 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The filter for strings.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessStringFilter} + */ +public final class AccessStringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessStringFilter) + AccessStringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessStringFilter.newBuilder() to construct. + private AccessStringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessStringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessStringFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessStringFilter.class, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder.class); + } + + /** + * + * + *
+   * The match type of a string filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AccessStringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Exact match of the string value.
+     * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+     * Begins with the string value.
+     * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+     * Ends with the string value.
+     * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+     * Contains the string value.
+     * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+     * Full match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+     * Partial match for the regular expression with the string value.
+     * 
+ * + * PARTIAL_REGEXP = 6; + */ + PARTIAL_REGEXP(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exact match of the string value.
+     * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+     * Begins with the string value.
+     * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+     * Ends with the string value.
+     * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+     * Contains the string value.
+     * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+     * Full match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+     * Partial match for the regular expression with the string value.
+     * 
+ * + * PARTIAL_REGEXP = 6; + */ + public static final int PARTIAL_REGEXP_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + case 6: + return PARTIAL_REGEXP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessStringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_ = 0; + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_ = false; + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchType_ + != com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + size += 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.admin.v1alpha.AccessStringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccessStringFilter other = + (com.google.analytics.admin.v1alpha.AccessStringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) return false; + if (!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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AccessStringFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The filter for strings.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccessStringFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessStringFilter) + com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccessStringFilter.class, + com.google.analytics.admin.v1alpha.AccessStringFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccessStringFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchType_ = 0; + value_ = ""; + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter build() { + com.google.analytics.admin.v1alpha.AccessStringFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter buildPartial() { + com.google.analytics.admin.v1alpha.AccessStringFilter result = + new com.google.analytics.admin.v1alpha.AccessStringFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccessStringFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccessStringFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccessStringFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessStringFilter other) { + if (other == com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) + return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchType_ = 0; + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000001); + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000004); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessStringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessStringFilter) + private static final com.google.analytics.admin.v1alpha.AccessStringFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessStringFilter(); + } + + public static com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessStringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java new file mode 100644 index 000000000000..6833eed44b7c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccessStringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessStringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType(); + + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java new file mode 100644 index 000000000000..fb2cbcaa74a7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java @@ -0,0 +1,1660 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a Google Analytics account.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Account} + */ +public final class Account extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.Account) + AccountOrBuilder { + private static final long serialVersionUID = 0L; + // Use Account.newBuilder() to construct. + private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Account() { + name_ = ""; + displayName_ = ""; + regionCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Account(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Account_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Account.class, + com.google.analytics.admin.v1alpha.Account.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + 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(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETED_FIELD_NUMBER = 6; + private boolean deleted_ = false; + /** + * + * + *
+   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+   * accounts are excluded from List results unless specifically requested.
+   * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + 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 (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionCode_); + } + if (deleted_ != false) { + output.writeBool(6, deleted_); + } + 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 (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionCode_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, deleted_); + } + 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.admin.v1alpha.Account)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.Account other = + (com.google.analytics.admin.v1alpha.Account) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (getDeleted() != other.getDeleted()) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Account parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Account parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Account parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.Account prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a Google Analytics account.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Account} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.Account) + com.google.analytics.admin.v1alpha.AccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Account_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Account.class, + com.google.analytics.admin.v1alpha.Account.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.Account.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + displayName_ = ""; + regionCode_ = ""; + deleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Account_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account build() { + com.google.analytics.admin.v1alpha.Account result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account buildPartial() { + com.google.analytics.admin.v1alpha.Account result = + new com.google.analytics.admin.v1alpha.Account(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.Account result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deleted_ = deleted_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.Account) { + return mergeFrom((com.google.analytics.admin.v1alpha.Account) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.Account other) { + if (other == com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + deleted_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.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. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean deleted_; + /** + * + * + *
+     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+     * accounts are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + /** + * + * + *
+     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+     * accounts are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deleted to set. + * @return This builder for chaining. + */ + public Builder setDeleted(boolean value) { + + deleted_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+     * accounts are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeleted() { + bitField0_ = (bitField0_ & ~0x00000020); + deleted_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.Account) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.Account) + private static final com.google.analytics.admin.v1alpha.Account DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.Account(); + } + + public static com.google.analytics.admin.v1alpha.Account getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Account parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java new file mode 100644 index 000000000000..99d18d484803 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.Account) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+   * accounts are excluded from List results unless specifically requested.
+   * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + boolean getDeleted(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java new file mode 100644 index 000000000000..f303b107c94b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java @@ -0,0 +1,1529 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A virtual resource representing an overview of an account and
+ * all its child GA4 properties.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccountSummary} + */ +public final class AccountSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccountSummary) + AccountSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccountSummary.newBuilder() to construct. + private AccountSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccountSummary() { + name_ = ""; + account_ = ""; + displayName_ = ""; + propertySummaries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccountSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccountSummary.class, + com.google.analytics.admin.v1alpha.AccountSummary.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @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 ACCOUNT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object account_ = ""; + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_SUMMARIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List propertySummaries_; + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public java.util.List + getPropertySummariesList() { + return propertySummaries_; + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public java.util.List + getPropertySummariesOrBuilderList() { + return propertySummaries_; + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public int getPropertySummariesCount() { + return propertySummaries_.size(); + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertySummary getPropertySummaries(int index) { + return propertySummaries_.get(index); + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder getPropertySummariesOrBuilder( + int index) { + return propertySummaries_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + for (int i = 0; i < propertySummaries_.size(); i++) { + output.writeMessage(4, propertySummaries_.get(i)); + } + 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(account_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + for (int i = 0; i < propertySummaries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, propertySummaries_.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.admin.v1alpha.AccountSummary)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AccountSummary other = + (com.google.analytics.admin.v1alpha.AccountSummary) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAccount().equals(other.getAccount())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getPropertySummariesList().equals(other.getPropertySummariesList())) 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) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getPropertySummariesCount() > 0) { + hash = (37 * hash) + PROPERTY_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertySummariesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccountSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A virtual resource representing an overview of an account and
+   * all its child GA4 properties.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AccountSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccountSummary) + com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AccountSummary.class, + com.google.analytics.admin.v1alpha.AccountSummary.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AccountSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + account_ = ""; + displayName_ = ""; + if (propertySummariesBuilder_ == null) { + propertySummaries_ = java.util.Collections.emptyList(); + } else { + propertySummaries_ = null; + propertySummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountSummary getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountSummary build() { + com.google.analytics.admin.v1alpha.AccountSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountSummary buildPartial() { + com.google.analytics.admin.v1alpha.AccountSummary result = + new com.google.analytics.admin.v1alpha.AccountSummary(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.AccountSummary result) { + if (propertySummariesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + propertySummaries_ = java.util.Collections.unmodifiableList(propertySummaries_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.propertySummaries_ = propertySummaries_; + } else { + result.propertySummaries_ = propertySummariesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AccountSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.account_ = account_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AccountSummary) { + return mergeFrom((com.google.analytics.admin.v1alpha.AccountSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccountSummary other) { + if (other == com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (propertySummariesBuilder_ == null) { + if (!other.propertySummaries_.isEmpty()) { + if (propertySummaries_.isEmpty()) { + propertySummaries_ = other.propertySummaries_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePropertySummariesIsMutable(); + propertySummaries_.addAll(other.propertySummaries_); + } + onChanged(); + } + } else { + if (!other.propertySummaries_.isEmpty()) { + if (propertySummariesBuilder_.isEmpty()) { + propertySummariesBuilder_.dispose(); + propertySummariesBuilder_ = null; + propertySummaries_ = other.propertySummaries_; + bitField0_ = (bitField0_ & ~0x00000008); + propertySummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertySummariesFieldBuilder() + : null; + } else { + propertySummariesBuilder_.addAllMessages(other.propertySummaries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + account_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.analytics.admin.v1alpha.PropertySummary m = + input.readMessage( + com.google.analytics.admin.v1alpha.PropertySummary.parser(), + extensionRegistry); + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.add(m); + } else { + propertySummariesBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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; + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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 account_ = ""; + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + account_ = getDefaultInstance().getAccount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + account_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List propertySummaries_ = + java.util.Collections.emptyList(); + + private void ensurePropertySummariesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + propertySummaries_ = + new java.util.ArrayList( + propertySummaries_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.PropertySummary, + com.google.analytics.admin.v1alpha.PropertySummary.Builder, + com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder> + propertySummariesBuilder_; + + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public java.util.List + getPropertySummariesList() { + if (propertySummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(propertySummaries_); + } else { + return propertySummariesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public int getPropertySummariesCount() { + if (propertySummariesBuilder_ == null) { + return propertySummaries_.size(); + } else { + return propertySummariesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1alpha.PropertySummary getPropertySummaries(int index) { + if (propertySummariesBuilder_ == null) { + return propertySummaries_.get(index); + } else { + return propertySummariesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder setPropertySummaries( + int index, com.google.analytics.admin.v1alpha.PropertySummary value) { + if (propertySummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertySummariesIsMutable(); + propertySummaries_.set(index, value); + onChanged(); + } else { + propertySummariesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder setPropertySummaries( + int index, com.google.analytics.admin.v1alpha.PropertySummary.Builder builderForValue) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + propertySummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries(com.google.analytics.admin.v1alpha.PropertySummary value) { + if (propertySummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertySummariesIsMutable(); + propertySummaries_.add(value); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries( + int index, com.google.analytics.admin.v1alpha.PropertySummary value) { + if (propertySummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertySummariesIsMutable(); + propertySummaries_.add(index, value); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries( + com.google.analytics.admin.v1alpha.PropertySummary.Builder builderForValue) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.add(builderForValue.build()); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries( + int index, com.google.analytics.admin.v1alpha.PropertySummary.Builder builderForValue) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder addAllPropertySummaries( + java.lang.Iterable values) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertySummaries_); + onChanged(); + } else { + propertySummariesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder clearPropertySummaries() { + if (propertySummariesBuilder_ == null) { + propertySummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + propertySummariesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public Builder removePropertySummaries(int index) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.remove(index); + onChanged(); + } else { + propertySummariesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1alpha.PropertySummary.Builder getPropertySummariesBuilder( + int index) { + return getPropertySummariesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder + getPropertySummariesOrBuilder(int index) { + if (propertySummariesBuilder_ == null) { + return propertySummaries_.get(index); + } else { + return propertySummariesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public java.util.List + getPropertySummariesOrBuilderList() { + if (propertySummariesBuilder_ != null) { + return propertySummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(propertySummaries_); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1alpha.PropertySummary.Builder + addPropertySummariesBuilder() { + return getPropertySummariesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance()); + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1alpha.PropertySummary.Builder addPropertySummariesBuilder( + int index) { + return getPropertySummariesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance()); + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + public java.util.List + getPropertySummariesBuilderList() { + return getPropertySummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.PropertySummary, + com.google.analytics.admin.v1alpha.PropertySummary.Builder, + com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder> + getPropertySummariesFieldBuilder() { + if (propertySummariesBuilder_ == null) { + propertySummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.PropertySummary, + com.google.analytics.admin.v1alpha.PropertySummary.Builder, + com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder>( + propertySummaries_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + propertySummaries_ = null; + } + return propertySummariesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccountSummary) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccountSummary) + private static final com.google.analytics.admin.v1alpha.AccountSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccountSummary(); + } + + public static com.google.analytics.admin.v1alpha.AccountSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java new file mode 100644 index 000000000000..c43a56d07c07 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java @@ -0,0 +1,161 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface AccountSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccountSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); + + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + java.util.List getPropertySummariesList(); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + com.google.analytics.admin.v1alpha.PropertySummary getPropertySummaries(int index); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + int getPropertySummariesCount(); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + java.util.List + getPropertySummariesOrBuilderList(); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; + */ + com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder getPropertySummariesOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java new file mode 100644 index 000000000000..fb5e08ab2380 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java @@ -0,0 +1,887 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for AcknowledgeUserDataCollection RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} + */ +public final class AcknowledgeUserDataCollectionRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + AcknowledgeUserDataCollectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcknowledgeUserDataCollectionRequest.newBuilder() to construct. + private AcknowledgeUserDataCollectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcknowledgeUserDataCollectionRequest() { + property_ = ""; + acknowledgement_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcknowledgeUserDataCollectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object acknowledgement_ = ""; + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + @java.lang.Override + public java.lang.String getAcknowledgement() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acknowledgement_ = s; + return s; + } + } + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAcknowledgementBytes() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acknowledgement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgement_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acknowledgement_); + } + size += 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.admin.v1alpha.AcknowledgeUserDataCollectionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest other = + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getAcknowledgement().equals(other.getAcknowledgement())) return false; + if (!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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getAcknowledgement().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for AcknowledgeUserDataCollection RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + acknowledgement_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest build() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest buildPartial() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acknowledgement_ = acknowledgement_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + .getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAcknowledgement().isEmpty()) { + acknowledgement_ = other.acknowledgement_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + acknowledgement_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object acknowledgement_ = ""; + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + public java.lang.String getAcknowledgement() { + java.lang.Object ref = acknowledgement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acknowledgement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + public com.google.protobuf.ByteString getAcknowledgementBytes() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acknowledgement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The acknowledgement to set. + * @return This builder for chaining. + */ + public Builder setAcknowledgement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + acknowledgement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAcknowledgement() { + acknowledgement_ = getDefaultInstance().getAcknowledgement(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for acknowledgement to set. + * @return This builder for chaining. + */ + public Builder setAcknowledgementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acknowledgement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + private static final com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeUserDataCollectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java new file mode 100644 index 000000000000..13c376fe20bd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface AcknowledgeUserDataCollectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + java.lang.String getAcknowledgement(); + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + com.google.protobuf.ByteString getAcknowledgementBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java new file mode 100644 index 000000000000..f9c2d117fd2e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java @@ -0,0 +1,449 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for AcknowledgeUserDataCollection RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} + */ +public final class AcknowledgeUserDataCollectionResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + AcknowledgeUserDataCollectionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcknowledgeUserDataCollectionResponse.newBuilder() to construct. + private AcknowledgeUserDataCollectionResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcknowledgeUserDataCollectionResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcknowledgeUserDataCollectionResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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.admin.v1alpha.AcknowledgeUserDataCollectionResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse other = + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) 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.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for AcknowledgeUserDataCollection RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse build() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse buildPartial() { + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse result = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse other) { + if (other + == com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + private static final com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); + } + + public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeUserDataCollectionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java new file mode 100644 index 000000000000..1edc23223ddb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface AcknowledgeUserDataCollectionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java new file mode 100644 index 000000000000..ae1ad82aa35d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java @@ -0,0 +1,198 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Types of actions that may change a resource.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActionType} + */ +public enum ActionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + ACTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + UPDATED(2), + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + DELETED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + public static final int UPDATED_VALUE = 2; + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + public static final int DELETED_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 ActionType 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 ActionType forNumber(int value) { + switch (value) { + case 0: + return ACTION_TYPE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return UPDATED; + case 3: + return DELETED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ActionType findValueByNumber(int number) { + return ActionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(3); + } + + private static final ActionType[] VALUES = values(); + + public static ActionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ActionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActionType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java new file mode 100644 index 000000000000..47e9936675b0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java @@ -0,0 +1,199 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Different kinds of actors that can make changes to Google Analytics
+ * resources.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActorType} + */ +public enum ActorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + ACTOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + USER(1), + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + SUPPORT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTOR_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + public static final int SUPPORT_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 ActorType 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 ActorType forNumber(int value) { + switch (value) { + case 0: + return ACTOR_TYPE_UNSPECIFIED; + case 1: + return USER; + case 2: + return SYSTEM; + case 3: + return SUPPORT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ActorType findValueByNumber(int number) { + return ActorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(2); + } + + private static final ActorType[] VALUES = values(); + + public static ActorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ActorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActorType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLink.java new file mode 100644 index 000000000000..9413d5838aa9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLink.java @@ -0,0 +1,826 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link between a GA4 Property and an AdSense for Content ad client.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AdSenseLink} + */ +public final class AdSenseLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AdSenseLink) + AdSenseLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdSenseLink.newBuilder() to construct. + private AdSenseLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AdSenseLink() { + name_ = ""; + adClientCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdSenseLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AdSenseLink.class, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name for this AdSense Link resource.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/6789
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this AdSense Link resource.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/6789
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AD_CLIENT_CODE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object adClientCode_ = ""; + /** + * + * + *
+   * Immutable. The AdSense ad client code that the GA4 property is linked to.
+   * Example format: "ca-pub-1234567890"
+   * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The adClientCode. + */ + @java.lang.Override + public java.lang.String getAdClientCode() { + java.lang.Object ref = adClientCode_; + 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(); + adClientCode_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The AdSense ad client code that the GA4 property is linked to.
+   * Example format: "ca-pub-1234567890"
+   * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for adClientCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdClientCodeBytes() { + java.lang.Object ref = adClientCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adClientCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adClientCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, adClientCode_); + } + 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(adClientCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, adClientCode_); + } + 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.admin.v1alpha.AdSenseLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AdSenseLink other = + (com.google.analytics.admin.v1alpha.AdSenseLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAdClientCode().equals(other.getAdClientCode())) 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) + AD_CLIENT_CODE_FIELD_NUMBER; + hash = (53 * hash) + getAdClientCode().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.AdSenseLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 Property and an AdSense for Content ad client.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AdSenseLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AdSenseLink) + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AdSenseLink.class, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AdSenseLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + adClientCode_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink build() { + com.google.analytics.admin.v1alpha.AdSenseLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink buildPartial() { + com.google.analytics.admin.v1alpha.AdSenseLink result = + new com.google.analytics.admin.v1alpha.AdSenseLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AdSenseLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adClientCode_ = adClientCode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AdSenseLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.AdSenseLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AdSenseLink other) { + if (other == com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAdClientCode().isEmpty()) { + adClientCode_ = other.adClientCode_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + adClientCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this AdSense Link resource.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/6789
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this AdSense Link resource.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/6789
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this AdSense Link resource.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/6789
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this AdSense Link resource.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/6789
+     * 
+ * + * string name = 1 [(.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. The resource name for this AdSense Link resource.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/6789
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object adClientCode_ = ""; + /** + * + * + *
+     * Immutable. The AdSense ad client code that the GA4 property is linked to.
+     * Example format: "ca-pub-1234567890"
+     * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The adClientCode. + */ + public java.lang.String getAdClientCode() { + java.lang.Object ref = adClientCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + adClientCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The AdSense ad client code that the GA4 property is linked to.
+     * Example format: "ca-pub-1234567890"
+     * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for adClientCode. + */ + public com.google.protobuf.ByteString getAdClientCodeBytes() { + java.lang.Object ref = adClientCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + adClientCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The AdSense ad client code that the GA4 property is linked to.
+     * Example format: "ca-pub-1234567890"
+     * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The adClientCode to set. + * @return This builder for chaining. + */ + public Builder setAdClientCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + adClientCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The AdSense ad client code that the GA4 property is linked to.
+     * Example format: "ca-pub-1234567890"
+     * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAdClientCode() { + adClientCode_ = getDefaultInstance().getAdClientCode(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The AdSense ad client code that the GA4 property is linked to.
+     * Example format: "ca-pub-1234567890"
+     * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for adClientCode to set. + * @return This builder for chaining. + */ + public Builder setAdClientCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + adClientCode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AdSenseLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AdSenseLink) + private static final com.google.analytics.admin.v1alpha.AdSenseLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AdSenseLink(); + } + + public static com.google.analytics.admin.v1alpha.AdSenseLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AdSenseLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkOrBuilder.java new file mode 100644 index 000000000000..a21031bd349b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkOrBuilder.java @@ -0,0 +1,81 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface AdSenseLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AdSenseLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name for this AdSense Link resource.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/6789
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name for this AdSense Link resource.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/6789
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The AdSense ad client code that the GA4 property is linked to.
+   * Example format: "ca-pub-1234567890"
+   * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The adClientCode. + */ + java.lang.String getAdClientCode(); + /** + * + * + *
+   * Immutable. The AdSense ad client code that the GA4 property is linked to.
+   * Example format: "ca-pub-1234567890"
+   * 
+ * + * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for adClientCode. + */ + com.google.protobuf.ByteString getAdClientCodeBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java new file mode 100644 index 000000000000..134aee0742d9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -0,0 +1,3500 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public final class AnalyticsAdminProto { + private AnalyticsAdminProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n4google/analytics/admin/v1alpha/analyti" + + "cs_admin.proto\022\036google.analytics.admin.v" + + "1alpha\0322google/analytics/admin/v1alpha/a" + + "ccess_report.proto\032-google/analytics/adm" + + "in/v1alpha/audience.proto\0322google/analyt" + + "ics/admin/v1alpha/channel_group.proto\032:g" + + "oogle/analytics/admin/v1alpha/event_crea" + + "te_and_edit.proto\0326google/analytics/admi" + + "n/v1alpha/expanded_data_set.proto\032.googl" + + "e/analytics/admin/v1alpha/resources.prot" + + "o\032=google/analytics/admin/v1alpha/subpro" + + "perty_event_filter.proto\032\034google/api/ann" + + "otations.proto\032\027google/api/client.proto\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\033google/protobuf/emp" + + "ty.proto\032 google/protobuf/field_mask.pro" + + "to\032\037google/protobuf/timestamp.proto\"\342\004\n\026" + + "RunAccessReportRequest\022\016\n\006entity\030\001 \001(\t\022C" + + "\n\ndimensions\030\002 \003(\0132/.google.analytics.ad" + + "min.v1alpha.AccessDimension\022=\n\007metrics\030\003" + + " \003(\0132,.google.analytics.admin.v1alpha.Ac" + + "cessMetric\022D\n\013date_ranges\030\004 \003(\0132/.google" + + ".analytics.admin.v1alpha.AccessDateRange" + + "\022P\n\020dimension_filter\030\005 \001(\01326.google.anal" + + "ytics.admin.v1alpha.AccessFilterExpressi" + + "on\022M\n\rmetric_filter\030\006 \001(\01326.google.analy" + + "tics.admin.v1alpha.AccessFilterExpressio" + + "n\022\016\n\006offset\030\007 \001(\003\022\r\n\005limit\030\010 \001(\003\022\021\n\ttime" + + "_zone\030\t \001(\t\022@\n\torder_bys\030\n \003(\0132-.google." + + "analytics.admin.v1alpha.AccessOrderBy\022\033\n" + + "\023return_entity_quota\030\013 \001(\010\022\037\n\021include_al" + + "l_users\030\014 \001(\010B\004\342A\001\001\022\033\n\rexpand_groups\030\r \001" + + "(\010B\004\342A\001\001\"\277\002\n\027RunAccessReportResponse\022P\n\021" + + "dimension_headers\030\001 \003(\01325.google.analyti" + + "cs.admin.v1alpha.AccessDimensionHeader\022J" + + "\n\016metric_headers\030\002 \003(\01322.google.analytic" + + "s.admin.v1alpha.AccessMetricHeader\0227\n\004ro" + + "ws\030\003 \003(\0132).google.analytics.admin.v1alph" + + "a.AccessRow\022\021\n\trow_count\030\004 \001(\005\022:\n\005quota\030" + + "\005 \001(\0132+.google.analytics.admin.v1alpha.A" + + "ccessQuota\"Q\n\021GetAccountRequest\022<\n\004name\030" + + "\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.googleapi" + + "s.com/Account\"R\n\023ListAccountsRequest\022\021\n\t" + + "page_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\024\n\014s" + + "how_deleted\030\003 \001(\010\"j\n\024ListAccountsRespons" + + "e\0229\n\010accounts\030\001 \003(\0132\'.google.analytics.a" + + "dmin.v1alpha.Account\022\027\n\017next_page_token\030" + + "\002 \001(\t\"T\n\024DeleteAccountRequest\022<\n\004name\030\001 " + + "\001(\tB.\342A\001\002\372A\'\n%analyticsadmin.googleapis." + + "com/Account\"\215\001\n\024UpdateAccountRequest\022>\n\007" + + "account\030\001 \001(\0132\'.google.analytics.admin.v" + + "1alpha.AccountB\004\342A\001\002\0225\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"o\n\035P" + + "rovisionAccountTicketRequest\0228\n\007account\030" + + "\001 \001(\0132\'.google.analytics.admin.v1alpha.A" + + "ccount\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Provisio" + + "nAccountTicketResponse\022\031\n\021account_ticket" + + "_id\030\001 \001(\t\"S\n\022GetPropertyRequest\022=\n\004name\030" + + "\001 \001(\tB/\342A\001\002\372A(\n&analyticsadmin.googleapi" + + "s.com/Property\"j\n\025ListPropertiesRequest\022" + + "\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" + + "\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001" + + "(\010\"o\n\026ListPropertiesResponse\022<\n\nproperti" + + "es\030\001 \003(\0132(.google.analytics.admin.v1alph" + + "a.Property\022\027\n\017next_page_token\030\002 \001(\t\"\220\001\n\025" + + "UpdatePropertyRequest\022@\n\010property\030\001 \001(\0132" + + "(.google.analytics.admin.v1alpha.Propert" + + "yB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\002\"Y\n\025CreateProperty" + + "Request\022@\n\010property\030\001 \001(\0132(.google.analy" + + "tics.admin.v1alpha.PropertyB\004\342A\001\002\"V\n\025Del" + + "etePropertyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A" + + "(\n&analyticsadmin.googleapis.com/Propert" + + "y\"\253\001\n\031CreateFirebaseLinkRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googlea" + + "pis.com/FirebaseLink\022I\n\rfirebase_link\030\002 " + + "\001(\0132,.google.analytics.admin.v1alpha.Fir" + + "ebaseLinkB\004\342A\001\002\"^\n\031DeleteFirebaseLinkReq" + + "uest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsad" + + "min.googleapis.com/FirebaseLink\"\206\001\n\030List" + + "FirebaseLinksRequest\022C\n\006parent\030\001 \001(\tB3\342A" + + "\001\002\372A,\022*analyticsadmin.googleapis.com/Fir" + + "ebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + + "en\030\003 \001(\t\"z\n\031ListFirebaseLinksResponse\022D\n" + + "\016firebase_links\030\001 \003(\0132,.google.analytics" + + ".admin.v1alpha.FirebaseLink\022\027\n\017next_page" + + "_token\030\002 \001(\t\"]\n\027GetGlobalSiteTagRequest\022" + + "B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.g" + + "oogleapis.com/GlobalSiteTag\"\260\001\n\032CreateGo" + + "ogleAdsLinkRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" + + "\372A-\022+analyticsadmin.googleapis.com/Googl" + + "eAdsLink\022L\n\017google_ads_link\030\002 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink" + + "B\004\342A\001\002\"\233\001\n\032UpdateGoogleAdsLinkRequest\022F\n" + + "\017google_ads_link\030\001 \001(\0132-.google.analytic" + + "s.admin.v1alpha.GoogleAdsLink\0225\n\013update_" + + "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004" + + "\342A\001\002\"`\n\032DeleteGoogleAdsLinkRequest\022B\n\004na" + + "me\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.google" + + "apis.com/GoogleAdsLink\"\210\001\n\031ListGoogleAds" + + "LinksRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+a" + + "nalyticsadmin.googleapis.com/GoogleAdsLi" + + "nk\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020googl" + + "e_ads_links\030\001 \003(\0132-.google.analytics.adm" + + "in.v1alpha.GoogleAdsLink\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"i\n\035GetDataSharingSettingsReque" + + "st\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1analyticsadmi" + + "n.googleapis.com/DataSharingSettings\"D\n\033" + + "ListAccountSummariesRequest\022\021\n\tpage_size" + + "\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccou" + + "ntSummariesResponse\022I\n\021account_summaries" + + "\030\001 \003(\0132..google.analytics.admin.v1alpha." + + "AccountSummary\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\210\001\n$AcknowledgeUserDataCollectionRequest" + + "\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(\n&analyticsad" + + "min.googleapis.com/Property\022\035\n\017acknowled" + + "gement\030\002 \001(\tB\004\342A\001\002\"\'\n%AcknowledgeUserDat" + + "aCollectionResponse\"\214\004\n SearchChangeHist" + + "oryEventsRequest\022?\n\007account\030\001 \001(\tB.\342A\001\002\372" + + "A\'\n%analyticsadmin.googleapis.com/Accoun" + + "t\022A\n\010property\030\002 \001(\tB/\342A\001\001\372A(\n&analyticsa" + + "dmin.googleapis.com/Property\022V\n\rresource" + + "_type\030\003 \003(\01629.google.analytics.admin.v1a" + + "lpha.ChangeHistoryResourceTypeB\004\342A\001\001\022@\n\006" + + "action\030\004 \003(\0162*.google.analytics.admin.v1" + + "alpha.ActionTypeB\004\342A\001\001\022\031\n\013actor_email\030\005 " + + "\003(\tB\004\342A\001\001\022>\n\024earliest_change_time\030\006 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\001\022<\n\022lat" + + "est_change_time\030\007 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\001\022\027\n\tpage_size\030\010 \001(\005B\004\342A\001\001" + + "\022\030\n\npage_token\030\t \001(\tB\004\342A\001\001\"\217\001\n!SearchCha" + + "ngeHistoryEventsResponse\022Q\n\025change_histo" + + "ry_events\030\001 \003(\01322.google.analytics.admin" + + ".v1alpha.ChangeHistoryEvent\022\027\n\017next_page" + + "_token\030\002 \001(\t\"u\n#GetMeasurementProtocolSe" + + "cretRequest\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7anal" + + "yticsadmin.googleapis.com/MeasurementPro" + + "tocolSecret\"\340\001\n&CreateMeasurementProtoco" + + "lSecretRequest\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A9\022" + + "7analyticsadmin.googleapis.com/Measureme" + + "ntProtocolSecret\022d\n\033measurement_protocol" + + "_secret\030\002 \001(\01329.google.analytics.admin.v" + + "1alpha.MeasurementProtocolSecretB\004\342A\001\002\"x" + + "\n&DeleteMeasurementProtocolSecretRequest" + + "\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7analyticsadmin." + + "googleapis.com/MeasurementProtocolSecret" + + "\"\305\001\n&UpdateMeasurementProtocolSecretRequ" + + "est\022d\n\033measurement_protocol_secret\030\001 \001(\013" + + "29.google.analytics.admin.v1alpha.Measur" + + "ementProtocolSecretB\004\342A\001\002\0225\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + + "\"\240\001\n%ListMeasurementProtocolSecretsReque" + + "st\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A9\0227analyticsad" + + "min.googleapis.com/MeasurementProtocolSe" + + "cret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\242\001\n&ListMeasurementProtocolSecretsRe" + + "sponse\022_\n\034measurement_protocol_secrets\030\001" + + " \003(\01329.google.analytics.admin.v1alpha.Me" + + "asurementProtocolSecret\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\203\001\n*GetSKAdNetworkConversionVal" + + "ueSchemaRequest\022U\n\004name\030\001 \001(\tBG\342A\001\002\372A@\n>" + + "analyticsadmin.googleapis.com/SKAdNetwor" + + "kConversionValueSchema\"\375\001\n-CreateSKAdNet" + + "workConversionValueSchemaRequest\022W\n\006pare" + + "nt\030\001 \001(\tBG\342A\001\002\372A@\022>analyticsadmin.google" + + "apis.com/SKAdNetworkConversionValueSchem" + + "a\022s\n#skadnetwork_conversion_value_schema" + + "\030\002 \001(\0132@.google.analytics.admin.v1alpha." + + "SKAdNetworkConversionValueSchemaB\004\342A\001\002\"\206" + + "\001\n-DeleteSKAdNetworkConversionValueSchem" + + "aRequest\022U\n\004name\030\001 \001(\tBG\342A\001\002\372A@\n>analyti" + + "csadmin.googleapis.com/SKAdNetworkConver" + + "sionValueSchema\"\333\001\n-UpdateSKAdNetworkCon" + + "versionValueSchemaRequest\022s\n#skadnetwork" + + "_conversion_value_schema\030\001 \001(\0132@.google." + + "analytics.admin.v1alpha.SKAdNetworkConve" + + "rsionValueSchemaB\004\342A\001\002\0225\n\013update_mask\030\002 " + + "\001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"\256\001" + + "\n,ListSKAdNetworkConversionValueSchemasR" + + "equest\022W\n\006parent\030\001 \001(\tBG\342A\001\002\372A@\022>analyti" + + "csadmin.googleapis.com/SKAdNetworkConver" + + "sionValueSchema\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"\270\001\n-ListSKAdNetworkConver" + + "sionValueSchemasResponse\022n\n$skadnetwork_" + + "conversion_value_schemas\030\001 \003(\0132@.google." + + "analytics.admin.v1alpha.SKAdNetworkConve" + + "rsionValueSchema\022\027\n\017next_page_token\030\002 \001(" + + "\t\"m\n\037GetGoogleSignalsSettingsRequest\022J\n\004" + + "name\030\001 \001(\tB<\342A\001\002\372A5\n3analyticsadmin.goog" + + "leapis.com/GoogleSignalsSettings\"\271\001\n\"Upd" + + "ateGoogleSignalsSettingsRequest\022\\\n\027googl" + + "e_signals_settings\030\001 \001(\01325.google.analyt" + + "ics.admin.v1alpha.GoogleSignalsSettingsB" + + "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMaskB\004\342A\001\002\"\267\001\n\034CreateConversio" + + "nEventRequest\022O\n\020conversion_event\030\001 \001(\0132" + + "/.google.analytics.admin.v1alpha.Convers" + + "ionEventB\004\342A\001\002\022F\n\006parent\030\002 \001(\tB6\342A\001\002\372A/\022" + + "-analyticsadmin.googleapis.com/Conversio" + + "nEvent\"\246\001\n\034UpdateConversionEventRequest\022" + + "O\n\020conversion_event\030\001 \001(\0132/.google.analy" + + "tics.admin.v1alpha.ConversionEventB\004\342A\001\002" + + "\0225\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\004\342A\001\002\"a\n\031GetConversionEventReq" + + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsad" + + "min.googleapis.com/ConversionEvent\"d\n\034De" + + "leteConversionEventRequest\022D\n\004name\030\001 \001(\t" + + "B6\342A\001\002\372A/\n-analyticsadmin.googleapis.com" + + "/ConversionEvent\"\214\001\n\033ListConversionEvent" + + "sRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analy" + + "ticsadmin.googleapis.com/ConversionEvent" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "\203\001\n\034ListConversionEventsResponse\022J\n\021conv" + + "ersion_events\030\001 \003(\0132/.google.analytics.a" + + "dmin.v1alpha.ConversionEvent\022\027\n\017next_pag" + + "e_token\030\002 \001(\t\"}\n\'GetDisplayVideo360Adver" + + "tiserLinkRequest\022R\n\004name\030\001 \001(\tBD\342A\001\002\372A=\n" + + ";analyticsadmin.googleapis.com/DisplayVi" + + "deo360AdvertiserLink\"\250\001\n)ListDisplayVide" + + "o360AdvertiserLinksRequest\022T\n\006parent\030\001 \001" + + "(\tBD\342A\001\002\372A=\022;analyticsadmin.googleapis.c" + + "om/DisplayVideo360AdvertiserLink\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\260\001\n*List" + + "DisplayVideo360AdvertiserLinksResponse\022i" + + "\n\"display_video_360_advertiser_links\030\001 \003" + + "(\0132=.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLink\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\362\001\n*CreateDisplayVideo360Adve" + + "rtiserLinkRequest\022T\n\006parent\030\001 \001(\tBD\342A\001\002\372" + + "A=\022;analyticsadmin.googleapis.com/Displa" + + "yVideo360AdvertiserLink\022n\n!display_video" + + "_360_advertiser_link\030\002 \001(\0132=.google.anal" + + "ytics.admin.v1alpha.DisplayVideo360Adver" + + "tiserLinkB\004\342A\001\002\"\200\001\n*DeleteDisplayVideo36" + + "0AdvertiserLinkRequest\022R\n\004name\030\001 \001(\tBD\342A" + + "\001\002\372A=\n;analyticsadmin.googleapis.com/Dis" + + "playVideo360AdvertiserLink\"\315\001\n*UpdateDis" + + "playVideo360AdvertiserLinkRequest\022h\n!dis" + + "play_video_360_advertiser_link\030\001 \001(\0132=.g" + + "oogle.analytics.admin.v1alpha.DisplayVid" + + "eo360AdvertiserLink\0225\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\002\"\215\001\n/G" + + "etDisplayVideo360AdvertiserLinkProposalR" + + "equest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanalytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLinkProposal\"\270\001\n1ListDisplayVideo3" + + "60AdvertiserLinkProposalsRequest\022\\\n\006pare" + + "nt\030\001 \001(\tBL\342A\001\002\372AE\022Canalyticsadmin.google" + + "apis.com/DisplayVideo360AdvertiserLinkPr" + + "oposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"\311\001\n2ListDisplayVideo360AdvertiserL" + + "inkProposalsResponse\022z\n+display_video_36" + + "0_advertiser_link_proposals\030\001 \003(\0132E.goog" + + "le.analytics.admin.v1alpha.DisplayVideo3" + + "60AdvertiserLinkProposal\022\027\n\017next_page_to" + + "ken\030\002 \001(\t\"\223\002\n2CreateDisplayVideo360Adver" + + "tiserLinkProposalRequest\022\\\n\006parent\030\001 \001(\t" + + "BL\342A\001\002\372AE\022Canalyticsadmin.googleapis.com" + + "/DisplayVideo360AdvertiserLinkProposal\022\177" + + "\n*display_video_360_advertiser_link_prop" + + "osal\030\002 \001(\0132E.google.analytics.admin.v1al" + + "pha.DisplayVideo360AdvertiserLinkProposa" + + "lB\004\342A\001\002\"\220\001\n2DeleteDisplayVideo360Adverti" + + "serLinkProposalRequest\022Z\n\004name\030\001 \001(\tBL\342A" + + "\001\002\372AE\nCanalyticsadmin.googleapis.com/Dis" + + "playVideo360AdvertiserLinkProposal\"\221\001\n3A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "salRequest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanaly" + + "ticsadmin.googleapis.com/DisplayVideo360" + + "AdvertiserLinkProposal\"\240\001\n4ApproveDispla" + + "yVideo360AdvertiserLinkProposalResponse\022" + + "h\n!display_video_360_advertiser_link\030\001 \001" + + "(\0132=.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLink\"\220\001\n2CancelDisp" + + "layVideo360AdvertiserLinkProposalRequest" + + "\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanalyticsadmin." + + "googleapis.com/DisplayVideo360Advertiser" + + "LinkProposal\"c\n\032GetSearchAds360LinkReque" + + "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.analyticsadmi" + + "n.googleapis.com/SearchAds360Link\"\216\001\n\034Li" + + "stSearchAds360LinksRequest\022G\n\006parent\030\001 \001" + + "(\tB7\342A\001\002\372A0\022.analyticsadmin.googleapis.c" + + "om/SearchAds360Link\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"\210\001\n\035ListSearchAds360L" + + "inksResponse\022N\n\024search_ads_360_links\030\001 \003" + + "(\01320.google.analytics.admin.v1alpha.Sear" + + "chAds360Link\022\027\n\017next_page_token\030\002 \001(\t\"\275\001" + + "\n\035CreateSearchAds360LinkRequest\022G\n\006paren" + + "t\030\001 \001(\tB7\342A\001\002\372A0\022.analyticsadmin.googlea" + + "pis.com/SearchAds360Link\022S\n\023search_ads_3" + + "60_link\030\002 \001(\01320.google.analytics.admin.v" + + "1alpha.SearchAds360LinkB\004\342A\001\002\"f\n\035DeleteS" + + "earchAds360LinkRequest\022E\n\004name\030\001 \001(\tB7\342A" + + "\001\002\372A0\n.analyticsadmin.googleapis.com/Sea" + + "rchAds360Link\"\245\001\n\035UpdateSearchAds360Link" + + "Request\022M\n\023search_ads_360_link\030\001 \001(\01320.g" + + "oogle.analytics.admin.v1alpha.SearchAds3" + + "60Link\0225\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\004\342A\001\002\"\267\001\n\034CreateCustomDi" + + "mensionRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022" + + "-analyticsadmin.googleapis.com/CustomDim" + + "ension\022O\n\020custom_dimension\030\002 \001(\0132/.googl" + + "e.analytics.admin.v1alpha.CustomDimensio" + + "nB\004\342A\001\002\"\240\001\n\034UpdateCustomDimensionRequest" + + "\022I\n\020custom_dimension\030\001 \001(\0132/.google.anal" + + "ytics.admin.v1alpha.CustomDimension\0225\n\013u" + + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + + "MaskB\004\342A\001\002\"\214\001\n\033ListCustomDimensionsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsad" + + "min.googleapis.com/CustomDimension\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034Li" + + "stCustomDimensionsResponse\022J\n\021custom_dim" + + "ensions\030\001 \003(\0132/.google.analytics.admin.v" + + "1alpha.CustomDimension\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"e\n\035ArchiveCustomDimensionRequest" + + "\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin." + + "googleapis.com/CustomDimension\"a\n\031GetCus" + + "tomDimensionRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372" + + "A/\n-analyticsadmin.googleapis.com/Custom" + + "Dimension\"\253\001\n\031CreateCustomMetricRequest\022" + + "C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin" + + ".googleapis.com/CustomMetric\022I\n\rcustom_m" + + "etric\030\002 \001(\0132,.google.analytics.admin.v1a" + + "lpha.CustomMetricB\004\342A\001\002\"\227\001\n\031UpdateCustom" + + "MetricRequest\022C\n\rcustom_metric\030\001 \001(\0132,.g" + + "oogle.analytics.admin.v1alpha.CustomMetr" + + "ic\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\004\342A\001\002\"\206\001\n\030ListCustomMetricsR" + + "equest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyti" + + "csadmin.googleapis.com/CustomMetric\022\021\n\tp" + + "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031Li" + + "stCustomMetricsResponse\022D\n\016custom_metric" + + "s\030\001 \003(\0132,.google.analytics.admin.v1alpha" + + ".CustomMetric\022\027\n\017next_page_token\030\002 \001(\t\"_" + + "\n\032ArchiveCustomMetricRequest\022A\n\004name\030\001 \001" + + "(\tB3\342A\001\002\372A,\n*analyticsadmin.googleapis.c" + + "om/CustomMetric\"[\n\026GetCustomMetricReques" + + "t\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsadmin" + + ".googleapis.com/CustomMetric\"m\n\037GetDataR" + + "etentionSettingsRequest\022J\n\004name\030\001 \001(\tB<\342" + + "A\001\002\372A5\n3analyticsadmin.googleapis.com/Da" + + "taRetentionSettings\"\271\001\n\"UpdateDataRetent" + + "ionSettingsRequest\022\\\n\027data_retention_set" + + "tings\030\001 \001(\01325.google.analytics.admin.v1a" + + "lpha.DataRetentionSettingsB\004\342A\001\002\0225\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\004\342A\001\002\"\243\001\n\027CreateDataStreamRequest\022A\n\006p" + + "arent\030\001 \001(\tB1\342A\001\002\372A*\022(analyticsadmin.goo" + + "gleapis.com/DataStream\022E\n\013data_stream\030\002 " + + "\001(\0132*.google.analytics.admin.v1alpha.Dat" + + "aStreamB\004\342A\001\002\"Z\n\027DeleteDataStreamRequest" + + "\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(analyticsadmin." + + "googleapis.com/DataStream\"\221\001\n\027UpdateData" + + "StreamRequest\022?\n\013data_stream\030\001 \001(\0132*.goo" + + "gle.analytics.admin.v1alpha.DataStream\0225" + + "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + + "eldMaskB\004\342A\001\002\"\202\001\n\026ListDataStreamsRequest" + + "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(analyticsadmi" + + "n.googleapis.com/DataStream\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListDataSt" + + "reamsResponse\022@\n\014data_streams\030\001 \003(\0132*.go" + + "ogle.analytics.admin.v1alpha.DataStream\022" + + "\027\n\017next_page_token\030\002 \001(\t\"W\n\024GetDataStrea" + + "mRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(analyti" + + "csadmin.googleapis.com/DataStream\"S\n\022Get" + + "AudienceRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&" + + "analyticsadmin.googleapis.com/Audience\"~" + + "\n\024ListAudiencesRequest\022?\n\006parent\030\001 \001(\tB/" + + "\342A\001\002\372A(\022&analyticsadmin.googleapis.com/A" + + "udience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + + "\030\003 \001(\t\"m\n\025ListAudiencesResponse\022;\n\taudie" + + "nces\030\001 \003(\0132(.google.analytics.admin.v1al" + + "pha.Audience\022\027\n\017next_page_token\030\002 \001(\t\"\232\001" + + "\n\025CreateAudienceRequest\022?\n\006parent\030\001 \001(\tB" + + "/\342A\001\002\372A(\022&analyticsadmin.googleapis.com/" + + "Audience\022@\n\010audience\030\002 \001(\0132(.google.anal" + + "ytics.admin.v1alpha.AudienceB\004\342A\001\002\"\220\001\n\025U" + + "pdateAudienceRequest\022@\n\010audience\030\001 \001(\0132(" + + ".google.analytics.admin.v1alpha.Audience" + + "B\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pro" + + "tobuf.FieldMaskB\004\342A\001\002\"W\n\026ArchiveAudience" + + "Request\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\022&analytic" + + "sadmin.googleapis.com/Audience\"i\n\035GetAtt" + + "ributionSettingsRequest\022H\n\004name\030\001 \001(\tB:\342" + + "A\001\002\372A3\n1analyticsadmin.googleapis.com/At" + + "tributionSettings\"\262\001\n UpdateAttributionS" + + "ettingsRequest\022W\n\024attribution_settings\030\001" + + " \001(\01323.google.analytics.admin.v1alpha.At" + + "tributionSettingsB\004\342A\001\002\0225\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"]" + + "\n\027GetAccessBindingRequest\022B\n\004name\030\001 \001(\tB" + + "4\342A\001\002\372A-\n+analyticsadmin.googleapis.com/" + + "AccessBinding\"\252\001\n\035BatchGetAccessBindings" + + "Request\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyt" + + "icsadmin.googleapis.com/AccessBinding\022C\n" + + "\005names\030\002 \003(\tB4\342A\001\002\372A-\n+analyticsadmin.go" + + "ogleapis.com/AccessBinding\"h\n\036BatchGetAc" + + "cessBindingsResponse\022F\n\017access_bindings\030" + + "\001 \003(\0132-.google.analytics.admin.v1alpha.A", + "ccessBinding\"\210\001\n\031ListAccessBindingsReque" + + "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsad" + + "min.googleapis.com/AccessBinding\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"}\n\032ListA" + + "ccessBindingsResponse\022F\n\017access_bindings" + + "\030\001 \003(\0132-.google.analytics.admin.v1alpha." + + "AccessBinding\022\027\n\017next_page_token\030\002 \001(\t\"\257" + + "\001\n\032CreateAccessBindingRequest\022D\n\006parent\030" + + "\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googleapi" + + "s.com/AccessBinding\022K\n\016access_binding\030\002 " + + "\001(\0132-.google.analytics.admin.v1alpha.Acc" + + "essBindingB\004\342A\001\002\"\274\001\n BatchCreateAccessBi" + + "ndingsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+" + + "analyticsadmin.googleapis.com/AccessBind" + + "ing\022R\n\010requests\030\003 \003(\0132:.google.analytics" + + ".admin.v1alpha.CreateAccessBindingReques" + + "tB\004\342A\001\002\"k\n!BatchCreateAccessBindingsResp" + + "onse\022F\n\017access_bindings\030\001 \003(\0132-.google.a" + + "nalytics.admin.v1alpha.AccessBinding\"i\n\032" + + "UpdateAccessBindingRequest\022K\n\016access_bin" + + "ding\030\001 \001(\0132-.google.analytics.admin.v1al" + + "pha.AccessBindingB\004\342A\001\002\"\274\001\n BatchUpdateA" + + "ccessBindingsRequest\022D\n\006parent\030\001 \001(\tB4\342A" + + "\001\002\372A-\022+analyticsadmin.googleapis.com/Acc" + + "essBinding\022R\n\010requests\030\002 \003(\0132:.google.an" + + "alytics.admin.v1alpha.UpdateAccessBindin" + + "gRequestB\004\342A\001\002\"k\n!BatchUpdateAccessBindi" + + "ngsResponse\022F\n\017access_bindings\030\001 \003(\0132-.g" + + "oogle.analytics.admin.v1alpha.AccessBind" + + "ing\"`\n\032DeleteAccessBindingRequest\022B\n\004nam" + + "e\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.googlea" + + "pis.com/AccessBinding\"\274\001\n BatchDeleteAcc" + + "essBindingsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" + + "\372A-\022+analyticsadmin.googleapis.com/Acces" + + "sBinding\022R\n\010requests\030\002 \003(\0132:.google.anal" + + "ytics.admin.v1alpha.DeleteAccessBindingR" + + "equestB\004\342A\001\002\"\270\001\n\034CreateExpandedDataSetRe" + + "quest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytic" + + "sadmin.googleapis.com/ExpandedDataSet\022P\n" + + "\021expanded_data_set\030\002 \001(\0132/.google.analyt" + + "ics.admin.v1alpha.ExpandedDataSetB\004\342A\001\002\"" + + "\247\001\n\034UpdateExpandedDataSetRequest\022P\n\021expa" + + "nded_data_set\030\001 \001(\0132/.google.analytics.a" + + "dmin.v1alpha.ExpandedDataSetB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\002\"d\n\034DeleteExpandedDataSetReques" + + "t\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin" + + ".googleapis.com/ExpandedDataSet\"a\n\031GetEx" + + "pandedDataSetRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002" + + "\372A/\n-analyticsadmin.googleapis.com/Expan" + + "dedDataSet\"\214\001\n\033ListExpandedDataSetsReque" + + "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsad" + + "min.googleapis.com/ExpandedDataSet\022\021\n\tpa" + + "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\034Li" + + "stExpandedDataSetsResponse\022K\n\022expanded_d" + + "ata_sets\030\001 \003(\0132/.google.analytics.admin." + + "v1alpha.ExpandedDataSet\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"\253\001\n\031CreateChannelGroupRequest\022C" + + "\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin." + + "googleapis.com/ChannelGroup\022I\n\rchannel_g" + + "roup\030\002 \001(\0132,.google.analytics.admin.v1al" + + "pha.ChannelGroupB\004\342A\001\002\"\235\001\n\031UpdateChannel" + + "GroupRequest\022I\n\rchannel_group\030\001 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.ChannelGrou" + + "pB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMaskB\004\342A\001\002\"^\n\031DeleteChannelG" + + "roupRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*anal" + + "yticsadmin.googleapis.com/ChannelGroup\"[" + + "\n\026GetChannelGroupRequest\022A\n\004name\030\001 \001(\tB3" + + "\342A\001\002\372A,\n*analyticsadmin.googleapis.com/C" + + "hannelGroup\"\206\001\n\030ListChannelGroupsRequest" + + "\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmi" + + "n.googleapis.com/ChannelGroup\022\021\n\tpage_si" + + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListChan" + + "nelGroupsResponse\022D\n\016channel_groups\030\001 \003(" + + "\0132,.google.analytics.admin.v1alpha.Chann" + + "elGroup\022\027\n\017next_page_token\030\002 \001(\t\"T\n)SetA" + + "utomatedGa4ConfigurationOptOutRequest\022\026\n" + + "\010property\030\001 \001(\tB\004\342A\001\002\022\017\n\007opt_out\030\002 \001(\010\"," + + "\n*SetAutomatedGa4ConfigurationOptOutResp" + + "onse\"E\n+FetchAutomatedGa4ConfigurationOp" + + "tOutRequest\022\026\n\010property\030\001 \001(\tB\004\342A\001\002\"?\n,F" + + "etchAutomatedGa4ConfigurationOptOutRespo" + + "nse\022\017\n\007opt_out\030\001 \001(\010\"[\n\026GetBigQueryLinkR" + + "equest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analytics" + + "admin.googleapis.com/BigQueryLink\"\206\001\n\030Li" + + "stBigQueryLinksRequest\022C\n\006parent\030\001 \001(\tB3" + + "\342A\001\002\372A,\022*analyticsadmin.googleapis.com/B" + + "igQueryLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + + "oken\030\003 \001(\t\"z\n\031ListBigQueryLinksResponse\022" + + "D\n\016bigquery_links\030\001 \003(\0132,.google.analyti" + + "cs.admin.v1alpha.BigQueryLink\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\"y\n%GetEnhancedMeasurement" + + "SettingsRequest\022P\n\004name\030\001 \001(\tBB\342A\001\002\372A;\n9" + + "analyticsadmin.googleapis.com/EnhancedMe" + + "asurementSettings\"\313\001\n(UpdateEnhancedMeas" + + "urementSettingsRequest\022h\n\035enhanced_measu" + + "rement_settings\030\001 \001(\0132;.google.analytics" + + ".admin.v1alpha.EnhancedMeasurementSettin" + + "gsB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\004\342A\001\002\"m\n\037GetDataRedact" + + "ionSettingsRequest\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A" + + "5\n3analyticsadmin.googleapis.com/DataRed" + + "actionSettings\"\271\001\n\"UpdateDataRedactionSe" + + "ttingsRequest\022\\\n\027data_redaction_settings" + + "\030\001 \001(\01325.google.analytics.admin.v1alpha." + + "DataRedactionSettingsB\004\342A\001\002\0225\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + + "\001\002\"\205\001\n\035CreateConnectedSiteTagRequest\022\020\n\010" + + "property\030\001 \001(\t\022R\n\022connected_site_tag\030\002 \001" + + "(\01320.google.analytics.admin.v1alpha.Conn" + + "ectedSiteTagB\004\342A\001\002\" \n\036CreateConnectedSit" + + "eTagResponse\"A\n\035DeleteConnectedSiteTagRe" + + "quest\022\020\n\010property\030\001 \001(\t\022\016\n\006tag_id\030\002 \001(\t\"" + + "0\n\034ListConnectedSiteTagsRequest\022\020\n\010prope" + + "rty\030\001 \001(\t\"n\n\035ListConnectedSiteTagsRespon" + + "se\022M\n\023connected_site_tags\030\001 \003(\01320.google" + + ".analytics.admin.v1alpha.ConnectedSiteTa" + + "g\"\247\001\n\030CreateAdSenseLinkRequest\022B\n\006parent" + + "\030\001 \001(\tB2\342A\001\002\372A+\022)analyticsadmin.googleap" + + "is.com/AdSenseLink\022G\n\014adsense_link\030\002 \001(\013" + + "2+.google.analytics.admin.v1alpha.AdSens" + + "eLinkB\004\342A\001\002\"Y\n\025GetAdSenseLinkRequest\022@\n\004" + + "name\030\001 \001(\tB2\342A\001\002\372A+\n)analyticsadmin.goog" + + "leapis.com/AdSenseLink\"\\\n\030DeleteAdSenseL" + + "inkRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)analy" + + "ticsadmin.googleapis.com/AdSenseLink\"\204\001\n" + + "\027ListAdSenseLinksRequest\022B\n\006parent\030\001 \001(\t" + + "B2\342A\001\002\372A+\022)analyticsadmin.googleapis.com" + + "/AdSenseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"w\n\030ListAdSenseLinksResponse\022" + + "B\n\radsense_links\030\001 \003(\0132+.google.analytic" + + "s.admin.v1alpha.AdSenseLink\022\027\n\017next_page" + + "_token\030\002 \001(\t\"e\n FetchConnectedGa4Propert" + + "yRequest\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(\n&ana" + + "lyticsadmin.googleapis.com/Property\"b\n!F" + + "etchConnectedGa4PropertyResponse\022=\n\010prop" + + "erty\030\001 \001(\tB+\372A(\n&analyticsadmin.googleap" + + "is.com/Property\"\270\001\n\034CreateEventCreateRul" + + "eRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analy" + + "ticsadmin.googleapis.com/EventCreateRule" + + "\022P\n\021event_create_rule\030\002 \001(\0132/.google.ana" + + "lytics.admin.v1alpha.EventCreateRuleB\004\342A" + + "\001\002\"\247\001\n\034UpdateEventCreateRuleRequest\022P\n\021e" + + "vent_create_rule\030\001 \001(\0132/.google.analytic" + + "s.admin.v1alpha.EventCreateRuleB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMaskB\004\342A\001\002\"d\n\034DeleteEventCreateRuleReq" + + "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsad" + + "min.googleapis.com/EventCreateRule\"a\n\031Ge" + + "tEventCreateRuleRequest\022D\n\004name\030\001 \001(\tB6\342" + + "A\001\002\372A/\n-analyticsadmin.googleapis.com/Ev" + + "entCreateRule\"\214\001\n\033ListEventCreateRulesRe" + + "quest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytic" + + "sadmin.googleapis.com/EventCreateRule\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n" + + "\034ListEventCreateRulesResponse\022K\n\022event_c" + + "reate_rules\030\001 \003(\0132/.google.analytics.adm" + + "in.v1alpha.EventCreateRule\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\207\001\n\033CreateRollupPropertyRequ" + + "est\022G\n\017rollup_property\030\001 \001(\0132(.google.an" + + "alytics.admin.v1alpha.PropertyB\004\342A\001\002\022\037\n\021" + + "source_properties\030\002 \003(\tB\004\342A\001\001\"\301\001\n\034Create" + + "RollupPropertyResponse\022A\n\017rollup_propert" + + "y\030\001 \001(\0132(.google.analytics.admin.v1alpha" + + ".Property\022^\n\034rollup_property_source_link" + + "s\030\002 \003(\01328.google.analytics.admin.v1alpha" + + ".RollupPropertySourceLink\"s\n\"GetRollupPr" + + "opertySourceLinkRequest\022M\n\004name\030\001 \001(\tB?\342" + + "A\001\002\372A8\n6analyticsadmin.googleapis.com/Ro" + + "llupPropertySourceLink\"\252\001\n$ListRollupPro" + + "pertySourceLinksRequest\022O\n\006parent\030\001 \001(\tB" + + "?\342A\001\002\372A8\0226analyticsadmin.googleapis.com/" + + "RollupPropertySourceLink\022\027\n\tpage_size\030\002 " + + "\001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\240\001\n%" + + "ListRollupPropertySourceLinksResponse\022^\n" + + "\034rollup_property_source_links\030\001 \003(\01328.go" + + "ogle.analytics.admin.v1alpha.RollupPrope" + + "rtySourceLink\022\027\n\017next_page_token\030\002 \001(\t\"\335" + + "\001\n%CreateRollupPropertySourceLinkRequest" + + "\022O\n\006parent\030\001 \001(\tB?\342A\001\002\372A8\0226analyticsadmi" + + "n.googleapis.com/RollupPropertySourceLin" + + "k\022c\n\033rollup_property_source_link\030\002 \001(\01328" + + ".google.analytics.admin.v1alpha.RollupPr" + + "opertySourceLinkB\004\342A\001\002\"v\n%DeleteRollupPr" + + "opertySourceLinkRequest\022M\n\004name\030\001 \001(\tB?\342" + + "A\001\002\372A8\n6analyticsadmin.googleapis.com/Ro" + + "llupPropertySourceLink\"\200\002\n\030CreateSubprop" + + "ertyRequest\022?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&an" + + "alyticsadmin.googleapis.com/Property\022C\n\013" + + "subproperty\030\002 \001(\0132(.google.analytics.adm" + + "in.v1alpha.PropertyB\004\342A\001\002\022^\n\030subproperty" + + "_event_filter\030\003 \001(\01326.google.analytics.a" + + "dmin.v1alpha.SubpropertyEventFilterB\004\342A\001" + + "\001\"\264\001\n\031CreateSubpropertyResponse\022=\n\013subpr" + + "operty\030\001 \001(\0132(.google.analytics.admin.v1" + + "alpha.Property\022X\n\030subproperty_event_filt" + + "er\030\002 \001(\01326.google.analytics.admin.v1alph" + + "a.SubpropertyEventFilter\"\324\001\n#CreateSubpr" + + "opertyEventFilterRequest\022M\n\006parent\030\001 \001(\t" + + "B=\342A\001\002\372A6\0224analyticsadmin.googleapis.com" + + "/SubpropertyEventFilter\022^\n\030subproperty_e" + + "vent_filter\030\002 \001(\01326.google.analytics.adm" + + "in.v1alpha.SubpropertyEventFilterB\004\342A\001\002\"" + + "o\n GetSubpropertyEventFilterRequest\022K\n\004n" + + "ame\030\001 \001(\tB=\342A\001\002\372A6\n4analyticsadmin.googl" + + "eapis.com/SubpropertyEventFilter\"\246\001\n\"Lis" + + "tSubpropertyEventFiltersRequest\022M\n\006paren" + + "t\030\001 \001(\tB=\342A\001\002\372A6\0224analyticsadmin.googlea" + + "pis.com/SubpropertyEventFilter\022\027\n\tpage_s" + + "ize\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001" + + "\001\"\231\001\n#ListSubpropertyEventFiltersRespons" + + "e\022Y\n\031subproperty_event_filters\030\001 \003(\01326.g" + + "oogle.analytics.admin.v1alpha.Subpropert" + + "yEventFilter\022\027\n\017next_page_token\030\002 \001(\t\"\274\001" + + "\n#UpdateSubpropertyEventFilterRequest\022^\n" + + "\030subproperty_event_filter\030\001 \001(\01326.google" + + ".analytics.admin.v1alpha.SubpropertyEven" + + "tFilterB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goo" + + "gle.protobuf.FieldMaskB\004\342A\001\002\"r\n#DeleteSu" + + "bpropertyEventFilterRequest\022K\n\004name\030\001 \001(" + + "\tB=\342A\001\002\372A6\n4analyticsadmin.googleapis.co" + + "m/SubpropertyEventFilter2\361\350\001\n\025AnalyticsA" + + "dminService\022\223\001\n\nGetAccount\0221.google.anal" + + "ytics.admin.v1alpha.GetAccountRequest\032\'." + + "google.analytics.admin.v1alpha.Account\")" + + "\332A\004name\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*" + + "}\022\224\001\n\014ListAccounts\0223.google.analytics.ad" + + "min.v1alpha.ListAccountsRequest\0324.google" + + ".analytics.admin.v1alpha.ListAccountsRes" + + "ponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDel" + + "eteAccount\0224.google.analytics.admin.v1al" + + "pha.DeleteAccountRequest\032\026.google.protob" + + "uf.Empty\")\332A\004name\202\323\344\223\002\034*\032/v1alpha/{name=" + + "accounts/*}\022\271\001\n\rUpdateAccount\0224.google.a" + + "nalytics.admin.v1alpha.UpdateAccountRequ" + + "est\032\'.google.analytics.admin.v1alpha.Acc" + + "ount\"I\332A\023account,update_mask\202\323\344\223\002-2\"/v1a" + + "lpha/{account.name=accounts/*}:\007account\022" + + "\314\001\n\026ProvisionAccountTicket\022=.google.anal" + + "ytics.admin.v1alpha.ProvisionAccountTick" + + "etRequest\032>.google.analytics.admin.v1alp" + + "ha.ProvisionAccountTicketResponse\"3\202\323\344\223\002" + + "-\"(/v1alpha/accounts:provisionAccountTic" + + "ket:\001*\022\264\001\n\024ListAccountSummaries\022;.google" + + ".analytics.admin.v1alpha.ListAccountSumm" + + "ariesRequest\032<.google.analytics.admin.v1" + + "alpha.ListAccountSummariesResponse\"!\202\323\344\223" + + "\002\033\022\031/v1alpha/accountSummaries\022\230\001\n\013GetPro" + + "perty\0222.google.analytics.admin.v1alpha.G" + + "etPropertyRequest\032(.google.analytics.adm" + + "in.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036\022\034/v1a" + + "lpha/{name=properties/*}\022\234\001\n\016ListPropert" + + "ies\0225.google.analytics.admin.v1alpha.Lis" + + "tPropertiesRequest\0326.google.analytics.ad" + + "min.v1alpha.ListPropertiesResponse\"\033\202\323\344\223" + + "\002\025\022\023/v1alpha/properties\022\243\001\n\016CreateProper" + + "ty\0225.google.analytics.admin.v1alpha.Crea" + + "tePropertyRequest\032(.google.analytics.adm" + + "in.v1alpha.Property\"0\332A\010property\202\323\344\223\002\037\"\023" + + "/v1alpha/properties:\010property\022\236\001\n\016Delete" + + "Property\0225.google.analytics.admin.v1alph" + + "a.DeletePropertyRequest\032(.google.analyti" + + "cs.admin.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036" + + "*\034/v1alpha/{name=properties/*}\022\301\001\n\016Updat" + + "eProperty\0225.google.analytics.admin.v1alp" + + "ha.UpdatePropertyRequest\032(.google.analyt" + + "ics.admin.v1alpha.Property\"N\332A\024property," + + "update_mask\202\323\344\223\00212%/v1alpha/{property.na" + + "me=properties/*}:\010property\022\331\001\n\022CreateFir" + + "ebaseLink\0229.google.analytics.admin.v1alp" + + "ha.CreateFirebaseLinkRequest\032,.google.an" + + "alytics.admin.v1alpha.FirebaseLink\"Z\332A\024p" + + "arent,firebase_link\202\323\344\223\002=\",/v1alpha/{par" + + "ent=properties/*}/firebaseLinks:\rfirebas" + + "e_link\022\244\001\n\022DeleteFirebaseLink\0229.google.a" + + "nalytics.admin.v1alpha.DeleteFirebaseLin" + + "kRequest\032\026.google.protobuf.Empty\";\332A\004nam" + + "e\202\323\344\223\002.*,/v1alpha/{name=properties/*/fir" + + "ebaseLinks/*}\022\307\001\n\021ListFirebaseLinks\0228.go" + + "ogle.analytics.admin.v1alpha.ListFirebas" + + "eLinksRequest\0329.google.analytics.admin.v" + + "1alpha.ListFirebaseLinksResponse\"=\332A\006par" + + "ent\202\323\344\223\002.\022,/v1alpha/{parent=properties/*" + + "}/firebaseLinks\022\303\001\n\020GetGlobalSiteTag\0227.g" + + "oogle.analytics.admin.v1alpha.GetGlobalS" + + "iteTagRequest\032-.google.analytics.admin.v" + + "1alpha.GlobalSiteTag\"G\332A\004name\202\323\344\223\002:\0228/v1" + + "alpha/{name=properties/*/dataStreams/*/g" + + "lobalSiteTag}\022\341\001\n\023CreateGoogleAdsLink\022:." + + "google.analytics.admin.v1alpha.CreateGoo" + + "gleAdsLinkRequest\032-.google.analytics.adm" + + "in.v1alpha.GoogleAdsLink\"_\332A\026parent,goog" + + "le_ads_link\202\323\344\223\002@\"-/v1alpha/{parent=prop" + + "erties/*}/googleAdsLinks:\017google_ads_lin" + + "k\022\366\001\n\023UpdateGoogleAdsLink\022:.google.analy" + + "tics.admin.v1alpha.UpdateGoogleAdsLinkRe" + + "quest\032-.google.analytics.admin.v1alpha.G" + + "oogleAdsLink\"t\332A\033google_ads_link,update_" + + "mask\202\323\344\223\002P2=/v1alpha/{google_ads_link.na" + + "me=properties/*/googleAdsLinks/*}:\017googl" + + "e_ads_link\022\247\001\n\023DeleteGoogleAdsLink\022:.goo" + + "gle.analytics.admin.v1alpha.DeleteGoogle" + + "AdsLinkRequest\032\026.google.protobuf.Empty\"<" + + "\332A\004name\202\323\344\223\002/*-/v1alpha/{name=properties" + + "/*/googleAdsLinks/*}\022\313\001\n\022ListGoogleAdsLi" + + "nks\0229.google.analytics.admin.v1alpha.Lis" + + "tGoogleAdsLinksRequest\032:.google.analytic" + + "s.admin.v1alpha.ListGoogleAdsLinksRespon" + + "se\">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{parent=pr" + + "operties/*}/googleAdsLinks\022\313\001\n\026GetDataSh" + + "aringSettings\022=.google.analytics.admin.v" + + "1alpha.GetDataSharingSettingsRequest\0323.g" + + "oogle.analytics.admin.v1alpha.DataSharin" + + "gSettings\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{name" + + "=accounts/*/dataSharingSettings}\022\366\001\n\034Get" + + "MeasurementProtocolSecret\022C.google.analy" + + "tics.admin.v1alpha.GetMeasurementProtoco" + + "lSecretRequest\0329.google.analytics.admin." + + "v1alpha.MeasurementProtocolSecret\"V\332A\004na" + + "me\202\323\344\223\002I\022G/v1alpha/{name=properties/*/da" + + "taStreams/*/measurementProtocolSecrets/*" + + "}\022\211\002\n\036ListMeasurementProtocolSecrets\022E.g" + + "oogle.analytics.admin.v1alpha.ListMeasur" + + "ementProtocolSecretsRequest\032F.google.ana" + + "lytics.admin.v1alpha.ListMeasurementProt" + + "ocolSecretsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v" + + "1alpha/{parent=properties/*/dataStreams/" + + "*}/measurementProtocolSecrets\022\270\002\n\037Create" + + "MeasurementProtocolSecret\022F.google.analy" + + "tics.admin.v1alpha.CreateMeasurementProt" + + "ocolSecretRequest\0329.google.analytics.adm" + + "in.v1alpha.MeasurementProtocolSecret\"\221\001\332" + + "A\"parent,measurement_protocol_secret\202\323\344\223" + + "\002f\"G/v1alpha/{parent=properties/*/dataSt" + + "reams/*}/measurementProtocolSecrets:\033mea" + + "surement_protocol_secret\022\331\001\n\037DeleteMeasu" + + "rementProtocolSecret\022F.google.analytics." + + "admin.v1alpha.DeleteMeasurementProtocolS" + + "ecretRequest\032\026.google.protobuf.Empty\"V\332A" + + "\004name\202\323\344\223\002I*G/v1alpha/{name=properties/*" + + "/dataStreams/*/measurementProtocolSecret" + + "s/*}\022\332\002\n\037UpdateMeasurementProtocolSecret" + + "\022F.google.analytics.admin.v1alpha.Update" + + "MeasurementProtocolSecretRequest\0329.googl" + + "e.analytics.admin.v1alpha.MeasurementPro" + + "tocolSecret\"\263\001\332A\'measurement_protocol_se" + + "cret,update_mask\202\323\344\223\002\202\0012c/v1alpha/{measu" + + "rement_protocol_secret.name=properties/*" + + "/dataStreams/*/measurementProtocolSecret" + + "s/*}:\033measurement_protocol_secret\022\367\001\n\035Ac" + + "knowledgeUserDataCollection\022D.google.ana" + + "lytics.admin.v1alpha.AcknowledgeUserData" + + "CollectionRequest\032E.google.analytics.adm" + + "in.v1alpha.AcknowledgeUserDataCollection" + + "Response\"I\202\323\344\223\002C\">/v1alpha/{property=pro" + + "perties/*}:acknowledgeUserDataCollection" + + ":\001*\022\221\002\n#GetSKAdNetworkConversionValueSch" + + "ema\022J.google.analytics.admin.v1alpha.Get" + + "SKAdNetworkConversionValueSchemaRequest\032" + + "@.google.analytics.admin.v1alpha.SKAdNet" + + "workConversionValueSchema\"\\\332A\004name\202\323\344\223\002O" + + "\022M/v1alpha/{name=properties/*/dataStream" + + "s/*/sKAdNetworkConversionValueSchema/*}\022" + + "\343\002\n&CreateSKAdNetworkConversionValueSche" + + "ma\022M.google.analytics.admin.v1alpha.Crea" + + "teSKAdNetworkConversionValueSchemaReques" + + "t\032@.google.analytics.admin.v1alpha.SKAdN" + + "etworkConversionValueSchema\"\247\001\332A*parent," + + "skadnetwork_conversion_value_schema\202\323\344\223\002" + + "t\"M/v1alpha/{parent=properties/*/dataStr" + + "eams/*}/sKAdNetworkConversionValueSchema" + + ":#skadnetwork_conversion_value_schema\022\355\001" + + "\n&DeleteSKAdNetworkConversionValueSchema" + + "\022M.google.analytics.admin.v1alpha.Delete" + + "SKAdNetworkConversionValueSchemaRequest\032" + + "\026.google.protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*M" + + "/v1alpha/{name=properties/*/dataStreams/" + + "*/sKAdNetworkConversionValueSchema/*}\022\215\003" + + "\n&UpdateSKAdNetworkConversionValueSchema" + + "\022M.google.analytics.admin.v1alpha.Update" + + "SKAdNetworkConversionValueSchemaRequest\032" + + "@.google.analytics.admin.v1alpha.SKAdNet" + + "workConversionValueSchema\"\321\001\332A/skadnetwo" + + "rk_conversion_value_schema,update_mask\202\323" + + "\344\223\002\230\0012q/v1alpha/{skadnetwork_conversion_" + + "value_schema.name=properties/*/dataStrea" + + "ms/*/sKAdNetworkConversionValueSchema/*}" + + ":#skadnetwork_conversion_value_schema\022\244\002" + + "\n%ListSKAdNetworkConversionValueSchemas\022" + + "L.google.analytics.admin.v1alpha.ListSKA" + + "dNetworkConversionValueSchemasRequest\032M." + + "google.analytics.admin.v1alpha.ListSKAdN" + + "etworkConversionValueSchemasResponse\"^\332A" + + "\006parent\202\323\344\223\002O\022M/v1alpha/{parent=properti" + + "es/*/dataStreams/*}/sKAdNetworkConversio" + + "nValueSchema\022\344\001\n\031SearchChangeHistoryEven" + + "ts\022@.google.analytics.admin.v1alpha.Sear" + + "chChangeHistoryEventsRequest\032A.google.an" + + "alytics.admin.v1alpha.SearchChangeHistor", + "yEventsResponse\"B\202\323\344\223\002<\"7/v1alpha/{accou" + + "nt=accounts/*}:searchChangeHistoryEvents" + + ":\001*\022\325\001\n\030GetGoogleSignalsSettings\022?.googl" + + "e.analytics.admin.v1alpha.GetGoogleSigna" + + "lsSettingsRequest\0325.google.analytics.adm" + + "in.v1alpha.GoogleSignalsSettings\"A\332A\004nam" + + "e\202\323\344\223\0024\0222/v1alpha/{name=properties/*/goo" + + "gleSignalsSettings}\022\254\002\n\033UpdateGoogleSign" + + "alsSettings\022B.google.analytics.admin.v1a" + + "lpha.UpdateGoogleSignalsSettingsRequest\032" + + "5.google.analytics.admin.v1alpha.GoogleS" + + "ignalsSettings\"\221\001\332A#google_signals_setti" + + "ngs,update_mask\202\323\344\223\002e2J/v1alpha/{google_" + + "signals_settings.name=properties/*/googl" + + "eSignalsSettings}:\027google_signals_settin" + + "gs\022\353\001\n\025CreateConversionEvent\022<.google.an" + + "alytics.admin.v1alpha.CreateConversionEv" + + "entRequest\032/.google.analytics.admin.v1al" + + "pha.ConversionEvent\"c\332A\027parent,conversio" + + "n_event\202\323\344\223\002C\"//v1alpha/{parent=properti" + + "es/*}/conversionEvents:\020conversion_event" + + "\022\201\002\n\025UpdateConversionEvent\022<.google.anal" + + "ytics.admin.v1alpha.UpdateConversionEven" + + "tRequest\032/.google.analytics.admin.v1alph" + + "a.ConversionEvent\"y\332A\034conversion_event,u" + + "pdate_mask\202\323\344\223\002T2@/v1alpha/{conversion_e" + + "vent.name=properties/*/conversionEvents/" + + "*}:\020conversion_event\022\300\001\n\022GetConversionEv" + + "ent\0229.google.analytics.admin.v1alpha.Get" + + "ConversionEventRequest\032/.google.analytic" + + "s.admin.v1alpha.ConversionEvent\">\332A\004name" + + "\202\323\344\223\0021\022//v1alpha/{name=properties/*/conv" + + "ersionEvents/*}\022\255\001\n\025DeleteConversionEven" + + "t\022<.google.analytics.admin.v1alpha.Delet" + + "eConversionEventRequest\032\026.google.protobu" + + "f.Empty\">\332A\004name\202\323\344\223\0021*//v1alpha/{name=p" + + "roperties/*/conversionEvents/*}\022\323\001\n\024List" + + "ConversionEvents\022;.google.analytics.admi" + + "n.v1alpha.ListConversionEventsRequest\032<." + + "google.analytics.admin.v1alpha.ListConve" + + "rsionEventsResponse\"@\332A\006parent\202\323\344\223\0021\022//v" + + "1alpha/{parent=properties/*}/conversionE" + + "vents\022\370\001\n GetDisplayVideo360AdvertiserLi" + + "nk\022G.google.analytics.admin.v1alpha.GetD" + + "isplayVideo360AdvertiserLinkRequest\032=.go" + + "ogle.analytics.admin.v1alpha.DisplayVide" + + "o360AdvertiserLink\"L\332A\004name\202\323\344\223\002?\022=/v1al" + + "pha/{name=properties/*/displayVideo360Ad" + + "vertiserLinks/*}\022\213\002\n\"ListDisplayVideo360" + + "AdvertiserLinks\022I.google.analytics.admin" + + ".v1alpha.ListDisplayVideo360AdvertiserLi" + + "nksRequest\032J.google.analytics.admin.v1al" + + "pha.ListDisplayVideo360AdvertiserLinksRe" + + "sponse\"N\332A\006parent\202\323\344\223\002?\022=/v1alpha/{paren" + + "t=properties/*}/displayVideo360Advertise" + + "rLinks\022\306\002\n#CreateDisplayVideo360Advertis" + + "erLink\022J.google.analytics.admin.v1alpha." + + "CreateDisplayVideo360AdvertiserLinkReque" + + "st\032=.google.analytics.admin.v1alpha.Disp" + + "layVideo360AdvertiserLink\"\223\001\332A(parent,di" + + "splay_video_360_advertiser_link\202\323\344\223\002b\"=/" + + "v1alpha/{parent=properties/*}/displayVid" + + "eo360AdvertiserLinks:!display_video_360_" + + "advertiser_link\022\327\001\n#DeleteDisplayVideo36" + + "0AdvertiserLink\022J.google.analytics.admin" + + ".v1alpha.DeleteDisplayVideo360Advertiser" + + "LinkRequest\032\026.google.protobuf.Empty\"L\332A\004" + + "name\202\323\344\223\002?*=/v1alpha/{name=properties/*/" + + "displayVideo360AdvertiserLinks/*}\022\356\002\n#Up" + + "dateDisplayVideo360AdvertiserLink\022J.goog" + + "le.analytics.admin.v1alpha.UpdateDisplay" + + "Video360AdvertiserLinkRequest\032=.google.a" + + "nalytics.admin.v1alpha.DisplayVideo360Ad" + + "vertiserLink\"\273\001\332A-display_video_360_adve" + + "rtiser_link,update_mask\202\323\344\223\002\204\0012_/v1alpha" + + "/{display_video_360_advertiser_link.name" + + "=properties/*/displayVideo360AdvertiserL" + + "inks/*}:!display_video_360_advertiser_li" + + "nk\022\230\002\n(GetDisplayVideo360AdvertiserLinkP" + + "roposal\022O.google.analytics.admin.v1alpha" + + ".GetDisplayVideo360AdvertiserLinkProposa" + + "lRequest\032E.google.analytics.admin.v1alph" + + "a.DisplayVideo360AdvertiserLinkProposal\"" + + "T\332A\004name\202\323\344\223\002G\022E/v1alpha/{name=propertie" + + "s/*/displayVideo360AdvertiserLinkProposa" + + "ls/*}\022\253\002\n*ListDisplayVideo360AdvertiserL" + + "inkProposals\022Q.google.analytics.admin.v1" + + "alpha.ListDisplayVideo360AdvertiserLinkP" + + "roposalsRequest\032R.google.analytics.admin" + + ".v1alpha.ListDisplayVideo360AdvertiserLi" + + "nkProposalsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v" + + "1alpha/{parent=properties/*}/displayVide" + + "o360AdvertiserLinkProposals\022\370\002\n+CreateDi" + + "splayVideo360AdvertiserLinkProposal\022R.go" + + "ogle.analytics.admin.v1alpha.CreateDispl" + + "ayVideo360AdvertiserLinkProposalRequest\032" + + "E.google.analytics.admin.v1alpha.Display" + + "Video360AdvertiserLinkProposal\"\255\001\332A1pare" + + "nt,display_video_360_advertiser_link_pro" + + "posal\202\323\344\223\002s\"E/v1alpha/{parent=properties" + + "/*}/displayVideo360AdvertiserLinkProposa" + + "ls:*display_video_360_advertiser_link_pr" + + "oposal\022\357\001\n+DeleteDisplayVideo360Advertis" + + "erLinkProposal\022R.google.analytics.admin." + + "v1alpha.DeleteDisplayVideo360AdvertiserL" + + "inkProposalRequest\032\026.google.protobuf.Emp" + + "ty\"T\332A\004name\202\323\344\223\002G*E/v1alpha/{name=proper" + + "ties/*/displayVideo360AdvertiserLinkProp" + + "osals/*}\022\263\002\n,ApproveDisplayVideo360Adver" + + "tiserLinkProposal\022S.google.analytics.adm" + + "in.v1alpha.ApproveDisplayVideo360Adverti" + + "serLinkProposalRequest\032T.google.analytic" + + "s.admin.v1alpha.ApproveDisplayVideo360Ad" + + "vertiserLinkProposalResponse\"X\202\323\344\223\002R\"M/v" + + "1alpha/{name=properties/*/displayVideo36" + + "0AdvertiserLinkProposals/*}:approve:\001*\022\241" + + "\002\n+CancelDisplayVideo360AdvertiserLinkPr" + + "oposal\022R.google.analytics.admin.v1alpha." + + "CancelDisplayVideo360AdvertiserLinkPropo" + + "salRequest\032E.google.analytics.admin.v1al" + + "pha.DisplayVideo360AdvertiserLinkProposa" + + "l\"W\202\323\344\223\002Q\"L/v1alpha/{name=properties/*/d" + + "isplayVideo360AdvertiserLinkProposals/*}" + + ":cancel:\001*\022\353\001\n\025CreateCustomDimension\022<.g" + + "oogle.analytics.admin.v1alpha.CreateCust" + + "omDimensionRequest\032/.google.analytics.ad" + + "min.v1alpha.CustomDimension\"c\332A\027parent,c" + + "ustom_dimension\202\323\344\223\002C\"//v1alpha/{parent=" + + "properties/*}/customDimensions:\020custom_d" + + "imension\022\201\002\n\025UpdateCustomDimension\022<.goo" + + "gle.analytics.admin.v1alpha.UpdateCustom" + + "DimensionRequest\032/.google.analytics.admi" + + "n.v1alpha.CustomDimension\"y\332A\034custom_dim" + + "ension,update_mask\202\323\344\223\002T2@/v1alpha/{cust" + + "om_dimension.name=properties/*/customDim" + + "ensions/*}:\020custom_dimension\022\323\001\n\024ListCus" + + "tomDimensions\022;.google.analytics.admin.v" + + "1alpha.ListCustomDimensionsRequest\032<.goo" + + "gle.analytics.admin.v1alpha.ListCustomDi" + + "mensionsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1al" + + "pha/{parent=properties/*}/customDimensio" + + "ns\022\272\001\n\026ArchiveCustomDimension\022=.google.a" + + "nalytics.admin.v1alpha.ArchiveCustomDime" + + "nsionRequest\032\026.google.protobuf.Empty\"I\332A" + + "\004name\202\323\344\223\002<\"7/v1alpha/{name=properties/*" + + "/customDimensions/*}:archive:\001*\022\300\001\n\022GetC" + + "ustomDimension\0229.google.analytics.admin." + + "v1alpha.GetCustomDimensionRequest\032/.goog" + + "le.analytics.admin.v1alpha.CustomDimensi" + + "on\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name=proper" + + "ties/*/customDimensions/*}\022\331\001\n\022CreateCus" + + "tomMetric\0229.google.analytics.admin.v1alp" + + "ha.CreateCustomMetricRequest\032,.google.an" + + "alytics.admin.v1alpha.CustomMetric\"Z\332A\024p" + + "arent,custom_metric\202\323\344\223\002=\",/v1alpha/{par" + + "ent=properties/*}/customMetrics:\rcustom_" + + "metric\022\354\001\n\022UpdateCustomMetric\0229.google.a" + + "nalytics.admin.v1alpha.UpdateCustomMetri" + + "cRequest\032,.google.analytics.admin.v1alph" + + "a.CustomMetric\"m\332A\031custom_metric,update_" + + "mask\202\323\344\223\002K2:/v1alpha/{custom_metric.name" + + "=properties/*/customMetrics/*}:\rcustom_m" + + "etric\022\307\001\n\021ListCustomMetrics\0228.google.ana" + + "lytics.admin.v1alpha.ListCustomMetricsRe" + + "quest\0329.google.analytics.admin.v1alpha.L" + + "istCustomMetricsResponse\"=\332A\006parent\202\323\344\223\002" + + ".\022,/v1alpha/{parent=properties/*}/custom" + + "Metrics\022\261\001\n\023ArchiveCustomMetric\022:.google" + + ".analytics.admin.v1alpha.ArchiveCustomMe" + + "tricRequest\032\026.google.protobuf.Empty\"F\332A\004" + + "name\202\323\344\223\0029\"4/v1alpha/{name=properties/*/" + + "customMetrics/*}:archive:\001*\022\264\001\n\017GetCusto" + + "mMetric\0226.google.analytics.admin.v1alpha" + + ".GetCustomMetricRequest\032,.google.analyti" + + "cs.admin.v1alpha.CustomMetric\";\332A\004name\202\323" + + "\344\223\002.\022,/v1alpha/{name=properties/*/custom" + + "Metrics/*}\022\325\001\n\030GetDataRetentionSettings\022" + + "?.google.analytics.admin.v1alpha.GetData" + + "RetentionSettingsRequest\0325.google.analyt" + + "ics.admin.v1alpha.DataRetentionSettings\"" + + "A\332A\004name\202\323\344\223\0024\0222/v1alpha/{name=propertie" + + "s/*/dataRetentionSettings}\022\254\002\n\033UpdateDat" + + "aRetentionSettings\022B.google.analytics.ad" + + "min.v1alpha.UpdateDataRetentionSettingsR" + + "equest\0325.google.analytics.admin.v1alpha." + + "DataRetentionSettings\"\221\001\332A#data_retentio" + + "n_settings,update_mask\202\323\344\223\002e2J/v1alpha/{" + + "data_retention_settings.name=properties/" + + "*/dataRetentionSettings}:\027data_retention" + + "_settings\022\315\001\n\020CreateDataStream\0227.google." + + "analytics.admin.v1alpha.CreateDataStream" + + "Request\032*.google.analytics.admin.v1alpha" + + ".DataStream\"T\332A\022parent,data_stream\202\323\344\223\0029" + + "\"*/v1alpha/{parent=properties/*}/dataStr" + + "eams:\013data_stream\022\236\001\n\020DeleteDataStream\0227" + + ".google.analytics.admin.v1alpha.DeleteDa" + + "taStreamRequest\032\026.google.protobuf.Empty\"" + + "9\332A\004name\202\323\344\223\002,**/v1alpha/{name=propertie" + + "s/*/dataStreams/*}\022\336\001\n\020UpdateDataStream\022" + + "7.google.analytics.admin.v1alpha.UpdateD" + + "ataStreamRequest\032*.google.analytics.admi" + + "n.v1alpha.DataStream\"e\332A\027data_stream,upd" + + "ate_mask\202\323\344\223\002E26/v1alpha/{data_stream.na" + + "me=properties/*/dataStreams/*}:\013data_str" + + "eam\022\277\001\n\017ListDataStreams\0226.google.analyti" + + "cs.admin.v1alpha.ListDataStreamsRequest\032" + + "7.google.analytics.admin.v1alpha.ListDat" + + "aStreamsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1al" + + "pha/{parent=properties/*}/dataStreams\022\254\001" + + "\n\rGetDataStream\0224.google.analytics.admin" + + ".v1alpha.GetDataStreamRequest\032*.google.a" + + "nalytics.admin.v1alpha.DataStream\"9\332A\004na" + + "me\202\323\344\223\002,\022*/v1alpha/{name=properties/*/da" + + "taStreams/*}\022\244\001\n\013GetAudience\0222.google.an" + + "alytics.admin.v1alpha.GetAudienceRequest" + + "\032(.google.analytics.admin.v1alpha.Audien" + + "ce\"7\332A\004name\202\323\344\223\002*\022(/v1alpha/{name=proper" + + "ties/*/audiences/*}\022\267\001\n\rListAudiences\0224." + + "google.analytics.admin.v1alpha.ListAudie" + + "ncesRequest\0325.google.analytics.admin.v1a" + + "lpha.ListAudiencesResponse\"9\332A\006parent\202\323\344" + + "\223\002*\022(/v1alpha/{parent=properties/*}/audi" + + "ences\022\277\001\n\016CreateAudience\0225.google.analyt" + + "ics.admin.v1alpha.CreateAudienceRequest\032" + + "(.google.analytics.admin.v1alpha.Audienc" + + "e\"L\332A\017parent,audience\202\323\344\223\0024\"(/v1alpha/{p" + + "arent=properties/*}/audiences:\010audience\022" + + "\315\001\n\016UpdateAudience\0225.google.analytics.ad" + + "min.v1alpha.UpdateAudienceRequest\032(.goog" + + "le.analytics.admin.v1alpha.Audience\"Z\332A\024" + + "audience,update_mask\202\323\344\223\002=21/v1alpha/{au" + + "dience.name=properties/*/audiences/*}:\010a" + + "udience\022\236\001\n\017ArchiveAudience\0226.google.ana" + + "lytics.admin.v1alpha.ArchiveAudienceRequ" + + "est\032\026.google.protobuf.Empty\";\202\323\344\223\0025\"0/v1" + + "alpha/{name=properties/*/audiences/*}:ar" + + "chive:\001*\022\304\001\n\023GetSearchAds360Link\022:.googl" + + "e.analytics.admin.v1alpha.GetSearchAds36" + + "0LinkRequest\0320.google.analytics.admin.v1" + + "alpha.SearchAds360Link\"?\332A\004name\202\323\344\223\0022\0220/" + + "v1alpha/{name=properties/*/searchAds360L" + + "inks/*}\022\327\001\n\025ListSearchAds360Links\022<.goog" + + "le.analytics.admin.v1alpha.ListSearchAds" + + "360LinksRequest\032=.google.analytics.admin" + + ".v1alpha.ListSearchAds360LinksResponse\"A" + + "\332A\006parent\202\323\344\223\0022\0220/v1alpha/{parent=proper" + + "ties/*}/searchAds360Links\022\365\001\n\026CreateSear" + + "chAds360Link\022=.google.analytics.admin.v1" + + "alpha.CreateSearchAds360LinkRequest\0320.go" + + "ogle.analytics.admin.v1alpha.SearchAds36" + + "0Link\"j\332A\032parent,search_ads_360_link\202\323\344\223" + + "\002G\"0/v1alpha/{parent=properties/*}/searc" + + "hAds360Links:\023search_ads_360_link\022\260\001\n\026De" + + "leteSearchAds360Link\022=.google.analytics." + + "admin.v1alpha.DeleteSearchAds360LinkRequ" + + "est\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223" + + "\0022*0/v1alpha/{name=properties/*/searchAd" + + "s360Links/*}\022\217\002\n\026UpdateSearchAds360Link\022" + + "=.google.analytics.admin.v1alpha.UpdateS" + + "earchAds360LinkRequest\0320.google.analytic" + + "s.admin.v1alpha.SearchAds360Link\"\203\001\332A\037se" + + "arch_ads_360_link,update_mask\202\323\344\223\002[2D/v1" + + "alpha/{search_ads_360_link.name=properti" + + "es/*/searchAds360Links/*}:\023search_ads_36" + + "0_link\022\315\001\n\026GetAttributionSettings\022=.goog" + + "le.analytics.admin.v1alpha.GetAttributio" + + "nSettingsRequest\0323.google.analytics.admi" + + "n.v1alpha.AttributionSettings\"?\332A\004name\202\323" + + "\344\223\0022\0220/v1alpha/{name=properties/*/attrib" + + "utionSettings}\022\233\002\n\031UpdateAttributionSett" + + "ings\022@.google.analytics.admin.v1alpha.Up" + + "dateAttributionSettingsRequest\0323.google." + + "analytics.admin.v1alpha.AttributionSetti" + + "ngs\"\206\001\332A attribution_settings,update_mas" + + "k\202\323\344\223\002]2E/v1alpha/{attribution_settings." + + "name=properties/*/attributionSettings}:\024" + + "attribution_settings\022\360\001\n\017RunAccessReport" + + "\0226.google.analytics.admin.v1alpha.RunAcc" + + "essReportRequest\0327.google.analytics.admi" + + "n.v1alpha.RunAccessReportResponse\"l\202\323\344\223\002" + + "f\"./v1alpha/{entity=properties/*}:runAcc" + + "essReport:\001*Z1\",/v1alpha/{entity=account" + + "s/*}:runAccessReport:\001*\022\237\002\n\023CreateAccess" + + "Binding\022:.google.analytics.admin.v1alpha" + + ".CreateAccessBindingRequest\032-.google.ana" + + "lytics.admin.v1alpha.AccessBinding\"\234\001\332A\025" + + "parent,access_binding\202\323\344\223\002~\"+/v1alpha/{p" + + "arent=accounts/*}/accessBindings:\016access" + + "_bindingZ?\"-/v1alpha/{parent=properties/" + + "*}/accessBindings:\016access_binding\022\347\001\n\020Ge" + + "tAccessBinding\0227.google.analytics.admin." + + "v1alpha.GetAccessBindingRequest\032-.google" + + ".analytics.admin.v1alpha.AccessBinding\"k" + + "\332A\004name\202\323\344\223\002^\022+/v1alpha/{name=accounts/*" + + "/accessBindings/*}Z/\022-/v1alpha/{name=pro" + + "perties/*/accessBindings/*}\022\267\002\n\023UpdateAc" + + "cessBinding\022:.google.analytics.admin.v1a" + + "lpha.UpdateAccessBindingRequest\032-.google" + + ".analytics.admin.v1alpha.AccessBinding\"\264" + + "\001\332A\016access_binding\202\323\344\223\002\234\0012:/v1alpha/{acc" + + "ess_binding.name=accounts/*/accessBindin" + + "gs/*}:\016access_bindingZN2\"9/v1alpha/{parent=properties/*}/ac" + + "cessBindings:batchCreate:\001*\022\217\002\n\026BatchGet" + + "AccessBindings\022=.google.analytics.admin." + + "v1alpha.BatchGetAccessBindingsRequest\032>." + + "google.analytics.admin.v1alpha.BatchGetA" + + "ccessBindingsResponse\"v\202\323\344\223\002p\0224/v1alpha/" + + "{parent=accounts/*}/accessBindings:batch" + + "GetZ8\0226/v1alpha/{parent=properties/*}/ac" + + "cessBindings:batchGet\022\245\002\n\031BatchUpdateAcc" + + "essBindings\022@.google.analytics.admin.v1a" + + "lpha.BatchUpdateAccessBindingsRequest\032A." + + "google.analytics.admin.v1alpha.BatchUpda" + + "teAccessBindingsResponse\"\202\001\202\323\344\223\002|\"7/v1al" + + "pha/{parent=accounts/*}/accessBindings:b" + + "atchUpdate:\001*Z>\"9/v1alpha/{parent=proper" + + "ties/*}/accessBindings:batchUpdate:\001*\022\372\001" + + "\n\031BatchDeleteAccessBindings\022@.google.ana" + + "lytics.admin.v1alpha.BatchDeleteAccessBi" + + "ndingsRequest\032\026.google.protobuf.Empty\"\202\001" + + "\202\323\344\223\002|\"7/v1alpha/{parent=accounts/*}/acc" + + "essBindings:batchDelete:\001*Z>\"9/v1alpha/{" + + "parent=properties/*}/accessBindings:batc" + + "hDelete:\001*\022\300\001\n\022GetExpandedDataSet\0229.goog" + + "le.analytics.admin.v1alpha.GetExpandedDa" + + "taSetRequest\032/.google.analytics.admin.v1" + + "alpha.ExpandedDataSet\">\332A\004name\202\323\344\223\0021\022//v" + + "1alpha/{name=properties/*/expandedDataSe" + + "ts/*}\022\323\001\n\024ListExpandedDataSets\022;.google." + + "analytics.admin.v1alpha.ListExpandedData" + + "SetsRequest\032<.google.analytics.admin.v1a" + + "lpha.ListExpandedDataSetsResponse\"@\332A\006pa" + + "rent\202\323\344\223\0021\022//v1alpha/{parent=properties/" + + "*}/expandedDataSets\022\355\001\n\025CreateExpandedDa" + + "taSet\022<.google.analytics.admin.v1alpha.C" + + "reateExpandedDataSetRequest\032/.google.ana" + + "lytics.admin.v1alpha.ExpandedDataSet\"e\332A" + + "\030parent,expanded_data_set\202\323\344\223\002D\"//v1alph" + + "a/{parent=properties/*}/expandedDataSets" + + ":\021expanded_data_set\022\204\002\n\025UpdateExpandedDa" + + "taSet\022<.google.analytics.admin.v1alpha.U" + + "pdateExpandedDataSetRequest\032/.google.ana" + + "lytics.admin.v1alpha.ExpandedDataSet\"|\332A" + + "\035expanded_data_set,update_mask\202\323\344\223\002V2A/v" + + "1alpha/{expanded_data_set.name=propertie" + + "s/*/expandedDataSets/*}:\021expanded_data_s" + + "et\022\255\001\n\025DeleteExpandedDataSet\022<.google.an" + + "alytics.admin.v1alpha.DeleteExpandedData" + + "SetRequest\032\026.google.protobuf.Empty\">\332A\004n" + + "ame\202\323\344\223\0021*//v1alpha/{name=properties/*/e" + + "xpandedDataSets/*}\022\264\001\n\017GetChannelGroup\0226" + + ".google.analytics.admin.v1alpha.GetChann" + + "elGroupRequest\032,.google.analytics.admin." + + "v1alpha.ChannelGroup\";\332A\004name\202\323\344\223\002.\022,/v1" + + "alpha/{name=properties/*/channelGroups/*" + + "}\022\307\001\n\021ListChannelGroups\0228.google.analyti" + + "cs.admin.v1alpha.ListChannelGroupsReques" + + "t\0329.google.analytics.admin.v1alpha.ListC" + + "hannelGroupsResponse\"=\332A\006parent\202\323\344\223\002.\022,/" + + "v1alpha/{parent=properties/*}/channelGro" + + "ups\022\331\001\n\022CreateChannelGroup\0229.google.anal" + + "ytics.admin.v1alpha.CreateChannelGroupRe" + + "quest\032,.google.analytics.admin.v1alpha.C" + + "hannelGroup\"Z\332A\024parent,channel_group\202\323\344\223" + + "\002=\",/v1alpha/{parent=properties/*}/chann" + + "elGroups:\rchannel_group\022\354\001\n\022UpdateChanne" + + "lGroup\0229.google.analytics.admin.v1alpha." + + "UpdateChannelGroupRequest\032,.google.analy" + + "tics.admin.v1alpha.ChannelGroup\"m\332A\031chan" + + "nel_group,update_mask\202\323\344\223\002K2:/v1alpha/{c" + + "hannel_group.name=properties/*/channelGr" + + "oups/*}:\rchannel_group\022\244\001\n\022DeleteChannel" + + "Group\0229.google.analytics.admin.v1alpha.D" + + "eleteChannelGroupRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" + + "properties/*/channelGroups/*}\022\376\001\n\"SetAut" + + "omatedGa4ConfigurationOptOut\022I.google.an" + + "alytics.admin.v1alpha.SetAutomatedGa4Con" + + "figurationOptOutRequest\032J.google.analyti" + + "cs.admin.v1alpha.SetAutomatedGa4Configur", + "ationOptOutResponse\"A\202\323\344\223\002;\"6/v1alpha/pr" + + "operties:setAutomatedGa4ConfigurationOpt" + + "Out:\001*\022\206\002\n$FetchAutomatedGa4Configuratio" + + "nOptOut\022K.google.analytics.admin.v1alpha" + + ".FetchAutomatedGa4ConfigurationOptOutReq" + + "uest\032L.google.analytics.admin.v1alpha.Fe" + + "tchAutomatedGa4ConfigurationOptOutRespon" + + "se\"C\202\323\344\223\002=\"8/v1alpha/properties:fetchAut" + + "omatedGa4ConfigurationOptOut:\001*\022\264\001\n\017GetB" + + "igQueryLink\0226.google.analytics.admin.v1a" + + "lpha.GetBigQueryLinkRequest\032,.google.ana" + + "lytics.admin.v1alpha.BigQueryLink\";\332A\004na" + + "me\202\323\344\223\002.\022,/v1alpha/{name=properties/*/bi" + + "gQueryLinks/*}\022\307\001\n\021ListBigQueryLinks\0228.g" + + "oogle.analytics.admin.v1alpha.ListBigQue" + + "ryLinksRequest\0329.google.analytics.admin." + + "v1alpha.ListBigQueryLinksResponse\"=\332A\006pa" + + "rent\202\323\344\223\002.\022,/v1alpha/{parent=properties/" + + "*}/bigQueryLinks\022\373\001\n\036GetEnhancedMeasurem" + + "entSettings\022E.google.analytics.admin.v1a" + + "lpha.GetEnhancedMeasurementSettingsReque" + + "st\032;.google.analytics.admin.v1alpha.Enha" + + "ncedMeasurementSettings\"U\332A\004name\202\323\344\223\002H\022F" + + "/v1alpha/{name=properties/*/dataStreams/" + + "*/enhancedMeasurementSettings}\022\345\002\n!Updat" + + "eEnhancedMeasurementSettings\022H.google.an" + + "alytics.admin.v1alpha.UpdateEnhancedMeas" + + "urementSettingsRequest\032;.google.analytic" + + "s.admin.v1alpha.EnhancedMeasurementSetti" + + "ngs\"\270\001\332A)enhanced_measurement_settings,u" + + "pdate_mask\202\323\344\223\002\205\0012d/v1alpha/{enhanced_me" + + "asurement_settings.name=properties/*/dat" + + "aStreams/*/enhancedMeasurementSettings}:" + + "\035enhanced_measurement_settings\022\316\001\n\026Creat" + + "eConnectedSiteTag\022=.google.analytics.adm" + + "in.v1alpha.CreateConnectedSiteTagRequest" + + "\032>.google.analytics.admin.v1alpha.Create" + + "ConnectedSiteTagResponse\"5\202\323\344\223\002/\"*/v1alp" + + "ha/properties:createConnectedSiteTag:\001*\022" + + "\246\001\n\026DeleteConnectedSiteTag\022=.google.anal" + + "ytics.admin.v1alpha.DeleteConnectedSiteT" + + "agRequest\032\026.google.protobuf.Empty\"5\202\323\344\223\002" + + "/\"*/v1alpha/properties:deleteConnectedSi" + + "teTag:\001*\022\312\001\n\025ListConnectedSiteTags\022<.goo" + + "gle.analytics.admin.v1alpha.ListConnecte" + + "dSiteTagsRequest\032=.google.analytics.admi" + + "n.v1alpha.ListConnectedSiteTagsResponse\"" + + "4\202\323\344\223\002.\")/v1alpha/properties:listConnect" + + "edSiteTags:\001*\022\327\001\n\031FetchConnectedGa4Prope" + + "rty\022@.google.analytics.admin.v1alpha.Fet" + + "chConnectedGa4PropertyRequest\032A.google.a" + + "nalytics.admin.v1alpha.FetchConnectedGa4" + + "PropertyResponse\"5\202\323\344\223\002/\022-/v1alpha/prope" + + "rties:fetchConnectedGa4Property\022\260\001\n\016GetA" + + "dSenseLink\0225.google.analytics.admin.v1al" + + "pha.GetAdSenseLinkRequest\032+.google.analy" + + "tics.admin.v1alpha.AdSenseLink\":\332A\004name\202" + + "\323\344\223\002-\022+/v1alpha/{name=properties/*/adSen" + + "seLinks/*}\022\323\001\n\021CreateAdSenseLink\0228.googl" + + "e.analytics.admin.v1alpha.CreateAdSenseL" + + "inkRequest\032+.google.analytics.admin.v1al" + + "pha.AdSenseLink\"W\332A\023parent,adsense_link\202" + + "\323\344\223\002;\"+/v1alpha/{parent=properties/*}/ad" + + "SenseLinks:\014adsense_link\022\241\001\n\021DeleteAdSen" + + "seLink\0228.google.analytics.admin.v1alpha." + + "DeleteAdSenseLinkRequest\032\026.google.protob" + + "uf.Empty\":\332A\004name\202\323\344\223\002-*+/v1alpha/{name=" + + "properties/*/adSenseLinks/*}\022\303\001\n\020ListAdS" + + "enseLinks\0227.google.analytics.admin.v1alp" + + "ha.ListAdSenseLinksRequest\0328.google.anal" + + "ytics.admin.v1alpha.ListAdSenseLinksResp" + + "onse\"<\332A\006parent\202\323\344\223\002-\022+/v1alpha/{parent=" + + "properties/*}/adSenseLinks\022\316\001\n\022GetEventC" + + "reateRule\0229.google.analytics.admin.v1alp" + + "ha.GetEventCreateRuleRequest\032/.google.an" + + "alytics.admin.v1alpha.EventCreateRule\"L\332" + + "A\004name\202\323\344\223\002?\022=/v1alpha/{name=properties/" + + "*/dataStreams/*/eventCreateRules/*}\022\341\001\n\024" + + "ListEventCreateRules\022;.google.analytics." + + "admin.v1alpha.ListEventCreateRulesReques" + + "t\032<.google.analytics.admin.v1alpha.ListE" + + "ventCreateRulesResponse\"N\332A\006parent\202\323\344\223\002?" + + "\022=/v1alpha/{parent=properties/*/dataStre" + + "ams/*}/eventCreateRules\022\373\001\n\025CreateEventC" + + "reateRule\022<.google.analytics.admin.v1alp" + + "ha.CreateEventCreateRuleRequest\032/.google" + + ".analytics.admin.v1alpha.EventCreateRule" + + "\"s\332A\030parent,event_create_rule\202\323\344\223\002R\"=/v1" + + "alpha/{parent=properties/*/dataStreams/*" + + "}/eventCreateRules:\021event_create_rule\022\223\002" + + "\n\025UpdateEventCreateRule\022<.google.analyti" + + "cs.admin.v1alpha.UpdateEventCreateRuleRe" + + "quest\032/.google.analytics.admin.v1alpha.E" + + "ventCreateRule\"\212\001\332A\035event_create_rule,up" + + "date_mask\202\323\344\223\002d2O/v1alpha/{event_create_" + + "rule.name=properties/*/dataStreams/*/eve" + + "ntCreateRules/*}:\021event_create_rule\022\273\001\n\025" + + "DeleteEventCreateRule\022<.google.analytics" + + ".admin.v1alpha.DeleteEventCreateRuleRequ" + + "est\032\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223" + + "\002?*=/v1alpha/{name=properties/*/dataStre" + + "ams/*/eventCreateRules/*}\022\272\002\n\033UpdateData" + + "RedactionSettings\022B.google.analytics.adm" + + "in.v1alpha.UpdateDataRedactionSettingsRe" + + "quest\0325.google.analytics.admin.v1alpha.D" + + "ataRedactionSettings\"\237\001\332A#data_redaction" + + "_settings,update_mask\202\323\344\223\002s2X/v1alpha/{d" + + "ata_redaction_settings.name=properties/*" + + "/dataStreams/*/dataRedactionSettings}:\027d" + + "ata_redaction_settings\022\343\001\n\030GetDataRedact" + + "ionSettings\022?.google.analytics.admin.v1a" + + "lpha.GetDataRedactionSettingsRequest\0325.g" + + "oogle.analytics.admin.v1alpha.DataRedact" + + "ionSettings\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{na" + + "me=properties/*/dataStreams/*/dataRedact" + + "ionSettings}\022\306\001\n\024CreateRollupProperty\022;." + + "google.analytics.admin.v1alpha.CreateRol" + + "lupPropertyRequest\032<.google.analytics.ad" + + "min.v1alpha.CreateRollupPropertyResponse" + + "\"3\202\323\344\223\002-\"(/v1alpha/properties:createRoll" + + "upProperty:\001*\022\344\001\n\033GetRollupPropertySourc" + + "eLink\022B.google.analytics.admin.v1alpha.G" + + "etRollupPropertySourceLinkRequest\0328.goog" + + "le.analytics.admin.v1alpha.RollupPropert" + + "ySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{na" + + "me=properties/*/rollupPropertySourceLink" + + "s/*}\022\367\001\n\035ListRollupPropertySourceLinks\022D" + + ".google.analytics.admin.v1alpha.ListRoll" + + "upPropertySourceLinksRequest\032E.google.an" + + "alytics.admin.v1alpha.ListRollupProperty" + + "SourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228/v" + + "1alpha/{parent=properties/*}/rollupPrope" + + "rtySourceLinks\022\246\002\n\036CreateRollupPropertyS" + + "ourceLink\022E.google.analytics.admin.v1alp" + + "ha.CreateRollupPropertySourceLinkRequest" + + "\0328.google.analytics.admin.v1alpha.Rollup" + + "PropertySourceLink\"\202\001\332A\"parent,rollup_pr" + + "operty_source_link\202\323\344\223\002W\"8/v1alpha/{pare" + + "nt=properties/*}/rollupPropertySourceLin" + + "ks:\033rollup_property_source_link\022\310\001\n\036Dele" + + "teRollupPropertySourceLink\022E.google.anal" + + "ytics.admin.v1alpha.DeleteRollupProperty" + + "SourceLinkRequest\032\026.google.protobuf.Empt" + + "y\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=propert" + + "ies/*/rollupPropertySourceLinks/*}\022\272\001\n\021C" + + "reateSubproperty\0228.google.analytics.admi" + + "n.v1alpha.CreateSubpropertyRequest\0329.goo" + + "gle.analytics.admin.v1alpha.CreateSubpro" + + "pertyResponse\"0\202\323\344\223\002*\"%/v1alpha/properti" + + "es:createSubproperty:\001*\022\302\001\n\034DeleteSubpro" + + "pertyEventFilter\022C.google.analytics.admi" + + "n.v1alpha.DeleteSubpropertyEventFilterRe" + + "quest\032\026.google.protobuf.Empty\"E\332A\004name\202\323" + + "\344\223\0028*6/v1alpha/{name=properties/*/subpro" + + "pertyEventFilters/*}\022\227\002\n\034CreateSubproper" + + "tyEventFilter\022C.google.analytics.admin.v" + + "1alpha.CreateSubpropertyEventFilterReque" + + "st\0326.google.analytics.admin.v1alpha.Subp" + + "ropertyEventFilter\"z\332A\037parent,subpropert" + + "y_event_filter\202\323\344\223\002R\"6/v1alpha/{parent=p" + + "roperties/*}/subpropertyEventFilters:\030su" + + "bproperty_event_filter\032\374\001\312A\035analyticsadm" + + "in.googleapis.com\322A\330\001https://www.googlea" + + "pis.com/auth/analytics.edit,https://www." + + "googleapis.com/auth/analytics.manage.use" + + "rs,https://www.googleapis.com/auth/analy" + + "tics.manage.users.readonly,https://www.g" + + "oogleapis.com/auth/analytics.readonlyB{\n" + + "\"com.google.analytics.admin.v1alphaB\023Ana" + + "lyticsAdminProtoP\001Z>cloud.google.com/go/" + + "analytics/admin/apiv1alpha/adminpb;admin" + + "pbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(), + com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), + com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(), + com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(), + com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(), + com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(), + com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor, + new java.lang.String[] { + "Entity", + "Dimensions", + "Metrics", + "DateRanges", + "DimensionFilter", + "MetricFilter", + "Offset", + "Limit", + "TimeZone", + "OrderBys", + "ReturnEntityQuota", + "IncludeAllUsers", + "ExpandGroups", + }); + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor, + new java.lang.String[] { + "DimensionHeaders", "MetricHeaders", "Rows", "RowCount", "Quota", + }); + internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor, + new java.lang.String[] { + "Accounts", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor, + new java.lang.String[] { + "Account", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor, + new java.lang.String[] { + "Account", "RedirectUri", + }); + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor, + new java.lang.String[] { + "AccountTicketId", + }); + internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor, + new java.lang.String[] { + "Filter", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor, + new java.lang.String[] { + "Properties", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor, + new java.lang.String[] { + "Property", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor, + new java.lang.String[] { + "Property", + }); + internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "FirebaseLink", + }); + internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, + new java.lang.String[] { + "FirebaseLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "GoogleAdsLink", + }); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, + new java.lang.String[] { + "GoogleAdsLink", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, + new java.lang.String[] { + "GoogleAdsLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, + new java.lang.String[] { + "AccountSummaries", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor, + new java.lang.String[] { + "Property", "Acknowledgement", + }); + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, + new java.lang.String[] { + "Account", + "Property", + "ResourceType", + "Action", + "ActorEmail", + "EarliestChangeTime", + "LatestChangeTime", + "PageSize", + "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, + new java.lang.String[] { + "ChangeHistoryEvents", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Parent", "MeasurementProtocolSecret", + }); + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecret", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecrets", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor, + new java.lang.String[] { + "Parent", "SkadnetworkConversionValueSchema", + }); + internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor, + new java.lang.String[] { + "SkadnetworkConversionValueSchema", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor, + new java.lang.String[] { + "SkadnetworkConversionValueSchemas", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, + new java.lang.String[] { + "GoogleSignalsSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, + new java.lang.String[] { + "ConversionEvent", "Parent", + }); + internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor, + new java.lang.String[] { + "ConversionEvent", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, + new java.lang.String[] { + "ConversionEvents", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayVideo360AdvertiserLink", + }); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLink", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLinkProposals", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayVideo360AdvertiserLinkProposal", + }); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLink", + }); + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor, + new java.lang.String[] { + "SearchAds360Links", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor, + new java.lang.String[] { + "Parent", "SearchAds360Link", + }); + internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor, + new java.lang.String[] { + "SearchAds360Link", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomDimension", + }); + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "CustomDimension", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = + getDescriptor().getMessageTypes().get(75); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, + new java.lang.String[] { + "CustomDimensions", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomMetric", + }); + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, + new java.lang.String[] { + "CustomMetric", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, + new java.lang.String[] { + "CustomMetrics", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(82); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(83); + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(84); + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(85); + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor, + new java.lang.String[] { + "DataRetentionSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(86); + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor, + new java.lang.String[] { + "Parent", "DataStream", + }); + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(87); + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(88); + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor, + new java.lang.String[] { + "DataStream", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(89); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(90); + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor, + new java.lang.String[] { + "DataStreams", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(91); + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(92); + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor = + getDescriptor().getMessageTypes().get(93); + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor = + getDescriptor().getMessageTypes().get(94); + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor, + new java.lang.String[] { + "Audiences", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(95); + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor, + new java.lang.String[] { + "Parent", "Audience", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(96); + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor, + new java.lang.String[] { + "Audience", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor = + getDescriptor().getMessageTypes().get(97); + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(98); + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(99); + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor, + new java.lang.String[] { + "AttributionSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(100); + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(101); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Names", + }); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(102); + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", + }); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(103); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(104); + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(105); + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor, + new java.lang.String[] { + "Parent", "AccessBinding", + }); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(106); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(107); + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", + }); + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(108); + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor, + new java.lang.String[] { + "AccessBinding", + }); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(109); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor = + getDescriptor().getMessageTypes().get(110); + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor, + new java.lang.String[] { + "AccessBindings", + }); + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor = + getDescriptor().getMessageTypes().get(111); + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor = + getDescriptor().getMessageTypes().get(112); + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor, + new java.lang.String[] { + "Parent", "Requests", + }); + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(113); + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "Parent", "ExpandedDataSet", + }); + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(114); + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "ExpandedDataSet", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(115); + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor = + getDescriptor().getMessageTypes().get(116); + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor = + getDescriptor().getMessageTypes().get(117); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor = + getDescriptor().getMessageTypes().get(118); + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor, + new java.lang.String[] { + "ExpandedDataSets", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(119); + internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor, + new java.lang.String[] { + "Parent", "ChannelGroup", + }); + internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(120); + internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor, + new java.lang.String[] { + "ChannelGroup", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(121); + internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor = + getDescriptor().getMessageTypes().get(122); + internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor = + getDescriptor().getMessageTypes().get(123); + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor = + getDescriptor().getMessageTypes().get(124); + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor, + new java.lang.String[] { + "ChannelGroups", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor = + getDescriptor().getMessageTypes().get(125); + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor, + new java.lang.String[] { + "Property", "OptOut", + }); + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor = + getDescriptor().getMessageTypes().get(126); + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor = + getDescriptor().getMessageTypes().get(127); + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor, + new java.lang.String[] { + "Property", + }); + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor = + getDescriptor().getMessageTypes().get(128); + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor, + new java.lang.String[] { + "OptOut", + }); + internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(129); + internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(130); + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(131); + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor, + new java.lang.String[] { + "BigqueryLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(132); + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(133); + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor, + new java.lang.String[] { + "EnhancedMeasurementSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(134); + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(135); + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor, + new java.lang.String[] { + "DataRedactionSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor = + getDescriptor().getMessageTypes().get(136); + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor, + new java.lang.String[] { + "Property", "ConnectedSiteTag", + }); + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor = + getDescriptor().getMessageTypes().get(137); + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor = + getDescriptor().getMessageTypes().get(138); + internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor, + new java.lang.String[] { + "Property", "TagId", + }); + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor = + getDescriptor().getMessageTypes().get(139); + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor, + new java.lang.String[] { + "Property", + }); + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor = + getDescriptor().getMessageTypes().get(140); + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor, + new java.lang.String[] { + "ConnectedSiteTags", + }); + internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(141); + internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "AdsenseLink", + }); + internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(142); + internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(143); + internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(144); + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(145); + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor, + new java.lang.String[] { + "AdsenseLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(146); + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor, + new java.lang.String[] { + "Property", + }); + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor = + getDescriptor().getMessageTypes().get(147); + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor, + new java.lang.String[] { + "Property", + }); + internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(148); + internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor, + new java.lang.String[] { + "Parent", "EventCreateRule", + }); + internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(149); + internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor, + new java.lang.String[] { + "EventCreateRule", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(150); + internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor = + getDescriptor().getMessageTypes().get(151); + internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor = + getDescriptor().getMessageTypes().get(152); + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor = + getDescriptor().getMessageTypes().get(153); + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor, + new java.lang.String[] { + "EventCreateRules", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(154); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor, + new java.lang.String[] { + "RollupProperty", "SourceProperties", + }); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor = + getDescriptor().getMessageTypes().get(155); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor, + new java.lang.String[] { + "RollupProperty", "RollupPropertySourceLinks", + }); + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(156); + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(157); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(158); + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor, + new java.lang.String[] { + "RollupPropertySourceLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(159); + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "RollupPropertySourceLink", + }); + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(160); + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(161); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor, + new java.lang.String[] { + "Parent", "Subproperty", "SubpropertyEventFilter", + }); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor = + getDescriptor().getMessageTypes().get(162); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor, + new java.lang.String[] { + "Subproperty", "SubpropertyEventFilter", + }); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(163); + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "Parent", "SubpropertyEventFilter", + }); + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(164); + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor = + getDescriptor().getMessageTypes().get(165); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor = + getDescriptor().getMessageTypes().get(166); + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor, + new java.lang.String[] { + "SubpropertyEventFilters", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(167); + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "SubpropertyEventFilter", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor = + getDescriptor().getMessageTypes().get(168); + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(); + com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); + com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(); + com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(); + com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(); + com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(); + com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 000000000000..f72b565ed157 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,707 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class ApproveDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private ApproveDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApproveDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + result = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ApproveDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ApproveDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public ApproveDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 000000000000..e32ede28ecd9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java new file mode 100644 index 000000000000..15b8249649aa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java @@ -0,0 +1,824 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} + */ +public final class ApproveDisplayVideo360AdvertiserLinkProposalResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() to construct. + private ApproveDisplayVideo360AdvertiserLinkProposalResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApproveDisplayVideo360AdvertiserLinkProposalResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .class, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .Builder.class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + + 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 (displayVideo360AdvertiserLink_ != null) { + output.writeMessage(1, getDisplayVideo360AdvertiserLink()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (displayVideo360AdvertiserLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getDisplayVideo360AdvertiserLink()); + } + 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse other = + (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + obj; + + if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) + return false; + if (hasDisplayVideo360AdvertiserLink()) { + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + 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 (hasDisplayVideo360AdvertiserLink()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse.class, + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayVideo360AdvertiserLink_ = null; + if (displayVideo360AdvertiserLinkBuilder_ != null) { + displayVideo360AdvertiserLinkBuilder_.dispose(); + displayVideo360AdvertiserLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + build() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + result = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayVideo360AdvertiserLink_ = + displayVideo360AdvertiserLinkBuilder_ == null + ? displayVideo360AdvertiserLink_ + : displayVideo360AdvertiserLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + other) { + if (other + == com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .getDefaultInstance()) return this; + if (other.hasDisplayVideo360AdvertiserLink()) { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + public boolean hasDisplayVideo360AdvertiserLink() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } else { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLink_ = value; + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = builderForValue.build(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && displayVideo360AdvertiserLink_ != null + && displayVideo360AdvertiserLink_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()) { + getDisplayVideo360AdvertiserLinkBuilder().mergeFrom(value); + } else { + displayVideo360AdvertiserLink_ = value; + } + } else { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + bitField0_ = (bitField0_ & ~0x00000001); + displayVideo360AdvertiserLink_ = null; + if (displayVideo360AdvertiserLinkBuilder_ != null) { + displayVideo360AdvertiserLinkBuilder_.dispose(); + displayVideo360AdvertiserLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ != null) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + getDisplayVideo360AdvertiserLink(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLink_ = null; + } + return displayVideo360AdvertiserLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + private static final com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ApproveDisplayVideo360AdvertiserLinkProposalResponse>() { + @java.lang.Override + public ApproveDisplayVideo360AdvertiserLinkProposalResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java new file mode 100644 index 000000000000..1226fa86151a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java @@ -0,0 +1,71 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java new file mode 100644 index 000000000000..7d3988dd8907 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java @@ -0,0 +1,639 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ArchiveAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveAudienceRequest} + */ +public final class ArchiveAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + ArchiveAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveAudienceRequest.newBuilder() to construct. + private ArchiveAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveAudienceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveAudienceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.ArchiveAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest other = + (com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ArchiveAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + com.google.analytics.admin.v1alpha.ArchiveAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest build() { + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result = + new com.google.analytics.admin.v1alpha.ArchiveAudienceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.ArchiveAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..7816f36047bb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ArchiveAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveAudienceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java new file mode 100644 index 000000000000..070668f5f932 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ArchiveCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} + */ +public final class ArchiveCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + ArchiveCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomDimensionRequest.newBuilder() to construct. + private ArchiveCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.ArchiveCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ArchiveCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.ArchiveCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..f2b1854217ae --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ArchiveCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java new file mode 100644 index 000000000000..14f6ae924dac --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ArchiveCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} + */ +public final class ArchiveCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + ArchiveCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomMetricRequest.newBuilder() to construct. + private ArchiveCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.ArchiveCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ArchiveCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.ArchiveCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..e261b95ccb0b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ArchiveCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java new file mode 100644 index 000000000000..14d8fcdda192 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java @@ -0,0 +1,2361 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The attribution settings used for a given property. This is a singleton
+ * resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AttributionSettings} + */ +public final class AttributionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AttributionSettings) + AttributionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use AttributionSettings.newBuilder() to construct. + private AttributionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AttributionSettings() { + name_ = ""; + acquisitionConversionEventLookbackWindow_ = 0; + otherConversionEventLookbackWindow_ = 0; + reportingAttributionModel_ = 0; + adsWebConversionDataExportScope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AttributionSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AttributionSettings.class, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder.class); + } + + /** + * + * + *
+   * How far back in time events should be considered for inclusion in a
+   * converting path which leads to the first install of an app or the first
+   * visit to a site.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow} + */ + public enum AcquisitionConversionEventLookbackWindow + implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED(0), + /** + * + * + *
+     * 7-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + */ + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS(1), + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + */ + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * 7-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; + */ + public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS_VALUE = 1; + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; + */ + public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AcquisitionConversionEventLookbackWindow 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 AcquisitionConversionEventLookbackWindow forNumber(int value) { + switch (value) { + case 0: + return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + case 1: + return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS; + case 2: + return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap< + AcquisitionConversionEventLookbackWindow> + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap< + AcquisitionConversionEventLookbackWindow>() { + public AcquisitionConversionEventLookbackWindow findValueByNumber(int number) { + return AcquisitionConversionEventLookbackWindow.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AcquisitionConversionEventLookbackWindow[] VALUES = values(); + + public static AcquisitionConversionEventLookbackWindow valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AcquisitionConversionEventLookbackWindow(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow) + } + + /** + * + * + *
+   * How far back in time events should be considered for inclusion in a
+   * converting path for all conversions other than first app install/first site
+   * visit.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow} + */ + public enum OtherConversionEventLookbackWindow + implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED(0), + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS(1), + /** + * + * + *
+     * 60-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS(2), + /** + * + * + *
+     * 90-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + */ + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Lookback window size unspecified.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * 30-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS_VALUE = 1; + /** + * + * + *
+     * 60-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS_VALUE = 2; + /** + * + * + *
+     * 90-day lookback window.
+     * 
+ * + * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; + */ + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS_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 OtherConversionEventLookbackWindow 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 OtherConversionEventLookbackWindow forNumber(int value) { + switch (value) { + case 0: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; + case 1: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS; + case 2: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS; + case 3: + return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap< + OtherConversionEventLookbackWindow> + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OtherConversionEventLookbackWindow findValueByNumber(int number) { + return OtherConversionEventLookbackWindow.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final OtherConversionEventLookbackWindow[] VALUES = values(); + + public static OtherConversionEventLookbackWindow valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OtherConversionEventLookbackWindow(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow) + } + + /** + * + * + *
+   * The reporting attribution model used to calculate conversion credit in this
+   * property's reports.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel} + */ + public enum ReportingAttributionModel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Reporting attribution model unspecified.
+     * 
+ * + * REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + */ + REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED(0), + /** + * + * + *
+     * Data-driven attribution distributes credit for the conversion based on
+     * data for each conversion event. Each Data-driven model is specific to
+     * each advertiser and each conversion event.
+     * Previously CROSS_CHANNEL_DATA_DRIVEN
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; + */ + PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN(1), + /** + * + * + *
+     * Ignores direct traffic and attributes 100% of the conversion value to the
+     * last channel that the customer clicked through (or engaged view through
+     * for YouTube) before converting.
+     * Previously CROSS_CHANNEL_LAST_CLICK
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; + */ + PAID_AND_ORGANIC_CHANNELS_LAST_CLICK(2), + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Gives all credit for the conversion to the first channel that a customer
+     * clicked (or engaged view through for YouTube) before converting.
+     * Previously CROSS_CHANNEL_FIRST_CLICK
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; + */ + PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK(3), + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Distributes the credit for the conversion equally across all the channels
+     * a customer clicked (or engaged view through for YouTube) before
+     * converting.
+     * Previously CROSS_CHANNEL_LINEAR
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; + */ + PAID_AND_ORGANIC_CHANNELS_LINEAR(4), + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Attributes 40% credit to the first and last interaction, and the
+     * remaining 20% credit is distributed evenly to the middle interactions.
+     * Previously CROSS_CHANNEL_POSITION_BASED
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; + */ + PAID_AND_ORGANIC_CHANNELS_POSITION_BASED(5), + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Gives more credit to the touchpoints that happened closer in time to
+     * the conversion.
+     * Previously CROSS_CHANNEL_TIME_DECAY
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; + */ + PAID_AND_ORGANIC_CHANNELS_TIME_DECAY(6), + /** + * + * + *
+     * Attributes 100% of the conversion value to the last Google Paid channel
+     * that the customer clicked through before converting.
+     * Previously ADS_PREFERRED_LAST_CLICK
+     * 
+ * + * GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; + */ + GOOGLE_PAID_CHANNELS_LAST_CLICK(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Reporting attribution model unspecified.
+     * 
+ * + * REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; + */ + public static final int REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Data-driven attribution distributes credit for the conversion based on
+     * data for each conversion event. Each Data-driven model is specific to
+     * each advertiser and each conversion event.
+     * Previously CROSS_CHANNEL_DATA_DRIVEN
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; + */ + public static final int PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN_VALUE = 1; + /** + * + * + *
+     * Ignores direct traffic and attributes 100% of the conversion value to the
+     * last channel that the customer clicked through (or engaged view through
+     * for YouTube) before converting.
+     * Previously CROSS_CHANNEL_LAST_CLICK
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; + */ + public static final int PAID_AND_ORGANIC_CHANNELS_LAST_CLICK_VALUE = 2; + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Gives all credit for the conversion to the first channel that a customer
+     * clicked (or engaged view through for YouTube) before converting.
+     * Previously CROSS_CHANNEL_FIRST_CLICK
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; + */ + public static final int PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK_VALUE = 3; + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Distributes the credit for the conversion equally across all the channels
+     * a customer clicked (or engaged view through for YouTube) before
+     * converting.
+     * Previously CROSS_CHANNEL_LINEAR
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; + */ + public static final int PAID_AND_ORGANIC_CHANNELS_LINEAR_VALUE = 4; + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Attributes 40% credit to the first and last interaction, and the
+     * remaining 20% credit is distributed evenly to the middle interactions.
+     * Previously CROSS_CHANNEL_POSITION_BASED
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; + */ + public static final int PAID_AND_ORGANIC_CHANNELS_POSITION_BASED_VALUE = 5; + /** + * + * + *
+     * Starting in June 2023, new properties can no longer use this model.
+     * See
+     * [Analytics
+     * Help](https://support.google.com/analytics/answer/9164320#040623)
+     * for more details.
+     * Starting in September 2023, we will sunset this model for all properties.
+     *
+     * Gives more credit to the touchpoints that happened closer in time to
+     * the conversion.
+     * Previously CROSS_CHANNEL_TIME_DECAY
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; + */ + public static final int PAID_AND_ORGANIC_CHANNELS_TIME_DECAY_VALUE = 6; + /** + * + * + *
+     * Attributes 100% of the conversion value to the last Google Paid channel
+     * that the customer clicked through before converting.
+     * Previously ADS_PREFERRED_LAST_CLICK
+     * 
+ * + * GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; + */ + public static final int GOOGLE_PAID_CHANNELS_LAST_CLICK_VALUE = 7; + + 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 ReportingAttributionModel 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 ReportingAttributionModel forNumber(int value) { + switch (value) { + case 0: + return REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; + case 1: + return PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN; + case 2: + return PAID_AND_ORGANIC_CHANNELS_LAST_CLICK; + case 3: + return PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK; + case 4: + return PAID_AND_ORGANIC_CHANNELS_LINEAR; + case 5: + return PAID_AND_ORGANIC_CHANNELS_POSITION_BASED; + case 6: + return PAID_AND_ORGANIC_CHANNELS_TIME_DECAY; + case 7: + return GOOGLE_PAID_CHANNELS_LAST_CLICK; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ReportingAttributionModel findValueByNumber(int number) { + return ReportingAttributionModel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final ReportingAttributionModel[] VALUES = values(); + + public static ReportingAttributionModel valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ReportingAttributionModel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel) + } + + /** + * + * + *
+   * The Conversion Export Scope for data exported to linked Ads Accounts.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope} + */ + public enum AdsWebConversionDataExportScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; + */ + ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * No data export scope selected yet.
+     * Export scope can never be changed back to this value.
+     * 
+ * + * NOT_SELECTED_YET = 1; + */ + NOT_SELECTED_YET(1), + /** + * + * + *
+     * Paid and organic channels are eligible to receive conversion credit, but
+     * only credit assigned to Google Ads channels will appear in your Ads
+     * accounts. To learn more, see [Paid and Organic
+     * channels](https://support.google.com/analytics/answer/10632359).
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS = 2; + */ + PAID_AND_ORGANIC_CHANNELS(2), + /** + * + * + *
+     * Only Google Ads paid channels are eligible to receive conversion credit.
+     * To learn more, see [Google Paid
+     * channels](https://support.google.com/analytics/answer/10632359).
+     * 
+ * + * GOOGLE_PAID_CHANNELS = 3; + */ + GOOGLE_PAID_CHANNELS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; + */ + public static final int ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * No data export scope selected yet.
+     * Export scope can never be changed back to this value.
+     * 
+ * + * NOT_SELECTED_YET = 1; + */ + public static final int NOT_SELECTED_YET_VALUE = 1; + /** + * + * + *
+     * Paid and organic channels are eligible to receive conversion credit, but
+     * only credit assigned to Google Ads channels will appear in your Ads
+     * accounts. To learn more, see [Paid and Organic
+     * channels](https://support.google.com/analytics/answer/10632359).
+     * 
+ * + * PAID_AND_ORGANIC_CHANNELS = 2; + */ + public static final int PAID_AND_ORGANIC_CHANNELS_VALUE = 2; + /** + * + * + *
+     * Only Google Ads paid channels are eligible to receive conversion credit.
+     * To learn more, see [Google Paid
+     * channels](https://support.google.com/analytics/answer/10632359).
+     * 
+ * + * GOOGLE_PAID_CHANNELS = 3; + */ + public static final int GOOGLE_PAID_CHANNELS_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 AdsWebConversionDataExportScope 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 AdsWebConversionDataExportScope forNumber(int value) { + switch (value) { + case 0: + return ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; + case 1: + return NOT_SELECTED_YET; + case 2: + return PAID_AND_ORGANIC_CHANNELS; + case 3: + return GOOGLE_PAID_CHANNELS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdsWebConversionDataExportScope findValueByNumber(int number) { + return AdsWebConversionDataExportScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final AdsWebConversionDataExportScope[] VALUES = values(); + + public static AdsWebConversionDataExportScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdsWebConversionDataExportScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER = 2; + private int acquisitionConversionEventLookbackWindow_ = 0; + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion
+   * events. The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public int getAcquisitionConversionEventLookbackWindowValue() { + return acquisitionConversionEventLookbackWindow_; + } + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion
+   * events. The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + getAcquisitionConversionEventLookbackWindow() { + com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.forNumber( + acquisitionConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.UNRECOGNIZED + : result; + } + + public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER = 3; + private int otherConversionEventLookbackWindow_ = 0; + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion
+   * events. The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. + */ + @java.lang.Override + public int getOtherConversionEventLookbackWindowValue() { + return otherConversionEventLookbackWindow_; + } + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion
+   * events. The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The otherConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + getOtherConversionEventLookbackWindow() { + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .OtherConversionEventLookbackWindow.forNumber(otherConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + .UNRECOGNIZED + : result; + } + + public static final int REPORTING_ATTRIBUTION_MODEL_FIELD_NUMBER = 4; + private int reportingAttributionModel_ = 0; + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion
+   * credit in this property's reports.
+   *
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportingAttributionModel. + */ + @java.lang.Override + public int getReportingAttributionModelValue() { + return reportingAttributionModel_; + } + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion
+   * credit in this property's reports.
+   *
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingAttributionModel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + getReportingAttributionModel() { + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.forNumber( + reportingAttributionModel_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .UNRECOGNIZED + : result; + } + + public static final int ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_FIELD_NUMBER = 5; + private int adsWebConversionDataExportScope_ = 0; + /** + * + * + *
+   * Required. The Conversion Export Scope for data exported to linked Ads
+   * Accounts.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for adsWebConversionDataExportScope. + */ + @java.lang.Override + public int getAdsWebConversionDataExportScopeValue() { + return adsWebConversionDataExportScope_; + } + /** + * + * + *
+   * Required. The Conversion Export Scope for data exported to linked Ads
+   * Accounts.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adsWebConversionDataExportScope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + getAdsWebConversionDataExportScope() { + com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope result = + com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + .forNumber(adsWebConversionDataExportScope_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + .UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (acquisitionConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + .ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, acquisitionConversionEventLookbackWindow_); + } + if (otherConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + .OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, otherConversionEventLookbackWindow_); + } + if (reportingAttributionModel_ + != com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, reportingAttributionModel_); + } + if (adsWebConversionDataExportScope_ + != com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + .ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, adsWebConversionDataExportScope_); + } + 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 (acquisitionConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + .ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 2, acquisitionConversionEventLookbackWindow_); + } + if (otherConversionEventLookbackWindow_ + != com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + .OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 3, otherConversionEventLookbackWindow_); + } + if (reportingAttributionModel_ + != com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, reportingAttributionModel_); + } + if (adsWebConversionDataExportScope_ + != com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + .ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize( + 5, adsWebConversionDataExportScope_); + } + 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.admin.v1alpha.AttributionSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AttributionSettings other = + (com.google.analytics.admin.v1alpha.AttributionSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (acquisitionConversionEventLookbackWindow_ + != other.acquisitionConversionEventLookbackWindow_) return false; + if (otherConversionEventLookbackWindow_ != other.otherConversionEventLookbackWindow_) + return false; + if (reportingAttributionModel_ != other.reportingAttributionModel_) return false; + if (adsWebConversionDataExportScope_ != other.adsWebConversionDataExportScope_) 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) + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + acquisitionConversionEventLookbackWindow_; + hash = (37 * hash) + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + otherConversionEventLookbackWindow_; + hash = (37 * hash) + REPORTING_ATTRIBUTION_MODEL_FIELD_NUMBER; + hash = (53 * hash) + reportingAttributionModel_; + hash = (37 * hash) + ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + adsWebConversionDataExportScope_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AttributionSettings 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 attribution settings used for a given property. This is a singleton
+   * resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AttributionSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AttributionSettings) + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AttributionSettings.class, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AttributionSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + acquisitionConversionEventLookbackWindow_ = 0; + otherConversionEventLookbackWindow_ = 0; + reportingAttributionModel_ = 0; + adsWebConversionDataExportScope_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings build() { + com.google.analytics.admin.v1alpha.AttributionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings buildPartial() { + com.google.analytics.admin.v1alpha.AttributionSettings result = + new com.google.analytics.admin.v1alpha.AttributionSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AttributionSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acquisitionConversionEventLookbackWindow_ = + acquisitionConversionEventLookbackWindow_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.otherConversionEventLookbackWindow_ = otherConversionEventLookbackWindow_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reportingAttributionModel_ = reportingAttributionModel_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.adsWebConversionDataExportScope_ = adsWebConversionDataExportScope_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AttributionSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.AttributionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AttributionSettings other) { + if (other == com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.acquisitionConversionEventLookbackWindow_ != 0) { + setAcquisitionConversionEventLookbackWindowValue( + other.getAcquisitionConversionEventLookbackWindowValue()); + } + if (other.otherConversionEventLookbackWindow_ != 0) { + setOtherConversionEventLookbackWindowValue( + other.getOtherConversionEventLookbackWindowValue()); + } + if (other.reportingAttributionModel_ != 0) { + setReportingAttributionModelValue(other.getReportingAttributionModelValue()); + } + if (other.adsWebConversionDataExportScope_ != 0) { + setAdsWebConversionDataExportScopeValue(other.getAdsWebConversionDataExportScopeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + acquisitionConversionEventLookbackWindow_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + otherConversionEventLookbackWindow_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + reportingAttributionModel_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + adsWebConversionDataExportScope_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * string name = 1 [(.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. Resource name of this attribution settings resource.
+     * Format: properties/{property_id}/attributionSettings
+     * Example: "properties/1000/attributionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int acquisitionConversionEventLookbackWindow_ = 0; + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion
+     * events. The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public int getAcquisitionConversionEventLookbackWindowValue() { + return acquisitionConversionEventLookbackWindow_; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion
+     * events. The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for acquisitionConversionEventLookbackWindow + * to set. + * @return This builder for chaining. + */ + public Builder setAcquisitionConversionEventLookbackWindowValue(int value) { + acquisitionConversionEventLookbackWindow_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion
+     * events. The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The acquisitionConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + getAcquisitionConversionEventLookbackWindow() { + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.forNumber( + acquisitionConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion
+     * events. The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The acquisitionConversionEventLookbackWindow to set. + * @return This builder for chaining. + */ + public Builder setAcquisitionConversionEventLookbackWindow( + com.google.analytics.admin.v1alpha.AttributionSettings + .AcquisitionConversionEventLookbackWindow + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + acquisitionConversionEventLookbackWindow_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window configuration for acquisition conversion
+     * events. The default window size is 30 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAcquisitionConversionEventLookbackWindow() { + bitField0_ = (bitField0_ & ~0x00000002); + acquisitionConversionEventLookbackWindow_ = 0; + onChanged(); + return this; + } + + private int otherConversionEventLookbackWindow_ = 0; + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion
+     * events. The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. + */ + @java.lang.Override + public int getOtherConversionEventLookbackWindowValue() { + return otherConversionEventLookbackWindow_; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion
+     * events. The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for otherConversionEventLookbackWindow to + * set. + * @return This builder for chaining. + */ + public Builder setOtherConversionEventLookbackWindowValue(int value) { + otherConversionEventLookbackWindow_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion
+     * events. The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The otherConversionEventLookbackWindow. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + getOtherConversionEventLookbackWindow() { + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + result = + com.google.analytics.admin.v1alpha.AttributionSettings + .OtherConversionEventLookbackWindow.forNumber( + otherConversionEventLookbackWindow_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings + .OtherConversionEventLookbackWindow.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion
+     * events. The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The otherConversionEventLookbackWindow to set. + * @return This builder for chaining. + */ + public Builder setOtherConversionEventLookbackWindow( + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + otherConversionEventLookbackWindow_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The lookback window for all other, non-acquisition conversion
+     * events. The default window size is 90 days.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOtherConversionEventLookbackWindow() { + bitField0_ = (bitField0_ & ~0x00000004); + otherConversionEventLookbackWindow_ = 0; + onChanged(); + return this; + } + + private int reportingAttributionModel_ = 0; + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion
+     * credit in this property's reports.
+     *
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportingAttributionModel. + */ + @java.lang.Override + public int getReportingAttributionModelValue() { + return reportingAttributionModel_; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion
+     * credit in this property's reports.
+     *
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for reportingAttributionModel to set. + * @return This builder for chaining. + */ + public Builder setReportingAttributionModelValue(int value) { + reportingAttributionModel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion
+     * credit in this property's reports.
+     *
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingAttributionModel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + getReportingAttributionModel() { + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .forNumber(reportingAttributionModel_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion
+     * credit in this property's reports.
+     *
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The reportingAttributionModel to set. + * @return This builder for chaining. + */ + public Builder setReportingAttributionModel( + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + reportingAttributionModel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The reporting attribution model used to calculate conversion
+     * credit in this property's reports.
+     *
+     * Changing the attribution model will apply to both historical and future
+     * data. These changes will be reflected in reports with conversion and
+     * revenue data. User and session data will be unaffected.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearReportingAttributionModel() { + bitField0_ = (bitField0_ & ~0x00000008); + reportingAttributionModel_ = 0; + onChanged(); + return this; + } + + private int adsWebConversionDataExportScope_ = 0; + /** + * + * + *
+     * Required. The Conversion Export Scope for data exported to linked Ads
+     * Accounts.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for adsWebConversionDataExportScope. + */ + @java.lang.Override + public int getAdsWebConversionDataExportScopeValue() { + return adsWebConversionDataExportScope_; + } + /** + * + * + *
+     * Required. The Conversion Export Scope for data exported to linked Ads
+     * Accounts.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for adsWebConversionDataExportScope to set. + * @return This builder for chaining. + */ + public Builder setAdsWebConversionDataExportScopeValue(int value) { + adsWebConversionDataExportScope_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Conversion Export Scope for data exported to linked Ads
+     * Accounts.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adsWebConversionDataExportScope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + getAdsWebConversionDataExportScope() { + com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + result = + com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + .forNumber(adsWebConversionDataExportScope_); + return result == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The Conversion Export Scope for data exported to linked Ads
+     * Accounts.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The adsWebConversionDataExportScope to set. + * @return This builder for chaining. + */ + public Builder setAdsWebConversionDataExportScope( + com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + adsWebConversionDataExportScope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Conversion Export Scope for data exported to linked Ads
+     * Accounts.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdsWebConversionDataExportScope() { + bitField0_ = (bitField0_ & ~0x00000010); + adsWebConversionDataExportScope_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AttributionSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AttributionSettings) + private static final com.google.analytics.admin.v1alpha.AttributionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AttributionSettings(); + } + + public static com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AttributionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java new file mode 100644 index 000000000000..1d1d36e74b3a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java @@ -0,0 +1,190 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface AttributionSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AttributionSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this attribution settings resource.
+   * Format: properties/{property_id}/attributionSettings
+   * Example: "properties/1000/attributionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion
+   * events. The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. + */ + int getAcquisitionConversionEventLookbackWindowValue(); + /** + * + * + *
+   * Required. The lookback window configuration for acquisition conversion
+   * events. The default window size is 30 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The acquisitionConversionEventLookbackWindow. + */ + com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow + getAcquisitionConversionEventLookbackWindow(); + + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion
+   * events. The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. + */ + int getOtherConversionEventLookbackWindowValue(); + /** + * + * + *
+   * Required. The lookback window for all other, non-acquisition conversion
+   * events. The default window size is 90 days.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The otherConversionEventLookbackWindow. + */ + com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow + getOtherConversionEventLookbackWindow(); + + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion
+   * credit in this property's reports.
+   *
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for reportingAttributionModel. + */ + int getReportingAttributionModelValue(); + /** + * + * + *
+   * Required. The reporting attribution model used to calculate conversion
+   * credit in this property's reports.
+   *
+   * Changing the attribution model will apply to both historical and future
+   * data. These changes will be reflected in reports with conversion and
+   * revenue data. User and session data will be unaffected.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The reportingAttributionModel. + */ + com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel + getReportingAttributionModel(); + + /** + * + * + *
+   * Required. The Conversion Export Scope for data exported to linked Ads
+   * Accounts.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for adsWebConversionDataExportScope. + */ + int getAdsWebConversionDataExportScopeValue(); + /** + * + * + *
+   * Required. The Conversion Export Scope for data exported to linked Ads
+   * Accounts.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adsWebConversionDataExportScope. + */ + com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope + getAdsWebConversionDataExportScope(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java new file mode 100644 index 000000000000..3d040e189adc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java @@ -0,0 +1,2442 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a GA4 Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Audience} + */ +public final class Audience extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.Audience) + AudienceOrBuilder { + private static final long serialVersionUID = 0L; + // Use Audience.newBuilder() to construct. + private Audience(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Audience() { + name_ = ""; + displayName_ = ""; + description_ = ""; + exclusionDurationMode_ = 0; + filterClauses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Audience(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Audience.class, + com.google.analytics.admin.v1alpha.Audience.Builder.class); + } + + /** + * + * + *
+   * Specifies how long an exclusion lasts for users that meet the exclusion
+   * filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} + */ + public enum AudienceExclusionDurationMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Not specified.
+     * 
+ * + * AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + */ + AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * Exclude users from the Audience during periods when they meet the
+     * filter clause.
+     * 
+ * + * EXCLUDE_TEMPORARILY = 1; + */ + EXCLUDE_TEMPORARILY(1), + /** + * + * + *
+     * Exclude users from the Audience if they've ever met the filter clause.
+     * 
+ * + * EXCLUDE_PERMANENTLY = 2; + */ + EXCLUDE_PERMANENTLY(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Not specified.
+     * 
+ * + * AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; + */ + public static final int AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exclude users from the Audience during periods when they meet the
+     * filter clause.
+     * 
+ * + * EXCLUDE_TEMPORARILY = 1; + */ + public static final int EXCLUDE_TEMPORARILY_VALUE = 1; + /** + * + * + *
+     * Exclude users from the Audience if they've ever met the filter clause.
+     * 
+ * + * EXCLUDE_PERMANENTLY = 2; + */ + public static final int EXCLUDE_PERMANENTLY_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AudienceExclusionDurationMode 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 AudienceExclusionDurationMode forNumber(int value) { + switch (value) { + case 0: + return AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED; + case 1: + return EXCLUDE_TEMPORARILY; + case 2: + return EXCLUDE_PERMANENTLY; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AudienceExclusionDurationMode findValueByNumber(int number) { + return AudienceExclusionDurationMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.Audience.getDescriptor().getEnumTypes().get(0); + } + + private static final AudienceExclusionDurationMode[] VALUES = values(); + + public static AudienceExclusionDurationMode valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AudienceExclusionDurationMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. The display name of the Audience.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The display name of the Audience.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEMBERSHIP_DURATION_DAYS_FIELD_NUMBER = 4; + private int membershipDurationDays_ = 0; + /** + * + * + *
+   * Required. Immutable. The duration a user should stay in an Audience. It
+   * cannot be set to more than 540 days.
+   * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The membershipDurationDays. + */ + @java.lang.Override + public int getMembershipDurationDays() { + return membershipDurationDays_; + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 5; + private boolean adsPersonalizationEnabled_ = false; + /** + * + * + *
+   * Output only. It is automatically set by GA to false if this is an NPA
+   * Audience and is excluded from ads personalization.
+   * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public boolean getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_; + } + + public static final int EVENT_TRIGGER_FIELD_NUMBER = 6; + private com.google.analytics.admin.v1alpha.AudienceEventTrigger eventTrigger_; + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not
+   * set, no event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTrigger field is set. + */ + @java.lang.Override + public boolean hasEventTrigger() { + return eventTrigger_ != null; + } + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not
+   * set, no event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTrigger. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger() { + return eventTrigger_ == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() + : eventTrigger_; + } + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not
+   * set, no event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder + getEventTriggerOrBuilder() { + return eventTrigger_ == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() + : eventTrigger_; + } + + public static final int EXCLUSION_DURATION_MODE_FIELD_NUMBER = 7; + private int exclusionDurationMode_ = 0; + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the
+   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+   * ignored when there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for exclusionDurationMode. + */ + @java.lang.Override + public int getExclusionDurationModeValue() { + return exclusionDurationMode_; + } + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the
+   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+   * ignored when there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The exclusionDurationMode. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + getExclusionDurationMode() { + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.forNumber( + exclusionDurationMode_); + return result == null + ? com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.UNRECOGNIZED + : result; + } + + public static final int FILTER_CLAUSES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List filterClauses_; + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterClausesList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterClausesOrBuilderList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public int getFilterClausesCount() { + return filterClauses_.size(); + } + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index) { + return filterClauses_.get(index); + } + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder getFilterClausesOrBuilder( + int index) { + return filterClauses_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + if (membershipDurationDays_ != 0) { + output.writeInt32(4, membershipDurationDays_); + } + if (adsPersonalizationEnabled_ != false) { + output.writeBool(5, adsPersonalizationEnabled_); + } + if (eventTrigger_ != null) { + output.writeMessage(6, getEventTrigger()); + } + if (exclusionDurationMode_ + != com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + .AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, exclusionDurationMode_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + output.writeMessage(8, filterClauses_.get(i)); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + if (membershipDurationDays_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, membershipDurationDays_); + } + if (adsPersonalizationEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, adsPersonalizationEnabled_); + } + if (eventTrigger_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEventTrigger()); + } + if (exclusionDurationMode_ + != com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + .AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, exclusionDurationMode_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, filterClauses_.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.admin.v1alpha.Audience)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.Audience other = + (com.google.analytics.admin.v1alpha.Audience) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getMembershipDurationDays() != other.getMembershipDurationDays()) return false; + if (getAdsPersonalizationEnabled() != other.getAdsPersonalizationEnabled()) return false; + if (hasEventTrigger() != other.hasEventTrigger()) return false; + if (hasEventTrigger()) { + if (!getEventTrigger().equals(other.getEventTrigger())) return false; + } + if (exclusionDurationMode_ != other.exclusionDurationMode_) return false; + if (!getFilterClausesList().equals(other.getFilterClausesList())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MEMBERSHIP_DURATION_DAYS_FIELD_NUMBER; + hash = (53 * hash) + getMembershipDurationDays(); + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdsPersonalizationEnabled()); + if (hasEventTrigger()) { + hash = (37 * hash) + EVENT_TRIGGER_FIELD_NUMBER; + hash = (53 * hash) + getEventTrigger().hashCode(); + } + hash = (37 * hash) + EXCLUSION_DURATION_MODE_FIELD_NUMBER; + hash = (53 * hash) + exclusionDurationMode_; + if (getFilterClausesCount() > 0) { + hash = (37 * hash) + FILTER_CLAUSES_FIELD_NUMBER; + hash = (53 * hash) + getFilterClausesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Audience parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Audience parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Audience parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.Audience prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a GA4 Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Audience} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.Audience) + com.google.analytics.admin.v1alpha.AudienceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Audience.class, + com.google.analytics.admin.v1alpha.Audience.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.Audience.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + membershipDurationDays_ = 0; + adsPersonalizationEnabled_ = false; + eventTrigger_ = null; + if (eventTriggerBuilder_ != null) { + eventTriggerBuilder_.dispose(); + eventTriggerBuilder_ = null; + } + exclusionDurationMode_ = 0; + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + } else { + filterClauses_ = null; + filterClausesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience build() { + com.google.analytics.admin.v1alpha.Audience result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience buildPartial() { + com.google.analytics.admin.v1alpha.Audience result = + new com.google.analytics.admin.v1alpha.Audience(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.Audience result) { + if (filterClausesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.filterClauses_ = filterClauses_; + } else { + result.filterClauses_ = filterClausesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.Audience result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.membershipDurationDays_ = membershipDurationDays_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.eventTrigger_ = + eventTriggerBuilder_ == null ? eventTrigger_ : eventTriggerBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.exclusionDurationMode_ = exclusionDurationMode_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.Audience) { + return mergeFrom((com.google.analytics.admin.v1alpha.Audience) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.Audience other) { + if (other == com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getMembershipDurationDays() != 0) { + setMembershipDurationDays(other.getMembershipDurationDays()); + } + if (other.getAdsPersonalizationEnabled() != false) { + setAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasEventTrigger()) { + mergeEventTrigger(other.getEventTrigger()); + } + if (other.exclusionDurationMode_ != 0) { + setExclusionDurationModeValue(other.getExclusionDurationModeValue()); + } + if (filterClausesBuilder_ == null) { + if (!other.filterClauses_.isEmpty()) { + if (filterClauses_.isEmpty()) { + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureFilterClausesIsMutable(); + filterClauses_.addAll(other.filterClauses_); + } + onChanged(); + } + } else { + if (!other.filterClauses_.isEmpty()) { + if (filterClausesBuilder_.isEmpty()) { + filterClausesBuilder_.dispose(); + filterClausesBuilder_ = null; + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000080); + filterClausesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterClausesFieldBuilder() + : null; + } else { + filterClausesBuilder_.addAllMessages(other.filterClauses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + membershipDurationDays_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + adsPersonalizationEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + input.readMessage(getEventTriggerFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + exclusionDurationMode_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 66: + { + com.google.analytics.admin.v1alpha.AudienceFilterClause m = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterClause.parser(), + extensionRegistry); + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(m); + } else { + filterClausesBuilder_.addMessage(m); + } + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * string name = 1 [(.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. The resource name for this Audience resource.
+     * Format: properties/{propertyId}/audiences/{audienceId}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The display name of the Audience.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The display name of the Audience.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The display name of the Audience.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the Audience.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the Audience.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The description of the Audience.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int membershipDurationDays_; + /** + * + * + *
+     * Required. Immutable. The duration a user should stay in an Audience. It
+     * cannot be set to more than 540 days.
+     * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The membershipDurationDays. + */ + @java.lang.Override + public int getMembershipDurationDays() { + return membershipDurationDays_; + } + /** + * + * + *
+     * Required. Immutable. The duration a user should stay in an Audience. It
+     * cannot be set to more than 540 days.
+     * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The membershipDurationDays to set. + * @return This builder for chaining. + */ + public Builder setMembershipDurationDays(int value) { + + membershipDurationDays_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The duration a user should stay in an Audience. It
+     * cannot be set to more than 540 days.
+     * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearMembershipDurationDays() { + bitField0_ = (bitField0_ & ~0x00000008); + membershipDurationDays_ = 0; + onChanged(); + return this; + } + + private boolean adsPersonalizationEnabled_; + /** + * + * + *
+     * Output only. It is automatically set by GA to false if this is an NPA
+     * Audience and is excluded from ads personalization.
+     * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public boolean getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_; + } + /** + * + * + *
+     * Output only. It is automatically set by GA to false if this is an NPA
+     * Audience and is excluded from ads personalization.
+     * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The adsPersonalizationEnabled to set. + * @return This builder for chaining. + */ + public Builder setAdsPersonalizationEnabled(boolean value) { + + adsPersonalizationEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. It is automatically set by GA to false if this is an NPA
+     * Audience and is excluded from ads personalization.
+     * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdsPersonalizationEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + adsPersonalizationEnabled_ = false; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceEventTrigger eventTrigger_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventTrigger, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder> + eventTriggerBuilder_; + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTrigger field is set. + */ + public boolean hasEventTrigger() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTrigger. + */ + public com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger() { + if (eventTriggerBuilder_ == null) { + return eventTrigger_ == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() + : eventTrigger_; + } else { + return eventTriggerBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTrigger(com.google.analytics.admin.v1alpha.AudienceEventTrigger value) { + if (eventTriggerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTrigger_ = value; + } else { + eventTriggerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTrigger( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder builderForValue) { + if (eventTriggerBuilder_ == null) { + eventTrigger_ = builderForValue.build(); + } else { + eventTriggerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventTrigger( + com.google.analytics.admin.v1alpha.AudienceEventTrigger value) { + if (eventTriggerBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && eventTrigger_ != null + && eventTrigger_ + != com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance()) { + getEventTriggerBuilder().mergeFrom(value); + } else { + eventTrigger_ = value; + } + } else { + eventTriggerBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventTrigger() { + bitField0_ = (bitField0_ & ~0x00000020); + eventTrigger_ = null; + if (eventTriggerBuilder_ != null) { + eventTriggerBuilder_.dispose(); + eventTriggerBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder + getEventTriggerBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEventTriggerFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder + getEventTriggerOrBuilder() { + if (eventTriggerBuilder_ != null) { + return eventTriggerBuilder_.getMessageOrBuilder(); + } else { + return eventTrigger_ == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() + : eventTrigger_; + } + } + /** + * + * + *
+     * Optional. Specifies an event to log when a user joins the Audience. If not
+     * set, no event is logged when a user joins the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventTrigger, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder> + getEventTriggerFieldBuilder() { + if (eventTriggerBuilder_ == null) { + eventTriggerBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventTrigger, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder>( + getEventTrigger(), getParentForChildren(), isClean()); + eventTrigger_ = null; + } + return eventTriggerBuilder_; + } + + private int exclusionDurationMode_ = 0; + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the
+     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+     * ignored when there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for exclusionDurationMode. + */ + @java.lang.Override + public int getExclusionDurationModeValue() { + return exclusionDurationMode_; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the
+     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+     * ignored when there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for exclusionDurationMode to set. + * @return This builder for chaining. + */ + public Builder setExclusionDurationModeValue(int value) { + exclusionDurationMode_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the
+     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+     * ignored when there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The exclusionDurationMode. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + getExclusionDurationMode() { + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.forNumber( + exclusionDurationMode_); + return result == null + ? com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the
+     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+     * ignored when there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The exclusionDurationMode to set. + * @return This builder for chaining. + */ + public Builder setExclusionDurationMode( + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + exclusionDurationMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Specifies how long an exclusion lasts for users that meet the
+     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+     * ignored when there is no EXCLUDE filter clause in the Audience.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearExclusionDurationMode() { + bitField0_ = (bitField0_ & ~0x00000040); + exclusionDurationMode_ = 0; + onChanged(); + return this; + } + + private java.util.List filterClauses_ = + java.util.Collections.emptyList(); + + private void ensureFilterClausesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + filterClauses_ = + new java.util.ArrayList( + filterClauses_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterClause, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> + filterClausesBuilder_; + + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesList() { + if (filterClausesBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterClauses_); + } else { + return filterClausesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public int getFilterClausesCount() { + if (filterClausesBuilder_ == null) { + return filterClauses_.size(); + } else { + return filterClausesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, com.google.analytics.admin.v1alpha.AudienceFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.set(index, value); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.set(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses(com.google.analytics.admin.v1alpha.AudienceFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, com.google.analytics.admin.v1alpha.AudienceFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(index, value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addAllFilterClauses( + java.lang.Iterable + values) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterClauses_); + onChanged(); + } else { + filterClausesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder clearFilterClauses() { + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + filterClausesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder removeFilterClauses(int index) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.remove(index); + onChanged(); + } else { + filterClausesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder getFilterClausesBuilder( + int index) { + return getFilterClausesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder + getFilterClausesOrBuilder(int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> + getFilterClausesOrBuilderList() { + if (filterClausesBuilder_ != null) { + return filterClausesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterClauses_); + } + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder + addFilterClausesBuilder() { + return getFilterClausesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder addFilterClausesBuilder( + int index) { + return getFilterClausesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Immutable. Unordered list. Filter clauses that define the
+     * Audience. All clauses will be AND’ed together.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesBuilderList() { + return getFilterClausesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterClause, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> + getFilterClausesFieldBuilder() { + if (filterClausesBuilder_ == null) { + filterClausesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterClause, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder>( + filterClauses_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + filterClauses_ = null; + } + return filterClausesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.Audience) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.Audience) + private static final com.google.analytics.admin.v1alpha.Audience DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.Audience(); + } + + public static com.google.analytics.admin.v1alpha.Audience getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Audience parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java new file mode 100644 index 000000000000..8c74e2e7d173 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java @@ -0,0 +1,7867 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A specific filter for a single dimension or metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} + */ +public final class AudienceDimensionOrMetricFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + AudienceDimensionOrMetricFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceDimensionOrMetricFilter.newBuilder() to construct. + private AudienceDimensionOrMetricFilter( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceDimensionOrMetricFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceDimensionOrMetricFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder.class); + } + + public interface StringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + getMatchType(); + + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} + */ + public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + StringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringFilter.newBuilder() to construct. + private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .Builder.class); + } + + /** + * + * + *
+     * The match type for the string filter.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_ = 0; + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_ = false; + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchType_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + size += 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.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchType_ = 0; + value_ = ""; + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance()) return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchType_ = 0; + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000001); + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000004); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of options.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} + */ + public static final class InListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + InListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use InListFilter.newBuilder() to construct. + private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InListFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; + private boolean caseSensitive_ = false; + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (caseSensitive_ != false) { + output.writeBool(2, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); + } + size += 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.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of options.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 16: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000002); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InListFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NumericValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + long getInt64Value(); + + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.OneValueCase + getOneValueCase(); + } + /** + * + * + *
+   * To represent a number.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} + */ + public static final class NumericValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + NumericValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericValue.newBuilder() to construct. + private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumericValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .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 { + INT64_VALUE(1), + DOUBLE_VALUE(2), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 1: + return INT64_VALUE; + case 2: + return DOUBLE_VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int INT64_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+     * Integer value.
+     * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+     * Double value.
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneValueCase_ == 1) { + output.writeInt64(1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); + } + 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.CodedOutputStream.computeInt64Size( + 1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) 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.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) obj; + + if (!getOneValueCase().equals(other.getOneValueCase())) return false; + switch (oneValueCase_) { + case 1: + if (getInt64Value() != other.getInt64Value()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 0: + default: + } + if (!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) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + break; + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * To represent a number.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oneValueCase_ = 0; + oneValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result) { + result.oneValueCase_ = oneValueCase_; + result.oneValue_ = this.oneValue_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance()) return this; + switch (other.getOneValueCase()) { + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case ONEVALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } // case 8 + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public Builder clearOneValue() { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + + oneValueCase_ = 1; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Integer value.
+       * 
+ * + * int64 int64_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (oneValueCase_ == 1) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + + oneValueCase_ = 2; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Double value.
+       * 
+ * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (oneValueCase_ == 2) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValue + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface NumericFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + getOperation(); + + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getValue(); + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getValueOrBuilder(); + } + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} + */ + public static final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + NumericFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericFilter.newBuilder() to construct. + private NumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumericFilter() { + operation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder.class); + } + + /** + * + * + *
+     * The operation applied to a numeric filter.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + OPERATION_UNSPECIFIED(0), + /** + * + * + *
+       * Equal.
+       * 
+ * + * EQUAL = 1; + */ + EQUAL(1), + /** + * + * + *
+       * Less than.
+       * 
+ * + * LESS_THAN = 2; + */ + LESS_THAN(2), + /** + * + * + *
+       * Greater than.
+       * 
+ * + * GREATER_THAN = 4; + */ + GREATER_THAN(4), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + public static final int OPERATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Equal.
+       * 
+ * + * EQUAL = 1; + */ + public static final int EQUAL_VALUE = 1; + /** + * + * + *
+       * Less than.
+       * 
+ * + * LESS_THAN = 2; + */ + public static final int LESS_THAN_VALUE = 2; + /** + * + * + *
+       * Greater than.
+       * 
+ * + * GREATER_THAN = 4; + */ + public static final int GREATER_THAN_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operation valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Operation forNumber(int value) { + switch (value) { + case 0: + return OPERATION_UNSPECIFIED; + case 1: + return EQUAL; + case 2: + return LESS_THAN; + case 4: + return GREATER_THAN; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operation findValueByNumber(int number) { + return Operation.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operation[] VALUES = values(); + + public static Operation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation) + } + + public static final int OPERATION_FIELD_NUMBER = 1; + private int operation_ = 0; + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+     * Required. The operation applied to a numeric filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation + getOperation() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.forNumber(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value_; + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getValue() { + return value_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : value_; + } + /** + * + * + *
+     * Required. The numeric or date value to match against.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getValueOrBuilder() { + return value_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (operation_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.OPERATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, operation_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operation_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.OPERATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operation_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + 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.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) obj; + + if (operation_ != other.operation_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + operation_ = 0; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operation_ = operation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance()) return this; + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + operation_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int operation_ = 0; + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + operation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation + getOperation() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + result = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.forNumber(operation_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Operation.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + operation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The operation applied to a numeric filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000001); + operation_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + valueBuilder_; + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The value. + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder + getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : value_; + } + } + /** + * + * + *
+       * Required. The numeric or date value to match against.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder>(getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface BetweenFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fromValue field is set. + */ + boolean hasFromValue(); + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fromValue. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getFromValue(); + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getFromValueOrBuilder(); + + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toValue field is set. + */ + boolean hasToValue(); + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toValue. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getToValue(); + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getToValueOrBuilder(); + } + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} + */ + public static final class BetweenFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + BetweenFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use BetweenFilter.newBuilder() to construct. + private BetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BetweenFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BetweenFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder.class); + } + + public static final int FROM_VALUE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + fromValue_; + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fromValue field is set. + */ + @java.lang.Override + public boolean hasFromValue() { + return fromValue_ != null; + } + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fromValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getFromValue() { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : fromValue_; + } + /** + * + * + *
+     * Required. Begins with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getFromValueOrBuilder() { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : fromValue_; + } + + public static final int TO_VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + toValue_; + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toValue field is set. + */ + @java.lang.Override + public boolean hasToValue() { + return toValue_ != null; + } + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getToValue() { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : toValue_; + } + /** + * + * + *
+     * Required. Ends with this number, inclusive.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder + getToValueOrBuilder() { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : toValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (fromValue_ != null) { + output.writeMessage(1, getFromValue()); + } + if (toValue_ != null) { + output.writeMessage(2, getToValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fromValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFromValue()); + } + if (toValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); + } + size += 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.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) obj; + + if (hasFromValue() != other.hasFromValue()) return false; + if (hasFromValue()) { + if (!getFromValue().equals(other.getFromValue())) return false; + } + if (hasToValue() != other.hasToValue()) return false; + if (hasToValue()) { + if (!getToValue().equals(other.getToValue())) return false; + } + if (!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 (hasFromValue()) { + hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getFromValue().hashCode(); + } + if (hasToValue()) { + hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getToValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fromValue_ = null; + if (fromValueBuilder_ != null) { + fromValueBuilder_.dispose(); + fromValueBuilder_ = null; + } + toValue_ = null; + if (toValueBuilder_ != null) { + toValueBuilder_.dispose(); + toValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fromValue_ = fromValueBuilder_ == null ? fromValue_ : fromValueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toValue_ = toValueBuilder_ == null ? toValue_ : toValueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance()) return this; + if (other.hasFromValue()) { + mergeFromValue(other.getFromValue()); + } + if (other.hasToValue()) { + mergeToValue(other.getToValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + fromValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + fromValueBuilder_; + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the fromValue field is set. + */ + public boolean hasFromValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The fromValue. + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getFromValue() { + if (fromValueBuilder_ == null) { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : fromValue_; + } else { + return fromValueBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFromValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (fromValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fromValue_ = value; + } else { + fromValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFromValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + builderForValue) { + if (fromValueBuilder_ == null) { + fromValue_ = builderForValue.build(); + } else { + fromValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFromValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (fromValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && fromValue_ != null + && fromValue_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance()) { + getFromValueBuilder().mergeFrom(value); + } else { + fromValue_ = value; + } + } else { + fromValueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFromValue() { + bitField0_ = (bitField0_ & ~0x00000001); + fromValue_ = null; + if (fromValueBuilder_ != null) { + fromValueBuilder_.dispose(); + fromValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + getFromValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFromValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder + getFromValueOrBuilder() { + if (fromValueBuilder_ != null) { + return fromValueBuilder_.getMessageOrBuilder(); + } else { + return fromValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : fromValue_; + } + } + /** + * + * + *
+       * Required. Begins with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + getFromValueFieldBuilder() { + if (fromValueBuilder_ == null) { + fromValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder>(getFromValue(), getParentForChildren(), isClean()); + fromValue_ = null; + } + return fromValueBuilder_; + } + + private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + toValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + toValueBuilder_; + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the toValue field is set. + */ + public boolean hasToValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The toValue. + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + getToValue() { + if (toValueBuilder_ == null) { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : toValue_; + } else { + return toValueBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (toValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toValue_ = value; + } else { + toValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setToValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + builderForValue) { + if (toValueBuilder_ == null) { + toValue_ = builderForValue.build(); + } else { + toValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeToValue( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { + if (toValueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && toValue_ != null + && toValue_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance()) { + getToValueBuilder().mergeFrom(value); + } else { + toValue_ = value; + } + } else { + toValueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearToValue() { + bitField0_ = (bitField0_ & ~0x00000002); + toValue_ = null; + if (toValueBuilder_ != null) { + toValueBuilder_.dispose(); + toValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder + getToValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getToValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder + getToValueOrBuilder() { + if (toValueBuilder_ != null) { + return toValueBuilder_.getMessageOrBuilder(); + } else { + return toValue_ == null + ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .getDefaultInstance() + : toValue_; + } + } + /** + * + * + *
+       * Required. Ends with this number, inclusive.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder> + getToValueFieldBuilder() { + if (toValueBuilder_ == null) { + toValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericValueOrBuilder>(getToValue(), getParentForChildren(), isClean()); + toValue_ = null; + } + return toValueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BetweenFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + NUMERIC_FILTER(4), + BETWEEN_FILTER(5), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 4: + return NUMERIC_FILTER; + case 5: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int STRING_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getStringFilter() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getInListFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getNumericFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder + getNumericFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getBetweenFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter. If the
+   * field name refers to a custom dimension or metric, a scope prefix will be
+   * added to the front of the custom dimensions or metric name. For more on
+   * scope prefixes or custom dimensions/metrics, reference the [Google
+   * Analytics Data API documentation]
+   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter. If the
+   * field name refers to a custom dimension or metric, a scope prefix will be
+   * added to the front of the custom dimensions or metric name. For more on
+   * scope prefixes or custom dimensions/metrics, reference the [Google
+   * Analytics Data API documentation]
+   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AT_ANY_POINT_IN_TIME_FIELD_NUMBER = 6; + private boolean atAnyPointInTime_ = false; + /** + * + * + *
+   * Optional. Indicates whether this filter needs dynamic evaluation or not. If
+   * set to true, users join the Audience if they ever met the condition (static
+   * evaluation). If unset or set to false, user evaluation for an Audience is
+   * dynamic; users are added to an Audience when they meet the conditions and
+   * then removed when they no longer meet them.
+   *
+   * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+   * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The atAnyPointInTime. + */ + @java.lang.Override + public boolean getAtAnyPointInTime() { + return atAnyPointInTime_; + } + + public static final int IN_ANY_N_DAY_PERIOD_FIELD_NUMBER = 7; + private int inAnyNDayPeriod_ = 0; + /** + * + * + *
+   * Optional. If set, specifies the time window for which to evaluate data in
+   * number of days. If not set, then audience data is evaluated against
+   * lifetime data (For example, infinite time window).
+   *
+   * For example, if set to 1 day, only the current day's data is evaluated. The
+   * reference point is the current day when at_any_point_in_time is unset or
+   * false.
+   *
+   * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+   * greater than 60 days.
+   * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inAnyNDayPeriod. + */ + @java.lang.Override + public int getInAnyNDayPeriod() { + return inAnyNDayPeriod_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeMessage( + 2, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_); + } + if (oneFilterCase_ == 3) { + output.writeMessage( + 3, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage( + 4, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage( + 5, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_); + } + if (atAnyPointInTime_ != false) { + output.writeBool(6, atAnyPointInTime_); + } + if (inAnyNDayPeriod_ != 0) { + output.writeInt32(7, inAnyNDayPeriod_); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_); + } + if (atAnyPointInTime_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, atAnyPointInTime_); + } + if (inAnyNDayPeriod_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, inAnyNDayPeriod_); + } + 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.admin.v1alpha.AudienceDimensionOrMetricFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter other = + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (getAtAnyPointInTime() != other.getAtAnyPointInTime()) return false; + if (getInAnyNDayPeriod() != other.getInAnyNDayPeriod()) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 4: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 5: + if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; + break; + case 0: + default: + } + if (!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) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (37 * hash) + AT_ANY_POINT_IN_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAtAnyPointInTime()); + hash = (37 * hash) + IN_ANY_N_DAY_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + getInAnyNDayPeriod(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getBetweenFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A specific filter for a single dimension or metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.class, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } + fieldName_ = ""; + atAnyPointInTime_ = false; + inAnyNDayPeriod_ = 0; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter build() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result = + new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fieldName_ = fieldName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.atAnyPointInTime_ = atAnyPointInTime_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.inAnyNDayPeriod_ = inAnyNDayPeriod_; + } + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result) { + result.oneFilterCase_ = oneFilterCase_; + result.oneFilter_ = this.oneFilter_; + if (oneFilterCase_ == 2 && stringFilterBuilder_ != null) { + result.oneFilter_ = stringFilterBuilder_.build(); + } + if (oneFilterCase_ == 3 && inListFilterBuilder_ != null) { + result.oneFilter_ = inListFilterBuilder_.build(); + } + if (oneFilterCase_ == 4 && numericFilterBuilder_ != null) { + result.oneFilter_ = numericFilterBuilder_.build(); + } + if (oneFilterCase_ == 5 && betweenFilterBuilder_ != null) { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getAtAnyPointInTime() != false) { + setAtAnyPointInTime(other.getAtAnyPointInTime()); + } + if (other.getInAnyNDayPeriod() != 0) { + setInAnyNDayPeriod(other.getInAnyNDayPeriod()); + } + switch (other.getOneFilterCase()) { + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case IN_LIST_FILTER: + { + mergeInListFilter(other.getInListFilter()); + break; + } + case NUMERIC_FILTER: + { + mergeNumericFilter(other.getNumericFilter()); + break; + } + case BETWEEN_FILTER: + { + mergeBetweenFilter(other.getBetweenFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + case 48: + { + atAnyPointInTime_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + inAnyNDayPeriod_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder + builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder mergeStringFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder + getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 2)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .StringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 2; + onChanged(); + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder + builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder mergeInListFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder + getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .InListFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder setNumericFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder setNumericFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder + builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder mergeNumericFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder + getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder + getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values on a dimension or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .NumericFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder setBetweenFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder setBetweenFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder + builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder mergeBetweenFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder + getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values between certain values on a dimension
+     * or metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + .Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .BetweenFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + return betweenFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter. If the
+     * field name refers to a custom dimension or metric, a scope prefix will be
+     * added to the front of the custom dimensions or metric name. For more on
+     * scope prefixes or custom dimensions/metrics, reference the [Google
+     * Analytics Data API documentation]
+     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter. If the
+     * field name refers to a custom dimension or metric, a scope prefix will be
+     * added to the front of the custom dimensions or metric name. For more on
+     * scope prefixes or custom dimensions/metrics, reference the [Google
+     * Analytics Data API documentation]
+     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter. If the
+     * field name refers to a custom dimension or metric, a scope prefix will be
+     * added to the front of the custom dimensions or metric name. For more on
+     * scope prefixes or custom dimensions/metrics, reference the [Google
+     * Analytics Data API documentation]
+     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter. If the
+     * field name refers to a custom dimension or metric, a scope prefix will be
+     * added to the front of the custom dimensions or metric name. For more on
+     * scope prefixes or custom dimensions/metrics, reference the [Google
+     * Analytics Data API documentation]
+     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The dimension name or metric name to filter. If the
+     * field name refers to a custom dimension or metric, a scope prefix will be
+     * added to the front of the custom dimensions or metric name. For more on
+     * scope prefixes or custom dimensions/metrics, reference the [Google
+     * Analytics Data API documentation]
+     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean atAnyPointInTime_; + /** + * + * + *
+     * Optional. Indicates whether this filter needs dynamic evaluation or not. If
+     * set to true, users join the Audience if they ever met the condition (static
+     * evaluation). If unset or set to false, user evaluation for an Audience is
+     * dynamic; users are added to an Audience when they meet the conditions and
+     * then removed when they no longer meet them.
+     *
+     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+     * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The atAnyPointInTime. + */ + @java.lang.Override + public boolean getAtAnyPointInTime() { + return atAnyPointInTime_; + } + /** + * + * + *
+     * Optional. Indicates whether this filter needs dynamic evaluation or not. If
+     * set to true, users join the Audience if they ever met the condition (static
+     * evaluation). If unset or set to false, user evaluation for an Audience is
+     * dynamic; users are added to an Audience when they meet the conditions and
+     * then removed when they no longer meet them.
+     *
+     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+     * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The atAnyPointInTime to set. + * @return This builder for chaining. + */ + public Builder setAtAnyPointInTime(boolean value) { + + atAnyPointInTime_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Indicates whether this filter needs dynamic evaluation or not. If
+     * set to true, users join the Audience if they ever met the condition (static
+     * evaluation). If unset or set to false, user evaluation for an Audience is
+     * dynamic; users are added to an Audience when they meet the conditions and
+     * then removed when they no longer meet them.
+     *
+     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+     * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAtAnyPointInTime() { + bitField0_ = (bitField0_ & ~0x00000020); + atAnyPointInTime_ = false; + onChanged(); + return this; + } + + private int inAnyNDayPeriod_; + /** + * + * + *
+     * Optional. If set, specifies the time window for which to evaluate data in
+     * number of days. If not set, then audience data is evaluated against
+     * lifetime data (For example, infinite time window).
+     *
+     * For example, if set to 1 day, only the current day's data is evaluated. The
+     * reference point is the current day when at_any_point_in_time is unset or
+     * false.
+     *
+     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+     * greater than 60 days.
+     * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inAnyNDayPeriod. + */ + @java.lang.Override + public int getInAnyNDayPeriod() { + return inAnyNDayPeriod_; + } + /** + * + * + *
+     * Optional. If set, specifies the time window for which to evaluate data in
+     * number of days. If not set, then audience data is evaluated against
+     * lifetime data (For example, infinite time window).
+     *
+     * For example, if set to 1 day, only the current day's data is evaluated. The
+     * reference point is the current day when at_any_point_in_time is unset or
+     * false.
+     *
+     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+     * greater than 60 days.
+     * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inAnyNDayPeriod to set. + * @return This builder for chaining. + */ + public Builder setInAnyNDayPeriod(int value) { + + inAnyNDayPeriod_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, specifies the time window for which to evaluate data in
+     * number of days. If not set, then audience data is evaluated against
+     * lifetime data (For example, infinite time window).
+     *
+     * For example, if set to 1 day, only the current day's data is evaluated. The
+     * reference point is the current day when at_any_point_in_time is unset or
+     * false.
+     *
+     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+     * greater than 60 days.
+     * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInAnyNDayPeriod() { + bitField0_ = (bitField0_ & ~0x00000040); + inAnyNDayPeriod_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceDimensionOrMetricFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java new file mode 100644 index 000000000000..83a89b77853f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java @@ -0,0 +1,284 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceDimensionOrMetricFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder + getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder + getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + * + * @return The numericFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter + getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values on a dimension or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder + getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + * + * @return The betweenFilter. + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter + getBetweenFilter(); + /** + * + * + *
+   * A filter for numeric or date values between certain values on a dimension
+   * or metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; + * + */ + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder + getBetweenFilterOrBuilder(); + + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter. If the
+   * field name refers to a custom dimension or metric, a scope prefix will be
+   * added to the front of the custom dimensions or metric name. For more on
+   * scope prefixes or custom dimensions/metrics, reference the [Google
+   * Analytics Data API documentation]
+   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * Required. Immutable. The dimension name or metric name to filter. If the
+   * field name refers to a custom dimension or metric, a scope prefix will be
+   * added to the front of the custom dimensions or metric name. For more on
+   * scope prefixes or custom dimensions/metrics, reference the [Google
+   * Analytics Data API documentation]
+   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
+   * Optional. Indicates whether this filter needs dynamic evaluation or not. If
+   * set to true, users join the Audience if they ever met the condition (static
+   * evaluation). If unset or set to false, user evaluation for an Audience is
+   * dynamic; users are added to an Audience when they meet the conditions and
+   * then removed when they no longer meet them.
+   *
+   * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
+   * 
+ * + * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The atAnyPointInTime. + */ + boolean getAtAnyPointInTime(); + + /** + * + * + *
+   * Optional. If set, specifies the time window for which to evaluate data in
+   * number of days. If not set, then audience data is evaluated against
+   * lifetime data (For example, infinite time window).
+   *
+   * For example, if set to 1 day, only the current day's data is evaluated. The
+   * reference point is the current day when at_any_point_in_time is unset or
+   * false.
+   *
+   * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
+   * greater than 60 days.
+   * 
+ * + * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inAnyNDayPeriod. + */ + int getInAnyNDayPeriod(); + + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.OneFilterCase + getOneFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java new file mode 100644 index 000000000000..037360a5c535 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java @@ -0,0 +1,1024 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A filter that matches events of a single event name. If an event parameter
+ * is specified, only the subset of events that match both the single event name
+ * and the parameter filter expressions match this event filter.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventFilter} + */ +public final class AudienceEventFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceEventFilter) + AudienceEventFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceEventFilter.newBuilder() to construct. + private AudienceEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceEventFilter() { + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceEventFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventFilter.class, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder.class); + } + + public static final int EVENT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventName_ = ""; + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + 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(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceFilterExpression + eventParameterFilterExpression_; + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the
+   * single event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (For example, nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventParameterFilterExpression field is set. + */ + @java.lang.Override + public boolean hasEventParameterFilterExpression() { + return eventParameterFilterExpression_ != null; + } + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the
+   * single event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (For example, nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventParameterFilterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression + getEventParameterFilterExpression() { + return eventParameterFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : eventParameterFilterExpression_; + } + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the
+   * single event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (For example, nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getEventParameterFilterExpressionOrBuilder() { + return eventParameterFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : eventParameterFilterExpression_; + } + + 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(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); + } + if (eventParameterFilterExpression_ != null) { + output.writeMessage(2, getEventParameterFilterExpression()); + } + 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(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); + } + if (eventParameterFilterExpression_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getEventParameterFilterExpression()); + } + 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.admin.v1alpha.AudienceEventFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceEventFilter other = + (com.google.analytics.admin.v1alpha.AudienceEventFilter) obj; + + if (!getEventName().equals(other.getEventName())) return false; + if (hasEventParameterFilterExpression() != other.hasEventParameterFilterExpression()) + return false; + if (hasEventParameterFilterExpression()) { + if (!getEventParameterFilterExpression().equals(other.getEventParameterFilterExpression())) + 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) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasEventParameterFilterExpression()) { + hash = (37 * hash) + EVENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getEventParameterFilterExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceEventFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A filter that matches events of a single event name. If an event parameter
+   * is specified, only the subset of events that match both the single event name
+   * and the parameter filter expressions match this event filter.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceEventFilter) + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventFilter.class, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceEventFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eventName_ = ""; + eventParameterFilterExpression_ = null; + if (eventParameterFilterExpressionBuilder_ != null) { + eventParameterFilterExpressionBuilder_.dispose(); + eventParameterFilterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter build() { + com.google.analytics.admin.v1alpha.AudienceEventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceEventFilter result = + new com.google.analytics.admin.v1alpha.AudienceEventFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceEventFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventName_ = eventName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventParameterFilterExpression_ = + eventParameterFilterExpressionBuilder_ == null + ? eventParameterFilterExpression_ + : eventParameterFilterExpressionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceEventFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceEventFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceEventFilter other) { + if (other == com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance()) + return this; + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEventParameterFilterExpression()) { + mergeEventParameterFilterExpression(other.getEventParameterFilterExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getEventParameterFilterExpressionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + eventName_ = getDefaultInstance().getEventName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The name of the event to match against.
+     * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceFilterExpression + eventParameterFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + eventParameterFilterExpressionBuilder_; + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventParameterFilterExpression field is set. + */ + public boolean hasEventParameterFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventParameterFilterExpression. + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression + getEventParameterFilterExpression() { + if (eventParameterFilterExpressionBuilder_ == null) { + return eventParameterFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : eventParameterFilterExpression_; + } else { + return eventParameterFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventParameterFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (eventParameterFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventParameterFilterExpression_ = value; + } else { + eventParameterFilterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventParameterFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (eventParameterFilterExpressionBuilder_ == null) { + eventParameterFilterExpression_ = builderForValue.build(); + } else { + eventParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventParameterFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (eventParameterFilterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && eventParameterFilterExpression_ != null + && eventParameterFilterExpression_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpression + .getDefaultInstance()) { + getEventParameterFilterExpressionBuilder().mergeFrom(value); + } else { + eventParameterFilterExpression_ = value; + } + } else { + eventParameterFilterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventParameterFilterExpression() { + bitField0_ = (bitField0_ & ~0x00000002); + eventParameterFilterExpression_ = null; + if (eventParameterFilterExpressionBuilder_ != null) { + eventParameterFilterExpressionBuilder_.dispose(); + eventParameterFilterExpressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getEventParameterFilterExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEventParameterFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getEventParameterFilterExpressionOrBuilder() { + if (eventParameterFilterExpressionBuilder_ != null) { + return eventParameterFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return eventParameterFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : eventParameterFilterExpression_; + } + } + /** + * + * + *
+     * Optional. If specified, this filter matches events that match both the
+     * single event name and the parameter filter expressions. AudienceEventFilter
+     * inside the parameter filter expression cannot be set (For example, nested
+     * event filters are not supported). This should be a single and_group of
+     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+     * supported. Also, if it includes a filter for "eventCount", only that one
+     * will be considered; all the other filters will be ignored.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getEventParameterFilterExpressionFieldBuilder() { + if (eventParameterFilterExpressionBuilder_ == null) { + eventParameterFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + getEventParameterFilterExpression(), getParentForChildren(), isClean()); + eventParameterFilterExpression_ = null; + } + return eventParameterFilterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceEventFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceEventFilter) + private static final com.google.analytics.admin.v1alpha.AudienceEventFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceEventFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceEventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java new file mode 100644 index 000000000000..311b1229e758 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java @@ -0,0 +1,114 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceEventFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceEventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Required. Immutable. The name of the event to match against.
+   * 
+ * + * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the
+   * single event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (For example, nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventParameterFilterExpression field is set. + */ + boolean hasEventParameterFilterExpression(); + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the
+   * single event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (For example, nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventParameterFilterExpression. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getEventParameterFilterExpression(); + /** + * + * + *
+   * Optional. If specified, this filter matches events that match both the
+   * single event name and the parameter filter expressions. AudienceEventFilter
+   * inside the parameter filter expression cannot be set (For example, nested
+   * event filters are not supported). This should be a single and_group of
+   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
+   * supported. Also, if it includes a filter for "eventCount", only that one
+   * will be considered; all the other filters will be ignored.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getEventParameterFilterExpressionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java new file mode 100644 index 000000000000..470ab2e0a775 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java @@ -0,0 +1,961 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Specifies an event to log when a user joins the Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventTrigger} + */ +public final class AudienceEventTrigger extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceEventTrigger) + AudienceEventTriggerOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceEventTrigger.newBuilder() to construct. + private AudienceEventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceEventTrigger() { + eventName_ = ""; + logCondition_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceEventTrigger(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.class, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder.class); + } + + /** + * + * + *
+   * Determines when to log the event.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} + */ + public enum LogCondition implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Log condition is not specified.
+     * 
+ * + * LOG_CONDITION_UNSPECIFIED = 0; + */ + LOG_CONDITION_UNSPECIFIED(0), + /** + * + * + *
+     * The event should be logged only when a user is joined.
+     * 
+ * + * AUDIENCE_JOINED = 1; + */ + AUDIENCE_JOINED(1), + /** + * + * + *
+     * The event should be logged whenever the Audience condition is met, even
+     * if the user is already a member of the Audience.
+     * 
+ * + * AUDIENCE_MEMBERSHIP_RENEWED = 2; + */ + AUDIENCE_MEMBERSHIP_RENEWED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Log condition is not specified.
+     * 
+ * + * LOG_CONDITION_UNSPECIFIED = 0; + */ + public static final int LOG_CONDITION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The event should be logged only when a user is joined.
+     * 
+ * + * AUDIENCE_JOINED = 1; + */ + public static final int AUDIENCE_JOINED_VALUE = 1; + /** + * + * + *
+     * The event should be logged whenever the Audience condition is met, even
+     * if the user is already a member of the Audience.
+     * 
+ * + * AUDIENCE_MEMBERSHIP_RENEWED = 2; + */ + public static final int AUDIENCE_MEMBERSHIP_RENEWED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LogCondition 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 LogCondition forNumber(int value) { + switch (value) { + case 0: + return LOG_CONDITION_UNSPECIFIED; + case 1: + return AUDIENCE_JOINED; + case 2: + return AUDIENCE_MEMBERSHIP_RENEWED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LogCondition findValueByNumber(int number) { + return LogCondition.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final LogCondition[] VALUES = values(); + + public static LogCondition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LogCondition(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition) + } + + public static final int EVENT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventName_ = ""; + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + 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(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOG_CONDITION_FIELD_NUMBER = 2; + private int logCondition_ = 0; + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for logCondition. + */ + @java.lang.Override + public int getLogConditionValue() { + return logCondition_; + } + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition() { + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.forNumber( + logCondition_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); + } + if (logCondition_ + != com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + .LOG_CONDITION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, logCondition_); + } + 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(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); + } + if (logCondition_ + != com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition + .LOG_CONDITION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, logCondition_); + } + 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.admin.v1alpha.AudienceEventTrigger)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceEventTrigger other = + (com.google.analytics.admin.v1alpha.AudienceEventTrigger) obj; + + if (!getEventName().equals(other.getEventName())) return false; + if (logCondition_ != other.logCondition_) 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) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + hash = (37 * hash) + LOG_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + logCondition_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceEventTrigger 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; + } + /** + * + * + *
+   * Specifies an event to log when a user joins the Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventTrigger} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceEventTrigger) + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.class, + com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceEventTrigger.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eventName_ = ""; + logCondition_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger build() { + com.google.analytics.admin.v1alpha.AudienceEventTrigger result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger buildPartial() { + com.google.analytics.admin.v1alpha.AudienceEventTrigger result = + new com.google.analytics.admin.v1alpha.AudienceEventTrigger(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceEventTrigger result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventName_ = eventName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.logCondition_ = logCondition_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceEventTrigger) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceEventTrigger) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceEventTrigger other) { + if (other == com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance()) + return this; + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.logCondition_ != 0) { + setLogConditionValue(other.getLogConditionValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + logCondition_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + eventName_ = getDefaultInstance().getEventName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The event name that will be logged.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int logCondition_ = 0; + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for logCondition. + */ + @java.lang.Override + public int getLogConditionValue() { + return logCondition_; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for logCondition to set. + * @return This builder for chaining. + */ + public Builder setLogConditionValue(int value) { + logCondition_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition() { + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.forNumber( + logCondition_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The logCondition to set. + * @return This builder for chaining. + */ + public Builder setLogCondition( + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + logCondition_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. When to log the event.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearLogCondition() { + bitField0_ = (bitField0_ & ~0x00000002); + logCondition_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceEventTrigger) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceEventTrigger) + private static final com.google.analytics.admin.v1alpha.AudienceEventTrigger DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceEventTrigger(); + } + + public static com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceEventTrigger parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java new file mode 100644 index 000000000000..fccd172c4950 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceEventTriggerOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceEventTrigger) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Required. The event name that will be logged.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for logCondition. + */ + int getLogConditionValue(); + /** + * + * + *
+   * Required. When to log the event.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The logCondition. + */ + com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java new file mode 100644 index 000000000000..425c417af971 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java @@ -0,0 +1,1482 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A clause for defining either a simple or sequence filter. A filter can be
+ * inclusive (For example, users satisfying the filter clause are included in
+ * the Audience) or exclusive (For example, users satisfying the filter clause
+ * are excluded from the Audience).
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterClause} + */ +public final class AudienceFilterClause extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterClause) + AudienceFilterClauseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceFilterClause.newBuilder() to construct. + private AudienceFilterClause(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceFilterClause() { + clauseType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceFilterClause(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterClause.class, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder.class); + } + + /** + * + * + *
+   * Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} + */ + public enum AudienceClauseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified clause type.
+     * 
+ * + * AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + AUDIENCE_CLAUSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Users will be included in the Audience if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + INCLUDE(1), + /** + * + * + *
+     * Users will be excluded from the Audience if the filter clause is met.
+     * 
+ * + * EXCLUDE = 2; + */ + EXCLUDE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified clause type.
+     * 
+ * + * AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + public static final int AUDIENCE_CLAUSE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Users will be included in the Audience if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + public static final int INCLUDE_VALUE = 1; + /** + * + * + *
+     * Users will be excluded from the Audience if the filter clause is met.
+     * 
+ * + * EXCLUDE = 2; + */ + public static final int EXCLUDE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AudienceClauseType 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 AudienceClauseType forNumber(int value) { + switch (value) { + case 0: + return AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; + case 1: + return INCLUDE; + case 2: + return EXCLUDE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AudienceClauseType findValueByNumber(int number) { + return AudienceClauseType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceFilterClause.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AudienceClauseType[] VALUES = values(); + + public static AudienceClauseType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AudienceClauseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType) + } + + private int filterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object filter_; + + public enum FilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SIMPLE_FILTER(2), + SEQUENCE_FILTER(3), + FILTER_NOT_SET(0); + private final int value; + + private FilterCase(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 FilterCase valueOf(int value) { + return forNumber(value); + } + + public static FilterCase forNumber(int value) { + switch (value) { + case 2: + return SIMPLE_FILTER; + case 3: + return SEQUENCE_FILTER; + case 0: + return FILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public static final int SIMPLE_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return Whether the simpleFilter field is set. + */ + @java.lang.Override + public boolean hasSimpleFilter() { + return filterCase_ == 2; + } + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return The simpleFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter() { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder + getSimpleFilterOrBuilder() { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + + public static final int SEQUENCE_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return Whether the sequenceFilter field is set. + */ + @java.lang.Override + public boolean hasSequenceFilter() { + return filterCase_ == 3; + } + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return The sequenceFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter() { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder + getSequenceFilterOrBuilder() { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + + public static final int CLAUSE_TYPE_FIELD_NUMBER = 1; + private int clauseType_ = 0; + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for clauseType. + */ + @java.lang.Override + public int getClauseTypeValue() { + return clauseType_; + } + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + getClauseType() { + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.forNumber( + clauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (clauseType_ + != com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + .AUDIENCE_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, clauseType_); + } + if (filterCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_); + } + if (filterCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (clauseType_ + != com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + .AUDIENCE_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, clauseType_); + } + if (filterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_); + } + if (filterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_); + } + 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.admin.v1alpha.AudienceFilterClause)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceFilterClause other = + (com.google.analytics.admin.v1alpha.AudienceFilterClause) obj; + + if (clauseType_ != other.clauseType_) return false; + if (!getFilterCase().equals(other.getFilterCase())) return false; + switch (filterCase_) { + case 2: + if (!getSimpleFilter().equals(other.getSimpleFilter())) return false; + break; + case 3: + if (!getSequenceFilter().equals(other.getSequenceFilter())) 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(); + hash = (37 * hash) + CLAUSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + clauseType_; + switch (filterCase_) { + case 2: + hash = (37 * hash) + SIMPLE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSimpleFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + SEQUENCE_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSequenceFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceFilterClause prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A clause for defining either a simple or sequence filter. A filter can be
+   * inclusive (For example, users satisfying the filter clause are included in
+   * the Audience) or exclusive (For example, users satisfying the filter clause
+   * are excluded from the Audience).
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterClause} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterClause) + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterClause.class, + com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceFilterClause.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (simpleFilterBuilder_ != null) { + simpleFilterBuilder_.clear(); + } + if (sequenceFilterBuilder_ != null) { + sequenceFilterBuilder_.clear(); + } + clauseType_ = 0; + filterCase_ = 0; + filter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause build() { + com.google.analytics.admin.v1alpha.AudienceFilterClause result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause buildPartial() { + com.google.analytics.admin.v1alpha.AudienceFilterClause result = + new com.google.analytics.admin.v1alpha.AudienceFilterClause(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceFilterClause result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.clauseType_ = clauseType_; + } + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.AudienceFilterClause result) { + result.filterCase_ = filterCase_; + result.filter_ = this.filter_; + if (filterCase_ == 2 && simpleFilterBuilder_ != null) { + result.filter_ = simpleFilterBuilder_.build(); + } + if (filterCase_ == 3 && sequenceFilterBuilder_ != null) { + result.filter_ = sequenceFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceFilterClause) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterClause) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceFilterClause other) { + if (other == com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()) + return this; + if (other.clauseType_ != 0) { + setClauseTypeValue(other.getClauseTypeValue()); + } + switch (other.getFilterCase()) { + case SIMPLE_FILTER: + { + mergeSimpleFilter(other.getSimpleFilter()); + break; + } + case SEQUENCE_FILTER: + { + mergeSequenceFilter(other.getSequenceFilter()); + break; + } + case FILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + clauseType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 8 + case 18: + { + input.readMessage(getSimpleFilterFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSequenceFilterFieldBuilder().getBuilder(), extensionRegistry); + filterCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int filterCase_ = 0; + private java.lang.Object filter_; + + public FilterCase getFilterCase() { + return FilterCase.forNumber(filterCase_); + } + + public Builder clearFilter() { + filterCase_ = 0; + filter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSimpleFilter, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder> + simpleFilterBuilder_; + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return Whether the simpleFilter field is set. + */ + @java.lang.Override + public boolean hasSimpleFilter() { + return filterCase_ == 2; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return The simpleFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter() { + if (simpleFilterBuilder_ == null) { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } else { + if (filterCase_ == 2) { + return simpleFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder setSimpleFilter(com.google.analytics.admin.v1alpha.AudienceSimpleFilter value) { + if (simpleFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + simpleFilterBuilder_.setMessage(value); + } + filterCase_ = 2; + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder setSimpleFilter( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder builderForValue) { + if (simpleFilterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + simpleFilterBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 2; + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder mergeSimpleFilter( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter value) { + if (simpleFilterBuilder_ == null) { + if (filterCase_ == 2 + && filter_ + != com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance()) { + filter_ = + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 2) { + simpleFilterBuilder_.mergeFrom(value); + } else { + simpleFilterBuilder_.setMessage(value); + } + } + filterCase_ = 2; + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public Builder clearSimpleFilter() { + if (simpleFilterBuilder_ == null) { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 2) { + filterCase_ = 0; + filter_ = null; + } + simpleFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder + getSimpleFilterBuilder() { + return getSimpleFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder + getSimpleFilterOrBuilder() { + if ((filterCase_ == 2) && (simpleFilterBuilder_ != null)) { + return simpleFilterBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A simple filter that a user must satisfy to be a member of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSimpleFilter, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder> + getSimpleFilterFieldBuilder() { + if (simpleFilterBuilder_ == null) { + if (!(filterCase_ == 2)) { + filter_ = com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + simpleFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSimpleFilter, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 2; + onChanged(); + return simpleFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder> + sequenceFilterBuilder_; + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return Whether the sequenceFilter field is set. + */ + @java.lang.Override + public boolean hasSequenceFilter() { + return filterCase_ == 3; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return The sequenceFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter() { + if (sequenceFilterBuilder_ == null) { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } else { + if (filterCase_ == 3) { + return sequenceFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder setSequenceFilter( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter value) { + if (sequenceFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + onChanged(); + } else { + sequenceFilterBuilder_.setMessage(value); + } + filterCase_ = 3; + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder setSequenceFilter( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder builderForValue) { + if (sequenceFilterBuilder_ == null) { + filter_ = builderForValue.build(); + onChanged(); + } else { + sequenceFilterBuilder_.setMessage(builderForValue.build()); + } + filterCase_ = 3; + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder mergeSequenceFilter( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter value) { + if (sequenceFilterBuilder_ == null) { + if (filterCase_ == 3 + && filter_ + != com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance()) { + filter_ = + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_) + .mergeFrom(value) + .buildPartial(); + } else { + filter_ = value; + } + onChanged(); + } else { + if (filterCase_ == 3) { + sequenceFilterBuilder_.mergeFrom(value); + } else { + sequenceFilterBuilder_.setMessage(value); + } + } + filterCase_ = 3; + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public Builder clearSequenceFilter() { + if (sequenceFilterBuilder_ == null) { + if (filterCase_ == 3) { + filterCase_ = 0; + filter_ = null; + onChanged(); + } + } else { + if (filterCase_ == 3) { + filterCase_ = 0; + filter_ = null; + } + sequenceFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder + getSequenceFilterBuilder() { + return getSequenceFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder + getSequenceFilterOrBuilder() { + if ((filterCase_ == 3) && (sequenceFilterBuilder_ != null)) { + return sequenceFilterBuilder_.getMessageOrBuilder(); + } else { + if (filterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; + } + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Filters that must occur in a specific order for the user to be a member
+     * of the Audience.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder> + getSequenceFilterFieldBuilder() { + if (sequenceFilterBuilder_ == null) { + if (!(filterCase_ == 3)) { + filter_ = com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + sequenceFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_, + getParentForChildren(), + isClean()); + filter_ = null; + } + filterCase_ = 3; + onChanged(); + return sequenceFilterBuilder_; + } + + private int clauseType_ = 0; + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for clauseType. + */ + @java.lang.Override + public int getClauseTypeValue() { + return clauseType_; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for clauseType to set. + * @return This builder for chaining. + */ + public Builder setClauseTypeValue(int value) { + clauseType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType + getClauseType() { + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.forNumber( + clauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The clauseType to set. + * @return This builder for chaining. + */ + public Builder setClauseType( + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + clauseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Specifies whether this is an include or exclude filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearClauseType() { + bitField0_ = (bitField0_ & ~0x00000004); + clauseType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceFilterClause) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterClause) + private static final com.google.analytics.admin.v1alpha.AudienceFilterClause DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterClause(); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceFilterClause parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java new file mode 100644 index 000000000000..c0c2460ad169 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceFilterClauseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterClause) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return Whether the simpleFilter field is set. + */ + boolean hasSimpleFilter(); + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + * + * @return The simpleFilter. + */ + com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter(); + /** + * + * + *
+   * A simple filter that a user must satisfy to be a member of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; + */ + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder getSimpleFilterOrBuilder(); + + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return Whether the sequenceFilter field is set. + */ + boolean hasSequenceFilter(); + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + * + * @return The sequenceFilter. + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter(); + /** + * + * + *
+   * Filters that must occur in a specific order for the user to be a member
+   * of the Audience.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder getSequenceFilterOrBuilder(); + + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for clauseType. + */ + int getClauseTypeValue(); + /** + * + * + *
+   * Required. Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The clauseType. + */ + com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType getClauseType(); + + com.google.analytics.admin.v1alpha.AudienceFilterClause.FilterCase getFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java new file mode 100644 index 000000000000..e1f3dac069ec --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java @@ -0,0 +1,2150 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A logical expression of Audience dimension, metric, or event filters.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpression} + */ +public final class AudienceFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterExpression) + AudienceFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceFilterExpression.newBuilder() to construct. + private AudienceFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceFilterExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + DIMENSION_OR_METRIC_FILTER(4), + EVENT_FILTER(5), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(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 ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return DIMENSION_OR_METRIC_FILTER; + case 5: + return EVENT_FILTER; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * AudienceFilterExpressions with or_group. This must be set for the top
+   * level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * AudienceFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter expression to be NOT'ed (For example, inverted, complemented).
+   * It can only include a dimension_or_metric_filter. This cannot be set on
+   * the top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+   * A filter expression to be NOT'ed (For example, inverted, complemented).
+   * It can only include a dimension_or_metric_filter. This cannot be set on
+   * the top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * A filter expression to be NOT'ed (For example, inverted, complemented).
+   * It can only include a dimension_or_metric_filter. This cannot be set on
+   * the top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + + public static final int DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return Whether the dimensionOrMetricFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionOrMetricFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return The dimensionOrMetricFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDimensionOrMetricFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter on a single dimension or metric. This cannot be set on the top
+   * level AudienceFilterExpression.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder + getDimensionOrMetricFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); + } + + public static final int EVENT_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return Whether the eventFilter field is set. + */ + @java.lang.Override + public boolean hasEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return The eventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter() { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level AudienceFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder getEventFilterOrBuilder() { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage( + 4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_); + } + if (exprCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_); + } + if (exprCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_); + } + 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.admin.v1alpha.AudienceFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceFilterExpression other = + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getAndGroup().equals(other.getAndGroup())) return false; + break; + case 2: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 3: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 4: + if (!getDimensionOrMetricFilter().equals(other.getDimensionOrMetricFilter())) return false; + break; + case 5: + if (!getEventFilter().equals(other.getEventFilter())) 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 (exprCase_) { + case 1: + hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAndGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 3: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 4: + hash = (37 * hash) + DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionOrMetricFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getEventFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A logical expression of Audience dimension, metric, or event filters.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterExpression) + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (dimensionOrMetricFilterBuilder_ != null) { + dimensionOrMetricFilterBuilder_.clear(); + } + if (eventFilterBuilder_ != null) { + eventFilterBuilder_.clear(); + } + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression build() { + com.google.analytics.admin.v1alpha.AudienceFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.AudienceFilterExpression result = + new com.google.analytics.admin.v1alpha.AudienceFilterExpression(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceFilterExpression result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.AudienceFilterExpression result) { + result.exprCase_ = exprCase_; + result.expr_ = this.expr_; + if (exprCase_ == 1 && andGroupBuilder_ != null) { + result.expr_ = andGroupBuilder_.build(); + } + if (exprCase_ == 2 && orGroupBuilder_ != null) { + result.expr_ = orGroupBuilder_.build(); + } + if (exprCase_ == 3 && notExpressionBuilder_ != null) { + result.expr_ = notExpressionBuilder_.build(); + } + if (exprCase_ == 4 && dimensionOrMetricFilterBuilder_ != null) { + result.expr_ = dimensionOrMetricFilterBuilder_.build(); + } + if (exprCase_ == 5 && eventFilterBuilder_ != null) { + result.expr_ = eventFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceFilterExpression) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceFilterExpression other) { + if (other == com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()) + return this; + switch (other.getExprCase()) { + case AND_GROUP: + { + mergeAndGroup(other.getAndGroup()); + break; + } + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case DIMENSION_OR_METRIC_FILTER: + { + mergeDimensionOrMetricFilter(other.getDimensionOrMetricFilter()); + break; + } + case EVENT_FILTER: + { + mergeEventFilter(other.getEventFilter()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getDimensionOrMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getEventFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public Builder clearAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + andGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * AudienceFilterExpressions with or_group. This must be set for the top
+     * level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * AudienceFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (For example, inverted, complemented).
+     * It can only include a dimension_or_metric_filter. This cannot be set on
+     * the top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder> + dimensionOrMetricFilterBuilder_; + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return Whether the dimensionOrMetricFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionOrMetricFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * + * @return The dimensionOrMetricFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + getDimensionOrMetricFilter() { + if (dimensionOrMetricFilterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return dimensionOrMetricFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder setDimensionOrMetricFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter value) { + if (dimensionOrMetricFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + dimensionOrMetricFilterBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder setDimensionOrMetricFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder + builderForValue) { + if (dimensionOrMetricFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + dimensionOrMetricFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder mergeDimensionOrMetricFilter( + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter value) { + if (dimensionOrMetricFilterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + dimensionOrMetricFilterBuilder_.mergeFrom(value); + } else { + dimensionOrMetricFilterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public Builder clearDimensionOrMetricFilter() { + if (dimensionOrMetricFilterBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + dimensionOrMetricFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder + getDimensionOrMetricFilterBuilder() { + return getDimensionOrMetricFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder + getDimensionOrMetricFilterOrBuilder() { + if ((exprCase_ == 4) && (dimensionOrMetricFilterBuilder_ != null)) { + return dimensionOrMetricFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension or metric. This cannot be set on the top
+     * level AudienceFilterExpression.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder> + getDimensionOrMetricFilterFieldBuilder() { + if (dimensionOrMetricFilterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter + .getDefaultInstance(); + } + dimensionOrMetricFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + return dimensionOrMetricFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventFilter, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder> + eventFilterBuilder_; + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return Whether the eventFilter field is set. + */ + @java.lang.Override + public boolean hasEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * + * @return The eventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter() { + if (eventFilterBuilder_ == null) { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } else { + if (exprCase_ == 5) { + return eventFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder setEventFilter(com.google.analytics.admin.v1alpha.AudienceEventFilter value) { + if (eventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + eventFilterBuilder_.setMessage(value); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder setEventFilter( + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder builderForValue) { + if (eventFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + eventFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder mergeEventFilter(com.google.analytics.admin.v1alpha.AudienceEventFilter value) { + if (eventFilterBuilder_ == null) { + if (exprCase_ == 5 + && expr_ + != com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.AudienceEventFilter.newBuilder( + (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 5) { + eventFilterBuilder_.mergeFrom(value); + } else { + eventFilterBuilder_.setMessage(value); + } + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public Builder clearEventFilter() { + if (eventFilterBuilder_ == null) { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + } + eventFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder getEventFilterBuilder() { + return getEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder + getEventFilterOrBuilder() { + if ((exprCase_ == 5) && (eventFilterBuilder_ != null)) { + return eventFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 5) { + return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; + } + return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level AudienceFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventFilter, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder> + getEventFilterFieldBuilder() { + if (eventFilterBuilder_ == null) { + if (!(exprCase_ == 5)) { + expr_ = com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); + } + eventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceEventFilter, + com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, + com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 5; + onChanged(); + return eventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterExpression) + private static final com.google.analytics.admin.v1alpha.AudienceFilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java new file mode 100644 index 000000000000..028d05fe9de5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java @@ -0,0 +1,1013 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of Audience filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpressionList} + */ +public final class AudienceFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + AudienceFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceFilterExpressionList.newBuilder() to construct. + private AudienceFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceFilterExpressionList() { + filterExpressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceFilterExpressionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder.class); + } + + public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + filterExpressions_; + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List + getFilterExpressionsList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public int getFilterExpressionsCount() { + return filterExpressions_.size(); + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions( + int index) { + return filterExpressions_.get(index); + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + return filterExpressions_.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 < filterExpressions_.size(); i++) { + output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, filterExpressions_.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.admin.v1alpha.AudienceFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList other = + (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) obj; + + if (!getFilterExpressionsList().equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { + hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.class, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + } else { + filterExpressions_ = null; + filterExpressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList build() { + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result = + new com.google.analytics.admin.v1alpha.AudienceFilterExpressionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result) { + if (filterExpressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filterExpressions_ = filterExpressions_; + } else { + result.filterExpressions_ = filterExpressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance()) + return this; + if (filterExpressionsBuilder_ == null) { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressions_.isEmpty()) { + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterExpressionsIsMutable(); + filterExpressions_.addAll(other.filterExpressions_); + } + onChanged(); + } + } else { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressionsBuilder_.isEmpty()) { + filterExpressionsBuilder_.dispose(); + filterExpressionsBuilder_ = null; + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + filterExpressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterExpressionsFieldBuilder() + : null; + } else { + filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AudienceFilterExpression m = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.parser(), + extensionRegistry); + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(m); + } else { + filterExpressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + filterExpressions_ = java.util.Collections.emptyList(); + + private void ensureFilterExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = + new java.util.ArrayList( + filterExpressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + filterExpressionsBuilder_; + + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public java.util.List + getFilterExpressionsList() { + if (filterExpressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterExpressions_); + } else { + return filterExpressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public int getFilterExpressionsCount() { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.size(); + } else { + return filterExpressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions( + int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder addAllFilterExpressions( + java.lang.Iterable + values) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterExpressions_); + onChanged(); + } else { + filterExpressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder clearFilterExpressions() { + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterExpressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public Builder removeFilterExpressions(int index) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.remove(index); + onChanged(); + } else { + filterExpressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + if (filterExpressionsBuilder_ != null) { + return filterExpressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterExpressions_); + } + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + addFilterExpressionsBuilder() { + return getFilterExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + addFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Audience filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + public java.util.List + getFilterExpressionsBuilderList() { + return getFilterExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionsFieldBuilder() { + if (filterExpressionsBuilder_ == null) { + filterExpressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + filterExpressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filterExpressions_ = null; + } + return filterExpressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..88ae69aa70a0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java @@ -0,0 +1,84 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + java.util.List + getFilterExpressionsList(); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions(int index); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + int getFilterExpressionsCount(); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + java.util.List + getFilterExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of Audience filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java similarity index 81% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java index 7f94c478c83c..d1962af1bfdd 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/audience.proto package com.google.analytics.admin.v1alpha; -public interface AudienceFilterExpressionOrBuilder extends +public interface AudienceFilterExpressionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterExpression) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of expressions to be AND’ed together. It can only contain
    * AudienceFilterExpressions with or_group. This must be set for the top
@@ -15,10 +33,13 @@ public interface AudienceFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * * @return Whether the andGroup field is set. */ boolean hasAndGroup(); /** + * + * *
    * A list of expressions to be AND’ed together. It can only contain
    * AudienceFilterExpressions with or_group. This must be set for the top
@@ -26,10 +47,13 @@ public interface AudienceFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; + * * @return The andGroup. */ com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup(); /** + * + * *
    * A list of expressions to be AND’ed together. It can only contain
    * AudienceFilterExpressions with or_group. This must be set for the top
@@ -41,26 +65,34 @@ public interface AudienceFilterExpressionOrBuilder extends
   com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getAndGroupOrBuilder();
 
   /**
+   *
+   *
    * 
    * A list of expressions to OR’ed together. It cannot contain
    * AudienceFilterExpressions with and_group or or_group.
    * 
* * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * * @return Whether the orGroup field is set. */ boolean hasOrGroup(); /** + * + * *
    * A list of expressions to OR’ed together. It cannot contain
    * AudienceFilterExpressions with and_group or or_group.
    * 
* * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; + * * @return The orGroup. */ com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup(); /** + * + * *
    * A list of expressions to OR’ed together. It cannot contain
    * AudienceFilterExpressions with and_group or or_group.
@@ -71,6 +103,8 @@ public interface AudienceFilterExpressionOrBuilder extends
   com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getOrGroupOrBuilder();
 
   /**
+   *
+   *
    * 
    * A filter expression to be NOT'ed (For example, inverted, complemented).
    * It can only include a dimension_or_metric_filter. This cannot be set on
@@ -78,10 +112,13 @@ public interface AudienceFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * * @return Whether the notExpression field is set. */ boolean hasNotExpression(); /** + * + * *
    * A filter expression to be NOT'ed (For example, inverted, complemented).
    * It can only include a dimension_or_metric_filter. This cannot be set on
@@ -89,10 +126,13 @@ public interface AudienceFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; + * * @return The notExpression. */ com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression(); /** + * + * *
    * A filter expression to be NOT'ed (For example, inverted, complemented).
    * It can only include a dimension_or_metric_filter. This cannot be set on
@@ -104,56 +144,79 @@ public interface AudienceFilterExpressionOrBuilder extends
   com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getNotExpressionOrBuilder();
 
   /**
+   *
+   *
    * 
    * A filter on a single dimension or metric. This cannot be set on the top
    * level AudienceFilterExpression.
    * 
* - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * * @return Whether the dimensionOrMetricFilter field is set. */ boolean hasDimensionOrMetricFilter(); /** + * + * *
    * A filter on a single dimension or metric. This cannot be set on the top
    * level AudienceFilterExpression.
    * 
* - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * * @return The dimensionOrMetricFilter. */ com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter getDimensionOrMetricFilter(); /** + * + * *
    * A filter on a single dimension or metric. This cannot be set on the top
    * level AudienceFilterExpression.
    * 
* - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * + * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; + * */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder getDimensionOrMetricFilterOrBuilder(); + com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder + getDimensionOrMetricFilterOrBuilder(); /** + * + * *
    * Creates a filter that matches a specific event. This cannot be set on the
    * top level AudienceFilterExpression.
    * 
* * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * * @return Whether the eventFilter field is set. */ boolean hasEventFilter(); /** + * + * *
    * Creates a filter that matches a specific event. This cannot be set on the
    * top level AudienceFilterExpression.
    * 
* * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; + * * @return The eventFilter. */ com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter(); /** + * + * *
    * Creates a filter that matches a specific event. This cannot be set on the
    * top level AudienceFilterExpression.
diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java
new file mode 100644
index 000000000000..95daddfb8432
--- /dev/null
+++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java
@@ -0,0 +1,207 @@
+/*
+ * 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/admin/v1alpha/audience.proto
+
+package com.google.analytics.admin.v1alpha;
+
+/**
+ *
+ *
+ * 
+ * Specifies how to evaluate users for joining an Audience.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceFilterScope} + */ +public enum AudienceFilterScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Scope is not specified.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + */ + AUDIENCE_FILTER_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * event.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + */ + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT(1), + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + */ + AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION(2), + /** + * + * + *
+   * User joins the Audience if the filter condition is met by any event
+   * across any session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; + */ + AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Scope is not specified.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; + */ + public static final int AUDIENCE_FILTER_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * event.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; + */ + public static final int AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT_VALUE = 1; + /** + * + * + *
+   * User joins the Audience if the filter condition is met within one
+   * session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; + */ + public static final int AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION_VALUE = 2; + /** + * + * + *
+   * User joins the Audience if the filter condition is met by any event
+   * across any session.
+   * 
+ * + * AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; + */ + public static final int AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS_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 AudienceFilterScope 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 AudienceFilterScope forNumber(int value) { + switch (value) { + case 0: + return AUDIENCE_FILTER_SCOPE_UNSPECIFIED; + case 1: + return AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT; + case 2: + return AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION; + case 3: + return AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AudienceFilterScope findValueByNumber(int number) { + return AudienceFilterScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AudienceFilterScope[] VALUES = values(); + + public static AudienceFilterScope valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AudienceFilterScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceFilterScope) +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java new file mode 100644 index 000000000000..cb33210e83e9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java @@ -0,0 +1,278 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.Audience) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name for this Audience resource.
+   * Format: properties/{propertyId}/audiences/{audienceId}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the Audience.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the Audience.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Required. The description of the Audience.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. The duration a user should stay in an Audience. It
+   * cannot be set to more than 540 days.
+   * 
+ * + * + * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The membershipDurationDays. + */ + int getMembershipDurationDays(); + + /** + * + * + *
+   * Output only. It is automatically set by GA to false if this is an NPA
+   * Audience and is excluded from ads personalization.
+   * 
+ * + * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The adsPersonalizationEnabled. + */ + boolean getAdsPersonalizationEnabled(); + + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not
+   * set, no event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTrigger field is set. + */ + boolean hasEventTrigger(); + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not
+   * set, no event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTrigger. + */ + com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger(); + /** + * + * + *
+   * Optional. Specifies an event to log when a user joins the Audience. If not
+   * set, no event is logged when a user joins the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder getEventTriggerOrBuilder(); + + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the
+   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+   * ignored when there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for exclusionDurationMode. + */ + int getExclusionDurationModeValue(); + /** + * + * + *
+   * Immutable. Specifies how long an exclusion lasts for users that meet the
+   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
+   * ignored when there is no EXCLUDE filter clause in the Audience.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The exclusionDurationMode. + */ + com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode + getExclusionDurationMode(); + + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List getFilterClausesList(); + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index); + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + int getFilterClausesCount(); + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterClausesOrBuilderList(); + /** + * + * + *
+   * Required. Immutable. Unordered list. Filter clauses that define the
+   * Audience. All clauses will be AND’ed together.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder getFilterClausesOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java new file mode 100644 index 000000000000..2f8930273c48 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java @@ -0,0 +1,393 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public final class AudienceProto { + private AudienceProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_Audience_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/analytics/admin/v1alpha/audienc" + + "e.proto\022\036google.analytics.admin.v1alpha\032" + + "\037google/api/field_behavior.proto\032\031google" + + "/api/resource.proto\032\036google/protobuf/dur" + + "ation.proto\"\206\014\n\037AudienceDimensionOrMetri" + + "cFilter\022e\n\rstring_filter\030\002 \001(\0132L.google." + + "analytics.admin.v1alpha.AudienceDimensio" + + "nOrMetricFilter.StringFilterH\000\022f\n\016in_lis" + + "t_filter\030\003 \001(\0132L.google.analytics.admin." + + "v1alpha.AudienceDimensionOrMetricFilter." + + "InListFilterH\000\022g\n\016numeric_filter\030\004 \001(\0132M" + + ".google.analytics.admin.v1alpha.Audience" + + "DimensionOrMetricFilter.NumericFilterH\000\022" + + "g\n\016between_filter\030\005 \001(\0132M.google.analyti" + + "cs.admin.v1alpha.AudienceDimensionOrMetr" + + "icFilter.BetweenFilterH\000\022\031\n\nfield_name\030\001" + + " \001(\tB\005\342A\002\002\005\022\"\n\024at_any_point_in_time\030\006 \001(" + + "\010B\004\342A\001\001\022!\n\023in_any_n_day_period\030\007 \001(\005B\004\342A" + + "\001\001\032\246\002\n\014StringFilter\022p\n\nmatch_type\030\001 \001(\0162" + + "V.google.analytics.admin.v1alpha.Audienc" + + "eDimensionOrMetricFilter.StringFilter.Ma" + + "tchTypeB\004\342A\001\002\022\023\n\005value\030\002 \001(\tB\004\342A\001\002\022\034\n\016ca" + + "se_sensitive\030\003 \001(\010B\004\342A\001\001\"q\n\tMatchType\022\032\n" + + "\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013" + + "BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS" + + "\020\004\022\017\n\013FULL_REGEXP\020\005\032B\n\014InListFilter\022\024\n\006v" + + "alues\030\001 \003(\tB\004\342A\001\002\022\034\n\016case_sensitive\030\002 \001(" + + "\010B\004\342A\001\001\032J\n\014NumericValue\022\025\n\013int64_value\030\001" + + " \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone_va" + + "lue\032\270\002\n\rNumericFilter\022p\n\toperation\030\001 \001(\016" + + "2W.google.analytics.admin.v1alpha.Audien" + + "ceDimensionOrMetricFilter.NumericFilter." + + "OperationB\004\342A\001\002\022a\n\005value\030\002 \001(\0132L.google." + + "analytics.admin.v1alpha.AudienceDimensio" + + "nOrMetricFilter.NumericValueB\004\342A\001\002\"R\n\tOp" + + "eration\022\031\n\025OPERATION_UNSPECIFIED\020\000\022\t\n\005EQ" + + "UAL\020\001\022\r\n\tLESS_THAN\020\002\022\020\n\014GREATER_THAN\020\004\032\335" + + "\001\n\rBetweenFilter\022f\n\nfrom_value\030\001 \001(\0132L.g" + + "oogle.analytics.admin.v1alpha.AudienceDi" + + "mensionOrMetricFilter.NumericValueB\004\342A\001\002" + + "\022d\n\010to_value\030\002 \001(\0132L.google.analytics.ad" + + "min.v1alpha.AudienceDimensionOrMetricFil" + + "ter.NumericValueB\004\342A\001\002B\014\n\none_filter\"\233\001\n" + + "\023AudienceEventFilter\022\031\n\nevent_name\030\001 \001(\t" + + "B\005\342A\002\002\005\022i\n!event_parameter_filter_expres" + + "sion\030\002 \001(\01328.google.analytics.admin.v1al" + + "pha.AudienceFilterExpressionB\004\342A\001\001\"\317\003\n\030A" + + "udienceFilterExpression\022Q\n\tand_group\030\001 \001" + + "(\0132<.google.analytics.admin.v1alpha.Audi" + + "enceFilterExpressionListH\000\022P\n\010or_group\030\002" + + " \001(\0132<.google.analytics.admin.v1alpha.Au" + + "dienceFilterExpressionListH\000\022R\n\016not_expr" + + "ession\030\003 \001(\01328.google.analytics.admin.v1" + + "alpha.AudienceFilterExpressionH\000\022e\n\032dime" + + "nsion_or_metric_filter\030\004 \001(\0132?.google.an" + + "alytics.admin.v1alpha.AudienceDimensionO" + + "rMetricFilterH\000\022K\n\014event_filter\030\005 \001(\01323." + + "google.analytics.admin.v1alpha.AudienceE" + + "ventFilterH\000B\006\n\004expr\"t\n\034AudienceFilterEx" + + "pressionList\022T\n\022filter_expressions\030\001 \003(\013" + + "28.google.analytics.admin.v1alpha.Audien" + + "ceFilterExpression\"\275\001\n\024AudienceSimpleFil" + + "ter\022I\n\005scope\030\001 \001(\01623.google.analytics.ad" + + "min.v1alpha.AudienceFilterScopeB\005\342A\002\002\005\022Z" + + "\n\021filter_expression\030\002 \001(\01328.google.analy" + + "tics.admin.v1alpha.AudienceFilterExpress" + + "ionB\005\342A\002\002\005\"\263\004\n\026AudienceSequenceFilter\022I\n" + + "\005scope\030\001 \001(\01623.google.analytics.admin.v1" + + "alpha.AudienceFilterScopeB\005\342A\002\002\005\022B\n\031sequ" + + "ence_maximum_duration\030\002 \001(\0132\031.google.pro" + + "tobuf.DurationB\004\342A\001\001\022i\n\016sequence_steps\030\003" + + " \003(\0132K.google.analytics.admin.v1alpha.Au" + + "dienceSequenceFilter.AudienceSequenceSte" + + "pB\004\342A\001\002\032\236\002\n\024AudienceSequenceStep\022I\n\005scop" + + "e\030\001 \001(\01623.google.analytics.admin.v1alpha" + + ".AudienceFilterScopeB\005\342A\002\002\005\022!\n\023immediate" + + "ly_follows\030\002 \001(\010B\004\342A\001\001\022<\n\023constraint_dur" + + "ation\030\003 \001(\0132\031.google.protobuf.DurationB\004" + + "\342A\001\001\022Z\n\021filter_expression\030\004 \001(\01328.google" + + ".analytics.admin.v1alpha.AudienceFilterE" + + "xpressionB\005\342A\002\002\005\"\374\002\n\024AudienceFilterClaus" + + "e\022M\n\rsimple_filter\030\002 \001(\01324.google.analyt" + + "ics.admin.v1alpha.AudienceSimpleFilterH\000" + + "\022Q\n\017sequence_filter\030\003 \001(\01326.google.analy" + + "tics.admin.v1alpha.AudienceSequenceFilte" + + "rH\000\022b\n\013clause_type\030\001 \001(\0162G.google.analyt" + + "ics.admin.v1alpha.AudienceFilterClause.A" + + "udienceClauseTypeB\004\342A\001\002\"T\n\022AudienceClaus" + + "eType\022$\n AUDIENCE_CLAUSE_TYPE_UNSPECIFIE" + + "D\020\000\022\013\n\007INCLUDE\020\001\022\013\n\007EXCLUDE\020\002B\010\n\006filter\"" + + "\365\001\n\024AudienceEventTrigger\022\030\n\nevent_name\030\001" + + " \001(\tB\004\342A\001\002\022^\n\rlog_condition\030\002 \001(\0162A.goog" + + "le.analytics.admin.v1alpha.AudienceEvent" + + "Trigger.LogConditionB\004\342A\001\002\"c\n\014LogConditi" + + "on\022\035\n\031LOG_CONDITION_UNSPECIFIED\020\000\022\023\n\017AUD" + + "IENCE_JOINED\020\001\022\037\n\033AUDIENCE_MEMBERSHIP_RE" + + "NEWED\020\002\"\240\005\n\010Audience\022\022\n\004name\030\001 \001(\tB\004\342A\001\003" + + "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n\013descript" + + "ion\030\003 \001(\tB\004\342A\001\002\022\'\n\030membership_duration_d" + + "ays\030\004 \001(\005B\005\342A\002\002\005\022)\n\033ads_personalization_" + + "enabled\030\005 \001(\010B\004\342A\001\003\022Q\n\revent_trigger\030\006 \001" + + "(\01324.google.analytics.admin.v1alpha.Audi" + + "enceEventTriggerB\004\342A\001\001\022m\n\027exclusion_dura" + + "tion_mode\030\007 \001(\0162F.google.analytics.admin" + + ".v1alpha.Audience.AudienceExclusionDurat" + + "ionModeB\004\342A\001\005\022T\n\016filter_clauses\030\010 \003(\01324." + + "google.analytics.admin.v1alpha.AudienceF" + + "ilterClauseB\006\342A\003\005\002\006\"\203\001\n\035AudienceExclusio" + + "nDurationMode\0220\n,AUDIENCE_EXCLUSION_DURA" + + "TION_MODE_UNSPECIFIED\020\000\022\027\n\023EXCLUDE_TEMPO" + + "RARILY\020\001\022\027\n\023EXCLUDE_PERMANENTLY\020\002:W\352AT\n&" + + "analyticsadmin.googleapis.com/Audience\022*" + + "properties/{property}/audiences/{audienc" + + "e}*\307\001\n\023AudienceFilterScope\022%\n!AUDIENCE_F" + + "ILTER_SCOPE_UNSPECIFIED\020\000\022+\n\'AUDIENCE_FI" + + "LTER_SCOPE_WITHIN_SAME_EVENT\020\001\022-\n)AUDIEN" + + "CE_FILTER_SCOPE_WITHIN_SAME_SESSION\020\002\022-\n" + + ")AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIO" + + "NS\020\003Bu\n\"com.google.analytics.admin.v1alp" + + "haB\rAudienceProtoP\001Z>cloud.google.com/go" + + "/analytics/admin/apiv1alpha/adminpb;admi" + + "npbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor, + new java.lang.String[] { + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "FieldName", + "AtAnyPointInTime", + "InAnyNDayPeriod", + "OneFilter", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor, + new java.lang.String[] { + "Values", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(2); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor, + new java.lang.String[] { + "Int64Value", "DoubleValue", "OneValue", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(3); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor, + new java.lang.String[] { + "Operation", "Value", + }); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor + .getNestedTypes() + .get(4); + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor, + new java.lang.String[] { + "FromValue", "ToValue", + }); + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor, + new java.lang.String[] { + "EventName", "EventParameterFilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", + "OrGroup", + "NotExpression", + "DimensionOrMetricFilter", + "EventFilter", + "Expr", + }); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor, + new java.lang.String[] { + "FilterExpressions", + }); + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor, + new java.lang.String[] { + "Scope", "FilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor, + new java.lang.String[] { + "Scope", "SequenceMaximumDuration", "SequenceSteps", + }); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor = + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor, + new java.lang.String[] { + "Scope", "ImmediatelyFollows", "ConstraintDuration", "FilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor, + new java.lang.String[] { + "SimpleFilter", "SequenceFilter", "ClauseType", "Filter", + }); + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor, + new java.lang.String[] { + "EventName", "LogCondition", + }); + internal_static_google_analytics_admin_v1alpha_Audience_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_Audience_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "MembershipDurationDays", + "AdsPersonalizationEnabled", + "EventTrigger", + "ExclusionDurationMode", + "FilterClauses", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java new file mode 100644 index 000000000000..b23b1d4b1bb5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java @@ -0,0 +1,3053 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Defines filters that must occur in a specific order for the user to be a
+ * member of the Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter} + */ +public final class AudienceSequenceFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter) + AudienceSequenceFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceSequenceFilter.newBuilder() to construct. + private AudienceSequenceFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSequenceFilter() { + scope_ = 0; + sequenceSteps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSequenceFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder.class); + } + + public interface AudienceSequenceStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); + + /** + * + * + *
+     * Optional. If true, the event satisfying this step must be the very next
+     * event after the event satisfying the last step. If unset or false, this
+     * step indirectly follows the prior step; for example, there may be
+     * events between the prior step and this step. It is ignored for the
+     * first step.
+     * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The immediatelyFollows. + */ + boolean getImmediatelyFollows(); + + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the
+     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+     * constraint_duration). If not set, there is no duration requirement (the
+     * duration is effectively unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the constraintDuration field is set. + */ + boolean hasConstraintDuration(); + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the
+     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+     * constraint_duration). If not set, there is no duration requirement (the
+     * duration is effectively unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The constraintDuration. + */ + com.google.protobuf.Duration getConstraintDuration(); + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the
+     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+     * constraint_duration). If not set, there is no duration requirement (the
+     * duration is effectively unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder(); + + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric,
+     * or event filters in each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + boolean hasFilterExpression(); + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric,
+     * or event filters in each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression(); + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric,
+     * or event filters in each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder(); + } + /** + * + * + *
+   * A condition that must occur in the specified step order for this user
+   * to match the sequence.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} + */ + public static final class AudienceSequenceStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + AudienceSequenceStepOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceSequenceStep.newBuilder() to construct. + private AudienceSequenceStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSequenceStep() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSequenceStep(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + .class); + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + + public static final int IMMEDIATELY_FOLLOWS_FIELD_NUMBER = 2; + private boolean immediatelyFollows_ = false; + /** + * + * + *
+     * Optional. If true, the event satisfying this step must be the very next
+     * event after the event satisfying the last step. If unset or false, this
+     * step indirectly follows the prior step; for example, there may be
+     * events between the prior step and this step. It is ignored for the
+     * first step.
+     * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The immediatelyFollows. + */ + @java.lang.Override + public boolean getImmediatelyFollows() { + return immediatelyFollows_; + } + + public static final int CONSTRAINT_DURATION_FIELD_NUMBER = 3; + private com.google.protobuf.Duration constraintDuration_; + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the
+     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+     * constraint_duration). If not set, there is no duration requirement (the
+     * duration is effectively unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the constraintDuration field is set. + */ + @java.lang.Override + public boolean hasConstraintDuration() { + return constraintDuration_ != null; + } + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the
+     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+     * constraint_duration). If not set, there is no duration requirement (the
+     * duration is effectively unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The constraintDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getConstraintDuration() { + return constraintDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : constraintDuration_; + } + /** + * + * + *
+     * Optional. When set, this step must be satisfied within the
+     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+     * constraint_duration). If not set, there is no duration requirement (the
+     * duration is effectively unlimited). It is ignored for the first step.
+     * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder() { + return constraintDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : constraintDuration_; + } + + public static final int FILTER_EXPRESSION_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric,
+     * or event filters in each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + @java.lang.Override + public boolean hasFilterExpression() { + return filterExpression_ != null; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric,
+     * or event filters in each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric,
+     * or event filters in each step.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + + 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 (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope + .AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scope_); + } + if (immediatelyFollows_ != false) { + output.writeBool(2, immediatelyFollows_); + } + if (constraintDuration_ != null) { + output.writeMessage(3, getConstraintDuration()); + } + if (filterExpression_ != null) { + output.writeMessage(4, getFilterExpression()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope + .AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + if (immediatelyFollows_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, immediatelyFollows_); + } + if (constraintDuration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConstraintDuration()); + } + if (filterExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilterExpression()); + } + 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.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep other = + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) obj; + + if (scope_ != other.scope_) return false; + if (getImmediatelyFollows() != other.getImmediatelyFollows()) return false; + if (hasConstraintDuration() != other.hasConstraintDuration()) return false; + if (hasConstraintDuration()) { + if (!getConstraintDuration().equals(other.getConstraintDuration())) return false; + } + if (hasFilterExpression() != other.hasFilterExpression()) return false; + if (hasFilterExpression()) { + if (!getFilterExpression().equals(other.getFilterExpression())) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + IMMEDIATELY_FOLLOWS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getImmediatelyFollows()); + if (hasConstraintDuration()) { + hash = (37 * hash) + CONSTRAINT_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getConstraintDuration().hashCode(); + } + if (hasFilterExpression()) { + hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A condition that must occur in the specified step order for this user
+     * to match the sequence.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = 0; + immediatelyFollows_ = false; + constraintDuration_ = null; + if (constraintDurationBuilder_ != null) { + constraintDurationBuilder_.dispose(); + constraintDurationBuilder_ = null; + } + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + build() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + buildPartial() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result = + new com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.immediatelyFollows_ = immediatelyFollows_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.constraintDuration_ = + constraintDurationBuilder_ == null + ? constraintDuration_ + : constraintDurationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filterExpression_ = + filterExpressionBuilder_ == null + ? filterExpression_ + : filterExpressionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep other) { + if (other + == com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance()) return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.getImmediatelyFollows() != false) { + setImmediatelyFollows(other.getImmediatelyFollows()); + } + if (other.hasConstraintDuration()) { + mergeConstraintDuration(other.getConstraintDuration()); + } + if (other.hasFilterExpression()) { + mergeFilterExpression(other.getFilterExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + immediatelyFollows_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getConstraintDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int scope_ = 0; + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.analytics.admin.v1alpha.AudienceFilterScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. Specifies the scope for this step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = 0; + onChanged(); + return this; + } + + private boolean immediatelyFollows_; + /** + * + * + *
+       * Optional. If true, the event satisfying this step must be the very next
+       * event after the event satisfying the last step. If unset or false, this
+       * step indirectly follows the prior step; for example, there may be
+       * events between the prior step and this step. It is ignored for the
+       * first step.
+       * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The immediatelyFollows. + */ + @java.lang.Override + public boolean getImmediatelyFollows() { + return immediatelyFollows_; + } + /** + * + * + *
+       * Optional. If true, the event satisfying this step must be the very next
+       * event after the event satisfying the last step. If unset or false, this
+       * step indirectly follows the prior step; for example, there may be
+       * events between the prior step and this step. It is ignored for the
+       * first step.
+       * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The immediatelyFollows to set. + * @return This builder for chaining. + */ + public Builder setImmediatelyFollows(boolean value) { + + immediatelyFollows_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the event satisfying this step must be the very next
+       * event after the event satisfying the last step. If unset or false, this
+       * step indirectly follows the prior step; for example, there may be
+       * events between the prior step and this step. It is ignored for the
+       * first step.
+       * 
+ * + * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearImmediatelyFollows() { + bitField0_ = (bitField0_ & ~0x00000002); + immediatelyFollows_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration constraintDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + constraintDurationBuilder_; + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the constraintDuration field is set. + */ + public boolean hasConstraintDuration() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The constraintDuration. + */ + public com.google.protobuf.Duration getConstraintDuration() { + if (constraintDurationBuilder_ == null) { + return constraintDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : constraintDuration_; + } else { + return constraintDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConstraintDuration(com.google.protobuf.Duration value) { + if (constraintDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + constraintDuration_ = value; + } else { + constraintDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setConstraintDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (constraintDurationBuilder_ == null) { + constraintDuration_ = builderForValue.build(); + } else { + constraintDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeConstraintDuration(com.google.protobuf.Duration value) { + if (constraintDurationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && constraintDuration_ != null + && constraintDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getConstraintDurationBuilder().mergeFrom(value); + } else { + constraintDuration_ = value; + } + } else { + constraintDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearConstraintDuration() { + bitField0_ = (bitField0_ & ~0x00000004); + constraintDuration_ = null; + if (constraintDurationBuilder_ != null) { + constraintDurationBuilder_.dispose(); + constraintDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getConstraintDurationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConstraintDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder() { + if (constraintDurationBuilder_ != null) { + return constraintDurationBuilder_.getMessageOrBuilder(); + } else { + return constraintDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : constraintDuration_; + } + } + /** + * + * + *
+       * Optional. When set, this step must be satisfied within the
+       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
+       * constraint_duration). If not set, there is no duration requirement (the
+       * duration is effectively unlimited). It is ignored for the first step.
+       * 
+ * + * + * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getConstraintDurationFieldBuilder() { + if (constraintDurationBuilder_ == null) { + constraintDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getConstraintDuration(), getParentForChildren(), isClean()); + constraintDuration_ = null; + } + return constraintDurationBuilder_; + } + + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + filterExpressionBuilder_; + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + public boolean hasFilterExpression() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + if (filterExpressionBuilder_ == null) { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } else { + return filterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterExpression_ = value; + } else { + filterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionBuilder_ == null) { + filterExpression_ = builderForValue.build(); + } else { + filterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && filterExpression_ != null + && filterExpression_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpression + .getDefaultInstance()) { + getFilterExpressionBuilder().mergeFrom(value); + } else { + filterExpression_ = value; + } + } else { + filterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearFilterExpression() { + bitField0_ = (bitField0_ & ~0x00000008); + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getFilterExpressionBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + if (filterExpressionBuilder_ != null) { + return filterExpressionBuilder_.getMessageOrBuilder(); + } else { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + } + /** + * + * + *
+       * Required. Immutable. A logical expression of Audience dimension, metric,
+       * or event filters in each step.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionFieldBuilder() { + if (filterExpressionBuilder_ == null) { + filterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + getFilterExpression(), getParentForChildren(), isClean()); + filterExpression_ = null; + } + return filterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) + private static final com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStep + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSequenceStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_ = 0; + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + + public static final int SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration sequenceMaximumDuration_; + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sequenceMaximumDuration field is set. + */ + @java.lang.Override + public boolean hasSequenceMaximumDuration() { + return sequenceMaximumDuration_ != null; + } + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sequenceMaximumDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getSequenceMaximumDuration() { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } + + public static final int SEQUENCE_STEPS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + sequenceSteps_; + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + getSequenceStepsList() { + return sequenceSteps_; + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder> + getSequenceStepsOrBuilderList() { + return sequenceSteps_; + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getSequenceStepsCount() { + return sequenceSteps_.size(); + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getSequenceSteps(int index) { + return sequenceSteps_.get(index); + } + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder + getSequenceStepsOrBuilder(int index) { + return sequenceSteps_.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 { + if (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scope_); + } + if (sequenceMaximumDuration_ != null) { + output.writeMessage(2, getSequenceMaximumDuration()); + } + for (int i = 0; i < sequenceSteps_.size(); i++) { + output.writeMessage(3, sequenceSteps_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + if (sequenceMaximumDuration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSequenceMaximumDuration()); + } + for (int i = 0; i < sequenceSteps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, sequenceSteps_.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.admin.v1alpha.AudienceSequenceFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceSequenceFilter other = + (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) obj; + + if (scope_ != other.scope_) return false; + if (hasSequenceMaximumDuration() != other.hasSequenceMaximumDuration()) return false; + if (hasSequenceMaximumDuration()) { + if (!getSequenceMaximumDuration().equals(other.getSequenceMaximumDuration())) return false; + } + if (!getSequenceStepsList().equals(other.getSequenceStepsList())) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + if (hasSequenceMaximumDuration()) { + hash = (37 * hash) + SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getSequenceMaximumDuration().hashCode(); + } + if (getSequenceStepsCount() > 0) { + hash = (37 * hash) + SEQUENCE_STEPS_FIELD_NUMBER; + hash = (53 * hash) + getSequenceStepsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter 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; + } + /** + * + * + *
+   * Defines filters that must occur in a specific order for the user to be a
+   * member of the Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter) + com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.class, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceSequenceFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = 0; + sequenceMaximumDuration_ = null; + if (sequenceMaximumDurationBuilder_ != null) { + sequenceMaximumDurationBuilder_.dispose(); + sequenceMaximumDurationBuilder_ = null; + } + if (sequenceStepsBuilder_ == null) { + sequenceSteps_ = java.util.Collections.emptyList(); + } else { + sequenceSteps_ = null; + sequenceStepsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter build() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter result = + new com.google.analytics.admin.v1alpha.AudienceSequenceFilter(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter result) { + if (sequenceStepsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + sequenceSteps_ = java.util.Collections.unmodifiableList(sequenceSteps_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.sequenceSteps_ = sequenceSteps_; + } else { + result.sequenceSteps_ = sequenceStepsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceSequenceFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sequenceMaximumDuration_ = + sequenceMaximumDurationBuilder_ == null + ? sequenceMaximumDuration_ + : sequenceMaximumDurationBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceSequenceFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceSequenceFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceSequenceFilter other) { + if (other == com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.hasSequenceMaximumDuration()) { + mergeSequenceMaximumDuration(other.getSequenceMaximumDuration()); + } + if (sequenceStepsBuilder_ == null) { + if (!other.sequenceSteps_.isEmpty()) { + if (sequenceSteps_.isEmpty()) { + sequenceSteps_ = other.sequenceSteps_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureSequenceStepsIsMutable(); + sequenceSteps_.addAll(other.sequenceSteps_); + } + onChanged(); + } + } else { + if (!other.sequenceSteps_.isEmpty()) { + if (sequenceStepsBuilder_.isEmpty()) { + sequenceStepsBuilder_.dispose(); + sequenceStepsBuilder_ = null; + sequenceSteps_ = other.sequenceSteps_; + bitField0_ = (bitField0_ & ~0x00000004); + sequenceStepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSequenceStepsFieldBuilder() + : null; + } else { + sequenceStepsBuilder_.addAllMessages(other.sequenceSteps_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getSequenceMaximumDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep m = + input.readMessage( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStep.parser(), + extensionRegistry); + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(m); + } else { + sequenceStepsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.analytics.admin.v1alpha.AudienceFilterScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration sequenceMaximumDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + sequenceMaximumDurationBuilder_; + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sequenceMaximumDuration field is set. + */ + public boolean hasSequenceMaximumDuration() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sequenceMaximumDuration. + */ + public com.google.protobuf.Duration getSequenceMaximumDuration() { + if (sequenceMaximumDurationBuilder_ == null) { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } else { + return sequenceMaximumDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSequenceMaximumDuration(com.google.protobuf.Duration value) { + if (sequenceMaximumDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sequenceMaximumDuration_ = value; + } else { + sequenceMaximumDurationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSequenceMaximumDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDuration_ = builderForValue.build(); + } else { + sequenceMaximumDurationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSequenceMaximumDuration(com.google.protobuf.Duration value) { + if (sequenceMaximumDurationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sequenceMaximumDuration_ != null + && sequenceMaximumDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getSequenceMaximumDurationBuilder().mergeFrom(value); + } else { + sequenceMaximumDuration_ = value; + } + } else { + sequenceMaximumDurationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSequenceMaximumDuration() { + bitField0_ = (bitField0_ & ~0x00000002); + sequenceMaximumDuration_ = null; + if (sequenceMaximumDurationBuilder_ != null) { + sequenceMaximumDurationBuilder_.dispose(); + sequenceMaximumDurationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getSequenceMaximumDurationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSequenceMaximumDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { + if (sequenceMaximumDurationBuilder_ != null) { + return sequenceMaximumDurationBuilder_.getMessageOrBuilder(); + } else { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } + } + /** + * + * + *
+     * Optional. Defines the time period in which the whole sequence must occur.
+     * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getSequenceMaximumDurationFieldBuilder() { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getSequenceMaximumDuration(), getParentForChildren(), isClean()); + sequenceMaximumDuration_ = null; + } + return sequenceMaximumDurationBuilder_; + } + + private java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + sequenceSteps_ = java.util.Collections.emptyList(); + + private void ensureSequenceStepsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + sequenceSteps_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep>( + sequenceSteps_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder> + sequenceStepsBuilder_; + + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + getSequenceStepsList() { + if (sequenceStepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(sequenceSteps_); + } else { + return sequenceStepsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getSequenceStepsCount() { + if (sequenceStepsBuilder_ == null) { + return sequenceSteps_.size(); + } else { + return sequenceStepsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + getSequenceSteps(int index) { + if (sequenceStepsBuilder_ == null) { + return sequenceSteps_.get(index); + } else { + return sequenceStepsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { + if (sequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSequenceStepsIsMutable(); + sequenceSteps_.set(index, value); + onChanged(); + } else { + sequenceStepsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + builderForValue) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.set(index, builderForValue.build()); + onChanged(); + } else { + sequenceStepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { + if (sequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(value); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { + if (sequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(index, value); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + builderForValue) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(builderForValue.build()); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addSequenceSteps( + int index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + builderForValue) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.add(index, builderForValue.build()); + onChanged(); + } else { + sequenceStepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllSequenceSteps( + java.lang.Iterable< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep> + values) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sequenceSteps_); + onChanged(); + } else { + sequenceStepsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSequenceSteps() { + if (sequenceStepsBuilder_ == null) { + sequenceSteps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + sequenceStepsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeSequenceSteps(int index) { + if (sequenceStepsBuilder_ == null) { + ensureSequenceStepsIsMutable(); + sequenceSteps_.remove(index); + onChanged(); + } else { + sequenceStepsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + getSequenceStepsBuilder(int index) { + return getSequenceStepsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder + getSequenceStepsOrBuilder(int index) { + if (sequenceStepsBuilder_ == null) { + return sequenceSteps_.get(index); + } else { + return sequenceStepsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder> + getSequenceStepsOrBuilderList() { + if (sequenceStepsBuilder_ != null) { + return sequenceStepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(sequenceSteps_); + } + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + addSequenceStepsBuilder() { + return getSequenceStepsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder + addSequenceStepsBuilder(int index) { + return getSequenceStepsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. An ordered sequence of steps. A user must complete each step in
+     * order to join the sequence filter.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder> + getSequenceStepsBuilderList() { + return getSequenceStepsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder> + getSequenceStepsFieldBuilder() { + if (sequenceStepsBuilder_ == null) { + sequenceStepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep + .Builder, + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder>( + sequenceSteps_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + sequenceSteps_ = null; + } + return sequenceStepsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter) + private static final com.google.analytics.admin.v1alpha.AudienceSequenceFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceSequenceFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSequenceFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java new file mode 100644 index 000000000000..5834e14114e2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java @@ -0,0 +1,168 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceSequenceFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSequenceFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); + + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the sequenceMaximumDuration field is set. + */ + boolean hasSequenceMaximumDuration(); + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The sequenceMaximumDuration. + */ + com.google.protobuf.Duration getSequenceMaximumDuration(); + /** + * + * + *
+   * Optional. Defines the time period in which the whole sequence must occur.
+   * 
+ * + * + * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder(); + + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getSequenceStepsList(); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getSequenceSteps( + int index); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getSequenceStepsCount(); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List< + ? extends + com.google.analytics.admin.v1alpha.AudienceSequenceFilter + .AudienceSequenceStepOrBuilder> + getSequenceStepsOrBuilderList(); + /** + * + * + *
+   * Required. An ordered sequence of steps. A user must complete each step in
+   * order to join the sequence filter.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder + getSequenceStepsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java new file mode 100644 index 000000000000..3492c1ef1abb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java @@ -0,0 +1,925 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Defines a simple filter that a user must satisfy to be a member of the
+ * Audience.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSimpleFilter} + */ +public final class AudienceSimpleFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSimpleFilter) + AudienceSimpleFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AudienceSimpleFilter.newBuilder() to construct. + private AudienceSimpleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AudienceSimpleFilter() { + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AudienceSimpleFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.class, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder.class); + } + + public static final int SCOPE_FIELD_NUMBER = 1; + private int scope_ = 0; + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + + public static final int FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or
+   * event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + @java.lang.Override + public boolean hasFilterExpression() { + return filterExpression_ != null; + } + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or
+   * event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or
+   * event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + + 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 (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, scope_); + } + if (filterExpression_ != null) { + output.writeMessage(2, getFilterExpression()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (scope_ + != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scope_); + } + if (filterExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilterExpression()); + } + 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.admin.v1alpha.AudienceSimpleFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.AudienceSimpleFilter other = + (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) obj; + + if (scope_ != other.scope_) return false; + if (hasFilterExpression() != other.hasFilterExpression()) return false; + if (hasFilterExpression()) { + if (!getFilterExpression().equals(other.getFilterExpression())) 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) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + if (hasFilterExpression()) { + hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter 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; + } + /** + * + * + *
+   * Defines a simple filter that a user must satisfy to be a member of the
+   * Audience.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSimpleFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSimpleFilter) + com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.class, + com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.AudienceSimpleFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scope_ = 0; + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AudienceProto + .internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter build() { + com.google.analytics.admin.v1alpha.AudienceSimpleFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter buildPartial() { + com.google.analytics.admin.v1alpha.AudienceSimpleFilter result = + new com.google.analytics.admin.v1alpha.AudienceSimpleFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceSimpleFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filterExpression_ = + filterExpressionBuilder_ == null ? filterExpression_ : filterExpressionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.AudienceSimpleFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.AudienceSimpleFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceSimpleFilter other) { + if (other == com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance()) + return this; + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.hasFilterExpression()) { + mergeFilterExpression(other.getFilterExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { + com.google.analytics.admin.v1alpha.AudienceFilterScope result = + com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.analytics.admin.v1alpha.AudienceFilterScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Specifies the scope for this filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000001); + scope_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + filterExpressionBuilder_; + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + public boolean hasFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { + if (filterExpressionBuilder_ == null) { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } else { + return filterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterExpression_ = value; + } else { + filterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { + if (filterExpressionBuilder_ == null) { + filterExpression_ = builderForValue.build(); + } else { + filterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeFilterExpression( + com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && filterExpression_ != null + && filterExpression_ + != com.google.analytics.admin.v1alpha.AudienceFilterExpression + .getDefaultInstance()) { + getFilterExpressionBuilder().mergeFrom(value); + } else { + filterExpression_ = value; + } + } else { + filterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearFilterExpression() { + bitField0_ = (bitField0_ & ~0x00000002); + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder + getFilterExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + if (filterExpressionBuilder_ != null) { + return filterExpressionBuilder_.getMessageOrBuilder(); + } else { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() + : filterExpression_; + } + } + /** + * + * + *
+     * Required. Immutable. A logical expression of Audience dimension, metric, or
+     * event filters.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> + getFilterExpressionFieldBuilder() { + if (filterExpressionBuilder_ == null) { + filterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AudienceFilterExpression, + com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( + getFilterExpression(), getParentForChildren(), isClean()); + filterExpression_ = null; + } + return filterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceSimpleFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSimpleFilter) + private static final com.google.analytics.admin.v1alpha.AudienceSimpleFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceSimpleFilter(); + } + + public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AudienceSimpleFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java new file mode 100644 index 000000000000..0b1acf014b5a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/admin/v1alpha/audience.proto + +package com.google.analytics.admin.v1alpha; + +public interface AudienceSimpleFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSimpleFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. Specifies the scope for this filter.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); + + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or
+   * event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the filterExpression field is set. + */ + boolean hasFilterExpression(); + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or
+   * event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The filterExpression. + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression(); + /** + * + * + *
+   * Required. Immutable. A logical expression of Audience dimension, metric, or
+   * event filters.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder + getFilterExpressionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java new file mode 100644 index 000000000000..1afe0b3fb014 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java @@ -0,0 +1,1263 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for BatchCreateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest} + */ +public final class BatchCreateAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + BatchCreateAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateAccessBindingsRequest.newBuilder() to construct. + private BatchCreateAccessBindingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateAccessBindingsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateAccessBindingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List requests_; + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(3, requests_.get(i)); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, requests_.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.admin.v1alpha.BatchCreateAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for BatchCreateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest m = + input.readMessage( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * field in the CreateAccessBindingRequest messages must either be empty or
+     * match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + requests_ = java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to create.
+     * A maximum of 1000 access bindings can be created in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..4bb7364f678e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchCreateAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * field in the CreateAccessBindingRequest messages must either be empty or
+   * match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to create.
+   * A maximum of 1000 access bindings can be created in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java new file mode 100644 index 000000000000..ea6496e880d2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java @@ -0,0 +1,962 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for BatchCreateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse} + */ +public final class BatchCreateAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + BatchCreateAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchCreateAccessBindingsResponse.newBuilder() to construct. + private BatchCreateAccessBindingsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchCreateAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchCreateAccessBindingsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.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 < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.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 < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.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.admin.v1alpha.BatchCreateAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) 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 (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for BatchCreateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + .getDefaultInstance()) return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings created.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchCreateAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..fa1d388f82de --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchCreateAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * The access bindings created.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java new file mode 100644 index 000000000000..72079084ba64 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java @@ -0,0 +1,1263 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for BatchDeleteAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest} + */ +public final class BatchDeleteAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + BatchDeleteAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDeleteAccessBindingsRequest.newBuilder() to construct. + private BatchDeleteAccessBindingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchDeleteAccessBindingsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDeleteAccessBindingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field in DeleteAccessBindingRequest
+   * messages must match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field in DeleteAccessBindingRequest
+   * messages must match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admin.v1alpha.BatchDeleteAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for BatchDeleteAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest m = + input.readMessage( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field in DeleteAccessBindingRequest
+     * messages must match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field in DeleteAccessBindingRequest
+     * messages must match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field in DeleteAccessBindingRequest
+     * messages must match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field in DeleteAccessBindingRequest
+     * messages must match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field in DeleteAccessBindingRequest
+     * messages must match this field. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + requests_ = java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to delete.
+     * A maximum of 1000 access bindings can be deleted in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchDeleteAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..18837254dafc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java @@ -0,0 +1,130 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchDeleteAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field in DeleteAccessBindingRequest
+   * messages must match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field in DeleteAccessBindingRequest
+   * messages must match this field. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to delete.
+   * A maximum of 1000 access bindings can be deleted in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java new file mode 100644 index 000000000000..8f0eef071f51 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java @@ -0,0 +1,1029 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for BatchGetAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest} + */ +public final class BatchGetAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + BatchGetAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchGetAccessBindingsRequest.newBuilder() to construct. + private BatchGetAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchGetAccessBindingsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAccessBindingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + 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.admin.v1alpha.BatchGetAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for BatchGetAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided values for the 'names' field must match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The names of the access bindings to retrieve.
+     * A maximum of 1000 access bindings can be retrieved in a batch.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..84c17c4b707e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchGetAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided values for the 'names' field must match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + /** + * + * + *
+   * Required. The names of the access bindings to retrieve.
+   * A maximum of 1000 access bindings can be retrieved in a batch.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java new file mode 100644 index 000000000000..7824342d98b9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java @@ -0,0 +1,960 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for BatchGetAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse} + */ +public final class BatchGetAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + BatchGetAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchGetAccessBindingsResponse.newBuilder() to construct. + private BatchGetAccessBindingsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchGetAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchGetAccessBindingsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.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 < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.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 < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.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.admin.v1alpha.BatchGetAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) 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 (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for BatchGetAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.getDefaultInstance()) + return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The requested access bindings.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchGetAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..12cf33755798 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchGetAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * The requested access bindings.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java new file mode 100644 index 000000000000..ea52762bb3ec --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java @@ -0,0 +1,1270 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for BatchUpdateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest} + */ +public final class BatchUpdateAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + BatchUpdateAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchUpdateAccessBindingsRequest.newBuilder() to construct. + private BatchUpdateAccessBindingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateAccessBindingsRequest() { + parent_ = ""; + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateAccessBindingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+   * match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+   * match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REQUESTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List requests_; + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRequestsList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + return requests_; + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRequestsCount() { + return requests_.size(); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index) { + return requests_.get(index); + } + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + return requests_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + output.writeMessage(2, requests_.get(i)); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.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.admin.v1alpha.BatchUpdateAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getRequestsList().equals(other.getRequestsList())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for BatchUpdateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + } else { + requests_ = null; + requestsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result) { + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000002); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRequestsFieldBuilder() + : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest m = + input.readMessage( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+     * match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+     * match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+     * match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+     * match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account or property that owns the access bindings. The parent
+     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+     * match this field.
+     * Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + requests_ = java.util.Collections.emptyList(); + + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + requests_ = + new java.util.ArrayList( + requests_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + requestsBuilder_; + + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRequests( + int index, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRequests( + int index, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRequests( + java.lang.Iterable + values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder + getRequestsOrBuilder(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder + addRequestsBuilder() { + return getRequestsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The requests specifying the access bindings to update.
+     * A maximum of 1000 access bindings can be updated in a batch.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder>( + requests_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + requests_ = null; + } + return requestsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..6d8f33629a3a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchUpdateAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+   * match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The account or property that owns the access bindings. The parent
+   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
+   * match this field.
+   * Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRequestsList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRequestsCount(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRequestsOrBuilderList(); + /** + * + * + *
+   * Required. The requests specifying the access bindings to update.
+   * A maximum of 1000 access bindings can be updated in a batch.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder getRequestsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java new file mode 100644 index 000000000000..d693c0d81bc8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java @@ -0,0 +1,962 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for BatchUpdateAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse} + */ +public final class BatchUpdateAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + BatchUpdateAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchUpdateAccessBindingsResponse.newBuilder() to construct. + private BatchUpdateAccessBindingsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BatchUpdateAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchUpdateAccessBindingsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.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 < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.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 < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.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.admin.v1alpha.BatchUpdateAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) 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 (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for BatchUpdateAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + .getDefaultInstance()) return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * The access bindings updated.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BatchUpdateAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..0de63923b99c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface BatchUpdateAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * The access bindings updated.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLink.java new file mode 100644 index 000000000000..eeab08c0045d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLink.java @@ -0,0 +1,2105 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link between a GA4 Property and BigQuery project.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BigQueryLink} + */ +public final class BigQueryLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BigQueryLink) + BigQueryLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use BigQueryLink.newBuilder() to construct. + private BigQueryLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BigQueryLink() { + name_ = ""; + project_ = ""; + exportStreams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedEvents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BigQueryLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BigQueryLink.class, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this BigQuery link.
+   * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
+   * Format: 'properties/1234/bigQueryLinks/abc567'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this BigQuery link.
+   * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
+   * Format: 'properties/1234/bigQueryLinks/abc567'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
+   * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, the returned project will always
+   * have a project that contains a project number.
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, the returned project will always
+   * have a project that contains a project number.
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when the link was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when the link was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when the link was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int DAILY_EXPORT_ENABLED_FIELD_NUMBER = 4; + private boolean dailyExportEnabled_ = false; + /** + * + * + *
+   * If set true, enables daily data export to the linked Google Cloud project.
+   * 
+ * + * bool daily_export_enabled = 4; + * + * @return The dailyExportEnabled. + */ + @java.lang.Override + public boolean getDailyExportEnabled() { + return dailyExportEnabled_; + } + + public static final int STREAMING_EXPORT_ENABLED_FIELD_NUMBER = 5; + private boolean streamingExportEnabled_ = false; + /** + * + * + *
+   * If set true, enables streaming export to the linked Google Cloud project.
+   * 
+ * + * bool streaming_export_enabled = 5; + * + * @return The streamingExportEnabled. + */ + @java.lang.Override + public boolean getStreamingExportEnabled() { + return streamingExportEnabled_; + } + + public static final int FRESH_DAILY_EXPORT_ENABLED_FIELD_NUMBER = 9; + private boolean freshDailyExportEnabled_ = false; + /** + * + * + *
+   * If set true, enables fresh daily export to the linked Google Cloud project.
+   * 
+ * + * bool fresh_daily_export_enabled = 9; + * + * @return The freshDailyExportEnabled. + */ + @java.lang.Override + public boolean getFreshDailyExportEnabled() { + return freshDailyExportEnabled_; + } + + public static final int INCLUDE_ADVERTISING_ID_FIELD_NUMBER = 6; + private boolean includeAdvertisingId_ = false; + /** + * + * + *
+   * If set true, exported data will include advertising identifiers for mobile
+   * app streams.
+   * 
+ * + * bool include_advertising_id = 6; + * + * @return The includeAdvertisingId. + */ + @java.lang.Override + public boolean getIncludeAdvertisingId() { + return includeAdvertisingId_; + } + + public static final int EXPORT_STREAMS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList exportStreams_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The list of streams under the parent property for which data will be
+   * exported.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: ['properties/1000/dataStreams/2000']
+   * 
+ * + * repeated string export_streams = 7; + * + * @return A list containing the exportStreams. + */ + public com.google.protobuf.ProtocolStringList getExportStreamsList() { + return exportStreams_; + } + /** + * + * + *
+   * The list of streams under the parent property for which data will be
+   * exported.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: ['properties/1000/dataStreams/2000']
+   * 
+ * + * repeated string export_streams = 7; + * + * @return The count of exportStreams. + */ + public int getExportStreamsCount() { + return exportStreams_.size(); + } + /** + * + * + *
+   * The list of streams under the parent property for which data will be
+   * exported.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: ['properties/1000/dataStreams/2000']
+   * 
+ * + * repeated string export_streams = 7; + * + * @param index The index of the element to return. + * @return The exportStreams at the given index. + */ + public java.lang.String getExportStreams(int index) { + return exportStreams_.get(index); + } + /** + * + * + *
+   * The list of streams under the parent property for which data will be
+   * exported.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: ['properties/1000/dataStreams/2000']
+   * 
+ * + * repeated string export_streams = 7; + * + * @param index The index of the value to return. + * @return The bytes of the exportStreams at the given index. + */ + public com.google.protobuf.ByteString getExportStreamsBytes(int index) { + return exportStreams_.getByteString(index); + } + + public static final int EXCLUDED_EVENTS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedEvents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The list of event names that will be excluded from exports.
+   * 
+ * + * repeated string excluded_events = 8; + * + * @return A list containing the excludedEvents. + */ + public com.google.protobuf.ProtocolStringList getExcludedEventsList() { + return excludedEvents_; + } + /** + * + * + *
+   * The list of event names that will be excluded from exports.
+   * 
+ * + * repeated string excluded_events = 8; + * + * @return The count of excludedEvents. + */ + public int getExcludedEventsCount() { + return excludedEvents_.size(); + } + /** + * + * + *
+   * The list of event names that will be excluded from exports.
+   * 
+ * + * repeated string excluded_events = 8; + * + * @param index The index of the element to return. + * @return The excludedEvents at the given index. + */ + public java.lang.String getExcludedEvents(int index) { + return excludedEvents_.get(index); + } + /** + * + * + *
+   * The list of event names that will be excluded from exports.
+   * 
+ * + * repeated string excluded_events = 8; + * + * @param index The index of the value to return. + * @return The bytes of the excludedEvents at the given index. + */ + public com.google.protobuf.ByteString getExcludedEventsBytes(int index) { + return excludedEvents_.getByteString(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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (dailyExportEnabled_ != false) { + output.writeBool(4, dailyExportEnabled_); + } + if (streamingExportEnabled_ != false) { + output.writeBool(5, streamingExportEnabled_); + } + if (includeAdvertisingId_ != false) { + output.writeBool(6, includeAdvertisingId_); + } + for (int i = 0; i < exportStreams_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, exportStreams_.getRaw(i)); + } + for (int i = 0; i < excludedEvents_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, excludedEvents_.getRaw(i)); + } + if (freshDailyExportEnabled_ != false) { + output.writeBool(9, freshDailyExportEnabled_); + } + 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(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (dailyExportEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, dailyExportEnabled_); + } + if (streamingExportEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, streamingExportEnabled_); + } + if (includeAdvertisingId_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, includeAdvertisingId_); + } + { + int dataSize = 0; + for (int i = 0; i < exportStreams_.size(); i++) { + dataSize += computeStringSizeNoTag(exportStreams_.getRaw(i)); + } + size += dataSize; + size += 1 * getExportStreamsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedEvents_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedEvents_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedEventsList().size(); + } + if (freshDailyExportEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, freshDailyExportEnabled_); + } + 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.admin.v1alpha.BigQueryLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.BigQueryLink other = + (com.google.analytics.admin.v1alpha.BigQueryLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getDailyExportEnabled() != other.getDailyExportEnabled()) return false; + if (getStreamingExportEnabled() != other.getStreamingExportEnabled()) return false; + if (getFreshDailyExportEnabled() != other.getFreshDailyExportEnabled()) return false; + if (getIncludeAdvertisingId() != other.getIncludeAdvertisingId()) return false; + if (!getExportStreamsList().equals(other.getExportStreamsList())) return false; + if (!getExcludedEventsList().equals(other.getExcludedEventsList())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + DAILY_EXPORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDailyExportEnabled()); + hash = (37 * hash) + STREAMING_EXPORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStreamingExportEnabled()); + hash = (37 * hash) + FRESH_DAILY_EXPORT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFreshDailyExportEnabled()); + hash = (37 * hash) + INCLUDE_ADVERTISING_ID_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAdvertisingId()); + if (getExportStreamsCount() > 0) { + hash = (37 * hash) + EXPORT_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getExportStreamsList().hashCode(); + } + if (getExcludedEventsCount() > 0) { + hash = (37 * hash) + EXCLUDED_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.BigQueryLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 Property and BigQuery project.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.BigQueryLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BigQueryLink) + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.BigQueryLink.class, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.BigQueryLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + project_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + dailyExportEnabled_ = false; + streamingExportEnabled_ = false; + freshDailyExportEnabled_ = false; + includeAdvertisingId_ = false; + exportStreams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedEvents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLink build() { + com.google.analytics.admin.v1alpha.BigQueryLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLink buildPartial() { + com.google.analytics.admin.v1alpha.BigQueryLink result = + new com.google.analytics.admin.v1alpha.BigQueryLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.BigQueryLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.dailyExportEnabled_ = dailyExportEnabled_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.streamingExportEnabled_ = streamingExportEnabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.freshDailyExportEnabled_ = freshDailyExportEnabled_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.includeAdvertisingId_ = includeAdvertisingId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + exportStreams_.makeImmutable(); + result.exportStreams_ = exportStreams_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + excludedEvents_.makeImmutable(); + result.excludedEvents_ = excludedEvents_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.BigQueryLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.BigQueryLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.BigQueryLink other) { + if (other == com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getDailyExportEnabled() != false) { + setDailyExportEnabled(other.getDailyExportEnabled()); + } + if (other.getStreamingExportEnabled() != false) { + setStreamingExportEnabled(other.getStreamingExportEnabled()); + } + if (other.getFreshDailyExportEnabled() != false) { + setFreshDailyExportEnabled(other.getFreshDailyExportEnabled()); + } + if (other.getIncludeAdvertisingId() != false) { + setIncludeAdvertisingId(other.getIncludeAdvertisingId()); + } + if (!other.exportStreams_.isEmpty()) { + if (exportStreams_.isEmpty()) { + exportStreams_ = other.exportStreams_; + bitField0_ |= 0x00000080; + } else { + ensureExportStreamsIsMutable(); + exportStreams_.addAll(other.exportStreams_); + } + onChanged(); + } + if (!other.excludedEvents_.isEmpty()) { + if (excludedEvents_.isEmpty()) { + excludedEvents_ = other.excludedEvents_; + bitField0_ |= 0x00000100; + } else { + ensureExcludedEventsIsMutable(); + excludedEvents_.addAll(other.excludedEvents_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + dailyExportEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + streamingExportEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + includeAdvertisingId_ = input.readBool(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExportStreamsIsMutable(); + exportStreams_.add(s); + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedEventsIsMutable(); + excludedEvents_.add(s); + break; + } // case 66 + case 72: + { + freshDailyExportEnabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 72 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this BigQuery link.
+     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
+     * Format: 'properties/1234/bigQueryLinks/abc567'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this BigQuery link.
+     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
+     * Format: 'properties/1234/bigQueryLinks/abc567'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this BigQuery link.
+     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
+     * Format: 'properties/1234/bigQueryLinks/abc567'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this BigQuery link.
+     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
+     * Format: 'properties/1234/bigQueryLinks/abc567'
+     * 
+ * + * string name = 1 [(.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. Resource name of this BigQuery link.
+     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
+     * Format: 'properties/1234/bigQueryLinks/abc567'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
+     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, the returned project will always
+     * have a project that contains a project number.
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, the returned project will always
+     * have a project that contains a project number.
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, the returned project will always
+     * have a project that contains a project number.
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, the returned project will always
+     * have a project that contains a project number.
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, the returned project will always
+     * have a project that contains a project number.
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when the link was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private boolean dailyExportEnabled_; + /** + * + * + *
+     * If set true, enables daily data export to the linked Google Cloud project.
+     * 
+ * + * bool daily_export_enabled = 4; + * + * @return The dailyExportEnabled. + */ + @java.lang.Override + public boolean getDailyExportEnabled() { + return dailyExportEnabled_; + } + /** + * + * + *
+     * If set true, enables daily data export to the linked Google Cloud project.
+     * 
+ * + * bool daily_export_enabled = 4; + * + * @param value The dailyExportEnabled to set. + * @return This builder for chaining. + */ + public Builder setDailyExportEnabled(boolean value) { + + dailyExportEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * If set true, enables daily data export to the linked Google Cloud project.
+     * 
+ * + * bool daily_export_enabled = 4; + * + * @return This builder for chaining. + */ + public Builder clearDailyExportEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + dailyExportEnabled_ = false; + onChanged(); + return this; + } + + private boolean streamingExportEnabled_; + /** + * + * + *
+     * If set true, enables streaming export to the linked Google Cloud project.
+     * 
+ * + * bool streaming_export_enabled = 5; + * + * @return The streamingExportEnabled. + */ + @java.lang.Override + public boolean getStreamingExportEnabled() { + return streamingExportEnabled_; + } + /** + * + * + *
+     * If set true, enables streaming export to the linked Google Cloud project.
+     * 
+ * + * bool streaming_export_enabled = 5; + * + * @param value The streamingExportEnabled to set. + * @return This builder for chaining. + */ + public Builder setStreamingExportEnabled(boolean value) { + + streamingExportEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * If set true, enables streaming export to the linked Google Cloud project.
+     * 
+ * + * bool streaming_export_enabled = 5; + * + * @return This builder for chaining. + */ + public Builder clearStreamingExportEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + streamingExportEnabled_ = false; + onChanged(); + return this; + } + + private boolean freshDailyExportEnabled_; + /** + * + * + *
+     * If set true, enables fresh daily export to the linked Google Cloud project.
+     * 
+ * + * bool fresh_daily_export_enabled = 9; + * + * @return The freshDailyExportEnabled. + */ + @java.lang.Override + public boolean getFreshDailyExportEnabled() { + return freshDailyExportEnabled_; + } + /** + * + * + *
+     * If set true, enables fresh daily export to the linked Google Cloud project.
+     * 
+ * + * bool fresh_daily_export_enabled = 9; + * + * @param value The freshDailyExportEnabled to set. + * @return This builder for chaining. + */ + public Builder setFreshDailyExportEnabled(boolean value) { + + freshDailyExportEnabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * If set true, enables fresh daily export to the linked Google Cloud project.
+     * 
+ * + * bool fresh_daily_export_enabled = 9; + * + * @return This builder for chaining. + */ + public Builder clearFreshDailyExportEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + freshDailyExportEnabled_ = false; + onChanged(); + return this; + } + + private boolean includeAdvertisingId_; + /** + * + * + *
+     * If set true, exported data will include advertising identifiers for mobile
+     * app streams.
+     * 
+ * + * bool include_advertising_id = 6; + * + * @return The includeAdvertisingId. + */ + @java.lang.Override + public boolean getIncludeAdvertisingId() { + return includeAdvertisingId_; + } + /** + * + * + *
+     * If set true, exported data will include advertising identifiers for mobile
+     * app streams.
+     * 
+ * + * bool include_advertising_id = 6; + * + * @param value The includeAdvertisingId to set. + * @return This builder for chaining. + */ + public Builder setIncludeAdvertisingId(boolean value) { + + includeAdvertisingId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * If set true, exported data will include advertising identifiers for mobile
+     * app streams.
+     * 
+ * + * bool include_advertising_id = 6; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAdvertisingId() { + bitField0_ = (bitField0_ & ~0x00000040); + includeAdvertisingId_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList exportStreams_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExportStreamsIsMutable() { + if (!exportStreams_.isModifiable()) { + exportStreams_ = new com.google.protobuf.LazyStringArrayList(exportStreams_); + } + bitField0_ |= 0x00000080; + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @return A list containing the exportStreams. + */ + public com.google.protobuf.ProtocolStringList getExportStreamsList() { + exportStreams_.makeImmutable(); + return exportStreams_; + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @return The count of exportStreams. + */ + public int getExportStreamsCount() { + return exportStreams_.size(); + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @param index The index of the element to return. + * @return The exportStreams at the given index. + */ + public java.lang.String getExportStreams(int index) { + return exportStreams_.get(index); + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @param index The index of the value to return. + * @return The bytes of the exportStreams at the given index. + */ + public com.google.protobuf.ByteString getExportStreamsBytes(int index) { + return exportStreams_.getByteString(index); + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @param index The index to set the value at. + * @param value The exportStreams to set. + * @return This builder for chaining. + */ + public Builder setExportStreams(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportStreamsIsMutable(); + exportStreams_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @param value The exportStreams to add. + * @return This builder for chaining. + */ + public Builder addExportStreams(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExportStreamsIsMutable(); + exportStreams_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @param values The exportStreams to add. + * @return This builder for chaining. + */ + public Builder addAllExportStreams(java.lang.Iterable values) { + ensureExportStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, exportStreams_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @return This builder for chaining. + */ + public Builder clearExportStreams() { + exportStreams_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of streams under the parent property for which data will be
+     * exported.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: ['properties/1000/dataStreams/2000']
+     * 
+ * + * repeated string export_streams = 7; + * + * @param value The bytes of the exportStreams to add. + * @return This builder for chaining. + */ + public Builder addExportStreamsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExportStreamsIsMutable(); + exportStreams_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedEvents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedEventsIsMutable() { + if (!excludedEvents_.isModifiable()) { + excludedEvents_ = new com.google.protobuf.LazyStringArrayList(excludedEvents_); + } + bitField0_ |= 0x00000100; + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @return A list containing the excludedEvents. + */ + public com.google.protobuf.ProtocolStringList getExcludedEventsList() { + excludedEvents_.makeImmutable(); + return excludedEvents_; + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @return The count of excludedEvents. + */ + public int getExcludedEventsCount() { + return excludedEvents_.size(); + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @param index The index of the element to return. + * @return The excludedEvents at the given index. + */ + public java.lang.String getExcludedEvents(int index) { + return excludedEvents_.get(index); + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @param index The index of the value to return. + * @return The bytes of the excludedEvents at the given index. + */ + public com.google.protobuf.ByteString getExcludedEventsBytes(int index) { + return excludedEvents_.getByteString(index); + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @param index The index to set the value at. + * @param value The excludedEvents to set. + * @return This builder for chaining. + */ + public Builder setExcludedEvents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedEventsIsMutable(); + excludedEvents_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @param value The excludedEvents to add. + * @return This builder for chaining. + */ + public Builder addExcludedEvents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedEventsIsMutable(); + excludedEvents_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @param values The excludedEvents to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedEvents(java.lang.Iterable values) { + ensureExcludedEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedEvents_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @return This builder for chaining. + */ + public Builder clearExcludedEvents() { + excludedEvents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of event names that will be excluded from exports.
+     * 
+ * + * repeated string excluded_events = 8; + * + * @param value The bytes of the excludedEvents to add. + * @return This builder for chaining. + */ + public Builder addExcludedEventsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedEventsIsMutable(); + excludedEvents_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BigQueryLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BigQueryLink) + private static final com.google.analytics.admin.v1alpha.BigQueryLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BigQueryLink(); + } + + public static com.google.analytics.admin.v1alpha.BigQueryLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BigQueryLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkOrBuilder.java similarity index 81% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkOrBuilder.java index ef02a678a32c..93ef19f30e9e 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLinkOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface BigQueryLinkOrBuilder extends +public interface BigQueryLinkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BigQueryLink) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of this BigQuery link.
    * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
@@ -15,10 +33,13 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of this BigQuery link.
    * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
@@ -26,12 +47,14 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
    * you may provide this resource name using either a project number or project
@@ -42,10 +65,13 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
    * you may provide this resource name using either a project number or project
@@ -56,80 +82,105 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Output only. Time when the link was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time when the link was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time when the link was created.
    * 
* - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * If set true, enables daily data export to the linked Google Cloud project.
    * 
* * bool daily_export_enabled = 4; + * * @return The dailyExportEnabled. */ boolean getDailyExportEnabled(); /** + * + * *
    * If set true, enables streaming export to the linked Google Cloud project.
    * 
* * bool streaming_export_enabled = 5; + * * @return The streamingExportEnabled. */ boolean getStreamingExportEnabled(); /** + * + * *
    * If set true, enables fresh daily export to the linked Google Cloud project.
    * 
* * bool fresh_daily_export_enabled = 9; + * * @return The freshDailyExportEnabled. */ boolean getFreshDailyExportEnabled(); /** + * + * *
    * If set true, exported data will include advertising identifiers for mobile
    * app streams.
    * 
* * bool include_advertising_id = 6; + * * @return The includeAdvertisingId. */ boolean getIncludeAdvertisingId(); /** + * + * *
    * The list of streams under the parent property for which data will be
    * exported.
@@ -138,11 +189,13 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * repeated string export_streams = 7; + * * @return A list containing the exportStreams. */ - java.util.List - getExportStreamsList(); + java.util.List getExportStreamsList(); /** + * + * *
    * The list of streams under the parent property for which data will be
    * exported.
@@ -151,10 +204,13 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * repeated string export_streams = 7; + * * @return The count of exportStreams. */ int getExportStreamsCount(); /** + * + * *
    * The list of streams under the parent property for which data will be
    * exported.
@@ -163,11 +219,14 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * repeated string export_streams = 7; + * * @param index The index of the element to return. * @return The exportStreams at the given index. */ java.lang.String getExportStreams(int index); /** + * + * *
    * The list of streams under the parent property for which data will be
    * exported.
@@ -176,50 +235,60 @@ public interface BigQueryLinkOrBuilder extends
    * 
* * repeated string export_streams = 7; + * * @param index The index of the value to return. * @return The bytes of the exportStreams at the given index. */ - com.google.protobuf.ByteString - getExportStreamsBytes(int index); + com.google.protobuf.ByteString getExportStreamsBytes(int index); /** + * + * *
    * The list of event names that will be excluded from exports.
    * 
* * repeated string excluded_events = 8; + * * @return A list containing the excludedEvents. */ - java.util.List - getExcludedEventsList(); + java.util.List getExcludedEventsList(); /** + * + * *
    * The list of event names that will be excluded from exports.
    * 
* * repeated string excluded_events = 8; + * * @return The count of excludedEvents. */ int getExcludedEventsCount(); /** + * + * *
    * The list of event names that will be excluded from exports.
    * 
* * repeated string excluded_events = 8; + * * @param index The index of the element to return. * @return The excludedEvents at the given index. */ java.lang.String getExcludedEvents(int index); /** + * + * *
    * The list of event names that will be excluded from exports.
    * 
* * repeated string excluded_events = 8; + * * @param index The index of the value to return. * @return The bytes of the excludedEvents at the given index. */ - com.google.protobuf.ByteString - getExcludedEventsBytes(int index); + com.google.protobuf.ByteString getExcludedEventsBytes(int index); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 000000000000..efd9727d85da --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,704 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class CancelDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private CancelDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + CancelDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + CancelDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public CancelDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 000000000000..603e31c19e9b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java new file mode 100644 index 000000000000..043a73f36c4d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -0,0 +1,10316 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A description of a change to a single Google Analytics resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ +public final class ChangeHistoryChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) + ChangeHistoryChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryChange.newBuilder() to construct. + private ChangeHistoryChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryChange() { + resource_ = ""; + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); + } + + public interface ChangeHistoryResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + com.google.analytics.admin.v1alpha.Account getAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + com.google.analytics.admin.v1alpha.Property getProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); + + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + boolean hasFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + boolean hasGoogleSignalsSettings(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + boolean hasDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder(); + + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); + + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); + + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + boolean hasDataRetentionSettings(); + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings(); + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of a SearchAds360Link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * + * @return Whether the searchAds360Link field is set. + */ + boolean hasSearchAds360Link(); + /** + * + * + *
+     * A snapshot of a SearchAds360Link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * + * @return The searchAds360Link. + */ + com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link(); + /** + * + * + *
+     * A snapshot of a SearchAds360Link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return The dataStream. + */ + com.google.analytics.admin.v1alpha.DataStream getDataStream(); + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); + + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return Whether the attributionSettings field is set. + */ + boolean hasAttributionSettings(); + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return The attributionSettings. + */ + com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings(); + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of an ExpandedDataSet resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * + * @return Whether the expandedDataSet field is set. + */ + boolean hasExpandedDataSet(); + /** + * + * + *
+     * A snapshot of an ExpandedDataSet resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * + * @return The expandedDataSet. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); + /** + * + * + *
+     * A snapshot of an ExpandedDataSet resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); + + /** + * + * + *
+     * A snapshot of a ChannelGroup resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * + * @return Whether the channelGroup field is set. + */ + boolean hasChannelGroup(); + /** + * + * + *
+     * A snapshot of a ChannelGroup resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * + * @return The channelGroup. + */ + com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup(); + /** + * + * + *
+     * A snapshot of a ChannelGroup resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder(); + + /** + * + * + *
+     * A snapshot of a BigQuery link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * + * @return Whether the bigqueryLink field is set. + */ + boolean hasBigqueryLink(); + /** + * + * + *
+     * A snapshot of a BigQuery link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * + * @return The bigqueryLink. + */ + com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLink(); + /** + * + * + *
+     * A snapshot of a BigQuery link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of EnhancedMeasurementSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + boolean hasEnhancedMeasurementSettings(); + /** + * + * + *
+     * A snapshot of EnhancedMeasurementSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + * + * @return The enhancedMeasurementSettings. + */ + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings(); + /** + * + * + *
+     * A snapshot of EnhancedMeasurementSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + boolean hasDataRedactionSettings(); + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return The dataRedactionSettings. + */ + com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings(); + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of SKAdNetworkConversionValueSchema resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + boolean hasSkadnetworkConversionValueSchema(); + /** + * + * + *
+     * A snapshot of SKAdNetworkConversionValueSchema resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + * + * @return The skadnetworkConversionValueSchema. + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema(); + /** + * + * + *
+     * A snapshot of SKAdNetworkConversionValueSchema resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder(); + + /** + * + * + *
+     * A snapshot of an AdSenseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * + * @return Whether the adsenseLink field is set. + */ + boolean hasAdsenseLink(); + /** + * + * + *
+     * A snapshot of an AdSenseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * + * @return The adsenseLink. + */ + com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink(); + /** + * + * + *
+     * A snapshot of an AdSenseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of an Audience resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + * + * @return Whether the audience field is set. + */ + boolean hasAudience(); + /** + * + * + *
+     * A snapshot of an Audience resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + * + * @return The audience. + */ + com.google.analytics.admin.v1alpha.Audience getAudience(); + /** + * + * + *
+     * A snapshot of an Audience resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); + + /** + * + * + *
+     * A snapshot of an EventCreateRule resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * + * @return Whether the eventCreateRule field is set. + */ + boolean hasEventCreateRule(); + /** + * + * + *
+     * A snapshot of an EventCreateRule resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * + * @return The eventCreateRule. + */ + com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule(); + /** + * + * + *
+     * A snapshot of an EventCreateRule resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder(); + + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase + getResourceCase(); + } + /** + * + * + *
+   * A snapshot of a resource as before or after the result of a change in
+   * change history.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class ChangeHistoryResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + ChangeHistoryResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryResource.newBuilder() to construct. + private ChangeHistoryResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryResource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + private int resourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object resource_; + + public enum ResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCOUNT(1), + PROPERTY(2), + FIREBASE_LINK(6), + GOOGLE_ADS_LINK(7), + GOOGLE_SIGNALS_SETTINGS(8), + DISPLAY_VIDEO_360_ADVERTISER_LINK(9), + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(10), + CONVERSION_EVENT(11), + MEASUREMENT_PROTOCOL_SECRET(12), + CUSTOM_DIMENSION(13), + CUSTOM_METRIC(14), + DATA_RETENTION_SETTINGS(15), + SEARCH_ADS_360_LINK(16), + DATA_STREAM(18), + ATTRIBUTION_SETTINGS(20), + EXPANDED_DATA_SET(21), + CHANNEL_GROUP(22), + BIGQUERY_LINK(23), + ENHANCED_MEASUREMENT_SETTINGS(24), + DATA_REDACTION_SETTINGS(25), + SKADNETWORK_CONVERSION_VALUE_SCHEMA(26), + ADSENSE_LINK(27), + AUDIENCE(28), + EVENT_CREATE_RULE(29), + RESOURCE_NOT_SET(0); + private final int value; + + private ResourceCase(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 ResourceCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceCase forNumber(int value) { + switch (value) { + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + case 8: + return GOOGLE_SIGNALS_SETTINGS; + case 9: + return DISPLAY_VIDEO_360_ADVERTISER_LINK; + case 10: + return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; + case 11: + return CONVERSION_EVENT; + case 12: + return MEASUREMENT_PROTOCOL_SECRET; + case 13: + return CUSTOM_DIMENSION; + case 14: + return CUSTOM_METRIC; + case 15: + return DATA_RETENTION_SETTINGS; + case 16: + return SEARCH_ADS_360_LINK; + case 18: + return DATA_STREAM; + case 20: + return ATTRIBUTION_SETTINGS; + case 21: + return EXPANDED_DATA_SET; + case 22: + return CHANNEL_GROUP; + case 23: + return BIGQUERY_LINK; + case 24: + return ENHANCED_MEASUREMENT_SETTINGS; + case 25: + return DATA_REDACTION_SETTINGS; + case 26: + return SKADNETWORK_CONVERSION_VALUE_SCHEMA; + case 27: + return ADSENSE_LINK; + case 28: + return AUDIENCE; + case 29: + return EVENT_CREATE_RULE; + case 0: + return RESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + + public static final int FIREBASE_LINK_FIELD_NUMBER = 6; + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 7; + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + + public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 8; + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + @java.lang.Override + public boolean hasGoogleSignalsSettings() { + return resourceCase_ == 8; + } + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 9; + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return resourceCase_ == 9; + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER = 10; + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return resourceCase_ == 10; + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 11; + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 12; + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 13; + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return resourceCase_ == 13; + } + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 14; + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return resourceCase_ == 14; + } + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + + public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 15; + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return resourceCase_ == 15; + } + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + + public static final int SEARCH_ADS_360_LINK_FIELD_NUMBER = 16; + /** + * + * + *
+     * A snapshot of a SearchAds360Link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * + * @return Whether the searchAds360Link field is set. + */ + @java.lang.Override + public boolean hasSearchAds360Link() { + return resourceCase_ == 16; + } + /** + * + * + *
+     * A snapshot of a SearchAds360Link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * + * @return The searchAds360Link. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { + if (resourceCase_ == 16) { + return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; + } + return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a SearchAds360Link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder + getSearchAds360LinkOrBuilder() { + if (resourceCase_ == 16) { + return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; + } + return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); + } + + public static final int DATA_STREAM_FIELD_NUMBER = 18; + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return resourceCase_ == 18; + } + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + + public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER = 20; + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return Whether the attributionSettings field is set. + */ + @java.lang.Override + public boolean hasAttributionSettings() { + return resourceCase_ == 20; + } + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return The attributionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of AttributionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + + public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 21; + /** + * + * + *
+     * A snapshot of an ExpandedDataSet resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * + * @return Whether the expandedDataSet field is set. + */ + @java.lang.Override + public boolean hasExpandedDataSet() { + return resourceCase_ == 21; + } + /** + * + * + *
+     * A snapshot of an ExpandedDataSet resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * + * @return The expandedDataSet. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + if (resourceCase_ == 21) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an ExpandedDataSet resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder + getExpandedDataSetOrBuilder() { + if (resourceCase_ == 21) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); + } + + public static final int CHANNEL_GROUP_FIELD_NUMBER = 22; + /** + * + * + *
+     * A snapshot of a ChannelGroup resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * + * @return Whether the channelGroup field is set. + */ + @java.lang.Override + public boolean hasChannelGroup() { + return resourceCase_ == 22; + } + /** + * + * + *
+     * A snapshot of a ChannelGroup resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * + * @return The channelGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { + if (resourceCase_ == 22) { + return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; + } + return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a ChannelGroup resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { + if (resourceCase_ == 22) { + return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; + } + return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); + } + + public static final int BIGQUERY_LINK_FIELD_NUMBER = 23; + /** + * + * + *
+     * A snapshot of a BigQuery link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * + * @return Whether the bigqueryLink field is set. + */ + @java.lang.Override + public boolean hasBigqueryLink() { + return resourceCase_ == 23; + } + /** + * + * + *
+     * A snapshot of a BigQuery link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * + * @return The bigqueryLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLink() { + if (resourceCase_ == 23) { + return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; + } + return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a BigQuery link resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinkOrBuilder() { + if (resourceCase_ == 23) { + return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; + } + return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); + } + + public static final int ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER = 24; + /** + * + * + *
+     * A snapshot of EnhancedMeasurementSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + @java.lang.Override + public boolean hasEnhancedMeasurementSettings() { + return resourceCase_ == 24; + } + /** + * + * + *
+     * A snapshot of EnhancedMeasurementSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + * + * @return The enhancedMeasurementSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings() { + if (resourceCase_ == 24) { + return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; + } + return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of EnhancedMeasurementSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder() { + if (resourceCase_ == 24) { + return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; + } + return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); + } + + public static final int DATA_REDACTION_SETTINGS_FIELD_NUMBER = 25; + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRedactionSettings() { + return resourceCase_ == 25; + } + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return The dataRedactionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of DataRedactionSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + + public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER = 26; + /** + * + * + *
+     * A snapshot of SKAdNetworkConversionValueSchema resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + @java.lang.Override + public boolean hasSkadnetworkConversionValueSchema() { + return resourceCase_ == 26; + } + /** + * + * + *
+     * A snapshot of SKAdNetworkConversionValueSchema resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + * + * @return The skadnetworkConversionValueSchema. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema() { + if (resourceCase_ == 26) { + return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; + } + return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of SKAdNetworkConversionValueSchema resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder() { + if (resourceCase_ == 26) { + return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; + } + return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance(); + } + + public static final int ADSENSE_LINK_FIELD_NUMBER = 27; + /** + * + * + *
+     * A snapshot of an AdSenseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * + * @return Whether the adsenseLink field is set. + */ + @java.lang.Override + public boolean hasAdsenseLink() { + return resourceCase_ == 27; + } + /** + * + * + *
+     * A snapshot of an AdSenseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * + * @return The adsenseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { + if (resourceCase_ == 27) { + return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; + } + return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an AdSenseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { + if (resourceCase_ == 27) { + return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; + } + return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); + } + + public static final int AUDIENCE_FIELD_NUMBER = 28; + /** + * + * + *
+     * A snapshot of an Audience resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + * + * @return Whether the audience field is set. + */ + @java.lang.Override + public boolean hasAudience() { + return resourceCase_ == 28; + } + /** + * + * + *
+     * A snapshot of an Audience resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + * + * @return The audience. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudience() { + if (resourceCase_ == 28) { + return (com.google.analytics.admin.v1alpha.Audience) resource_; + } + return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an Audience resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + if (resourceCase_ == 28) { + return (com.google.analytics.admin.v1alpha.Audience) resource_; + } + return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } + + public static final int EVENT_CREATE_RULE_FIELD_NUMBER = 29; + /** + * + * + *
+     * A snapshot of an EventCreateRule resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * + * @return Whether the eventCreateRule field is set. + */ + @java.lang.Override + public boolean hasEventCreateRule() { + return resourceCase_ == 29; + } + /** + * + * + *
+     * A snapshot of an EventCreateRule resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * + * @return The eventCreateRule. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { + if (resourceCase_ == 29) { + return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; + } + return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an EventCreateRule resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder + getEventCreateRuleOrBuilder() { + if (resourceCase_ == 29) { + return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; + } + return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceCase_ == 1) { + output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 6) { + output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + if (resourceCase_ == 8) { + output.writeMessage( + 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + } + if (resourceCase_ == 9) { + output.writeMessage( + 9, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_); + } + if (resourceCase_ == 10) { + output.writeMessage( + 10, + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_); + } + if (resourceCase_ == 11) { + output.writeMessage(11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + output.writeMessage( + 12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 13) { + output.writeMessage(13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + } + if (resourceCase_ == 14) { + output.writeMessage(14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); + } + if (resourceCase_ == 15) { + output.writeMessage( + 15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); + } + if (resourceCase_ == 16) { + output.writeMessage(16, (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_); + } + if (resourceCase_ == 18) { + output.writeMessage(18, (com.google.analytics.admin.v1alpha.DataStream) resource_); + } + if (resourceCase_ == 20) { + output.writeMessage(20, (com.google.analytics.admin.v1alpha.AttributionSettings) resource_); + } + if (resourceCase_ == 21) { + output.writeMessage(21, (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_); + } + if (resourceCase_ == 22) { + output.writeMessage(22, (com.google.analytics.admin.v1alpha.ChannelGroup) resource_); + } + if (resourceCase_ == 23) { + output.writeMessage(23, (com.google.analytics.admin.v1alpha.BigQueryLink) resource_); + } + if (resourceCase_ == 24) { + output.writeMessage( + 24, (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_); + } + if (resourceCase_ == 25) { + output.writeMessage( + 25, (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_); + } + if (resourceCase_ == 26) { + output.writeMessage( + 26, (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_); + } + if (resourceCase_ == 27) { + output.writeMessage(27, (com.google.analytics.admin.v1alpha.AdSenseLink) resource_); + } + if (resourceCase_ == 28) { + output.writeMessage(28, (com.google.analytics.admin.v1alpha.Audience) resource_); + } + if (resourceCase_ == 29) { + output.writeMessage(29, (com.google.analytics.admin.v1alpha.EventCreateRule) resource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + if (resourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + } + if (resourceCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_); + } + if (resourceCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_); + } + if (resourceCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + } + if (resourceCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); + } + if (resourceCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); + } + if (resourceCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_); + } + if (resourceCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.analytics.admin.v1alpha.DataStream) resource_); + } + if (resourceCase_ == 20) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 20, (com.google.analytics.admin.v1alpha.AttributionSettings) resource_); + } + if (resourceCase_ == 21) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 21, (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_); + } + if (resourceCase_ == 22) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 22, (com.google.analytics.admin.v1alpha.ChannelGroup) resource_); + } + if (resourceCase_ == 23) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 23, (com.google.analytics.admin.v1alpha.BigQueryLink) resource_); + } + if (resourceCase_ == 24) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 24, (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_); + } + if (resourceCase_ == 25) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 25, (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_); + } + if (resourceCase_ == 26) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 26, + (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_); + } + if (resourceCase_ == 27) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 27, (com.google.analytics.admin.v1alpha.AdSenseLink) resource_); + } + if (resourceCase_ == 28) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 28, (com.google.analytics.admin.v1alpha.Audience) resource_); + } + if (resourceCase_ == 29) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 29, (com.google.analytics.admin.v1alpha.EventCreateRule) resource_); + } + 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) obj; + + if (!getResourceCase().equals(other.getResourceCase())) return false; + switch (resourceCase_) { + case 1: + if (!getAccount().equals(other.getAccount())) return false; + break; + case 2: + if (!getProperty().equals(other.getProperty())) return false; + break; + case 6: + if (!getFirebaseLink().equals(other.getFirebaseLink())) return false; + break; + case 7: + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) return false; + break; + case 8: + if (!getGoogleSignalsSettings().equals(other.getGoogleSignalsSettings())) return false; + break; + case 9: + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + return false; + break; + case 10: + if (!getDisplayVideo360AdvertiserLinkProposal() + .equals(other.getDisplayVideo360AdvertiserLinkProposal())) return false; + break; + case 11: + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + break; + case 12: + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + break; + case 13: + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + break; + case 14: + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + break; + case 15: + if (!getDataRetentionSettings().equals(other.getDataRetentionSettings())) return false; + break; + case 16: + if (!getSearchAds360Link().equals(other.getSearchAds360Link())) return false; + break; + case 18: + if (!getDataStream().equals(other.getDataStream())) return false; + break; + case 20: + if (!getAttributionSettings().equals(other.getAttributionSettings())) return false; + break; + case 21: + if (!getExpandedDataSet().equals(other.getExpandedDataSet())) return false; + break; + case 22: + if (!getChannelGroup().equals(other.getChannelGroup())) return false; + break; + case 23: + if (!getBigqueryLink().equals(other.getBigqueryLink())) return false; + break; + case 24: + if (!getEnhancedMeasurementSettings().equals(other.getEnhancedMeasurementSettings())) + return false; + break; + case 25: + if (!getDataRedactionSettings().equals(other.getDataRedactionSettings())) return false; + break; + case 26: + if (!getSkadnetworkConversionValueSchema() + .equals(other.getSkadnetworkConversionValueSchema())) return false; + break; + case 27: + if (!getAdsenseLink().equals(other.getAdsenseLink())) return false; + break; + case 28: + if (!getAudience().equals(other.getAudience())) return false; + break; + case 29: + if (!getEventCreateRule().equals(other.getEventCreateRule())) 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 (resourceCase_) { + case 1: + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + break; + case 2: + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + break; + case 6: + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + break; + case 7: + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + break; + case 8: + hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); + break; + case 9: + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + break; + case 10: + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposal().hashCode(); + break; + case 11: + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + break; + case 12: + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + break; + case 13: + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + break; + case 14: + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + break; + case 15: + hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRetentionSettings().hashCode(); + break; + case 16: + hash = (37 * hash) + SEARCH_ADS_360_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSearchAds360Link().hashCode(); + break; + case 18: + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + break; + case 20: + hash = (37 * hash) + ATTRIBUTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getAttributionSettings().hashCode(); + break; + case 21: + hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; + hash = (53 * hash) + getExpandedDataSet().hashCode(); + break; + case 22: + hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getChannelGroup().hashCode(); + break; + case 23: + hash = (37 * hash) + BIGQUERY_LINK_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryLink().hashCode(); + break; + case 24: + hash = (37 * hash) + ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedMeasurementSettings().hashCode(); + break; + case 25: + hash = (37 * hash) + DATA_REDACTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRedactionSettings().hashCode(); + break; + case 26: + hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSkadnetworkConversionValueSchema().hashCode(); + break; + case 27: + hash = (37 * hash) + ADSENSE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getAdsenseLink().hashCode(); + break; + case 28: + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + break; + case 29: + hash = (37 * hash) + EVENT_CREATE_RULE_FIELD_NUMBER; + hash = (53 * hash) + getEventCreateRule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A snapshot of a resource as before or after the result of a change in
+     * change history.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accountBuilder_ != null) { + accountBuilder_.clear(); + } + if (propertyBuilder_ != null) { + propertyBuilder_.clear(); + } + if (firebaseLinkBuilder_ != null) { + firebaseLinkBuilder_.clear(); + } + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.clear(); + } + if (googleSignalsSettingsBuilder_ != null) { + googleSignalsSettingsBuilder_.clear(); + } + if (displayVideo360AdvertiserLinkBuilder_ != null) { + displayVideo360AdvertiserLinkBuilder_.clear(); + } + if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { + displayVideo360AdvertiserLinkProposalBuilder_.clear(); + } + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.clear(); + } + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.clear(); + } + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.clear(); + } + if (customMetricBuilder_ != null) { + customMetricBuilder_.clear(); + } + if (dataRetentionSettingsBuilder_ != null) { + dataRetentionSettingsBuilder_.clear(); + } + if (searchAds360LinkBuilder_ != null) { + searchAds360LinkBuilder_.clear(); + } + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.clear(); + } + if (attributionSettingsBuilder_ != null) { + attributionSettingsBuilder_.clear(); + } + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.clear(); + } + if (channelGroupBuilder_ != null) { + channelGroupBuilder_.clear(); + } + if (bigqueryLinkBuilder_ != null) { + bigqueryLinkBuilder_.clear(); + } + if (enhancedMeasurementSettingsBuilder_ != null) { + enhancedMeasurementSettingsBuilder_.clear(); + } + if (dataRedactionSettingsBuilder_ != null) { + dataRedactionSettingsBuilder_.clear(); + } + if (skadnetworkConversionValueSchemaBuilder_ != null) { + skadnetworkConversionValueSchemaBuilder_.clear(); + } + if (adsenseLinkBuilder_ != null) { + adsenseLinkBuilder_.clear(); + } + if (audienceBuilder_ != null) { + audienceBuilder_.clear(); + } + if (eventCreateRuleBuilder_ != null) { + eventCreateRuleBuilder_.clear(); + } + resourceCase_ = 0; + resource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource build() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result) { + result.resourceCase_ = resourceCase_; + result.resource_ = this.resource_; + if (resourceCase_ == 1 && accountBuilder_ != null) { + result.resource_ = accountBuilder_.build(); + } + if (resourceCase_ == 2 && propertyBuilder_ != null) { + result.resource_ = propertyBuilder_.build(); + } + if (resourceCase_ == 6 && firebaseLinkBuilder_ != null) { + result.resource_ = firebaseLinkBuilder_.build(); + } + if (resourceCase_ == 7 && googleAdsLinkBuilder_ != null) { + result.resource_ = googleAdsLinkBuilder_.build(); + } + if (resourceCase_ == 8 && googleSignalsSettingsBuilder_ != null) { + result.resource_ = googleSignalsSettingsBuilder_.build(); + } + if (resourceCase_ == 9 && displayVideo360AdvertiserLinkBuilder_ != null) { + result.resource_ = displayVideo360AdvertiserLinkBuilder_.build(); + } + if (resourceCase_ == 10 && displayVideo360AdvertiserLinkProposalBuilder_ != null) { + result.resource_ = displayVideo360AdvertiserLinkProposalBuilder_.build(); + } + if (resourceCase_ == 11 && conversionEventBuilder_ != null) { + result.resource_ = conversionEventBuilder_.build(); + } + if (resourceCase_ == 12 && measurementProtocolSecretBuilder_ != null) { + result.resource_ = measurementProtocolSecretBuilder_.build(); + } + if (resourceCase_ == 13 && customDimensionBuilder_ != null) { + result.resource_ = customDimensionBuilder_.build(); + } + if (resourceCase_ == 14 && customMetricBuilder_ != null) { + result.resource_ = customMetricBuilder_.build(); + } + if (resourceCase_ == 15 && dataRetentionSettingsBuilder_ != null) { + result.resource_ = dataRetentionSettingsBuilder_.build(); + } + if (resourceCase_ == 16 && searchAds360LinkBuilder_ != null) { + result.resource_ = searchAds360LinkBuilder_.build(); + } + if (resourceCase_ == 18 && dataStreamBuilder_ != null) { + result.resource_ = dataStreamBuilder_.build(); + } + if (resourceCase_ == 20 && attributionSettingsBuilder_ != null) { + result.resource_ = attributionSettingsBuilder_.build(); + } + if (resourceCase_ == 21 && expandedDataSetBuilder_ != null) { + result.resource_ = expandedDataSetBuilder_.build(); + } + if (resourceCase_ == 22 && channelGroupBuilder_ != null) { + result.resource_ = channelGroupBuilder_.build(); + } + if (resourceCase_ == 23 && bigqueryLinkBuilder_ != null) { + result.resource_ = bigqueryLinkBuilder_.build(); + } + if (resourceCase_ == 24 && enhancedMeasurementSettingsBuilder_ != null) { + result.resource_ = enhancedMeasurementSettingsBuilder_.build(); + } + if (resourceCase_ == 25 && dataRedactionSettingsBuilder_ != null) { + result.resource_ = dataRedactionSettingsBuilder_.build(); + } + if (resourceCase_ == 26 && skadnetworkConversionValueSchemaBuilder_ != null) { + result.resource_ = skadnetworkConversionValueSchemaBuilder_.build(); + } + if (resourceCase_ == 27 && adsenseLinkBuilder_ != null) { + result.resource_ = adsenseLinkBuilder_.build(); + } + if (resourceCase_ == 28 && audienceBuilder_ != null) { + result.resource_ = audienceBuilder_.build(); + } + if (resourceCase_ == 29 && eventCreateRuleBuilder_ != null) { + result.resource_ = eventCreateRuleBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other) { + if (other + == com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) return this; + switch (other.getResourceCase()) { + case ACCOUNT: + { + mergeAccount(other.getAccount()); + break; + } + case PROPERTY: + { + mergeProperty(other.getProperty()); + break; + } + case FIREBASE_LINK: + { + mergeFirebaseLink(other.getFirebaseLink()); + break; + } + case GOOGLE_ADS_LINK: + { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + break; + } + case GOOGLE_SIGNALS_SETTINGS: + { + mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); + break; + } + case DISPLAY_VIDEO_360_ADVERTISER_LINK: + { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + break; + } + case DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL: + { + mergeDisplayVideo360AdvertiserLinkProposal( + other.getDisplayVideo360AdvertiserLinkProposal()); + break; + } + case CONVERSION_EVENT: + { + mergeConversionEvent(other.getConversionEvent()); + break; + } + case MEASUREMENT_PROTOCOL_SECRET: + { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + break; + } + case CUSTOM_DIMENSION: + { + mergeCustomDimension(other.getCustomDimension()); + break; + } + case CUSTOM_METRIC: + { + mergeCustomMetric(other.getCustomMetric()); + break; + } + case DATA_RETENTION_SETTINGS: + { + mergeDataRetentionSettings(other.getDataRetentionSettings()); + break; + } + case SEARCH_ADS_360_LINK: + { + mergeSearchAds360Link(other.getSearchAds360Link()); + break; + } + case DATA_STREAM: + { + mergeDataStream(other.getDataStream()); + break; + } + case ATTRIBUTION_SETTINGS: + { + mergeAttributionSettings(other.getAttributionSettings()); + break; + } + case EXPANDED_DATA_SET: + { + mergeExpandedDataSet(other.getExpandedDataSet()); + break; + } + case CHANNEL_GROUP: + { + mergeChannelGroup(other.getChannelGroup()); + break; + } + case BIGQUERY_LINK: + { + mergeBigqueryLink(other.getBigqueryLink()); + break; + } + case ENHANCED_MEASUREMENT_SETTINGS: + { + mergeEnhancedMeasurementSettings(other.getEnhancedMeasurementSettings()); + break; + } + case DATA_REDACTION_SETTINGS: + { + mergeDataRedactionSettings(other.getDataRedactionSettings()); + break; + } + case SKADNETWORK_CONVERSION_VALUE_SCHEMA: + { + mergeSkadnetworkConversionValueSchema(other.getSkadnetworkConversionValueSchema()); + break; + } + case ADSENSE_LINK: + { + mergeAdsenseLink(other.getAdsenseLink()); + break; + } + case AUDIENCE: + { + mergeAudience(other.getAudience()); + break; + } + case EVENT_CREATE_RULE: + { + mergeEventCreateRule(other.getEventCreateRule()); + break; + } + case RESOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getPropertyFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 2; + break; + } // case 18 + case 50: + { + input.readMessage(getFirebaseLinkFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + getGoogleSignalsSettingsFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 8; + break; + } // case 66 + case 74: + { + input.readMessage( + getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), + extensionRegistry); + resourceCase_ = 9; + break; + } // case 74 + case 82: + { + input.readMessage( + getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(), + extensionRegistry); + resourceCase_ = 10; + break; + } // case 82 + case 90: + { + input.readMessage( + getConversionEventFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 12; + break; + } // case 98 + case 106: + { + input.readMessage( + getCustomDimensionFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 13; + break; + } // case 106 + case 114: + { + input.readMessage(getCustomMetricFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 14; + break; + } // case 114 + case 122: + { + input.readMessage( + getDataRetentionSettingsFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 15; + break; + } // case 122 + case 130: + { + input.readMessage( + getSearchAds360LinkFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 16; + break; + } // case 130 + case 146: + { + input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 18; + break; + } // case 146 + case 162: + { + input.readMessage( + getAttributionSettingsFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 20; + break; + } // case 162 + case 170: + { + input.readMessage( + getExpandedDataSetFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 21; + break; + } // case 170 + case 178: + { + input.readMessage(getChannelGroupFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 22; + break; + } // case 178 + case 186: + { + input.readMessage(getBigqueryLinkFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 23; + break; + } // case 186 + case 194: + { + input.readMessage( + getEnhancedMeasurementSettingsFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 24; + break; + } // case 194 + case 202: + { + input.readMessage( + getDataRedactionSettingsFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 25; + break; + } // case 202 + case 210: + { + input.readMessage( + getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(), + extensionRegistry); + resourceCase_ = 26; + break; + } // case 210 + case 218: + { + input.readMessage(getAdsenseLinkFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 27; + break; + } // case 218 + case 226: + { + input.readMessage(getAudienceFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 28; + break; + } // case 226 + case 234: + { + input.readMessage( + getEventCreateRuleFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 29; + break; + } // case 234 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public Builder clearResource() { + resourceCase_ = 0; + resource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } else { + if (resourceCase_ == 1) { + return accountBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + accountBuilder_.setMessage(value); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount( + com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (resourceCase_ == 1 + && resource_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.Account.newBuilder( + (com.google.analytics.admin.v1alpha.Account) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 1) { + accountBuilder_.mergeFrom(value); + } else { + accountBuilder_.setMessage(value); + } + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder clearAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + } + accountBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if ((resourceCase_ == 1) && (accountBuilder_ != null)) { + return accountBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + if (!(resourceCase_ == 1)) { + resource_ = com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder>( + (com.google.analytics.admin.v1alpha.Account) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 1; + onChanged(); + return accountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } else { + if (resourceCase_ == 2) { + return propertyBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + propertyBuilder_.setMessage(value); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder setProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2 + && resource_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.Property.newBuilder( + (com.google.analytics.admin.v1alpha.Property) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 2) { + propertyBuilder_.mergeFrom(value); + } else { + propertyBuilder_.setMessage(value); + } + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + } + propertyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + if (!(resourceCase_ == 2)) { + resource_ = com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + (com.google.analytics.admin.v1alpha.Property) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 2; + onChanged(); + return propertyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + firebaseLinkBuilder_; + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } else { + if (resourceCase_ == 6) { + return firebaseLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(value); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink( + com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { + if (firebaseLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6 + && resource_ + != com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder( + (com.google.analytics.admin.v1alpha.FirebaseLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 6) { + firebaseLinkBuilder_.mergeFrom(value); + } else { + firebaseLinkBuilder_.setMessage(value); + } + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder clearFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + } + firebaseLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { + return getFirebaseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if ((resourceCase_ == 6) && (firebaseLinkBuilder_ != null)) { + return firebaseLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + getFirebaseLinkFieldBuilder() { + if (firebaseLinkBuilder_ == null) { + if (!(resourceCase_ == 6)) { + resource_ = com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + firebaseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.FirebaseLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 6; + onChanged(); + return firebaseLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } else { + if (resourceCase_ == 7) { + return googleAdsLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(value); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7 + && resource_ + != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 7) { + googleAdsLinkBuilder_.mergeFrom(value); + } else { + googleAdsLinkBuilder_.setMessage(value); + } + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder clearGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + } + googleAdsLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if ((resourceCase_ == 7) && (googleAdsLinkBuilder_ != null)) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + if (!(resourceCase_ == 7)) { + resource_ = com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 7; + onChanged(); + return googleAdsLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + googleSignalsSettingsBuilder_; + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + @java.lang.Override + public boolean hasGoogleSignalsSettings() { + return resourceCase_ == 8; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 8) { + return googleSignalsSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(value); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { + if (googleSignalsSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder mergeGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8 + && resource_ + != com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 8) { + googleSignalsSettingsBuilder_.mergeFrom(value); + } else { + googleSignalsSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder clearGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 8) { + resourceCase_ = 0; + resource_ = null; + } + googleSignalsSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder + getGoogleSignalsSettingsBuilder() { + return getGoogleSignalsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if ((resourceCase_ == 8) && (googleSignalsSettingsBuilder_ != null)) { + return googleSignalsSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + getGoogleSignalsSettingsFieldBuilder() { + if (googleSignalsSettingsBuilder_ == null) { + if (!(resourceCase_ == 8)) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + googleSignalsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 8; + onChanged(); + return googleSignalsSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return resourceCase_ == 9; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } else { + if (resourceCase_ == 9) { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + resourceCase_ = 9; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 9; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (resourceCase_ == 9 + && resource_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 9) { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + } + resourceCase_ = 9; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (resourceCase_ == 9) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 9) { + resourceCase_ = 0; + resource_ = null; + } + displayVideo360AdvertiserLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if ((resourceCase_ == 9) && (displayVideo360AdvertiserLinkBuilder_ != null)) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (!(resourceCase_ == 9)) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 9; + onChanged(); + return displayVideo360AdvertiserLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + displayVideo360AdvertiserLinkProposalBuilder_; + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return resourceCase_ == 10; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } else { + if (resourceCase_ == 10) { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); + } + resourceCase_ = 10; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 10; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder mergeDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (resourceCase_ == 10 + && resource_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 10) { + displayVideo360AdvertiserLinkProposalBuilder_.mergeFrom(value); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); + } + } + resourceCase_ = 10; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder clearDisplayVideo360AdvertiserLinkProposal() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (resourceCase_ == 10) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 10) { + resourceCase_ = 0; + resource_ = null; + } + displayVideo360AdvertiserLinkProposalBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + getDisplayVideo360AdvertiserLinkProposalBuilder() { + return getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + if ((resourceCase_ == 10) && (displayVideo360AdvertiserLinkProposalBuilder_ != null)) { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalFieldBuilder() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (!(resourceCase_ == 10)) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + displayVideo360AdvertiserLinkProposalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposalOrBuilder>( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 10; + onChanged(); + return displayVideo360AdvertiserLinkProposalBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } else { + if (resourceCase_ == 11) { + return conversionEventBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + conversionEventBuilder_.setMessage(value); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder mergeConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11 + && resource_ + != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 11) { + conversionEventBuilder_.mergeFrom(value); + } else { + conversionEventBuilder_.setMessage(value); + } + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder clearConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + } + conversionEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder + getConversionEventBuilder() { + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if ((resourceCase_ == 11) && (conversionEventBuilder_ != null)) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + if (!(resourceCase_ == 11)) { + resource_ = com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 11; + onChanged(); + return conversionEventBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } else { + if (resourceCase_ == 12) { + return measurementProtocolSecretBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12 + && resource_ + != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 12) { + measurementProtocolSecretBuilder_.mergeFrom(value); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + } + measurementProtocolSecretBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if ((resourceCase_ == 12) && (measurementProtocolSecretBuilder_ != null)) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + if (!(resourceCase_ == 12)) { + resource_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 12; + onChanged(); + return measurementProtocolSecretBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return resourceCase_ == 13; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } else { + if (resourceCase_ == 13) { + return customDimensionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + customDimensionBuilder_.setMessage(value); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder mergeCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13 + && resource_ + != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.CustomDimension.newBuilder( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 13) { + customDimensionBuilder_.mergeFrom(value); + } else { + customDimensionBuilder_.setMessage(value); + } + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder clearCustomDimension() { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 13) { + resourceCase_ = 0; + resource_ = null; + } + customDimensionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder + getCustomDimensionBuilder() { + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if ((resourceCase_ == 13) && (customDimensionBuilder_ != null)) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + if (!(resourceCase_ == 13)) { + resource_ = com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 13; + onChanged(); + return customDimensionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return resourceCase_ == 14; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } else { + if (resourceCase_ == 14) { + return customMetricBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + customMetricBuilder_.setMessage(value); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14 + && resource_ + != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.CustomMetric.newBuilder( + (com.google.analytics.admin.v1alpha.CustomMetric) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 14) { + customMetricBuilder_.mergeFrom(value); + } else { + customMetricBuilder_.setMessage(value); + } + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder clearCustomMetric() { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 14) { + resourceCase_ = 0; + resource_ = null; + } + customMetricBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if ((resourceCase_ == 14) && (customMetricBuilder_ != null)) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + if (!(resourceCase_ == 14)) { + resource_ = com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + (com.google.analytics.admin.v1alpha.CustomMetric) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 14; + onChanged(); + return customMetricBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + dataRetentionSettingsBuilder_; + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return resourceCase_ == 15; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 15) { + return dataRetentionSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataRetentionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder builderForValue) { + if (dataRetentionSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder mergeDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15 + && resource_ + != com.google.analytics.admin.v1alpha.DataRetentionSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder( + (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 15) { + dataRetentionSettingsBuilder_.mergeFrom(value); + } else { + dataRetentionSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder clearDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 15) { + resourceCase_ = 0; + resource_ = null; + } + dataRetentionSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder + getDataRetentionSettingsBuilder() { + return getDataRetentionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if ((resourceCase_ == 15) && (dataRetentionSettingsBuilder_ != null)) { + return dataRetentionSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + getDataRetentionSettingsFieldBuilder() { + if (dataRetentionSettingsBuilder_ == null) { + if (!(resourceCase_ == 15)) { + resource_ = + com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + dataRetentionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 15; + onChanged(); + return dataRetentionSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + searchAds360LinkBuilder_; + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * + * @return Whether the searchAds360Link field is set. + */ + @java.lang.Override + public boolean hasSearchAds360Link() { + return resourceCase_ == 16; + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + * + * @return The searchAds360Link. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { + if (searchAds360LinkBuilder_ == null) { + if (resourceCase_ == 16) { + return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; + } + return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); + } else { + if (resourceCase_ == 16) { + return searchAds360LinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + public Builder setSearchAds360Link( + com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + searchAds360LinkBuilder_.setMessage(value); + } + resourceCase_ = 16; + return this; + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + public Builder setSearchAds360Link( + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { + if (searchAds360LinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + searchAds360LinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 16; + return this; + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + public Builder mergeSearchAds360Link( + com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinkBuilder_ == null) { + if (resourceCase_ == 16 + && resource_ + != com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.SearchAds360Link.newBuilder( + (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 16) { + searchAds360LinkBuilder_.mergeFrom(value); + } else { + searchAds360LinkBuilder_.setMessage(value); + } + } + resourceCase_ = 16; + return this; + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + public Builder clearSearchAds360Link() { + if (searchAds360LinkBuilder_ == null) { + if (resourceCase_ == 16) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 16) { + resourceCase_ = 0; + resource_ = null; + } + searchAds360LinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder + getSearchAds360LinkBuilder() { + return getSearchAds360LinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder + getSearchAds360LinkOrBuilder() { + if ((resourceCase_ == 16) && (searchAds360LinkBuilder_ != null)) { + return searchAds360LinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 16) { + return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; + } + return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a SearchAds360Link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + getSearchAds360LinkFieldBuilder() { + if (searchAds360LinkBuilder_ == null) { + if (!(resourceCase_ == 16)) { + resource_ = com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); + } + searchAds360LinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( + (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 16; + onChanged(); + return searchAds360LinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + dataStreamBuilder_; + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return resourceCase_ == 18; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 18) { + return dataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataStreamBuilder_.setMessage(value); + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder setDataStream( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18 + && resource_ != com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DataStream.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 18) { + dataStreamBuilder_.mergeFrom(value); + } else { + dataStreamBuilder_.setMessage(value); + } + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public Builder clearDataStream() { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 18) { + resourceCase_ = 0; + resource_ = null; + } + dataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if ((resourceCase_ == 18) && (dataStreamBuilder_ != null)) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1alpha.DataStream) resource_; + } + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + getDataStreamFieldBuilder() { + if (dataStreamBuilder_ == null) { + if (!(resourceCase_ == 18)) { + resource_ = com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + dataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 18; + onChanged(); + return dataStreamBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + attributionSettingsBuilder_; + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return Whether the attributionSettings field is set. + */ + @java.lang.Override + public boolean hasAttributionSettings() { + return resourceCase_ == 20; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + * + * @return The attributionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + if (attributionSettingsBuilder_ == null) { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 20) { + return attributionSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + attributionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 20; + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings.Builder builderForValue) { + if (attributionSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + attributionSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 20; + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder mergeAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (resourceCase_ == 20 + && resource_ + != com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.AttributionSettings.newBuilder( + (com.google.analytics.admin.v1alpha.AttributionSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 20) { + attributionSettingsBuilder_.mergeFrom(value); + } else { + attributionSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 20; + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public Builder clearAttributionSettings() { + if (attributionSettingsBuilder_ == null) { + if (resourceCase_ == 20) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 20) { + resourceCase_ = 0; + resource_ = null; + } + attributionSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + public com.google.analytics.admin.v1alpha.AttributionSettings.Builder + getAttributionSettingsBuilder() { + return getAttributionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + if ((resourceCase_ == 20) && (attributionSettingsBuilder_ != null)) { + return attributionSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 20) { + return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of AttributionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + getAttributionSettingsFieldBuilder() { + if (attributionSettingsBuilder_ == null) { + if (!(resourceCase_ == 20)) { + resource_ = com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); + } + attributionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.AttributionSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 20; + onChanged(); + return attributionSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + expandedDataSetBuilder_; + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * + * @return Whether the expandedDataSet field is set. + */ + @java.lang.Override + public boolean hasExpandedDataSet() { + return resourceCase_ == 21; + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + * + * @return The expandedDataSet. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + if (expandedDataSetBuilder_ == null) { + if (resourceCase_ == 21) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); + } else { + if (resourceCase_ == 21) { + return expandedDataSetBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + expandedDataSetBuilder_.setMessage(value); + } + resourceCase_ = 21; + return this; + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + public Builder setExpandedDataSet( + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + expandedDataSetBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 21; + return this; + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + public Builder mergeExpandedDataSet( + com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (resourceCase_ == 21 + && resource_ + != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.ExpandedDataSet.newBuilder( + (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 21) { + expandedDataSetBuilder_.mergeFrom(value); + } else { + expandedDataSetBuilder_.setMessage(value); + } + } + resourceCase_ = 21; + return this; + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + public Builder clearExpandedDataSet() { + if (expandedDataSetBuilder_ == null) { + if (resourceCase_ == 21) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 21) { + resourceCase_ = 0; + resource_ = null; + } + expandedDataSetBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder + getExpandedDataSetBuilder() { + return getExpandedDataSetFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder + getExpandedDataSetOrBuilder() { + if ((resourceCase_ == 21) && (expandedDataSetBuilder_ != null)) { + return expandedDataSetBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 21) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an ExpandedDataSet resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + getExpandedDataSetFieldBuilder() { + if (expandedDataSetBuilder_ == null) { + if (!(resourceCase_ == 21)) { + resource_ = com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); + } + expandedDataSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( + (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 21; + onChanged(); + return expandedDataSetBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + channelGroupBuilder_; + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * + * @return Whether the channelGroup field is set. + */ + @java.lang.Override + public boolean hasChannelGroup() { + return resourceCase_ == 22; + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + * + * @return The channelGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { + if (channelGroupBuilder_ == null) { + if (resourceCase_ == 22) { + return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; + } + return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); + } else { + if (resourceCase_ == 22) { + return channelGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + public Builder setChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + channelGroupBuilder_.setMessage(value); + } + resourceCase_ = 22; + return this; + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + public Builder setChannelGroup( + com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { + if (channelGroupBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + channelGroupBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 22; + return this; + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + public Builder mergeChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupBuilder_ == null) { + if (resourceCase_ == 22 + && resource_ + != com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.ChannelGroup.newBuilder( + (com.google.analytics.admin.v1alpha.ChannelGroup) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 22) { + channelGroupBuilder_.mergeFrom(value); + } else { + channelGroupBuilder_.setMessage(value); + } + } + resourceCase_ = 22; + return this; + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + public Builder clearChannelGroup() { + if (channelGroupBuilder_ == null) { + if (resourceCase_ == 22) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 22) { + resourceCase_ = 0; + resource_ = null; + } + channelGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupBuilder() { + return getChannelGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { + if ((resourceCase_ == 22) && (channelGroupBuilder_ != null)) { + return channelGroupBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 22) { + return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; + } + return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ChannelGroup resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + getChannelGroupFieldBuilder() { + if (channelGroupBuilder_ == null) { + if (!(resourceCase_ == 22)) { + resource_ = com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); + } + channelGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( + (com.google.analytics.admin.v1alpha.ChannelGroup) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 22; + onChanged(); + return channelGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.BigQueryLink, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder, + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> + bigqueryLinkBuilder_; + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * + * @return Whether the bigqueryLink field is set. + */ + @java.lang.Override + public boolean hasBigqueryLink() { + return resourceCase_ == 23; + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + * + * @return The bigqueryLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLink() { + if (bigqueryLinkBuilder_ == null) { + if (resourceCase_ == 23) { + return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; + } + return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); + } else { + if (resourceCase_ == 23) { + return bigqueryLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + public Builder setBigqueryLink(com.google.analytics.admin.v1alpha.BigQueryLink value) { + if (bigqueryLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + bigqueryLinkBuilder_.setMessage(value); + } + resourceCase_ = 23; + return this; + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + public Builder setBigqueryLink( + com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { + if (bigqueryLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + bigqueryLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 23; + return this; + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + public Builder mergeBigqueryLink(com.google.analytics.admin.v1alpha.BigQueryLink value) { + if (bigqueryLinkBuilder_ == null) { + if (resourceCase_ == 23 + && resource_ + != com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.BigQueryLink.newBuilder( + (com.google.analytics.admin.v1alpha.BigQueryLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 23) { + bigqueryLinkBuilder_.mergeFrom(value); + } else { + bigqueryLinkBuilder_.setMessage(value); + } + } + resourceCase_ = 23; + return this; + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + public Builder clearBigqueryLink() { + if (bigqueryLinkBuilder_ == null) { + if (resourceCase_ == 23) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 23) { + resourceCase_ = 0; + resource_ = null; + } + bigqueryLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + public com.google.analytics.admin.v1alpha.BigQueryLink.Builder getBigqueryLinkBuilder() { + return getBigqueryLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinkOrBuilder() { + if ((resourceCase_ == 23) && (bigqueryLinkBuilder_ != null)) { + return bigqueryLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 23) { + return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; + } + return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a BigQuery link resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.BigQueryLink, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder, + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> + getBigqueryLinkFieldBuilder() { + if (bigqueryLinkBuilder_ == null) { + if (!(resourceCase_ == 23)) { + resource_ = com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); + } + bigqueryLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.BigQueryLink, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder, + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.BigQueryLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 23; + onChanged(); + return bigqueryLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> + enhancedMeasurementSettingsBuilder_; + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + @java.lang.Override + public boolean hasEnhancedMeasurementSettings() { + return resourceCase_ == 24; + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + * + * @return The enhancedMeasurementSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings() { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (resourceCase_ == 24) { + return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; + } + return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance(); + } else { + if (resourceCase_ == 24) { + return enhancedMeasurementSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + public Builder setEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + enhancedMeasurementSettingsBuilder_.setMessage(value); + } + resourceCase_ = 24; + return this; + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + public Builder setEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder builderForValue) { + if (enhancedMeasurementSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + enhancedMeasurementSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 24; + return this; + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + public Builder mergeEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (resourceCase_ == 24 + && resource_ + != com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.newBuilder( + (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 24) { + enhancedMeasurementSettingsBuilder_.mergeFrom(value); + } else { + enhancedMeasurementSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 24; + return this; + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + public Builder clearEnhancedMeasurementSettings() { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (resourceCase_ == 24) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 24) { + resourceCase_ = 0; + resource_ = null; + } + enhancedMeasurementSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder + getEnhancedMeasurementSettingsBuilder() { + return getEnhancedMeasurementSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder() { + if ((resourceCase_ == 24) && (enhancedMeasurementSettingsBuilder_ != null)) { + return enhancedMeasurementSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 24) { + return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; + } + return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of EnhancedMeasurementSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> + getEnhancedMeasurementSettingsFieldBuilder() { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (!(resourceCase_ == 24)) { + resource_ = + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); + } + enhancedMeasurementSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 24; + onChanged(); + return enhancedMeasurementSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + dataRedactionSettingsBuilder_; + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRedactionSettings() { + return resourceCase_ == 25; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + * + * @return The dataRedactionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + if (dataRedactionSettingsBuilder_ == null) { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 25) { + return dataRedactionSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataRedactionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 25; + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder builderForValue) { + if (dataRedactionSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataRedactionSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 25; + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder mergeDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (resourceCase_ == 25 + && resource_ + != com.google.analytics.admin.v1alpha.DataRedactionSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DataRedactionSettings.newBuilder( + (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 25) { + dataRedactionSettingsBuilder_.mergeFrom(value); + } else { + dataRedactionSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 25; + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public Builder clearDataRedactionSettings() { + if (dataRedactionSettingsBuilder_ == null) { + if (resourceCase_ == 25) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 25) { + resourceCase_ = 0; + resource_ = null; + } + dataRedactionSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder + getDataRedactionSettingsBuilder() { + return getDataRedactionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + if ((resourceCase_ == 25) && (dataRedactionSettingsBuilder_ != null)) { + return dataRedactionSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 25) { + return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of DataRedactionSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + getDataRedactionSettingsFieldBuilder() { + if (dataRedactionSettingsBuilder_ == null) { + if (!(resourceCase_ == 25)) { + resource_ = + com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + dataRedactionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 25; + onChanged(); + return dataRedactionSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + skadnetworkConversionValueSchemaBuilder_; + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + @java.lang.Override + public boolean hasSkadnetworkConversionValueSchema() { + return resourceCase_ == 26; + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + * + * @return The skadnetworkConversionValueSchema. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema() { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (resourceCase_ == 26) { + return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; + } + return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance(); + } else { + if (resourceCase_ == 26) { + return skadnetworkConversionValueSchemaBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + public Builder setSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + skadnetworkConversionValueSchemaBuilder_.setMessage(value); + } + resourceCase_ = 26; + return this; + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + public Builder setSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + builderForValue) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + skadnetworkConversionValueSchemaBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 26; + return this; + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + public Builder mergeSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (resourceCase_ == 26 + && resource_ + != com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.newBuilder( + (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) + resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 26) { + skadnetworkConversionValueSchemaBuilder_.mergeFrom(value); + } else { + skadnetworkConversionValueSchemaBuilder_.setMessage(value); + } + } + resourceCase_ = 26; + return this; + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + public Builder clearSkadnetworkConversionValueSchema() { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (resourceCase_ == 26) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 26) { + resourceCase_ = 0; + resource_ = null; + } + skadnetworkConversionValueSchemaBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + getSkadnetworkConversionValueSchemaBuilder() { + return getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder() { + if ((resourceCase_ == 26) && (skadnetworkConversionValueSchemaBuilder_ != null)) { + return skadnetworkConversionValueSchemaBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 26) { + return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; + } + return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of SKAdNetworkConversionValueSchema resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + getSkadnetworkConversionValueSchemaFieldBuilder() { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (!(resourceCase_ == 26)) { + resource_ = + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance(); + } + skadnetworkConversionValueSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( + (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 26; + onChanged(); + return skadnetworkConversionValueSchemaBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> + adsenseLinkBuilder_; + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * + * @return Whether the adsenseLink field is set. + */ + @java.lang.Override + public boolean hasAdsenseLink() { + return resourceCase_ == 27; + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + * + * @return The adsenseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { + if (adsenseLinkBuilder_ == null) { + if (resourceCase_ == 27) { + return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; + } + return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); + } else { + if (resourceCase_ == 27) { + return adsenseLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + public Builder setAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { + if (adsenseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + adsenseLinkBuilder_.setMessage(value); + } + resourceCase_ = 27; + return this; + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + public Builder setAdsenseLink( + com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { + if (adsenseLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + adsenseLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 27; + return this; + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + public Builder mergeAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { + if (adsenseLinkBuilder_ == null) { + if (resourceCase_ == 27 + && resource_ != com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.AdSenseLink.newBuilder( + (com.google.analytics.admin.v1alpha.AdSenseLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 27) { + adsenseLinkBuilder_.mergeFrom(value); + } else { + adsenseLinkBuilder_.setMessage(value); + } + } + resourceCase_ = 27; + return this; + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + public Builder clearAdsenseLink() { + if (adsenseLinkBuilder_ == null) { + if (resourceCase_ == 27) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 27) { + resourceCase_ = 0; + resource_ = null; + } + adsenseLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + public com.google.analytics.admin.v1alpha.AdSenseLink.Builder getAdsenseLinkBuilder() { + return getAdsenseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { + if ((resourceCase_ == 27) && (adsenseLinkBuilder_ != null)) { + return adsenseLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 27) { + return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; + } + return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an AdSenseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> + getAdsenseLinkFieldBuilder() { + if (adsenseLinkBuilder_ == null) { + if (!(resourceCase_ == 27)) { + resource_ = com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); + } + adsenseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.AdSenseLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 27; + onChanged(); + return adsenseLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + audienceBuilder_; + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + * + * @return Whether the audience field is set. + */ + @java.lang.Override + public boolean hasAudience() { + return resourceCase_ == 28; + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + * + * @return The audience. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudience() { + if (audienceBuilder_ == null) { + if (resourceCase_ == 28) { + return (com.google.analytics.admin.v1alpha.Audience) resource_; + } + return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } else { + if (resourceCase_ == 28) { + return audienceBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + audienceBuilder_.setMessage(value); + } + resourceCase_ = 28; + return this; + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + public Builder setAudience( + com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audienceBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + audienceBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 28; + return this; + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (resourceCase_ == 28 + && resource_ != com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.Audience.newBuilder( + (com.google.analytics.admin.v1alpha.Audience) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 28) { + audienceBuilder_.mergeFrom(value); + } else { + audienceBuilder_.setMessage(value); + } + } + resourceCase_ = 28; + return this; + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + public Builder clearAudience() { + if (audienceBuilder_ == null) { + if (resourceCase_ == 28) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 28) { + resourceCase_ = 0; + resource_ = null; + } + audienceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { + return getAudienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + if ((resourceCase_ == 28) && (audienceBuilder_ != null)) { + return audienceBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 28) { + return (com.google.analytics.admin.v1alpha.Audience) resource_; + } + return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Audience resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Audience audience = 28; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + getAudienceFieldBuilder() { + if (audienceBuilder_ == null) { + if (!(resourceCase_ == 28)) { + resource_ = com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); + } + audienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder>( + (com.google.analytics.admin.v1alpha.Audience) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 28; + onChanged(); + return audienceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + eventCreateRuleBuilder_; + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * + * @return Whether the eventCreateRule field is set. + */ + @java.lang.Override + public boolean hasEventCreateRule() { + return resourceCase_ == 29; + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + * + * @return The eventCreateRule. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { + if (eventCreateRuleBuilder_ == null) { + if (resourceCase_ == 29) { + return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; + } + return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); + } else { + if (resourceCase_ == 29) { + return eventCreateRuleBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + public Builder setEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + eventCreateRuleBuilder_.setMessage(value); + } + resourceCase_ = 29; + return this; + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + public Builder setEventCreateRule( + com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { + if (eventCreateRuleBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + eventCreateRuleBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 29; + return this; + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + public Builder mergeEventCreateRule( + com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRuleBuilder_ == null) { + if (resourceCase_ == 29 + && resource_ + != com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.EventCreateRule.newBuilder( + (com.google.analytics.admin.v1alpha.EventCreateRule) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 29) { + eventCreateRuleBuilder_.mergeFrom(value); + } else { + eventCreateRuleBuilder_.setMessage(value); + } + } + resourceCase_ = 29; + return this; + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + public Builder clearEventCreateRule() { + if (eventCreateRuleBuilder_ == null) { + if (resourceCase_ == 29) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 29) { + resourceCase_ = 0; + resource_ = null; + } + eventCreateRuleBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + public com.google.analytics.admin.v1alpha.EventCreateRule.Builder + getEventCreateRuleBuilder() { + return getEventCreateRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder + getEventCreateRuleOrBuilder() { + if ((resourceCase_ == 29) && (eventCreateRuleBuilder_ != null)) { + return eventCreateRuleBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 29) { + return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; + } + return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an EventCreateRule resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + getEventCreateRuleFieldBuilder() { + if (eventCreateRuleBuilder_ == null) { + if (!(resourceCase_ == 29)) { + resource_ = com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); + } + eventCreateRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( + (com.google.analytics.admin.v1alpha.EventCreateRule) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 29; + onChanged(); + return eventCreateRuleBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_ = 0; + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction() { + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.forNumber(action_); + return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; + } + + public static final int RESOURCE_BEFORE_CHANGE_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + @java.lang.Override + public boolean hasResourceBeforeChange() { + return resourceBeforeChange_ != null; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + + public static final int RESOURCE_AFTER_CHANGE_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + @java.lang.Override + public boolean hasResourceAfterChange() { + return resourceAfterChange_ != null; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + + 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(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); + } + if (action_ + != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + if (resourceBeforeChange_ != null) { + output.writeMessage(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + output.writeMessage(4, getResourceAfterChange()); + } + 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(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); + } + if (action_ + != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); + } + if (resourceBeforeChange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceAfterChange()); + } + 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.admin.v1alpha.ChangeHistoryChange)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryChange other = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange) obj; + + if (!getResource().equals(other.getResource())) return false; + if (action_ != other.action_) return false; + if (hasResourceBeforeChange() != other.hasResourceBeforeChange()) return false; + if (hasResourceBeforeChange()) { + if (!getResourceBeforeChange().equals(other.getResourceBeforeChange())) return false; + } + if (hasResourceAfterChange() != other.hasResourceAfterChange()) return false; + if (hasResourceAfterChange()) { + if (!getResourceAfterChange().equals(other.getResourceAfterChange())) 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) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasResourceBeforeChange()) { + hash = (37 * hash) + RESOURCE_BEFORE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceBeforeChange().hashCode(); + } + if (hasResourceAfterChange()) { + hash = (37 * hash) + RESOURCE_AFTER_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceAfterChange().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChangeHistoryChange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A description of a change to a single Google Analytics resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryChange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resource_ = ""; + action_ = 0; + resourceBeforeChange_ = null; + if (resourceBeforeChangeBuilder_ != null) { + resourceBeforeChangeBuilder_.dispose(); + resourceBeforeChangeBuilder_ = null; + } + resourceAfterChange_ = null; + if (resourceAfterChangeBuilder_ != null) { + resourceAfterChangeBuilder_.dispose(); + resourceAfterChangeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange build() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange result = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ChangeHistoryChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceBeforeChange_ = + resourceBeforeChangeBuilder_ == null + ? resourceBeforeChange_ + : resourceBeforeChangeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resourceAfterChange_ = + resourceAfterChangeBuilder_ == null + ? resourceAfterChange_ + : resourceAfterChangeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChangeHistoryChange) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryChange other) { + if (other == com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()) + return this; + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasResourceBeforeChange()) { + mergeResourceBeforeChange(other.getResourceBeforeChange()); + } + if (other.hasResourceAfterChange()) { + mergeResourceAfterChange(other.getResourceAfterChange()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getResourceBeforeChangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getResourceAfterChangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction() { + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.forNumber(action_); + return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceBeforeChangeBuilder_; + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + public boolean hasResourceBeforeChange() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + if (resourceBeforeChangeBuilder_ == null) { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } else { + return resourceBeforeChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceBeforeChange_ = value; + } else { + resourceBeforeChangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = builderForValue.build(); + } else { + resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder mergeResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && resourceBeforeChange_ != null + && resourceBeforeChange_ + != com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) { + getResourceBeforeChangeBuilder().mergeFrom(value); + } else { + resourceBeforeChange_ = value; + } + } else { + resourceBeforeChangeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder clearResourceBeforeChange() { + bitField0_ = (bitField0_ & ~0x00000004); + resourceBeforeChange_ = null; + if (resourceBeforeChangeBuilder_ != null) { + resourceBeforeChangeBuilder_.dispose(); + resourceBeforeChangeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceBeforeChangeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getResourceBeforeChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + if (resourceBeforeChangeBuilder_ != null) { + return resourceBeforeChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceBeforeChangeFieldBuilder() { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceBeforeChange(), getParentForChildren(), isClean()); + resourceBeforeChange_ = null; + } + return resourceBeforeChangeBuilder_; + } + + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceAfterChangeBuilder_; + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + public boolean hasResourceAfterChange() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + if (resourceAfterChangeBuilder_ == null) { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } else { + return resourceAfterChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceAfterChange_ = value; + } else { + resourceAfterChangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = builderForValue.build(); + } else { + resourceAfterChangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder mergeResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && resourceAfterChange_ != null + && resourceAfterChange_ + != com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) { + getResourceAfterChangeBuilder().mergeFrom(value); + } else { + resourceAfterChange_ = value; + } + } else { + resourceAfterChangeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder clearResourceAfterChange() { + bitField0_ = (bitField0_ & ~0x00000008); + resourceAfterChange_ = null; + if (resourceAfterChangeBuilder_ != null) { + resourceAfterChangeBuilder_.dispose(); + resourceAfterChangeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceAfterChangeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getResourceAfterChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + if (resourceAfterChangeBuilder_ != null) { + return resourceAfterChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceAfterChangeFieldBuilder() { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceAfterChange(), getParentForChildren(), isClean()); + resourceAfterChange_ = null; + } + return resourceAfterChangeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryChange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryChange(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryChange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java new file mode 100644 index 000000000000..7a204e1cc614 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java @@ -0,0 +1,167 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface ChangeHistoryChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + com.google.analytics.admin.v1alpha.ActionType getAction(); + + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + boolean hasResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder(); + + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + boolean hasResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java new file mode 100644 index 000000000000..0c2f29003646 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java @@ -0,0 +1,1862 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A set of changes within a Google Analytics account or its child properties
+ * that resulted from the same cause. Common causes would be updates made in the
+ * Google Analytics UI, changes from customer support, or automatic Google
+ * Analytics system changes.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ +public final class ChangeHistoryEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) + ChangeHistoryEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryEvent.newBuilder() to construct. + private ChangeHistoryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryEvent() { + id_ = ""; + actorType_ = 0; + userActorEmail_ = ""; + changes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp changeTime_; + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + @java.lang.Override + public boolean hasChangeTime() { + return changeTime_ != null; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getChangeTime() { + return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; + } + + public static final int ACTOR_TYPE_FIELD_NUMBER = 3; + private int actorType_ = 0; + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActorType getActorType() { + com.google.analytics.admin.v1alpha.ActorType result = + com.google.analytics.admin.v1alpha.ActorType.forNumber(actorType_); + return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; + } + + public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object userActorEmail_ = ""; + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + @java.lang.Override + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + 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(); + userActorEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGES_FILTERED_FIELD_NUMBER = 5; + private boolean changesFiltered_ = false; + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + + public static final int CHANGES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List changes_; + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List getChangesList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List + getChangesOrBuilderList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public int getChangesCount() { + return changes_.size(); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { + return changes_.get(index); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + return changes_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (changeTime_ != null) { + output.writeMessage(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, actorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_); + } + if (changesFiltered_ != false) { + output.writeBool(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + output.writeMessage(6, changes_.get(i)); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (changeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, actorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_); + } + if (changesFiltered_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, changes_.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.admin.v1alpha.ChangeHistoryEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryEvent other = + (com.google.analytics.admin.v1alpha.ChangeHistoryEvent) obj; + + if (!getId().equals(other.getId())) return false; + if (hasChangeTime() != other.hasChangeTime()) return false; + if (hasChangeTime()) { + if (!getChangeTime().equals(other.getChangeTime())) return false; + } + if (actorType_ != other.actorType_) return false; + if (!getUserActorEmail().equals(other.getUserActorEmail())) return false; + if (getChangesFiltered() != other.getChangesFiltered()) return false; + if (!getChangesList().equals(other.getChangesList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasChangeTime()) { + hash = (37 * hash) + CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getChangeTime().hashCode(); + } + hash = (37 * hash) + ACTOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + actorType_; + hash = (37 * hash) + USER_ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getUserActorEmail().hashCode(); + hash = (37 * hash) + CHANGES_FILTERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChangesFiltered()); + if (getChangesCount() > 0) { + hash = (37 * hash) + CHANGES_FIELD_NUMBER; + hash = (53 * hash) + getChangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A set of changes within a Google Analytics account or its child properties
+   * that resulted from the same cause. Common causes would be updates made in the
+   * Google Analytics UI, changes from customer support, or automatic Google
+   * Analytics system changes.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + changeTime_ = null; + if (changeTimeBuilder_ != null) { + changeTimeBuilder_.dispose(); + changeTimeBuilder_ = null; + } + actorType_ = 0; + userActorEmail_ = ""; + changesFiltered_ = false; + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + } else { + changes_ = null; + changesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent build() { + com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = + new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent result) { + if (changesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + changes_ = java.util.Collections.unmodifiableList(changes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.changes_ = changes_; + } else { + result.changes_ = changesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ChangeHistoryEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.changeTime_ = changeTimeBuilder_ == null ? changeTime_ : changeTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.actorType_ = actorType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userActorEmail_ = userActorEmail_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.changesFiltered_ = changesFiltered_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChangeHistoryEvent) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryEvent other) { + if (other == com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasChangeTime()) { + mergeChangeTime(other.getChangeTime()); + } + if (other.actorType_ != 0) { + setActorTypeValue(other.getActorTypeValue()); + } + if (!other.getUserActorEmail().isEmpty()) { + userActorEmail_ = other.userActorEmail_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getChangesFiltered() != false) { + setChangesFiltered(other.getChangesFiltered()); + } + if (changesBuilder_ == null) { + if (!other.changes_.isEmpty()) { + if (changes_.isEmpty()) { + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureChangesIsMutable(); + changes_.addAll(other.changes_); + } + onChanged(); + } + } else { + if (!other.changes_.isEmpty()) { + if (changesBuilder_.isEmpty()) { + changesBuilder_.dispose(); + changesBuilder_ = null; + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000020); + changesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangesFieldBuilder() + : null; + } else { + changesBuilder_.addAllMessages(other.changes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getChangeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + actorType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + userActorEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + changesFiltered_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + com.google.analytics.admin.v1alpha.ChangeHistoryChange m = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.parser(), + extensionRegistry); + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(m); + } else { + changesBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp changeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + changeTimeBuilder_; + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + public boolean hasChangeTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + public com.google.protobuf.Timestamp getChangeTime() { + if (changeTimeBuilder_ == null) { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } else { + return changeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + changeTime_ = value; + } else { + changeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (changeTimeBuilder_ == null) { + changeTime_ = builderForValue.build(); + } else { + changeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder mergeChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && changeTime_ != null + && changeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getChangeTimeBuilder().mergeFrom(value); + } else { + changeTime_ = value; + } + } else { + changeTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder clearChangeTime() { + bitField0_ = (bitField0_ & ~0x00000002); + changeTime_ = null; + if (changeTimeBuilder_ != null) { + changeTimeBuilder_.dispose(); + changeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + if (changeTimeBuilder_ != null) { + return changeTimeBuilder_.getMessageOrBuilder(); + } else { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getChangeTimeFieldBuilder() { + if (changeTimeBuilder_ == null) { + changeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getChangeTime(), getParentForChildren(), isClean()); + changeTime_ = null; + } + return changeTimeBuilder_; + } + + private int actorType_ = 0; + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @param value The enum numeric value on the wire for actorType to set. + * @return This builder for chaining. + */ + public Builder setActorTypeValue(int value) { + actorType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActorType getActorType() { + com.google.analytics.admin.v1alpha.ActorType result = + com.google.analytics.admin.v1alpha.ActorType.forNumber(actorType_); + return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @param value The actorType to set. + * @return This builder for chaining. + */ + public Builder setActorType(com.google.analytics.admin.v1alpha.ActorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + actorType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearActorType() { + bitField0_ = (bitField0_ & ~0x00000004); + actorType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object userActorEmail_ = ""; + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userActorEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userActorEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return This builder for chaining. + */ + public Builder clearUserActorEmail() { + userActorEmail_ = getDefaultInstance().getUserActorEmail(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The bytes for userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userActorEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean changesFiltered_; + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @param value The changesFiltered to set. + * @return This builder for chaining. + */ + public Builder setChangesFiltered(boolean value) { + + changesFiltered_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return This builder for chaining. + */ + public Builder clearChangesFiltered() { + bitField0_ = (bitField0_ & ~0x00000010); + changesFiltered_ = false; + onChanged(); + return this; + } + + private java.util.List changes_ = + java.util.Collections.emptyList(); + + private void ensureChangesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + changes_ = + new java.util.ArrayList( + changes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> + changesBuilder_; + + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List getChangesList() { + if (changesBuilder_ == null) { + return java.util.Collections.unmodifiableList(changes_); + } else { + return changesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public int getChangesCount() { + if (changesBuilder_ == null) { + return changes_.size(); + } else { + return changesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.set(index, value); + onChanged(); + } else { + changesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.set(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges(com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(value); + onChanged(); + } else { + changesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(index, value); + onChanged(); + } else { + changesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addAllChanges( + java.lang.Iterable + values) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changes_); + onChanged(); + } else { + changesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder clearChanges() { + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + changesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder removeChanges(int index) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.remove(index); + onChanged(); + } else { + changesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder getChangesBuilder( + int index) { + return getChangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesOrBuilderList() { + if (changesBuilder_ != null) { + return changesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changes_); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder() { + return getChangesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder( + int index) { + return getChangesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesBuilderList() { + return getChangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> + getChangesFieldBuilder() { + if (changesBuilder_ == null) { + changesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>( + changes_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + changes_ = null; + } + return changesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryEvent) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java new file mode 100644 index 000000000000..a8970642e46a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java @@ -0,0 +1,210 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface ChangeHistoryEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + boolean hasChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + com.google.protobuf.Timestamp getChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder(); + + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + int getActorTypeValue(); + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + com.google.analytics.admin.v1alpha.ActorType getActorType(); + + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + java.lang.String getUserActorEmail(); + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + com.google.protobuf.ByteString getUserActorEmailBytes(); + + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + boolean getChangesFiltered(); + + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + java.util.List getChangesList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + int getChangesCount(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + java.util.List + getChangesOrBuilderList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java new file mode 100644 index 000000000000..b801d532aca2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -0,0 +1,641 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Types of resources whose changes may be returned from change history.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ChangeHistoryResourceType} + */ +public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + ACCOUNT(1), + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + PROPERTY(2), + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + FIREBASE_LINK(6), + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + GOOGLE_ADS_LINK(7), + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + GOOGLE_SIGNALS_SETTINGS(8), + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + CONVERSION_EVENT(9), + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + MEASUREMENT_PROTOCOL_SECRET(10), + /** + * + * + *
+   * CustomDimension resource
+   * 
+ * + * CUSTOM_DIMENSION = 11; + */ + CUSTOM_DIMENSION(11), + /** + * + * + *
+   * CustomMetric resource
+   * 
+ * + * CUSTOM_METRIC = 12; + */ + CUSTOM_METRIC(12), + /** + * + * + *
+   * DataRetentionSettings resource
+   * 
+ * + * DATA_RETENTION_SETTINGS = 13; + */ + DATA_RETENTION_SETTINGS(13), + /** + * + * + *
+   * DisplayVideo360AdvertiserLink resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + DISPLAY_VIDEO_360_ADVERTISER_LINK(14), + /** + * + * + *
+   * DisplayVideo360AdvertiserLinkProposal resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(15), + /** + * + * + *
+   * SearchAds360Link resource
+   * 
+ * + * SEARCH_ADS_360_LINK = 16; + */ + SEARCH_ADS_360_LINK(16), + /** + * + * + *
+   * DataStream resource
+   * 
+ * + * DATA_STREAM = 18; + */ + DATA_STREAM(18), + /** + * + * + *
+   * AttributionSettings resource
+   * 
+ * + * ATTRIBUTION_SETTINGS = 20; + */ + ATTRIBUTION_SETTINGS(20), + /** + * + * + *
+   * ExpandedDataSet resource
+   * 
+ * + * EXPANDED_DATA_SET = 21; + */ + EXPANDED_DATA_SET(21), + /** + * + * + *
+   * ChannelGroup resource
+   * 
+ * + * CHANNEL_GROUP = 22; + */ + CHANNEL_GROUP(22), + /** + * + * + *
+   * EnhancedMeasurementSettings resource
+   * 
+ * + * ENHANCED_MEASUREMENT_SETTINGS = 24; + */ + ENHANCED_MEASUREMENT_SETTINGS(24), + /** + * + * + *
+   * DataRedactionSettings resource
+   * 
+ * + * DATA_REDACTION_SETTINGS = 25; + */ + DATA_REDACTION_SETTINGS(25), + /** + * + * + *
+   * SKAdNetworkConversionValueSchema resource
+   * 
+ * + * SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; + */ + SKADNETWORK_CONVERSION_VALUE_SCHEMA(26), + /** + * + * + *
+   * AdSenseLink resource
+   * 
+ * + * ADSENSE_LINK = 27; + */ + ADSENSE_LINK(27), + /** + * + * + *
+   * Audience resource
+   * 
+ * + * AUDIENCE = 28; + */ + AUDIENCE(28), + /** + * + * + *
+   * EventCreateRule resource
+   * 
+ * + * EVENT_CREATE_RULE = 29; + */ + EVENT_CREATE_RULE(29), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + public static final int ACCOUNT_VALUE = 1; + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + public static final int PROPERTY_VALUE = 2; + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + public static final int FIREBASE_LINK_VALUE = 6; + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + public static final int GOOGLE_ADS_LINK_VALUE = 7; + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + public static final int GOOGLE_SIGNALS_SETTINGS_VALUE = 8; + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + public static final int CONVERSION_EVENT_VALUE = 9; + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + public static final int MEASUREMENT_PROTOCOL_SECRET_VALUE = 10; + /** + * + * + *
+   * CustomDimension resource
+   * 
+ * + * CUSTOM_DIMENSION = 11; + */ + public static final int CUSTOM_DIMENSION_VALUE = 11; + /** + * + * + *
+   * CustomMetric resource
+   * 
+ * + * CUSTOM_METRIC = 12; + */ + public static final int CUSTOM_METRIC_VALUE = 12; + /** + * + * + *
+   * DataRetentionSettings resource
+   * 
+ * + * DATA_RETENTION_SETTINGS = 13; + */ + public static final int DATA_RETENTION_SETTINGS_VALUE = 13; + /** + * + * + *
+   * DisplayVideo360AdvertiserLink resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_VALUE = 14; + /** + * + * + *
+   * DisplayVideo360AdvertiserLinkProposal resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_VALUE = 15; + /** + * + * + *
+   * SearchAds360Link resource
+   * 
+ * + * SEARCH_ADS_360_LINK = 16; + */ + public static final int SEARCH_ADS_360_LINK_VALUE = 16; + /** + * + * + *
+   * DataStream resource
+   * 
+ * + * DATA_STREAM = 18; + */ + public static final int DATA_STREAM_VALUE = 18; + /** + * + * + *
+   * AttributionSettings resource
+   * 
+ * + * ATTRIBUTION_SETTINGS = 20; + */ + public static final int ATTRIBUTION_SETTINGS_VALUE = 20; + /** + * + * + *
+   * ExpandedDataSet resource
+   * 
+ * + * EXPANDED_DATA_SET = 21; + */ + public static final int EXPANDED_DATA_SET_VALUE = 21; + /** + * + * + *
+   * ChannelGroup resource
+   * 
+ * + * CHANNEL_GROUP = 22; + */ + public static final int CHANNEL_GROUP_VALUE = 22; + /** + * + * + *
+   * EnhancedMeasurementSettings resource
+   * 
+ * + * ENHANCED_MEASUREMENT_SETTINGS = 24; + */ + public static final int ENHANCED_MEASUREMENT_SETTINGS_VALUE = 24; + /** + * + * + *
+   * DataRedactionSettings resource
+   * 
+ * + * DATA_REDACTION_SETTINGS = 25; + */ + public static final int DATA_REDACTION_SETTINGS_VALUE = 25; + /** + * + * + *
+   * SKAdNetworkConversionValueSchema resource
+   * 
+ * + * SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; + */ + public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_VALUE = 26; + /** + * + * + *
+   * AdSenseLink resource
+   * 
+ * + * ADSENSE_LINK = 27; + */ + public static final int ADSENSE_LINK_VALUE = 27; + /** + * + * + *
+   * Audience resource
+   * 
+ * + * AUDIENCE = 28; + */ + public static final int AUDIENCE_VALUE = 28; + /** + * + * + *
+   * EventCreateRule resource
+   * 
+ * + * EVENT_CREATE_RULE = 29; + */ + public static final int EVENT_CREATE_RULE_VALUE = 29; + + 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 ChangeHistoryResourceType 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 ChangeHistoryResourceType forNumber(int value) { + switch (value) { + case 0: + return CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED; + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + case 8: + return GOOGLE_SIGNALS_SETTINGS; + case 9: + return CONVERSION_EVENT; + case 10: + return MEASUREMENT_PROTOCOL_SECRET; + case 11: + return CUSTOM_DIMENSION; + case 12: + return CUSTOM_METRIC; + case 13: + return DATA_RETENTION_SETTINGS; + case 14: + return DISPLAY_VIDEO_360_ADVERTISER_LINK; + case 15: + return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; + case 16: + return SEARCH_ADS_360_LINK; + case 18: + return DATA_STREAM; + case 20: + return ATTRIBUTION_SETTINGS; + case 21: + return EXPANDED_DATA_SET; + case 22: + return CHANNEL_GROUP; + case 24: + return ENHANCED_MEASUREMENT_SETTINGS; + case 25: + return DATA_REDACTION_SETTINGS; + case 26: + return SKADNETWORK_CONVERSION_VALUE_SCHEMA; + case 27: + return ADSENSE_LINK; + case 28: + return AUDIENCE; + case 29: + return EVENT_CREATE_RULE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChangeHistoryResourceType findValueByNumber(int number) { + return ChangeHistoryResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(4); + } + + private static final ChangeHistoryResourceType[] VALUES = values(); + + public static ChangeHistoryResourceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ChangeHistoryResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ChangeHistoryResourceType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java new file mode 100644 index 000000000000..057ff143f2f4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java @@ -0,0 +1,1647 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a Channel Group.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroup} + */ +public final class ChannelGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroup) + ChannelGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGroup.newBuilder() to construct. + private ChannelGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChannelGroup() { + name_ = ""; + displayName_ = ""; + description_ = ""; + groupingRule_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChannelGroup(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroup.class, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name for this Channel Group resource.
+   * Format: properties/{property}/channelGroups/{channel_group}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this Channel Group resource.
+   * Format: properties/{property}/channelGroups/{channel_group}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. The display name of the Channel Group. Max length of 80
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The display name of the Channel Group. Max length of 80
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * The description of the Channel Group. Max length of 256 characters.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * The description of the Channel Group. Max length of 256 characters.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GROUPING_RULE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List groupingRule_; + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getGroupingRuleList() { + return groupingRule_; + } + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getGroupingRuleOrBuilderList() { + return groupingRule_; + } + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getGroupingRuleCount() { + return groupingRule_.size(); + } + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index) { + return groupingRule_.get(index); + } + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleOrBuilder( + int index) { + return groupingRule_.get(index); + } + + public static final int SYSTEM_DEFINED_FIELD_NUMBER = 5; + private boolean systemDefined_ = false; + /** + * + * + *
+   * Output only. Default Channel Group defined by Google, which cannot be
+   * updated.
+   * 
+ * + * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemDefined. + */ + @java.lang.Override + public boolean getSystemDefined() { + return systemDefined_; + } + + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + for (int i = 0; i < groupingRule_.size(); i++) { + output.writeMessage(4, groupingRule_.get(i)); + } + if (systemDefined_ != false) { + output.writeBool(5, systemDefined_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + for (int i = 0; i < groupingRule_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, groupingRule_.get(i)); + } + if (systemDefined_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, systemDefined_); + } + 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.admin.v1alpha.ChannelGroup)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChannelGroup other = + (com.google.analytics.admin.v1alpha.ChannelGroup) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getGroupingRuleList().equals(other.getGroupingRuleList())) return false; + if (getSystemDefined() != other.getSystemDefined()) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getGroupingRuleCount() > 0) { + hash = (37 * hash) + GROUPING_RULE_FIELD_NUMBER; + hash = (53 * hash) + getGroupingRuleList().hashCode(); + } + hash = (37 * hash) + SYSTEM_DEFINED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSystemDefined()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChannelGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a Channel Group.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroup) + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroup.class, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChannelGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + if (groupingRuleBuilder_ == null) { + groupingRule_ = java.util.Collections.emptyList(); + } else { + groupingRule_ = null; + groupingRuleBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + systemDefined_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup build() { + com.google.analytics.admin.v1alpha.ChannelGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup buildPartial() { + com.google.analytics.admin.v1alpha.ChannelGroup result = + new com.google.analytics.admin.v1alpha.ChannelGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ChannelGroup result) { + if (groupingRuleBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + groupingRule_ = java.util.Collections.unmodifiableList(groupingRule_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.groupingRule_ = groupingRule_; + } else { + result.groupingRule_ = groupingRuleBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.systemDefined_ = systemDefined_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroup) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroup other) { + if (other == com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (groupingRuleBuilder_ == null) { + if (!other.groupingRule_.isEmpty()) { + if (groupingRule_.isEmpty()) { + groupingRule_ = other.groupingRule_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureGroupingRuleIsMutable(); + groupingRule_.addAll(other.groupingRule_); + } + onChanged(); + } + } else { + if (!other.groupingRule_.isEmpty()) { + if (groupingRuleBuilder_.isEmpty()) { + groupingRuleBuilder_.dispose(); + groupingRuleBuilder_ = null; + groupingRule_ = other.groupingRule_; + bitField0_ = (bitField0_ & ~0x00000008); + groupingRuleBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGroupingRuleFieldBuilder() + : null; + } else { + groupingRuleBuilder_.addAllMessages(other.groupingRule_); + } + } + } + if (other.getSystemDefined() != false) { + setSystemDefined(other.getSystemDefined()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.analytics.admin.v1alpha.GroupingRule m = + input.readMessage( + com.google.analytics.admin.v1alpha.GroupingRule.parser(), + extensionRegistry); + if (groupingRuleBuilder_ == null) { + ensureGroupingRuleIsMutable(); + groupingRule_.add(m); + } else { + groupingRuleBuilder_.addMessage(m); + } + break; + } // case 34 + case 40: + { + systemDefined_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this Channel Group resource.
+     * Format: properties/{property}/channelGroups/{channel_group}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this Channel Group resource.
+     * Format: properties/{property}/channelGroups/{channel_group}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this Channel Group resource.
+     * Format: properties/{property}/channelGroups/{channel_group}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this Channel Group resource.
+     * Format: properties/{property}/channelGroups/{channel_group}
+     * 
+ * + * string name = 1 [(.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. The resource name for this Channel Group resource.
+     * Format: properties/{property}/channelGroups/{channel_group}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The display name of the Channel Group. Max length of 80
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The display name of the Channel Group. Max length of 80
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The display name of the Channel Group. Max length of 80
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the Channel Group. Max length of 80
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the Channel Group. Max length of 80
+     * characters.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * The description of the Channel Group. Max length of 256 characters.
+     * 
+ * + * string description = 3; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The description of the Channel Group. Max length of 256 characters.
+     * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The description of the Channel Group. Max length of 256 characters.
+     * 
+ * + * string description = 3; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the Channel Group. Max length of 256 characters.
+     * 
+ * + * string description = 3; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * The description of the Channel Group. Max length of 256 characters.
+     * 
+ * + * string description = 3; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List groupingRule_ = + java.util.Collections.emptyList(); + + private void ensureGroupingRuleIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + groupingRule_ = + new java.util.ArrayList(groupingRule_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.GroupingRule, + com.google.analytics.admin.v1alpha.GroupingRule.Builder, + com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder> + groupingRuleBuilder_; + + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getGroupingRuleList() { + if (groupingRuleBuilder_ == null) { + return java.util.Collections.unmodifiableList(groupingRule_); + } else { + return groupingRuleBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getGroupingRuleCount() { + if (groupingRuleBuilder_ == null) { + return groupingRule_.size(); + } else { + return groupingRuleBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index) { + if (groupingRuleBuilder_ == null) { + return groupingRule_.get(index); + } else { + return groupingRuleBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGroupingRule( + int index, com.google.analytics.admin.v1alpha.GroupingRule value) { + if (groupingRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupingRuleIsMutable(); + groupingRule_.set(index, value); + onChanged(); + } else { + groupingRuleBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGroupingRule( + int index, com.google.analytics.admin.v1alpha.GroupingRule.Builder builderForValue) { + if (groupingRuleBuilder_ == null) { + ensureGroupingRuleIsMutable(); + groupingRule_.set(index, builderForValue.build()); + onChanged(); + } else { + groupingRuleBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addGroupingRule(com.google.analytics.admin.v1alpha.GroupingRule value) { + if (groupingRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupingRuleIsMutable(); + groupingRule_.add(value); + onChanged(); + } else { + groupingRuleBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addGroupingRule( + int index, com.google.analytics.admin.v1alpha.GroupingRule value) { + if (groupingRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGroupingRuleIsMutable(); + groupingRule_.add(index, value); + onChanged(); + } else { + groupingRuleBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addGroupingRule( + com.google.analytics.admin.v1alpha.GroupingRule.Builder builderForValue) { + if (groupingRuleBuilder_ == null) { + ensureGroupingRuleIsMutable(); + groupingRule_.add(builderForValue.build()); + onChanged(); + } else { + groupingRuleBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addGroupingRule( + int index, com.google.analytics.admin.v1alpha.GroupingRule.Builder builderForValue) { + if (groupingRuleBuilder_ == null) { + ensureGroupingRuleIsMutable(); + groupingRule_.add(index, builderForValue.build()); + onChanged(); + } else { + groupingRuleBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllGroupingRule( + java.lang.Iterable values) { + if (groupingRuleBuilder_ == null) { + ensureGroupingRuleIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, groupingRule_); + onChanged(); + } else { + groupingRuleBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGroupingRule() { + if (groupingRuleBuilder_ == null) { + groupingRule_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + groupingRuleBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeGroupingRule(int index) { + if (groupingRuleBuilder_ == null) { + ensureGroupingRuleIsMutable(); + groupingRule_.remove(index); + onChanged(); + } else { + groupingRuleBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GroupingRule.Builder getGroupingRuleBuilder( + int index) { + return getGroupingRuleFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleOrBuilder( + int index) { + if (groupingRuleBuilder_ == null) { + return groupingRule_.get(index); + } else { + return groupingRuleBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getGroupingRuleOrBuilderList() { + if (groupingRuleBuilder_ != null) { + return groupingRuleBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(groupingRule_); + } + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GroupingRule.Builder addGroupingRuleBuilder() { + return getGroupingRuleFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GroupingRule.Builder addGroupingRuleBuilder( + int index) { + return getGroupingRuleFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance()); + } + /** + * + * + *
+     * Required. The grouping rules of channels. Maximum number of rules is 25.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getGroupingRuleBuilderList() { + return getGroupingRuleFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.GroupingRule, + com.google.analytics.admin.v1alpha.GroupingRule.Builder, + com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder> + getGroupingRuleFieldBuilder() { + if (groupingRuleBuilder_ == null) { + groupingRuleBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.GroupingRule, + com.google.analytics.admin.v1alpha.GroupingRule.Builder, + com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder>( + groupingRule_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + groupingRule_ = null; + } + return groupingRuleBuilder_; + } + + private boolean systemDefined_; + /** + * + * + *
+     * Output only. Default Channel Group defined by Google, which cannot be
+     * updated.
+     * 
+ * + * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemDefined. + */ + @java.lang.Override + public boolean getSystemDefined() { + return systemDefined_; + } + /** + * + * + *
+     * Output only. Default Channel Group defined by Google, which cannot be
+     * updated.
+     * 
+ * + * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The systemDefined to set. + * @return This builder for chaining. + */ + public Builder setSystemDefined(boolean value) { + + systemDefined_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Default Channel Group defined by Google, which cannot be
+     * updated.
+     * 
+ * + * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSystemDefined() { + bitField0_ = (bitField0_ & ~0x00000010); + systemDefined_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroup) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroup) + private static final com.google.analytics.admin.v1alpha.ChannelGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroup(); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilter.java new file mode 100644 index 000000000000..487bb520a5f0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilter.java @@ -0,0 +1,3274 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A specific filter for a single dimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter} + */ +public final class ChannelGroupFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter) + ChannelGroupFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGroupFilter.newBuilder() to construct. + private ChannelGroupFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChannelGroupFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChannelGroupFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder.class); + } + + public interface StringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType getMatchType(); + + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + } + /** + * + * + *
+   * Filter where the field value is a String. The match is case insensitive.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} + */ + public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) + StringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringFilter.newBuilder() to construct. + private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder.class); + } + + /** + * + * + *
+     * How the filter will be used to determine a match.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Default match type.
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+       * Full regular expression match with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+       * Partial regular expression match with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + PARTIAL_REGEXP(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Default match type.
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+       * Full regular expression match with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+       * Partial regular expression match with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + public static final int PARTIAL_REGEXP_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + case 6: + return PARTIAL_REGEXP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_ = 0; + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType result = + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.forNumber( + matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + .UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchType_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + .MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + .MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + 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.admin.v1alpha.ChannelGroupFilter.StringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter other = + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) 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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter 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; + } + /** + * + * + *
+     * Filter where the field value is a String. The match is case insensitive.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchType_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter build() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter buildPartial() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter result = + new com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter other) { + if (other + == com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + .getDefaultInstance()) return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchType_ = 0; + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType result = + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.forNumber( + matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000001); + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) + private static final com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of options.
+   * The match is case insensitive.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} + */ + public static final class InListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) + InListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use InListFilter.newBuilder() to construct. + private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InListFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + 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.admin.v1alpha.ChannelGroupFilter.InListFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter other = + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) obj; + + if (!getValuesList().equals(other.getValuesList())) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of options.
+     * The match is case insensitive.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter build() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter buildPartial() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter result = + new com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter other) { + if (other + == com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + 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.admin.v1alpha.ChannelGroupFilter.InListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) + private static final com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InListFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int valueFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object valueFilter_; + + public enum ValueFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + VALUEFILTER_NOT_SET(0); + private final int value; + + private ValueFilterCase(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 ValueFilterCase valueOf(int value) { + return forNumber(value); + } + + public static ValueFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 0: + return VALUEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ValueFilterCase getValueFilterCase() { + return ValueFilterCase.forNumber(valueFilterCase_); + } + + public static final int STRING_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return valueFilterCase_ == 2; + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter() { + if (valueFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if (valueFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return valueFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter() { + if (valueFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if (valueFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+   * Required. Immutable. The dimension name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. The dimension name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (valueFilterCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_); + } + if (valueFilterCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (valueFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_); + } + if (valueFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_); + } + 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.admin.v1alpha.ChannelGroupFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChannelGroupFilter other = + (com.google.analytics.admin.v1alpha.ChannelGroupFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getValueFilterCase().equals(other.getValueFilterCase())) return false; + switch (valueFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) 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(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + switch (valueFilterCase_) { + case 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChannelGroupFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A specific filter for a single dimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter) + com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChannelGroupFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + fieldName_ = ""; + valueFilterCase_ = 0; + valueFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter build() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter buildPartial() { + com.google.analytics.admin.v1alpha.ChannelGroupFilter result = + new com.google.analytics.admin.v1alpha.ChannelGroupFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroupFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldName_ = fieldName_; + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1alpha.ChannelGroupFilter result) { + result.valueFilterCase_ = valueFilterCase_; + result.valueFilter_ = this.valueFilter_; + if (valueFilterCase_ == 2 && stringFilterBuilder_ != null) { + result.valueFilter_ = stringFilterBuilder_.build(); + } + if (valueFilterCase_ == 3 && inListFilterBuilder_ != null) { + result.valueFilter_ = inListFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroupFilter other) { + if (other == com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance()) + return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getValueFilterCase()) { + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case IN_LIST_FILTER: + { + mergeInListFilter(other.getInListFilter()); + break; + } + case VALUEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + valueFilterCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + valueFilterCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int valueFilterCase_ = 0; + private java.lang.Object valueFilter_; + + public ValueFilterCase getValueFilterCase() { + return ValueFilterCase.forNumber(valueFilterCase_); + } + + public Builder clearValueFilter() { + valueFilterCase_ = 0; + valueFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return valueFilterCase_ == 2; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (valueFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + .getDefaultInstance(); + } else { + if (valueFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + valueFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder + builderForValue) { + if (stringFilterBuilder_ == null) { + valueFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + valueFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + */ + public Builder mergeStringFilter( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (valueFilterCase_ == 2 + && valueFilter_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + .getDefaultInstance()) { + valueFilter_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.newBuilder( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) + valueFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + valueFilter_ = value; + } + onChanged(); + } else { + if (valueFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + valueFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (valueFilterCase_ == 2) { + valueFilterCase_ = 0; + valueFilter_ = null; + onChanged(); + } + } else { + if (valueFilterCase_ == 2) { + valueFilterCase_ = 0; + valueFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder + getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if ((valueFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (valueFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(valueFilterCase_ == 2)) { + valueFilter_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter + .getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_, + getParentForChildren(), + isClean()); + valueFilter_ = null; + } + valueFilterCase_ = 2; + onChanged(); + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return valueFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (valueFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + .getDefaultInstance(); + } else { + if (valueFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + valueFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder + builderForValue) { + if (inListFilterBuilder_ == null) { + valueFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + valueFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + public Builder mergeInListFilter( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (valueFilterCase_ == 3 + && valueFilter_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + .getDefaultInstance()) { + valueFilter_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.newBuilder( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) + valueFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + valueFilter_ = value; + } + onChanged(); + } else { + if (valueFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + valueFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (valueFilterCase_ == 3) { + valueFilterCase_ = 0; + valueFilter_ = null; + onChanged(); + } + } else { + if (valueFilterCase_ == 3) { + valueFilterCase_ = 0; + valueFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder + getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if ((valueFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (valueFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(valueFilterCase_ == 3)) { + valueFilter_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter + .getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_, + getParentForChildren(), + isClean()); + valueFilter_ = null; + } + valueFilterCase_ = 3; + onChanged(); + return inListFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * Required. Immutable. The dimension name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The dimension name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. The dimension name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The dimension name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The dimension name to filter.
+     * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilter) + private static final com.google.analytics.admin.v1alpha.ChannelGroupFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilter(); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGroupFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpression.java new file mode 100644 index 000000000000..b59403413b09 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpression.java @@ -0,0 +1,1820 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A logical expression of Channel Group dimension filters.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpression} + */ +public final class ChannelGroupFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) + ChannelGroupFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGroupFilterExpression.newBuilder() to construct. + private ChannelGroupFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChannelGroupFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChannelGroupFilterExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + FILTER(4), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(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 ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return FILTER; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * ChannelGroupFilterExpressions with or_group. This must be set for the
+   * top level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * ChannelGroupFilterExpressions with or_group. This must be set for the
+   * top level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It can only contain
+   * ChannelGroupFilterExpressions with or_group. This must be set for the
+   * top level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * ChannelGroupFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * ChannelGroupFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to OR’ed together. It cannot contain
+   * ChannelGroupFilterExpressions with and_group or or_group.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter expression to be NOT'ed (that is inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+   * A filter expression to be NOT'ed (that is inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * A filter expression to be NOT'ed (that is inverted, complemented). It
+   * can only include a dimension_or_metric_filter. This cannot be set on the
+   * top level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); + } + + public static final int FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter on a single dimension. This cannot be set on the top
+   * level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A filter on a single dimension. This cannot be set on the top
+   * level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter getFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter on a single dimension. This cannot be set on the top
+   * level ChannelGroupFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder getFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_); + } + 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.admin.v1alpha.ChannelGroupFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression other = + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getAndGroup().equals(other.getAndGroup())) return false; + break; + case 2: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 3: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 4: + if (!getFilter().equals(other.getFilter())) 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 (exprCase_) { + case 1: + hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAndGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 3: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 4: + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A logical expression of Channel Group dimension filters.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (filterBuilder_ != null) { + filterBuilder_.clear(); + } + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression build() { + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result = + new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result) { + result.exprCase_ = exprCase_; + result.expr_ = this.expr_; + if (exprCase_ == 1 && andGroupBuilder_ != null) { + result.expr_ = andGroupBuilder_.build(); + } + if (exprCase_ == 2 && orGroupBuilder_ != null) { + result.expr_ = orGroupBuilder_.build(); + } + if (exprCase_ == 3 && notExpressionBuilder_ != null) { + result.expr_ = notExpressionBuilder_.build(); + } + if (exprCase_ == 4 && filterBuilder_ != null) { + result.expr_ = filterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression other) { + if (other + == com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()) + return this; + switch (other.getExprCase()) { + case AND_GROUP: + { + mergeAndGroup(other.getAndGroup()); + break; + } + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case FILTER: + { + mergeFilter(other.getFilter()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder + builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + public Builder clearAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + andGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It can only contain
+     * ChannelGroupFilterExpressions with or_group. This must be set for the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder + builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. It cannot contain
+     * ChannelGroupFilterExpressions with and_group or or_group.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is inverted, complemented). It
+     * can only include a dimension_or_metric_filter. This cannot be set on the
+     * top level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder> + filterBuilder_; + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilter getFilter() { + if (filterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return filterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + public Builder setFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + public Builder setFilter( + com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + public Builder mergeFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter value) { + if (filterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.ChannelGroupFilter.newBuilder( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + filterBuilder_.mergeFrom(value); + } else { + filterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + filterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder getFilterBuilder() { + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder getFilterOrBuilder() { + if ((exprCase_ == 4) && (filterBuilder_ != null)) { + return filterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ChannelGroupFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); + } + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilter, + com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + return filterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) + private static final com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGroupFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionList.java new file mode 100644 index 000000000000..5f0716e0083d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionList.java @@ -0,0 +1,1025 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of Channel Group filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} + */ +public final class ChannelGroupFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) + ChannelGroupFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChannelGroupFilterExpressionList.newBuilder() to construct. + private ChannelGroupFilterExpressionList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChannelGroupFilterExpressionList() { + filterExpressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChannelGroupFilterExpressionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder.class); + } + + public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + filterExpressions_; + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List + getFilterExpressionsList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public int getFilterExpressionsCount() { + return filterExpressions_.size(); + } + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getFilterExpressions( + int index) { + return filterExpressions_.get(index); + } + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + return filterExpressions_.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 < filterExpressions_.size(); i++) { + output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, filterExpressions_.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.admin.v1alpha.ChannelGroupFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList other = + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) obj; + + if (!getFilterExpressionsList().equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { + hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.class, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + } else { + filterExpressions_ = null; + filterExpressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList build() { + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result = + new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result) { + if (filterExpressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filterExpressions_ = filterExpressions_; + } else { + result.filterExpressions_ = filterExpressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + .getDefaultInstance()) return this; + if (filterExpressionsBuilder_ == null) { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressions_.isEmpty()) { + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterExpressionsIsMutable(); + filterExpressions_.addAll(other.filterExpressions_); + } + onChanged(); + } + } else { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressionsBuilder_.isEmpty()) { + filterExpressionsBuilder_.dispose(); + filterExpressionsBuilder_ = null; + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + filterExpressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterExpressionsFieldBuilder() + : null; + } else { + filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression m = + input.readMessage( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.parser(), + extensionRegistry); + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(m); + } else { + filterExpressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + filterExpressions_ = java.util.Collections.emptyList(); + + private void ensureFilterExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression>( + filterExpressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + filterExpressionsBuilder_; + + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public java.util.List + getFilterExpressionsList() { + if (filterExpressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterExpressions_); + } else { + return filterExpressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public int getFilterExpressionsCount() { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.size(); + } else { + return filterExpressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getFilterExpressions( + int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder addAllFilterExpressions( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression> + values) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterExpressions_); + onChanged(); + } else { + filterExpressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder clearFilterExpressions() { + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterExpressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public Builder removeFilterExpressions(int index) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.remove(index); + onChanged(); + } else { + filterExpressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder + getFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + if (filterExpressionsBuilder_ != null) { + return filterExpressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterExpressions_); + } + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder + addFilterExpressionsBuilder() { + return getFilterExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder + addFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of Channel Group filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + public java.util.List + getFilterExpressionsBuilderList() { + return getFilterExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + getFilterExpressionsFieldBuilder() { + if (filterExpressionsBuilder_ == null) { + filterExpressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder>( + filterExpressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filterExpressions_ = null; + } + return filterExpressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChannelGroupFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..5676b83669ac --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionListOrBuilder.java @@ -0,0 +1,89 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +public interface ChannelGroupFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + java.util.List + getFilterExpressionsList(); + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getFilterExpressions(int index); + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + int getFilterExpressionsCount(); + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + java.util.List + getFilterExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of Channel Group filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionOrBuilder.java similarity index 83% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionOrBuilder.java index ffd19b485b9e..29df8e0a055d 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/channel_group.proto package com.google.analytics.admin.v1alpha; -public interface ChannelGroupFilterExpressionOrBuilder extends +public interface ChannelGroupFilterExpressionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of expressions to be AND’ed together. It can only contain
    * ChannelGroupFilterExpressions with or_group. This must be set for the
@@ -15,10 +33,13 @@ public interface ChannelGroupFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * * @return Whether the andGroup field is set. */ boolean hasAndGroup(); /** + * + * *
    * A list of expressions to be AND’ed together. It can only contain
    * ChannelGroupFilterExpressions with or_group. This must be set for the
@@ -26,10 +47,13 @@ public interface ChannelGroupFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; + * * @return The andGroup. */ com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getAndGroup(); /** + * + * *
    * A list of expressions to be AND’ed together. It can only contain
    * ChannelGroupFilterExpressions with or_group. This must be set for the
@@ -38,29 +62,38 @@ public interface ChannelGroupFilterExpressionOrBuilder extends
    *
    * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1;
    */
-  com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder getAndGroupOrBuilder();
+  com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder
+      getAndGroupOrBuilder();
 
   /**
+   *
+   *
    * 
    * A list of expressions to OR’ed together. It cannot contain
    * ChannelGroupFilterExpressions with and_group or or_group.
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * * @return Whether the orGroup field is set. */ boolean hasOrGroup(); /** + * + * *
    * A list of expressions to OR’ed together. It cannot contain
    * ChannelGroupFilterExpressions with and_group or or_group.
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; + * * @return The orGroup. */ com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getOrGroup(); /** + * + * *
    * A list of expressions to OR’ed together. It cannot contain
    * ChannelGroupFilterExpressions with and_group or or_group.
@@ -68,9 +101,12 @@ public interface ChannelGroupFilterExpressionOrBuilder extends
    *
    * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2;
    */
-  com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder getOrGroupOrBuilder();
+  com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder
+      getOrGroupOrBuilder();
 
   /**
+   *
+   *
    * 
    * A filter expression to be NOT'ed (that is inverted, complemented). It
    * can only include a dimension_or_metric_filter. This cannot be set on the
@@ -78,10 +114,13 @@ public interface ChannelGroupFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * * @return Whether the notExpression field is set. */ boolean hasNotExpression(); /** + * + * *
    * A filter expression to be NOT'ed (that is inverted, complemented). It
    * can only include a dimension_or_metric_filter. This cannot be set on the
@@ -89,10 +128,13 @@ public interface ChannelGroupFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; + * * @return The notExpression. */ com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getNotExpression(); /** + * + * *
    * A filter expression to be NOT'ed (that is inverted, complemented). It
    * can only include a dimension_or_metric_filter. This cannot be set on the
@@ -101,29 +143,38 @@ public interface ChannelGroupFilterExpressionOrBuilder extends
    *
    * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3;
    */
-  com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getNotExpressionOrBuilder();
+  com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder
+      getNotExpressionOrBuilder();
 
   /**
+   *
+   *
    * 
    * A filter on a single dimension. This cannot be set on the top
    * level ChannelGroupFilterExpression.
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * * @return Whether the filter field is set. */ boolean hasFilter(); /** + * + * *
    * A filter on a single dimension. This cannot be set on the top
    * level ChannelGroupFilterExpression.
    * 
* * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; + * * @return The filter. */ com.google.analytics.admin.v1alpha.ChannelGroupFilter getFilter(); /** + * + * *
    * A filter on a single dimension. This cannot be set on the top
    * level ChannelGroupFilterExpression.
diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterOrBuilder.java
new file mode 100644
index 000000000000..a3607aa92ad2
--- /dev/null
+++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterOrBuilder.java
@@ -0,0 +1,134 @@
+/*
+ * 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/admin/v1alpha/channel_group.proto
+
+package com.google.analytics.admin.v1alpha;
+
+public interface ChannelGroupFilterOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   *
+   *
+   * 
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder + getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; + * + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder + getInListFilterOrBuilder(); + + /** + * + * + *
+   * Required. Immutable. The dimension name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * Required. Immutable. The dimension name to filter.
+   * 
+ * + * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + com.google.analytics.admin.v1alpha.ChannelGroupFilter.ValueFilterCase getValueFilterCase(); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java new file mode 100644 index 000000000000..c9174c9c4a38 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java @@ -0,0 +1,180 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +public interface ChannelGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name for this Channel Group resource.
+   * Format: properties/{property}/channelGroups/{channel_group}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name for this Channel Group resource.
+   * Format: properties/{property}/channelGroups/{channel_group}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The display name of the Channel Group. Max length of 80
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. The display name of the Channel Group. Max length of 80
+   * characters.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The description of the Channel Group. Max length of 256 characters.
+   * 
+ * + * string description = 3; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * The description of the Channel Group. Max length of 256 characters.
+   * 
+ * + * string description = 3; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getGroupingRuleList(); + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index); + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getGroupingRuleCount(); + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getGroupingRuleOrBuilderList(); + /** + * + * + *
+   * Required. The grouping rules of channels. Maximum number of rules is 25.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleOrBuilder(int index); + + /** + * + * + *
+   * Output only. Default Channel Group defined by Google, which cannot be
+   * updated.
+   * 
+ * + * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The systemDefined. + */ + boolean getSystemDefined(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupProto.java new file mode 100644 index 000000000000..6c1fd0b8e916 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupProto.java @@ -0,0 +1,190 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +public final class ChannelGroupProto { + private ChannelGroupProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n2google/analytics/admin/v1alpha/channel" + + "_group.proto\022\036google.analytics.admin.v1a" + + "lpha\032\037google/api/field_behavior.proto\032\031g" + + "oogle/api/resource.proto\"\255\004\n\022ChannelGrou" + + "pFilter\022X\n\rstring_filter\030\002 \001(\0132?.google." + + "analytics.admin.v1alpha.ChannelGroupFilt" + + "er.StringFilterH\000\022Y\n\016in_list_filter\030\003 \001(" + + "\0132?.google.analytics.admin.v1alpha.Chann" + + "elGroupFilter.InListFilterH\000\022\031\n\nfield_na" + + "me\030\001 \001(\tB\005\342A\002\002\005\032\220\002\n\014StringFilter\022c\n\nmatc" + + "h_type\030\001 \001(\0162I.google.analytics.admin.v1" + + "alpha.ChannelGroupFilter.StringFilter.Ma" + + "tchTypeB\004\342A\001\002\022\023\n\005value\030\002 \001(\tB\004\342A\001\002\"\205\001\n\tM" + + "atchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005" + + "EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022" + + "\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIA" + + "L_REGEXP\020\006\032$\n\014InListFilter\022\024\n\006values\030\001 \003" + + "(\tB\004\342A\001\002B\016\n\014value_filter\"\361\002\n\034ChannelGrou" + + "pFilterExpression\022U\n\tand_group\030\001 \001(\0132@.g" + + "oogle.analytics.admin.v1alpha.ChannelGro" + + "upFilterExpressionListH\000\022T\n\010or_group\030\002 \001" + + "(\0132@.google.analytics.admin.v1alpha.Chan" + + "nelGroupFilterExpressionListH\000\022V\n\016not_ex" + + "pression\030\003 \001(\0132<.google.analytics.admin." + + "v1alpha.ChannelGroupFilterExpressionH\000\022D" + + "\n\006filter\030\004 \001(\01322.google.analytics.admin." + + "v1alpha.ChannelGroupFilterH\000B\006\n\004expr\"|\n " + + "ChannelGroupFilterExpressionList\022X\n\022filt" + + "er_expressions\030\001 \003(\0132<.google.analytics." + + "admin.v1alpha.ChannelGroupFilterExpressi" + + "on\"\202\001\n\014GroupingRule\022\032\n\014display_name\030\001 \001(" + + "\tB\004\342A\001\002\022V\n\nexpression\030\002 \001(\0132<.google.ana" + + "lytics.admin.v1alpha.ChannelGroupFilterE" + + "xpressionB\004\342A\001\002\"\242\002\n\014ChannelGroup\022\022\n\004name" + + "\030\001 \001(\tB\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002" + + "\022\023\n\013description\030\003 \001(\t\022I\n\rgrouping_rule\030\004" + + " \003(\0132,.google.analytics.admin.v1alpha.Gr" + + "oupingRuleB\004\342A\001\002\022\034\n\016system_defined\030\005 \001(\010" + + "B\004\342A\001\003:d\352Aa\n*analyticsadmin.googleapis.c" + + "om/ChannelGroup\0223properties/{property}/c" + + "hannelGroups/{channel_group}By\n\"com.goog" + + "le.analytics.admin.v1alphaB\021ChannelGroup" + + "ProtoP\001Z>cloud.google.com/go/analytics/a" + + "dmin/apiv1alpha/adminpb;adminpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor, + new java.lang.String[] { + "StringFilter", "InListFilter", "FieldName", "ValueFilter", + }); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", + }); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor, + new java.lang.String[] { + "Values", + }); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "Filter", "Expr", + }); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor, + new java.lang.String[] { + "FilterExpressions", + }); + internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor, + new java.lang.String[] { + "DisplayName", "Expression", + }); + internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "Description", "GroupingRule", "SystemDefined", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CoarseValue.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CoarseValue.java new file mode 100644 index 000000000000..04f664e2f5bd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CoarseValue.java @@ -0,0 +1,201 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The coarse conversion value set on the updatePostbackConversionValue SDK call
+ * when a ConversionValues.event_mappings conditions are satisfied. For
+ * more information, see
+ * [SKAdNetwork.CoarseConversionValue](https://developer.apple.com/documentation/storekit/skadnetwork/coarseconversionvalue).
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CoarseValue} + */ +public enum CoarseValue implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Coarse value not specified.
+   * 
+ * + * COARSE_VALUE_UNSPECIFIED = 0; + */ + COARSE_VALUE_UNSPECIFIED(0), + /** + * + * + *
+   * Coarse value of low.
+   * 
+ * + * COARSE_VALUE_LOW = 1; + */ + COARSE_VALUE_LOW(1), + /** + * + * + *
+   * Coarse value of medium.
+   * 
+ * + * COARSE_VALUE_MEDIUM = 2; + */ + COARSE_VALUE_MEDIUM(2), + /** + * + * + *
+   * Coarse value of high.
+   * 
+ * + * COARSE_VALUE_HIGH = 3; + */ + COARSE_VALUE_HIGH(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Coarse value not specified.
+   * 
+ * + * COARSE_VALUE_UNSPECIFIED = 0; + */ + public static final int COARSE_VALUE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Coarse value of low.
+   * 
+ * + * COARSE_VALUE_LOW = 1; + */ + public static final int COARSE_VALUE_LOW_VALUE = 1; + /** + * + * + *
+   * Coarse value of medium.
+   * 
+ * + * COARSE_VALUE_MEDIUM = 2; + */ + public static final int COARSE_VALUE_MEDIUM_VALUE = 2; + /** + * + * + *
+   * Coarse value of high.
+   * 
+ * + * COARSE_VALUE_HIGH = 3; + */ + public static final int COARSE_VALUE_HIGH_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 CoarseValue 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 CoarseValue forNumber(int value) { + switch (value) { + case 0: + return COARSE_VALUE_UNSPECIFIED; + case 1: + return COARSE_VALUE_LOW; + case 2: + return COARSE_VALUE_MEDIUM; + case 3: + return COARSE_VALUE_HIGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public CoarseValue findValueByNumber(int number) { + return CoarseValue.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(10); + } + + private static final CoarseValue[] VALUES = values(); + + public static CoarseValue valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private CoarseValue(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CoarseValue) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTag.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTag.java new file mode 100644 index 000000000000..0833cc14878e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTag.java @@ -0,0 +1,820 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Configuration for a specific Connected Site Tag.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConnectedSiteTag} + */ +public final class ConnectedSiteTag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConnectedSiteTag) + ConnectedSiteTagOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConnectedSiteTag.newBuilder() to construct. + private ConnectedSiteTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConnectedSiteTag() { + displayName_ = ""; + tagId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConnectedSiteTag(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConnectedSiteTag.class, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. User-provided display name for the connected site tag. Must be
+   * less than 256 characters.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. User-provided display name for the connected site tag. Must be
+   * less than 256 characters.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tagId_ = ""; + /** + * + * + *
+   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+   * or the "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tagId. + */ + @java.lang.Override + public java.lang.String getTagId() { + java.lang.Object ref = tagId_; + 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(); + tagId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+   * or the "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tagId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTagIdBytes() { + java.lang.Object ref = tagId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tagId_ = 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagId_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagId_); + } + 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.admin.v1alpha.ConnectedSiteTag)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ConnectedSiteTag other = + (com.google.analytics.admin.v1alpha.ConnectedSiteTag) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getTagId().equals(other.getTagId())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + TAG_ID_FIELD_NUMBER; + hash = (53 * hash) + getTagId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.ConnectedSiteTag 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; + } + /** + * + * + *
+   * Configuration for a specific Connected Site Tag.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConnectedSiteTag} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConnectedSiteTag) + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConnectedSiteTag.class, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ConnectedSiteTag.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + tagId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTag getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTag build() { + com.google.analytics.admin.v1alpha.ConnectedSiteTag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTag buildPartial() { + com.google.analytics.admin.v1alpha.ConnectedSiteTag result = + new com.google.analytics.admin.v1alpha.ConnectedSiteTag(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ConnectedSiteTag result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tagId_ = tagId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ConnectedSiteTag) { + return mergeFrom((com.google.analytics.admin.v1alpha.ConnectedSiteTag) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConnectedSiteTag other) { + if (other == com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTagId().isEmpty()) { + tagId_ = other.tagId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tagId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. User-provided display name for the connected site tag. Must be
+     * less than 256 characters.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. User-provided display name for the connected site tag. Must be
+     * less than 256 characters.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. User-provided display name for the connected site tag. Must be
+     * less than 256 characters.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User-provided display name for the connected site tag. Must be
+     * less than 256 characters.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. User-provided display name for the connected site tag. Must be
+     * less than 256 characters.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tagId_ = ""; + /** + * + * + *
+     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+     * or the "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tagId. + */ + public java.lang.String getTagId() { + java.lang.Object ref = tagId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+     * or the "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tagId. + */ + public com.google.protobuf.ByteString getTagIdBytes() { + java.lang.Object ref = tagId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tagId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+     * or the "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The tagId to set. + * @return This builder for chaining. + */ + public Builder setTagId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tagId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+     * or the "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTagId() { + tagId_ = getDefaultInstance().getTagId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+     * or the "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for tagId to set. + * @return This builder for chaining. + */ + public Builder setTagIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tagId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ConnectedSiteTag) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConnectedSiteTag) + private static final com.google.analytics.admin.v1alpha.ConnectedSiteTag DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ConnectedSiteTag(); + } + + public static com.google.analytics.admin.v1alpha.ConnectedSiteTag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectedSiteTag parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTagOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTagOrBuilder.java new file mode 100644 index 000000000000..fb4c75760021 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTagOrBuilder.java @@ -0,0 +1,79 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface ConnectedSiteTagOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConnectedSiteTag) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. User-provided display name for the connected site tag. Must be
+   * less than 256 characters.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. User-provided display name for the connected site tag. Must be
+   * less than 256 characters.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+   * or the "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The tagId. + */ + java.lang.String getTagId(); + /** + * + * + *
+   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
+   * or the "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for tagId. + */ + com.google.protobuf.ByteString getTagIdBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java new file mode 100644 index 000000000000..bd1eac10cc75 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -0,0 +1,1667 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A conversion event in a Google Analytics property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} + */ +public final class ConversionEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConversionEvent) + ConversionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionEvent.newBuilder() to construct. + private ConversionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversionEvent() { + name_ = ""; + eventName_ = ""; + countingMethod_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversionEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.class, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); + } + + /** + * + * + *
+   * The method by which conversions will be counted across multiple events
+   * within a session.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod} + */ + public enum ConversionCountingMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Counting method not specified.
+     * 
+ * + * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + */ + CONVERSION_COUNTING_METHOD_UNSPECIFIED(0), + /** + * + * + *
+     * Each Event instance is considered a Conversion.
+     * 
+ * + * ONCE_PER_EVENT = 1; + */ + ONCE_PER_EVENT(1), + /** + * + * + *
+     * An Event instance is considered a Conversion at most once per session per
+     * user.
+     * 
+ * + * ONCE_PER_SESSION = 2; + */ + ONCE_PER_SESSION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Counting method not specified.
+     * 
+ * + * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + */ + public static final int CONVERSION_COUNTING_METHOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Each Event instance is considered a Conversion.
+     * 
+ * + * ONCE_PER_EVENT = 1; + */ + public static final int ONCE_PER_EVENT_VALUE = 1; + /** + * + * + *
+     * An Event instance is considered a Conversion at most once per session per
+     * user.
+     * 
+ * + * ONCE_PER_SESSION = 2; + */ + public static final int ONCE_PER_SESSION_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConversionCountingMethod 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 ConversionCountingMethod forNumber(int value) { + switch (value) { + case 0: + return CONVERSION_COUNTING_METHOD_UNSPECIFIED; + case 1: + return ONCE_PER_EVENT; + case 2: + return ONCE_PER_SESSION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConversionCountingMethod findValueByNumber(int number) { + return ConversionCountingMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ConversionEvent.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConversionCountingMethod[] VALUES = values(); + + public static ConversionCountingMethod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConversionCountingMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventName_ = ""; + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + 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(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int DELETABLE_FIELD_NUMBER = 4; + private boolean deletable_ = false; + /** + * + * + *
+   * Output only. If set, this event can currently be deleted with
+   * DeleteConversionEvent.
+   * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + @java.lang.Override + public boolean getDeletable() { + return deletable_; + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private boolean custom_ = false; + /** + * + * + *
+   * Output only. If set to true, this conversion event refers to a custom
+   * event.  If set to false, this conversion event refers to a default event in
+   * GA. Default events typically have special meaning in GA. Default events are
+   * usually created for you by the GA system, but in some cases can be created
+   * by property admins. Custom events count towards the maximum number of
+   * custom conversion events that may be created per property.
+   * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + @java.lang.Override + public boolean getCustom() { + return custom_; + } + + public static final int COUNTING_METHOD_FIELD_NUMBER = 6; + private int countingMethod_ = 0; + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + @java.lang.Override + public int getCountingMethodValue() { + return countingMethod_; + } + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The countingMethod. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod + getCountingMethod() { + com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod result = + com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.forNumber( + countingMethod_); + return result == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (deletable_ != false) { + output.writeBool(4, deletable_); + } + if (custom_ != false) { + output.writeBool(5, custom_); + } + if (countingMethod_ + != com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod + .CONVERSION_COUNTING_METHOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, countingMethod_); + } + 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(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (deletable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, deletable_); + } + if (custom_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, custom_); + } + if (countingMethod_ + != com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod + .CONVERSION_COUNTING_METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, countingMethod_); + } + 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.admin.v1alpha.ConversionEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ConversionEvent other = + (com.google.analytics.admin.v1alpha.ConversionEvent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEventName().equals(other.getEventName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getDeletable() != other.getDeletable()) return false; + if (getCustom() != other.getCustom()) return false; + if (countingMethod_ != other.countingMethod_) 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) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + DELETABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletable()); + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustom()); + hash = (37 * hash) + COUNTING_METHOD_FIELD_NUMBER; + hash = (53 * hash) + countingMethod_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.ConversionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A conversion event in a Google Analytics property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConversionEvent) + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.class, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + eventName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + deletable_ = false; + custom_ = false; + countingMethod_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent build() { + com.google.analytics.admin.v1alpha.ConversionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent buildPartial() { + com.google.analytics.admin.v1alpha.ConversionEvent result = + new com.google.analytics.admin.v1alpha.ConversionEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ConversionEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventName_ = eventName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deletable_ = deletable_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.custom_ = custom_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.countingMethod_ = countingMethod_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ConversionEvent) { + return mergeFrom((com.google.analytics.admin.v1alpha.ConversionEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionEvent other) { + if (other == com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getDeletable() != false) { + setDeletable(other.getDeletable()); + } + if (other.getCustom() != false) { + setCustom(other.getCustom()); + } + if (other.countingMethod_ != 0) { + setCountingMethodValue(other.getCountingMethodValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + deletable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + custom_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + countingMethod_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.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. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + eventName_ = getDefaultInstance().getEventName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private boolean deletable_; + /** + * + * + *
+     * Output only. If set, this event can currently be deleted with
+     * DeleteConversionEvent.
+     * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + @java.lang.Override + public boolean getDeletable() { + return deletable_; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted with
+     * DeleteConversionEvent.
+     * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deletable to set. + * @return This builder for chaining. + */ + public Builder setDeletable(boolean value) { + + deletable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted with
+     * DeleteConversionEvent.
+     * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeletable() { + bitField0_ = (bitField0_ & ~0x00000008); + deletable_ = false; + onChanged(); + return this; + } + + private boolean custom_; + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom
+     * event.  If set to false, this conversion event refers to a default event in
+     * GA. Default events typically have special meaning in GA. Default events are
+     * usually created for you by the GA system, but in some cases can be created
+     * by property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + @java.lang.Override + public boolean getCustom() { + return custom_; + } + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom
+     * event.  If set to false, this conversion event refers to a default event in
+     * GA. Default events typically have special meaning in GA. Default events are
+     * usually created for you by the GA system, but in some cases can be created
+     * by property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The custom to set. + * @return This builder for chaining. + */ + public Builder setCustom(boolean value) { + + custom_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom
+     * event.  If set to false, this conversion event refers to a default event in
+     * GA. Default events typically have special meaning in GA. Default events are
+     * usually created for you by the GA system, but in some cases can be created
+     * by property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCustom() { + bitField0_ = (bitField0_ & ~0x00000010); + custom_ = false; + onChanged(); + return this; + } + + private int countingMethod_ = 0; + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + @java.lang.Override + public int getCountingMethodValue() { + return countingMethod_; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for countingMethod to set. + * @return This builder for chaining. + */ + public Builder setCountingMethodValue(int value) { + countingMethod_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The countingMethod. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod + getCountingMethod() { + com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod result = + com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.forNumber( + countingMethod_); + return result == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The countingMethod to set. + * @return This builder for chaining. + */ + public Builder setCountingMethod( + com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + countingMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCountingMethod() { + bitField0_ = (bitField0_ & ~0x00000020); + countingMethod_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ConversionEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConversionEvent) + private static final com.google.analytics.admin.v1alpha.ConversionEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ConversionEvent(); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java new file mode 100644 index 000000000000..6a162bc4f595 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface ConversionEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConversionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. If set, this event can currently be deleted with
+   * DeleteConversionEvent.
+   * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + boolean getDeletable(); + + /** + * + * + *
+   * Output only. If set to true, this conversion event refers to a custom
+   * event.  If set to false, this conversion event refers to a default event in
+   * GA. Default events typically have special meaning in GA. Default events are
+   * usually created for you by the GA system, but in some cases can be created
+   * by property admins. Custom events count towards the maximum number of
+   * custom conversion events that may be created per property.
+   * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + boolean getCustom(); + + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + int getCountingMethodValue(); + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The countingMethod. + */ + com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod getCountingMethod(); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValues.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValues.java similarity index 76% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValues.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValues.java index 9399bcb5dba2..232621fe001a 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValues.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValues.java @@ -1,9 +1,26 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; /** + * + * *
  * Conversion value settings for a postback window for SKAdNetwork conversion
  * value schema.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.analytics.admin.v1alpha.ConversionValues}
  */
-public final class ConversionValues extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ConversionValues extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConversionValues)
     ConversionValuesOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ConversionValues.newBuilder() to construct.
   private ConversionValues(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ConversionValues() {
     displayName_ = "";
     coarseValue_ = 0;
@@ -28,35 +46,40 @@ private ConversionValues() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ConversionValues();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.analytics.admin.v1alpha.ResourcesProto
+        .internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable
+    return com.google.analytics.admin.v1alpha.ResourcesProto
+        .internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.analytics.admin.v1alpha.ConversionValues.class, com.google.analytics.admin.v1alpha.ConversionValues.Builder.class);
+            com.google.analytics.admin.v1alpha.ConversionValues.class,
+            com.google.analytics.admin.v1alpha.ConversionValues.Builder.class);
   }
 
   private int bitField0_;
   public static final int DISPLAY_NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object displayName_ = "";
   /**
+   *
+   *
    * 
    * Display name of the SKAdNetwork conversion value.
    * The max allowed display name length is 50 UTF-16 code units.
    * 
* * string display_name = 1; + * * @return The displayName. */ @java.lang.Override @@ -65,30 +88,30 @@ public java.lang.String getDisplayName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } } /** + * + * *
    * Display name of the SKAdNetwork conversion value.
    * The max allowed display name length is 50 UTF-16 code units.
    * 
* * string display_name = 1; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -99,6 +122,8 @@ public java.lang.String getDisplayName() { public static final int FINE_VALUE_FIELD_NUMBER = 2; private int fineValue_ = 0; /** + * + * *
    * The fine-grained conversion value.  This is applicable only to the first
    * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -110,6 +135,7 @@ public java.lang.String getDisplayName() {
    * 
* * optional int32 fine_value = 2; + * * @return Whether the fineValue field is set. */ @java.lang.Override @@ -117,6 +143,8 @@ public boolean hasFineValue() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
    * The fine-grained conversion value.  This is applicable only to the first
    * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -128,6 +156,7 @@ public boolean hasFineValue() {
    * 
* * optional int32 fine_value = 2; + * * @return The fineValue. */ @java.lang.Override @@ -138,37 +167,53 @@ public int getFineValue() { public static final int COARSE_VALUE_FIELD_NUMBER = 3; private int coarseValue_ = 0; /** + * + * *
    * Required. A coarse grained conversion value.
    *
    * This value is not guaranteed to be unique.
    * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for coarseValue. */ - @java.lang.Override public int getCoarseValueValue() { + @java.lang.Override + public int getCoarseValueValue() { return coarseValue_; } /** + * + * *
    * Required. A coarse grained conversion value.
    *
    * This value is not guaranteed to be unique.
    * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The coarseValue. */ - @java.lang.Override public com.google.analytics.admin.v1alpha.CoarseValue getCoarseValue() { - com.google.analytics.admin.v1alpha.CoarseValue result = com.google.analytics.admin.v1alpha.CoarseValue.forNumber(coarseValue_); + @java.lang.Override + public com.google.analytics.admin.v1alpha.CoarseValue getCoarseValue() { + com.google.analytics.admin.v1alpha.CoarseValue result = + com.google.analytics.admin.v1alpha.CoarseValue.forNumber(coarseValue_); return result == null ? com.google.analytics.admin.v1alpha.CoarseValue.UNRECOGNIZED : result; } public static final int EVENT_MAPPINGS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") private java.util.List eventMappings_; /** + * + * *
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -182,6 +227,8 @@ public java.util.List getEventM
     return eventMappings_;
   }
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -191,11 +238,13 @@ public java.util.List getEventM
    * repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getEventMappingsOrBuilderList() {
     return eventMappings_;
   }
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -209,6 +258,8 @@ public int getEventMappingsCount() {
     return eventMappings_.size();
   }
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -222,6 +273,8 @@ public com.google.analytics.admin.v1alpha.EventMapping getEventMappings(int inde
     return eventMappings_.get(index);
   }
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -239,12 +292,15 @@ public com.google.analytics.admin.v1alpha.EventMappingOrBuilder getEventMappings
   public static final int LOCK_ENABLED_FIELD_NUMBER = 5;
   private boolean lockEnabled_ = false;
   /**
+   *
+   *
    * 
    * If true, the SDK should lock to this conversion value for the current
    * postback window.
    * 
* * bool lock_enabled = 5; + * * @return The lockEnabled. */ @java.lang.Override @@ -253,6 +309,7 @@ public boolean getLockEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,15 +321,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(2, fineValue_); } - if (coarseValue_ != com.google.analytics.admin.v1alpha.CoarseValue.COARSE_VALUE_UNSPECIFIED.getNumber()) { + if (coarseValue_ + != com.google.analytics.admin.v1alpha.CoarseValue.COARSE_VALUE_UNSPECIFIED.getNumber()) { output.writeEnum(3, coarseValue_); } for (int i = 0; i < eventMappings_.size(); i++) { @@ -294,20 +351,17 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, fineValue_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, fineValue_); } - if (coarseValue_ != com.google.analytics.admin.v1alpha.CoarseValue.COARSE_VALUE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, coarseValue_); + if (coarseValue_ + != com.google.analytics.admin.v1alpha.CoarseValue.COARSE_VALUE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, coarseValue_); } for (int i = 0; i < eventMappings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, eventMappings_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, eventMappings_.get(i)); } if (lockEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, lockEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, lockEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -317,25 +371,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.analytics.admin.v1alpha.ConversionValues)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.ConversionValues other = (com.google.analytics.admin.v1alpha.ConversionValues) obj; + com.google.analytics.admin.v1alpha.ConversionValues other = + (com.google.analytics.admin.v1alpha.ConversionValues) obj; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (hasFineValue() != other.hasFineValue()) return false; if (hasFineValue()) { - if (getFineValue() - != other.getFineValue()) return false; + if (getFineValue() != other.getFineValue()) return false; } if (coarseValue_ != other.coarseValue_) return false; - if (!getEventMappingsList() - .equals(other.getEventMappingsList())) return false; - if (getLockEnabled() - != other.getLockEnabled()) return false; + if (!getEventMappingsList().equals(other.getEventMappingsList())) return false; + if (getLockEnabled() != other.getLockEnabled()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -360,106 +411,110 @@ public int hashCode() { hash = (53 * hash) + getEventMappingsList().hashCode(); } hash = (37 * hash) + LOCK_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getLockEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLockEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.ConversionValues parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.analytics.admin.v1alpha.ConversionValues parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.analytics.admin.v1alpha.ConversionValues parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.analytics.admin.v1alpha.ConversionValues parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.analytics.admin.v1alpha.ConversionValues prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Conversion value settings for a postback window for SKAdNetwork conversion
    * value schema.
@@ -467,33 +522,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.analytics.admin.v1alpha.ConversionValues}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConversionValues)
       com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.analytics.admin.v1alpha.ResourcesProto
+          .internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable
+      return com.google.analytics.admin.v1alpha.ResourcesProto
+          .internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.analytics.admin.v1alpha.ConversionValues.class, com.google.analytics.admin.v1alpha.ConversionValues.Builder.class);
+              com.google.analytics.admin.v1alpha.ConversionValues.class,
+              com.google.analytics.admin.v1alpha.ConversionValues.Builder.class);
     }
 
     // Construct using com.google.analytics.admin.v1alpha.ConversionValues.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -513,9 +567,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.analytics.admin.v1alpha.ResourcesProto
+          .internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor;
     }
 
     @java.lang.Override
@@ -534,14 +588,18 @@ public com.google.analytics.admin.v1alpha.ConversionValues build() {
 
     @java.lang.Override
     public com.google.analytics.admin.v1alpha.ConversionValues buildPartial() {
-      com.google.analytics.admin.v1alpha.ConversionValues result = new com.google.analytics.admin.v1alpha.ConversionValues(this);
+      com.google.analytics.admin.v1alpha.ConversionValues result =
+          new com.google.analytics.admin.v1alpha.ConversionValues(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ConversionValues result) {
+    private void buildPartialRepeatedFields(
+        com.google.analytics.admin.v1alpha.ConversionValues result) {
       if (eventMappingsBuilder_ == null) {
         if (((bitField0_ & 0x00000008) != 0)) {
           eventMappings_ = java.util.Collections.unmodifiableList(eventMappings_);
@@ -576,38 +634,39 @@ private void buildPartial0(com.google.analytics.admin.v1alpha.ConversionValues r
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.analytics.admin.v1alpha.ConversionValues) {
-        return mergeFrom((com.google.analytics.admin.v1alpha.ConversionValues)other);
+        return mergeFrom((com.google.analytics.admin.v1alpha.ConversionValues) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -615,7 +674,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionValues other) {
-      if (other == com.google.analytics.admin.v1alpha.ConversionValues.getDefaultInstance()) return this;
+      if (other == com.google.analytics.admin.v1alpha.ConversionValues.getDefaultInstance())
+        return this;
       if (!other.getDisplayName().isEmpty()) {
         displayName_ = other.displayName_;
         bitField0_ |= 0x00000001;
@@ -645,9 +705,10 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionValues oth
             eventMappingsBuilder_ = null;
             eventMappings_ = other.eventMappings_;
             bitField0_ = (bitField0_ & ~0x00000008);
-            eventMappingsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getEventMappingsFieldBuilder() : null;
+            eventMappingsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getEventMappingsFieldBuilder()
+                    : null;
           } else {
             eventMappingsBuilder_.addAllMessages(other.eventMappings_);
           }
@@ -682,45 +743,51 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              displayName_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              fineValue_ = input.readInt32();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              coarseValue_ = input.readEnum();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 34: {
-              com.google.analytics.admin.v1alpha.EventMapping m =
-                  input.readMessage(
-                      com.google.analytics.admin.v1alpha.EventMapping.parser(),
-                      extensionRegistry);
-              if (eventMappingsBuilder_ == null) {
-                ensureEventMappingsIsMutable();
-                eventMappings_.add(m);
-              } else {
-                eventMappingsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 34
-            case 40: {
-              lockEnabled_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                displayName_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                fineValue_ = input.readInt32();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                coarseValue_ = input.readEnum();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 34:
+              {
+                com.google.analytics.admin.v1alpha.EventMapping m =
+                    input.readMessage(
+                        com.google.analytics.admin.v1alpha.EventMapping.parser(),
+                        extensionRegistry);
+                if (eventMappingsBuilder_ == null) {
+                  ensureEventMappingsIsMutable();
+                  eventMappings_.add(m);
+                } else {
+                  eventMappingsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 34
+            case 40:
+              {
+                lockEnabled_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -730,23 +797,26 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object displayName_ = "";
     /**
+     *
+     *
      * 
      * Display name of the SKAdNetwork conversion value.
      * The max allowed display name length is 50 UTF-16 code units.
      * 
* * string display_name = 1; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; @@ -755,21 +825,22 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Display name of the SKAdNetwork conversion value.
      * The max allowed display name length is 50 UTF-16 code units.
      * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { @@ -777,30 +848,37 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * Display name of the SKAdNetwork conversion value.
      * The max allowed display name length is 50 UTF-16 code units.
      * 
* * string display_name = 1; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Display name of the SKAdNetwork conversion value.
      * The max allowed display name length is 50 UTF-16 code units.
      * 
* * string display_name = 1; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -810,18 +888,22 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * Display name of the SKAdNetwork conversion value.
      * The max allowed display name length is 50 UTF-16 code units.
      * 
* * string display_name = 1; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000001; @@ -829,8 +911,10 @@ public Builder setDisplayNameBytes( return this; } - private int fineValue_ ; + private int fineValue_; /** + * + * *
      * The fine-grained conversion value.  This is applicable only to the first
      * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -842,6 +926,7 @@ public Builder setDisplayNameBytes(
      * 
* * optional int32 fine_value = 2; + * * @return Whether the fineValue field is set. */ @java.lang.Override @@ -849,6 +934,8 @@ public boolean hasFineValue() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The fine-grained conversion value.  This is applicable only to the first
      * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -860,6 +947,7 @@ public boolean hasFineValue() {
      * 
* * optional int32 fine_value = 2; + * * @return The fineValue. */ @java.lang.Override @@ -867,6 +955,8 @@ public int getFineValue() { return fineValue_; } /** + * + * *
      * The fine-grained conversion value.  This is applicable only to the first
      * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -878,6 +968,7 @@ public int getFineValue() {
      * 
* * optional int32 fine_value = 2; + * * @param value The fineValue to set. * @return This builder for chaining. */ @@ -889,6 +980,8 @@ public Builder setFineValue(int value) { return this; } /** + * + * *
      * The fine-grained conversion value.  This is applicable only to the first
      * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -900,6 +993,7 @@ public Builder setFineValue(int value) {
      * 
* * optional int32 fine_value = 2; + * * @return This builder for chaining. */ public Builder clearFineValue() { @@ -911,26 +1005,37 @@ public Builder clearFineValue() { private int coarseValue_ = 0; /** + * + * *
      * Required. A coarse grained conversion value.
      *
      * This value is not guaranteed to be unique.
      * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for coarseValue. */ - @java.lang.Override public int getCoarseValueValue() { + @java.lang.Override + public int getCoarseValueValue() { return coarseValue_; } /** + * + * *
      * Required. A coarse grained conversion value.
      *
      * This value is not guaranteed to be unique.
      * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for coarseValue to set. * @return This builder for chaining. */ @@ -941,28 +1046,39 @@ public Builder setCoarseValueValue(int value) { return this; } /** + * + * *
      * Required. A coarse grained conversion value.
      *
      * This value is not guaranteed to be unique.
      * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The coarseValue. */ @java.lang.Override public com.google.analytics.admin.v1alpha.CoarseValue getCoarseValue() { - com.google.analytics.admin.v1alpha.CoarseValue result = com.google.analytics.admin.v1alpha.CoarseValue.forNumber(coarseValue_); + com.google.analytics.admin.v1alpha.CoarseValue result = + com.google.analytics.admin.v1alpha.CoarseValue.forNumber(coarseValue_); return result == null ? com.google.analytics.admin.v1alpha.CoarseValue.UNRECOGNIZED : result; } /** + * + * *
      * Required. A coarse grained conversion value.
      *
      * This value is not guaranteed to be unique.
      * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The coarseValue to set. * @return This builder for chaining. */ @@ -976,13 +1092,18 @@ public Builder setCoarseValue(com.google.analytics.admin.v1alpha.CoarseValue val return this; } /** + * + * *
      * Required. A coarse grained conversion value.
      *
      * This value is not guaranteed to be unique.
      * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearCoarseValue() { @@ -993,18 +1114,26 @@ public Builder clearCoarseValue() { } private java.util.List eventMappings_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureEventMappingsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { - eventMappings_ = new java.util.ArrayList(eventMappings_); + eventMappings_ = + new java.util.ArrayList( + eventMappings_); bitField0_ |= 0x00000008; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventMapping, com.google.analytics.admin.v1alpha.EventMapping.Builder, com.google.analytics.admin.v1alpha.EventMappingOrBuilder> eventMappingsBuilder_; + com.google.analytics.admin.v1alpha.EventMapping, + com.google.analytics.admin.v1alpha.EventMapping.Builder, + com.google.analytics.admin.v1alpha.EventMappingOrBuilder> + eventMappingsBuilder_; /** + * + * *
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1021,6 +1150,8 @@ public java.util.List getEventM
       }
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1037,6 +1168,8 @@ public int getEventMappingsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1053,6 +1186,8 @@ public com.google.analytics.admin.v1alpha.EventMapping getEventMappings(int inde
       }
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1076,6 +1211,8 @@ public Builder setEventMappings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1096,6 +1233,8 @@ public Builder setEventMappings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1118,6 +1257,8 @@ public Builder addEventMappings(com.google.analytics.admin.v1alpha.EventMapping
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1141,6 +1282,8 @@ public Builder addEventMappings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1161,6 +1304,8 @@ public Builder addEventMappings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1181,6 +1326,8 @@ public Builder addEventMappings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1193,8 +1340,7 @@ public Builder addAllEventMappings(
         java.lang.Iterable values) {
       if (eventMappingsBuilder_ == null) {
         ensureEventMappingsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, eventMappings_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventMappings_);
         onChanged();
       } else {
         eventMappingsBuilder_.addAllMessages(values);
@@ -1202,6 +1348,8 @@ public Builder addAllEventMappings(
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1221,6 +1369,8 @@ public Builder clearEventMappings() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1240,6 +1390,8 @@ public Builder removeEventMappings(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1253,6 +1405,8 @@ public com.google.analytics.admin.v1alpha.EventMapping.Builder getEventMappingsB
       return getEventMappingsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1264,11 +1418,14 @@ public com.google.analytics.admin.v1alpha.EventMapping.Builder getEventMappingsB
     public com.google.analytics.admin.v1alpha.EventMappingOrBuilder getEventMappingsOrBuilder(
         int index) {
       if (eventMappingsBuilder_ == null) {
-        return eventMappings_.get(index);  } else {
+        return eventMappings_.get(index);
+      } else {
         return eventMappingsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1277,8 +1434,8 @@ public com.google.analytics.admin.v1alpha.EventMappingOrBuilder getEventMappings
      *
      * repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      */
-    public java.util.List 
-         getEventMappingsOrBuilderList() {
+    public java.util.List
+        getEventMappingsOrBuilderList() {
       if (eventMappingsBuilder_ != null) {
         return eventMappingsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1286,6 +1443,8 @@ public com.google.analytics.admin.v1alpha.EventMappingOrBuilder getEventMappings
       }
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1295,10 +1454,12 @@ public com.google.analytics.admin.v1alpha.EventMappingOrBuilder getEventMappings
      * repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      */
     public com.google.analytics.admin.v1alpha.EventMapping.Builder addEventMappingsBuilder() {
-      return getEventMappingsFieldBuilder().addBuilder(
-          com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance());
+      return getEventMappingsFieldBuilder()
+          .addBuilder(com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1309,10 +1470,12 @@ public com.google.analytics.admin.v1alpha.EventMapping.Builder addEventMappingsB
      */
     public com.google.analytics.admin.v1alpha.EventMapping.Builder addEventMappingsBuilder(
         int index) {
-      return getEventMappingsFieldBuilder().addBuilder(
-          index, com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance());
+      return getEventMappingsFieldBuilder()
+          .addBuilder(index, com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Event conditions that must be met for this Conversion Value to be achieved.
      * The conditions in this list are ANDed together. It must have minimum of 1
@@ -1321,16 +1484,22 @@ public com.google.analytics.admin.v1alpha.EventMapping.Builder addEventMappingsB
      *
      * repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
      */
-    public java.util.List 
-         getEventMappingsBuilderList() {
+    public java.util.List
+        getEventMappingsBuilderList() {
       return getEventMappingsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.analytics.admin.v1alpha.EventMapping, com.google.analytics.admin.v1alpha.EventMapping.Builder, com.google.analytics.admin.v1alpha.EventMappingOrBuilder> 
+            com.google.analytics.admin.v1alpha.EventMapping,
+            com.google.analytics.admin.v1alpha.EventMapping.Builder,
+            com.google.analytics.admin.v1alpha.EventMappingOrBuilder>
         getEventMappingsFieldBuilder() {
       if (eventMappingsBuilder_ == null) {
-        eventMappingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.analytics.admin.v1alpha.EventMapping, com.google.analytics.admin.v1alpha.EventMapping.Builder, com.google.analytics.admin.v1alpha.EventMappingOrBuilder>(
+        eventMappingsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.analytics.admin.v1alpha.EventMapping,
+                com.google.analytics.admin.v1alpha.EventMapping.Builder,
+                com.google.analytics.admin.v1alpha.EventMappingOrBuilder>(
                 eventMappings_,
                 ((bitField0_ & 0x00000008) != 0),
                 getParentForChildren(),
@@ -1340,14 +1509,17 @@ public com.google.analytics.admin.v1alpha.EventMapping.Builder addEventMappingsB
       return eventMappingsBuilder_;
     }
 
-    private boolean lockEnabled_ ;
+    private boolean lockEnabled_;
     /**
+     *
+     *
      * 
      * If true, the SDK should lock to this conversion value for the current
      * postback window.
      * 
* * bool lock_enabled = 5; + * * @return The lockEnabled. */ @java.lang.Override @@ -1355,12 +1527,15 @@ public boolean getLockEnabled() { return lockEnabled_; } /** + * + * *
      * If true, the SDK should lock to this conversion value for the current
      * postback window.
      * 
* * bool lock_enabled = 5; + * * @param value The lockEnabled to set. * @return This builder for chaining. */ @@ -1372,12 +1547,15 @@ public Builder setLockEnabled(boolean value) { return this; } /** + * + * *
      * If true, the SDK should lock to this conversion value for the current
      * postback window.
      * 
* * bool lock_enabled = 5; + * * @return This builder for chaining. */ public Builder clearLockEnabled() { @@ -1386,9 +1564,9 @@ public Builder clearLockEnabled() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1398,12 +1576,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ConversionValues) } // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConversionValues) private static final com.google.analytics.admin.v1alpha.ConversionValues DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ConversionValues(); } @@ -1412,27 +1590,27 @@ public static com.google.analytics.admin.v1alpha.ConversionValues getDefaultInst return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversionValues parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionValues parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1447,6 +1625,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.analytics.admin.v1alpha.ConversionValues getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValuesOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValuesOrBuilder.java similarity index 80% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValuesOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValuesOrBuilder.java index 32019980a2e3..f7de8bfbdcb3 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValuesOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionValuesOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface ConversionValuesOrBuilder extends +public interface ConversionValuesOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConversionValues) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Display name of the SKAdNetwork conversion value.
    * The max allowed display name length is 50 UTF-16 code units.
    * 
* * string display_name = 1; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Display name of the SKAdNetwork conversion value.
    * The max allowed display name length is 50 UTF-16 code units.
    * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * The fine-grained conversion value.  This is applicable only to the first
    * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -41,10 +64,13 @@ public interface ConversionValuesOrBuilder extends
    * 
* * optional int32 fine_value = 2; + * * @return Whether the fineValue field is set. */ boolean hasFineValue(); /** + * + * *
    * The fine-grained conversion value.  This is applicable only to the first
    * postback window. Its valid values are [0,63], both inclusive. It must be
@@ -56,34 +82,47 @@ public interface ConversionValuesOrBuilder extends
    * 
* * optional int32 fine_value = 2; + * * @return The fineValue. */ int getFineValue(); /** + * + * *
    * Required. A coarse grained conversion value.
    *
    * This value is not guaranteed to be unique.
    * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for coarseValue. */ int getCoarseValueValue(); /** + * + * *
    * Required. A coarse grained conversion value.
    *
    * This value is not guaranteed to be unique.
    * 
* - * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.CoarseValue coarse_value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The coarseValue. */ com.google.analytics.admin.v1alpha.CoarseValue getCoarseValue(); /** + * + * *
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -92,9 +131,10 @@ public interface ConversionValuesOrBuilder extends
    *
    * repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    */
-  java.util.List 
-      getEventMappingsList();
+  java.util.List getEventMappingsList();
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -105,6 +145,8 @@ public interface ConversionValuesOrBuilder extends
    */
   com.google.analytics.admin.v1alpha.EventMapping getEventMappings(int index);
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -115,6 +157,8 @@ public interface ConversionValuesOrBuilder extends
    */
   int getEventMappingsCount();
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -123,9 +167,11 @@ public interface ConversionValuesOrBuilder extends
    *
    * repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    */
-  java.util.List 
+  java.util.List
       getEventMappingsOrBuilderList();
   /**
+   *
+   *
    * 
    * Event conditions that must be met for this Conversion Value to be achieved.
    * The conditions in this list are ANDed together. It must have minimum of 1
@@ -134,16 +180,18 @@ public interface ConversionValuesOrBuilder extends
    *
    * repeated .google.analytics.admin.v1alpha.EventMapping event_mappings = 4;
    */
-  com.google.analytics.admin.v1alpha.EventMappingOrBuilder getEventMappingsOrBuilder(
-      int index);
+  com.google.analytics.admin.v1alpha.EventMappingOrBuilder getEventMappingsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If true, the SDK should lock to this conversion value for the current
    * postback window.
    * 
* * bool lock_enabled = 5; + * * @return The lockEnabled. */ boolean getLockEnabled(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java new file mode 100644 index 000000000000..5589ab65ece9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java @@ -0,0 +1,948 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAccessBindingRequest} + */ +public final class CreateAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + CreateAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAccessBindingRequest.newBuilder() to construct. + private CreateAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAccessBindingRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAccessBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_BINDING_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + @java.lang.Override + public boolean hasAccessBinding() { + return accessBinding_ != null; + } + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (accessBinding_ != null) { + output.writeMessage(2, getAccessBinding()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (accessBinding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAccessBinding()); + } + 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.admin.v1alpha.CreateAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAccessBinding() != other.hasAccessBinding()) return false; + if (hasAccessBinding()) { + if (!getAccessBinding().equals(other.getAccessBinding())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasAccessBinding()) { + hash = (37 * hash) + ACCESS_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAccessBinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.CreateAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accessBinding_ = + accessBindingBuilder_ == null ? accessBinding_ : accessBindingBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAccessBinding()) { + mergeAccessBinding(other.getAccessBinding()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAccessBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingBuilder_; + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + public boolean hasAccessBinding() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + if (accessBindingBuilder_ == null) { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } else { + return accessBindingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessBinding_ = value; + } else { + accessBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingBuilder_ == null) { + accessBinding_ = builderForValue.build(); + } else { + accessBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && accessBinding_ != null + && accessBinding_ + != com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) { + getAccessBindingBuilder().mergeFrom(value); + } else { + accessBinding_ = value; + } + } else { + accessBindingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessBinding() { + bitField0_ = (bitField0_ & ~0x00000002); + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAccessBindingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + if (accessBindingBuilder_ != null) { + return accessBindingBuilder_.getMessageOrBuilder(); + } else { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + } + /** + * + * + *
+     * Required. The access binding to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingFieldBuilder() { + if (accessBindingBuilder_ == null) { + accessBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + getAccessBinding(), getParentForChildren(), isClean()); + accessBinding_ = null; + } + return accessBindingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.CreateAccessBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..7c35b7fed3ce --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + boolean hasAccessBinding(); + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding(); + /** + * + * + *
+   * Required. The access binding to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequest.java new file mode 100644 index 000000000000..cc80f85bc8ff --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequest.java @@ -0,0 +1,944 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message to be passed to CreateAdSenseLink method.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} + */ +public final class CreateAdSenseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) + CreateAdSenseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAdSenseLinkRequest.newBuilder() to construct. + private CreateAdSenseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAdSenseLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAdSenseLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The property for which to create an AdSense Link.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The property for which to create an AdSense Link.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADSENSE_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.AdSenseLink adsenseLink_; + /** + * + * + *
+   * Required. The AdSense Link to create
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adsenseLink field is set. + */ + @java.lang.Override + public boolean hasAdsenseLink() { + return adsenseLink_ != null; + } + /** + * + * + *
+   * Required. The AdSense Link to create
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adsenseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { + return adsenseLink_ == null + ? com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() + : adsenseLink_; + } + /** + * + * + *
+   * Required. The AdSense Link to create
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { + return adsenseLink_ == null + ? com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() + : adsenseLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (adsenseLink_ != null) { + output.writeMessage(2, getAdsenseLink()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (adsenseLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAdsenseLink()); + } + 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.admin.v1alpha.CreateAdSenseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest other = + (com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAdsenseLink() != other.hasAdsenseLink()) return false; + if (hasAdsenseLink()) { + if (!getAdsenseLink().equals(other.getAdsenseLink())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasAdsenseLink()) { + hash = (37 * hash) + ADSENSE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getAdsenseLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message to be passed to CreateAdSenseLink method.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + adsenseLink_ = null; + if (adsenseLinkBuilder_ != null) { + adsenseLinkBuilder_.dispose(); + adsenseLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest build() { + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest result = + new com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.adsenseLink_ = + adsenseLinkBuilder_ == null ? adsenseLink_ : adsenseLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAdsenseLink()) { + mergeAdsenseLink(other.getAdsenseLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAdsenseLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The property for which to create an AdSense Link.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The property for which to create an AdSense Link.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The property for which to create an AdSense Link.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to create an AdSense Link.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to create an AdSense Link.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AdSenseLink adsenseLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> + adsenseLinkBuilder_; + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adsenseLink field is set. + */ + public boolean hasAdsenseLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adsenseLink. + */ + public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { + if (adsenseLinkBuilder_ == null) { + return adsenseLink_ == null + ? com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() + : adsenseLink_; + } else { + return adsenseLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { + if (adsenseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsenseLink_ = value; + } else { + adsenseLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAdsenseLink( + com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { + if (adsenseLinkBuilder_ == null) { + adsenseLink_ = builderForValue.build(); + } else { + adsenseLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { + if (adsenseLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && adsenseLink_ != null + && adsenseLink_ + != com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()) { + getAdsenseLinkBuilder().mergeFrom(value); + } else { + adsenseLink_ = value; + } + } else { + adsenseLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAdsenseLink() { + bitField0_ = (bitField0_ & ~0x00000002); + adsenseLink_ = null; + if (adsenseLinkBuilder_ != null) { + adsenseLinkBuilder_.dispose(); + adsenseLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AdSenseLink.Builder getAdsenseLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAdsenseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { + if (adsenseLinkBuilder_ != null) { + return adsenseLinkBuilder_.getMessageOrBuilder(); + } else { + return adsenseLink_ == null + ? com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() + : adsenseLink_; + } + } + /** + * + * + *
+     * Required. The AdSense Link to create
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> + getAdsenseLinkFieldBuilder() { + if (adsenseLinkBuilder_ == null) { + adsenseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder>( + getAdsenseLink(), getParentForChildren(), isClean()); + adsenseLink_ = null; + } + return adsenseLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAdSenseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequestOrBuilder.java new file mode 100644 index 000000000000..a023ca7cca6e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateAdSenseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property for which to create an AdSense Link.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The property for which to create an AdSense Link.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The AdSense Link to create
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the adsenseLink field is set. + */ + boolean hasAdsenseLink(); + /** + * + * + *
+   * Required. The AdSense Link to create
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The adsenseLink. + */ + com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink(); + /** + * + * + *
+   * Required. The AdSense Link to create
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java new file mode 100644 index 000000000000..5c79ec2c2dfc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java @@ -0,0 +1,928 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAudienceRequest} + */ +public final class CreateAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAudienceRequest) + CreateAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateAudienceRequest.newBuilder() to construct. + private CreateAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateAudienceRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateAudienceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, + com.google.analytics.admin.v1alpha.CreateAudienceRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUDIENCE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.Audience audience_; + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + @java.lang.Override + public boolean hasAudience() { + return audience_ != null; + } + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudience() { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (audience_ != null) { + output.writeMessage(2, getAudience()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (audience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAudience()); + } + 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.admin.v1alpha.CreateAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateAudienceRequest other = + (com.google.analytics.admin.v1alpha.CreateAudienceRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasAudience() != other.hasAudience()) return false; + if (hasAudience()) { + if (!getAudience().equals(other.getAudience())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasAudience()) { + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateAudienceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAudienceRequest) + com.google.analytics.admin.v1alpha.CreateAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, + com.google.analytics.admin.v1alpha.CreateAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateAudienceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + audience_ = null; + if (audienceBuilder_ != null) { + audienceBuilder_.dispose(); + audienceBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAudienceRequest build() { + com.google.analytics.admin.v1alpha.CreateAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateAudienceRequest result = + new com.google.analytics.admin.v1alpha.CreateAudienceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CreateAudienceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.audience_ = audienceBuilder_ == null ? audience_ : audienceBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreateAudienceRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAudience()) { + mergeAudience(other.getAudience()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getAudienceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.Audience audience_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + audienceBuilder_; + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + public boolean hasAudience() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + public com.google.analytics.admin.v1alpha.Audience getAudience() { + if (audienceBuilder_ == null) { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } else { + return audienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + audience_ = value; + } else { + audienceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience( + com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audienceBuilder_ == null) { + audience_ = builderForValue.build(); + } else { + audienceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && audience_ != null + && audience_ != com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) { + getAudienceBuilder().mergeFrom(value); + } else { + audience_ = value; + } + } else { + audienceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAudience() { + bitField0_ = (bitField0_ & ~0x00000002); + audience_ = null; + if (audienceBuilder_ != null) { + audienceBuilder_.dispose(); + audienceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAudienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + if (audienceBuilder_ != null) { + return audienceBuilder_.getMessageOrBuilder(); + } else { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + } + /** + * + * + *
+     * Required. The audience to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + getAudienceFieldBuilder() { + if (audienceBuilder_ == null) { + audienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder>( + getAudience(), getParentForChildren(), isClean()); + audience_ = null; + } + return audienceBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAudienceRequest) + private static final com.google.analytics.admin.v1alpha.CreateAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..aee99ce1c15c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAudienceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + boolean hasAudience(); + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + com.google.analytics.admin.v1alpha.Audience getAudience(); + /** + * + * + *
+   * Required. The audience to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequest.java new file mode 100644 index 000000000000..769f675dfe99 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequest.java @@ -0,0 +1,941 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateChannelGroup RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateChannelGroupRequest} + */ +public final class CreateChannelGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateChannelGroupRequest) + CreateChannelGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateChannelGroupRequest.newBuilder() to construct. + private CreateChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateChannelGroupRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateChannelGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The property for which to create a ChannelGroup.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The property for which to create a ChannelGroup.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANNEL_GROUP_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; + /** + * + * + *
+   * Required. The ChannelGroup to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelGroup field is set. + */ + @java.lang.Override + public boolean hasChannelGroup() { + return channelGroup_ != null; + } + /** + * + * + *
+   * Required. The ChannelGroup to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } + /** + * + * + *
+   * Required. The ChannelGroup to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (channelGroup_ != null) { + output.writeMessage(2, getChannelGroup()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (channelGroup_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChannelGroup()); + } + 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.admin.v1alpha.CreateChannelGroupRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest other = + (com.google.analytics.admin.v1alpha.CreateChannelGroupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasChannelGroup() != other.hasChannelGroup()) return false; + if (hasChannelGroup()) { + if (!getChannelGroup().equals(other.getChannelGroup())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasChannelGroup()) { + hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getChannelGroup().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateChannelGroup RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateChannelGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateChannelGroupRequest) + com.google.analytics.admin.v1alpha.CreateChannelGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + channelGroup_ = null; + if (channelGroupBuilder_ != null) { + channelGroupBuilder_.dispose(); + channelGroupBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest build() { + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest result = + new com.google.analytics.admin.v1alpha.CreateChannelGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateChannelGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.channelGroup_ = + channelGroupBuilder_ == null ? channelGroup_ : channelGroupBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateChannelGroupRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateChannelGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasChannelGroup()) { + mergeChannelGroup(other.getChannelGroup()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getChannelGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The property for which to create a ChannelGroup.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The property for which to create a ChannelGroup.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The property for which to create a ChannelGroup.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to create a ChannelGroup.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to create a ChannelGroup.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + channelGroupBuilder_; + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelGroup field is set. + */ + public boolean hasChannelGroup() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelGroup. + */ + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { + if (channelGroupBuilder_ == null) { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } else { + return channelGroupBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelGroup_ = value; + } else { + channelGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannelGroup( + com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { + if (channelGroupBuilder_ == null) { + channelGroup_ = builderForValue.build(); + } else { + channelGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && channelGroup_ != null + && channelGroup_ + != com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) { + getChannelGroupBuilder().mergeFrom(value); + } else { + channelGroup_ = value; + } + } else { + channelGroupBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChannelGroup() { + bitField0_ = (bitField0_ & ~0x00000002); + channelGroup_ = null; + if (channelGroupBuilder_ != null) { + channelGroupBuilder_.dispose(); + channelGroupBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getChannelGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { + if (channelGroupBuilder_ != null) { + return channelGroupBuilder_.getMessageOrBuilder(); + } else { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } + } + /** + * + * + *
+     * Required. The ChannelGroup to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + getChannelGroupFieldBuilder() { + if (channelGroupBuilder_ == null) { + channelGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( + getChannelGroup(), getParentForChildren(), isClean()); + channelGroup_ = null; + } + return channelGroupBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateChannelGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateChannelGroupRequest) + private static final com.google.analytics.admin.v1alpha.CreateChannelGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateChannelGroupRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateChannelGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequestOrBuilder.java new file mode 100644 index 000000000000..4e037323ae88 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateChannelGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateChannelGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property for which to create a ChannelGroup.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The property for which to create a ChannelGroup.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ChannelGroup to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelGroup field is set. + */ + boolean hasChannelGroup(); + /** + * + * + *
+   * Required. The ChannelGroup to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelGroup. + */ + com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup(); + /** + * + * + *
+   * Required. The ChannelGroup to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequest.java new file mode 100644 index 000000000000..b96d4cac6dfd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequest.java @@ -0,0 +1,949 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateConnectedSiteTag RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest} + */ +public final class CreateConnectedSiteTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) + CreateConnectedSiteTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateConnectedSiteTagRequest.newBuilder() to construct. + private CreateConnectedSiteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConnectedSiteTagRequest() { + property_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConnectedSiteTagRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.class, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * The Universal Analytics property to create connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * The Universal Analytics property to create connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTED_SITE_TAG_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.ConnectedSiteTag connectedSiteTag_; + /** + * + * + *
+   * Required. The tag to add to the Universal Analytics property
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connectedSiteTag field is set. + */ + @java.lang.Override + public boolean hasConnectedSiteTag() { + return connectedSiteTag_ != null; + } + /** + * + * + *
+   * Required. The tag to add to the Universal Analytics property
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connectedSiteTag. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTag() { + return connectedSiteTag_ == null + ? com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() + : connectedSiteTag_; + } + /** + * + * + *
+   * Required. The tag to add to the Universal Analytics property
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder + getConnectedSiteTagOrBuilder() { + return connectedSiteTag_ == null + ? com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() + : connectedSiteTag_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (connectedSiteTag_ != null) { + output.writeMessage(2, getConnectedSiteTag()); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (connectedSiteTag_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConnectedSiteTag()); + } + 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.admin.v1alpha.CreateConnectedSiteTagRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest other = + (com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (hasConnectedSiteTag() != other.hasConnectedSiteTag()) return false; + if (hasConnectedSiteTag()) { + if (!getConnectedSiteTag().equals(other.getConnectedSiteTag())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + if (hasConnectedSiteTag()) { + hash = (37 * hash) + CONNECTED_SITE_TAG_FIELD_NUMBER; + hash = (53 * hash) + getConnectedSiteTag().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateConnectedSiteTag RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.class, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + connectedSiteTag_ = null; + if (connectedSiteTagBuilder_ != null) { + connectedSiteTagBuilder_.dispose(); + connectedSiteTagBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest build() { + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest result = + new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.connectedSiteTag_ = + connectedSiteTagBuilder_ == null ? connectedSiteTag_ : connectedSiteTagBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.getDefaultInstance()) + return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasConnectedSiteTag()) { + mergeConnectedSiteTag(other.getConnectedSiteTag()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getConnectedSiteTagFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * The Universal Analytics property to create connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Universal Analytics property to create connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Universal Analytics property to create connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The Universal Analytics property to create connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Universal Analytics property to create connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ConnectedSiteTag connectedSiteTag_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConnectedSiteTag, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> + connectedSiteTagBuilder_; + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connectedSiteTag field is set. + */ + public boolean hasConnectedSiteTag() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connectedSiteTag. + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTag() { + if (connectedSiteTagBuilder_ == null) { + return connectedSiteTag_ == null + ? com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() + : connectedSiteTag_; + } else { + return connectedSiteTagBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnectedSiteTag(com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { + if (connectedSiteTagBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectedSiteTag_ = value; + } else { + connectedSiteTagBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConnectedSiteTag( + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { + if (connectedSiteTagBuilder_ == null) { + connectedSiteTag_ = builderForValue.build(); + } else { + connectedSiteTagBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConnectedSiteTag( + com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { + if (connectedSiteTagBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && connectedSiteTag_ != null + && connectedSiteTag_ + != com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()) { + getConnectedSiteTagBuilder().mergeFrom(value); + } else { + connectedSiteTag_ = value; + } + } else { + connectedSiteTagBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConnectedSiteTag() { + bitField0_ = (bitField0_ & ~0x00000002); + connectedSiteTag_ = null; + if (connectedSiteTagBuilder_ != null) { + connectedSiteTagBuilder_.dispose(); + connectedSiteTagBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder + getConnectedSiteTagBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConnectedSiteTagFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder + getConnectedSiteTagOrBuilder() { + if (connectedSiteTagBuilder_ != null) { + return connectedSiteTagBuilder_.getMessageOrBuilder(); + } else { + return connectedSiteTag_ == null + ? com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() + : connectedSiteTag_; + } + } + /** + * + * + *
+     * Required. The tag to add to the Universal Analytics property
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConnectedSiteTag, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> + getConnectedSiteTagFieldBuilder() { + if (connectedSiteTagBuilder_ == null) { + connectedSiteTagBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConnectedSiteTag, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder>( + getConnectedSiteTag(), getParentForChildren(), isClean()); + connectedSiteTag_ = null; + } + return connectedSiteTagBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) + private static final com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectedSiteTagRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequestOrBuilder.java new file mode 100644 index 000000000000..7e120485131a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateConnectedSiteTagRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Universal Analytics property to create connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * The Universal Analytics property to create connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Required. The tag to add to the Universal Analytics property
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the connectedSiteTag field is set. + */ + boolean hasConnectedSiteTag(); + /** + * + * + *
+   * Required. The tag to add to the Universal Analytics property
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The connectedSiteTag. + */ + com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTag(); + /** + * + * + *
+   * Required. The tag to add to the Universal Analytics property
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponse.java new file mode 100644 index 000000000000..4329375d1aa5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponse.java @@ -0,0 +1,441 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for CreateConnectedSiteTag RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse} + */ +public final class CreateConnectedSiteTagResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) + CreateConnectedSiteTagResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateConnectedSiteTagResponse.newBuilder() to construct. + private CreateConnectedSiteTagResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConnectedSiteTagResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConnectedSiteTagResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.class, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.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.admin.v1alpha.CreateConnectedSiteTagResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse other = + (com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) 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.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for CreateConnectedSiteTag RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.class, + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse build() { + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse buildPartial() { + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse result = + new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse other) { + if (other + == com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) + private static final com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse(); + } + + public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConnectedSiteTagResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponseOrBuilder.java new file mode 100644 index 000000000000..eaa18a646acf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateConnectedSiteTagResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java new file mode 100644 index 000000000000..50f4b83a1e2e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java @@ -0,0 +1,945 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} + */ +public final class CreateConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) + CreateConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateConversionEventRequest.newBuilder() to construct. + private CreateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConversionEventRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return conversionEvent_ != null; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + + public static final int PARENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conversionEvent_ != null) { + output.writeMessage(1, getConversionEvent()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversionEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversionEvent()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + 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.admin.v1alpha.CreateConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateConversionEventRequest other = + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) obj; + + if (hasConversionEvent() != other.hasConversionEvent()) return false; + if (hasConversionEvent()) { + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + } + if (!getParent().equals(other.getParent())) 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 (hasConversionEvent()) { + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) + com.google.analytics.admin.v1alpha.CreateConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest build() { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = + new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionEvent_ = + conversionEventBuilder_ == null ? conversionEvent_ : conversionEventBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance()) + return this; + if (other.hasConversionEvent()) { + mergeConversionEvent(other.getConversionEvent()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getConversionEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + public boolean hasConversionEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } else { + return conversionEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionEvent_ = value; + } else { + conversionEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + conversionEvent_ = builderForValue.build(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && conversionEvent_ != null + && conversionEvent_ + != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { + getConversionEventBuilder().mergeFrom(value); + } else { + conversionEvent_ = value; + } + } else { + conversionEventBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionEvent() { + bitField0_ = (bitField0_ & ~0x00000001); + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (conversionEventBuilder_ != null) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + getConversionEvent(), getParentForChildren(), isClean()); + conversionEvent_ = null; + } + return conversionEventBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.CreateConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..6f39ac9e90cf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java new file mode 100644 index 000000000000..c5bf0c48d9db --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java @@ -0,0 +1,938 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} + */ +public final class CreateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + CreateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomDimensionRequest.newBuilder() to construct. + private CreateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomDimensionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (customDimension_ != null) { + output.writeMessage(2, getCustomDimension()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomDimension()); + } + 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.admin.v1alpha.CreateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customDimension_ = + customDimensionBuilder_ == null ? customDimension_ : customDimensionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomDimensionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + } else { + customDimensionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customDimension_ != null + && customDimension_ + != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { + getCustomDimensionBuilder().mergeFrom(value); + } else { + customDimension_ = value; + } + } else { + customDimensionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomDimension() { + bitField0_ = (bitField0_ & ~0x00000002); + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..1048a0641bc8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java new file mode 100644 index 000000000000..1d941c3a41d6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java @@ -0,0 +1,934 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} + */ +public final class CreateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + CreateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomMetricRequest.newBuilder() to construct. + private CreateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomMetricRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (customMetric_ != null) { + output.writeMessage(2, getCustomMetric()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomMetric()); + } + 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.admin.v1alpha.CreateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + com.google.analytics.admin.v1alpha.CreateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customMetric_ = + customMetricBuilder_ == null ? customMetric_ : customMetricBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomMetricFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + } else { + customMetricBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customMetric_ != null + && customMetric_ + != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { + getCustomMetricBuilder().mergeFrom(value); + } else { + customMetric_ = value; + } + } else { + customMetricBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomMetric() { + bitField0_ = (bitField0_ & ~0x00000002); + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..a1a04968fb59 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java new file mode 100644 index 000000000000..70384c537d90 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java @@ -0,0 +1,928 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDataStreamRequest} + */ +public final class CreateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDataStreamRequest) + CreateDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDataStreamRequest.newBuilder() to construct. + private CreateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDataStreamRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STREAM_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return dataStream_ != null; + } + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (dataStream_ != null) { + output.writeMessage(2, getDataStream()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (dataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataStream()); + } + 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.admin.v1alpha.CreateDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateDataStreamRequest other = + (com.google.analytics.admin.v1alpha.CreateDataStreamRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDataStream() != other.hasDataStream()) return false; + if (hasDataStream()) { + if (!getDataStream().equals(other.getDataStream())) return false; + } + if (!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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDataStream()) { + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDataStreamRequest) + com.google.analytics.admin.v1alpha.CreateDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.CreateDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDataStreamRequest build() { + com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = + new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CreateDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataStream_ = dataStreamBuilder_ == null ? dataStream_ : dataStreamBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDataStream()) { + mergeDataStream(other.getDataStream()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + dataStreamBuilder_; + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + public boolean hasDataStream() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } else { + return dataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStream_ = value; + } else { + dataStreamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataStream( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + dataStream_ = builderForValue.build(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataStream_ != null + && dataStream_ != com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) { + getDataStreamBuilder().mergeFrom(value); + } else { + dataStream_ = value; + } + } else { + dataStreamBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataStream() { + bitField0_ = (bitField0_ & ~0x00000002); + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if (dataStreamBuilder_ != null) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + getDataStreamFieldBuilder() { + if (dataStreamBuilder_ == null) { + dataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( + getDataStream(), getParentForChildren(), isClean()); + dataStream_ = null; + } + return dataStreamBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.CreateDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..40ed00b75415 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + com.google.analytics.admin.v1alpha.DataStream getDataStream(); + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 000000000000..d20bd3a0113f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,1012 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class CreateDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private CreateDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDisplayVideo360AdvertiserLinkProposalRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + displayVideo360AdvertiserLinkProposal_; + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return displayVideo360AdvertiserLinkProposal_ != null; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + return displayVideo360AdvertiserLinkProposal_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance() + : displayVideo360AdvertiserLinkProposal_; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + return displayVideo360AdvertiserLinkProposal_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance() + : displayVideo360AdvertiserLinkProposal_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (displayVideo360AdvertiserLinkProposal_ != null) { + output.writeMessage(2, getDisplayVideo360AdvertiserLinkProposal()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (displayVideo360AdvertiserLinkProposal_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getDisplayVideo360AdvertiserLinkProposal()); + } + 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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDisplayVideo360AdvertiserLinkProposal() + != other.hasDisplayVideo360AdvertiserLinkProposal()) return false; + if (hasDisplayVideo360AdvertiserLinkProposal()) { + if (!getDisplayVideo360AdvertiserLinkProposal() + .equals(other.getDisplayVideo360AdvertiserLinkProposal())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDisplayVideo360AdvertiserLinkProposal()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposal().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + displayVideo360AdvertiserLinkProposal_ = null; + if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { + displayVideo360AdvertiserLinkProposalBuilder_.dispose(); + displayVideo360AdvertiserLinkProposalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayVideo360AdvertiserLinkProposal_ = + displayVideo360AdvertiserLinkProposalBuilder_ == null + ? displayVideo360AdvertiserLinkProposal_ + : displayVideo360AdvertiserLinkProposalBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayVideo360AdvertiserLinkProposal()) { + mergeDisplayVideo360AdvertiserLinkProposal( + other.getDisplayVideo360AdvertiserLinkProposal()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + displayVideo360AdvertiserLinkProposal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + displayVideo360AdvertiserLinkProposalBuilder_; + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + return displayVideo360AdvertiserLinkProposal_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance() + : displayVideo360AdvertiserLinkProposal_; + } else { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLinkProposal_ = value; + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + displayVideo360AdvertiserLinkProposal_ = builderForValue.build(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && displayVideo360AdvertiserLinkProposal_ != null + && displayVideo360AdvertiserLinkProposal_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()) { + getDisplayVideo360AdvertiserLinkProposalBuilder().mergeFrom(value); + } else { + displayVideo360AdvertiserLinkProposal_ = value; + } + } else { + displayVideo360AdvertiserLinkProposalBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDisplayVideo360AdvertiserLinkProposal() { + bitField0_ = (bitField0_ & ~0x00000002); + displayVideo360AdvertiserLinkProposal_ = null; + if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { + displayVideo360AdvertiserLinkProposalBuilder_.dispose(); + displayVideo360AdvertiserLinkProposalBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + getDisplayVideo360AdvertiserLinkProposalBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLinkProposal_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance() + : displayVideo360AdvertiserLinkProposal_; + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalFieldBuilder() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + displayVideo360AdvertiserLinkProposalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder>( + getDisplayVideo360AdvertiserLinkProposal(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLinkProposal_ = null; + } + return displayVideo360AdvertiserLinkProposalBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + CreateDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + CreateDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public CreateDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 000000000000..3ef7e59ba265 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + boolean hasDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 000000000000..3a21680914ad --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,975 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} + */ +public final class CreateDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + CreateDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private CreateDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDisplayVideo360AdvertiserLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDisplayVideo360AdvertiserLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (displayVideo360AdvertiserLink_ != null) { + output.writeMessage(2, getDisplayVideo360AdvertiserLink()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (displayVideo360AdvertiserLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getDisplayVideo360AdvertiserLink()); + } + 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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) + return false; + if (hasDisplayVideo360AdvertiserLink()) { + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDisplayVideo360AdvertiserLink()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + displayVideo360AdvertiserLink_ = null; + if (displayVideo360AdvertiserLinkBuilder_ != null) { + displayVideo360AdvertiserLinkBuilder_.dispose(); + displayVideo360AdvertiserLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayVideo360AdvertiserLink_ = + displayVideo360AdvertiserLinkBuilder_ == null + ? displayVideo360AdvertiserLink_ + : displayVideo360AdvertiserLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDisplayVideo360AdvertiserLink()) { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + public boolean hasDisplayVideo360AdvertiserLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLink. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } else { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLink_ = value; + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = builderForValue.build(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && displayVideo360AdvertiserLink_ != null + && displayVideo360AdvertiserLink_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()) { + getDisplayVideo360AdvertiserLinkBuilder().mergeFrom(value); + } else { + displayVideo360AdvertiserLink_ = value; + } + } else { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + bitField0_ = (bitField0_ & ~0x00000002); + displayVideo360AdvertiserLink_ = null; + if (displayVideo360AdvertiserLinkBuilder_ != null) { + displayVideo360AdvertiserLinkBuilder_.dispose(); + displayVideo360AdvertiserLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ != null) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + getDisplayVideo360AdvertiserLink(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLink_ = null; + } + return displayVideo360AdvertiserLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 000000000000..9e8dbdb14636 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequest.java new file mode 100644 index 000000000000..b245ff783075 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequest.java @@ -0,0 +1,938 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateEventCreateRule RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} + */ +public final class CreateEventCreateRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) + CreateEventCreateRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateEventCreateRuleRequest.newBuilder() to construct. + private CreateEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateEventCreateRuleRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateEventCreateRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_CREATE_RULE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; + /** + * + * + *
+   * Required. The EventCreateRule to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventCreateRule field is set. + */ + @java.lang.Override + public boolean hasEventCreateRule() { + return eventCreateRule_ != null; + } + /** + * + * + *
+   * Required. The EventCreateRule to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventCreateRule. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } + /** + * + * + *
+   * Required. The EventCreateRule to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (eventCreateRule_ != null) { + output.writeMessage(2, getEventCreateRule()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (eventCreateRule_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventCreateRule()); + } + 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.admin.v1alpha.CreateEventCreateRuleRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest other = + (com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasEventCreateRule() != other.hasEventCreateRule()) return false; + if (hasEventCreateRule()) { + if (!getEventCreateRule().equals(other.getEventCreateRule())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasEventCreateRule()) { + hash = (37 * hash) + EVENT_CREATE_RULE_FIELD_NUMBER; + hash = (53 * hash) + getEventCreateRule().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateEventCreateRule RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + eventCreateRule_ = null; + if (eventCreateRuleBuilder_ != null) { + eventCreateRuleBuilder_.dispose(); + eventCreateRuleBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest build() { + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest result = + new com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventCreateRule_ = + eventCreateRuleBuilder_ == null ? eventCreateRule_ : eventCreateRuleBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEventCreateRule()) { + mergeEventCreateRule(other.getEventCreateRule()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEventCreateRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + eventCreateRuleBuilder_; + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventCreateRule field is set. + */ + public boolean hasEventCreateRule() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventCreateRule. + */ + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { + if (eventCreateRuleBuilder_ == null) { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } else { + return eventCreateRuleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventCreateRule_ = value; + } else { + eventCreateRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventCreateRule( + com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { + if (eventCreateRuleBuilder_ == null) { + eventCreateRule_ = builderForValue.build(); + } else { + eventCreateRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRuleBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && eventCreateRule_ != null + && eventCreateRule_ + != com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) { + getEventCreateRuleBuilder().mergeFrom(value); + } else { + eventCreateRule_ = value; + } + } else { + eventCreateRuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEventCreateRule() { + bitField0_ = (bitField0_ & ~0x00000002); + eventCreateRule_ = null; + if (eventCreateRuleBuilder_ != null) { + eventCreateRuleBuilder_.dispose(); + eventCreateRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EventCreateRule.Builder getEventCreateRuleBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEventCreateRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder + getEventCreateRuleOrBuilder() { + if (eventCreateRuleBuilder_ != null) { + return eventCreateRuleBuilder_.getMessageOrBuilder(); + } else { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } + } + /** + * + * + *
+     * Required. The EventCreateRule to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + getEventCreateRuleFieldBuilder() { + if (eventCreateRuleBuilder_ == null) { + eventCreateRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( + getEventCreateRule(), getParentForChildren(), isClean()); + eventCreateRule_ = null; + } + return eventCreateRuleBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) + private static final com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateEventCreateRuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequestOrBuilder.java new file mode 100644 index 000000000000..f05955e283f8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateEventCreateRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The EventCreateRule to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventCreateRule field is set. + */ + boolean hasEventCreateRule(); + /** + * + * + *
+   * Required. The EventCreateRule to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventCreateRule. + */ + com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule(); + /** + * + * + *
+   * Required. The EventCreateRule to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java new file mode 100644 index 000000000000..da4d152e2299 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java @@ -0,0 +1,938 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateExpandedDataSetRequest} + */ +public final class CreateExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + CreateExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateExpandedDataSetRequest.newBuilder() to construct. + private CreateExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateExpandedDataSetRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateExpandedDataSetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + @java.lang.Override + public boolean hasExpandedDataSet() { + return expandedDataSet_ != null; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (expandedDataSet_ != null) { + output.writeMessage(2, getExpandedDataSet()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (expandedDataSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpandedDataSet()); + } + 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.admin.v1alpha.CreateExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasExpandedDataSet() != other.hasExpandedDataSet()) return false; + if (hasExpandedDataSet()) { + if (!getExpandedDataSet().equals(other.getExpandedDataSet())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasExpandedDataSet()) { + hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; + hash = (53 * hash) + getExpandedDataSet().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expandedDataSet_ = + expandedDataSetBuilder_ == null ? expandedDataSet_ : expandedDataSetBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExpandedDataSet()) { + mergeExpandedDataSet(other.getExpandedDataSet()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpandedDataSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + expandedDataSetBuilder_; + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + public boolean hasExpandedDataSet() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + if (expandedDataSetBuilder_ == null) { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } else { + return expandedDataSetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expandedDataSet_ = value; + } else { + expandedDataSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet( + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetBuilder_ == null) { + expandedDataSet_ = builderForValue.build(); + } else { + expandedDataSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && expandedDataSet_ != null + && expandedDataSet_ + != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { + getExpandedDataSetBuilder().mergeFrom(value); + } else { + expandedDataSet_ = value; + } + } else { + expandedDataSetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpandedDataSet() { + bitField0_ = (bitField0_ & ~0x00000002); + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExpandedDataSetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder + getExpandedDataSetOrBuilder() { + if (expandedDataSetBuilder_ != null) { + return expandedDataSetBuilder_.getMessageOrBuilder(); + } else { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + getExpandedDataSetFieldBuilder() { + if (expandedDataSetBuilder_ == null) { + expandedDataSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( + getExpandedDataSet(), getParentForChildren(), isClean()); + expandedDataSet_ = null; + } + return expandedDataSetBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..c52dddba9bbe --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + boolean hasExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java new file mode 100644 index 000000000000..f2c81a92f768 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java @@ -0,0 +1,941 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateFirebaseLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} + */ +public final class CreateFirebaseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + CreateFirebaseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFirebaseLinkRequest.newBuilder() to construct. + private CreateFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFirebaseLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFirebaseLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREBASE_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.FirebaseLink firebaseLink_; + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return firebaseLink_ != null; + } + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + return firebaseLink_ == null + ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + return firebaseLink_ == null + ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (firebaseLink_ != null) { + output.writeMessage(2, getFirebaseLink()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (firebaseLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirebaseLink()); + } + 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.admin.v1alpha.CreateFirebaseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest other = + (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFirebaseLink() != other.hasFirebaseLink()) return false; + if (hasFirebaseLink()) { + if (!getFirebaseLink().equals(other.getFirebaseLink())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFirebaseLink()) { + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateFirebaseLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + firebaseLink_ = null; + if (firebaseLinkBuilder_ != null) { + firebaseLinkBuilder_.dispose(); + firebaseLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest build() { + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest result = + new com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firebaseLink_ = + firebaseLinkBuilder_ == null ? firebaseLink_ : firebaseLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFirebaseLink()) { + mergeFirebaseLink(other.getFirebaseLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getFirebaseLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.FirebaseLink firebaseLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + firebaseLinkBuilder_; + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firebaseLink field is set. + */ + public boolean hasFirebaseLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firebaseLink. + */ + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + return firebaseLink_ == null + ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } else { + return firebaseLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firebaseLink_ = value; + } else { + firebaseLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirebaseLink( + com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { + if (firebaseLinkBuilder_ == null) { + firebaseLink_ = builderForValue.build(); + } else { + firebaseLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && firebaseLink_ != null + && firebaseLink_ + != com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) { + getFirebaseLinkBuilder().mergeFrom(value); + } else { + firebaseLink_ = value; + } + } else { + firebaseLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFirebaseLink() { + bitField0_ = (bitField0_ & ~0x00000002); + firebaseLink_ = null; + if (firebaseLinkBuilder_ != null) { + firebaseLinkBuilder_.dispose(); + firebaseLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFirebaseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if (firebaseLinkBuilder_ != null) { + return firebaseLinkBuilder_.getMessageOrBuilder(); + } else { + return firebaseLink_ == null + ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + getFirebaseLinkFieldBuilder() { + if (firebaseLinkBuilder_ == null) { + firebaseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( + getFirebaseLink(), getParentForChildren(), isClean()); + firebaseLink_ = null; + } + return firebaseLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFirebaseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java new file mode 100644 index 000000000000..5af4d4630360 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateFirebaseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firebaseLink field is set. + */ + boolean hasFirebaseLink(); + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firebaseLink. + */ + com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java new file mode 100644 index 000000000000..2d060bf4577d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java @@ -0,0 +1,934 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateGoogleAdsLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} + */ +public final class CreateGoogleAdsLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + CreateGoogleAdsLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateGoogleAdsLinkRequest.newBuilder() to construct. + private CreateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateGoogleAdsLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateGoogleAdsLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return googleAdsLink_ != null; + } + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (googleAdsLink_ != null) { + output.writeMessage(2, getGoogleAdsLink()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (googleAdsLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGoogleAdsLink()); + } + 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.admin.v1alpha.CreateGoogleAdsLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest other = + (com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; + if (hasGoogleAdsLink()) { + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasGoogleAdsLink()) { + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateGoogleAdsLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest build() { + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest result = + new com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.googleAdsLink_ = + googleAdsLinkBuilder_ == null ? googleAdsLink_ : googleAdsLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasGoogleAdsLink()) { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleAdsLink field is set. + */ + public boolean hasGoogleAdsLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleAdsLink. + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } else { + return googleAdsLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleAdsLink_ = value; + } else { + googleAdsLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + googleAdsLink_ = builderForValue.build(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && googleAdsLink_ != null + && googleAdsLink_ + != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { + getGoogleAdsLinkBuilder().mergeFrom(value); + } else { + googleAdsLink_ = value; + } + } else { + googleAdsLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGoogleAdsLink() { + bitField0_ = (bitField0_ & ~0x00000002); + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (googleAdsLinkBuilder_ != null) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( + getGoogleAdsLink(), getParentForChildren(), isClean()); + googleAdsLink_ = null; + } + return googleAdsLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGoogleAdsLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java new file mode 100644 index 000000000000..780586944699 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateGoogleAdsLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..74809c6df67d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java @@ -0,0 +1,971 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} + */ +public final class CreateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + CreateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMeasurementProtocolSecretRequest.newBuilder() to construct. + private CreateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMeasurementProtocolSecretRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (measurementProtocolSecret_ != null) { + output.writeMessage(2, getMeasurementProtocolSecret()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMeasurementProtocolSecret()); + } + 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.admin.v1alpha.CreateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.measurementProtocolSecret_ = + measurementProtocolSecretBuilder_ == null + ? measurementProtocolSecret_ + : measurementProtocolSecretBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && measurementProtocolSecret_ != null + && measurementProtocolSecret_ + != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance()) { + getMeasurementProtocolSecretBuilder().mergeFrom(value); + } else { + measurementProtocolSecret_ = value; + } + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + bitField0_ = (bitField0_ & ~0x00000002); + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..3cca77837bd5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java new file mode 100644 index 000000000000..0e1acb3d5271 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java @@ -0,0 +1,743 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreatePropertyRequest} + */ +public final class CreatePropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreatePropertyRequest) + CreatePropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePropertyRequest.newBuilder() to construct. + private CreatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePropertyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreatePropertyRequest.class, + com.google.analytics.admin.v1alpha.CreatePropertyRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property property_; + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return property_ != null; + } + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } + + 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 (property_ != null) { + output.writeMessage(1, getProperty()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (property_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + } + 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.admin.v1alpha.CreatePropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreatePropertyRequest other = + (com.google.analytics.admin.v1alpha.CreatePropertyRequest) obj; + + if (hasProperty() != other.hasProperty()) return false; + if (hasProperty()) { + if (!getProperty().equals(other.getProperty())) 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 (hasProperty()) { + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreatePropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreatePropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreatePropertyRequest) + com.google.analytics.admin.v1alpha.CreatePropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreatePropertyRequest.class, + com.google.analytics.admin.v1alpha.CreatePropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreatePropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreatePropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreatePropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreatePropertyRequest build() { + com.google.analytics.admin.v1alpha.CreatePropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreatePropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreatePropertyRequest result = + new com.google.analytics.admin.v1alpha.CreatePropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CreatePropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = propertyBuilder_ == null ? property_ : propertyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreatePropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreatePropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreatePropertyRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreatePropertyRequest.getDefaultInstance()) + return this; + if (other.hasProperty()) { + mergeProperty(other.getProperty()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property property_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + public boolean hasProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (propertyBuilder_ == null) { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } else { + return propertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + } else { + propertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + property_ = builderForValue.build(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && property_ != null + && property_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getPropertyBuilder().mergeFrom(value); + } else { + property_ = value; + } + } else { + propertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if (propertyBuilder_ != null) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); + property_ = null; + } + return propertyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreatePropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreatePropertyRequest) + private static final com.google.analytics.admin.v1alpha.CreatePropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreatePropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreatePropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreatePropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java new file mode 100644 index 000000000000..2eb804a01dab --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreatePropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreatePropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + com.google.analytics.admin.v1alpha.Property getProperty(); + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java new file mode 100644 index 000000000000..4c80ed350380 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java @@ -0,0 +1,1030 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateRollupProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyRequest} + */ +public final class CreateRollupPropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + CreateRollupPropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRollupPropertyRequest.newBuilder() to construct. + private CreateRollupPropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRollupPropertyRequest() { + sourceProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRollupPropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.Builder.class); + } + + public static final int ROLLUP_PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupProperty field is set. + */ + @java.lang.Override + public boolean hasRollupProperty() { + return rollupProperty_ != null; + } + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupProperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + + public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sourceProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sourceProperties. + */ + public com.google.protobuf.ProtocolStringList getSourcePropertiesList() { + return sourceProperties_; + } + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sourceProperties. + */ + public int getSourcePropertiesCount() { + return sourceProperties_.size(); + } + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sourceProperties at the given index. + */ + public java.lang.String getSourceProperties(int index) { + return sourceProperties_.get(index); + } + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sourceProperties at the given index. + */ + public com.google.protobuf.ByteString getSourcePropertiesBytes(int index) { + return sourceProperties_.getByteString(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 { + if (rollupProperty_ != null) { + output.writeMessage(1, getRollupProperty()); + } + for (int i = 0; i < sourceProperties_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceProperties_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rollupProperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollupProperty()); + } + { + int dataSize = 0; + for (int i = 0; i < sourceProperties_.size(); i++) { + dataSize += computeStringSizeNoTag(sourceProperties_.getRaw(i)); + } + size += dataSize; + size += 1 * getSourcePropertiesList().size(); + } + 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.admin.v1alpha.CreateRollupPropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest other = + (com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) obj; + + if (hasRollupProperty() != other.hasRollupProperty()) return false; + if (hasRollupProperty()) { + if (!getRollupProperty().equals(other.getRollupProperty())) return false; + } + if (!getSourcePropertiesList().equals(other.getSourcePropertiesList())) 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 (hasRollupProperty()) { + hash = (37 * hash) + ROLLUP_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getRollupProperty().hashCode(); + } + if (getSourcePropertiesCount() > 0) { + hash = (37 * hash) + SOURCE_PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getSourcePropertiesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateRollupProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + sourceProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest build() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result = + new com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rollupProperty_ = + rollupPropertyBuilder_ == null ? rollupProperty_ : rollupPropertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + sourceProperties_.makeImmutable(); + result.sourceProperties_ = sourceProperties_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.getDefaultInstance()) + return this; + if (other.hasRollupProperty()) { + mergeRollupProperty(other.getRollupProperty()); + } + if (!other.sourceProperties_.isEmpty()) { + if (sourceProperties_.isEmpty()) { + sourceProperties_ = other.sourceProperties_; + bitField0_ |= 0x00000002; + } else { + ensureSourcePropertiesIsMutable(); + sourceProperties_.addAll(other.sourceProperties_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getRollupPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSourcePropertiesIsMutable(); + sourceProperties_.add(s); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + rollupPropertyBuilder_; + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupProperty field is set. + */ + public boolean hasRollupProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupProperty. + */ + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + if (rollupPropertyBuilder_ == null) { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } else { + return rollupPropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollupProperty_ = value; + } else { + rollupPropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollupProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (rollupPropertyBuilder_ == null) { + rollupProperty_ = builderForValue.build(); + } else { + rollupPropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rollupProperty_ != null + && rollupProperty_ + != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getRollupPropertyBuilder().mergeFrom(value); + } else { + rollupProperty_ = value; + } + } else { + rollupPropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRollupProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Property.Builder getRollupPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRollupPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + if (rollupPropertyBuilder_ != null) { + return rollupPropertyBuilder_.getMessageOrBuilder(); + } else { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + } + /** + * + * + *
+     * Required. The roll-up property to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getRollupPropertyFieldBuilder() { + if (rollupPropertyBuilder_ == null) { + rollupPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getRollupProperty(), getParentForChildren(), isClean()); + rollupProperty_ = null; + } + return rollupPropertyBuilder_; + } + + private com.google.protobuf.LazyStringArrayList sourceProperties_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSourcePropertiesIsMutable() { + if (!sourceProperties_.isModifiable()) { + sourceProperties_ = new com.google.protobuf.LazyStringArrayList(sourceProperties_); + } + bitField0_ |= 0x00000002; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sourceProperties. + */ + public com.google.protobuf.ProtocolStringList getSourcePropertiesList() { + sourceProperties_.makeImmutable(); + return sourceProperties_; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sourceProperties. + */ + public int getSourcePropertiesCount() { + return sourceProperties_.size(); + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sourceProperties at the given index. + */ + public java.lang.String getSourceProperties(int index) { + return sourceProperties_.get(index); + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sourceProperties at the given index. + */ + public com.google.protobuf.ByteString getSourcePropertiesBytes(int index) { + return sourceProperties_.getByteString(index); + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The sourceProperties to set. + * @return This builder for chaining. + */ + public Builder setSourceProperties(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcePropertiesIsMutable(); + sourceProperties_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The sourceProperties to add. + * @return This builder for chaining. + */ + public Builder addSourceProperties(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSourcePropertiesIsMutable(); + sourceProperties_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The sourceProperties to add. + * @return This builder for chaining. + */ + public Builder addAllSourceProperties(java.lang.Iterable values) { + ensureSourcePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sourceProperties_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProperties() { + sourceProperties_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The resource names of properties that will be sources to the
+     * created roll-up property.
+     * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the sourceProperties to add. + * @return This builder for chaining. + */ + public Builder addSourcePropertiesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSourcePropertiesIsMutable(); + sourceProperties_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + private static final com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRollupPropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java new file mode 100644 index 000000000000..9b75e1ca1dfc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java @@ -0,0 +1,121 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateRollupPropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupProperty field is set. + */ + boolean hasRollupProperty(); + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupProperty. + */ + com.google.analytics.admin.v1alpha.Property getRollupProperty(); + /** + * + * + *
+   * Required. The roll-up property to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder(); + + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the sourceProperties. + */ + java.util.List getSourcePropertiesList(); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of sourceProperties. + */ + int getSourcePropertiesCount(); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The sourceProperties at the given index. + */ + java.lang.String getSourceProperties(int index); + /** + * + * + *
+   * Optional. The resource names of properties that will be sources to the
+   * created roll-up property.
+   * 
+ * + * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the sourceProperties at the given index. + */ + com.google.protobuf.ByteString getSourcePropertiesBytes(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java new file mode 100644 index 000000000000..587f1c65411f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java @@ -0,0 +1,1288 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for CreateRollupProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyResponse} + */ +public final class CreateRollupPropertyResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + CreateRollupPropertyResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRollupPropertyResponse.newBuilder() to construct. + private CreateRollupPropertyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRollupPropertyResponse() { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRollupPropertyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.Builder.class); + } + + public static final int ROLLUP_PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return Whether the rollupProperty field is set. + */ + @java.lang.Override + public boolean hasRollupProperty() { + return rollupProperty_ != null; + } + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return The rollupProperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + + public static final int ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + rollupPropertySourceLinks_; + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public java.util.List + getRollupPropertySourceLinksList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public int getRollupPropertySourceLinksCount() { + return rollupPropertySourceLinks_.size(); + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + return rollupPropertySourceLinks_.get(index); + } + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + return rollupPropertySourceLinks_.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 { + if (rollupProperty_ != null) { + output.writeMessage(1, getRollupProperty()); + } + for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { + output.writeMessage(2, rollupPropertySourceLinks_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (rollupProperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getRollupProperty()); + } + for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, rollupPropertySourceLinks_.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.admin.v1alpha.CreateRollupPropertyResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse other = + (com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse) obj; + + if (hasRollupProperty() != other.hasRollupProperty()) return false; + if (hasRollupProperty()) { + if (!getRollupProperty().equals(other.getRollupProperty())) return false; + } + if (!getRollupPropertySourceLinksList().equals(other.getRollupPropertySourceLinksList())) + 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 (hasRollupProperty()) { + hash = (37 * hash) + ROLLUP_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getRollupProperty().hashCode(); + } + if (getRollupPropertySourceLinksCount() > 0) { + hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getRollupPropertySourceLinksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for CreateRollupProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + } else { + rollupPropertySourceLinks_ = null; + rollupPropertySourceLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse build() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse buildPartial() { + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result = + new com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rollupPropertySourceLinks_ = + java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rollupPropertySourceLinks_ = rollupPropertySourceLinks_; + } else { + result.rollupPropertySourceLinks_ = rollupPropertySourceLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rollupProperty_ = + rollupPropertyBuilder_ == null ? rollupProperty_ : rollupPropertyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse other) { + if (other + == com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.getDefaultInstance()) + return this; + if (other.hasRollupProperty()) { + mergeRollupProperty(other.getRollupProperty()); + } + if (rollupPropertySourceLinksBuilder_ == null) { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinks_.isEmpty()) { + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.addAll(other.rollupPropertySourceLinks_); + } + onChanged(); + } + } else { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinksBuilder_.isEmpty()) { + rollupPropertySourceLinksBuilder_.dispose(); + rollupPropertySourceLinksBuilder_ = null; + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000002); + rollupPropertySourceLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRollupPropertySourceLinksFieldBuilder() + : null; + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(other.rollupPropertySourceLinks_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getRollupPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.parser(), + extensionRegistry); + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(m); + } else { + rollupPropertySourceLinksBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property rollupProperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + rollupPropertyBuilder_; + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return Whether the rollupProperty field is set. + */ + public boolean hasRollupProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return The rollupProperty. + */ + public com.google.analytics.admin.v1alpha.Property getRollupProperty() { + if (rollupPropertyBuilder_ == null) { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } else { + return rollupPropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder setRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollupProperty_ = value; + } else { + rollupPropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder setRollupProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (rollupPropertyBuilder_ == null) { + rollupProperty_ = builderForValue.build(); + } else { + rollupPropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder mergeRollupProperty(com.google.analytics.admin.v1alpha.Property value) { + if (rollupPropertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && rollupProperty_ != null + && rollupProperty_ + != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getRollupPropertyBuilder().mergeFrom(value); + } else { + rollupProperty_ = value; + } + } else { + rollupPropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public Builder clearRollupProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + rollupProperty_ = null; + if (rollupPropertyBuilder_ != null) { + rollupPropertyBuilder_.dispose(); + rollupPropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getRollupPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getRollupPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { + if (rollupPropertyBuilder_ != null) { + return rollupPropertyBuilder_.getMessageOrBuilder(); + } else { + return rollupProperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : rollupProperty_; + } + } + /** + * + * + *
+     * The created roll-up property.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getRollupPropertyFieldBuilder() { + if (rollupPropertyBuilder_ == null) { + rollupPropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getRollupProperty(), getParentForChildren(), isClean()); + rollupProperty_ = null; + } + return rollupPropertyBuilder_; + } + + private java.util.List + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + + private void ensureRollupPropertySourceLinksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rollupPropertySourceLinks_ = + new java.util.ArrayList( + rollupPropertySourceLinks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + rollupPropertySourceLinksBuilder_; + + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public java.util.List + getRollupPropertySourceLinksList() { + if (rollupPropertySourceLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } else { + return rollupPropertySourceLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public int getRollupPropertySourceLinksCount() { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.size(); + } else { + return rollupPropertySourceLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder setRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder setRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder addAllRollupPropertySourceLinks( + java.lang.Iterable + values) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rollupPropertySourceLinks_); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder clearRollupPropertySourceLinks() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public Builder removeRollupPropertySourceLinks(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.remove(index); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + getRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + if (rollupPropertySourceLinksBuilder_ != null) { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder() { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * The created roll-up property source links.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + public java.util.List + getRollupPropertySourceLinksBuilderList() { + return getRollupPropertySourceLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksFieldBuilder() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( + rollupPropertySourceLinks_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + rollupPropertySourceLinks_ = null; + } + return rollupPropertySourceLinksBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + private static final com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse(); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRollupPropertyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java new file mode 100644 index 000000000000..4f1a51e8a5ce --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateRollupPropertyResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return Whether the rollupProperty field is set. + */ + boolean hasRollupProperty(); + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + * + * @return The rollupProperty. + */ + com.google.analytics.admin.v1alpha.Property getRollupProperty(); + /** + * + * + *
+   * The created roll-up property.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property rollup_property = 1; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder(); + + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + java.util.List + getRollupPropertySourceLinksList(); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + int getRollupPropertySourceLinksCount(); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + java.util.List + getRollupPropertySourceLinksOrBuilderList(); + /** + * + * + *
+   * The created roll-up property source links.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; + * + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java new file mode 100644 index 000000000000..fe838f34b369 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java @@ -0,0 +1,967 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateRollupPropertySourceLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest} + */ +public final class CreateRollupPropertySourceLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + CreateRollupPropertySourceLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateRollupPropertySourceLinkRequest.newBuilder() to construct. + private CreateRollupPropertySourceLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateRollupPropertySourceLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateRollupPropertySourceLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ROLLUP_PROPERTY_SOURCE_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.RollupPropertySourceLink rollupPropertySourceLink_; + /** + * + * + *
+   * Required. The roll-up property source link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupPropertySourceLink field is set. + */ + @java.lang.Override + public boolean hasRollupPropertySourceLink() { + return rollupPropertySourceLink_ != null; + } + /** + * + * + *
+   * Required. The roll-up property source link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupPropertySourceLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink() { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; + } + /** + * + * + *
+   * Required. The roll-up property source link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinkOrBuilder() { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (rollupPropertySourceLink_ != null) { + output.writeMessage(2, getRollupPropertySourceLink()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (rollupPropertySourceLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getRollupPropertySourceLink()); + } + 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.admin.v1alpha.CreateRollupPropertySourceLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest other = + (com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasRollupPropertySourceLink() != other.hasRollupPropertySourceLink()) return false; + if (hasRollupPropertySourceLink()) { + if (!getRollupPropertySourceLink().equals(other.getRollupPropertySourceLink())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasRollupPropertySourceLink()) { + hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getRollupPropertySourceLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateRollupPropertySourceLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + rollupPropertySourceLink_ = null; + if (rollupPropertySourceLinkBuilder_ != null) { + rollupPropertySourceLinkBuilder_.dispose(); + rollupPropertySourceLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest build() { + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result = + new com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rollupPropertySourceLink_ = + rollupPropertySourceLinkBuilder_ == null + ? rollupPropertySourceLink_ + : rollupPropertySourceLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasRollupPropertySourceLink()) { + mergeRollupPropertySourceLink(other.getRollupPropertySourceLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getRollupPropertySourceLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.RollupPropertySourceLink rollupPropertySourceLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + rollupPropertySourceLinkBuilder_; + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupPropertySourceLink field is set. + */ + public boolean hasRollupPropertySourceLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupPropertySourceLink. + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink + getRollupPropertySourceLink() { + if (rollupPropertySourceLinkBuilder_ == null) { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; + } else { + return rollupPropertySourceLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rollupPropertySourceLink_ = value; + } else { + rollupPropertySourceLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinkBuilder_ == null) { + rollupPropertySourceLink_ = builderForValue.build(); + } else { + rollupPropertySourceLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeRollupPropertySourceLink( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && rollupPropertySourceLink_ != null + && rollupPropertySourceLink_ + != com.google.analytics.admin.v1alpha.RollupPropertySourceLink + .getDefaultInstance()) { + getRollupPropertySourceLinkBuilder().mergeFrom(value); + } else { + rollupPropertySourceLink_ = value; + } + } else { + rollupPropertySourceLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRollupPropertySourceLink() { + bitField0_ = (bitField0_ & ~0x00000002); + rollupPropertySourceLink_ = null; + if (rollupPropertySourceLinkBuilder_ != null) { + rollupPropertySourceLinkBuilder_.dispose(); + rollupPropertySourceLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + getRollupPropertySourceLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getRollupPropertySourceLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinkOrBuilder() { + if (rollupPropertySourceLinkBuilder_ != null) { + return rollupPropertySourceLinkBuilder_.getMessageOrBuilder(); + } else { + return rollupPropertySourceLink_ == null + ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() + : rollupPropertySourceLink_; + } + } + /** + * + * + *
+     * Required. The roll-up property source link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinkFieldBuilder() { + if (rollupPropertySourceLinkBuilder_ == null) { + rollupPropertySourceLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( + getRollupPropertySourceLink(), getParentForChildren(), isClean()); + rollupPropertySourceLink_ = null; + } + return rollupPropertySourceLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateRollupPropertySourceLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java new file mode 100644 index 000000000000..cb5b773e2ea9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateRollupPropertySourceLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The roll-up property source link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the rollupPropertySourceLink field is set. + */ + boolean hasRollupPropertySourceLink(); + /** + * + * + *
+   * Required. The roll-up property source link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The rollupPropertySourceLink. + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink(); + /** + * + * + *
+   * Required. The roll-up property source link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequest.java new file mode 100644 index 000000000000..7b6cb24eb530 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequest.java @@ -0,0 +1,995 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateSKAdNetworkConversionValueSchema RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest} + */ +public final class CreateSKAdNetworkConversionValueSchemaRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) + CreateSKAdNetworkConversionValueSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. + private CreateSKAdNetworkConversionValueSchemaRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSKAdNetworkConversionValueSchemaRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSKAdNetworkConversionValueSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.class, + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource where this schema will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource where this schema will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + skadnetworkConversionValueSchema_; + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + @java.lang.Override + public boolean hasSkadnetworkConversionValueSchema() { + return skadnetworkConversionValueSchema_ != null; + } + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skadnetworkConversionValueSchema. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema() { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() + : skadnetworkConversionValueSchema_; + } + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder() { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() + : skadnetworkConversionValueSchema_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (skadnetworkConversionValueSchema_ != null) { + output.writeMessage(2, getSkadnetworkConversionValueSchema()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (skadnetworkConversionValueSchema_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSkadnetworkConversionValueSchema()); + } + 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.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest other = + (com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSkadnetworkConversionValueSchema() != other.hasSkadnetworkConversionValueSchema()) + return false; + if (hasSkadnetworkConversionValueSchema()) { + if (!getSkadnetworkConversionValueSchema() + .equals(other.getSkadnetworkConversionValueSchema())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSkadnetworkConversionValueSchema()) { + hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSkadnetworkConversionValueSchema().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateSKAdNetworkConversionValueSchema RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + .class, + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + skadnetworkConversionValueSchema_ = null; + if (skadnetworkConversionValueSchemaBuilder_ != null) { + skadnetworkConversionValueSchemaBuilder_.dispose(); + skadnetworkConversionValueSchemaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + build() { + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest result = + new com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.skadnetworkConversionValueSchema_ = + skadnetworkConversionValueSchemaBuilder_ == null + ? skadnetworkConversionValueSchema_ + : skadnetworkConversionValueSchemaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSkadnetworkConversionValueSchema()) { + mergeSkadnetworkConversionValueSchema(other.getSkadnetworkConversionValueSchema()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this schema will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this schema will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this schema will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this schema will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this schema will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + skadnetworkConversionValueSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + skadnetworkConversionValueSchemaBuilder_; + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + public boolean hasSkadnetworkConversionValueSchema() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skadnetworkConversionValueSchema. + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema() { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance() + : skadnetworkConversionValueSchema_; + } else { + return skadnetworkConversionValueSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + skadnetworkConversionValueSchema_ = value; + } else { + skadnetworkConversionValueSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + builderForValue) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + skadnetworkConversionValueSchema_ = builderForValue.build(); + } else { + skadnetworkConversionValueSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && skadnetworkConversionValueSchema_ != null + && skadnetworkConversionValueSchema_ + != com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance()) { + getSkadnetworkConversionValueSchemaBuilder().mergeFrom(value); + } else { + skadnetworkConversionValueSchema_ = value; + } + } else { + skadnetworkConversionValueSchemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSkadnetworkConversionValueSchema() { + bitField0_ = (bitField0_ & ~0x00000002); + skadnetworkConversionValueSchema_ = null; + if (skadnetworkConversionValueSchemaBuilder_ != null) { + skadnetworkConversionValueSchemaBuilder_.dispose(); + skadnetworkConversionValueSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + getSkadnetworkConversionValueSchemaBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder() { + if (skadnetworkConversionValueSchemaBuilder_ != null) { + return skadnetworkConversionValueSchemaBuilder_.getMessageOrBuilder(); + } else { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance() + : skadnetworkConversionValueSchema_; + } + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + getSkadnetworkConversionValueSchemaFieldBuilder() { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + skadnetworkConversionValueSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( + getSkadnetworkConversionValueSchema(), getParentForChildren(), isClean()); + skadnetworkConversionValueSchema_ = null; + } + return skadnetworkConversionValueSchemaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) + private static final com.google.analytics.admin.v1alpha + .CreateSKAdNetworkConversionValueSchemaRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSKAdNetworkConversionValueSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..ba2fe182c2f5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequestOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateSKAdNetworkConversionValueSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this schema will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource where this schema will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + boolean hasSkadnetworkConversionValueSchema(); + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skadnetworkConversionValueSchema. + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema(); + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequest.java new file mode 100644 index 000000000000..0076507c255c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequest.java @@ -0,0 +1,942 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateSearchAds360Link RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} + */ +public final class CreateSearchAds360LinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) + CreateSearchAds360LinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSearchAds360LinkRequest.newBuilder() to construct. + private CreateSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSearchAds360LinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSearchAds360LinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEARCH_ADS_360_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; + /** + * + * + *
+   * Required. The SearchAds360Link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchAds360Link field is set. + */ + @java.lang.Override + public boolean hasSearchAds360Link() { + return searchAds360Link_ != null; + } + /** + * + * + *
+   * Required. The SearchAds360Link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchAds360Link. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } + /** + * + * + *
+   * Required. The SearchAds360Link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder + getSearchAds360LinkOrBuilder() { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (searchAds360Link_ != null) { + output.writeMessage(2, getSearchAds360Link()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (searchAds360Link_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSearchAds360Link()); + } + 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.admin.v1alpha.CreateSearchAds360LinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest other = + (com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSearchAds360Link() != other.hasSearchAds360Link()) return false; + if (hasSearchAds360Link()) { + if (!getSearchAds360Link().equals(other.getSearchAds360Link())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSearchAds360Link()) { + hash = (37 * hash) + SEARCH_ADS_360_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSearchAds360Link().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateSearchAds360Link RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + searchAds360Link_ = null; + if (searchAds360LinkBuilder_ != null) { + searchAds360LinkBuilder_.dispose(); + searchAds360LinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest build() { + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest result = + new com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.searchAds360Link_ = + searchAds360LinkBuilder_ == null ? searchAds360Link_ : searchAds360LinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSearchAds360Link()) { + mergeSearchAds360Link(other.getSearchAds360Link()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSearchAds360LinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + searchAds360LinkBuilder_; + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchAds360Link field is set. + */ + public boolean hasSearchAds360Link() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchAds360Link. + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { + if (searchAds360LinkBuilder_ == null) { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } else { + return searchAds360LinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchAds360Link_ = value; + } else { + searchAds360LinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSearchAds360Link( + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { + if (searchAds360LinkBuilder_ == null) { + searchAds360Link_ = builderForValue.build(); + } else { + searchAds360LinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSearchAds360Link( + com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && searchAds360Link_ != null + && searchAds360Link_ + != com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) { + getSearchAds360LinkBuilder().mergeFrom(value); + } else { + searchAds360Link_ = value; + } + } else { + searchAds360LinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSearchAds360Link() { + bitField0_ = (bitField0_ & ~0x00000002); + searchAds360Link_ = null; + if (searchAds360LinkBuilder_ != null) { + searchAds360LinkBuilder_.dispose(); + searchAds360LinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder + getSearchAds360LinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSearchAds360LinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder + getSearchAds360LinkOrBuilder() { + if (searchAds360LinkBuilder_ != null) { + return searchAds360LinkBuilder_.getMessageOrBuilder(); + } else { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } + } + /** + * + * + *
+     * Required. The SearchAds360Link to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + getSearchAds360LinkFieldBuilder() { + if (searchAds360LinkBuilder_ == null) { + searchAds360LinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( + getSearchAds360Link(), getParentForChildren(), isClean()); + searchAds360Link_ = null; + } + return searchAds360LinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSearchAds360LinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequestOrBuilder.java new file mode 100644 index 000000000000..4eea2a37c1f6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateSearchAds360LinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The SearchAds360Link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the searchAds360Link field is set. + */ + boolean hasSearchAds360Link(); + /** + * + * + *
+   * Required. The SearchAds360Link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The searchAds360Link. + */ + com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link(); + /** + * + * + *
+   * Required. The SearchAds360Link to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java new file mode 100644 index 000000000000..74f79c656287 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java @@ -0,0 +1,960 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest} + */ +public final class CreateSubpropertyEventFilterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + CreateSubpropertyEventFilterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSubpropertyEventFilterRequest.newBuilder() to construct. + private CreateSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSubpropertyEventFilterRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSubpropertyEventFilterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + @java.lang.Override + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; + } + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (subpropertyEventFilter_ != null) { + output.writeMessage(2, getSubpropertyEventFilter()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubpropertyEventFilter()); + } + 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.admin.v1alpha.CreateSubpropertyEventFilterRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty event
+     * filter. Format: properties/property_id Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } else { + return subpropertyEventFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subpropertyEventFilter_ = value; + } else { + subpropertyEventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); + } else { + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); + } else { + subpropertyEventFilter_ = value; + } + } else { + subpropertyEventFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); + } else { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + } + /** + * + * + *
+     * Required. The subproperty event filter to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; + } + return subpropertyEventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubpropertyEventFilterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java new file mode 100644 index 000000000000..f45fc7fba43c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateSubpropertyEventFilterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty event
+   * filter. Format: properties/property_id Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java new file mode 100644 index 000000000000..702859f450f2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java @@ -0,0 +1,1243 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateSubproperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyRequest} + */ +public final class CreateSubpropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + CreateSubpropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSubpropertyRequest.newBuilder() to construct. + private CreateSubpropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSubpropertyRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSubpropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBPROPERTY_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.Property subproperty_; + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subproperty field is set. + */ + @java.lang.Override + public boolean hasSubproperty() { + return subproperty_ != null; + } + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subproperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + @java.lang.Override + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; + } + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subpropertyEventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (subproperty_ != null) { + output.writeMessage(2, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + output.writeMessage(3, getSubpropertyEventFilter()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (subproperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSubpropertyEventFilter()); + } + 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.admin.v1alpha.CreateSubpropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest other = + (com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasSubproperty() != other.hasSubproperty()) return false; + if (hasSubproperty()) { + if (!getSubproperty().equals(other.getSubproperty())) return false; + } + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasSubproperty()) { + hash = (37 * hash) + SUBPROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getSubproperty().hashCode(); + } + if (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateSubproperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + com.google.analytics.admin.v1alpha.CreateSubpropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest build() { + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result = + new com.google.analytics.admin.v1alpha.CreateSubpropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subproperty_ = + subpropertyBuilder_ == null ? subproperty_ : subpropertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest other) { + if (other == com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSubproperty()) { + mergeSubproperty(other.getSubproperty()); + } + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getSubpropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ordinary property for which to create a subproperty.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.Property subproperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + subpropertyBuilder_; + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subproperty field is set. + */ + public boolean hasSubproperty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subproperty. + */ + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + if (subpropertyBuilder_ == null) { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } else { + return subpropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subproperty_ = value; + } else { + subpropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubproperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (subpropertyBuilder_ == null) { + subproperty_ = builderForValue.build(); + } else { + subpropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && subproperty_ != null + && subproperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getSubpropertyBuilder().mergeFrom(value); + } else { + subproperty_ = value; + } + } else { + subpropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSubproperty() { + bitField0_ = (bitField0_ & ~0x00000002); + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Property.Builder getSubpropertyBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSubpropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + if (subpropertyBuilder_ != null) { + return subpropertyBuilder_.getMessageOrBuilder(); + } else { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + } + /** + * + * + *
+     * Required. The subproperty to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getSubpropertyFieldBuilder() { + if (subpropertyBuilder_ == null) { + subpropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getSubproperty(), getParentForChildren(), isClean()); + subproperty_ = null; + } + return subpropertyBuilder_; + } + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subpropertyEventFilter. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } else { + return subpropertyEventFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subpropertyEventFilter_ = value; + } else { + subpropertyEventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); + } else { + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); + } else { + subpropertyEventFilter_ = value; + } + } else { + subpropertyEventFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000004); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); + } else { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + } + /** + * + * + *
+     * Optional. The subproperty event filter to create on an ordinary property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; + } + return subpropertyEventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + private static final com.google.analytics.admin.v1alpha.CreateSubpropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubpropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java new file mode 100644 index 000000000000..e9b8d29ea8da --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java @@ -0,0 +1,141 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateSubpropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The ordinary property for which to create a subproperty.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subproperty field is set. + */ + boolean hasSubproperty(); + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subproperty. + */ + com.google.analytics.admin.v1alpha.Property getSubproperty(); + /** + * + * + *
+   * Required. The subproperty to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder(); + + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * Optional. The subproperty event filter to create on an ordinary property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java new file mode 100644 index 000000000000..94c4378e0c6f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java @@ -0,0 +1,1000 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for CreateSubproperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyResponse} + */ +public final class CreateSubpropertyResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + CreateSubpropertyResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateSubpropertyResponse.newBuilder() to construct. + private CreateSubpropertyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateSubpropertyResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateSubpropertyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.Builder.class); + } + + public static final int SUBPROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property subproperty_; + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return Whether the subproperty field is set. + */ + @java.lang.Override + public boolean hasSubproperty() { + return subproperty_ != null; + } + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return The subproperty. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + @java.lang.Override + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; + } + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return The subpropertyEventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + + 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 (subproperty_ != null) { + output.writeMessage(1, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + output.writeMessage(2, getSubpropertyEventFilter()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (subproperty_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubproperty()); + } + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubpropertyEventFilter()); + } + 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.admin.v1alpha.CreateSubpropertyResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse other = + (com.google.analytics.admin.v1alpha.CreateSubpropertyResponse) obj; + + if (hasSubproperty() != other.hasSubproperty()) return false; + if (hasSubproperty()) { + if (!getSubproperty().equals(other.getSubproperty())) return false; + } + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) 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 (hasSubproperty()) { + hash = (37 * hash) + SUBPROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getSubproperty().hashCode(); + } + if (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for CreateSubproperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + com.google.analytics.admin.v1alpha.CreateSubpropertyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse build() { + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse buildPartial() { + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result = + new com.google.analytics.admin.v1alpha.CreateSubpropertyResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subproperty_ = + subpropertyBuilder_ == null ? subproperty_ : subpropertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateSubpropertyResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSubpropertyResponse other) { + if (other + == com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.getDefaultInstance()) + return this; + if (other.hasSubproperty()) { + mergeSubproperty(other.getSubproperty()); + } + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getSubpropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property subproperty_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + subpropertyBuilder_; + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return Whether the subproperty field is set. + */ + public boolean hasSubproperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return The subproperty. + */ + public com.google.analytics.admin.v1alpha.Property getSubproperty() { + if (subpropertyBuilder_ == null) { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } else { + return subpropertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder setSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subproperty_ = value; + } else { + subpropertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder setSubproperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (subpropertyBuilder_ == null) { + subproperty_ = builderForValue.build(); + } else { + subpropertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder mergeSubproperty(com.google.analytics.admin.v1alpha.Property value) { + if (subpropertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && subproperty_ != null + && subproperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getSubpropertyBuilder().mergeFrom(value); + } else { + subproperty_ = value; + } + } else { + subpropertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public Builder clearSubproperty() { + bitField0_ = (bitField0_ & ~0x00000001); + subproperty_ = null; + if (subpropertyBuilder_ != null) { + subpropertyBuilder_.dispose(); + subpropertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getSubpropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSubpropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { + if (subpropertyBuilder_ != null) { + return subpropertyBuilder_.getMessageOrBuilder(); + } else { + return subproperty_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : subproperty_; + } + } + /** + * + * + *
+     * The created subproperty.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getSubpropertyFieldBuilder() { + if (subpropertyBuilder_ == null) { + subpropertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getSubproperty(), getParentForChildren(), isClean()); + subproperty_ = null; + } + return subpropertyBuilder_; + } + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return The subpropertyEventFilter. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } else { + return subpropertyEventFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subpropertyEventFilter_ = value; + } else { + subpropertyEventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); + } else { + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); + } else { + subpropertyEventFilter_ = value; + } + } else { + subpropertyEventFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000002); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); + } else { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + } + /** + * + * + *
+     * The created subproperty event filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; + } + return subpropertyEventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + private static final com.google.analytics.admin.v1alpha.CreateSubpropertyResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyResponse(); + } + + public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateSubpropertyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java new file mode 100644 index 000000000000..92cd1a374a4f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java @@ -0,0 +1,99 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateSubpropertyResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return Whether the subproperty field is set. + */ + boolean hasSubproperty(); + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + * + * @return The subproperty. + */ + com.google.analytics.admin.v1alpha.Property getSubproperty(); + /** + * + * + *
+   * The created subproperty.
+   * 
+ * + * .google.analytics.admin.v1alpha.Property subproperty = 1; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder(); + + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * The created subproperty event filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java new file mode 100644 index 000000000000..460ffb7d7ac8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java @@ -0,0 +1,1762 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A definition for a CustomDimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} + */ +public final class CustomDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomDimension) + CustomDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomDimension.newBuilder() to construct. + private CustomDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomDimension() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomDimension(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomDimension.class, + com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); + } + + /** + * + * + *
+   * Valid values for the scope of this dimension.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomDimension.DimensionScope} + */ + public enum DimensionScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + DIMENSION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + USER(2), + /** + * + * + *
+     * Dimension scoped to eCommerce items
+     * 
+ * + * ITEM = 3; + */ + ITEM(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + public static final int DIMENSION_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + public static final int USER_VALUE = 2; + /** + * + * + *
+     * Dimension scoped to eCommerce items
+     * 
+ * + * ITEM = 3; + */ + public static final int ITEM_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 DimensionScope 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 DimensionScope forNumber(int value) { + switch (value) { + case 0: + return DIMENSION_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + case 2: + return USER; + case 3: + return ITEM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DimensionScope findValueByNumber(int number) { + return DimensionScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomDimension.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DimensionScope[] VALUES = values(); + + public static DimensionScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DimensionScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomDimension.DimensionScope) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterName_ = ""; + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + 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(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 5; + private int scope_ = 0; + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + + public static final int DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER = 6; + private boolean disallowAdsPersonalization_ = false; + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from
+   * ads personalization.
+   *
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + + 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(parameterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + output.writeBool(6, disallowAdsPersonalization_); + } + 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(parameterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disallowAdsPersonalization_); + } + 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.admin.v1alpha.CustomDimension)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CustomDimension other = + (com.google.analytics.admin.v1alpha.CustomDimension) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (scope_ != other.scope_) return false; + if (getDisallowAdsPersonalization() != other.getDisallowAdsPersonalization()) 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) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisallowAdsPersonalization()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.CustomDimension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A definition for a CustomDimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomDimension) + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomDimension.class, + com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CustomDimension.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + scope_ = 0; + disallowAdsPersonalization_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension build() { + com.google.analytics.admin.v1alpha.CustomDimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension buildPartial() { + com.google.analytics.admin.v1alpha.CustomDimension result = + new com.google.analytics.admin.v1alpha.CustomDimension(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CustomDimension result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameterName_ = parameterName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disallowAdsPersonalization_ = disallowAdsPersonalization_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CustomDimension) { + return mergeFrom((com.google.analytics.admin.v1alpha.CustomDimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomDimension other) { + if (other == com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.getDisallowAdsPersonalization() != false) { + setDisallowAdsPersonalization(other.getDisallowAdsPersonalization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parameterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + disallowAdsPersonalization_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.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. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + parameterName_ = getDefaultInstance().getParameterName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000010); + scope_ = 0; + onChanged(); + return this; + } + + private boolean disallowAdsPersonalization_; + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from
+     * ads personalization.
+     *
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from
+     * ads personalization.
+     *
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disallowAdsPersonalization to set. + * @return This builder for chaining. + */ + public Builder setDisallowAdsPersonalization(boolean value) { + + disallowAdsPersonalization_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from
+     * ads personalization.
+     *
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisallowAdsPersonalization() { + bitField0_ = (bitField0_ & ~0x00000020); + disallowAdsPersonalization_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CustomDimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomDimension) + private static final com.google.analytics.admin.v1alpha.CustomDimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomDimension(); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomDimension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java new file mode 100644 index 000000000000..ed6ce564610b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java @@ -0,0 +1,208 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface CustomDimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomDimension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope(); + + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from
+   * ads personalization.
+   *
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + boolean getDisallowAdsPersonalization(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java new file mode 100644 index 000000000000..58cadffe5ad0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -0,0 +1,2717 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A definition for a custom metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} + */ +public final class CustomMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomMetric) + CustomMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomMetric.newBuilder() to construct. + private CustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomMetric() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + measurementUnit_ = 0; + scope_ = 0; + restrictedMetricType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomMetric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomMetric.class, + com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); + } + + /** + * + * + *
+   * Possible types of representing the custom metric's value.
+   *
+   * Currency representation may change in the future, requiring a breaking API
+   * change.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit} + */ + public enum MeasurementUnit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + MEASUREMENT_UNIT_UNSPECIFIED(0), + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + CURRENCY(2), + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + FEET(3), + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + METERS(4), + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + KILOMETERS(5), + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + MILES(6), + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + MILLISECONDS(7), + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + SECONDS(8), + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + MINUTES(9), + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + HOURS(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + public static final int CURRENCY_VALUE = 2; + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + public static final int FEET_VALUE = 3; + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + public static final int METERS_VALUE = 4; + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + public static final int KILOMETERS_VALUE = 5; + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + public static final int MILES_VALUE = 6; + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + public static final int MILLISECONDS_VALUE = 7; + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + public static final int SECONDS_VALUE = 8; + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + public static final int MINUTES_VALUE = 9; + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + public static final int HOURS_VALUE = 10; + + 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 MeasurementUnit 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 MeasurementUnit forNumber(int value) { + switch (value) { + case 0: + return MEASUREMENT_UNIT_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return CURRENCY; + case 3: + return FEET; + case 4: + return METERS; + case 5: + return KILOMETERS; + case 6: + return MILES; + case 7: + return MILLISECONDS; + case 8: + return SECONDS; + case 9: + return MINUTES; + case 10: + return HOURS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MeasurementUnit findValueByNumber(int number) { + return MeasurementUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(0); + } + + private static final MeasurementUnit[] VALUES = values(); + + public static MeasurementUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MeasurementUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit) + } + + /** + * + * + *
+   * The scope of this metric.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MetricScope} + */ + public enum MetricScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + METRIC_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + public static final int METRIC_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + + 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 MetricScope 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 MetricScope forNumber(int value) { + switch (value) { + case 0: + return METRIC_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricScope findValueByNumber(int number) { + return MetricScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(1); + } + + private static final MetricScope[] VALUES = values(); + + public static MetricScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MetricScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MetricScope) + } + + /** + * + * + *
+   * Labels that mark the data in this custom metric as data that should be
+   * restricted to specific users.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType} + */ + public enum RestrictedMetricType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Type unknown or unspecified.
+     * 
+ * + * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + RESTRICTED_METRIC_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Metric reports cost data.
+     * 
+ * + * COST_DATA = 1; + */ + COST_DATA(1), + /** + * + * + *
+     * Metric reports revenue data.
+     * 
+ * + * REVENUE_DATA = 2; + */ + REVENUE_DATA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Type unknown or unspecified.
+     * 
+ * + * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + public static final int RESTRICTED_METRIC_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Metric reports cost data.
+     * 
+ * + * COST_DATA = 1; + */ + public static final int COST_DATA_VALUE = 1; + /** + * + * + *
+     * Metric reports revenue data.
+     * 
+ * + * REVENUE_DATA = 2; + */ + public static final int REVENUE_DATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RestrictedMetricType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RestrictedMetricType forNumber(int value) { + switch (value) { + case 0: + return RESTRICTED_METRIC_TYPE_UNSPECIFIED; + case 1: + return COST_DATA; + case 2: + return REVENUE_DATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RestrictedMetricType findValueByNumber(int number) { + return RestrictedMetricType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(2); + } + + private static final RestrictedMetricType[] VALUES = values(); + + public static RestrictedMetricType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RestrictedMetricType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterName_ = ""; + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + 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(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEASUREMENT_UNIT_FIELD_NUMBER = 5; + private int measurementUnit_ = 0; + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.forNumber(measurementUnit_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_ = 0; + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + + public static final int RESTRICTED_METRIC_TYPE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List restrictedMetricType_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType> + restrictedMetricType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>() { + public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType convert( + java.lang.Integer from) { + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType result = + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType.forNumber( + from); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + .UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + @java.lang.Override + public java.util.List + getRestrictedMetricTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>( + restrictedMetricType_, restrictedMetricType_converter_); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + @java.lang.Override + public int getRestrictedMetricTypeCount() { + return restrictedMetricType_.size(); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + getRestrictedMetricType(int index) { + return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + @java.lang.Override + public java.util.List getRestrictedMetricTypeValueList() { + return restrictedMetricType_; + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + @java.lang.Override + public int getRestrictedMetricTypeValue(int index) { + return restrictedMetricType_.get(index); + } + + private int restrictedMetricTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } + if (getRestrictedMetricTypeList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(restrictedMetricTypeMemoizedSerializedSize); + } + for (int i = 0; i < restrictedMetricType_.size(); i++) { + output.writeEnumNoTag(restrictedMetricType_.get(i)); + } + 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(parameterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedMetricType_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + restrictedMetricType_.get(i)); + } + size += dataSize; + if (!getRestrictedMetricTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + restrictedMetricTypeMemoizedSerializedSize = dataSize; + } + size += 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.admin.v1alpha.CustomMetric)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CustomMetric other = + (com.google.analytics.admin.v1alpha.CustomMetric) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (measurementUnit_ != other.measurementUnit_) return false; + if (scope_ != other.scope_) return false; + if (!restrictedMetricType_.equals(other.restrictedMetricType_)) return false; + if (!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) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MEASUREMENT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + measurementUnit_; + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + if (getRestrictedMetricTypeCount() > 0) { + hash = (37 * hash) + RESTRICTED_METRIC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + restrictedMetricType_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.CustomMetric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A definition for a custom metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomMetric) + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomMetric.class, + com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CustomMetric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + measurementUnit_ = 0; + scope_ = 0; + restrictedMetricType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric build() { + com.google.analytics.admin.v1alpha.CustomMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric buildPartial() { + com.google.analytics.admin.v1alpha.CustomMetric result = + new com.google.analytics.admin.v1alpha.CustomMetric(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.CustomMetric result) { + if (((bitField0_ & 0x00000040) != 0)) { + restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.restrictedMetricType_ = restrictedMetricType_; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.CustomMetric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameterName_ = parameterName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.measurementUnit_ = measurementUnit_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.scope_ = scope_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CustomMetric) { + return mergeFrom((com.google.analytics.admin.v1alpha.CustomMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomMetric other) { + if (other == com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.measurementUnit_ != 0) { + setMeasurementUnitValue(other.getMeasurementUnitValue()); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (!other.restrictedMetricType_.isEmpty()) { + if (restrictedMetricType_.isEmpty()) { + restrictedMetricType_ = other.restrictedMetricType_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.addAll(other.restrictedMetricType_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parameterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + measurementUnit_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 64: + { + int tmpRaw = input.readEnum(); + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(tmpRaw); + break; + } // case 64 + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.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. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + parameterName_ = getDefaultInstance().getParameterName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int measurementUnit_ = 0; + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnitValue(int value) { + measurementUnit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.forNumber( + measurementUnit_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnit( + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + measurementUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMeasurementUnit() { + bitField0_ = (bitField0_ & ~0x00000010); + measurementUnit_ = 0; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.analytics.admin.v1alpha.CustomMetric.MetricScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000020); + scope_ = 0; + onChanged(); + return this; + } + + private java.util.List restrictedMetricType_ = + java.util.Collections.emptyList(); + + private void ensureRestrictedMetricTypeIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + restrictedMetricType_ = new java.util.ArrayList(restrictedMetricType_); + bitField0_ |= 0x00000040; + } + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + public java.util.List + getRestrictedMetricTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>( + restrictedMetricType_, restrictedMetricType_converter_); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + public int getRestrictedMetricTypeCount() { + return restrictedMetricType_.size(); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType + getRestrictedMetricType(int index) { + return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The restrictedMetricType to set. + * @return This builder for chaining. + */ + public Builder setRestrictedMetricType( + int index, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addRestrictedMetricType( + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedMetricType( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType> + values) { + ensureRestrictedMetricTypeIsMutable(); + for (com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value : values) { + restrictedMetricType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRestrictedMetricType() { + restrictedMetricType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + public java.util.List getRestrictedMetricTypeValueList() { + return java.util.Collections.unmodifiableList(restrictedMetricType_); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + public int getRestrictedMetricTypeValue(int index) { + return restrictedMetricType_.get(index); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for restrictedMetricType to set. + * @return This builder for chaining. + */ + public Builder setRestrictedMetricTypeValue(int index, int value) { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addRestrictedMetricTypeValue(int value) { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedMetricTypeValue(java.lang.Iterable values) { + ensureRestrictedMetricTypeIsMutable(); + for (int value : values) { + restrictedMetricType_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CustomMetric) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomMetric) + private static final com.google.analytics.admin.v1alpha.CustomMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomMetric(); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java new file mode 100644 index 000000000000..f9584e4bddff --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java @@ -0,0 +1,296 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface CustomMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + int getMeasurementUnitValue(); + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementUnit. + */ + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit(); + + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope(); + + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + java.util.List + getRestrictedMetricTypeList(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + int getRestrictedMetricTypeCount(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType getRestrictedMetricType( + int index); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + java.util.List getRestrictedMetricTypeValueList(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + int getRestrictedMetricTypeValue(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java new file mode 100644 index 000000000000..1ca895bb81aa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java @@ -0,0 +1,1186 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Settings for client-side data redaction. Singleton resource under a Web
+ * Stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRedactionSettings} + */ +public final class DataRedactionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataRedactionSettings) + DataRedactionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataRedactionSettings.newBuilder() to construct. + private DataRedactionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataRedactionSettings() { + name_ = ""; + queryParameterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataRedactionSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Name of this Data Redaction Settings resource.
+   * Format:
+   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of this Data Redaction Settings resource.
+   * Format:
+   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EMAIL_REDACTION_ENABLED_FIELD_NUMBER = 2; + private boolean emailRedactionEnabled_ = false; + /** + * + * + *
+   * If enabled, any event parameter or user property values that look like an
+   * email will be redacted.
+   * 
+ * + * bool email_redaction_enabled = 2; + * + * @return The emailRedactionEnabled. + */ + @java.lang.Override + public boolean getEmailRedactionEnabled() { + return emailRedactionEnabled_; + } + + public static final int QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER = 3; + private boolean queryParameterRedactionEnabled_ = false; + /** + * + * + *
+   * Query Parameter redaction removes the key and value portions of a
+   * query parameter if it is in the configured set of query parameters.
+   *
+   * If enabled, URL query replacement logic will be run for the Stream. Any
+   * query parameters defined in query_parameter_keys will be redacted.
+   * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @return The queryParameterRedactionEnabled. + */ + @java.lang.Override + public boolean getQueryParameterRedactionEnabled() { + return queryParameterRedactionEnabled_; + } + + public static final int QUERY_PARAMETER_KEYS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList queryParameterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return A list containing the queryParameterKeys. + */ + public com.google.protobuf.ProtocolStringList getQueryParameterKeysList() { + return queryParameterKeys_; + } + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return The count of queryParameterKeys. + */ + public int getQueryParameterKeysCount() { + return queryParameterKeys_.size(); + } + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the element to return. + * @return The queryParameterKeys at the given index. + */ + public java.lang.String getQueryParameterKeys(int index) { + return queryParameterKeys_.get(index); + } + /** + * + * + *
+   * The query parameter keys to apply redaction logic to if present in the URL.
+   * Query parameter matching is case-insensitive.
+   *
+   * Must contain at least one element if query_parameter_replacement_enabled
+   * is true. Keys cannot contain commas.
+   * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the value to return. + * @return The bytes of the queryParameterKeys at the given index. + */ + public com.google.protobuf.ByteString getQueryParameterKeysBytes(int index) { + return queryParameterKeys_.getByteString(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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (emailRedactionEnabled_ != false) { + output.writeBool(2, emailRedactionEnabled_); + } + if (queryParameterRedactionEnabled_ != false) { + output.writeBool(3, queryParameterRedactionEnabled_); + } + for (int i = 0; i < queryParameterKeys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryParameterKeys_.getRaw(i)); + } + 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 (emailRedactionEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, emailRedactionEnabled_); + } + if (queryParameterRedactionEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(3, queryParameterRedactionEnabled_); + } + { + int dataSize = 0; + for (int i = 0; i < queryParameterKeys_.size(); i++) { + dataSize += computeStringSizeNoTag(queryParameterKeys_.getRaw(i)); + } + size += dataSize; + size += 1 * getQueryParameterKeysList().size(); + } + 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.admin.v1alpha.DataRedactionSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataRedactionSettings other = + (com.google.analytics.admin.v1alpha.DataRedactionSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getEmailRedactionEnabled() != other.getEmailRedactionEnabled()) return false; + if (getQueryParameterRedactionEnabled() != other.getQueryParameterRedactionEnabled()) + return false; + if (!getQueryParameterKeysList().equals(other.getQueryParameterKeysList())) 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) + EMAIL_REDACTION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEmailRedactionEnabled()); + hash = (37 * hash) + QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getQueryParameterRedactionEnabled()); + if (getQueryParameterKeysCount() > 0) { + hash = (37 * hash) + QUERY_PARAMETER_KEYS_FIELD_NUMBER; + hash = (53 * hash) + getQueryParameterKeysList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DataRedactionSettings 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; + } + /** + * + * + *
+   * Settings for client-side data redaction. Singleton resource under a Web
+   * Stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRedactionSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataRedactionSettings) + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRedactionSettings.class, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataRedactionSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + emailRedactionEnabled_ = false; + queryParameterRedactionEnabled_ = false; + queryParameterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings build() { + com.google.analytics.admin.v1alpha.DataRedactionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings buildPartial() { + com.google.analytics.admin.v1alpha.DataRedactionSettings result = + new com.google.analytics.admin.v1alpha.DataRedactionSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DataRedactionSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.emailRedactionEnabled_ = emailRedactionEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.queryParameterRedactionEnabled_ = queryParameterRedactionEnabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + queryParameterKeys_.makeImmutable(); + result.queryParameterKeys_ = queryParameterKeys_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataRedactionSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataRedactionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataRedactionSettings other) { + if (other == com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getEmailRedactionEnabled() != false) { + setEmailRedactionEnabled(other.getEmailRedactionEnabled()); + } + if (other.getQueryParameterRedactionEnabled() != false) { + setQueryParameterRedactionEnabled(other.getQueryParameterRedactionEnabled()); + } + if (!other.queryParameterKeys_.isEmpty()) { + if (queryParameterKeys_.isEmpty()) { + queryParameterKeys_ = other.queryParameterKeys_; + bitField0_ |= 0x00000008; + } else { + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.addAll(other.queryParameterKeys_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + emailRedactionEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + queryParameterRedactionEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.add(s); + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.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. Name of this Data Redaction Settings resource.
+     * Format:
+     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean emailRedactionEnabled_; + /** + * + * + *
+     * If enabled, any event parameter or user property values that look like an
+     * email will be redacted.
+     * 
+ * + * bool email_redaction_enabled = 2; + * + * @return The emailRedactionEnabled. + */ + @java.lang.Override + public boolean getEmailRedactionEnabled() { + return emailRedactionEnabled_; + } + /** + * + * + *
+     * If enabled, any event parameter or user property values that look like an
+     * email will be redacted.
+     * 
+ * + * bool email_redaction_enabled = 2; + * + * @param value The emailRedactionEnabled to set. + * @return This builder for chaining. + */ + public Builder setEmailRedactionEnabled(boolean value) { + + emailRedactionEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, any event parameter or user property values that look like an
+     * email will be redacted.
+     * 
+ * + * bool email_redaction_enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearEmailRedactionEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + emailRedactionEnabled_ = false; + onChanged(); + return this; + } + + private boolean queryParameterRedactionEnabled_; + /** + * + * + *
+     * Query Parameter redaction removes the key and value portions of a
+     * query parameter if it is in the configured set of query parameters.
+     *
+     * If enabled, URL query replacement logic will be run for the Stream. Any
+     * query parameters defined in query_parameter_keys will be redacted.
+     * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @return The queryParameterRedactionEnabled. + */ + @java.lang.Override + public boolean getQueryParameterRedactionEnabled() { + return queryParameterRedactionEnabled_; + } + /** + * + * + *
+     * Query Parameter redaction removes the key and value portions of a
+     * query parameter if it is in the configured set of query parameters.
+     *
+     * If enabled, URL query replacement logic will be run for the Stream. Any
+     * query parameters defined in query_parameter_keys will be redacted.
+     * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @param value The queryParameterRedactionEnabled to set. + * @return This builder for chaining. + */ + public Builder setQueryParameterRedactionEnabled(boolean value) { + + queryParameterRedactionEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Query Parameter redaction removes the key and value portions of a
+     * query parameter if it is in the configured set of query parameters.
+     *
+     * If enabled, URL query replacement logic will be run for the Stream. Any
+     * query parameters defined in query_parameter_keys will be redacted.
+     * 
+ * + * bool query_parameter_redaction_enabled = 3; + * + * @return This builder for chaining. + */ + public Builder clearQueryParameterRedactionEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + queryParameterRedactionEnabled_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList queryParameterKeys_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureQueryParameterKeysIsMutable() { + if (!queryParameterKeys_.isModifiable()) { + queryParameterKeys_ = new com.google.protobuf.LazyStringArrayList(queryParameterKeys_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return A list containing the queryParameterKeys. + */ + public com.google.protobuf.ProtocolStringList getQueryParameterKeysList() { + queryParameterKeys_.makeImmutable(); + return queryParameterKeys_; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return The count of queryParameterKeys. + */ + public int getQueryParameterKeysCount() { + return queryParameterKeys_.size(); + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the element to return. + * @return The queryParameterKeys at the given index. + */ + public java.lang.String getQueryParameterKeys(int index) { + return queryParameterKeys_.get(index); + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index of the value to return. + * @return The bytes of the queryParameterKeys at the given index. + */ + public com.google.protobuf.ByteString getQueryParameterKeysBytes(int index) { + return queryParameterKeys_.getByteString(index); + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param index The index to set the value at. + * @param value The queryParameterKeys to set. + * @return This builder for chaining. + */ + public Builder setQueryParameterKeys(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param value The queryParameterKeys to add. + * @return This builder for chaining. + */ + public Builder addQueryParameterKeys(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param values The queryParameterKeys to add. + * @return This builder for chaining. + */ + public Builder addAllQueryParameterKeys(java.lang.Iterable values) { + ensureQueryParameterKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, queryParameterKeys_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @return This builder for chaining. + */ + public Builder clearQueryParameterKeys() { + queryParameterKeys_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The query parameter keys to apply redaction logic to if present in the URL.
+     * Query parameter matching is case-insensitive.
+     *
+     * Must contain at least one element if query_parameter_replacement_enabled
+     * is true. Keys cannot contain commas.
+     * 
+ * + * repeated string query_parameter_keys = 4; + * + * @param value The bytes of the queryParameterKeys to add. + * @return This builder for chaining. + */ + public Builder addQueryParameterKeysBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureQueryParameterKeysIsMutable(); + queryParameterKeys_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataRedactionSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataRedactionSettings) + private static final com.google.analytics.admin.v1alpha.DataRedactionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataRedactionSettings(); + } + + public static com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataRedactionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java similarity index 79% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java index 030217995f47..1e3f93b42ea5 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettingsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface DataRedactionSettingsOrBuilder extends +public interface DataRedactionSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataRedactionSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Name of this Data Redaction Settings resource.
    * Format:
@@ -16,10 +34,13 @@ public interface DataRedactionSettingsOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Name of this Data Redaction Settings resource.
    * Format:
@@ -28,23 +49,28 @@ public interface DataRedactionSettingsOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * If enabled, any event parameter or user property values that look like an
    * email will be redacted.
    * 
* * bool email_redaction_enabled = 2; + * * @return The emailRedactionEnabled. */ boolean getEmailRedactionEnabled(); /** + * + * *
    * Query Parameter redaction removes the key and value portions of a
    * query parameter if it is in the configured set of query parameters.
@@ -54,11 +80,14 @@ public interface DataRedactionSettingsOrBuilder extends
    * 
* * bool query_parameter_redaction_enabled = 3; + * * @return The queryParameterRedactionEnabled. */ boolean getQueryParameterRedactionEnabled(); /** + * + * *
    * The query parameter keys to apply redaction logic to if present in the URL.
    * Query parameter matching is case-insensitive.
@@ -68,11 +97,13 @@ public interface DataRedactionSettingsOrBuilder extends
    * 
* * repeated string query_parameter_keys = 4; + * * @return A list containing the queryParameterKeys. */ - java.util.List - getQueryParameterKeysList(); + java.util.List getQueryParameterKeysList(); /** + * + * *
    * The query parameter keys to apply redaction logic to if present in the URL.
    * Query parameter matching is case-insensitive.
@@ -82,10 +113,13 @@ public interface DataRedactionSettingsOrBuilder extends
    * 
* * repeated string query_parameter_keys = 4; + * * @return The count of queryParameterKeys. */ int getQueryParameterKeysCount(); /** + * + * *
    * The query parameter keys to apply redaction logic to if present in the URL.
    * Query parameter matching is case-insensitive.
@@ -95,11 +129,14 @@ public interface DataRedactionSettingsOrBuilder extends
    * 
* * repeated string query_parameter_keys = 4; + * * @param index The index of the element to return. * @return The queryParameterKeys at the given index. */ java.lang.String getQueryParameterKeys(int index); /** + * + * *
    * The query parameter keys to apply redaction logic to if present in the URL.
    * Query parameter matching is case-insensitive.
@@ -109,9 +146,9 @@ public interface DataRedactionSettingsOrBuilder extends
    * 
* * repeated string query_parameter_keys = 4; + * * @param index The index of the value to return. * @return The bytes of the queryParameterKeys at the given index. */ - com.google.protobuf.ByteString - getQueryParameterKeysBytes(int index); + com.google.protobuf.ByteString getQueryParameterKeysBytes(int index); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java new file mode 100644 index 000000000000..4f88a39a8b35 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java @@ -0,0 +1,1140 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Settings values for data retention. This is a singleton resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRetentionSettings} + */ +public final class DataRetentionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataRetentionSettings) + DataRetentionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataRetentionSettings.newBuilder() to construct. + private DataRetentionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataRetentionSettings() { + name_ = ""; + eventDataRetention_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataRetentionSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder.class); + } + + /** + * + * + *
+   * Valid values for the data retention duration.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration} + */ + public enum RetentionDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Data retention time duration is not specified.
+     * 
+ * + * RETENTION_DURATION_UNSPECIFIED = 0; + */ + RETENTION_DURATION_UNSPECIFIED(0), + /** + * + * + *
+     * The data retention time duration is 2 months.
+     * 
+ * + * TWO_MONTHS = 1; + */ + TWO_MONTHS(1), + /** + * + * + *
+     * The data retention time duration is 14 months.
+     * 
+ * + * FOURTEEN_MONTHS = 3; + */ + FOURTEEN_MONTHS(3), + /** + * + * + *
+     * The data retention time duration is 26 months.
+     * Available to 360 properties only.
+     * 
+ * + * TWENTY_SIX_MONTHS = 4; + */ + TWENTY_SIX_MONTHS(4), + /** + * + * + *
+     * The data retention time duration is 38 months.
+     * Available to 360 properties only.
+     * 
+ * + * THIRTY_EIGHT_MONTHS = 5; + */ + THIRTY_EIGHT_MONTHS(5), + /** + * + * + *
+     * The data retention time duration is 50 months.
+     * Available to 360 properties only.
+     * 
+ * + * FIFTY_MONTHS = 6; + */ + FIFTY_MONTHS(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Data retention time duration is not specified.
+     * 
+ * + * RETENTION_DURATION_UNSPECIFIED = 0; + */ + public static final int RETENTION_DURATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The data retention time duration is 2 months.
+     * 
+ * + * TWO_MONTHS = 1; + */ + public static final int TWO_MONTHS_VALUE = 1; + /** + * + * + *
+     * The data retention time duration is 14 months.
+     * 
+ * + * FOURTEEN_MONTHS = 3; + */ + public static final int FOURTEEN_MONTHS_VALUE = 3; + /** + * + * + *
+     * The data retention time duration is 26 months.
+     * Available to 360 properties only.
+     * 
+ * + * TWENTY_SIX_MONTHS = 4; + */ + public static final int TWENTY_SIX_MONTHS_VALUE = 4; + /** + * + * + *
+     * The data retention time duration is 38 months.
+     * Available to 360 properties only.
+     * 
+ * + * THIRTY_EIGHT_MONTHS = 5; + */ + public static final int THIRTY_EIGHT_MONTHS_VALUE = 5; + /** + * + * + *
+     * The data retention time duration is 50 months.
+     * Available to 360 properties only.
+     * 
+ * + * FIFTY_MONTHS = 6; + */ + public static final int FIFTY_MONTHS_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RetentionDuration 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 RetentionDuration forNumber(int value) { + switch (value) { + case 0: + return RETENTION_DURATION_UNSPECIFIED; + case 1: + return TWO_MONTHS; + case 3: + return FOURTEEN_MONTHS; + case 4: + return TWENTY_SIX_MONTHS; + case 5: + return THIRTY_EIGHT_MONTHS; + case 6: + return FIFTY_MONTHS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RetentionDuration findValueByNumber(int number) { + return RetentionDuration.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RetentionDuration[] VALUES = values(); + + public static RetentionDuration valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RetentionDuration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_DATA_RETENTION_FIELD_NUMBER = 2; + private int eventDataRetention_ = 0; + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + @java.lang.Override + public int getEventDataRetentionValue() { + return eventDataRetention_; + } + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + getEventDataRetention() { + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.forNumber( + eventDataRetention_); + return result == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.UNRECOGNIZED + : result; + } + + public static final int RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER = 3; + private boolean resetUserDataOnNewActivity_ = false; + /** + * + * + *
+   * If true, reset the retention period for the user identifier with every
+   * event from that user.
+   * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + @java.lang.Override + public boolean getResetUserDataOnNewActivity() { + return resetUserDataOnNewActivity_; + } + + 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 (eventDataRetention_ + != com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + .RETENTION_DURATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, eventDataRetention_); + } + if (resetUserDataOnNewActivity_ != false) { + output.writeBool(3, resetUserDataOnNewActivity_); + } + 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 (eventDataRetention_ + != com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + .RETENTION_DURATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventDataRetention_); + } + if (resetUserDataOnNewActivity_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, resetUserDataOnNewActivity_); + } + 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.admin.v1alpha.DataRetentionSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataRetentionSettings other = + (com.google.analytics.admin.v1alpha.DataRetentionSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (eventDataRetention_ != other.eventDataRetention_) return false; + if (getResetUserDataOnNewActivity() != other.getResetUserDataOnNewActivity()) 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) + EVENT_DATA_RETENTION_FIELD_NUMBER; + hash = (53 * hash) + eventDataRetention_; + hash = (37 * hash) + RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResetUserDataOnNewActivity()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DataRetentionSettings 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; + } + /** + * + * + *
+   * Settings values for data retention. This is a singleton resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRetentionSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataRetentionSettings) + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + eventDataRetention_ = 0; + resetUserDataOnNewActivity_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings build() { + com.google.analytics.admin.v1alpha.DataRetentionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings buildPartial() { + com.google.analytics.admin.v1alpha.DataRetentionSettings result = + new com.google.analytics.admin.v1alpha.DataRetentionSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DataRetentionSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventDataRetention_ = eventDataRetention_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resetUserDataOnNewActivity_ = resetUserDataOnNewActivity_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataRetentionSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataRetentionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataRetentionSettings other) { + if (other == com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.eventDataRetention_ != 0) { + setEventDataRetentionValue(other.getEventDataRetentionValue()); + } + if (other.getResetUserDataOnNewActivity() != false) { + setResetUserDataOnNewActivity(other.getResetUserDataOnNewActivity()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + eventDataRetention_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + resetUserDataOnNewActivity_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.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. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int eventDataRetention_ = 0; + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + @java.lang.Override + public int getEventDataRetentionValue() { + return eventDataRetention_; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @param value The enum numeric value on the wire for eventDataRetention to set. + * @return This builder for chaining. + */ + public Builder setEventDataRetentionValue(int value) { + eventDataRetention_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + getEventDataRetention() { + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.forNumber( + eventDataRetention_); + return result == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @param value The eventDataRetention to set. + * @return This builder for chaining. + */ + public Builder setEventDataRetention( + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + eventDataRetention_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearEventDataRetention() { + bitField0_ = (bitField0_ & ~0x00000002); + eventDataRetention_ = 0; + onChanged(); + return this; + } + + private boolean resetUserDataOnNewActivity_; + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + @java.lang.Override + public boolean getResetUserDataOnNewActivity() { + return resetUserDataOnNewActivity_; + } + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @param value The resetUserDataOnNewActivity to set. + * @return This builder for chaining. + */ + public Builder setResetUserDataOnNewActivity(boolean value) { + + resetUserDataOnNewActivity_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return This builder for chaining. + */ + public Builder clearResetUserDataOnNewActivity() { + bitField0_ = (bitField0_ & ~0x00000004); + resetUserDataOnNewActivity_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataRetentionSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataRetentionSettings) + private static final com.google.analytics.admin.v1alpha.DataRetentionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataRetentionSettings(); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataRetentionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java new file mode 100644 index 000000000000..1941ec614ac8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java @@ -0,0 +1,96 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface DataRetentionSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataRetentionSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + int getEventDataRetentionValue(); + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + getEventDataRetention(); + + /** + * + * + *
+   * If true, reset the retention period for the user identifier with every
+   * event from that user.
+   * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + boolean getResetUserDataOnNewActivity(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java new file mode 100644 index 000000000000..5db247009819 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java @@ -0,0 +1,1142 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing data sharing settings of a Google Analytics
+ * account.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataSharingSettings} + */ +public final class DataSharingSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataSharingSettings) + DataSharingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataSharingSettings.newBuilder() to construct. + private DataSharingSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataSharingSettings() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataSharingSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataSharingSettings.class, + com.google.analytics.admin.v1alpha.DataSharingSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER = 2; + private boolean sharingWithGoogleSupportEnabled_ = false; + /** + * + * + *
+   * Allows Google support to access the data in order to help troubleshoot
+   * issues.
+   * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return The sharingWithGoogleSupportEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleSupportEnabled() { + return sharingWithGoogleSupportEnabled_; + } + + public static final int SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER = 3; + private boolean sharingWithGoogleAssignedSalesEnabled_ = false; + /** + * + * + *
+   * Allows Google sales teams that are assigned to the customer to access the
+   * data in order to suggest configuration changes to improve results.
+   * Sales team restrictions still apply when enabled.
+   * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return The sharingWithGoogleAssignedSalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAssignedSalesEnabled() { + return sharingWithGoogleAssignedSalesEnabled_; + } + + public static final int SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER = 4; + private boolean sharingWithGoogleAnySalesEnabled_ = false; + /** + * + * + *
+   * Allows any of Google sales to access the data in order to suggest
+   * configuration changes to improve results.
+   * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return The sharingWithGoogleAnySalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAnySalesEnabled() { + return sharingWithGoogleAnySalesEnabled_; + } + + public static final int SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER = 5; + private boolean sharingWithGoogleProductsEnabled_ = false; + /** + * + * + *
+   * Allows Google to use the data to improve other Google products or services.
+   * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return The sharingWithGoogleProductsEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleProductsEnabled() { + return sharingWithGoogleProductsEnabled_; + } + + public static final int SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER = 6; + private boolean sharingWithOthersEnabled_ = false; + /** + * + * + *
+   * Allows Google to share the data anonymously in aggregate form with others.
+   * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return The sharingWithOthersEnabled. + */ + @java.lang.Override + public boolean getSharingWithOthersEnabled() { + return sharingWithOthersEnabled_; + } + + 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 (sharingWithGoogleSupportEnabled_ != false) { + output.writeBool(2, sharingWithGoogleSupportEnabled_); + } + if (sharingWithGoogleAssignedSalesEnabled_ != false) { + output.writeBool(3, sharingWithGoogleAssignedSalesEnabled_); + } + if (sharingWithGoogleAnySalesEnabled_ != false) { + output.writeBool(4, sharingWithGoogleAnySalesEnabled_); + } + if (sharingWithGoogleProductsEnabled_ != false) { + output.writeBool(5, sharingWithGoogleProductsEnabled_); + } + if (sharingWithOthersEnabled_ != false) { + output.writeBool(6, sharingWithOthersEnabled_); + } + 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 (sharingWithGoogleSupportEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, sharingWithGoogleSupportEnabled_); + } + if (sharingWithGoogleAssignedSalesEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, sharingWithGoogleAssignedSalesEnabled_); + } + if (sharingWithGoogleAnySalesEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, sharingWithGoogleAnySalesEnabled_); + } + if (sharingWithGoogleProductsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 5, sharingWithGoogleProductsEnabled_); + } + if (sharingWithOthersEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, sharingWithOthersEnabled_); + } + 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.admin.v1alpha.DataSharingSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataSharingSettings other = + (com.google.analytics.admin.v1alpha.DataSharingSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getSharingWithGoogleSupportEnabled() != other.getSharingWithGoogleSupportEnabled()) + return false; + if (getSharingWithGoogleAssignedSalesEnabled() + != other.getSharingWithGoogleAssignedSalesEnabled()) return false; + if (getSharingWithGoogleAnySalesEnabled() != other.getSharingWithGoogleAnySalesEnabled()) + return false; + if (getSharingWithGoogleProductsEnabled() != other.getSharingWithGoogleProductsEnabled()) + return false; + if (getSharingWithOthersEnabled() != other.getSharingWithOthersEnabled()) 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) + SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleSupportEnabled()); + hash = (37 * hash) + SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleAssignedSalesEnabled()); + hash = (37 * hash) + SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleAnySalesEnabled()); + hash = (37 * hash) + SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleProductsEnabled()); + hash = (37 * hash) + SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSharingWithOthersEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DataSharingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing data sharing settings of a Google Analytics
+   * account.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataSharingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataSharingSettings) + com.google.analytics.admin.v1alpha.DataSharingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataSharingSettings.class, + com.google.analytics.admin.v1alpha.DataSharingSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataSharingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sharingWithGoogleSupportEnabled_ = false; + sharingWithGoogleAssignedSalesEnabled_ = false; + sharingWithGoogleAnySalesEnabled_ = false; + sharingWithGoogleProductsEnabled_ = false; + sharingWithOthersEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataSharingSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataSharingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataSharingSettings build() { + com.google.analytics.admin.v1alpha.DataSharingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataSharingSettings buildPartial() { + com.google.analytics.admin.v1alpha.DataSharingSettings result = + new com.google.analytics.admin.v1alpha.DataSharingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DataSharingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sharingWithGoogleSupportEnabled_ = sharingWithGoogleSupportEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sharingWithGoogleAssignedSalesEnabled_ = sharingWithGoogleAssignedSalesEnabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sharingWithGoogleAnySalesEnabled_ = sharingWithGoogleAnySalesEnabled_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sharingWithGoogleProductsEnabled_ = sharingWithGoogleProductsEnabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sharingWithOthersEnabled_ = sharingWithOthersEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataSharingSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataSharingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataSharingSettings other) { + if (other == com.google.analytics.admin.v1alpha.DataSharingSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSharingWithGoogleSupportEnabled() != false) { + setSharingWithGoogleSupportEnabled(other.getSharingWithGoogleSupportEnabled()); + } + if (other.getSharingWithGoogleAssignedSalesEnabled() != false) { + setSharingWithGoogleAssignedSalesEnabled(other.getSharingWithGoogleAssignedSalesEnabled()); + } + if (other.getSharingWithGoogleAnySalesEnabled() != false) { + setSharingWithGoogleAnySalesEnabled(other.getSharingWithGoogleAnySalesEnabled()); + } + if (other.getSharingWithGoogleProductsEnabled() != false) { + setSharingWithGoogleProductsEnabled(other.getSharingWithGoogleProductsEnabled()); + } + if (other.getSharingWithOthersEnabled() != false) { + setSharingWithOthersEnabled(other.getSharingWithOthersEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sharingWithGoogleSupportEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + sharingWithGoogleAssignedSalesEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + sharingWithGoogleAnySalesEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + sharingWithGoogleProductsEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + sharingWithOthersEnabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.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. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean sharingWithGoogleSupportEnabled_; + /** + * + * + *
+     * Allows Google support to access the data in order to help troubleshoot
+     * issues.
+     * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return The sharingWithGoogleSupportEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleSupportEnabled() { + return sharingWithGoogleSupportEnabled_; + } + /** + * + * + *
+     * Allows Google support to access the data in order to help troubleshoot
+     * issues.
+     * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @param value The sharingWithGoogleSupportEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleSupportEnabled(boolean value) { + + sharingWithGoogleSupportEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google support to access the data in order to help troubleshoot
+     * issues.
+     * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleSupportEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + sharingWithGoogleSupportEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithGoogleAssignedSalesEnabled_; + /** + * + * + *
+     * Allows Google sales teams that are assigned to the customer to access the
+     * data in order to suggest configuration changes to improve results.
+     * Sales team restrictions still apply when enabled.
+     * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return The sharingWithGoogleAssignedSalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAssignedSalesEnabled() { + return sharingWithGoogleAssignedSalesEnabled_; + } + /** + * + * + *
+     * Allows Google sales teams that are assigned to the customer to access the
+     * data in order to suggest configuration changes to improve results.
+     * Sales team restrictions still apply when enabled.
+     * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @param value The sharingWithGoogleAssignedSalesEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleAssignedSalesEnabled(boolean value) { + + sharingWithGoogleAssignedSalesEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google sales teams that are assigned to the customer to access the
+     * data in order to suggest configuration changes to improve results.
+     * Sales team restrictions still apply when enabled.
+     * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleAssignedSalesEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + sharingWithGoogleAssignedSalesEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithGoogleAnySalesEnabled_; + /** + * + * + *
+     * Allows any of Google sales to access the data in order to suggest
+     * configuration changes to improve results.
+     * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return The sharingWithGoogleAnySalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAnySalesEnabled() { + return sharingWithGoogleAnySalesEnabled_; + } + /** + * + * + *
+     * Allows any of Google sales to access the data in order to suggest
+     * configuration changes to improve results.
+     * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @param value The sharingWithGoogleAnySalesEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { + + sharingWithGoogleAnySalesEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows any of Google sales to access the data in order to suggest
+     * configuration changes to improve results.
+     * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleAnySalesEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + sharingWithGoogleAnySalesEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithGoogleProductsEnabled_; + /** + * + * + *
+     * Allows Google to use the data to improve other Google products or services.
+     * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return The sharingWithGoogleProductsEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleProductsEnabled() { + return sharingWithGoogleProductsEnabled_; + } + /** + * + * + *
+     * Allows Google to use the data to improve other Google products or services.
+     * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @param value The sharingWithGoogleProductsEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleProductsEnabled(boolean value) { + + sharingWithGoogleProductsEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google to use the data to improve other Google products or services.
+     * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleProductsEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + sharingWithGoogleProductsEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithOthersEnabled_; + /** + * + * + *
+     * Allows Google to share the data anonymously in aggregate form with others.
+     * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return The sharingWithOthersEnabled. + */ + @java.lang.Override + public boolean getSharingWithOthersEnabled() { + return sharingWithOthersEnabled_; + } + /** + * + * + *
+     * Allows Google to share the data anonymously in aggregate form with others.
+     * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @param value The sharingWithOthersEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithOthersEnabled(boolean value) { + + sharingWithOthersEnabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google to share the data anonymously in aggregate form with others.
+     * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithOthersEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + sharingWithOthersEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataSharingSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataSharingSettings) + private static final com.google.analytics.admin.v1alpha.DataSharingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataSharingSettings(); + } + + public static com.google.analytics.admin.v1alpha.DataSharingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataSharingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataSharingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java new file mode 100644 index 000000000000..98108dcdb671 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java @@ -0,0 +1,123 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface DataSharingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataSharingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Allows Google support to access the data in order to help troubleshoot
+   * issues.
+   * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return The sharingWithGoogleSupportEnabled. + */ + boolean getSharingWithGoogleSupportEnabled(); + + /** + * + * + *
+   * Allows Google sales teams that are assigned to the customer to access the
+   * data in order to suggest configuration changes to improve results.
+   * Sales team restrictions still apply when enabled.
+   * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return The sharingWithGoogleAssignedSalesEnabled. + */ + boolean getSharingWithGoogleAssignedSalesEnabled(); + + /** + * + * + *
+   * Allows any of Google sales to access the data in order to suggest
+   * configuration changes to improve results.
+   * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return The sharingWithGoogleAnySalesEnabled. + */ + boolean getSharingWithGoogleAnySalesEnabled(); + + /** + * + * + *
+   * Allows Google to use the data to improve other Google products or services.
+   * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return The sharingWithGoogleProductsEnabled. + */ + boolean getSharingWithGoogleProductsEnabled(); + + /** + * + * + *
+   * Allows Google to share the data anonymously in aggregate form with others.
+   * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return The sharingWithOthersEnabled. + */ + boolean getSharingWithOthersEnabled(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java new file mode 100644 index 000000000000..227a231c5258 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java @@ -0,0 +1,5698 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a data stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream} + */ +public final class DataStream extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream) + DataStreamOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataStream.newBuilder() to construct. + private DataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataStream() { + name_ = ""; + type_ = 0; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataStream(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.class, + com.google.analytics.admin.v1alpha.DataStream.Builder.class); + } + + /** + * + * + *
+   * The type of the data stream.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.DataStream.DataStreamType} + */ + public enum DataStreamType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Type unknown or not specified.
+     * 
+ * + * DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + DATA_STREAM_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Web data stream.
+     * 
+ * + * WEB_DATA_STREAM = 1; + */ + WEB_DATA_STREAM(1), + /** + * + * + *
+     * Android app data stream.
+     * 
+ * + * ANDROID_APP_DATA_STREAM = 2; + */ + ANDROID_APP_DATA_STREAM(2), + /** + * + * + *
+     * iOS app data stream.
+     * 
+ * + * IOS_APP_DATA_STREAM = 3; + */ + IOS_APP_DATA_STREAM(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Type unknown or not specified.
+     * 
+ * + * DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_STREAM_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Web data stream.
+     * 
+ * + * WEB_DATA_STREAM = 1; + */ + public static final int WEB_DATA_STREAM_VALUE = 1; + /** + * + * + *
+     * Android app data stream.
+     * 
+ * + * ANDROID_APP_DATA_STREAM = 2; + */ + public static final int ANDROID_APP_DATA_STREAM_VALUE = 2; + /** + * + * + *
+     * iOS app data stream.
+     * 
+ * + * IOS_APP_DATA_STREAM = 3; + */ + public static final int IOS_APP_DATA_STREAM_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataStreamType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataStreamType forNumber(int value) { + switch (value) { + case 0: + return DATA_STREAM_TYPE_UNSPECIFIED; + case 1: + return WEB_DATA_STREAM; + case 2: + return ANDROID_APP_DATA_STREAM; + case 3: + return IOS_APP_DATA_STREAM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataStreamType findValueByNumber(int number) { + return DataStreamType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.DataStream.getDescriptor().getEnumTypes().get(0); + } + + private static final DataStreamType[] VALUES = values(); + + public static DataStreamType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataStreamType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.DataStream.DataStreamType) + } + + public interface WebStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.WebStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The measurementId. + */ + java.lang.String getMeasurementId(); + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for measurementId. + */ + com.google.protobuf.ByteString getMeasurementIdBytes(); + + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + java.lang.String getFirebaseAppId(); + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The defaultUri. + */ + java.lang.String getDefaultUri(); + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The bytes for defaultUri. + */ + com.google.protobuf.ByteString getDefaultUriBytes(); + } + /** + * + * + *
+   * Data specific to web streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.WebStreamData} + */ + public static final class WebStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.WebStreamData) + WebStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WebStreamData.newBuilder() to construct. + private WebStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WebStreamData() { + measurementId_ = ""; + firebaseAppId_ = ""; + defaultUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WebStreamData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder.class); + } + + public static final int MEASUREMENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object measurementId_ = ""; + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The measurementId. + */ + @java.lang.Override + public java.lang.String getMeasurementId() { + java.lang.Object ref = measurementId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + measurementId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for measurementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMeasurementIdBytes() { + java.lang.Object ref = measurementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + measurementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + @java.lang.Override + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultUri_ = ""; + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The defaultUri. + */ + @java.lang.Override + public java.lang.String getDefaultUri() { + java.lang.Object ref = defaultUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultUri_ = s; + return s; + } + } + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The bytes for defaultUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultUriBytes() { + java.lang.Object ref = defaultUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, measurementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultUri_); + } + 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(measurementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, measurementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultUri_); + } + size += 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.admin.v1alpha.DataStream.WebStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream.WebStreamData other = + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) obj; + + if (!getMeasurementId().equals(other.getMeasurementId())) return false; + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getDefaultUri().equals(other.getDefaultUri())) return false; + if (!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) + MEASUREMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementId().hashCode(); + hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + DEFAULT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDefaultUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Data specific to web streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.WebStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.WebStreamData) + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataStream.WebStreamData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + measurementId_ = ""; + firebaseAppId_ = ""; + defaultUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData build() { + com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData buildPartial() { + com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = + new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.measurementId_ = measurementId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firebaseAppId_ = firebaseAppId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultUri_ = defaultUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataStream.WebStreamData) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.WebStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream.WebStreamData other) { + if (other + == com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance()) + return this; + if (!other.getMeasurementId().isEmpty()) { + measurementId_ = other.measurementId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDefaultUri().isEmpty()) { + defaultUri_ = other.defaultUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + measurementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + firebaseAppId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + defaultUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object measurementId_ = ""; + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The measurementId. + */ + public java.lang.String getMeasurementId() { + java.lang.Object ref = measurementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + measurementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for measurementId. + */ + public com.google.protobuf.ByteString getMeasurementIdBytes() { + java.lang.Object ref = measurementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + measurementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The measurementId to set. + * @return This builder for chaining. + */ + public Builder setMeasurementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + measurementId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMeasurementId() { + measurementId_ = getDefaultInstance().getMeasurementId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for measurementId to set. + * @return This builder for chaining. + */ + public Builder setMeasurementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + measurementId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firebaseAppId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFirebaseAppId() { + firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firebaseAppId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object defaultUri_ = ""; + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @return The defaultUri. + */ + public java.lang.String getDefaultUri() { + java.lang.Object ref = defaultUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @return The bytes for defaultUri. + */ + public com.google.protobuf.ByteString getDefaultUriBytes() { + java.lang.Object ref = defaultUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @param value The defaultUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefaultUri() { + defaultUri_ = getDefaultInstance().getDefaultUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @param value The bytes for defaultUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.WebStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.WebStreamData) + private static final com.google.analytics.admin.v1alpha.DataStream.WebStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(); + } + + public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AndroidAppStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + java.lang.String getFirebaseAppId(); + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The packageName. + */ + java.lang.String getPackageName(); + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + com.google.protobuf.ByteString getPackageNameBytes(); + } + /** + * + * + *
+   * Data specific to Android app streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} + */ + public static final class AndroidAppStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + AndroidAppStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AndroidAppStreamData.newBuilder() to construct. + private AndroidAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AndroidAppStreamData() { + firebaseAppId_ = ""; + packageName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AndroidAppStreamData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder.class); + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + @java.lang.Override + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PACKAGE_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object packageName_ = ""; + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The packageName. + */ + @java.lang.Override + public java.lang.String getPackageName() { + java.lang.Object ref = packageName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageName_ = s; + return s; + } + } + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageNameBytes() { + java.lang.Object ref = packageName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageName_); + } + 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(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packageName_); + } + size += 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.admin.v1alpha.DataStream.AndroidAppStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData other = + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) obj; + + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getPackageName().equals(other.getPackageName())) return false; + if (!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) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPackageName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Data specific to Android app streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firebaseAppId_ = ""; + packageName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData build() { + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData buildPartial() { + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = + new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firebaseAppId_ = firebaseAppId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.packageName_ = packageName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData other) { + if (other + == com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance()) return this; + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPackageName().isEmpty()) { + packageName_ = other.packageName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + firebaseAppId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + packageName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFirebaseAppId() { + firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object packageName_ = ""; + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The packageName. + */ + public java.lang.String getPackageName() { + java.lang.Object ref = packageName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + public com.google.protobuf.ByteString getPackageNameBytes() { + java.lang.Object ref = packageName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The packageName to set. + * @return This builder for chaining. + */ + public Builder setPackageName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearPackageName() { + packageName_ = getDefaultInstance().getPackageName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for packageName to set. + * @return This builder for chaining. + */ + public Builder setPackageNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + private static final com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); + } + + public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndroidAppStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IosAppStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + java.lang.String getFirebaseAppId(); + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bundleId. + */ + java.lang.String getBundleId(); + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + com.google.protobuf.ByteString getBundleIdBytes(); + } + /** + * + * + *
+   * Data specific to iOS app streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.IosAppStreamData} + */ + public static final class IosAppStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + IosAppStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use IosAppStreamData.newBuilder() to construct. + private IosAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IosAppStreamData() { + firebaseAppId_ = ""; + bundleId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IosAppStreamData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder.class); + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + @java.lang.Override + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUNDLE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bundleId_ = ""; + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bundleId. + */ + @java.lang.Override + public java.lang.String getBundleId() { + java.lang.Object ref = bundleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bundleId_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBundleIdBytes() { + java.lang.Object ref = bundleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bundleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bundleId_); + } + 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(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bundleId_); + } + size += 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.admin.v1alpha.DataStream.IosAppStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData other = + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) obj; + + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getBundleId().equals(other.getBundleId())) return false; + if (!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) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + BUNDLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getBundleId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Data specific to iOS app streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.IosAppStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.class, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firebaseAppId_ = ""; + bundleId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData build() { + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData buildPartial() { + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = + new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firebaseAppId_ = firebaseAppId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bundleId_ = bundleId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData other) { + if (other + == com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance()) + return this; + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBundleId().isEmpty()) { + bundleId_ = other.bundleId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + firebaseAppId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bundleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFirebaseAppId() { + firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object bundleId_ = ""; + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bundleId. + */ + public java.lang.String getBundleId() { + java.lang.Object ref = bundleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bundleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + public com.google.protobuf.ByteString getBundleIdBytes() { + java.lang.Object ref = bundleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bundleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bundleId to set. + * @return This builder for chaining. + */ + public Builder setBundleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bundleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearBundleId() { + bundleId_ = getDefaultInstance().getBundleId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for bundleId to set. + * @return This builder for chaining. + */ + public Builder setBundleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bundleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) + private static final com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); + } + + public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IosAppStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int streamDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object streamData_; + + public enum StreamDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEB_STREAM_DATA(6), + ANDROID_APP_STREAM_DATA(7), + IOS_APP_STREAM_DATA(8), + STREAMDATA_NOT_SET(0); + private final int value; + + private StreamDataCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StreamDataCase valueOf(int value) { + return forNumber(value); + } + + public static StreamDataCase forNumber(int value) { + switch (value) { + case 6: + return WEB_STREAM_DATA; + case 7: + return ANDROID_APP_STREAM_DATA; + case 8: + return IOS_APP_STREAM_DATA; + case 0: + return STREAMDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StreamDataCase getStreamDataCase() { + return StreamDataCase.forNumber(streamDataCase_); + } + + public static final int WEB_STREAM_DATA_FIELD_NUMBER = 6; + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + @java.lang.Override + public boolean hasWebStreamData() { + return streamDataCase_ == 6; + } + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData() { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder + getWebStreamDataOrBuilder() { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + + public static final int ANDROID_APP_STREAM_DATA_FIELD_NUMBER = 7; + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + @java.lang.Override + public boolean hasAndroidAppStreamData() { + return streamDataCase_ == 7; + } + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getAndroidAppStreamData() { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder() { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); + } + + public static final int IOS_APP_STREAM_DATA_FIELD_NUMBER = 8; + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + @java.lang.Override + public boolean hasIosAppStreamData() { + return streamDataCase_ == 8; + } + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData() { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder() { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { + com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = + com.google.analytics.admin.v1alpha.DataStream.DataStreamType.forNumber(type_); + return result == null + ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ + != com.google.analytics.admin.v1alpha.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + if (streamDataCase_ == 6) { + output.writeMessage( + 6, (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); + } + if (streamDataCase_ == 7) { + output.writeMessage( + 7, (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_); + } + if (streamDataCase_ == 8) { + output.writeMessage( + 8, (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); + } + 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 (type_ + != com.google.analytics.admin.v1alpha.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (streamDataCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); + } + if (streamDataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_); + } + if (streamDataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); + } + size += 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.admin.v1alpha.DataStream)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataStream other = + (com.google.analytics.admin.v1alpha.DataStream) obj; + + if (!getName().equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getStreamDataCase().equals(other.getStreamDataCase())) return false; + switch (streamDataCase_) { + case 6: + if (!getWebStreamData().equals(other.getWebStreamData())) return false; + break; + case 7: + if (!getAndroidAppStreamData().equals(other.getAndroidAppStreamData())) return false; + break; + case 8: + if (!getIosAppStreamData().equals(other.getIosAppStreamData())) return false; + break; + case 0: + default: + } + if (!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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + switch (streamDataCase_) { + case 6: + hash = (37 * hash) + WEB_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getWebStreamData().hashCode(); + break; + case 7: + hash = (37 * hash) + ANDROID_APP_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppStreamData().hashCode(); + break; + case 8: + hash = (37 * hash) + IOS_APP_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getIosAppStreamData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataStream parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataStream prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a data stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataStream} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream) + com.google.analytics.admin.v1alpha.DataStreamOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataStream.class, + com.google.analytics.admin.v1alpha.DataStream.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataStream.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (webStreamDataBuilder_ != null) { + webStreamDataBuilder_.clear(); + } + if (androidAppStreamDataBuilder_ != null) { + androidAppStreamDataBuilder_.clear(); + } + if (iosAppStreamDataBuilder_ != null) { + iosAppStreamDataBuilder_.clear(); + } + name_ = ""; + type_ = 0; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + streamDataCase_ = 0; + streamData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream build() { + com.google.analytics.admin.v1alpha.DataStream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream buildPartial() { + com.google.analytics.admin.v1alpha.DataStream result = + new com.google.analytics.admin.v1alpha.DataStream(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DataStream result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1alpha.DataStream result) { + result.streamDataCase_ = streamDataCase_; + result.streamData_ = this.streamData_; + if (streamDataCase_ == 6 && webStreamDataBuilder_ != null) { + result.streamData_ = webStreamDataBuilder_.build(); + } + if (streamDataCase_ == 7 && androidAppStreamDataBuilder_ != null) { + result.streamData_ = androidAppStreamDataBuilder_.build(); + } + if (streamDataCase_ == 8 && iosAppStreamDataBuilder_ != null) { + result.streamData_ = iosAppStreamDataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataStream) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataStream) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream other) { + if (other == com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getStreamDataCase()) { + case WEB_STREAM_DATA: + { + mergeWebStreamData(other.getWebStreamData()); + break; + } + case ANDROID_APP_STREAM_DATA: + { + mergeAndroidAppStreamData(other.getAndroidAppStreamData()); + break; + } + case IOS_APP_STREAM_DATA: + { + mergeIosAppStreamData(other.getIosAppStreamData()); + break; + } + case STREAMDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 16 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 42 + case 50: + { + input.readMessage(getWebStreamDataFieldBuilder().getBuilder(), extensionRegistry); + streamDataCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getAndroidAppStreamDataFieldBuilder().getBuilder(), extensionRegistry); + streamDataCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + getIosAppStreamDataFieldBuilder().getBuilder(), extensionRegistry); + streamDataCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int streamDataCase_ = 0; + private java.lang.Object streamData_; + + public StreamDataCase getStreamDataCase() { + return StreamDataCase.forNumber(streamDataCase_); + } + + public Builder clearStreamData() { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.WebStreamData, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder> + webStreamDataBuilder_; + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + @java.lang.Override + public boolean hasWebStreamData() { + return streamDataCase_ == 6; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData() { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } else { + if (streamDataCase_ == 6) { + return webStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder setWebStreamData( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData value) { + if (webStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + webStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder setWebStreamData( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder builderForValue) { + if (webStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + webStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder mergeWebStreamData( + com.google.analytics.admin.v1alpha.DataStream.WebStreamData value) { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6 + && streamData_ + != com.google.analytics.admin.v1alpha.DataStream.WebStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 6) { + webStreamDataBuilder_.mergeFrom(value); + } else { + webStreamDataBuilder_.setMessage(value); + } + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder clearWebStreamData() { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 6) { + streamDataCase_ = 0; + streamData_ = null; + } + webStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + public com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder + getWebStreamDataBuilder() { + return getWebStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder + getWebStreamDataOrBuilder() { + if ((streamDataCase_ == 6) && (webStreamDataBuilder_ != null)) { + return webStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.WebStreamData, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder> + getWebStreamDataFieldBuilder() { + if (webStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 6)) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); + } + webStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.WebStreamData, + com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 6; + onChanged(); + return webStreamDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder> + androidAppStreamDataBuilder_; + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + @java.lang.Override + public boolean hasAndroidAppStreamData() { + return streamDataCase_ == 7; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + getAndroidAppStreamData() { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } else { + if (streamDataCase_ == 7) { + return androidAppStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder setAndroidAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData value) { + if (androidAppStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + androidAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder setAndroidAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder + builderForValue) { + if (androidAppStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + androidAppStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder mergeAndroidAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData value) { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7 + && streamData_ + != com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) + streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 7) { + androidAppStreamDataBuilder_.mergeFrom(value); + } else { + androidAppStreamDataBuilder_.setMessage(value); + } + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder clearAndroidAppStreamData() { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 7) { + streamDataCase_ = 0; + streamData_ = null; + } + androidAppStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder + getAndroidAppStreamDataBuilder() { + return getAndroidAppStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder() { + if ((streamDataCase_ == 7) && (androidAppStreamDataBuilder_ != null)) { + return androidAppStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder> + getAndroidAppStreamDataFieldBuilder() { + if (androidAppStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 7)) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + androidAppStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 7; + onChanged(); + return androidAppStreamDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder> + iosAppStreamDataBuilder_; + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + @java.lang.Override + public boolean hasIosAppStreamData() { + return streamDataCase_ == 8; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData() { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } else { + if (streamDataCase_ == 8) { + return iosAppStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder setIosAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData value) { + if (iosAppStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + iosAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder setIosAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder builderForValue) { + if (iosAppStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + iosAppStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder mergeIosAppStreamData( + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData value) { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8 + && streamData_ + != com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.newBuilder( + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 8) { + iosAppStreamDataBuilder_.mergeFrom(value); + } else { + iosAppStreamDataBuilder_.setMessage(value); + } + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder clearIosAppStreamData() { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 8) { + streamDataCase_ = 0; + streamData_ = null; + } + iosAppStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder + getIosAppStreamDataBuilder() { + return getIosAppStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder() { + if ((streamDataCase_ == 8) && (iosAppStreamDataBuilder_ != null)) { + return iosAppStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder> + getIosAppStreamDataFieldBuilder() { + if (iosAppStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 8)) { + streamData_ = + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); + } + iosAppStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder>( + (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 8; + onChanged(); + return iosAppStreamDataBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { + com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = + com.google.analytics.admin.v1alpha.DataStream.DataStreamType.forNumber(type_); + return result == null + ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.analytics.admin.v1alpha.DataStream.DataStreamType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream) + private static final com.google.analytics.admin.v1alpha.DataStream DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream(); + } + + public static com.google.analytics.admin.v1alpha.DataStream getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java new file mode 100644 index 000000000000..41d4a6a520ae --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java @@ -0,0 +1,319 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface DataStreamOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + boolean hasWebStreamData(); + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData(); + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; + */ + com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder(); + + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + boolean hasAndroidAppStreamData(); + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getAndroidAppStreamData(); + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder(); + + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + boolean hasIosAppStreamData(); + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData(); + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder(); + + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType(); + + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + com.google.analytics.admin.v1alpha.DataStream.StreamDataCase getStreamDataCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java new file mode 100644 index 000000000000..13385c612ecb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java @@ -0,0 +1,657 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccessBindingRequest} + */ +public final class DeleteAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + DeleteAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAccessBindingRequest.newBuilder() to construct. + private DeleteAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAccessBindingRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAccessBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..555b420b4462 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java new file mode 100644 index 000000000000..ada65f9c7b96 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteAccount RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccountRequest} + */ +public final class DeleteAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAccountRequest) + DeleteAccountRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAccountRequest.newBuilder() to construct. + private DeleteAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAccountRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAccountRequest.class, + com.google.analytics.admin.v1alpha.DeleteAccountRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteAccountRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteAccountRequest other = + (com.google.analytics.admin.v1alpha.DeleteAccountRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteAccount RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccountRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAccountRequest) + com.google.analytics.admin.v1alpha.DeleteAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAccountRequest.class, + com.google.analytics.admin.v1alpha.DeleteAccountRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteAccountRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccountRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccountRequest build() { + com.google.analytics.admin.v1alpha.DeleteAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccountRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteAccountRequest result = + new com.google.analytics.admin.v1alpha.DeleteAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteAccountRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteAccountRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteAccountRequest other) { + if (other == com.google.analytics.admin.v1alpha.DeleteAccountRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteAccountRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAccountRequest) + private static final com.google.analytics.admin.v1alpha.DeleteAccountRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAccountRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java new file mode 100644 index 000000000000..f7b29ea56575 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequest.java new file mode 100644 index 000000000000..7d5b61460ac0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message to be passed to DeleteAdSenseLink method.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} + */ +public final class DeleteAdSenseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) + DeleteAdSenseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAdSenseLinkRequest.newBuilder() to construct. + private DeleteAdSenseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAdSenseLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAdSenseLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link to be deleted.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link to be deleted.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteAdSenseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message to be passed to DeleteAdSenseLink method.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest other) { + if (other == com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link to be deleted.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link to be deleted.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link to be deleted.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link to be deleted.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link to be deleted.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteAdSenseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAdSenseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequestOrBuilder.java new file mode 100644 index 000000000000..747a90989d02 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteAdSenseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link to be deleted.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link to be deleted.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequest.java new file mode 100644 index 000000000000..94eab3272c3e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteChannelGroup RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteChannelGroupRequest} + */ +public final class DeleteChannelGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) + DeleteChannelGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteChannelGroupRequest.newBuilder() to construct. + private DeleteChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteChannelGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteChannelGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The ChannelGroup to delete.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ChannelGroup to delete.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteChannelGroupRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest other = + (com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteChannelGroup RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteChannelGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest build() { + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest result = + new com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The ChannelGroup to delete.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ChannelGroup to delete.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ChannelGroup to delete.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to delete.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to delete.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteChannelGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) + private static final com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteChannelGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequestOrBuilder.java new file mode 100644 index 000000000000..beec8deb865d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteChannelGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ChannelGroup to delete.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The ChannelGroup to delete.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequest.java new file mode 100644 index 000000000000..ffc5367ee2ce --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequest.java @@ -0,0 +1,842 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteConnectedSiteTag RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest} + */ +public final class DeleteConnectedSiteTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) + DeleteConnectedSiteTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteConnectedSiteTagRequest.newBuilder() to construct. + private DeleteConnectedSiteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConnectedSiteTagRequest() { + property_ = ""; + tagId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConnectedSiteTagRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.class, + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * The Universal Analytics property to delete connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * The Universal Analytics property to delete connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TAG_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object tagId_ = ""; + /** + * + * + *
+   * Tag ID to forward events to. Also known as the Measurement ID, or the
+   * "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2; + * + * @return The tagId. + */ + @java.lang.Override + public java.lang.String getTagId() { + java.lang.Object ref = tagId_; + 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(); + tagId_ = s; + return s; + } + } + /** + * + * + *
+   * Tag ID to forward events to. Also known as the Measurement ID, or the
+   * "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2; + * + * @return The bytes for tagId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTagIdBytes() { + java.lang.Object ref = tagId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tagId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagId_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagId_); + } + 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.admin.v1alpha.DeleteConnectedSiteTagRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest other = + (com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getTagId().equals(other.getTagId())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + TAG_ID_FIELD_NUMBER; + hash = (53 * hash) + getTagId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteConnectedSiteTag RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.class, + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + tagId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest build() { + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest result = + new com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tagId_ = tagId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.getDefaultInstance()) + return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTagId().isEmpty()) { + tagId_ = other.tagId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + tagId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * The Universal Analytics property to delete connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Universal Analytics property to delete connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Universal Analytics property to delete connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The Universal Analytics property to delete connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Universal Analytics property to delete connected site tags for.
+     * This API does not support GA4 properties.
+     * Format: properties/{universalAnalyticsPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1; + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object tagId_ = ""; + /** + * + * + *
+     * Tag ID to forward events to. Also known as the Measurement ID, or the
+     * "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2; + * + * @return The tagId. + */ + public java.lang.String getTagId() { + java.lang.Object ref = tagId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tagId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Tag ID to forward events to. Also known as the Measurement ID, or the
+     * "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2; + * + * @return The bytes for tagId. + */ + public com.google.protobuf.ByteString getTagIdBytes() { + java.lang.Object ref = tagId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tagId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Tag ID to forward events to. Also known as the Measurement ID, or the
+     * "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2; + * + * @param value The tagId to set. + * @return This builder for chaining. + */ + public Builder setTagId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tagId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Tag ID to forward events to. Also known as the Measurement ID, or the
+     * "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2; + * + * @return This builder for chaining. + */ + public Builder clearTagId() { + tagId_ = getDefaultInstance().getTagId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Tag ID to forward events to. Also known as the Measurement ID, or the
+     * "G-ID"  (For example: G-12345).
+     * 
+ * + * string tag_id = 2; + * + * @param value The bytes for tagId to set. + * @return This builder for chaining. + */ + public Builder setTagIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tagId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) + private static final com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConnectedSiteTagRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequestOrBuilder.java new file mode 100644 index 000000000000..1996260b034b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequestOrBuilder.java @@ -0,0 +1,83 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteConnectedSiteTagRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Universal Analytics property to delete connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * The Universal Analytics property to delete connected site tags for.
+   * This API does not support GA4 properties.
+   * Format: properties/{universalAnalyticsPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Tag ID to forward events to. Also known as the Measurement ID, or the
+   * "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2; + * + * @return The tagId. + */ + java.lang.String getTagId(); + /** + * + * + *
+   * Tag ID to forward events to. Also known as the Measurement ID, or the
+   * "G-ID"  (For example: G-12345).
+   * 
+ * + * string tag_id = 2; + * + * @return The bytes for tagId. + */ + com.google.protobuf.ByteString getTagIdBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java new file mode 100644 index 000000000000..3c62a2295c4d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java @@ -0,0 +1,660 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} + */ +public final class DeleteConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + DeleteConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteConversionEventRequest.newBuilder() to construct. + private DeleteConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other = + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + com.google.analytics.admin.v1alpha.DeleteConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest build() { + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = + new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..dd169cffad4f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java new file mode 100644 index 000000000000..d56dc1828a43 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDataStreamRequest} + */ +public final class DeleteDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + DeleteDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDataStreamRequest.newBuilder() to construct. + private DeleteDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest other = + (com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + com.google.analytics.admin.v1alpha.DeleteDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest build() { + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result = + new com.google.analytics.admin.v1alpha.DeleteDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.DeleteDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..0c2c310e7e32 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 000000000000..90037dede4b7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,704 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class DeleteDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private DeleteDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + DeleteDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + DeleteDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public DeleteDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 000000000000..b657ee8ff8fe --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 000000000000..3c43bdc9844e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,674 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} + */ +public final class DeleteDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private DeleteDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDisplayVideo360AdvertiserLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDisplayVideo360AdvertiserLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 000000000000..83e8f1fbd0f4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequest.java new file mode 100644 index 000000000000..ebec559df1b1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteEventCreateRule RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} + */ +public final class DeleteEventCreateRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) + DeleteEventCreateRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteEventCreateRuleRequest.newBuilder() to construct. + private DeleteEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteEventCreateRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteEventCreateRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Example format:
+   * properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format:
+   * properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteEventCreateRuleRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest other = + (com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteEventCreateRule RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest build() { + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest result = + new com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Example format:
+     * properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format:
+     * properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format:
+     * properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format:
+     * properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format:
+     * properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteEventCreateRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) + private static final com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteEventCreateRuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequestOrBuilder.java new file mode 100644 index 000000000000..dfa1d406f5bd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteEventCreateRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format:
+   * properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Example format:
+   * properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java new file mode 100644 index 000000000000..34ae73a28d26 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest} + */ +public final class DeleteExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + DeleteExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteExpandedDataSetRequest.newBuilder() to construct. + private DeleteExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteExpandedDataSetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteExpandedDataSetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..820d1b2d8ba9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java new file mode 100644 index 000000000000..26bd03f0d187 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteFirebaseLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} + */ +public final class DeleteFirebaseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + DeleteFirebaseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFirebaseLinkRequest.newBuilder() to construct. + private DeleteFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFirebaseLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFirebaseLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteFirebaseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteFirebaseLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteFirebaseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFirebaseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java new file mode 100644 index 000000000000..2e66fd0569a3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteFirebaseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java new file mode 100644 index 000000000000..f550dd5903a4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java @@ -0,0 +1,643 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteGoogleAdsLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} + */ +public final class DeleteGoogleAdsLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + DeleteGoogleAdsLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteGoogleAdsLinkRequest.newBuilder() to construct. + private DeleteGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteGoogleAdsLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteGoogleAdsLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteGoogleAdsLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteGoogleAdsLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteGoogleAdsLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGoogleAdsLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java new file mode 100644 index 000000000000..4ea7b61114c9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteGoogleAdsLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..e31eb2845a57 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java @@ -0,0 +1,673 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} + */ +public final class DeleteMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + DeleteMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMeasurementProtocolSecretRequest.newBuilder() to construct. + private DeleteMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..344332502290 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java new file mode 100644 index 000000000000..352cf8ca23e3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeletePropertyRequest} + */ +public final class DeletePropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeletePropertyRequest) + DeletePropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePropertyRequest.newBuilder() to construct. + private DeletePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePropertyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, + com.google.analytics.admin.v1alpha.DeletePropertyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeletePropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeletePropertyRequest other = + (com.google.analytics.admin.v1alpha.DeletePropertyRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeletePropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeletePropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeletePropertyRequest) + com.google.analytics.admin.v1alpha.DeletePropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, + com.google.analytics.admin.v1alpha.DeletePropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeletePropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeletePropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeletePropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeletePropertyRequest build() { + com.google.analytics.admin.v1alpha.DeletePropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeletePropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeletePropertyRequest result = + new com.google.analytics.admin.v1alpha.DeletePropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.DeletePropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeletePropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeletePropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeletePropertyRequest other) { + if (other == com.google.analytics.admin.v1alpha.DeletePropertyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeletePropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeletePropertyRequest) + private static final com.google.analytics.admin.v1alpha.DeletePropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeletePropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeletePropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeletePropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java new file mode 100644 index 000000000000..94e3b3555cc5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeletePropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeletePropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java new file mode 100644 index 000000000000..12736e599766 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java @@ -0,0 +1,671 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteRollupPropertySourceLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest} + */ +public final class DeleteRollupPropertySourceLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + DeleteRollupPropertySourceLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteRollupPropertySourceLinkRequest.newBuilder() to construct. + private DeleteRollupPropertySourceLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteRollupPropertySourceLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteRollupPropertySourceLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteRollupPropertySourceLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteRollupPropertySourceLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/1234/rollupPropertySourceLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteRollupPropertySourceLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java new file mode 100644 index 000000000000..97b4513255d6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteRollupPropertySourceLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/1234/rollupPropertySourceLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.java new file mode 100644 index 000000000000..2698cb1cbf3a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.java @@ -0,0 +1,690 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteSKAdNetworkConversionValueSchema RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest} + */ +public final class DeleteSKAdNetworkConversionValueSchemaRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) + DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. + private DeleteSKAdNetworkConversionValueSchemaRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSKAdNetworkConversionValueSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSKAdNetworkConversionValueSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.class, + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest other = + (com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteSKAdNetworkConversionValueSchema RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + .class, + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + build() { + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest result = + new com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) + private static final com.google.analytics.admin.v1alpha + .DeleteSKAdNetworkConversionValueSchemaRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSKAdNetworkConversionValueSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..ae15feb49b2d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequest.java new file mode 100644 index 000000000000..ad5ab6935682 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteSearchAds360Link RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} + */ +public final class DeleteSearchAds360LinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) + DeleteSearchAds360LinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSearchAds360LinkRequest.newBuilder() to construct. + private DeleteSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSearchAds360LinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSearchAds360LinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the SearchAds360Link to delete.
+   * Example format: properties/1234/SearchAds360Links/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the SearchAds360Link to delete.
+   * Example format: properties/1234/SearchAds360Links/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteSearchAds360LinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteSearchAds360Link RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the SearchAds360Link to delete.
+     * Example format: properties/1234/SearchAds360Links/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to delete.
+     * Example format: properties/1234/SearchAds360Links/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to delete.
+     * Example format: properties/1234/SearchAds360Links/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to delete.
+     * Example format: properties/1234/SearchAds360Links/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to delete.
+     * Example format: properties/1234/SearchAds360Links/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteSearchAds360LinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSearchAds360LinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequestOrBuilder.java new file mode 100644 index 000000000000..c2a81150ed63 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteSearchAds360LinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the SearchAds360Link to delete.
+   * Example format: properties/1234/SearchAds360Links/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the SearchAds360Link to delete.
+   * Example format: properties/1234/SearchAds360Links/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java new file mode 100644 index 000000000000..03c1083bf563 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java @@ -0,0 +1,674 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest} + */ +public final class DeleteSubpropertyEventFilterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + DeleteSubpropertyEventFilterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteSubpropertyEventFilterRequest.newBuilder() to construct. + private DeleteSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteSubpropertyEventFilterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteSubpropertyEventFilterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.DeleteSubpropertyEventFilterRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to delete.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteSubpropertyEventFilterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java new file mode 100644 index 000000000000..3011cbc04ac7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteSubpropertyEventFilterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to delete.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java new file mode 100644 index 000000000000..4e4cee7294ef --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java @@ -0,0 +1,1982 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link between a GA4 property and a Display & Video 360 advertiser.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} + */ +public final class DisplayVideo360AdvertiserLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + DisplayVideo360AdvertiserLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use DisplayVideo360AdvertiserLink.newBuilder() to construct. + private DisplayVideo360AdvertiserLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisplayVideo360AdvertiserLink() { + name_ = ""; + advertiserId_ = ""; + advertiserDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisplayVideo360AdvertiserLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * resource. Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+   *
+   * Note: linkId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * resource. Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+   *
+   * Note: linkId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserId_ = ""; + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + @java.lang.Override + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + 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(); + advertiserId_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+   * Output only. The display name of the Display & Video 360 Advertiser.
+   * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + @java.lang.Override + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + 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(); + advertiserDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name of the Display & Video 360 Advertiser.
+   * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + @java.lang.Override + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + + public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 5; + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360
+   * into the GA4 property. After link creation, this can only be updated from
+   * the Display & Video 360 product. If this field is not set on create, it
+   * will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360
+   * into the GA4 property. After link creation, this can only be updated from
+   * the Display & Video 360 product. If this field is not set on create, it
+   * will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360
+   * into the GA4 property. After link creation, this can only be updated from
+   * the Display & Video 360 product. If this field is not set on create, it
+   * will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + + public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue costDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into
+   * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+   * is enabled. After link creation, this can only be updated from the Display
+   * & Video 360 product. If this field is not set on create, it will be
+   * defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCostDataSharingEnabled() { + return costDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into
+   * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+   * is enabled. After link creation, this can only be updated from the Display
+   * & Video 360 product. If this field is not set on create, it will be
+   * defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into
+   * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+   * is enabled. After link creation, this can only be updated from the Display
+   * & Video 360 product. If this field is not set on create, it will be
+   * defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + + 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(advertiserId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, advertiserDisplayName_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(4, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + output.writeMessage(5, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + output.writeMessage(6, getCostDataSharingEnabled()); + } + 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(advertiserId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, advertiserDisplayName_); + } + if (adsPersonalizationEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCostDataSharingEnabled()); + } + 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.admin.v1alpha.DisplayVideo360AdvertiserLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink other = + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAdvertiserId().equals(other.getAdvertiserId())) return false; + if (!getAdvertiserDisplayName().equals(other.getAdvertiserDisplayName())) return false; + if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; + if (hasAdsPersonalizationEnabled()) { + if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) + return false; + } + if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; + if (hasCampaignDataSharingEnabled()) { + if (!getCampaignDataSharingEnabled().equals(other.getCampaignDataSharingEnabled())) + return false; + } + if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; + if (hasCostDataSharingEnabled()) { + if (!getCostDataSharingEnabled().equals(other.getCostDataSharingEnabled())) 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) + ADVERTISER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserId().hashCode(); + hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); + if (hasAdsPersonalizationEnabled()) { + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); + } + if (hasCampaignDataSharingEnabled()) { + hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); + } + if (hasCostDataSharingEnabled()) { + hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 property and a Display & Video 360 advertiser.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + advertiserId_ = ""; + advertiserDisplayName_ = ""; + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + campaignDataSharingEnabled_ = null; + if (campaignDataSharingEnabledBuilder_ != null) { + campaignDataSharingEnabledBuilder_.dispose(); + campaignDataSharingEnabledBuilder_ = null; + } + costDataSharingEnabled_ = null; + if (costDataSharingEnabledBuilder_ != null) { + costDataSharingEnabledBuilder_.dispose(); + costDataSharingEnabledBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink build() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink buildPartial() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result = + new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.advertiserId_ = advertiserId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.advertiserDisplayName_ = advertiserDisplayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.adsPersonalizationEnabled_ = + adsPersonalizationEnabledBuilder_ == null + ? adsPersonalizationEnabled_ + : adsPersonalizationEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.campaignDataSharingEnabled_ = + campaignDataSharingEnabledBuilder_ == null + ? campaignDataSharingEnabled_ + : campaignDataSharingEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.costDataSharingEnabled_ = + costDataSharingEnabledBuilder_ == null + ? costDataSharingEnabled_ + : costDataSharingEnabledBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink other) { + if (other + == com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAdvertiserId().isEmpty()) { + advertiserId_ = other.advertiserId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAdvertiserDisplayName().isEmpty()) { + advertiserDisplayName_ = other.advertiserDisplayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasCampaignDataSharingEnabled()) { + mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); + } + if (other.hasCostDataSharingEnabled()) { + mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + advertiserId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + advertiserDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getCampaignDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getCostDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     *
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     *
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     *
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     *
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.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. The resource name for this DisplayVideo360AdvertiserLink
+     * resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     *
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object advertiserId_ = ""; + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertiserId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserId() { + advertiserId_ = getDefaultInstance().getAdvertiserId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertiserId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertiserDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserDisplayName() { + advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertiserDisplayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + adsPersonalizationEnabledBuilder_; + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + public boolean hasAdsPersonalizationEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return The adsPersonalizationEnabled. + */ + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } else { + return adsPersonalizationEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsPersonalizationEnabled_ = value; + } else { + adsPersonalizationEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder setAdsPersonalizationEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = builderForValue.build(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && adsPersonalizationEnabled_ != null + && adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getAdsPersonalizationEnabledBuilder().mergeFrom(value); + } else { + adsPersonalizationEnabled_ = value; + } + } else { + adsPersonalizationEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder clearAdsPersonalizationEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + if (adsPersonalizationEnabledBuilder_ != null) { + return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); + } else { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getAdsPersonalizationEnabledFieldBuilder() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); + adsPersonalizationEnabled_ = null; + } + return adsPersonalizationEnabledBuilder_; + } + + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + campaignDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + public boolean hasCampaignDataSharingEnabled() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + if (campaignDataSharingEnabledBuilder_ == null) { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } else { + return campaignDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + campaignDataSharingEnabled_ = value; + } else { + campaignDataSharingEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = builderForValue.build(); + } else { + campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && campaignDataSharingEnabled_ != null + && campaignDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCampaignDataSharingEnabledBuilder().mergeFrom(value); + } else { + campaignDataSharingEnabled_ = value; + } + } else { + campaignDataSharingEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCampaignDataSharingEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + campaignDataSharingEnabled_ = null; + if (campaignDataSharingEnabledBuilder_ != null) { + campaignDataSharingEnabledBuilder_.dispose(); + campaignDataSharingEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + if (campaignDataSharingEnabledBuilder_ != null) { + return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360
+     * into the GA4 property. After link creation, this can only be updated from
+     * the Display & Video 360 product. If this field is not set on create, it
+     * will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCampaignDataSharingEnabledFieldBuilder() { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCampaignDataSharingEnabled(), getParentForChildren(), isClean()); + campaignDataSharingEnabled_ = null; + } + return campaignDataSharingEnabledBuilder_; + } + + private com.google.protobuf.BoolValue costDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + costDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + public boolean hasCostDataSharingEnabled() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + if (costDataSharingEnabledBuilder_ == null) { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } else { + return costDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costDataSharingEnabled_ = value; + } else { + costDataSharingEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = builderForValue.build(); + } else { + costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && costDataSharingEnabled_ != null + && costDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCostDataSharingEnabledBuilder().mergeFrom(value); + } else { + costDataSharingEnabled_ = value; + } + } else { + costDataSharingEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCostDataSharingEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + costDataSharingEnabled_ = null; + if (costDataSharingEnabledBuilder_ != null) { + costDataSharingEnabledBuilder_.dispose(); + costDataSharingEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCostDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + if (costDataSharingEnabledBuilder_ != null) { + return costDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into
+     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
+     * is enabled. After link creation, this can only be updated from the Display
+     * & Video 360 product. If this field is not set on create, it will be
+     * defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCostDataSharingEnabledFieldBuilder() { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCostDataSharingEnabled(), getParentForChildren(), isClean()); + costDataSharingEnabled_ = null; + } + return costDataSharingEnabledBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + private static final com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisplayVideo360AdvertiserLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java similarity index 76% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java index e0475358c96b..3c4175ae6e3a 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface DisplayVideo360AdvertiserLinkOrBuilder extends +public interface DisplayVideo360AdvertiserLinkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this DisplayVideo360AdvertiserLink
    * resource. Format:
@@ -17,10 +35,13 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this DisplayVideo360AdvertiserLink
    * resource. Format:
@@ -30,72 +51,90 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. The Display & Video 360 Advertiser's advertiser ID.
    * 
* * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The advertiserId. */ java.lang.String getAdvertiserId(); /** + * + * *
    * Immutable. The Display & Video 360 Advertiser's advertiser ID.
    * 
* * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for advertiserId. */ - com.google.protobuf.ByteString - getAdvertiserIdBytes(); + com.google.protobuf.ByteString getAdvertiserIdBytes(); /** + * + * *
    * Output only. The display name of the Display & Video 360 Advertiser.
    * 
* * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The advertiserDisplayName. */ java.lang.String getAdvertiserDisplayName(); /** + * + * *
    * Output only. The display name of the Display & Video 360 Advertiser.
    * 
* * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for advertiserDisplayName. */ - com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes(); + com.google.protobuf.ByteString getAdvertiserDisplayNameBytes(); /** + * + * *
    * Enables personalized advertising features with this integration.
    * If this field is not set on create/update, it will be defaulted to true.
    * 
* * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * * @return Whether the adsPersonalizationEnabled field is set. */ boolean hasAdsPersonalizationEnabled(); /** + * + * *
    * Enables personalized advertising features with this integration.
    * If this field is not set on create/update, it will be defaulted to true.
    * 
* * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * * @return The adsPersonalizationEnabled. */ com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); /** + * + * *
    * Enables personalized advertising features with this integration.
    * If this field is not set on create/update, it will be defaulted to true.
@@ -106,6 +145,8 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
   com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder();
 
   /**
+   *
+   *
    * 
    * Immutable. Enables the import of campaign data from Display & Video 360
    * into the GA4 property. After link creation, this can only be updated from
@@ -113,11 +154,16 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the campaignDataSharingEnabled field is set. */ boolean hasCampaignDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of campaign data from Display & Video 360
    * into the GA4 property. After link creation, this can only be updated from
@@ -125,11 +171,16 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The campaignDataSharingEnabled. */ com.google.protobuf.BoolValue getCampaignDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of campaign data from Display & Video 360
    * into the GA4 property. After link creation, this can only be updated from
@@ -137,11 +188,15 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder(); /** + * + * *
    * Immutable. Enables the import of cost data from Display & Video 360 into
    * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
@@ -150,11 +205,16 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * defaulted to true.
    * 
* - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the costDataSharingEnabled field is set. */ boolean hasCostDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of cost data from Display & Video 360 into
    * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
@@ -163,11 +223,16 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * defaulted to true.
    * 
* - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The costDataSharingEnabled. */ com.google.protobuf.BoolValue getCostDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of cost data from Display & Video 360 into
    * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
@@ -176,7 +241,9 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder extends
    * defaulted to true.
    * 
* - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java new file mode 100644 index 000000000000..a23a12b7dc7d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java @@ -0,0 +1,2508 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A proposal for a link between a GA4 property and a Display & Video 360
+ * advertiser.
+ *
+ * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
+ * Google Analytics admins approve inbound proposals while Display & Video 360
+ * admins approve outbound proposals.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} + */ +public final class DisplayVideo360AdvertiserLinkProposal + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + DisplayVideo360AdvertiserLinkProposalOrBuilder { + private static final long serialVersionUID = 0L; + // Use DisplayVideo360AdvertiserLinkProposal.newBuilder() to construct. + private DisplayVideo360AdvertiserLinkProposal( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisplayVideo360AdvertiserLinkProposal() { + name_ = ""; + advertiserId_ = ""; + advertiserDisplayName_ = ""; + validationEmail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisplayVideo360AdvertiserLinkProposal(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name for this
+   * DisplayVideo360AdvertiserLinkProposal resource. Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   *
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this
+   * DisplayVideo360AdvertiserLinkProposal resource. Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   *
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserId_ = ""; + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + @java.lang.Override + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + 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(); + advertiserId_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_PROPOSAL_STATUS_DETAILS_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.LinkProposalStatusDetails linkProposalStatusDetails_; + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkProposalStatusDetails field is set. + */ + @java.lang.Override + public boolean hasLinkProposalStatusDetails() { + return linkProposalStatusDetails_ != null; + } + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalStatusDetails. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + getLinkProposalStatusDetails() { + return linkProposalStatusDetails_ == null + ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() + : linkProposalStatusDetails_; + } + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder + getLinkProposalStatusDetailsOrBuilder() { + return linkProposalStatusDetails_ == null + ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() + : linkProposalStatusDetails_; + } + + public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + @java.lang.Override + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + 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(); + advertiserDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATION_EMAIL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object validationEmail_ = ""; + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field
+   * must be set to the email address of an admin on the target advertiser. This
+   * is used to verify that the Google Analytics admin is aware of at least one
+   * admin on the Display & Video 360 Advertiser. This does not restrict
+   * approval of the proposal to a single user. Any admin on the Display & Video
+   * 360 Advertiser may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The validationEmail. + */ + @java.lang.Override + public java.lang.String getValidationEmail() { + java.lang.Object ref = validationEmail_; + 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(); + validationEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field
+   * must be set to the email address of an admin on the target advertiser. This
+   * is used to verify that the Google Analytics admin is aware of at least one
+   * admin on the Display & Video 360 Advertiser. This does not restrict
+   * approval of the proposal to a single user. Any admin on the Display & Video
+   * 360 Advertiser may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for validationEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValidationEmailBytes() { + java.lang.Object ref = validationEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + @java.lang.Override + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + + public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 7; + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + + public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 8; + private com.google.protobuf.BoolValue costDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCostDataSharingEnabled() { + return costDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + + 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(advertiserId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); + } + if (linkProposalStatusDetails_ != null) { + output.writeMessage(3, getLinkProposalStatusDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, advertiserDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationEmail_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(6, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + output.writeMessage(7, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + output.writeMessage(8, getCostDataSharingEnabled()); + } + 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(advertiserId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); + } + if (linkProposalStatusDetails_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getLinkProposalStatusDetails()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, advertiserDisplayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationEmail_); + } + if (adsPersonalizationEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCostDataSharingEnabled()); + } + 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.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal other = + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAdvertiserId().equals(other.getAdvertiserId())) return false; + if (hasLinkProposalStatusDetails() != other.hasLinkProposalStatusDetails()) return false; + if (hasLinkProposalStatusDetails()) { + if (!getLinkProposalStatusDetails().equals(other.getLinkProposalStatusDetails())) + return false; + } + if (!getAdvertiserDisplayName().equals(other.getAdvertiserDisplayName())) return false; + if (!getValidationEmail().equals(other.getValidationEmail())) return false; + if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; + if (hasAdsPersonalizationEnabled()) { + if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) + return false; + } + if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; + if (hasCampaignDataSharingEnabled()) { + if (!getCampaignDataSharingEnabled().equals(other.getCampaignDataSharingEnabled())) + return false; + } + if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; + if (hasCostDataSharingEnabled()) { + if (!getCostDataSharingEnabled().equals(other.getCostDataSharingEnabled())) 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) + ADVERTISER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserId().hashCode(); + if (hasLinkProposalStatusDetails()) { + hash = (37 * hash) + LINK_PROPOSAL_STATUS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLinkProposalStatusDetails().hashCode(); + } + hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); + hash = (37 * hash) + VALIDATION_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getValidationEmail().hashCode(); + if (hasAdsPersonalizationEnabled()) { + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); + } + if (hasCampaignDataSharingEnabled()) { + hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); + } + if (hasCostDataSharingEnabled()) { + hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A proposal for a link between a GA4 property and a Display & Video 360
+   * advertiser.
+   *
+   * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
+   * Google Analytics admins approve inbound proposals while Display & Video 360
+   * admins approve outbound proposals.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + advertiserId_ = ""; + linkProposalStatusDetails_ = null; + if (linkProposalStatusDetailsBuilder_ != null) { + linkProposalStatusDetailsBuilder_.dispose(); + linkProposalStatusDetailsBuilder_ = null; + } + advertiserDisplayName_ = ""; + validationEmail_ = ""; + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + campaignDataSharingEnabled_ = null; + if (campaignDataSharingEnabledBuilder_ != null) { + campaignDataSharingEnabledBuilder_.dispose(); + campaignDataSharingEnabledBuilder_ = null; + } + costDataSharingEnabled_ = null; + if (costDataSharingEnabledBuilder_ != null) { + costDataSharingEnabledBuilder_.dispose(); + costDataSharingEnabledBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal build() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal buildPartial() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result = + new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.advertiserId_ = advertiserId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.linkProposalStatusDetails_ = + linkProposalStatusDetailsBuilder_ == null + ? linkProposalStatusDetails_ + : linkProposalStatusDetailsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.advertiserDisplayName_ = advertiserDisplayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.validationEmail_ = validationEmail_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.adsPersonalizationEnabled_ = + adsPersonalizationEnabledBuilder_ == null + ? adsPersonalizationEnabled_ + : adsPersonalizationEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.campaignDataSharingEnabled_ = + campaignDataSharingEnabledBuilder_ == null + ? campaignDataSharingEnabled_ + : campaignDataSharingEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.costDataSharingEnabled_ = + costDataSharingEnabledBuilder_ == null + ? costDataSharingEnabled_ + : costDataSharingEnabledBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal other) { + if (other + == com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAdvertiserId().isEmpty()) { + advertiserId_ = other.advertiserId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasLinkProposalStatusDetails()) { + mergeLinkProposalStatusDetails(other.getLinkProposalStatusDetails()); + } + if (!other.getAdvertiserDisplayName().isEmpty()) { + advertiserDisplayName_ = other.advertiserDisplayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getValidationEmail().isEmpty()) { + validationEmail_ = other.validationEmail_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasCampaignDataSharingEnabled()) { + mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); + } + if (other.hasCostDataSharingEnabled()) { + mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + advertiserId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getLinkProposalStatusDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + advertiserDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + validationEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getCampaignDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + getCostDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this
+     * DisplayVideo360AdvertiserLinkProposal resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     *
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this
+     * DisplayVideo360AdvertiserLinkProposal resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     *
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this
+     * DisplayVideo360AdvertiserLinkProposal resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     *
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this
+     * DisplayVideo360AdvertiserLinkProposal resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     *
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.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. The resource name for this
+     * DisplayVideo360AdvertiserLinkProposal resource. Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     *
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object advertiserId_ = ""; + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertiserId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserId() { + advertiserId_ = getDefaultInstance().getAdvertiserId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertiserId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.LinkProposalStatusDetails linkProposalStatusDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder> + linkProposalStatusDetailsBuilder_; + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkProposalStatusDetails field is set. + */ + public boolean hasLinkProposalStatusDetails() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalStatusDetails. + */ + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + getLinkProposalStatusDetails() { + if (linkProposalStatusDetailsBuilder_ == null) { + return linkProposalStatusDetails_ == null + ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() + : linkProposalStatusDetails_; + } else { + return linkProposalStatusDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLinkProposalStatusDetails( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails value) { + if (linkProposalStatusDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linkProposalStatusDetails_ = value; + } else { + linkProposalStatusDetailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLinkProposalStatusDetails( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder builderForValue) { + if (linkProposalStatusDetailsBuilder_ == null) { + linkProposalStatusDetails_ = builderForValue.build(); + } else { + linkProposalStatusDetailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLinkProposalStatusDetails( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails value) { + if (linkProposalStatusDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && linkProposalStatusDetails_ != null + && linkProposalStatusDetails_ + != com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + .getDefaultInstance()) { + getLinkProposalStatusDetailsBuilder().mergeFrom(value); + } else { + linkProposalStatusDetails_ = value; + } + } else { + linkProposalStatusDetailsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLinkProposalStatusDetails() { + bitField0_ = (bitField0_ & ~0x00000004); + linkProposalStatusDetails_ = null; + if (linkProposalStatusDetailsBuilder_ != null) { + linkProposalStatusDetailsBuilder_.dispose(); + linkProposalStatusDetailsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder + getLinkProposalStatusDetailsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getLinkProposalStatusDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder + getLinkProposalStatusDetailsOrBuilder() { + if (linkProposalStatusDetailsBuilder_ != null) { + return linkProposalStatusDetailsBuilder_.getMessageOrBuilder(); + } else { + return linkProposalStatusDetails_ == null + ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() + : linkProposalStatusDetails_; + } + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder> + getLinkProposalStatusDetailsFieldBuilder() { + if (linkProposalStatusDetailsBuilder_ == null) { + linkProposalStatusDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder>( + getLinkProposalStatusDetails(), getParentForChildren(), isClean()); + linkProposalStatusDetails_ = null; + } + return linkProposalStatusDetailsBuilder_; + } + + private java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertiserDisplayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserDisplayName() { + advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertiserDisplayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object validationEmail_ = ""; + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field
+     * must be set to the email address of an admin on the target advertiser. This
+     * is used to verify that the Google Analytics admin is aware of at least one
+     * admin on the Display & Video 360 Advertiser. This does not restrict
+     * approval of the proposal to a single user. Any admin on the Display & Video
+     * 360 Advertiser may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The validationEmail. + */ + public java.lang.String getValidationEmail() { + java.lang.Object ref = validationEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field
+     * must be set to the email address of an admin on the target advertiser. This
+     * is used to verify that the Google Analytics admin is aware of at least one
+     * admin on the Display & Video 360 Advertiser. This does not restrict
+     * approval of the proposal to a single user. Any admin on the Display & Video
+     * 360 Advertiser may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for validationEmail. + */ + public com.google.protobuf.ByteString getValidationEmailBytes() { + java.lang.Object ref = validationEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field
+     * must be set to the email address of an admin on the target advertiser. This
+     * is used to verify that the Google Analytics admin is aware of at least one
+     * admin on the Display & Video 360 Advertiser. This does not restrict
+     * approval of the proposal to a single user. Any admin on the Display & Video
+     * 360 Advertiser may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The validationEmail to set. + * @return This builder for chaining. + */ + public Builder setValidationEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + validationEmail_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field
+     * must be set to the email address of an admin on the target advertiser. This
+     * is used to verify that the Google Analytics admin is aware of at least one
+     * admin on the Display & Video 360 Advertiser. This does not restrict
+     * approval of the proposal to a single user. Any admin on the Display & Video
+     * 360 Advertiser may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearValidationEmail() { + validationEmail_ = getDefaultInstance().getValidationEmail(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field
+     * must be set to the email address of an admin on the target advertiser. This
+     * is used to verify that the Google Analytics admin is aware of at least one
+     * admin on the Display & Video 360 Advertiser. This does not restrict
+     * approval of the proposal to a single user. Any admin on the Display & Video
+     * 360 Advertiser may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for validationEmail to set. + * @return This builder for chaining. + */ + public Builder setValidationEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationEmail_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + adsPersonalizationEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + public boolean hasAdsPersonalizationEnabled() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adsPersonalizationEnabled. + */ + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } else { + return adsPersonalizationEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsPersonalizationEnabled_ = value; + } else { + adsPersonalizationEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAdsPersonalizationEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = builderForValue.build(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && adsPersonalizationEnabled_ != null + && adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getAdsPersonalizationEnabledBuilder().mergeFrom(value); + } else { + adsPersonalizationEnabled_ = value; + } + } else { + adsPersonalizationEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearAdsPersonalizationEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + if (adsPersonalizationEnabledBuilder_ != null) { + return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); + } else { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getAdsPersonalizationEnabledFieldBuilder() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); + adsPersonalizationEnabled_ = null; + } + return adsPersonalizationEnabledBuilder_; + } + + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + campaignDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + public boolean hasCampaignDataSharingEnabled() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + if (campaignDataSharingEnabledBuilder_ == null) { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } else { + return campaignDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + campaignDataSharingEnabled_ = value; + } else { + campaignDataSharingEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = builderForValue.build(); + } else { + campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && campaignDataSharingEnabled_ != null + && campaignDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCampaignDataSharingEnabledBuilder().mergeFrom(value); + } else { + campaignDataSharingEnabled_ = value; + } + } else { + campaignDataSharingEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCampaignDataSharingEnabled() { + bitField0_ = (bitField0_ & ~0x00000040); + campaignDataSharingEnabled_ = null; + if (campaignDataSharingEnabledBuilder_ != null) { + campaignDataSharingEnabledBuilder_.dispose(); + campaignDataSharingEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + if (campaignDataSharingEnabledBuilder_ != null) { + return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCampaignDataSharingEnabledFieldBuilder() { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCampaignDataSharingEnabled(), getParentForChildren(), isClean()); + campaignDataSharingEnabled_ = null; + } + return campaignDataSharingEnabledBuilder_; + } + + private com.google.protobuf.BoolValue costDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + costDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + public boolean hasCostDataSharingEnabled() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + if (costDataSharingEnabledBuilder_ == null) { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } else { + return costDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costDataSharingEnabled_ = value; + } else { + costDataSharingEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = builderForValue.build(); + } else { + costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && costDataSharingEnabled_ != null + && costDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCostDataSharingEnabledBuilder().mergeFrom(value); + } else { + costDataSharingEnabled_ = value; + } + } else { + costDataSharingEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCostDataSharingEnabled() { + bitField0_ = (bitField0_ & ~0x00000080); + costDataSharingEnabled_ = null; + if (costDataSharingEnabledBuilder_ != null) { + costDataSharingEnabledBuilder_.dispose(); + costDataSharingEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getCostDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + if (costDataSharingEnabledBuilder_ != null) { + return costDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_sharing_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCostDataSharingEnabledFieldBuilder() { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCostDataSharingEnabled(), getParentForChildren(), isClean()); + costDataSharingEnabled_ = null; + } + return costDataSharingEnabledBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + private static final com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisplayVideo360AdvertiserLinkProposal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java new file mode 100644 index 000000000000..3659238309bb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java @@ -0,0 +1,322 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface DisplayVideo360AdvertiserLinkProposalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name for this
+   * DisplayVideo360AdvertiserLinkProposal resource. Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   *
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name for this
+   * DisplayVideo360AdvertiserLinkProposal resource. Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   *
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + java.lang.String getAdvertiserId(); + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + com.google.protobuf.ByteString getAdvertiserIdBytes(); + + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkProposalStatusDetails field is set. + */ + boolean hasLinkProposalStatusDetails(); + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalStatusDetails. + */ + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getLinkProposalStatusDetails(); + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder + getLinkProposalStatusDetailsOrBuilder(); + + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + java.lang.String getAdvertiserDisplayName(); + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + com.google.protobuf.ByteString getAdvertiserDisplayNameBytes(); + + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field
+   * must be set to the email address of an admin on the target advertiser. This
+   * is used to verify that the Google Analytics admin is aware of at least one
+   * admin on the Display & Video 360 Advertiser. This does not restrict
+   * approval of the proposal to a single user. Any admin on the Display & Video
+   * 360 Advertiser may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The validationEmail. + */ + java.lang.String getValidationEmail(); + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field
+   * must be set to the email address of an admin on the target advertiser. This
+   * is used to verify that the Google Analytics admin is aware of at least one
+   * admin on the Display & Video 360 Advertiser. This does not restrict
+   * approval of the proposal to a single user. Any admin on the Display & Video
+   * 360 Advertiser may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for validationEmail. + */ + com.google.protobuf.ByteString getValidationEmailBytes(); + + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + boolean hasAdsPersonalizationEnabled(); + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adsPersonalizationEnabled. + */ + com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); + + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + boolean hasCampaignDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + com.google.protobuf.BoolValue getCampaignDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder(); + + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + boolean hasCostDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + com.google.protobuf.BoolValue getCostDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_sharing_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder(); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java similarity index 75% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java index b207227e9faf..b01bae9415ac 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java @@ -1,9 +1,26 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; /** + * + * *
  * Singleton resource under a web DataStream, configuring measurement of
  * additional site interactions and content.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.analytics.admin.v1alpha.EnhancedMeasurementSettings}
  */
-public final class EnhancedMeasurementSettings extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class EnhancedMeasurementSettings extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.EnhancedMeasurementSettings)
     EnhancedMeasurementSettingsOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use EnhancedMeasurementSettings.newBuilder() to construct.
   private EnhancedMeasurementSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private EnhancedMeasurementSettings() {
     name_ = "";
     searchQueryParameter_ = "";
@@ -28,28 +46,32 @@ private EnhancedMeasurementSettings() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new EnhancedMeasurementSettings();
   }
 
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.analytics.admin.v1alpha.ResourcesProto
+        .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable
+    return com.google.analytics.admin.v1alpha.ResourcesProto
+        .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder.class);
+            com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class,
+            com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * Output only. Resource name of the Enhanced Measurement Settings.
    * Format:
@@ -58,6 +80,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ @java.lang.Override @@ -66,14 +89,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Output only. Resource name of the Enhanced Measurement Settings.
    * Format:
@@ -82,16 +106,15 @@ public java.lang.String getName() {
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -102,6 +125,8 @@ public java.lang.String getName() { public static final int STREAM_ENABLED_FIELD_NUMBER = 2; private boolean streamEnabled_ = false; /** + * + * *
    * Indicates whether Enhanced Measurement Settings will be used to
    * automatically measure interactions and content on this web stream.
@@ -111,6 +136,7 @@ public java.lang.String getName() {
    * 
* * bool stream_enabled = 2; + * * @return The streamEnabled. */ @java.lang.Override @@ -121,12 +147,15 @@ public boolean getStreamEnabled() { public static final int SCROLLS_ENABLED_FIELD_NUMBER = 3; private boolean scrollsEnabled_ = false; /** + * + * *
    * If enabled, capture scroll events each time a visitor gets to the bottom of
    * a page.
    * 
* * bool scrolls_enabled = 3; + * * @return The scrollsEnabled. */ @java.lang.Override @@ -137,12 +166,15 @@ public boolean getScrollsEnabled() { public static final int OUTBOUND_CLICKS_ENABLED_FIELD_NUMBER = 4; private boolean outboundClicksEnabled_ = false; /** + * + * *
    * If enabled, capture an outbound click event each time a visitor clicks a
    * link that leads them away from your domain.
    * 
* * bool outbound_clicks_enabled = 4; + * * @return The outboundClicksEnabled. */ @java.lang.Override @@ -153,12 +185,15 @@ public boolean getOutboundClicksEnabled() { public static final int SITE_SEARCH_ENABLED_FIELD_NUMBER = 5; private boolean siteSearchEnabled_ = false; /** + * + * *
    * If enabled, capture a view search results event each time a visitor
    * performs a search on your site (based on a query parameter).
    * 
* * bool site_search_enabled = 5; + * * @return The siteSearchEnabled. */ @java.lang.Override @@ -169,12 +204,15 @@ public boolean getSiteSearchEnabled() { public static final int VIDEO_ENGAGEMENT_ENABLED_FIELD_NUMBER = 6; private boolean videoEngagementEnabled_ = false; /** + * + * *
    * If enabled, capture video play, progress, and complete events as visitors
    * view embedded videos on your site.
    * 
* * bool video_engagement_enabled = 6; + * * @return The videoEngagementEnabled. */ @java.lang.Override @@ -185,12 +223,15 @@ public boolean getVideoEngagementEnabled() { public static final int FILE_DOWNLOADS_ENABLED_FIELD_NUMBER = 7; private boolean fileDownloadsEnabled_ = false; /** + * + * *
    * If enabled, capture a file download event each time a link is clicked with
    * a common document, compressed file, application, video, or audio extension.
    * 
* * bool file_downloads_enabled = 7; + * * @return The fileDownloadsEnabled. */ @java.lang.Override @@ -201,12 +242,15 @@ public boolean getFileDownloadsEnabled() { public static final int PAGE_CHANGES_ENABLED_FIELD_NUMBER = 8; private boolean pageChangesEnabled_ = false; /** + * + * *
    * If enabled, capture a page view event each time the website changes the
    * browser history state.
    * 
* * bool page_changes_enabled = 8; + * * @return The pageChangesEnabled. */ @java.lang.Override @@ -217,6 +261,8 @@ public boolean getPageChangesEnabled() { public static final int FORM_INTERACTIONS_ENABLED_FIELD_NUMBER = 9; private boolean formInteractionsEnabled_ = false; /** + * + * *
    * If enabled, capture a form interaction event each time a visitor interacts
    * with a form on your website.
@@ -224,6 +270,7 @@ public boolean getPageChangesEnabled() {
    * 
* * bool form_interactions_enabled = 9; + * * @return The formInteractionsEnabled. */ @java.lang.Override @@ -232,15 +279,19 @@ public boolean getFormInteractionsEnabled() { } public static final int SEARCH_QUERY_PARAMETER_FIELD_NUMBER = 10; + @SuppressWarnings("serial") private volatile java.lang.Object searchQueryParameter_ = ""; /** + * + * *
    * Required. URL query parameters to interpret as site search parameters.
    * Max length is 1024 characters. Must not be empty.
    * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The searchQueryParameter. */ @java.lang.Override @@ -249,30 +300,30 @@ public java.lang.String getSearchQueryParameter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchQueryParameter_ = s; return s; } } /** + * + * *
    * Required. URL query parameters to interpret as site search parameters.
    * Max length is 1024 characters. Must not be empty.
    * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for searchQueryParameter. */ @java.lang.Override - public com.google.protobuf.ByteString - getSearchQueryParameterBytes() { + public com.google.protobuf.ByteString getSearchQueryParameterBytes() { java.lang.Object ref = searchQueryParameter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); searchQueryParameter_ = b; return b; } else { @@ -281,15 +332,19 @@ public java.lang.String getSearchQueryParameter() { } public static final int URI_QUERY_PARAMETER_FIELD_NUMBER = 11; + @SuppressWarnings("serial") private volatile java.lang.Object uriQueryParameter_ = ""; /** + * + * *
    * Additional URL query parameters.
    * Max length is 1024 characters.
    * 
* * string uri_query_parameter = 11; + * * @return The uriQueryParameter. */ @java.lang.Override @@ -298,30 +353,30 @@ public java.lang.String getUriQueryParameter() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uriQueryParameter_ = s; return s; } } /** + * + * *
    * Additional URL query parameters.
    * Max length is 1024 characters.
    * 
* * string uri_query_parameter = 11; + * * @return The bytes for uriQueryParameter. */ @java.lang.Override - public com.google.protobuf.ByteString - getUriQueryParameterBytes() { + public com.google.protobuf.ByteString getUriQueryParameterBytes() { java.lang.Object ref = uriQueryParameter_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uriQueryParameter_ = b; return b; } else { @@ -330,6 +385,7 @@ public java.lang.String getUriQueryParameter() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -341,8 +397,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + 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_); } @@ -389,36 +444,28 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (streamEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, streamEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, streamEnabled_); } if (scrollsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, scrollsEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, scrollsEnabled_); } if (outboundClicksEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, outboundClicksEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, outboundClicksEnabled_); } if (siteSearchEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, siteSearchEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, siteSearchEnabled_); } if (videoEngagementEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, videoEngagementEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, videoEngagementEnabled_); } if (fileDownloadsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, fileDownloadsEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, fileDownloadsEnabled_); } if (pageChangesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(8, pageChangesEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, pageChangesEnabled_); } if (formInteractionsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, formInteractionsEnabled_); + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, formInteractionsEnabled_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQueryParameter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, searchQueryParameter_); @@ -434,35 +481,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings other = (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getStreamEnabled() - != other.getStreamEnabled()) return false; - if (getScrollsEnabled() - != other.getScrollsEnabled()) return false; - if (getOutboundClicksEnabled() - != other.getOutboundClicksEnabled()) return false; - if (getSiteSearchEnabled() - != other.getSiteSearchEnabled()) return false; - if (getVideoEngagementEnabled() - != other.getVideoEngagementEnabled()) return false; - if (getFileDownloadsEnabled() - != other.getFileDownloadsEnabled()) return false; - if (getPageChangesEnabled() - != other.getPageChangesEnabled()) return false; - if (getFormInteractionsEnabled() - != other.getFormInteractionsEnabled()) return false; - if (!getSearchQueryParameter() - .equals(other.getSearchQueryParameter())) return false; - if (!getUriQueryParameter() - .equals(other.getUriQueryParameter())) return false; + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings other = + (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getStreamEnabled() != other.getStreamEnabled()) return false; + if (getScrollsEnabled() != other.getScrollsEnabled()) return false; + if (getOutboundClicksEnabled() != other.getOutboundClicksEnabled()) return false; + if (getSiteSearchEnabled() != other.getSiteSearchEnabled()) return false; + if (getVideoEngagementEnabled() != other.getVideoEngagementEnabled()) return false; + if (getFileDownloadsEnabled() != other.getFileDownloadsEnabled()) return false; + if (getPageChangesEnabled() != other.getPageChangesEnabled()) return false; + if (getFormInteractionsEnabled() != other.getFormInteractionsEnabled()) return false; + if (!getSearchQueryParameter().equals(other.getSearchQueryParameter())) return false; + if (!getUriQueryParameter().equals(other.getUriQueryParameter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -477,29 +514,21 @@ public int hashCode() { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + STREAM_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStreamEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStreamEnabled()); hash = (37 * hash) + SCROLLS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getScrollsEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getScrollsEnabled()); hash = (37 * hash) + OUTBOUND_CLICKS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOutboundClicksEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOutboundClicksEnabled()); hash = (37 * hash) + SITE_SEARCH_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSiteSearchEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSiteSearchEnabled()); hash = (37 * hash) + VIDEO_ENGAGEMENT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getVideoEngagementEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVideoEngagementEnabled()); hash = (37 * hash) + FILE_DOWNLOADS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFileDownloadsEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFileDownloadsEnabled()); hash = (37 * hash) + PAGE_CHANGES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPageChangesEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPageChangesEnabled()); hash = (37 * hash) + FORM_INTERACTIONS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFormInteractionsEnabled()); + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFormInteractionsEnabled()); hash = (37 * hash) + SEARCH_QUERY_PARAMETER_FIELD_NUMBER; hash = (53 * hash) + getSearchQueryParameter().hashCode(); hash = (37 * hash) + URI_QUERY_PARAMETER_FIELD_NUMBER; @@ -510,98 +539,104 @@ public int hashCode() { } public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings prototype) { + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Singleton resource under a web DataStream, configuring measurement of
    * additional site interactions and content.
@@ -609,33 +644,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.analytics.admin.v1alpha.EnhancedMeasurementSettings}
    */
-  public static final class Builder extends
-      com.google.protobuf.GeneratedMessageV3.Builder implements
+  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+      implements
       // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.EnhancedMeasurementSettings)
       com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.analytics.admin.v1alpha.ResourcesProto
+          .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable
+      return com.google.analytics.admin.v1alpha.ResourcesProto
+          .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder.class);
+              com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class,
+              com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder.class);
     }
 
     // Construct using com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -655,13 +689,14 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.analytics.admin.v1alpha.ResourcesProto
+          .internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor;
     }
 
     @java.lang.Override
-    public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getDefaultInstanceForType() {
+    public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings
+        getDefaultInstanceForType() {
       return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance();
     }
 
@@ -676,13 +711,17 @@ public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings build() {
 
     @java.lang.Override
     public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings buildPartial() {
-      com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result = new com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(this);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result =
+          new com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(this);
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartial0(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result) {
+    private void buildPartial0(
+        com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings result) {
       int from_bitField0_ = bitField0_;
       if (((from_bitField0_ & 0x00000001) != 0)) {
         result.name_ = name_;
@@ -723,38 +762,39 @@ private void buildPartial0(com.google.analytics.admin.v1alpha.EnhancedMeasuremen
     public Builder clone() {
       return super.clone();
     }
+
     @java.lang.Override
     public Builder setField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.setField(field, value);
     }
+
     @java.lang.Override
-    public Builder clearField(
-        com.google.protobuf.Descriptors.FieldDescriptor field) {
+    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
       return super.clearField(field);
     }
+
     @java.lang.Override
-    public Builder clearOneof(
-        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
       return super.clearOneof(oneof);
     }
+
     @java.lang.Override
     public Builder setRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        int index, java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
       return super.setRepeatedField(field, index, value);
     }
+
     @java.lang.Override
     public Builder addRepeatedField(
-        com.google.protobuf.Descriptors.FieldDescriptor field,
-        java.lang.Object value) {
+        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
       return super.addRepeatedField(field, value);
     }
+
     @java.lang.Override
     public Builder mergeFrom(com.google.protobuf.Message other) {
       if (other instanceof com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) {
-        return mergeFrom((com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings)other);
+        return mergeFrom((com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -762,7 +802,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings other) {
-      if (other == com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance()) return this;
+      if (other
+          == com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -828,67 +870,79 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 16: {
-              streamEnabled_ = input.readBool();
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 16
-            case 24: {
-              scrollsEnabled_ = input.readBool();
-              bitField0_ |= 0x00000004;
-              break;
-            } // case 24
-            case 32: {
-              outboundClicksEnabled_ = input.readBool();
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 32
-            case 40: {
-              siteSearchEnabled_ = input.readBool();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 40
-            case 48: {
-              videoEngagementEnabled_ = input.readBool();
-              bitField0_ |= 0x00000020;
-              break;
-            } // case 48
-            case 56: {
-              fileDownloadsEnabled_ = input.readBool();
-              bitField0_ |= 0x00000040;
-              break;
-            } // case 56
-            case 64: {
-              pageChangesEnabled_ = input.readBool();
-              bitField0_ |= 0x00000080;
-              break;
-            } // case 64
-            case 72: {
-              formInteractionsEnabled_ = input.readBool();
-              bitField0_ |= 0x00000100;
-              break;
-            } // case 72
-            case 82: {
-              searchQueryParameter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000200;
-              break;
-            } // case 82
-            case 90: {
-              uriQueryParameter_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000400;
-              break;
-            } // case 90
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 16:
+              {
+                streamEnabled_ = input.readBool();
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 16
+            case 24:
+              {
+                scrollsEnabled_ = input.readBool();
+                bitField0_ |= 0x00000004;
+                break;
+              } // case 24
+            case 32:
+              {
+                outboundClicksEnabled_ = input.readBool();
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 32
+            case 40:
+              {
+                siteSearchEnabled_ = input.readBool();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 40
+            case 48:
+              {
+                videoEngagementEnabled_ = input.readBool();
+                bitField0_ |= 0x00000020;
+                break;
+              } // case 48
+            case 56:
+              {
+                fileDownloadsEnabled_ = input.readBool();
+                bitField0_ |= 0x00000040;
+                break;
+              } // case 56
+            case 64:
+              {
+                pageChangesEnabled_ = input.readBool();
+                bitField0_ |= 0x00000080;
+                break;
+              } // case 64
+            case 72:
+              {
+                formInteractionsEnabled_ = input.readBool();
+                bitField0_ |= 0x00000100;
+                break;
+              } // case 72
+            case 82:
+              {
+                searchQueryParameter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000200;
+                break;
+              } // case 82
+            case 90:
+              {
+                uriQueryParameter_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000400;
+                break;
+              } // case 90
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -898,10 +952,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * Output only. Resource name of the Enhanced Measurement Settings.
      * Format:
@@ -910,13 +967,13 @@ public Builder mergeFrom(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -925,6 +982,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the Enhanced Measurement Settings.
      * Format:
@@ -933,15 +992,14 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + 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); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -949,6 +1007,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Output only. Resource name of the Enhanced Measurement Settings.
      * Format:
@@ -957,18 +1017,22 @@ public java.lang.String getName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Output only. Resource name of the Enhanced Measurement Settings.
      * Format:
@@ -977,6 +1041,7 @@ public Builder setName(
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return This builder for chaining. */ public Builder clearName() { @@ -986,6 +1051,8 @@ public Builder clearName() { return this; } /** + * + * *
      * Output only. Resource name of the Enhanced Measurement Settings.
      * Format:
@@ -994,12 +1061,14 @@ public Builder clearName() {
      * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -1007,8 +1076,10 @@ public Builder setNameBytes( return this; } - private boolean streamEnabled_ ; + private boolean streamEnabled_; /** + * + * *
      * Indicates whether Enhanced Measurement Settings will be used to
      * automatically measure interactions and content on this web stream.
@@ -1018,6 +1089,7 @@ public Builder setNameBytes(
      * 
* * bool stream_enabled = 2; + * * @return The streamEnabled. */ @java.lang.Override @@ -1025,6 +1097,8 @@ public boolean getStreamEnabled() { return streamEnabled_; } /** + * + * *
      * Indicates whether Enhanced Measurement Settings will be used to
      * automatically measure interactions and content on this web stream.
@@ -1034,6 +1108,7 @@ public boolean getStreamEnabled() {
      * 
* * bool stream_enabled = 2; + * * @param value The streamEnabled to set. * @return This builder for chaining. */ @@ -1045,6 +1120,8 @@ public Builder setStreamEnabled(boolean value) { return this; } /** + * + * *
      * Indicates whether Enhanced Measurement Settings will be used to
      * automatically measure interactions and content on this web stream.
@@ -1054,6 +1131,7 @@ public Builder setStreamEnabled(boolean value) {
      * 
* * bool stream_enabled = 2; + * * @return This builder for chaining. */ public Builder clearStreamEnabled() { @@ -1063,14 +1141,17 @@ public Builder clearStreamEnabled() { return this; } - private boolean scrollsEnabled_ ; + private boolean scrollsEnabled_; /** + * + * *
      * If enabled, capture scroll events each time a visitor gets to the bottom of
      * a page.
      * 
* * bool scrolls_enabled = 3; + * * @return The scrollsEnabled. */ @java.lang.Override @@ -1078,12 +1159,15 @@ public boolean getScrollsEnabled() { return scrollsEnabled_; } /** + * + * *
      * If enabled, capture scroll events each time a visitor gets to the bottom of
      * a page.
      * 
* * bool scrolls_enabled = 3; + * * @param value The scrollsEnabled to set. * @return This builder for chaining. */ @@ -1095,12 +1179,15 @@ public Builder setScrollsEnabled(boolean value) { return this; } /** + * + * *
      * If enabled, capture scroll events each time a visitor gets to the bottom of
      * a page.
      * 
* * bool scrolls_enabled = 3; + * * @return This builder for chaining. */ public Builder clearScrollsEnabled() { @@ -1110,14 +1197,17 @@ public Builder clearScrollsEnabled() { return this; } - private boolean outboundClicksEnabled_ ; + private boolean outboundClicksEnabled_; /** + * + * *
      * If enabled, capture an outbound click event each time a visitor clicks a
      * link that leads them away from your domain.
      * 
* * bool outbound_clicks_enabled = 4; + * * @return The outboundClicksEnabled. */ @java.lang.Override @@ -1125,12 +1215,15 @@ public boolean getOutboundClicksEnabled() { return outboundClicksEnabled_; } /** + * + * *
      * If enabled, capture an outbound click event each time a visitor clicks a
      * link that leads them away from your domain.
      * 
* * bool outbound_clicks_enabled = 4; + * * @param value The outboundClicksEnabled to set. * @return This builder for chaining. */ @@ -1142,12 +1235,15 @@ public Builder setOutboundClicksEnabled(boolean value) { return this; } /** + * + * *
      * If enabled, capture an outbound click event each time a visitor clicks a
      * link that leads them away from your domain.
      * 
* * bool outbound_clicks_enabled = 4; + * * @return This builder for chaining. */ public Builder clearOutboundClicksEnabled() { @@ -1157,14 +1253,17 @@ public Builder clearOutboundClicksEnabled() { return this; } - private boolean siteSearchEnabled_ ; + private boolean siteSearchEnabled_; /** + * + * *
      * If enabled, capture a view search results event each time a visitor
      * performs a search on your site (based on a query parameter).
      * 
* * bool site_search_enabled = 5; + * * @return The siteSearchEnabled. */ @java.lang.Override @@ -1172,12 +1271,15 @@ public boolean getSiteSearchEnabled() { return siteSearchEnabled_; } /** + * + * *
      * If enabled, capture a view search results event each time a visitor
      * performs a search on your site (based on a query parameter).
      * 
* * bool site_search_enabled = 5; + * * @param value The siteSearchEnabled to set. * @return This builder for chaining. */ @@ -1189,12 +1291,15 @@ public Builder setSiteSearchEnabled(boolean value) { return this; } /** + * + * *
      * If enabled, capture a view search results event each time a visitor
      * performs a search on your site (based on a query parameter).
      * 
* * bool site_search_enabled = 5; + * * @return This builder for chaining. */ public Builder clearSiteSearchEnabled() { @@ -1204,14 +1309,17 @@ public Builder clearSiteSearchEnabled() { return this; } - private boolean videoEngagementEnabled_ ; + private boolean videoEngagementEnabled_; /** + * + * *
      * If enabled, capture video play, progress, and complete events as visitors
      * view embedded videos on your site.
      * 
* * bool video_engagement_enabled = 6; + * * @return The videoEngagementEnabled. */ @java.lang.Override @@ -1219,12 +1327,15 @@ public boolean getVideoEngagementEnabled() { return videoEngagementEnabled_; } /** + * + * *
      * If enabled, capture video play, progress, and complete events as visitors
      * view embedded videos on your site.
      * 
* * bool video_engagement_enabled = 6; + * * @param value The videoEngagementEnabled to set. * @return This builder for chaining. */ @@ -1236,12 +1347,15 @@ public Builder setVideoEngagementEnabled(boolean value) { return this; } /** + * + * *
      * If enabled, capture video play, progress, and complete events as visitors
      * view embedded videos on your site.
      * 
* * bool video_engagement_enabled = 6; + * * @return This builder for chaining. */ public Builder clearVideoEngagementEnabled() { @@ -1251,14 +1365,17 @@ public Builder clearVideoEngagementEnabled() { return this; } - private boolean fileDownloadsEnabled_ ; + private boolean fileDownloadsEnabled_; /** + * + * *
      * If enabled, capture a file download event each time a link is clicked with
      * a common document, compressed file, application, video, or audio extension.
      * 
* * bool file_downloads_enabled = 7; + * * @return The fileDownloadsEnabled. */ @java.lang.Override @@ -1266,12 +1383,15 @@ public boolean getFileDownloadsEnabled() { return fileDownloadsEnabled_; } /** + * + * *
      * If enabled, capture a file download event each time a link is clicked with
      * a common document, compressed file, application, video, or audio extension.
      * 
* * bool file_downloads_enabled = 7; + * * @param value The fileDownloadsEnabled to set. * @return This builder for chaining. */ @@ -1283,12 +1403,15 @@ public Builder setFileDownloadsEnabled(boolean value) { return this; } /** + * + * *
      * If enabled, capture a file download event each time a link is clicked with
      * a common document, compressed file, application, video, or audio extension.
      * 
* * bool file_downloads_enabled = 7; + * * @return This builder for chaining. */ public Builder clearFileDownloadsEnabled() { @@ -1298,14 +1421,17 @@ public Builder clearFileDownloadsEnabled() { return this; } - private boolean pageChangesEnabled_ ; + private boolean pageChangesEnabled_; /** + * + * *
      * If enabled, capture a page view event each time the website changes the
      * browser history state.
      * 
* * bool page_changes_enabled = 8; + * * @return The pageChangesEnabled. */ @java.lang.Override @@ -1313,12 +1439,15 @@ public boolean getPageChangesEnabled() { return pageChangesEnabled_; } /** + * + * *
      * If enabled, capture a page view event each time the website changes the
      * browser history state.
      * 
* * bool page_changes_enabled = 8; + * * @param value The pageChangesEnabled to set. * @return This builder for chaining. */ @@ -1330,12 +1459,15 @@ public Builder setPageChangesEnabled(boolean value) { return this; } /** + * + * *
      * If enabled, capture a page view event each time the website changes the
      * browser history state.
      * 
* * bool page_changes_enabled = 8; + * * @return This builder for chaining. */ public Builder clearPageChangesEnabled() { @@ -1345,8 +1477,10 @@ public Builder clearPageChangesEnabled() { return this; } - private boolean formInteractionsEnabled_ ; + private boolean formInteractionsEnabled_; /** + * + * *
      * If enabled, capture a form interaction event each time a visitor interacts
      * with a form on your website.
@@ -1354,6 +1488,7 @@ public Builder clearPageChangesEnabled() {
      * 
* * bool form_interactions_enabled = 9; + * * @return The formInteractionsEnabled. */ @java.lang.Override @@ -1361,6 +1496,8 @@ public boolean getFormInteractionsEnabled() { return formInteractionsEnabled_; } /** + * + * *
      * If enabled, capture a form interaction event each time a visitor interacts
      * with a form on your website.
@@ -1368,6 +1505,7 @@ public boolean getFormInteractionsEnabled() {
      * 
* * bool form_interactions_enabled = 9; + * * @param value The formInteractionsEnabled to set. * @return This builder for chaining. */ @@ -1379,6 +1517,8 @@ public Builder setFormInteractionsEnabled(boolean value) { return this; } /** + * + * *
      * If enabled, capture a form interaction event each time a visitor interacts
      * with a form on your website.
@@ -1386,6 +1526,7 @@ public Builder setFormInteractionsEnabled(boolean value) {
      * 
* * bool form_interactions_enabled = 9; + * * @return This builder for chaining. */ public Builder clearFormInteractionsEnabled() { @@ -1397,19 +1538,21 @@ public Builder clearFormInteractionsEnabled() { private java.lang.Object searchQueryParameter_ = ""; /** + * + * *
      * Required. URL query parameters to interpret as site search parameters.
      * Max length is 1024 characters. Must not be empty.
      * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The searchQueryParameter. */ public java.lang.String getSearchQueryParameter() { java.lang.Object ref = searchQueryParameter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); searchQueryParameter_ = s; return s; @@ -1418,21 +1561,22 @@ public java.lang.String getSearchQueryParameter() { } } /** + * + * *
      * Required. URL query parameters to interpret as site search parameters.
      * Max length is 1024 characters. Must not be empty.
      * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for searchQueryParameter. */ - public com.google.protobuf.ByteString - getSearchQueryParameterBytes() { + public com.google.protobuf.ByteString getSearchQueryParameterBytes() { java.lang.Object ref = searchQueryParameter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); searchQueryParameter_ = b; return b; } else { @@ -1440,30 +1584,37 @@ public java.lang.String getSearchQueryParameter() { } } /** + * + * *
      * Required. URL query parameters to interpret as site search parameters.
      * Max length is 1024 characters. Must not be empty.
      * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The searchQueryParameter to set. * @return This builder for chaining. */ - public Builder setSearchQueryParameter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearchQueryParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } searchQueryParameter_ = value; bitField0_ |= 0x00000200; onChanged(); return this; } /** + * + * *
      * Required. URL query parameters to interpret as site search parameters.
      * Max length is 1024 characters. Must not be empty.
      * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return This builder for chaining. */ public Builder clearSearchQueryParameter() { @@ -1473,18 +1624,22 @@ public Builder clearSearchQueryParameter() { return this; } /** + * + * *
      * Required. URL query parameters to interpret as site search parameters.
      * Max length is 1024 characters. Must not be empty.
      * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @param value The bytes for searchQueryParameter to set. * @return This builder for chaining. */ - public Builder setSearchQueryParameterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setSearchQueryParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); searchQueryParameter_ = value; bitField0_ |= 0x00000200; @@ -1494,19 +1649,21 @@ public Builder setSearchQueryParameterBytes( private java.lang.Object uriQueryParameter_ = ""; /** + * + * *
      * Additional URL query parameters.
      * Max length is 1024 characters.
      * 
* * string uri_query_parameter = 11; + * * @return The uriQueryParameter. */ public java.lang.String getUriQueryParameter() { java.lang.Object ref = uriQueryParameter_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); uriQueryParameter_ = s; return s; @@ -1515,21 +1672,22 @@ public java.lang.String getUriQueryParameter() { } } /** + * + * *
      * Additional URL query parameters.
      * Max length is 1024 characters.
      * 
* * string uri_query_parameter = 11; + * * @return The bytes for uriQueryParameter. */ - public com.google.protobuf.ByteString - getUriQueryParameterBytes() { + public com.google.protobuf.ByteString getUriQueryParameterBytes() { java.lang.Object ref = uriQueryParameter_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); uriQueryParameter_ = b; return b; } else { @@ -1537,30 +1695,37 @@ public java.lang.String getUriQueryParameter() { } } /** + * + * *
      * Additional URL query parameters.
      * Max length is 1024 characters.
      * 
* * string uri_query_parameter = 11; + * * @param value The uriQueryParameter to set. * @return This builder for chaining. */ - public Builder setUriQueryParameter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriQueryParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } uriQueryParameter_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } /** + * + * *
      * Additional URL query parameters.
      * Max length is 1024 characters.
      * 
* * string uri_query_parameter = 11; + * * @return This builder for chaining. */ public Builder clearUriQueryParameter() { @@ -1570,27 +1735,31 @@ public Builder clearUriQueryParameter() { return this; } /** + * + * *
      * Additional URL query parameters.
      * Max length is 1024 characters.
      * 
* * string uri_query_parameter = 11; + * * @param value The bytes for uriQueryParameter to set. * @return This builder for chaining. */ - public Builder setUriQueryParameterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setUriQueryParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); uriQueryParameter_ = value; bitField0_ |= 0x00000400; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1600,41 +1769,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) } // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) - private static final com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings DEFAULT_INSTANCE; + private static final com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings(); } - public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnhancedMeasurementSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnhancedMeasurementSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1646,9 +1817,8 @@ public com.google.protobuf.Parser getParserForType( } @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java similarity index 81% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java index bf3a2f757413..bff253d476bb 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface EnhancedMeasurementSettingsOrBuilder extends +public interface EnhancedMeasurementSettingsOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.EnhancedMeasurementSettings) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of the Enhanced Measurement Settings.
    * Format:
@@ -16,10 +34,13 @@ public interface EnhancedMeasurementSettingsOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the Enhanced Measurement Settings.
    * Format:
@@ -28,12 +49,14 @@ public interface EnhancedMeasurementSettingsOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Indicates whether Enhanced Measurement Settings will be used to
    * automatically measure interactions and content on this web stream.
@@ -43,77 +66,98 @@ public interface EnhancedMeasurementSettingsOrBuilder extends
    * 
* * bool stream_enabled = 2; + * * @return The streamEnabled. */ boolean getStreamEnabled(); /** + * + * *
    * If enabled, capture scroll events each time a visitor gets to the bottom of
    * a page.
    * 
* * bool scrolls_enabled = 3; + * * @return The scrollsEnabled. */ boolean getScrollsEnabled(); /** + * + * *
    * If enabled, capture an outbound click event each time a visitor clicks a
    * link that leads them away from your domain.
    * 
* * bool outbound_clicks_enabled = 4; + * * @return The outboundClicksEnabled. */ boolean getOutboundClicksEnabled(); /** + * + * *
    * If enabled, capture a view search results event each time a visitor
    * performs a search on your site (based on a query parameter).
    * 
* * bool site_search_enabled = 5; + * * @return The siteSearchEnabled. */ boolean getSiteSearchEnabled(); /** + * + * *
    * If enabled, capture video play, progress, and complete events as visitors
    * view embedded videos on your site.
    * 
* * bool video_engagement_enabled = 6; + * * @return The videoEngagementEnabled. */ boolean getVideoEngagementEnabled(); /** + * + * *
    * If enabled, capture a file download event each time a link is clicked with
    * a common document, compressed file, application, video, or audio extension.
    * 
* * bool file_downloads_enabled = 7; + * * @return The fileDownloadsEnabled. */ boolean getFileDownloadsEnabled(); /** + * + * *
    * If enabled, capture a page view event each time the website changes the
    * browser history state.
    * 
* * bool page_changes_enabled = 8; + * * @return The pageChangesEnabled. */ boolean getPageChangesEnabled(); /** + * + * *
    * If enabled, capture a form interaction event each time a visitor interacts
    * with a form on your website.
@@ -121,51 +165,62 @@ public interface EnhancedMeasurementSettingsOrBuilder extends
    * 
* * bool form_interactions_enabled = 9; + * * @return The formInteractionsEnabled. */ boolean getFormInteractionsEnabled(); /** + * + * *
    * Required. URL query parameters to interpret as site search parameters.
    * Max length is 1024 characters. Must not be empty.
    * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The searchQueryParameter. */ java.lang.String getSearchQueryParameter(); /** + * + * *
    * Required. URL query parameters to interpret as site search parameters.
    * Max length is 1024 characters. Must not be empty.
    * 
* * string search_query_parameter = 10 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for searchQueryParameter. */ - com.google.protobuf.ByteString - getSearchQueryParameterBytes(); + com.google.protobuf.ByteString getSearchQueryParameterBytes(); /** + * + * *
    * Additional URL query parameters.
    * Max length is 1024 characters.
    * 
* * string uri_query_parameter = 11; + * * @return The uriQueryParameter. */ java.lang.String getUriQueryParameter(); /** + * + * *
    * Additional URL query parameters.
    * Max length is 1024 characters.
    * 
* * string uri_query_parameter = 11; + * * @return The bytes for uriQueryParameter. */ - com.google.protobuf.ByteString - getUriQueryParameterBytes(); + com.google.protobuf.ByteString getUriQueryParameterBytes(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateAndEdit.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateAndEdit.java new file mode 100644 index 000000000000..2c199caa9367 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateAndEdit.java @@ -0,0 +1,131 @@ +/* + * 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/admin/v1alpha/event_create_and_edit.proto + +package com.google.analytics.admin.v1alpha; + +public final class EventCreateAndEdit { + private EventCreateAndEdit() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n:google/analytics/admin/v1alpha/event_c" + + "reate_and_edit.proto\022\036google.analytics.a" + + "dmin.v1alpha\032\037google/api/field_behavior." + + "proto\032\031google/api/resource.proto\"K\n\021Para" + + "meterMutation\022\027\n\tparameter\030\001 \001(\tB\004\342A\001\002\022\035" + + "\n\017parameter_value\030\002 \001(\tB\004\342A\001\002\"\225\003\n\017EventC" + + "reateRule\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\037\n\021destina" + + "tion_event\030\002 \001(\tB\004\342A\001\002\022Q\n\020event_conditio" + + "ns\030\003 \003(\01321.google.analytics.admin.v1alph" + + "a.MatchingConditionB\004\342A\001\002\022\036\n\026source_copy" + + "_parameters\030\004 \001(\010\022N\n\023parameter_mutations" + + "\030\005 \003(\01321.google.analytics.admin.v1alpha." + + "ParameterMutation:\211\001\352A\205\001\n-analyticsadmin" + + ".googleapis.com/EventCreateRule\022Tpropert" + + "ies/{property}/dataStreams/{data_stream}" + + "/eventCreateRules/{event_create_rule}\"\260\004" + + "\n\021MatchingCondition\022\023\n\005field\030\001 \001(\tB\004\342A\001\002" + + "\022_\n\017comparison_type\030\002 \001(\0162@.google.analy" + + "tics.admin.v1alpha.MatchingCondition.Com" + + "parisonTypeB\004\342A\001\002\022\023\n\005value\030\003 \001(\tB\004\342A\001\002\022\017" + + "\n\007negated\030\004 \001(\010\"\376\002\n\016ComparisonType\022\037\n\033CO" + + "MPARISON_TYPE_UNSPECIFIED\020\000\022\n\n\006EQUALS\020\001\022" + + "\033\n\027EQUALS_CASE_INSENSITIVE\020\002\022\014\n\010CONTAINS" + + "\020\003\022\035\n\031CONTAINS_CASE_INSENSITIVE\020\004\022\017\n\013STA" + + "RTS_WITH\020\005\022 \n\034STARTS_WITH_CASE_INSENSITI" + + "VE\020\006\022\r\n\tENDS_WITH\020\007\022\036\n\032ENDS_WITH_CASE_IN" + + "SENSITIVE\020\010\022\020\n\014GREATER_THAN\020\t\022\031\n\025GREATER" + + "_THAN_OR_EQUAL\020\n\022\r\n\tLESS_THAN\020\013\022\026\n\022LESS_" + + "THAN_OR_EQUAL\020\014\022\026\n\022REGULAR_EXPRESSION\020\r\022" + + "\'\n#REGULAR_EXPRESSION_CASE_INSENSITIVE\020\016" + + "Bf\n\"com.google.analytics.admin.v1alphaP\001" + + "Z>cloud.google.com/go/analytics/admin/ap" + + "iv1alpha/adminpb;adminpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor, + new java.lang.String[] { + "Parameter", "ParameterValue", + }); + internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor, + new java.lang.String[] { + "Name", + "DestinationEvent", + "EventConditions", + "SourceCopyParameters", + "ParameterMutations", + }); + internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor, + new java.lang.String[] { + "Field", "ComparisonType", "Value", "Negated", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRule.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRule.java new file mode 100644 index 000000000000..1971f1cc43fd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRule.java @@ -0,0 +1,2131 @@ +/* + * 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/admin/v1alpha/event_create_and_edit.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * An Event Create Rule defines conditions that will trigger the creation
+ * of an entirely new event based upon matched criteria of a source event.
+ * Additional mutations of the parameters from the source event can be defined.
+ *
+ * Unlike Event Edit rules, Event Creation Rules have no defined order.  They
+ * will all be run independently.
+ *
+ * Event Edit and Event Create rules can't be used to modify an event created
+ * from an Event Create rule.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.EventCreateRule} + */ +public final class EventCreateRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.EventCreateRule) + EventCreateRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventCreateRule.newBuilder() to construct. + private EventCreateRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EventCreateRule() { + name_ = ""; + destinationEvent_ = ""; + eventConditions_ = java.util.Collections.emptyList(); + parameterMutations_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventCreateRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.EventCreateRule.class, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this EventCreateRule resource.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this EventCreateRule resource.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESTINATION_EVENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object destinationEvent_ = ""; + /** + * + * + *
+   * Required. The name of the new event to be created.
+   *
+   * This value must:
+   * * be less than 40 characters
+   * * consist only of letters, digits or _ (underscores)
+   * * start with a letter
+   * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationEvent. + */ + @java.lang.Override + public java.lang.String getDestinationEvent() { + java.lang.Object ref = destinationEvent_; + 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(); + destinationEvent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the new event to be created.
+   *
+   * This value must:
+   * * be less than 40 characters
+   * * consist only of letters, digits or _ (underscores)
+   * * start with a letter
+   * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationEvent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDestinationEventBytes() { + java.lang.Object ref = destinationEvent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationEvent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_CONDITIONS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List eventConditions_; + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getEventConditionsList() { + return eventConditions_; + } + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getEventConditionsOrBuilderList() { + return eventConditions_; + } + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getEventConditionsCount() { + return eventConditions_.size(); + } + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingCondition getEventConditions(int index) { + return eventConditions_.get(index); + } + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder getEventConditionsOrBuilder( + int index) { + return eventConditions_.get(index); + } + + public static final int SOURCE_COPY_PARAMETERS_FIELD_NUMBER = 4; + private boolean sourceCopyParameters_ = false; + /** + * + * + *
+   * If true, the source parameters are copied to the new event.
+   * If false, or unset, all non-internal parameters are not copied from the
+   * source event. Parameter mutations are applied after the parameters have
+   * been copied.
+   * 
+ * + * bool source_copy_parameters = 4; + * + * @return The sourceCopyParameters. + */ + @java.lang.Override + public boolean getSourceCopyParameters() { + return sourceCopyParameters_; + } + + public static final int PARAMETER_MUTATIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List parameterMutations_; + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + @java.lang.Override + public java.util.List + getParameterMutationsList() { + return parameterMutations_; + } + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + @java.lang.Override + public java.util.List + getParameterMutationsOrBuilderList() { + return parameterMutations_; + } + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + @java.lang.Override + public int getParameterMutationsCount() { + return parameterMutations_.size(); + } + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ParameterMutation getParameterMutations(int index) { + return parameterMutations_.get(index); + } + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder + getParameterMutationsOrBuilder(int index) { + return parameterMutations_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationEvent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationEvent_); + } + for (int i = 0; i < eventConditions_.size(); i++) { + output.writeMessage(3, eventConditions_.get(i)); + } + if (sourceCopyParameters_ != false) { + output.writeBool(4, sourceCopyParameters_); + } + for (int i = 0; i < parameterMutations_.size(); i++) { + output.writeMessage(5, parameterMutations_.get(i)); + } + 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(destinationEvent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationEvent_); + } + for (int i = 0; i < eventConditions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, eventConditions_.get(i)); + } + if (sourceCopyParameters_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, sourceCopyParameters_); + } + for (int i = 0; i < parameterMutations_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, parameterMutations_.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.admin.v1alpha.EventCreateRule)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.EventCreateRule other = + (com.google.analytics.admin.v1alpha.EventCreateRule) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDestinationEvent().equals(other.getDestinationEvent())) return false; + if (!getEventConditionsList().equals(other.getEventConditionsList())) return false; + if (getSourceCopyParameters() != other.getSourceCopyParameters()) return false; + if (!getParameterMutationsList().equals(other.getParameterMutationsList())) 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) + DESTINATION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getDestinationEvent().hashCode(); + if (getEventConditionsCount() > 0) { + hash = (37 * hash) + EVENT_CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + getEventConditionsList().hashCode(); + } + hash = (37 * hash) + SOURCE_COPY_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSourceCopyParameters()); + if (getParameterMutationsCount() > 0) { + hash = (37 * hash) + PARAMETER_MUTATIONS_FIELD_NUMBER; + hash = (53 * hash) + getParameterMutationsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.EventCreateRule 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 Event Create Rule defines conditions that will trigger the creation
+   * of an entirely new event based upon matched criteria of a source event.
+   * Additional mutations of the parameters from the source event can be defined.
+   *
+   * Unlike Event Edit rules, Event Creation Rules have no defined order.  They
+   * will all be run independently.
+   *
+   * Event Edit and Event Create rules can't be used to modify an event created
+   * from an Event Create rule.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.EventCreateRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.EventCreateRule) + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.EventCreateRule.class, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.EventCreateRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + destinationEvent_ = ""; + if (eventConditionsBuilder_ == null) { + eventConditions_ = java.util.Collections.emptyList(); + } else { + eventConditions_ = null; + eventConditionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + sourceCopyParameters_ = false; + if (parameterMutationsBuilder_ == null) { + parameterMutations_ = java.util.Collections.emptyList(); + } else { + parameterMutations_ = null; + parameterMutationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule build() { + com.google.analytics.admin.v1alpha.EventCreateRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule buildPartial() { + com.google.analytics.admin.v1alpha.EventCreateRule result = + new com.google.analytics.admin.v1alpha.EventCreateRule(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.EventCreateRule result) { + if (eventConditionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + eventConditions_ = java.util.Collections.unmodifiableList(eventConditions_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.eventConditions_ = eventConditions_; + } else { + result.eventConditions_ = eventConditionsBuilder_.build(); + } + if (parameterMutationsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + parameterMutations_ = java.util.Collections.unmodifiableList(parameterMutations_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.parameterMutations_ = parameterMutations_; + } else { + result.parameterMutations_ = parameterMutationsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.EventCreateRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.destinationEvent_ = destinationEvent_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sourceCopyParameters_ = sourceCopyParameters_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.EventCreateRule) { + return mergeFrom((com.google.analytics.admin.v1alpha.EventCreateRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.EventCreateRule other) { + if (other == com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDestinationEvent().isEmpty()) { + destinationEvent_ = other.destinationEvent_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (eventConditionsBuilder_ == null) { + if (!other.eventConditions_.isEmpty()) { + if (eventConditions_.isEmpty()) { + eventConditions_ = other.eventConditions_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEventConditionsIsMutable(); + eventConditions_.addAll(other.eventConditions_); + } + onChanged(); + } + } else { + if (!other.eventConditions_.isEmpty()) { + if (eventConditionsBuilder_.isEmpty()) { + eventConditionsBuilder_.dispose(); + eventConditionsBuilder_ = null; + eventConditions_ = other.eventConditions_; + bitField0_ = (bitField0_ & ~0x00000004); + eventConditionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventConditionsFieldBuilder() + : null; + } else { + eventConditionsBuilder_.addAllMessages(other.eventConditions_); + } + } + } + if (other.getSourceCopyParameters() != false) { + setSourceCopyParameters(other.getSourceCopyParameters()); + } + if (parameterMutationsBuilder_ == null) { + if (!other.parameterMutations_.isEmpty()) { + if (parameterMutations_.isEmpty()) { + parameterMutations_ = other.parameterMutations_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureParameterMutationsIsMutable(); + parameterMutations_.addAll(other.parameterMutations_); + } + onChanged(); + } + } else { + if (!other.parameterMutations_.isEmpty()) { + if (parameterMutationsBuilder_.isEmpty()) { + parameterMutationsBuilder_.dispose(); + parameterMutationsBuilder_ = null; + parameterMutations_ = other.parameterMutations_; + bitField0_ = (bitField0_ & ~0x00000010); + parameterMutationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getParameterMutationsFieldBuilder() + : null; + } else { + parameterMutationsBuilder_.addAllMessages(other.parameterMutations_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + destinationEvent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1alpha.MatchingCondition m = + input.readMessage( + com.google.analytics.admin.v1alpha.MatchingCondition.parser(), + extensionRegistry); + if (eventConditionsBuilder_ == null) { + ensureEventConditionsIsMutable(); + eventConditions_.add(m); + } else { + eventConditionsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + sourceCopyParameters_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + com.google.analytics.admin.v1alpha.ParameterMutation m = + input.readMessage( + com.google.analytics.admin.v1alpha.ParameterMutation.parser(), + extensionRegistry); + if (parameterMutationsBuilder_ == null) { + ensureParameterMutationsIsMutable(); + parameterMutations_.add(m); + } else { + parameterMutationsBuilder_.addMessage(m); + } + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this EventCreateRule resource.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this EventCreateRule resource.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this EventCreateRule resource.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this EventCreateRule resource.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+     * 
+ * + * string name = 1 [(.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. Resource name for this EventCreateRule resource.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object destinationEvent_ = ""; + /** + * + * + *
+     * Required. The name of the new event to be created.
+     *
+     * This value must:
+     * * be less than 40 characters
+     * * consist only of letters, digits or _ (underscores)
+     * * start with a letter
+     * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationEvent. + */ + public java.lang.String getDestinationEvent() { + java.lang.Object ref = destinationEvent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + destinationEvent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the new event to be created.
+     *
+     * This value must:
+     * * be less than 40 characters
+     * * consist only of letters, digits or _ (underscores)
+     * * start with a letter
+     * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationEvent. + */ + public com.google.protobuf.ByteString getDestinationEventBytes() { + java.lang.Object ref = destinationEvent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + destinationEvent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the new event to be created.
+     *
+     * This value must:
+     * * be less than 40 characters
+     * * consist only of letters, digits or _ (underscores)
+     * * start with a letter
+     * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The destinationEvent to set. + * @return This builder for chaining. + */ + public Builder setDestinationEvent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + destinationEvent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the new event to be created.
+     *
+     * This value must:
+     * * be less than 40 characters
+     * * consist only of letters, digits or _ (underscores)
+     * * start with a letter
+     * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDestinationEvent() { + destinationEvent_ = getDefaultInstance().getDestinationEvent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the new event to be created.
+     *
+     * This value must:
+     * * be less than 40 characters
+     * * consist only of letters, digits or _ (underscores)
+     * * start with a letter
+     * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for destinationEvent to set. + * @return This builder for chaining. + */ + public Builder setDestinationEventBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + destinationEvent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List eventConditions_ = + java.util.Collections.emptyList(); + + private void ensureEventConditionsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + eventConditions_ = + new java.util.ArrayList( + eventConditions_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MatchingCondition, + com.google.analytics.admin.v1alpha.MatchingCondition.Builder, + com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder> + eventConditionsBuilder_; + + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getEventConditionsList() { + if (eventConditionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(eventConditions_); + } else { + return eventConditionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getEventConditionsCount() { + if (eventConditionsBuilder_ == null) { + return eventConditions_.size(); + } else { + return eventConditionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MatchingCondition getEventConditions(int index) { + if (eventConditionsBuilder_ == null) { + return eventConditions_.get(index); + } else { + return eventConditionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventConditions( + int index, com.google.analytics.admin.v1alpha.MatchingCondition value) { + if (eventConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventConditionsIsMutable(); + eventConditions_.set(index, value); + onChanged(); + } else { + eventConditionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventConditions( + int index, com.google.analytics.admin.v1alpha.MatchingCondition.Builder builderForValue) { + if (eventConditionsBuilder_ == null) { + ensureEventConditionsIsMutable(); + eventConditions_.set(index, builderForValue.build()); + onChanged(); + } else { + eventConditionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEventConditions(com.google.analytics.admin.v1alpha.MatchingCondition value) { + if (eventConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventConditionsIsMutable(); + eventConditions_.add(value); + onChanged(); + } else { + eventConditionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEventConditions( + int index, com.google.analytics.admin.v1alpha.MatchingCondition value) { + if (eventConditionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventConditionsIsMutable(); + eventConditions_.add(index, value); + onChanged(); + } else { + eventConditionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEventConditions( + com.google.analytics.admin.v1alpha.MatchingCondition.Builder builderForValue) { + if (eventConditionsBuilder_ == null) { + ensureEventConditionsIsMutable(); + eventConditions_.add(builderForValue.build()); + onChanged(); + } else { + eventConditionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addEventConditions( + int index, com.google.analytics.admin.v1alpha.MatchingCondition.Builder builderForValue) { + if (eventConditionsBuilder_ == null) { + ensureEventConditionsIsMutable(); + eventConditions_.add(index, builderForValue.build()); + onChanged(); + } else { + eventConditionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllEventConditions( + java.lang.Iterable values) { + if (eventConditionsBuilder_ == null) { + ensureEventConditionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventConditions_); + onChanged(); + } else { + eventConditionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEventConditions() { + if (eventConditionsBuilder_ == null) { + eventConditions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + eventConditionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeEventConditions(int index) { + if (eventConditionsBuilder_ == null) { + ensureEventConditionsIsMutable(); + eventConditions_.remove(index); + onChanged(); + } else { + eventConditionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MatchingCondition.Builder getEventConditionsBuilder( + int index) { + return getEventConditionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder + getEventConditionsOrBuilder(int index) { + if (eventConditionsBuilder_ == null) { + return eventConditions_.get(index); + } else { + return eventConditionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getEventConditionsOrBuilderList() { + if (eventConditionsBuilder_ != null) { + return eventConditionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(eventConditions_); + } + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MatchingCondition.Builder + addEventConditionsBuilder() { + return getEventConditionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MatchingCondition.Builder addEventConditionsBuilder( + int index) { + return getEventConditionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Must have at least one condition, and can have up to 10 max.
+     * Conditions on the source event must match for this rule to be applied.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getEventConditionsBuilderList() { + return getEventConditionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MatchingCondition, + com.google.analytics.admin.v1alpha.MatchingCondition.Builder, + com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder> + getEventConditionsFieldBuilder() { + if (eventConditionsBuilder_ == null) { + eventConditionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MatchingCondition, + com.google.analytics.admin.v1alpha.MatchingCondition.Builder, + com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder>( + eventConditions_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + eventConditions_ = null; + } + return eventConditionsBuilder_; + } + + private boolean sourceCopyParameters_; + /** + * + * + *
+     * If true, the source parameters are copied to the new event.
+     * If false, or unset, all non-internal parameters are not copied from the
+     * source event. Parameter mutations are applied after the parameters have
+     * been copied.
+     * 
+ * + * bool source_copy_parameters = 4; + * + * @return The sourceCopyParameters. + */ + @java.lang.Override + public boolean getSourceCopyParameters() { + return sourceCopyParameters_; + } + /** + * + * + *
+     * If true, the source parameters are copied to the new event.
+     * If false, or unset, all non-internal parameters are not copied from the
+     * source event. Parameter mutations are applied after the parameters have
+     * been copied.
+     * 
+ * + * bool source_copy_parameters = 4; + * + * @param value The sourceCopyParameters to set. + * @return This builder for chaining. + */ + public Builder setSourceCopyParameters(boolean value) { + + sourceCopyParameters_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the source parameters are copied to the new event.
+     * If false, or unset, all non-internal parameters are not copied from the
+     * source event. Parameter mutations are applied after the parameters have
+     * been copied.
+     * 
+ * + * bool source_copy_parameters = 4; + * + * @return This builder for chaining. + */ + public Builder clearSourceCopyParameters() { + bitField0_ = (bitField0_ & ~0x00000008); + sourceCopyParameters_ = false; + onChanged(); + return this; + } + + private java.util.List + parameterMutations_ = java.util.Collections.emptyList(); + + private void ensureParameterMutationsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + parameterMutations_ = + new java.util.ArrayList( + parameterMutations_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ParameterMutation, + com.google.analytics.admin.v1alpha.ParameterMutation.Builder, + com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder> + parameterMutationsBuilder_; + + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public java.util.List + getParameterMutationsList() { + if (parameterMutationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(parameterMutations_); + } else { + return parameterMutationsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public int getParameterMutationsCount() { + if (parameterMutationsBuilder_ == null) { + return parameterMutations_.size(); + } else { + return parameterMutationsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public com.google.analytics.admin.v1alpha.ParameterMutation getParameterMutations(int index) { + if (parameterMutationsBuilder_ == null) { + return parameterMutations_.get(index); + } else { + return parameterMutationsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder setParameterMutations( + int index, com.google.analytics.admin.v1alpha.ParameterMutation value) { + if (parameterMutationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParameterMutationsIsMutable(); + parameterMutations_.set(index, value); + onChanged(); + } else { + parameterMutationsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder setParameterMutations( + int index, com.google.analytics.admin.v1alpha.ParameterMutation.Builder builderForValue) { + if (parameterMutationsBuilder_ == null) { + ensureParameterMutationsIsMutable(); + parameterMutations_.set(index, builderForValue.build()); + onChanged(); + } else { + parameterMutationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder addParameterMutations( + com.google.analytics.admin.v1alpha.ParameterMutation value) { + if (parameterMutationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParameterMutationsIsMutable(); + parameterMutations_.add(value); + onChanged(); + } else { + parameterMutationsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder addParameterMutations( + int index, com.google.analytics.admin.v1alpha.ParameterMutation value) { + if (parameterMutationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureParameterMutationsIsMutable(); + parameterMutations_.add(index, value); + onChanged(); + } else { + parameterMutationsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder addParameterMutations( + com.google.analytics.admin.v1alpha.ParameterMutation.Builder builderForValue) { + if (parameterMutationsBuilder_ == null) { + ensureParameterMutationsIsMutable(); + parameterMutations_.add(builderForValue.build()); + onChanged(); + } else { + parameterMutationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder addParameterMutations( + int index, com.google.analytics.admin.v1alpha.ParameterMutation.Builder builderForValue) { + if (parameterMutationsBuilder_ == null) { + ensureParameterMutationsIsMutable(); + parameterMutations_.add(index, builderForValue.build()); + onChanged(); + } else { + parameterMutationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder addAllParameterMutations( + java.lang.Iterable values) { + if (parameterMutationsBuilder_ == null) { + ensureParameterMutationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parameterMutations_); + onChanged(); + } else { + parameterMutationsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder clearParameterMutations() { + if (parameterMutationsBuilder_ == null) { + parameterMutations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + parameterMutationsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public Builder removeParameterMutations(int index) { + if (parameterMutationsBuilder_ == null) { + ensureParameterMutationsIsMutable(); + parameterMutations_.remove(index); + onChanged(); + } else { + parameterMutationsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public com.google.analytics.admin.v1alpha.ParameterMutation.Builder + getParameterMutationsBuilder(int index) { + return getParameterMutationsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder + getParameterMutationsOrBuilder(int index) { + if (parameterMutationsBuilder_ == null) { + return parameterMutations_.get(index); + } else { + return parameterMutationsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public java.util.List + getParameterMutationsOrBuilderList() { + if (parameterMutationsBuilder_ != null) { + return parameterMutationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(parameterMutations_); + } + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public com.google.analytics.admin.v1alpha.ParameterMutation.Builder + addParameterMutationsBuilder() { + return getParameterMutationsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance()); + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public com.google.analytics.admin.v1alpha.ParameterMutation.Builder + addParameterMutationsBuilder(int index) { + return getParameterMutationsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance()); + } + /** + * + * + *
+     * Parameter mutations define parameter behavior on the new event, and
+     * are applied in order.
+     * A maximum of 20 mutations can be applied.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + public java.util.List + getParameterMutationsBuilderList() { + return getParameterMutationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ParameterMutation, + com.google.analytics.admin.v1alpha.ParameterMutation.Builder, + com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder> + getParameterMutationsFieldBuilder() { + if (parameterMutationsBuilder_ == null) { + parameterMutationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ParameterMutation, + com.google.analytics.admin.v1alpha.ParameterMutation.Builder, + com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder>( + parameterMutations_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + parameterMutations_ = null; + } + return parameterMutationsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.EventCreateRule) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.EventCreateRule) + private static final com.google.analytics.admin.v1alpha.EventCreateRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.EventCreateRule(); + } + + public static com.google.analytics.admin.v1alpha.EventCreateRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventCreateRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleOrBuilder.java new file mode 100644 index 000000000000..6649f49957af --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleOrBuilder.java @@ -0,0 +1,241 @@ +/* + * 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/admin/v1alpha/event_create_and_edit.proto + +package com.google.analytics.admin.v1alpha; + +public interface EventCreateRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.EventCreateRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this EventCreateRule resource.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this EventCreateRule resource.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The name of the new event to be created.
+   *
+   * This value must:
+   * * be less than 40 characters
+   * * consist only of letters, digits or _ (underscores)
+   * * start with a letter
+   * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The destinationEvent. + */ + java.lang.String getDestinationEvent(); + /** + * + * + *
+   * Required. The name of the new event to be created.
+   *
+   * This value must:
+   * * be less than 40 characters
+   * * consist only of letters, digits or _ (underscores)
+   * * start with a letter
+   * 
+ * + * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for destinationEvent. + */ + com.google.protobuf.ByteString getDestinationEventBytes(); + + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getEventConditionsList(); + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MatchingCondition getEventConditions(int index); + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getEventConditionsCount(); + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getEventConditionsOrBuilderList(); + /** + * + * + *
+   * Required. Must have at least one condition, and can have up to 10 max.
+   * Conditions on the source event must match for this rule to be applied.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder getEventConditionsOrBuilder( + int index); + + /** + * + * + *
+   * If true, the source parameters are copied to the new event.
+   * If false, or unset, all non-internal parameters are not copied from the
+   * source event. Parameter mutations are applied after the parameters have
+   * been copied.
+   * 
+ * + * bool source_copy_parameters = 4; + * + * @return The sourceCopyParameters. + */ + boolean getSourceCopyParameters(); + + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + java.util.List getParameterMutationsList(); + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + com.google.analytics.admin.v1alpha.ParameterMutation getParameterMutations(int index); + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + int getParameterMutationsCount(); + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + java.util.List + getParameterMutationsOrBuilderList(); + /** + * + * + *
+   * Parameter mutations define parameter behavior on the new event, and
+   * are applied in order.
+   * A maximum of 20 mutations can be applied.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; + * + */ + com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder getParameterMutationsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMapping.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMapping.java new file mode 100644 index 000000000000..6cfab547e40d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMapping.java @@ -0,0 +1,1206 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Event setting conditions to match an event.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.EventMapping} + */ +public final class EventMapping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.EventMapping) + EventMappingOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventMapping.newBuilder() to construct. + private EventMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EventMapping() { + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventMapping(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.EventMapping.class, + com.google.analytics.admin.v1alpha.EventMapping.Builder.class); + } + + private int bitField0_; + public static final int EVENT_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventName_ = ""; + /** + * + * + *
+   * Required. Name of the GA4 event. It must always be set.
+   * The max allowed display name length is 40 UTF-16 code units.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + 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(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Name of the GA4 event. It must always be set.
+   * The max allowed display name length is 40 UTF-16 code units.
+   * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIN_EVENT_COUNT_FIELD_NUMBER = 2; + private long minEventCount_ = 0L; + /** + * + * + *
+   * At least one of the following four min/max values must be set. The
+   * values set will be ANDed together to qualify an event.
+   * The minimum number of times the event occurred. If not set, minimum event
+   * count won't be checked.
+   * 
+ * + * optional int64 min_event_count = 2; + * + * @return Whether the minEventCount field is set. + */ + @java.lang.Override + public boolean hasMinEventCount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * At least one of the following four min/max values must be set. The
+   * values set will be ANDed together to qualify an event.
+   * The minimum number of times the event occurred. If not set, minimum event
+   * count won't be checked.
+   * 
+ * + * optional int64 min_event_count = 2; + * + * @return The minEventCount. + */ + @java.lang.Override + public long getMinEventCount() { + return minEventCount_; + } + + public static final int MAX_EVENT_COUNT_FIELD_NUMBER = 3; + private long maxEventCount_ = 0L; + /** + * + * + *
+   * The maximum number of times the event occurred. If not set, maximum event
+   * count won't be checked.
+   * 
+ * + * optional int64 max_event_count = 3; + * + * @return Whether the maxEventCount field is set. + */ + @java.lang.Override + public boolean hasMaxEventCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * The maximum number of times the event occurred. If not set, maximum event
+   * count won't be checked.
+   * 
+ * + * optional int64 max_event_count = 3; + * + * @return The maxEventCount. + */ + @java.lang.Override + public long getMaxEventCount() { + return maxEventCount_; + } + + public static final int MIN_EVENT_VALUE_FIELD_NUMBER = 4; + private double minEventValue_ = 0D; + /** + * + * + *
+   * The minimum revenue generated due to the event. Revenue currency will be
+   * defined at the property level. If not set, minimum event value won't be
+   * checked.
+   * 
+ * + * optional double min_event_value = 4; + * + * @return Whether the minEventValue field is set. + */ + @java.lang.Override + public boolean hasMinEventValue() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+   * The minimum revenue generated due to the event. Revenue currency will be
+   * defined at the property level. If not set, minimum event value won't be
+   * checked.
+   * 
+ * + * optional double min_event_value = 4; + * + * @return The minEventValue. + */ + @java.lang.Override + public double getMinEventValue() { + return minEventValue_; + } + + public static final int MAX_EVENT_VALUE_FIELD_NUMBER = 5; + private double maxEventValue_ = 0D; + /** + * + * + *
+   * The maximum revenue generated due to the event. Revenue currency will be
+   * defined at the property level. If not set, maximum event value won't be
+   * checked.
+   * 
+ * + * optional double max_event_value = 5; + * + * @return Whether the maxEventValue field is set. + */ + @java.lang.Override + public boolean hasMaxEventValue() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+   * The maximum revenue generated due to the event. Revenue currency will be
+   * defined at the property level. If not set, maximum event value won't be
+   * checked.
+   * 
+ * + * optional double max_event_value = 5; + * + * @return The maxEventValue. + */ + @java.lang.Override + public double getMaxEventValue() { + return maxEventValue_; + } + + 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(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, minEventCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeInt64(3, maxEventCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(4, minEventValue_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(5, maxEventValue_); + } + 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(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, minEventCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, maxEventCount_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, minEventValue_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, maxEventValue_); + } + 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.admin.v1alpha.EventMapping)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.EventMapping other = + (com.google.analytics.admin.v1alpha.EventMapping) obj; + + if (!getEventName().equals(other.getEventName())) return false; + if (hasMinEventCount() != other.hasMinEventCount()) return false; + if (hasMinEventCount()) { + if (getMinEventCount() != other.getMinEventCount()) return false; + } + if (hasMaxEventCount() != other.hasMaxEventCount()) return false; + if (hasMaxEventCount()) { + if (getMaxEventCount() != other.getMaxEventCount()) return false; + } + if (hasMinEventValue() != other.hasMinEventValue()) return false; + if (hasMinEventValue()) { + if (java.lang.Double.doubleToLongBits(getMinEventValue()) + != java.lang.Double.doubleToLongBits(other.getMinEventValue())) return false; + } + if (hasMaxEventValue() != other.hasMaxEventValue()) return false; + if (hasMaxEventValue()) { + if (java.lang.Double.doubleToLongBits(getMaxEventValue()) + != java.lang.Double.doubleToLongBits(other.getMaxEventValue())) 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) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasMinEventCount()) { + hash = (37 * hash) + MIN_EVENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinEventCount()); + } + if (hasMaxEventCount()) { + hash = (37 * hash) + MAX_EVENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxEventCount()); + } + if (hasMinEventValue()) { + hash = (37 * hash) + MIN_EVENT_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMinEventValue())); + } + if (hasMaxEventValue()) { + hash = (37 * hash) + MAX_EVENT_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMaxEventValue())); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.EventMapping 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; + } + /** + * + * + *
+   * Event setting conditions to match an event.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.EventMapping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.EventMapping) + com.google.analytics.admin.v1alpha.EventMappingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.EventMapping.class, + com.google.analytics.admin.v1alpha.EventMapping.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.EventMapping.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eventName_ = ""; + minEventCount_ = 0L; + maxEventCount_ = 0L; + minEventValue_ = 0D; + maxEventValue_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventMapping getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventMapping build() { + com.google.analytics.admin.v1alpha.EventMapping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventMapping buildPartial() { + com.google.analytics.admin.v1alpha.EventMapping result = + new com.google.analytics.admin.v1alpha.EventMapping(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.EventMapping result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventName_ = eventName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.minEventCount_ = minEventCount_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxEventCount_ = maxEventCount_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.minEventValue_ = minEventValue_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.maxEventValue_ = maxEventValue_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.EventMapping) { + return mergeFrom((com.google.analytics.admin.v1alpha.EventMapping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.EventMapping other) { + if (other == com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance()) + return this; + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMinEventCount()) { + setMinEventCount(other.getMinEventCount()); + } + if (other.hasMaxEventCount()) { + setMaxEventCount(other.getMaxEventCount()); + } + if (other.hasMinEventValue()) { + setMinEventValue(other.getMinEventValue()); + } + if (other.hasMaxEventValue()) { + setMaxEventValue(other.getMaxEventValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + minEventCount_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + maxEventCount_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 33: + { + minEventValue_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 41: + { + maxEventValue_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Required. Name of the GA4 event. It must always be set.
+     * The max allowed display name length is 40 UTF-16 code units.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Name of the GA4 event. It must always be set.
+     * The max allowed display name length is 40 UTF-16 code units.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Name of the GA4 event. It must always be set.
+     * The max allowed display name length is 40 UTF-16 code units.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the GA4 event. It must always be set.
+     * The max allowed display name length is 40 UTF-16 code units.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + eventName_ = getDefaultInstance().getEventName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Name of the GA4 event. It must always be set.
+     * The max allowed display name length is 40 UTF-16 code units.
+     * 
+ * + * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long minEventCount_; + /** + * + * + *
+     * At least one of the following four min/max values must be set. The
+     * values set will be ANDed together to qualify an event.
+     * The minimum number of times the event occurred. If not set, minimum event
+     * count won't be checked.
+     * 
+ * + * optional int64 min_event_count = 2; + * + * @return Whether the minEventCount field is set. + */ + @java.lang.Override + public boolean hasMinEventCount() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * At least one of the following four min/max values must be set. The
+     * values set will be ANDed together to qualify an event.
+     * The minimum number of times the event occurred. If not set, minimum event
+     * count won't be checked.
+     * 
+ * + * optional int64 min_event_count = 2; + * + * @return The minEventCount. + */ + @java.lang.Override + public long getMinEventCount() { + return minEventCount_; + } + /** + * + * + *
+     * At least one of the following four min/max values must be set. The
+     * values set will be ANDed together to qualify an event.
+     * The minimum number of times the event occurred. If not set, minimum event
+     * count won't be checked.
+     * 
+ * + * optional int64 min_event_count = 2; + * + * @param value The minEventCount to set. + * @return This builder for chaining. + */ + public Builder setMinEventCount(long value) { + + minEventCount_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * At least one of the following four min/max values must be set. The
+     * values set will be ANDed together to qualify an event.
+     * The minimum number of times the event occurred. If not set, minimum event
+     * count won't be checked.
+     * 
+ * + * optional int64 min_event_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearMinEventCount() { + bitField0_ = (bitField0_ & ~0x00000002); + minEventCount_ = 0L; + onChanged(); + return this; + } + + private long maxEventCount_; + /** + * + * + *
+     * The maximum number of times the event occurred. If not set, maximum event
+     * count won't be checked.
+     * 
+ * + * optional int64 max_event_count = 3; + * + * @return Whether the maxEventCount field is set. + */ + @java.lang.Override + public boolean hasMaxEventCount() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The maximum number of times the event occurred. If not set, maximum event
+     * count won't be checked.
+     * 
+ * + * optional int64 max_event_count = 3; + * + * @return The maxEventCount. + */ + @java.lang.Override + public long getMaxEventCount() { + return maxEventCount_; + } + /** + * + * + *
+     * The maximum number of times the event occurred. If not set, maximum event
+     * count won't be checked.
+     * 
+ * + * optional int64 max_event_count = 3; + * + * @param value The maxEventCount to set. + * @return This builder for chaining. + */ + public Builder setMaxEventCount(long value) { + + maxEventCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of times the event occurred. If not set, maximum event
+     * count won't be checked.
+     * 
+ * + * optional int64 max_event_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxEventCount() { + bitField0_ = (bitField0_ & ~0x00000004); + maxEventCount_ = 0L; + onChanged(); + return this; + } + + private double minEventValue_; + /** + * + * + *
+     * The minimum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, minimum event value won't be
+     * checked.
+     * 
+ * + * optional double min_event_value = 4; + * + * @return Whether the minEventValue field is set. + */ + @java.lang.Override + public boolean hasMinEventValue() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * The minimum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, minimum event value won't be
+     * checked.
+     * 
+ * + * optional double min_event_value = 4; + * + * @return The minEventValue. + */ + @java.lang.Override + public double getMinEventValue() { + return minEventValue_; + } + /** + * + * + *
+     * The minimum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, minimum event value won't be
+     * checked.
+     * 
+ * + * optional double min_event_value = 4; + * + * @param value The minEventValue to set. + * @return This builder for chaining. + */ + public Builder setMinEventValue(double value) { + + minEventValue_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The minimum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, minimum event value won't be
+     * checked.
+     * 
+ * + * optional double min_event_value = 4; + * + * @return This builder for chaining. + */ + public Builder clearMinEventValue() { + bitField0_ = (bitField0_ & ~0x00000008); + minEventValue_ = 0D; + onChanged(); + return this; + } + + private double maxEventValue_; + /** + * + * + *
+     * The maximum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, maximum event value won't be
+     * checked.
+     * 
+ * + * optional double max_event_value = 5; + * + * @return Whether the maxEventValue field is set. + */ + @java.lang.Override + public boolean hasMaxEventValue() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * The maximum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, maximum event value won't be
+     * checked.
+     * 
+ * + * optional double max_event_value = 5; + * + * @return The maxEventValue. + */ + @java.lang.Override + public double getMaxEventValue() { + return maxEventValue_; + } + /** + * + * + *
+     * The maximum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, maximum event value won't be
+     * checked.
+     * 
+ * + * optional double max_event_value = 5; + * + * @param value The maxEventValue to set. + * @return This builder for chaining. + */ + public Builder setMaxEventValue(double value) { + + maxEventValue_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum revenue generated due to the event. Revenue currency will be
+     * defined at the property level. If not set, maximum event value won't be
+     * checked.
+     * 
+ * + * optional double max_event_value = 5; + * + * @return This builder for chaining. + */ + public Builder clearMaxEventValue() { + bitField0_ = (bitField0_ & ~0x00000010); + maxEventValue_ = 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.admin.v1alpha.EventMapping) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.EventMapping) + private static final com.google.analytics.admin.v1alpha.EventMapping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.EventMapping(); + } + + public static com.google.analytics.admin.v1alpha.EventMapping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventMapping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventMapping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMappingOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMappingOrBuilder.java similarity index 80% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMappingOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMappingOrBuilder.java index 1b4e9525cf14..f00d313b5ecd 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMappingOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMappingOrBuilder.java @@ -1,35 +1,58 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface EventMappingOrBuilder extends +public interface EventMappingOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.EventMapping) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Name of the GA4 event. It must always be set.
    * The max allowed display name length is 40 UTF-16 code units.
    * 
* * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The eventName. */ java.lang.String getEventName(); /** + * + * *
    * Required. Name of the GA4 event. It must always be set.
    * The max allowed display name length is 40 UTF-16 code units.
    * 
* * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for eventName. */ - com.google.protobuf.ByteString - getEventNameBytes(); + com.google.protobuf.ByteString getEventNameBytes(); /** + * + * *
    * At least one of the following four min/max values must be set. The
    * values set will be ANDed together to qualify an event.
@@ -38,10 +61,13 @@ public interface EventMappingOrBuilder extends
    * 
* * optional int64 min_event_count = 2; + * * @return Whether the minEventCount field is set. */ boolean hasMinEventCount(); /** + * + * *
    * At least one of the following four min/max values must be set. The
    * values set will be ANDed together to qualify an event.
@@ -50,32 +76,41 @@ public interface EventMappingOrBuilder extends
    * 
* * optional int64 min_event_count = 2; + * * @return The minEventCount. */ long getMinEventCount(); /** + * + * *
    * The maximum number of times the event occurred. If not set, maximum event
    * count won't be checked.
    * 
* * optional int64 max_event_count = 3; + * * @return Whether the maxEventCount field is set. */ boolean hasMaxEventCount(); /** + * + * *
    * The maximum number of times the event occurred. If not set, maximum event
    * count won't be checked.
    * 
* * optional int64 max_event_count = 3; + * * @return The maxEventCount. */ long getMaxEventCount(); /** + * + * *
    * The minimum revenue generated due to the event. Revenue currency will be
    * defined at the property level. If not set, minimum event value won't be
@@ -83,10 +118,13 @@ public interface EventMappingOrBuilder extends
    * 
* * optional double min_event_value = 4; + * * @return Whether the minEventValue field is set. */ boolean hasMinEventValue(); /** + * + * *
    * The minimum revenue generated due to the event. Revenue currency will be
    * defined at the property level. If not set, minimum event value won't be
@@ -94,11 +132,14 @@ public interface EventMappingOrBuilder extends
    * 
* * optional double min_event_value = 4; + * * @return The minEventValue. */ double getMinEventValue(); /** + * + * *
    * The maximum revenue generated due to the event. Revenue currency will be
    * defined at the property level. If not set, maximum event value won't be
@@ -106,10 +147,13 @@ public interface EventMappingOrBuilder extends
    * 
* * optional double max_event_value = 5; + * * @return Whether the maxEventValue field is set. */ boolean hasMaxEventValue(); /** + * + * *
    * The maximum revenue generated due to the event. Revenue currency will be
    * defined at the property level. If not set, maximum event value won't be
@@ -117,6 +161,7 @@ public interface EventMappingOrBuilder extends
    * 
* * optional double max_event_value = 5; + * * @return The maxEventValue. */ double getMaxEventValue(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSet.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSet.java new file mode 100644 index 000000000000..3f7cb037ded1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSet.java @@ -0,0 +1,2281 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a GA4 ExpandedDataSet.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSet} + */ +public final class ExpandedDataSet extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSet) + ExpandedDataSetOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExpandedDataSet.newBuilder() to construct. + private ExpandedDataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExpandedDataSet() { + name_ = ""; + displayName_ = ""; + description_ = ""; + dimensionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + metricNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExpandedDataSet(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name for this ExpandedDataSet resource.
+   * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this ExpandedDataSet resource.
+   * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. The display name of the ExpandedDataSet.
+   * Max 200 chars.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The display name of the ExpandedDataSet.
+   * Max 200 chars.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. The description of the ExpandedDataSet.
+   * Max 50 chars.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. The description of the ExpandedDataSet.
+   * Max 50 chars.
+   * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSION_NAMES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList dimensionNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Immutable. The list of dimensions included in the ExpandedDataSet.
+   * See the [API
+   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+   * for the list of dimension names.
+   * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return A list containing the dimensionNames. + */ + public com.google.protobuf.ProtocolStringList getDimensionNamesList() { + return dimensionNames_; + } + /** + * + * + *
+   * Immutable. The list of dimensions included in the ExpandedDataSet.
+   * See the [API
+   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+   * for the list of dimension names.
+   * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The count of dimensionNames. + */ + public int getDimensionNamesCount() { + return dimensionNames_.size(); + } + /** + * + * + *
+   * Immutable. The list of dimensions included in the ExpandedDataSet.
+   * See the [API
+   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+   * for the list of dimension names.
+   * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the element to return. + * @return The dimensionNames at the given index. + */ + public java.lang.String getDimensionNames(int index) { + return dimensionNames_.get(index); + } + /** + * + * + *
+   * Immutable. The list of dimensions included in the ExpandedDataSet.
+   * See the [API
+   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+   * for the list of dimension names.
+   * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the value to return. + * @return The bytes of the dimensionNames at the given index. + */ + public com.google.protobuf.ByteString getDimensionNamesBytes(int index) { + return dimensionNames_.getByteString(index); + } + + public static final int METRIC_NAMES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList metricNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Immutable. The list of metrics included in the ExpandedDataSet.
+   * See the [API
+   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+   * for the list of dimension names.
+   * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return A list containing the metricNames. + */ + public com.google.protobuf.ProtocolStringList getMetricNamesList() { + return metricNames_; + } + /** + * + * + *
+   * Immutable. The list of metrics included in the ExpandedDataSet.
+   * See the [API
+   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+   * for the list of dimension names.
+   * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The count of metricNames. + */ + public int getMetricNamesCount() { + return metricNames_.size(); + } + /** + * + * + *
+   * Immutable. The list of metrics included in the ExpandedDataSet.
+   * See the [API
+   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+   * for the list of dimension names.
+   * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the element to return. + * @return The metricNames at the given index. + */ + public java.lang.String getMetricNames(int index) { + return metricNames_.get(index); + } + /** + * + * + *
+   * Immutable. The list of metrics included in the ExpandedDataSet.
+   * See the [API
+   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+   * for the list of dimension names.
+   * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the value to return. + * @return The bytes of the metricNames at the given index. + */ + public com.google.protobuf.ByteString getMetricNamesBytes(int index) { + return metricNames_.getByteString(index); + } + + public static final int DIMENSION_FILTER_EXPRESSION_FIELD_NUMBER = 6; + private com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + dimensionFilterExpression_; + /** + * + * + *
+   * Immutable. A logical expression of ExpandedDataSet filters applied to
+   * dimension included in the ExpandedDataSet. This filter is used to reduce
+   * the number of rows and thus the chance of encountering `other` row.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the dimensionFilterExpression field is set. + */ + @java.lang.Override + public boolean hasDimensionFilterExpression() { + return dimensionFilterExpression_ != null; + } + /** + * + * + *
+   * Immutable. A logical expression of ExpandedDataSet filters applied to
+   * dimension included in the ExpandedDataSet. This filter is used to reduce
+   * the number of rows and thus the chance of encountering `other` row.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dimensionFilterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + getDimensionFilterExpression() { + return dimensionFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance() + : dimensionFilterExpression_; + } + /** + * + * + *
+   * Immutable. A logical expression of ExpandedDataSet filters applied to
+   * dimension included in the ExpandedDataSet. This filter is used to reduce
+   * the number of rows and thus the chance of encountering `other` row.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getDimensionFilterExpressionOrBuilder() { + return dimensionFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance() + : dimensionFilterExpression_; + } + + public static final int DATA_COLLECTION_START_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp dataCollectionStartTime_; + /** + * + * + *
+   * Output only. Time when expanded data set began (or will begin) collecing
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataCollectionStartTime field is set. + */ + @java.lang.Override + public boolean hasDataCollectionStartTime() { + return dataCollectionStartTime_ != null; + } + /** + * + * + *
+   * Output only. Time when expanded data set began (or will begin) collecing
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataCollectionStartTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDataCollectionStartTime() { + return dataCollectionStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataCollectionStartTime_; + } + /** + * + * + *
+   * Output only. Time when expanded data set began (or will begin) collecing
+   * data.
+   * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDataCollectionStartTimeOrBuilder() { + return dataCollectionStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataCollectionStartTime_; + } + + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); + } + for (int i = 0; i < dimensionNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dimensionNames_.getRaw(i)); + } + for (int i = 0; i < metricNames_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, metricNames_.getRaw(i)); + } + if (dimensionFilterExpression_ != null) { + output.writeMessage(6, getDimensionFilterExpression()); + } + if (dataCollectionStartTime_ != null) { + output.writeMessage(7, getDataCollectionStartTime()); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); + } + { + int dataSize = 0; + for (int i = 0; i < dimensionNames_.size(); i++) { + dataSize += computeStringSizeNoTag(dimensionNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getDimensionNamesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < metricNames_.size(); i++) { + dataSize += computeStringSizeNoTag(metricNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getMetricNamesList().size(); + } + if (dimensionFilterExpression_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getDimensionFilterExpression()); + } + if (dataCollectionStartTime_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getDataCollectionStartTime()); + } + 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.admin.v1alpha.ExpandedDataSet)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ExpandedDataSet other = + (com.google.analytics.admin.v1alpha.ExpandedDataSet) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getDimensionNamesList().equals(other.getDimensionNamesList())) return false; + if (!getMetricNamesList().equals(other.getMetricNamesList())) return false; + if (hasDimensionFilterExpression() != other.hasDimensionFilterExpression()) return false; + if (hasDimensionFilterExpression()) { + if (!getDimensionFilterExpression().equals(other.getDimensionFilterExpression())) + return false; + } + if (hasDataCollectionStartTime() != other.hasDataCollectionStartTime()) return false; + if (hasDataCollectionStartTime()) { + if (!getDataCollectionStartTime().equals(other.getDataCollectionStartTime())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getDimensionNamesCount() > 0) { + hash = (37 * hash) + DIMENSION_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getDimensionNamesList().hashCode(); + } + if (getMetricNamesCount() > 0) { + hash = (37 * hash) + METRIC_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getMetricNamesList().hashCode(); + } + if (hasDimensionFilterExpression()) { + hash = (37 * hash) + DIMENSION_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getDimensionFilterExpression().hashCode(); + } + if (hasDataCollectionStartTime()) { + hash = (37 * hash) + DATA_COLLECTION_START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDataCollectionStartTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a GA4 ExpandedDataSet.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSet) + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSet.class, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + dimensionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + metricNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dimensionFilterExpression_ = null; + if (dimensionFilterExpressionBuilder_ != null) { + dimensionFilterExpressionBuilder_.dispose(); + dimensionFilterExpressionBuilder_ = null; + } + dataCollectionStartTime_ = null; + if (dataCollectionStartTimeBuilder_ != null) { + dataCollectionStartTimeBuilder_.dispose(); + dataCollectionStartTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet build() { + com.google.analytics.admin.v1alpha.ExpandedDataSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet buildPartial() { + com.google.analytics.admin.v1alpha.ExpandedDataSet result = + new com.google.analytics.admin.v1alpha.ExpandedDataSet(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + dimensionNames_.makeImmutable(); + result.dimensionNames_ = dimensionNames_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + metricNames_.makeImmutable(); + result.metricNames_ = metricNames_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.dimensionFilterExpression_ = + dimensionFilterExpressionBuilder_ == null + ? dimensionFilterExpression_ + : dimensionFilterExpressionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.dataCollectionStartTime_ = + dataCollectionStartTimeBuilder_ == null + ? dataCollectionStartTime_ + : dataCollectionStartTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSet) { + return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSet other) { + if (other == com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.dimensionNames_.isEmpty()) { + if (dimensionNames_.isEmpty()) { + dimensionNames_ = other.dimensionNames_; + bitField0_ |= 0x00000008; + } else { + ensureDimensionNamesIsMutable(); + dimensionNames_.addAll(other.dimensionNames_); + } + onChanged(); + } + if (!other.metricNames_.isEmpty()) { + if (metricNames_.isEmpty()) { + metricNames_ = other.metricNames_; + bitField0_ |= 0x00000010; + } else { + ensureMetricNamesIsMutable(); + metricNames_.addAll(other.metricNames_); + } + onChanged(); + } + if (other.hasDimensionFilterExpression()) { + mergeDimensionFilterExpression(other.getDimensionFilterExpression()); + } + if (other.hasDataCollectionStartTime()) { + mergeDataCollectionStartTime(other.getDataCollectionStartTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDimensionNamesIsMutable(); + dimensionNames_.add(s); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureMetricNamesIsMutable(); + metricNames_.add(s); + break; + } // case 42 + case 50: + { + input.readMessage( + getDimensionFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getDataCollectionStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this ExpandedDataSet resource.
+     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this ExpandedDataSet resource.
+     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this ExpandedDataSet resource.
+     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this ExpandedDataSet resource.
+     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
+     * 
+ * + * string name = 1 [(.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. The resource name for this ExpandedDataSet resource.
+     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. The display name of the ExpandedDataSet.
+     * Max 200 chars.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The display name of the ExpandedDataSet.
+     * Max 200 chars.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The display name of the ExpandedDataSet.
+     * Max 200 chars.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the ExpandedDataSet.
+     * Max 200 chars.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The display name of the ExpandedDataSet.
+     * Max 200 chars.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. The description of the ExpandedDataSet.
+     * Max 50 chars.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. The description of the ExpandedDataSet.
+     * Max 50 chars.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. The description of the ExpandedDataSet.
+     * Max 50 chars.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The description of the ExpandedDataSet.
+     * Max 50 chars.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The description of the ExpandedDataSet.
+     * Max 50 chars.
+     * 
+ * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList dimensionNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureDimensionNamesIsMutable() { + if (!dimensionNames_.isModifiable()) { + dimensionNames_ = new com.google.protobuf.LazyStringArrayList(dimensionNames_); + } + bitField0_ |= 0x00000008; + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return A list containing the dimensionNames. + */ + public com.google.protobuf.ProtocolStringList getDimensionNamesList() { + dimensionNames_.makeImmutable(); + return dimensionNames_; + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The count of dimensionNames. + */ + public int getDimensionNamesCount() { + return dimensionNames_.size(); + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the element to return. + * @return The dimensionNames at the given index. + */ + public java.lang.String getDimensionNames(int index) { + return dimensionNames_.get(index); + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the value to return. + * @return The bytes of the dimensionNames at the given index. + */ + public com.google.protobuf.ByteString getDimensionNamesBytes(int index) { + return dimensionNames_.getByteString(index); + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index to set the value at. + * @param value The dimensionNames to set. + * @return This builder for chaining. + */ + public Builder setDimensionNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionNamesIsMutable(); + dimensionNames_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The dimensionNames to add. + * @return This builder for chaining. + */ + public Builder addDimensionNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionNamesIsMutable(); + dimensionNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param values The dimensionNames to add. + * @return This builder for chaining. + */ + public Builder addAllDimensionNames(java.lang.Iterable values) { + ensureDimensionNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionNames_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearDimensionNames() { + dimensionNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of dimensions included in the ExpandedDataSet.
+     * See the [API
+     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
+     * for the list of dimension names.
+     * 
+ * + * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes of the dimensionNames to add. + * @return This builder for chaining. + */ + public Builder addDimensionNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureDimensionNamesIsMutable(); + dimensionNames_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList metricNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureMetricNamesIsMutable() { + if (!metricNames_.isModifiable()) { + metricNames_ = new com.google.protobuf.LazyStringArrayList(metricNames_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return A list containing the metricNames. + */ + public com.google.protobuf.ProtocolStringList getMetricNamesList() { + metricNames_.makeImmutable(); + return metricNames_; + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The count of metricNames. + */ + public int getMetricNamesCount() { + return metricNames_.size(); + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the element to return. + * @return The metricNames at the given index. + */ + public java.lang.String getMetricNames(int index) { + return metricNames_.get(index); + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index of the value to return. + * @return The bytes of the metricNames at the given index. + */ + public com.google.protobuf.ByteString getMetricNamesBytes(int index) { + return metricNames_.getByteString(index); + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param index The index to set the value at. + * @param value The metricNames to set. + * @return This builder for chaining. + */ + public Builder setMetricNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricNamesIsMutable(); + metricNames_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The metricNames to add. + * @return This builder for chaining. + */ + public Builder addMetricNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricNamesIsMutable(); + metricNames_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param values The metricNames to add. + * @return This builder for chaining. + */ + public Builder addAllMetricNames(java.lang.Iterable values) { + ensureMetricNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricNames_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearMetricNames() { + metricNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The list of metrics included in the ExpandedDataSet.
+     * See the [API
+     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
+     * for the list of dimension names.
+     * 
+ * + * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes of the metricNames to add. + * @return This builder for chaining. + */ + public Builder addMetricNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureMetricNamesIsMutable(); + metricNames_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + dimensionFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + dimensionFilterExpressionBuilder_; + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the dimensionFilterExpression field is set. + */ + public boolean hasDimensionFilterExpression() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The dimensionFilterExpression. + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + getDimensionFilterExpression() { + if (dimensionFilterExpressionBuilder_ == null) { + return dimensionFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance() + : dimensionFilterExpression_; + } else { + return dimensionFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDimensionFilterExpression( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { + if (dimensionFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dimensionFilterExpression_ = value; + } else { + dimensionFilterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setDimensionFilterExpression( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + builderForValue) { + if (dimensionFilterExpressionBuilder_ == null) { + dimensionFilterExpression_ = builderForValue.build(); + } else { + dimensionFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeDimensionFilterExpression( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { + if (dimensionFilterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && dimensionFilterExpression_ != null + && dimensionFilterExpression_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance()) { + getDimensionFilterExpressionBuilder().mergeFrom(value); + } else { + dimensionFilterExpression_ = value; + } + } else { + dimensionFilterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearDimensionFilterExpression() { + bitField0_ = (bitField0_ & ~0x00000020); + dimensionFilterExpression_ = null; + if (dimensionFilterExpressionBuilder_ != null) { + dimensionFilterExpressionBuilder_.dispose(); + dimensionFilterExpressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + getDimensionFilterExpressionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getDimensionFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getDimensionFilterExpressionOrBuilder() { + if (dimensionFilterExpressionBuilder_ != null) { + return dimensionFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return dimensionFilterExpression_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance() + : dimensionFilterExpression_; + } + } + /** + * + * + *
+     * Immutable. A logical expression of ExpandedDataSet filters applied to
+     * dimension included in the ExpandedDataSet. This filter is used to reduce
+     * the number of rows and thus the chance of encountering `other` row.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + getDimensionFilterExpressionFieldBuilder() { + if (dimensionFilterExpressionBuilder_ == null) { + dimensionFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder>( + getDimensionFilterExpression(), getParentForChildren(), isClean()); + dimensionFilterExpression_ = null; + } + return dimensionFilterExpressionBuilder_; + } + + private com.google.protobuf.Timestamp dataCollectionStartTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + dataCollectionStartTimeBuilder_; + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the dataCollectionStartTime field is set. + */ + public boolean hasDataCollectionStartTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The dataCollectionStartTime. + */ + public com.google.protobuf.Timestamp getDataCollectionStartTime() { + if (dataCollectionStartTimeBuilder_ == null) { + return dataCollectionStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataCollectionStartTime_; + } else { + return dataCollectionStartTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataCollectionStartTime(com.google.protobuf.Timestamp value) { + if (dataCollectionStartTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataCollectionStartTime_ = value; + } else { + dataCollectionStartTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDataCollectionStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (dataCollectionStartTimeBuilder_ == null) { + dataCollectionStartTime_ = builderForValue.build(); + } else { + dataCollectionStartTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDataCollectionStartTime(com.google.protobuf.Timestamp value) { + if (dataCollectionStartTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && dataCollectionStartTime_ != null + && dataCollectionStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDataCollectionStartTimeBuilder().mergeFrom(value); + } else { + dataCollectionStartTime_ = value; + } + } else { + dataCollectionStartTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDataCollectionStartTime() { + bitField0_ = (bitField0_ & ~0x00000040); + dataCollectionStartTime_ = null; + if (dataCollectionStartTimeBuilder_ != null) { + dataCollectionStartTimeBuilder_.dispose(); + dataCollectionStartTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDataCollectionStartTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getDataCollectionStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDataCollectionStartTimeOrBuilder() { + if (dataCollectionStartTimeBuilder_ != null) { + return dataCollectionStartTimeBuilder_.getMessageOrBuilder(); + } else { + return dataCollectionStartTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : dataCollectionStartTime_; + } + } + /** + * + * + *
+     * Output only. Time when expanded data set began (or will begin) collecing
+     * data.
+     * 
+ * + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDataCollectionStartTimeFieldBuilder() { + if (dataCollectionStartTimeBuilder_ == null) { + dataCollectionStartTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDataCollectionStartTime(), getParentForChildren(), isClean()); + dataCollectionStartTime_ = null; + } + return dataCollectionStartTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSet) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSet) + private static final com.google.analytics.admin.v1alpha.ExpandedDataSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSet(); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpandedDataSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilter.java new file mode 100644 index 000000000000..5347c3bdac36 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilter.java @@ -0,0 +1,3425 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A specific filter for a single dimension
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter} + */ +public final class ExpandedDataSetFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter) + ExpandedDataSetFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExpandedDataSetFilter.newBuilder() to construct. + private ExpandedDataSetFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExpandedDataSetFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExpandedDataSetFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder.class); + } + + public interface StringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType getMatchType(); + + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * Must be true when match_type is EXACT.
+     * Must be false when match_type is CONTAINS.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} + */ + public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) + StringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringFilter.newBuilder() to construct. + private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder.class); + } + + /** + * + * + *
+     * The match type for the string filter.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 2; + */ + CONTAINS(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 2; + */ + public static final int CONTAINS_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return CONTAINS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_ = 0; + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType result = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType.forNumber( + matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + .UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The string value to be matched against.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_ = false; + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * Must be true when match_type is EXACT.
+     * Must be false when match_type is CONTAINS.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchType_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + .MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + .MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + size += 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.admin.v1alpha.ExpandedDataSetFilter.StringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter other = + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchType_ = 0; + value_ = ""; + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter build() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter buildPartial() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter result = + new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter other) { + if (other + == com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance()) return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchType_ = 0; + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType result = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + .forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000001); + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value to be matched against.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * Must be true when match_type is EXACT.
+       * Must be false when match_type is CONTAINS.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * Must be true when match_type is EXACT.
+       * Must be false when match_type is CONTAINS.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * Must be true when match_type is EXACT.
+       * Must be false when match_type is CONTAINS.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000004); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) + private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter(); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface InListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * Must be true.
+     * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of options.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} + */ + public static final class InListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) + InListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use InListFilter.newBuilder() to construct. + private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private InListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new InListFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * Required. The list of possible string values to match against. Must be
+     * non-empty.
+     * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; + private boolean caseSensitive_ = false; + /** + * + * + *
+     * Optional. If true, the match is case-sensitive. If false, the match is
+     * case-insensitive.
+     * Must be true.
+     * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (caseSensitive_ != false) { + output.writeBool(2, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); + } + size += 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.admin.v1alpha.ExpandedDataSetFilter.InListFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter other = + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of options.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter build() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter buildPartial() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter result = + new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter other) { + if (other + == com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance()) return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 16: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The list of possible string values to match against. Must be
+       * non-empty.
+       * 
+ * + * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * Must be true.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * Must be true.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the match is case-sensitive. If false, the match is
+       * case-insensitive.
+       * Must be true.
+       * 
+ * + * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000002); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) + private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter(); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InListFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int STRING_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getStringFilter() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getInListFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+   * Required. The dimension name to filter.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The dimension name to filter.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_); + } + 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.admin.v1alpha.ExpandedDataSetFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter other = + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 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(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A specific filter for a single dimension
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter) + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + fieldName_ = ""; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter build() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter buildPartial() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result = + new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldName_ = fieldName_; + } + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result) { + result.oneFilterCase_ = oneFilterCase_; + result.oneFilter_ = this.oneFilter_; + if (oneFilterCase_ == 2 && stringFilterBuilder_ != null) { + result.oneFilter_ = stringFilterBuilder_.build(); + } + if (oneFilterCase_ == 3 && inListFilterBuilder_ != null) { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter other) { + if (other == com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance()) + return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getOneFilterCase()) { + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case IN_LIST_FILTER: + { + mergeInListFilter(other.getInListFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder + builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + public Builder mergeStringFilter( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2 + && oneFilter_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.newBuilder( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder + getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 2)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter + .getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 2; + onChanged(); + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + public Builder setInListFilter( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder + builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + public Builder mergeInListFilter( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.newBuilder( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder + getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder + getInListFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string dimension that matches a particular list of
+     * options.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter + .getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + return inListFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * Required. The dimension name to filter.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The dimension name to filter.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The dimension name to filter.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The dimension name to filter.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The dimension name to filter.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter) + private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter(); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpandedDataSetFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpression.java new file mode 100644 index 000000000000..7969c9474dbc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpression.java @@ -0,0 +1,1545 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A logical expression of EnhancedDataSet dimension filters.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} + */ +public final class ExpandedDataSetFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) + ExpandedDataSetFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExpandedDataSetFilterExpression.newBuilder() to construct. + private ExpandedDataSetFilterExpression( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExpandedDataSetFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExpandedDataSetFilterExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + NOT_EXPRESSION(2), + FILTER(3), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(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 ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return NOT_EXPRESSION; + case 3: + return FILTER; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * A list of expressions to be AND’ed together. It must contain a
+   * ExpandedDataSetFilterExpression with either not_expression or
+   * dimension_filter. This must be set for the top level
+   * ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It must contain a
+   * ExpandedDataSetFilterExpression with either not_expression or
+   * dimension_filter. This must be set for the top level
+   * ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to be AND’ed together. It must contain a
+   * ExpandedDataSetFilterExpression with either not_expression or
+   * dimension_filter. This must be set for the top level
+   * ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter expression to be NOT'ed (that is, inverted, complemented). It
+   * must include a dimension_filter. This cannot be set on the
+   * top level ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 2; + } + /** + * + * + *
+   * A filter expression to be NOT'ed (that is, inverted, complemented). It
+   * must include a dimension_filter. This cannot be set on the
+   * top level ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getNotExpression() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * A filter expression to be NOT'ed (that is, inverted, complemented). It
+   * must include a dimension_filter. This cannot be set on the
+   * top level ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); + } + + public static final int FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter on a single dimension. This cannot be set on the top
+   * level ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return exprCase_ == 3; + } + /** + * + * + *
+   * A filter on a single dimension. This cannot be set on the top
+   * level ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * + * @return The filter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getFilter() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter on a single dimension. This cannot be set on the top
+   * level ExpandedDataSetFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder getFilterOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_); + } + if (exprCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_); + } + 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.admin.v1alpha.ExpandedDataSetFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression other = + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getAndGroup().equals(other.getAndGroup())) return false; + break; + case 2: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 3: + if (!getFilter().equals(other.getFilter())) 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 (exprCase_) { + case 1: + hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAndGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 3: + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A logical expression of EnhancedDataSet dimension filters.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (filterBuilder_ != null) { + filterBuilder_.clear(); + } + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression build() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result = + new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result) { + result.exprCase_ = exprCase_; + result.expr_ = this.expr_; + if (exprCase_ == 1 && andGroupBuilder_ != null) { + result.expr_ = andGroupBuilder_.build(); + } + if (exprCase_ == 2 && notExpressionBuilder_ != null) { + result.expr_ = notExpressionBuilder_.build(); + } + if (exprCase_ == 3 && filterBuilder_ != null) { + result.expr_ = filterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression other) { + if (other + == com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance()) return this; + switch (other.getExprCase()) { + case AND_GROUP: + { + mergeAndGroup(other.getAndGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case FILTER: + { + mergeFilter(other.getFilter()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + */ + public Builder setAndGroup( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder + builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + */ + public Builder mergeAndGroup( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + */ + public Builder clearAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + andGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to be AND’ed together. It must contain a
+     * ExpandedDataSetFilterExpression with either not_expression or
+     * dimension_filter. This must be set for the top level
+     * ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 2; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 2) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (that is, inverted, complemented). It
+     * must include a dimension_filter. This cannot be set on the
+     * top level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder> + filterBuilder_; + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return exprCase_ == 3; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * + * @return The filter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getFilter() { + if (filterBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return filterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + public Builder setFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + filterBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + public Builder setFilter( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder builderForValue) { + if (filterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + public Builder mergeFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter value) { + if (filterBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.newBuilder( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + filterBuilder_.mergeFrom(value); + } else { + filterBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + filterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder getFilterBuilder() { + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder getFilterOrBuilder() { + if ((exprCase_ == 3) && (filterBuilder_ != null)) { + return filterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; + } + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter on a single dimension. This cannot be set on the top
+     * level ExpandedDataSetFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); + } + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + return filterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) + private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpandedDataSetFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionList.java new file mode 100644 index 000000000000..aff16eca85f7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionList.java @@ -0,0 +1,1033 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of ExpandedDataSet filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} + */ +public final class ExpandedDataSetFilterExpressionList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) + ExpandedDataSetFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use ExpandedDataSetFilterExpressionList.newBuilder() to construct. + private ExpandedDataSetFilterExpressionList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ExpandedDataSetFilterExpressionList() { + filterExpressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ExpandedDataSetFilterExpressionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder.class); + } + + public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + filterExpressions_; + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List + getFilterExpressionsList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + return filterExpressions_; + } + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public int getFilterExpressionsCount() { + return filterExpressions_.size(); + } + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getFilterExpressions( + int index) { + return filterExpressions_.get(index); + } + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + return filterExpressions_.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 < filterExpressions_.size(); i++) { + output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, filterExpressions_.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.admin.v1alpha.ExpandedDataSetFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList other = + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) obj; + + if (!getFilterExpressionsList().equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { + hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.class, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + } else { + filterExpressions_ = null; + filterExpressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetProto + .internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList build() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result = + new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result) { + if (filterExpressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filterExpressions_ = filterExpressions_; + } else { + result.filterExpressions_ = filterExpressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + .getDefaultInstance()) return this; + if (filterExpressionsBuilder_ == null) { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressions_.isEmpty()) { + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterExpressionsIsMutable(); + filterExpressions_.addAll(other.filterExpressions_); + } + onChanged(); + } + } else { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressionsBuilder_.isEmpty()) { + filterExpressionsBuilder_.dispose(); + filterExpressionsBuilder_ = null; + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + filterExpressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterExpressionsFieldBuilder() + : null; + } else { + filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression m = + input.readMessage( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.parser(), + extensionRegistry); + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(m); + } else { + filterExpressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + filterExpressions_ = java.util.Collections.emptyList(); + + private void ensureFilterExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression>( + filterExpressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + filterExpressionsBuilder_; + + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public java.util.List + getFilterExpressionsList() { + if (filterExpressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterExpressions_); + } else { + return filterExpressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public int getFilterExpressionsCount() { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.size(); + } else { + return filterExpressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getFilterExpressions( + int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder setFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder addFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder addAllFilterExpressions( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression> + values) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterExpressions_); + onChanged(); + } else { + filterExpressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder clearFilterExpressions() { + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterExpressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public Builder removeFilterExpressions(int index) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.remove(index); + onChanged(); + } else { + filterExpressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + getFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + if (filterExpressionsBuilder_ != null) { + return filterExpressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterExpressions_); + } + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + addFilterExpressionsBuilder() { + return getFilterExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder + addFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * A list of ExpandedDataSet filter expressions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder> + getFilterExpressionsBuilderList() { + return getFilterExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + getFilterExpressionsFieldBuilder() { + if (filterExpressionsBuilder_ == null) { + filterExpressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder>( + filterExpressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filterExpressions_ = null; + } + return filterExpressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExpandedDataSetFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..fec8ad5d52de --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionListOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto + +package com.google.analytics.admin.v1alpha; + +public interface ExpandedDataSetFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + java.util.List + getFilterExpressionsList(); + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getFilterExpressions( + int index); + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + int getFilterExpressionsCount(); + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + java.util.List< + ? extends com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of ExpandedDataSet filter expressions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionOrBuilder.java similarity index 79% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionOrBuilder.java index 6afa8a21b35e..38352b1f1b26 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto package com.google.analytics.admin.v1alpha; -public interface ExpandedDataSetFilterExpressionOrBuilder extends +public interface ExpandedDataSetFilterExpressionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of expressions to be AND’ed together. It must contain a
    * ExpandedDataSetFilterExpression with either not_expression or
@@ -16,10 +34,13 @@ public interface ExpandedDataSetFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * * @return Whether the andGroup field is set. */ boolean hasAndGroup(); /** + * + * *
    * A list of expressions to be AND’ed together. It must contain a
    * ExpandedDataSetFilterExpression with either not_expression or
@@ -28,10 +49,13 @@ public interface ExpandedDataSetFilterExpressionOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; + * * @return The andGroup. */ com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getAndGroup(); /** + * + * *
    * A list of expressions to be AND’ed together. It must contain a
    * ExpandedDataSetFilterExpression with either not_expression or
@@ -41,62 +65,83 @@ public interface ExpandedDataSetFilterExpressionOrBuilder extends
    *
    * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1;
    */
-  com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder getAndGroupOrBuilder();
+  com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder
+      getAndGroupOrBuilder();
 
   /**
+   *
+   *
    * 
    * A filter expression to be NOT'ed (that is, inverted, complemented). It
    * must include a dimension_filter. This cannot be set on the
    * top level ExpandedDataSetFilterExpression.
    * 
* - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + * * @return Whether the notExpression field is set. */ boolean hasNotExpression(); /** + * + * *
    * A filter expression to be NOT'ed (that is, inverted, complemented). It
    * must include a dimension_filter. This cannot be set on the
    * top level ExpandedDataSetFilterExpression.
    * 
* - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * + * * @return The notExpression. */ com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getNotExpression(); /** + * + * *
    * A filter expression to be NOT'ed (that is, inverted, complemented). It
    * must include a dimension_filter. This cannot be set on the
    * top level ExpandedDataSetFilterExpression.
    * 
* - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; + * */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getNotExpressionOrBuilder(); + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getNotExpressionOrBuilder(); /** + * + * *
    * A filter on a single dimension. This cannot be set on the top
    * level ExpandedDataSetFilterExpression.
    * 
* * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * * @return Whether the filter field is set. */ boolean hasFilter(); /** + * + * *
    * A filter on a single dimension. This cannot be set on the top
    * level ExpandedDataSetFilterExpression.
    * 
* * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; + * * @return The filter. */ com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getFilter(); /** + * + * *
    * A filter on a single dimension. This cannot be set on the top
    * level ExpandedDataSetFilterExpression.
diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterOrBuilder.java
new file mode 100644
index 000000000000..b4e2203adcc6
--- /dev/null
+++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterOrBuilder.java
@@ -0,0 +1,133 @@
+/*
+ * 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/admin/v1alpha/expanded_data_set.proto
+
+package com.google.analytics.admin.v1alpha;
+
+public interface ExpandedDataSetFilterOrBuilder
+    extends
+    // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilter)
+    com.google.protobuf.MessageOrBuilder {
+
+  /**
+   *
+   *
+   * 
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder + getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + * + * @return The inListFilter. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for a string dimension that matches a particular list of
+   * options.
+   * 
+ * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder + getInListFilterOrBuilder(); + + /** + * + * + *
+   * Required. The dimension name to filter.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * Required. The dimension name to filter.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.OneFilterCase getOneFilterCase(); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetOrBuilder.java similarity index 76% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetOrBuilder.java index 1edd3f5a05a8..f86efee6ad2b 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetOrBuilder.java @@ -1,79 +1,112 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto package com.google.analytics.admin.v1alpha; -public interface ExpandedDataSetOrBuilder extends +public interface ExpandedDataSetOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSet) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this ExpandedDataSet resource.
    * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this ExpandedDataSet resource.
    * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The display name of the ExpandedDataSet.
    * Max 200 chars.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * Required. The display name of the ExpandedDataSet.
    * Max 200 chars.
    * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); /** + * + * *
    * Optional. The description of the ExpandedDataSet.
    * Max 50 chars.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The description. */ java.lang.String getDescription(); /** + * + * *
    * Optional. The description of the ExpandedDataSet.
    * Max 50 chars.
    * 
* * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for description. */ - com.google.protobuf.ByteString - getDescriptionBytes(); + com.google.protobuf.ByteString getDescriptionBytes(); /** + * + * *
    * Immutable. The list of dimensions included in the ExpandedDataSet.
    * See the [API
@@ -82,11 +115,13 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return A list containing the dimensionNames. */ - java.util.List - getDimensionNamesList(); + java.util.List getDimensionNamesList(); /** + * + * *
    * Immutable. The list of dimensions included in the ExpandedDataSet.
    * See the [API
@@ -95,10 +130,13 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The count of dimensionNames. */ int getDimensionNamesCount(); /** + * + * *
    * Immutable. The list of dimensions included in the ExpandedDataSet.
    * See the [API
@@ -107,11 +145,14 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param index The index of the element to return. * @return The dimensionNames at the given index. */ java.lang.String getDimensionNames(int index); /** + * + * *
    * Immutable. The list of dimensions included in the ExpandedDataSet.
    * See the [API
@@ -120,13 +161,15 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param index The index of the value to return. * @return The bytes of the dimensionNames at the given index. */ - com.google.protobuf.ByteString - getDimensionNamesBytes(int index); + com.google.protobuf.ByteString getDimensionNamesBytes(int index); /** + * + * *
    * Immutable. The list of metrics included in the ExpandedDataSet.
    * See the [API
@@ -135,11 +178,13 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return A list containing the metricNames. */ - java.util.List - getMetricNamesList(); + java.util.List getMetricNamesList(); /** + * + * *
    * Immutable. The list of metrics included in the ExpandedDataSet.
    * See the [API
@@ -148,10 +193,13 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The count of metricNames. */ int getMetricNamesCount(); /** + * + * *
    * Immutable. The list of metrics included in the ExpandedDataSet.
    * See the [API
@@ -160,11 +208,14 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param index The index of the element to return. * @return The metricNames at the given index. */ java.lang.String getMetricNames(int index); /** + * + * *
    * Immutable. The list of metrics included in the ExpandedDataSet.
    * See the [API
@@ -173,72 +224,101 @@ public interface ExpandedDataSetOrBuilder extends
    * 
* * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * * @param index The index of the value to return. * @return The bytes of the metricNames at the given index. */ - com.google.protobuf.ByteString - getMetricNamesBytes(int index); + com.google.protobuf.ByteString getMetricNamesBytes(int index); /** + * + * *
    * Immutable. A logical expression of ExpandedDataSet filters applied to
    * dimension included in the ExpandedDataSet. This filter is used to reduce
    * the number of rows and thus the chance of encountering `other` row.
    * 
* - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the dimensionFilterExpression field is set. */ boolean hasDimensionFilterExpression(); /** + * + * *
    * Immutable. A logical expression of ExpandedDataSet filters applied to
    * dimension included in the ExpandedDataSet. This filter is used to reduce
    * the number of rows and thus the chance of encountering `other` row.
    * 
* - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The dimensionFilterExpression. */ com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getDimensionFilterExpression(); /** + * + * *
    * Immutable. A logical expression of ExpandedDataSet filters applied to
    * dimension included in the ExpandedDataSet. This filter is used to reduce
    * the number of rows and thus the chance of encountering `other` row.
    * 
* - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getDimensionFilterExpressionOrBuilder(); + com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder + getDimensionFilterExpressionOrBuilder(); /** + * + * *
    * Output only. Time when expanded data set began (or will begin) collecing
    * data.
    * 
* - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the dataCollectionStartTime field is set. */ boolean hasDataCollectionStartTime(); /** + * + * *
    * Output only. Time when expanded data set began (or will begin) collecing
    * data.
    * 
* - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The dataCollectionStartTime. */ com.google.protobuf.Timestamp getDataCollectionStartTime(); /** + * + * *
    * Output only. Time when expanded data set began (or will begin) collecing
    * data.
    * 
* - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getDataCollectionStartTimeOrBuilder(); } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetProto.java new file mode 100644 index 000000000000..5145cfc49881 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetProto.java @@ -0,0 +1,186 @@ +/* + * 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/admin/v1alpha/expanded_data_set.proto + +package com.google.analytics.admin.v1alpha; + +public final class ExpandedDataSetProto { + private ExpandedDataSetProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/analytics/admin/v1alpha/expande" + + "d_data_set.proto\022\036google.analytics.admin" + + ".v1alpha\032\037google/api/field_behavior.prot" + + "o\032\031google/api/resource.proto\032\037google/pro" + + "tobuf/timestamp.proto\"\254\004\n\025ExpandedDataSe" + + "tFilter\022[\n\rstring_filter\030\002 \001(\0132B.google." + + "analytics.admin.v1alpha.ExpandedDataSetF" + + "ilter.StringFilterH\000\022\\\n\016in_list_filter\030\003" + + " \001(\0132B.google.analytics.admin.v1alpha.Ex" + + "pandedDataSetFilter.InListFilterH\000\022\030\n\nfi" + + "eld_name\030\001 \001(\tB\004\342A\001\002\032\353\001\n\014StringFilter\022f\n" + + "\nmatch_type\030\001 \001(\0162L.google.analytics.adm" + + "in.v1alpha.ExpandedDataSetFilter.StringF" + + "ilter.MatchTypeB\004\342A\001\002\022\023\n\005value\030\002 \001(\tB\004\342A" + + "\001\002\022\034\n\016case_sensitive\030\003 \001(\010B\004\342A\001\001\"@\n\tMatc" + + "hType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXA" + + "CT\020\001\022\014\n\010CONTAINS\020\002\032B\n\014InListFilter\022\024\n\006va" + + "lues\030\001 \003(\tB\004\342A\001\002\022\034\n\016case_sensitive\030\002 \001(\010" + + "B\004\342A\001\001B\014\n\none_filter\"\247\002\n\037ExpandedDataSet" + + "FilterExpression\022X\n\tand_group\030\001 \001(\0132C.go" + + "ogle.analytics.admin.v1alpha.ExpandedDat" + + "aSetFilterExpressionListH\000\022Y\n\016not_expres" + + "sion\030\002 \001(\0132?.google.analytics.admin.v1al" + + "pha.ExpandedDataSetFilterExpressionH\000\022G\n" + + "\006filter\030\003 \001(\01325.google.analytics.admin.v" + + "1alpha.ExpandedDataSetFilterH\000B\006\n\004expr\"\202" + + "\001\n#ExpandedDataSetFilterExpressionList\022[" + + "\n\022filter_expressions\030\001 \003(\0132?.google.anal" + + "ytics.admin.v1alpha.ExpandedDataSetFilte" + + "rExpression\"\271\003\n\017ExpandedDataSet\022\022\n\004name\030" + + "\001 \001(\tB\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022" + + "\031\n\013description\030\003 \001(\tB\004\342A\001\001\022\035\n\017dimension_" + + "names\030\004 \003(\tB\004\342A\001\005\022\032\n\014metric_names\030\005 \003(\tB" + + "\004\342A\001\005\022j\n\033dimension_filter_expression\030\006 \001" + + "(\0132?.google.analytics.admin.v1alpha.Expa" + + "ndedDataSetFilterExpressionB\004\342A\001\005\022D\n\032dat" + + "a_collection_start_time\030\007 \001(\0132\032.google.p" + + "rotobuf.TimestampB\004\342A\001\003:n\352Ak\n-analyticsa" + + "dmin.googleapis.com/ExpandedDataSet\022:pro" + + "perties/{property}/expandedDataSets/{exp" + + "anded_data_set}B|\n\"com.google.analytics." + + "admin.v1alphaB\024ExpandedDataSetProtoP\001Z>c" + + "loud.google.com/go/analytics/admin/apiv1" + + "alpha/adminpb;adminpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor, + new java.lang.String[] { + "StringFilter", "InListFilter", "FieldName", "OneFilter", + }); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor, + new java.lang.String[] { + "Values", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "NotExpression", "Filter", "Expr", + }); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor, + new java.lang.String[] { + "FilterExpressions", + }); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "DimensionNames", + "MetricNames", + "DimensionFilterExpression", + "DataCollectionStartTime", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.java new file mode 100644 index 000000000000..ec32f376496d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.java @@ -0,0 +1,678 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request for fetching the opt out status for the automated GA4 setup process.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} + */ +public final class FetchAutomatedGa4ConfigurationOptOutRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) + FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() to construct. + private FetchAutomatedGa4ConfigurationOptOutRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchAutomatedGa4ConfigurationOptOutRequest() { + property_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchAutomatedGa4ConfigurationOptOutRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.class, + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.Builder + .class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Required. The UA property to get the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The UA property to get the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + 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.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest other = + (com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) obj; + + if (!getProperty().equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for fetching the opt out status for the automated GA4 setup process.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.class, + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest build() { + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + buildPartial() { + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest result = + new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest other) { + if (other + == com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + .getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Required. The UA property to get the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The UA property to get the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The UA property to get the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The UA property to get the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The UA property to get the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + 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.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) + private static final com.google.analytics.admin.v1alpha + .FetchAutomatedGa4ConfigurationOptOutRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest(); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchAutomatedGa4ConfigurationOptOutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder.java new file mode 100644 index 000000000000..566aace89b63 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The UA property to get the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Required. The UA property to get the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.java new file mode 100644 index 000000000000..c4b1905a233e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.java @@ -0,0 +1,570 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for fetching the opt out status for the automated GA4 setup
+ * process.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} + */ +public final class FetchAutomatedGa4ConfigurationOptOutResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) + FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder() to construct. + private FetchAutomatedGa4ConfigurationOptOutResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchAutomatedGa4ConfigurationOptOutResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchAutomatedGa4ConfigurationOptOutResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.class, + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.Builder + .class); + } + + public static final int OPT_OUT_FIELD_NUMBER = 1; + private boolean optOut_ = false; + /** + * + * + *
+   * The opt out status for the UA property.
+   * 
+ * + * bool opt_out = 1; + * + * @return The optOut. + */ + @java.lang.Override + public boolean getOptOut() { + return optOut_; + } + + 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 (optOut_ != false) { + output.writeBool(1, optOut_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (optOut_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, optOut_); + } + 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.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse other = + (com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) obj; + + if (getOptOut() != other.getOptOut()) 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) + OPT_OUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptOut()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for fetching the opt out status for the automated GA4 setup
+   * process.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.class, + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + optOut_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse build() { + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + buildPartial() { + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse result = + new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.optOut_ = optOut_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse other) { + if (other + == com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + .getDefaultInstance()) return this; + if (other.getOptOut() != false) { + setOptOut(other.getOptOut()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + optOut_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private boolean optOut_; + /** + * + * + *
+     * The opt out status for the UA property.
+     * 
+ * + * bool opt_out = 1; + * + * @return The optOut. + */ + @java.lang.Override + public boolean getOptOut() { + return optOut_; + } + /** + * + * + *
+     * The opt out status for the UA property.
+     * 
+ * + * bool opt_out = 1; + * + * @param value The optOut to set. + * @return This builder for chaining. + */ + public Builder setOptOut(boolean value) { + + optOut_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The opt out status for the UA property.
+     * 
+ * + * bool opt_out = 1; + * + * @return This builder for chaining. + */ + public Builder clearOptOut() { + bitField0_ = (bitField0_ & ~0x00000001); + optOut_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) + private static final com.google.analytics.admin.v1alpha + .FetchAutomatedGa4ConfigurationOptOutResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse(); + } + + public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchAutomatedGa4ConfigurationOptOutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder.java new file mode 100644 index 000000000000..04b0b60d0ead --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder.java @@ -0,0 +1,38 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The opt out status for the UA property.
+   * 
+ * + * bool opt_out = 1; + * + * @return The optOut. + */ + boolean getOptOut(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequest.java new file mode 100644 index 000000000000..cefd7087ee1a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequest.java @@ -0,0 +1,679 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request for looking up GA4 property connected to a UA property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} + */ +public final class FetchConnectedGa4PropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) + FetchConnectedGa4PropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchConnectedGa4PropertyRequest.newBuilder() to construct. + private FetchConnectedGa4PropertyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchConnectedGa4PropertyRequest() { + property_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchConnectedGa4PropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.class, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Required. The UA property for which to look up the connected GA4 property.
+   * Note this request uses the
+   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internal_web_property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The UA property for which to look up the connected GA4 property.
+   * Note this request uses the
+   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internal_web_property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + 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.admin.v1alpha.FetchConnectedGa4PropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest other = + (com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) obj; + + if (!getProperty().equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for looking up GA4 property connected to a UA property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.class, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest build() { + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest result = + new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest other) { + if (other + == com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + .getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Required. The UA property for which to look up the connected GA4 property.
+     * Note this request uses the
+     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internal_web_property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The UA property for which to look up the connected GA4 property.
+     * Note this request uses the
+     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internal_web_property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The UA property for which to look up the connected GA4 property.
+     * Note this request uses the
+     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internal_web_property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The UA property for which to look up the connected GA4 property.
+     * Note this request uses the
+     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internal_web_property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The UA property for which to look up the connected GA4 property.
+     * Note this request uses the
+     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internal_web_property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + 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.admin.v1alpha.FetchConnectedGa4PropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) + private static final com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchConnectedGa4PropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequestOrBuilder.java new file mode 100644 index 000000000000..f6e09f097ac6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface FetchConnectedGa4PropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The UA property for which to look up the connected GA4 property.
+   * Note this request uses the
+   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internal_web_property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Required. The UA property for which to look up the connected GA4 property.
+   * Note this request uses the
+   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internal_web_property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponse.java new file mode 100644 index 000000000000..e68fb4f1d7a2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponse.java @@ -0,0 +1,658 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response for looking up GA4 property connected to a UA property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} + */ +public final class FetchConnectedGa4PropertyResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) + FetchConnectedGa4PropertyResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use FetchConnectedGa4PropertyResponse.newBuilder() to construct. + private FetchConnectedGa4PropertyResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FetchConnectedGa4PropertyResponse() { + property_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FetchConnectedGa4PropertyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.class, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * The GA4 property connected to the UA property. An empty string is returned
+   * when there is no connected GA4 property.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * The GA4 property connected to the UA property. An empty string is returned
+   * when there is no connected GA4 property.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + 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.admin.v1alpha.FetchConnectedGa4PropertyResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse other = + (com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) obj; + + if (!getProperty().equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response for looking up GA4 property connected to a UA property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.class, + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse build() { + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse buildPartial() { + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse result = + new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse other) { + if (other + == com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + .getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * The GA4 property connected to the UA property. An empty string is returned
+     * when there is no connected GA4 property.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The GA4 property connected to the UA property. An empty string is returned
+     * when there is no connected GA4 property.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The GA4 property connected to the UA property. An empty string is returned
+     * when there is no connected GA4 property.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The GA4 property connected to the UA property. An empty string is returned
+     * when there is no connected GA4 property.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The GA4 property connected to the UA property. An empty string is returned
+     * when there is no connected GA4 property.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + 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.admin.v1alpha.FetchConnectedGa4PropertyResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) + private static final com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(); + } + + public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FetchConnectedGa4PropertyResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponseOrBuilder.java new file mode 100644 index 000000000000..fb766d728b96 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponseOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface FetchConnectedGa4PropertyResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The GA4 property connected to the UA property. An empty string is returned
+   * when there is no connected GA4 property.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * The GA4 property connected to the UA property. An empty string is returned
+   * when there is no connected GA4 property.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java new file mode 100644 index 000000000000..9ac91cd5ba48 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java @@ -0,0 +1,1129 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link between a GA4 property and a Firebase project.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FirebaseLink} + */ +public final class FirebaseLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FirebaseLink) + FirebaseLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use FirebaseLink.newBuilder() to construct. + private FirebaseLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FirebaseLink() { + name_ = ""; + project_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FirebaseLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FirebaseLink.class, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + 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(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + 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.admin.v1alpha.FirebaseLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.FirebaseLink other = + (com.google.analytics.admin.v1alpha.FirebaseLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.FirebaseLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 property and a Firebase project.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.FirebaseLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FirebaseLink) + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.FirebaseLink.class, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + project_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink build() { + com.google.analytics.admin.v1alpha.FirebaseLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink buildPartial() { + com.google.analytics.admin.v1alpha.FirebaseLink result = + new com.google.analytics.admin.v1alpha.FirebaseLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.FirebaseLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.FirebaseLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.FirebaseLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.FirebaseLink other) { + if (other == com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.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. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.FirebaseLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FirebaseLink) + private static final com.google.analytics.admin.v1alpha.FirebaseLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FirebaseLink(); + } + + public static com.google.analytics.admin.v1alpha.FirebaseLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirebaseLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java new file mode 100644 index 000000000000..8c85a7b3a40f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface FirebaseLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FirebaseLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java new file mode 100644 index 000000000000..014e5cd3df22 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java @@ -0,0 +1,660 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAccessBindingRequest} + */ +public final class GetAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAccessBindingRequest) + GetAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAccessBindingRequest.newBuilder() to construct. + private GetAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAccessBindingRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAccessBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.GetAccessBindingRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAccessBindingRequest) + com.google.analytics.admin.v1alpha.GetAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.GetAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.GetAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.GetAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAccessBindingRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetAccessBindingRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the access binding to retrieve.
+     * Formats:
+     * - accounts/{account}/accessBindings/{accessBinding}
+     * - properties/{property}/accessBindings/{accessBinding}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.GetAccessBindingRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..8948f421f6b0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the access binding to retrieve.
+   * Formats:
+   * - accounts/{account}/accessBindings/{accessBinding}
+   * - properties/{property}/accessBindings/{accessBinding}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java new file mode 100644 index 000000000000..5f00623fb8d2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java @@ -0,0 +1,652 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetAccount RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAccountRequest} + */ +public final class GetAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAccountRequest) + GetAccountRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAccountRequest.newBuilder() to construct. + private GetAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAccountRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAccountRequest.class, + com.google.analytics.admin.v1alpha.GetAccountRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetAccountRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAccountRequest other = + (com.google.analytics.admin.v1alpha.GetAccountRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetAccount RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAccountRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAccountRequest) + com.google.analytics.admin.v1alpha.GetAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAccountRequest.class, + com.google.analytics.admin.v1alpha.GetAccountRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAccountRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccountRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccountRequest build() { + com.google.analytics.admin.v1alpha.GetAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccountRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAccountRequest result = + new com.google.analytics.admin.v1alpha.GetAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetAccountRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAccountRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAccountRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetAccountRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetAccountRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAccountRequest) + private static final com.google.analytics.admin.v1alpha.GetAccountRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAccountRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java new file mode 100644 index 000000000000..2b36922cd2e9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequest.java new file mode 100644 index 000000000000..300ba6516d22 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message to be passed to GetAdSenseLink method.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAdSenseLinkRequest} + */ +public final class GetAdSenseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) + GetAdSenseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAdSenseLinkRequest.newBuilder() to construct. + private GetAdSenseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAdSenseLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAdSenseLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.class, + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link requested.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link requested.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetAdSenseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest other = + (com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message to be passed to GetAdSenseLink method.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAdSenseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.class, + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest build() { + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest result = + new com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link requested.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link requested.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link requested.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link requested.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Unique identifier for the AdSense Link requested.
+     * Format: properties/{propertyId}/adSenseLinks/{linkId}
+     * Example: properties/1234/adSenseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetAdSenseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) + private static final com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAdSenseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequestOrBuilder.java new file mode 100644 index 000000000000..9d895b32052f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetAdSenseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link requested.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Unique identifier for the AdSense Link requested.
+   * Format: properties/{propertyId}/adSenseLinks/{linkId}
+   * Example: properties/1234/adSenseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java new file mode 100644 index 000000000000..c8d701c176ae --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetAttributionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAttributionSettingsRequest} + */ +public final class GetAttributionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + GetAttributionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAttributionSettingsRequest.newBuilder() to construct. + private GetAttributionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAttributionSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAttributionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetAttributionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetAttributionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAttributionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the attribution settings to retrieve.
+     * Format: properties/{property}/attributionSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetAttributionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAttributionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..0190ddf86706 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetAttributionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the attribution settings to retrieve.
+   * Format: properties/{property}/attributionSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java new file mode 100644 index 000000000000..328562059e54 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAudienceRequest} + */ +public final class GetAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAudienceRequest) + GetAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAudienceRequest.newBuilder() to construct. + private GetAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAudienceRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAudienceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAudienceRequest.class, + com.google.analytics.admin.v1alpha.GetAudienceRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetAudienceRequest other = + (com.google.analytics.admin.v1alpha.GetAudienceRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetAudienceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAudienceRequest) + com.google.analytics.admin.v1alpha.GetAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetAudienceRequest.class, + com.google.analytics.admin.v1alpha.GetAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetAudienceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAudienceRequest build() { + com.google.analytics.admin.v1alpha.GetAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetAudienceRequest result = + new com.google.analytics.admin.v1alpha.GetAudienceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetAudienceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetAudienceRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Audience to get.
+     * Example format: properties/1234/audiences/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAudienceRequest) + private static final com.google.analytics.admin.v1alpha.GetAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..e96a1d3a303d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAudienceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Audience to get.
+   * Example format: properties/1234/audiences/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequest.java new file mode 100644 index 000000000000..2ddaebe221c2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetBigQueryLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetBigQueryLinkRequest} + */ +public final class GetBigQueryLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) + GetBigQueryLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetBigQueryLinkRequest.newBuilder() to construct. + private GetBigQueryLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetBigQueryLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetBigQueryLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.class, + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the BigQuery link to lookup.
+   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+   * Example: properties/123/bigQueryLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the BigQuery link to lookup.
+   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+   * Example: properties/123/bigQueryLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetBigQueryLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest other = + (com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetBigQueryLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetBigQueryLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.class, + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest build() { + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest result = + new com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the BigQuery link to lookup.
+     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+     * Example: properties/123/bigQueryLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the BigQuery link to lookup.
+     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+     * Example: properties/123/bigQueryLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the BigQuery link to lookup.
+     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+     * Example: properties/123/bigQueryLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the BigQuery link to lookup.
+     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+     * Example: properties/123/bigQueryLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the BigQuery link to lookup.
+     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+     * Example: properties/123/bigQueryLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetBigQueryLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) + private static final com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBigQueryLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequestOrBuilder.java new file mode 100644 index 000000000000..17f78869bec1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetBigQueryLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the BigQuery link to lookup.
+   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+   * Example: properties/123/bigQueryLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the BigQuery link to lookup.
+   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
+   * Example: properties/123/bigQueryLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequest.java new file mode 100644 index 000000000000..5a9863dde176 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetChannelGroup RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetChannelGroupRequest} + */ +public final class GetChannelGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetChannelGroupRequest) + GetChannelGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetChannelGroupRequest.newBuilder() to construct. + private GetChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetChannelGroupRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetChannelGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.GetChannelGroupRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The ChannelGroup to get.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The ChannelGroup to get.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetChannelGroupRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetChannelGroupRequest other = + (com.google.analytics.admin.v1alpha.GetChannelGroupRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetChannelGroup RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetChannelGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetChannelGroupRequest) + com.google.analytics.admin.v1alpha.GetChannelGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.GetChannelGroupRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetChannelGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetChannelGroupRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetChannelGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetChannelGroupRequest build() { + com.google.analytics.admin.v1alpha.GetChannelGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetChannelGroupRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetChannelGroupRequest result = + new com.google.analytics.admin.v1alpha.GetChannelGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetChannelGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetChannelGroupRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetChannelGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetChannelGroupRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetChannelGroupRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The ChannelGroup to get.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The ChannelGroup to get.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The ChannelGroup to get.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to get.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to get.
+     * Example format: properties/1234/channelGroups/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetChannelGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetChannelGroupRequest) + private static final com.google.analytics.admin.v1alpha.GetChannelGroupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetChannelGroupRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetChannelGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetChannelGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequestOrBuilder.java new file mode 100644 index 000000000000..1279b748dab6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetChannelGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetChannelGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ChannelGroup to get.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The ChannelGroup to get.
+   * Example format: properties/1234/channelGroups/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java new file mode 100644 index 000000000000..3d012a227c04 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java @@ -0,0 +1,657 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} + */ +public final class GetConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) + GetConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetConversionEventRequest.newBuilder() to construct. + private GetConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetConversionEventRequest other = + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) + com.google.analytics.admin.v1alpha.GetConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest build() { + com.google.analytics.admin.v1alpha.GetConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetConversionEventRequest result = + new com.google.analytics.admin.v1alpha.GetConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.GetConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..dbe3d4cb2074 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java new file mode 100644 index 000000000000..4985e9d63656 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} + */ +public final class GetCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + GetCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomDimensionRequest.newBuilder() to construct. + private GetCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + com.google.analytics.admin.v1alpha.GetCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..3445a49b9e96 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java new file mode 100644 index 000000000000..14e623f930c0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} + */ +public final class GetCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) + GetCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomMetricRequest.newBuilder() to construct. + private GetCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) + com.google.analytics.admin.v1alpha.GetCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomMetricRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.GetCustomMetricRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..9f8f24aea63f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java new file mode 100644 index 000000000000..4dc8e309e8b9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java @@ -0,0 +1,672 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDataRedactionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest} + */ +public final class GetDataRedactionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) + GetDataRedactionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataRedactionSettingsRequest.newBuilder() to construct. + private GetDataRedactionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataRedactionSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataRedactionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetDataRedactionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDataRedactionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetDataRedactionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataRedactionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..ca43a6cc64fe --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDataRedactionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
+   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java new file mode 100644 index 000000000000..3a500fb6f2a4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java @@ -0,0 +1,672 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDataRetentionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} + */ +public final class GetDataRetentionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + GetDataRetentionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataRetentionSettingsRequest.newBuilder() to construct. + private GetDataRetentionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataRetentionSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataRetentionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetDataRetentionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDataRetentionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetDataRetentionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataRetentionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..57bee4e278ad --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDataRetentionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java new file mode 100644 index 000000000000..e7dfc8938d6a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java @@ -0,0 +1,660 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDataSharingSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} + */ +public final class GetDataSharingSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + GetDataSharingSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataSharingSettingsRequest.newBuilder() to construct. + private GetDataSharingSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataSharingSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataSharingSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetDataSharingSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDataSharingSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetDataSharingSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataSharingSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..ef934afa5d19 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDataSharingSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java new file mode 100644 index 000000000000..bca9a8eea412 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataStreamRequest} + */ +public final class GetDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataStreamRequest) + GetDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataStreamRequest.newBuilder() to construct. + private GetDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDataStreamRequest other = + (com.google.analytics.admin.v1alpha.GetDataStreamRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataStreamRequest) + com.google.analytics.admin.v1alpha.GetDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, + com.google.analytics.admin.v1alpha.GetDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataStreamRequest build() { + com.google.analytics.admin.v1alpha.GetDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetDataStreamRequest result = + new com.google.analytics.admin.v1alpha.GetDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.GetDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..1c0347dac286 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 000000000000..0bb91ae38fe5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,687 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class GetDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private GetDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + GetDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public GetDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 000000000000..436297e24048 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 000000000000..f1c71a8a1bdd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,671 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} + */ +public final class GetDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + GetDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private GetDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDisplayVideo360AdvertiserLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDisplayVideo360AdvertiserLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 000000000000..500070dadc70 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java new file mode 100644 index 000000000000..258ec16cc5fe --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java @@ -0,0 +1,678 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetEnhancedMeasurementSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} + */ +public final class GetEnhancedMeasurementSettingsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + GetEnhancedMeasurementSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEnhancedMeasurementSettingsRequest.newBuilder() to construct. + private GetEnhancedMeasurementSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEnhancedMeasurementSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEnhancedMeasurementSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetEnhancedMeasurementSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetEnhancedMeasurementSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEnhancedMeasurementSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..c170df0861c0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetEnhancedMeasurementSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
+   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequest.java new file mode 100644 index 000000000000..1e2a675cfdd7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetEventCreateRule RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetEventCreateRuleRequest} + */ +public final class GetEventCreateRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) + GetEventCreateRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetEventCreateRuleRequest.newBuilder() to construct. + private GetEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetEventCreateRuleRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetEventCreateRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the EventCreateRule to get.
+   * Example format: properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the EventCreateRule to get.
+   * Example format: properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetEventCreateRuleRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest other = + (com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetEventCreateRule RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetEventCreateRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest build() { + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest result = + new com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the EventCreateRule to get.
+     * Example format: properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the EventCreateRule to get.
+     * Example format: properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the EventCreateRule to get.
+     * Example format: properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the EventCreateRule to get.
+     * Example format: properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the EventCreateRule to get.
+     * Example format: properties/123/dataStreams/456/eventCreateRules/789
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetEventCreateRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) + private static final com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetEventCreateRuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequestOrBuilder.java new file mode 100644 index 000000000000..90f919469605 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetEventCreateRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the EventCreateRule to get.
+   * Example format: properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the EventCreateRule to get.
+   * Example format: properties/123/dataStreams/456/eventCreateRules/789
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java new file mode 100644 index 000000000000..4544ada52ccd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetExpandedDataSetRequest} + */ +public final class GetExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + GetExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetExpandedDataSetRequest.newBuilder() to construct. + private GetExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetExpandedDataSetRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetExpandedDataSetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the ExpandedDataSet to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the ExpandedDataSet to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the ExpandedDataSet to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the ExpandedDataSet to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the ExpandedDataSet to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the ExpandedDataSet to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the ExpandedDataSet to get.
+     * Example format: properties/1234/expandedDataSets/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..16722515a256 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the ExpandedDataSet to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the ExpandedDataSet to get.
+   * Example format: properties/1234/expandedDataSets/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java new file mode 100644 index 000000000000..86fe80b44640 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java @@ -0,0 +1,660 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetGlobalSiteTag RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} + */ +public final class GetGlobalSiteTagRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + GetGlobalSiteTagRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetGlobalSiteTagRequest.newBuilder() to construct. + private GetGlobalSiteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetGlobalSiteTagRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGlobalSiteTagRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.class, + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the site tag to lookup.
+   * Note that site tags are singletons and do not have unique IDs.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the site tag to lookup.
+   * Note that site tags are singletons and do not have unique IDs.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetGlobalSiteTagRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest other = + (com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetGlobalSiteTag RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.class, + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest build() { + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest result = + new com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the site tag to lookup.
+     * Note that site tags are singletons and do not have unique IDs.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the site tag to lookup.
+     * Note that site tags are singletons and do not have unique IDs.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the site tag to lookup.
+     * Note that site tags are singletons and do not have unique IDs.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + /** + * + * + *
+     * Required. The name of the site tag to lookup.
+     * Note that site tags are singletons and do not have unique IDs.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the site tag to lookup.
+     * Note that site tags are singletons and do not have unique IDs.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetGlobalSiteTagRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + private static final com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGlobalSiteTagRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java new file mode 100644 index 000000000000..1bcb842f3db2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetGlobalSiteTagRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the site tag to lookup.
+   * Note that site tags are singletons and do not have unique IDs.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the site tag to lookup.
+   * Note that site tags are singletons and do not have unique IDs.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java new file mode 100644 index 000000000000..9d216148cec2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java @@ -0,0 +1,658 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetGoogleSignalsSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} + */ +public final class GetGoogleSignalsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + GetGoogleSignalsSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetGoogleSignalsSettingsRequest.newBuilder() to construct. + private GetGoogleSignalsSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetGoogleSignalsSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGoogleSignalsSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetGoogleSignalsSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetGoogleSignalsSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetGoogleSignalsSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGoogleSignalsSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..105ec474bfbb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetGoogleSignalsSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..ddbb75b57412 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java @@ -0,0 +1,667 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetMeasurementProtocolSecret RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} + */ +public final class GetMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + GetMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMeasurementProtocolSecretRequest.newBuilder() to construct. + private GetMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetMeasurementProtocolSecret RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..b34ce7b2a7a1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java new file mode 100644 index 000000000000..604472856672 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetPropertyRequest} + */ +public final class GetPropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetPropertyRequest) + GetPropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPropertyRequest.newBuilder() to construct. + private GetPropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPropertyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetPropertyRequest.class, + com.google.analytics.admin.v1alpha.GetPropertyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetPropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetPropertyRequest other = + (com.google.analytics.admin.v1alpha.GetPropertyRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetPropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetPropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetPropertyRequest) + com.google.analytics.admin.v1alpha.GetPropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetPropertyRequest.class, + com.google.analytics.admin.v1alpha.GetPropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetPropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetPropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetPropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetPropertyRequest build() { + com.google.analytics.admin.v1alpha.GetPropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetPropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetPropertyRequest result = + new com.google.analytics.admin.v1alpha.GetPropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GetPropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetPropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetPropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetPropertyRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetPropertyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetPropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetPropertyRequest) + private static final com.google.analytics.admin.v1alpha.GetPropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetPropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetPropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetPropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java new file mode 100644 index 000000000000..90e39d7e5e23 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetPropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetPropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java new file mode 100644 index 000000000000..56815f11e4e2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java @@ -0,0 +1,672 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetRollupPropertySourceLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest} + */ +public final class GetRollupPropertySourceLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + GetRollupPropertySourceLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetRollupPropertySourceLinkRequest.newBuilder() to construct. + private GetRollupPropertySourceLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetRollupPropertySourceLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetRollupPropertySourceLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetRollupPropertySourceLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest other = + (com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetRollupPropertySourceLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest build() { + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result = + new com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the roll-up property source link to lookup.
+     * Format:
+     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+     * Example: properties/123/rollupPropertySourceLinks/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetRollupPropertySourceLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + private static final com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetRollupPropertySourceLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java new file mode 100644 index 000000000000..2dfe1507bae7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetRollupPropertySourceLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the roll-up property source link to lookup.
+   * Format:
+   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
+   * Example: properties/123/rollupPropertySourceLinks/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequest.java new file mode 100644 index 000000000000..1a8f3ea37119 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequest.java @@ -0,0 +1,681 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetSKAdNetworkConversionValueSchema RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest} + */ +public final class GetSKAdNetworkConversionValueSchemaRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) + GetSKAdNetworkConversionValueSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. + private GetSKAdNetworkConversionValueSchemaRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSKAdNetworkConversionValueSchemaRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSKAdNetworkConversionValueSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.class, + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of SKAdNetwork conversion value schema to look
+   * up. Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of SKAdNetwork conversion value schema to look
+   * up. Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest other = + (com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetSKAdNetworkConversionValueSchema RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.class, + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest build() { + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + buildPartial() { + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest result = + new com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of SKAdNetwork conversion value schema to look
+     * up. Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of SKAdNetwork conversion value schema to look
+     * up. Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of SKAdNetwork conversion value schema to look
+     * up. Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of SKAdNetwork conversion value schema to look
+     * up. Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of SKAdNetwork conversion value schema to look
+     * up. Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) + private static final com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSKAdNetworkConversionValueSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..25029821821c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetSKAdNetworkConversionValueSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of SKAdNetwork conversion value schema to look
+   * up. Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of SKAdNetwork conversion value schema to look
+   * up. Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequest.java new file mode 100644 index 000000000000..83f288b1e7ff --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetSearchAds360Link RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} + */ +public final class GetSearchAds360LinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) + GetSearchAds360LinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSearchAds360LinkRequest.newBuilder() to construct. + private GetSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSearchAds360LinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSearchAds360LinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the SearchAds360Link to get.
+   * Example format: properties/1234/SearchAds360Link/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the SearchAds360Link to get.
+   * Example format: properties/1234/SearchAds360Link/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetSearchAds360LinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest other = + (com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetSearchAds360Link RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest build() { + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest result = + new com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the SearchAds360Link to get.
+     * Example format: properties/1234/SearchAds360Link/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to get.
+     * Example format: properties/1234/SearchAds360Link/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to get.
+     * Example format: properties/1234/SearchAds360Link/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to get.
+     * Example format: properties/1234/SearchAds360Link/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the SearchAds360Link to get.
+     * Example format: properties/1234/SearchAds360Link/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetSearchAds360LinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) + private static final com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSearchAds360LinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequestOrBuilder.java new file mode 100644 index 000000000000..68f325589e38 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetSearchAds360LinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the SearchAds360Link to get.
+   * Example format: properties/1234/SearchAds360Link/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the SearchAds360Link to get.
+   * Example format: properties/1234/SearchAds360Link/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java new file mode 100644 index 000000000000..4feef93da8cd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java @@ -0,0 +1,672 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest} + */ +public final class GetSubpropertyEventFilterRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) + GetSubpropertyEventFilterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetSubpropertyEventFilterRequest.newBuilder() to construct. + private GetSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetSubpropertyEventFilterRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetSubpropertyEventFilterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1alpha.GetSubpropertyEventFilterRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the subproperty event filter to lookup.
+     * Format:
+     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+     * Example: properties/123/subpropertyEventFilters/456
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1alpha.GetSubpropertyEventFilterRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetSubpropertyEventFilterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java new file mode 100644 index 000000000000..64a6c5aef7f4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetSubpropertyEventFilterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Resource name of the subproperty event filter to lookup.
+   * Format:
+   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
+   * Example: properties/123/subpropertyEventFilters/456
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java new file mode 100644 index 000000000000..99c18f1a40c6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java @@ -0,0 +1,829 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Read-only resource with the tag for sending data from a website to a
+ * DataStream. Only present for web DataStream resources.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GlobalSiteTag} + */ +public final class GlobalSiteTag extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GlobalSiteTag) + GlobalSiteTagOrBuilder { + private static final long serialVersionUID = 0L; + // Use GlobalSiteTag.newBuilder() to construct. + private GlobalSiteTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GlobalSiteTag() { + name_ = ""; + snippet_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GlobalSiteTag(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GlobalSiteTag.class, + com.google.analytics.admin.v1alpha.GlobalSiteTag.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this GlobalSiteTag resource.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this GlobalSiteTag resource.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SNIPPET_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object snippet_ = ""; + /** + * + * + *
+   * Immutable. JavaScript code snippet to be pasted as the first item into the
+   * head tag of every webpage to measure.
+   * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The snippet. + */ + @java.lang.Override + public java.lang.String getSnippet() { + java.lang.Object ref = snippet_; + 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(); + snippet_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. JavaScript code snippet to be pasted as the first item into the
+   * head tag of every webpage to measure.
+   * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for snippet. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSnippetBytes() { + java.lang.Object ref = snippet_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snippet_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, snippet_); + } + 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(snippet_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, snippet_); + } + 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.admin.v1alpha.GlobalSiteTag)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GlobalSiteTag other = + (com.google.analytics.admin.v1alpha.GlobalSiteTag) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSnippet().equals(other.getSnippet())) 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) + SNIPPET_FIELD_NUMBER; + hash = (53 * hash) + getSnippet().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.GlobalSiteTag 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; + } + /** + * + * + *
+   * Read-only resource with the tag for sending data from a website to a
+   * DataStream. Only present for web DataStream resources.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GlobalSiteTag} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GlobalSiteTag) + com.google.analytics.admin.v1alpha.GlobalSiteTagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GlobalSiteTag.class, + com.google.analytics.admin.v1alpha.GlobalSiteTag.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GlobalSiteTag.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + snippet_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GlobalSiteTag getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GlobalSiteTag.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GlobalSiteTag build() { + com.google.analytics.admin.v1alpha.GlobalSiteTag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GlobalSiteTag buildPartial() { + com.google.analytics.admin.v1alpha.GlobalSiteTag result = + new com.google.analytics.admin.v1alpha.GlobalSiteTag(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GlobalSiteTag result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.snippet_ = snippet_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GlobalSiteTag) { + return mergeFrom((com.google.analytics.admin.v1alpha.GlobalSiteTag) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GlobalSiteTag other) { + if (other == com.google.analytics.admin.v1alpha.GlobalSiteTag.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSnippet().isEmpty()) { + snippet_ = other.snippet_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + snippet_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this GlobalSiteTag resource.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this GlobalSiteTag resource.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this GlobalSiteTag resource.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this GlobalSiteTag resource.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * string name = 1 [(.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. Resource name for this GlobalSiteTag resource.
+     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+     * Example: "properties/123/dataStreams/456/globalSiteTag"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object snippet_ = ""; + /** + * + * + *
+     * Immutable. JavaScript code snippet to be pasted as the first item into the
+     * head tag of every webpage to measure.
+     * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The snippet. + */ + public java.lang.String getSnippet() { + java.lang.Object ref = snippet_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + snippet_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. JavaScript code snippet to be pasted as the first item into the
+     * head tag of every webpage to measure.
+     * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for snippet. + */ + public com.google.protobuf.ByteString getSnippetBytes() { + java.lang.Object ref = snippet_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + snippet_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. JavaScript code snippet to be pasted as the first item into the
+     * head tag of every webpage to measure.
+     * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The snippet to set. + * @return This builder for chaining. + */ + public Builder setSnippet(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + snippet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. JavaScript code snippet to be pasted as the first item into the
+     * head tag of every webpage to measure.
+     * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearSnippet() { + snippet_ = getDefaultInstance().getSnippet(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. JavaScript code snippet to be pasted as the first item into the
+     * head tag of every webpage to measure.
+     * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for snippet to set. + * @return This builder for chaining. + */ + public Builder setSnippetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + snippet_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GlobalSiteTag) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GlobalSiteTag) + private static final com.google.analytics.admin.v1alpha.GlobalSiteTag DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GlobalSiteTag(); + } + + public static com.google.analytics.admin.v1alpha.GlobalSiteTag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GlobalSiteTag parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GlobalSiteTag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java new file mode 100644 index 000000000000..bf464d0f0ad4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java @@ -0,0 +1,81 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface GlobalSiteTagOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GlobalSiteTag) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this GlobalSiteTag resource.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this GlobalSiteTag resource.
+   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
+   * Example: "properties/123/dataStreams/456/globalSiteTag"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. JavaScript code snippet to be pasted as the first item into the
+   * head tag of every webpage to measure.
+   * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The snippet. + */ + java.lang.String getSnippet(); + /** + * + * + *
+   * Immutable. JavaScript code snippet to be pasted as the first item into the
+   * head tag of every webpage to measure.
+   * 
+ * + * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for snippet. + */ + com.google.protobuf.ByteString getSnippetBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java new file mode 100644 index 000000000000..f9fd1d7b0e33 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -0,0 +1,1979 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link between a GA4 property and a Google Ads account.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleAdsLink} + */ +public final class GoogleAdsLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GoogleAdsLink) + GoogleAdsLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleAdsLink.newBuilder() to construct. + private GoogleAdsLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleAdsLink() { + name_ = ""; + customerId_ = ""; + creatorEmailAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleAdsLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleAdsLink.class, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerId_ = ""; + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The customerId. + */ + @java.lang.Override + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + 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(); + customerId_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for customerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAN_MANAGE_CLIENTS_FIELD_NUMBER = 4; + private boolean canManageClients_ = false; + /** + * + * + *
+   * Output only. If true, this link is for a Google Ads manager account.
+   * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The canManageClients. + */ + @java.lang.Override + public boolean getCanManageClients() { + return canManageClients_; + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 5; + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + @java.lang.Override + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorEmailAddress_ = ""; + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + @java.lang.Override + public java.lang.String getCreatorEmailAddress() { + java.lang.Object ref = creatorEmailAddress_; + 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(); + creatorEmailAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorEmailAddressBytes() { + java.lang.Object ref = creatorEmailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorEmailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerId_); + } + if (canManageClients_ != false) { + output.writeBool(4, canManageClients_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(5, getAdsPersonalizationEnabled()); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, creatorEmailAddress_); + } + 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(customerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerId_); + } + if (canManageClients_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, canManageClients_); + } + if (adsPersonalizationEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getAdsPersonalizationEnabled()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, creatorEmailAddress_); + } + 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.admin.v1alpha.GoogleAdsLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GoogleAdsLink other = + (com.google.analytics.admin.v1alpha.GoogleAdsLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCustomerId().equals(other.getCustomerId())) return false; + if (getCanManageClients() != other.getCanManageClients()) return false; + if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; + if (hasAdsPersonalizationEnabled()) { + if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) + return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getCreatorEmailAddress().equals(other.getCreatorEmailAddress())) 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) + CUSTOMER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomerId().hashCode(); + hash = (37 * hash) + CAN_MANAGE_CLIENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanManageClients()); + if (hasAdsPersonalizationEnabled()) { + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + CREATOR_EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getCreatorEmailAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.GoogleAdsLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 property and a Google Ads account.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleAdsLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GoogleAdsLink) + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleAdsLink.class, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + customerId_ = ""; + canManageClients_ = false; + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + creatorEmailAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink build() { + com.google.analytics.admin.v1alpha.GoogleAdsLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink buildPartial() { + com.google.analytics.admin.v1alpha.GoogleAdsLink result = + new com.google.analytics.admin.v1alpha.GoogleAdsLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GoogleAdsLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customerId_ = customerId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canManageClients_ = canManageClients_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.adsPersonalizationEnabled_ = + adsPersonalizationEnabledBuilder_ == null + ? adsPersonalizationEnabled_ + : adsPersonalizationEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.creatorEmailAddress_ = creatorEmailAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GoogleAdsLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.GoogleAdsLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GoogleAdsLink other) { + if (other == com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCustomerId().isEmpty()) { + customerId_ = other.customerId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCanManageClients() != false) { + setCanManageClients(other.getCanManageClients()); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getCreatorEmailAddress().isEmpty()) { + creatorEmailAddress_ = other.creatorEmailAddress_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + customerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: + { + canManageClients_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + input.readMessage( + getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + creatorEmailAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.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. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object customerId_ = ""; + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The customerId. + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for customerId. + */ + public com.google.protobuf.ByteString getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The customerId to set. + * @return This builder for chaining. + */ + public Builder setCustomerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearCustomerId() { + customerId_ = getDefaultInstance().getCustomerId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for customerId to set. + * @return This builder for chaining. + */ + public Builder setCustomerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean canManageClients_; + /** + * + * + *
+     * Output only. If true, this link is for a Google Ads manager account.
+     * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The canManageClients. + */ + @java.lang.Override + public boolean getCanManageClients() { + return canManageClients_; + } + /** + * + * + *
+     * Output only. If true, this link is for a Google Ads manager account.
+     * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The canManageClients to set. + * @return This builder for chaining. + */ + public Builder setCanManageClients(boolean value) { + + canManageClients_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If true, this link is for a Google Ads manager account.
+     * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCanManageClients() { + bitField0_ = (bitField0_ & ~0x00000004); + canManageClients_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + adsPersonalizationEnabledBuilder_; + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + public boolean hasAdsPersonalizationEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return The adsPersonalizationEnabled. + */ + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } else { + return adsPersonalizationEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsPersonalizationEnabled_ = value; + } else { + adsPersonalizationEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder setAdsPersonalizationEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = builderForValue.build(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && adsPersonalizationEnabled_ != null + && adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getAdsPersonalizationEnabledBuilder().mergeFrom(value); + } else { + adsPersonalizationEnabled_ = value; + } + } else { + adsPersonalizationEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder clearAdsPersonalizationEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + if (adsPersonalizationEnabledBuilder_ != null) { + return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); + } else { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getAdsPersonalizationEnabledFieldBuilder() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); + adsPersonalizationEnabled_ = null; + } + return adsPersonalizationEnabledBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object creatorEmailAddress_ = ""; + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + public java.lang.String getCreatorEmailAddress() { + java.lang.Object ref = creatorEmailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorEmailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + public com.google.protobuf.ByteString getCreatorEmailAddressBytes() { + java.lang.Object ref = creatorEmailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorEmailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The creatorEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setCreatorEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorEmailAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreatorEmailAddress() { + creatorEmailAddress_ = getDefaultInstance().getCreatorEmailAddress(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for creatorEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setCreatorEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorEmailAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GoogleAdsLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GoogleAdsLink) + private static final com.google.analytics.admin.v1alpha.GoogleAdsLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GoogleAdsLink(); + } + + public static com.google.analytics.admin.v1alpha.GoogleAdsLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAdsLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java new file mode 100644 index 000000000000..ae36017c5290 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java @@ -0,0 +1,241 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface GoogleAdsLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GoogleAdsLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The customerId. + */ + java.lang.String getCustomerId(); + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for customerId. + */ + com.google.protobuf.ByteString getCustomerIdBytes(); + + /** + * + * + *
+   * Output only. If true, this link is for a Google Ads manager account.
+   * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The canManageClients. + */ + boolean getCanManageClients(); + + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + boolean hasAdsPersonalizationEnabled(); + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return The adsPersonalizationEnabled. + */ + com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); + + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + java.lang.String getCreatorEmailAddress(); + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + com.google.protobuf.ByteString getCreatorEmailAddressBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java new file mode 100644 index 000000000000..e244222b9aed --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java @@ -0,0 +1,183 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Consent field of the Google Signals settings.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsConsent} + */ +public enum GoogleSignalsConsent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Google Signals consent value defaults to
+   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
+   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + */ + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED(0), + /** + * + * + *
+   * Terms of service have been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + */ + GOOGLE_SIGNALS_CONSENT_CONSENTED(2), + /** + * + * + *
+   * Terms of service have not been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + */ + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Google Signals consent value defaults to
+   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
+   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SIGNALS_CONSENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Terms of service have been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + */ + public static final int GOOGLE_SIGNALS_CONSENT_CONSENTED_VALUE = 2; + /** + * + * + *
+   * Terms of service have not been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + */ + public static final int GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED_VALUE = 1; + + 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 GoogleSignalsConsent 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 GoogleSignalsConsent forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SIGNALS_CONSENT_UNSPECIFIED; + case 2: + return GOOGLE_SIGNALS_CONSENT_CONSENTED; + case 1: + return GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GoogleSignalsConsent findValueByNumber(int number) { + return GoogleSignalsConsent.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(6); + } + + private static final GoogleSignalsConsent[] VALUES = values(); + + public static GoogleSignalsConsent valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GoogleSignalsConsent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsConsent) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java new file mode 100644 index 000000000000..ee29908041e1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java @@ -0,0 +1,967 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Settings values for Google Signals.  This is a singleton resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} + */ +public final class GoogleSignalsSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) + GoogleSignalsSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleSignalsSettings.newBuilder() to construct. + private GoogleSignalsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleSignalsSettings() { + name_ = ""; + state_ = 0; + consent_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleSignalsSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { + com.google.analytics.admin.v1alpha.GoogleSignalsState result = + com.google.analytics.admin.v1alpha.GoogleSignalsState.forNumber(state_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED + : result; + } + + public static final int CONSENT_FIELD_NUMBER = 4; + private int consent_ = 0; + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + @java.lang.Override + public int getConsentValue() { + return consent_; + } + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { + com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = + com.google.analytics.admin.v1alpha.GoogleSignalsConsent.forNumber(consent_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ + != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (consent_ + != com.google.analytics.admin.v1alpha.GoogleSignalsConsent + .GOOGLE_SIGNALS_CONSENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, consent_); + } + 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 (state_ + != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (consent_ + != com.google.analytics.admin.v1alpha.GoogleSignalsConsent + .GOOGLE_SIGNALS_CONSENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, consent_); + } + 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.admin.v1alpha.GoogleSignalsSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GoogleSignalsSettings other = + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (consent_ != other.consent_) 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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CONSENT_FIELD_NUMBER; + hash = (53 * hash) + consent_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings 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; + } + /** + * + * + *
+   * Settings values for Google Signals.  This is a singleton resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + state_ = 0; + consent_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings build() { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings buildPartial() { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = + new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GoogleSignalsSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consent_ = consent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GoogleSignalsSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.GoogleSignalsSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GoogleSignalsSettings other) { + if (other == com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.consent_ != 0) { + setConsentValue(other.getConsentValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 24 + case 32: + { + consent_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.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. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int state_ = 0; + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { + com.google.analytics.admin.v1alpha.GoogleSignalsState result = + com.google.analytics.admin.v1alpha.GoogleSignalsState.forNumber(state_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.analytics.admin.v1alpha.GoogleSignalsState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + onChanged(); + return this; + } + + private int consent_ = 0; + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + @java.lang.Override + public int getConsentValue() { + return consent_; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for consent to set. + * @return This builder for chaining. + */ + public Builder setConsentValue(int value) { + consent_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { + com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = + com.google.analytics.admin.v1alpha.GoogleSignalsConsent.forNumber(consent_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The consent to set. + * @return This builder for chaining. + */ + public Builder setConsent(com.google.analytics.admin.v1alpha.GoogleSignalsConsent value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + consent_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsent() { + bitField0_ = (bitField0_ & ~0x00000004); + consent_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GoogleSignalsSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GoogleSignalsSettings) + private static final com.google.analytics.admin.v1alpha.GoogleSignalsSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSignalsSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java new file mode 100644 index 000000000000..fcc1ac90bbca --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface GoogleSignalsSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GoogleSignalsSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsState getState(); + + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + int getConsentValue(); + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java new file mode 100644 index 000000000000..bb0912eda1b9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java @@ -0,0 +1,180 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Status of the Google Signals settings.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsState} + */ +public enum GoogleSignalsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
+   * represent that the user has not made an explicit choice.
+   * 
+ * + * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + */ + GOOGLE_SIGNALS_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Google Signals is enabled.
+   * 
+ * + * GOOGLE_SIGNALS_ENABLED = 1; + */ + GOOGLE_SIGNALS_ENABLED(1), + /** + * + * + *
+   * Google Signals is disabled.
+   * 
+ * + * GOOGLE_SIGNALS_DISABLED = 2; + */ + GOOGLE_SIGNALS_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
+   * represent that the user has not made an explicit choice.
+   * 
+ * + * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SIGNALS_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Google Signals is enabled.
+   * 
+ * + * GOOGLE_SIGNALS_ENABLED = 1; + */ + public static final int GOOGLE_SIGNALS_ENABLED_VALUE = 1; + /** + * + * + *
+   * Google Signals is disabled.
+   * 
+ * + * GOOGLE_SIGNALS_DISABLED = 2; + */ + public static final int GOOGLE_SIGNALS_DISABLED_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GoogleSignalsState 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 GoogleSignalsState forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SIGNALS_STATE_UNSPECIFIED; + case 1: + return GOOGLE_SIGNALS_ENABLED; + case 2: + return GOOGLE_SIGNALS_DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public GoogleSignalsState findValueByNumber(int number) { + return GoogleSignalsState.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(5); + } + + private static final GoogleSignalsState[] VALUES = values(); + + public static GoogleSignalsState valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private GoogleSignalsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsState) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRule.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRule.java new file mode 100644 index 000000000000..ba4491b6a903 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRule.java @@ -0,0 +1,920 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The rules that govern how traffic is grouped into one channel.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GroupingRule} + */ +public final class GroupingRule extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GroupingRule) + GroupingRuleOrBuilder { + private static final long serialVersionUID = 0L; + // Use GroupingRule.newBuilder() to construct. + private GroupingRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GroupingRule() { + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GroupingRule(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GroupingRule.class, + com.google.analytics.admin.v1alpha.GroupingRule.Builder.class); + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Customer defined display name for the channel.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Customer defined display name for the channel.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression_; + /** + * + * + *
+   * Required. The Filter Expression that defines the Grouping Rule.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expression field is set. + */ + @java.lang.Override + public boolean hasExpression() { + return expression_ != null; + } + /** + * + * + *
+   * Required. The Filter Expression that defines the Grouping Rule.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getExpression() { + return expression_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() + : expression_; + } + /** + * + * + *
+   * Required. The Filter Expression that defines the Grouping Rule.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder + getExpressionOrBuilder() { + return expression_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() + : expression_; + } + + 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(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (expression_ != null) { + output.writeMessage(2, getExpression()); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (expression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpression()); + } + 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.admin.v1alpha.GroupingRule)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GroupingRule other = + (com.google.analytics.admin.v1alpha.GroupingRule) obj; + + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasExpression() != other.hasExpression()) return false; + if (hasExpression()) { + if (!getExpression().equals(other.getExpression())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasExpression()) { + hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.GroupingRule 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 rules that govern how traffic is grouped into one channel.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GroupingRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GroupingRule) + com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GroupingRule.class, + com.google.analytics.admin.v1alpha.GroupingRule.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GroupingRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + expression_ = null; + if (expressionBuilder_ != null) { + expressionBuilder_.dispose(); + expressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ChannelGroupProto + .internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GroupingRule getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GroupingRule build() { + com.google.analytics.admin.v1alpha.GroupingRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GroupingRule buildPartial() { + com.google.analytics.admin.v1alpha.GroupingRule result = + new com.google.analytics.admin.v1alpha.GroupingRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.GroupingRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.expression_ = expressionBuilder_ == null ? expression_ : expressionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GroupingRule) { + return mergeFrom((com.google.analytics.admin.v1alpha.GroupingRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GroupingRule other) { + if (other == com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance()) + return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasExpression()) { + mergeExpression(other.getExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Customer defined display name for the channel.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Customer defined display name for the channel.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Customer defined display name for the channel.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Customer defined display name for the channel.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Customer defined display name for the channel.
+     * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + expressionBuilder_; + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expression field is set. + */ + public boolean hasExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expression. + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getExpression() { + if (expressionBuilder_ == null) { + return expression_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() + : expression_; + } else { + return expressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpression( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { + if (expressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expression_ = value; + } else { + expressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpression( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { + if (expressionBuilder_ == null) { + expression_ = builderForValue.build(); + } else { + expressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpression( + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { + if (expressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && expression_ != null + && expression_ + != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression + .getDefaultInstance()) { + getExpressionBuilder().mergeFrom(value); + } else { + expression_ = value; + } + } else { + expressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpression() { + bitField0_ = (bitField0_ & ~0x00000002); + expression_ = null; + if (expressionBuilder_ != null) { + expressionBuilder_.dispose(); + expressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder + getExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder + getExpressionOrBuilder() { + if (expressionBuilder_ != null) { + return expressionBuilder_.getMessageOrBuilder(); + } else { + return expression_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() + : expression_; + } + } + /** + * + * + *
+     * Required. The Filter Expression that defines the Grouping Rule.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> + getExpressionFieldBuilder() { + if (expressionBuilder_ == null) { + expressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder>( + getExpression(), getParentForChildren(), isClean()); + expression_ = null; + } + return expressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GroupingRule) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GroupingRule) + private static final com.google.analytics.admin.v1alpha.GroupingRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GroupingRule(); + } + + public static com.google.analytics.admin.v1alpha.GroupingRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GroupingRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GroupingRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRuleOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRuleOrBuilder.java new file mode 100644 index 000000000000..946ec0e0136b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRuleOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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/admin/v1alpha/channel_group.proto + +package com.google.analytics.admin.v1alpha; + +public interface GroupingRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GroupingRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Customer defined display name for the channel.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Customer defined display name for the channel.
+   * 
+ * + * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Required. The Filter Expression that defines the Grouping Rule.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expression field is set. + */ + boolean hasExpression(); + /** + * + * + *
+   * Required. The Filter Expression that defines the Grouping Rule.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expression. + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getExpression(); + /** + * + * + *
+   * Required. The Filter Expression that defines the Grouping Rule.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getExpressionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java new file mode 100644 index 000000000000..a6f3c85175d9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java @@ -0,0 +1,704 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The category selected for this property, used for industry benchmarking.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.IndustryCategory} + */ +public enum IndustryCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Industry category unspecified
+   * 
+ * + * INDUSTRY_CATEGORY_UNSPECIFIED = 0; + */ + INDUSTRY_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
+   * Automotive
+   * 
+ * + * AUTOMOTIVE = 1; + */ + AUTOMOTIVE(1), + /** + * + * + *
+   * Business and industrial markets
+   * 
+ * + * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + */ + BUSINESS_AND_INDUSTRIAL_MARKETS(2), + /** + * + * + *
+   * Finance
+   * 
+ * + * FINANCE = 3; + */ + FINANCE(3), + /** + * + * + *
+   * Healthcare
+   * 
+ * + * HEALTHCARE = 4; + */ + HEALTHCARE(4), + /** + * + * + *
+   * Technology
+   * 
+ * + * TECHNOLOGY = 5; + */ + TECHNOLOGY(5), + /** + * + * + *
+   * Travel
+   * 
+ * + * TRAVEL = 6; + */ + TRAVEL(6), + /** + * + * + *
+   * Other
+   * 
+ * + * OTHER = 7; + */ + OTHER(7), + /** + * + * + *
+   * Arts and entertainment
+   * 
+ * + * ARTS_AND_ENTERTAINMENT = 8; + */ + ARTS_AND_ENTERTAINMENT(8), + /** + * + * + *
+   * Beauty and fitness
+   * 
+ * + * BEAUTY_AND_FITNESS = 9; + */ + BEAUTY_AND_FITNESS(9), + /** + * + * + *
+   * Books and literature
+   * 
+ * + * BOOKS_AND_LITERATURE = 10; + */ + BOOKS_AND_LITERATURE(10), + /** + * + * + *
+   * Food and drink
+   * 
+ * + * FOOD_AND_DRINK = 11; + */ + FOOD_AND_DRINK(11), + /** + * + * + *
+   * Games
+   * 
+ * + * GAMES = 12; + */ + GAMES(12), + /** + * + * + *
+   * Hobbies and leisure
+   * 
+ * + * HOBBIES_AND_LEISURE = 13; + */ + HOBBIES_AND_LEISURE(13), + /** + * + * + *
+   * Home and garden
+   * 
+ * + * HOME_AND_GARDEN = 14; + */ + HOME_AND_GARDEN(14), + /** + * + * + *
+   * Internet and telecom
+   * 
+ * + * INTERNET_AND_TELECOM = 15; + */ + INTERNET_AND_TELECOM(15), + /** + * + * + *
+   * Law and government
+   * 
+ * + * LAW_AND_GOVERNMENT = 16; + */ + LAW_AND_GOVERNMENT(16), + /** + * + * + *
+   * News
+   * 
+ * + * NEWS = 17; + */ + NEWS(17), + /** + * + * + *
+   * Online communities
+   * 
+ * + * ONLINE_COMMUNITIES = 18; + */ + ONLINE_COMMUNITIES(18), + /** + * + * + *
+   * People and society
+   * 
+ * + * PEOPLE_AND_SOCIETY = 19; + */ + PEOPLE_AND_SOCIETY(19), + /** + * + * + *
+   * Pets and animals
+   * 
+ * + * PETS_AND_ANIMALS = 20; + */ + PETS_AND_ANIMALS(20), + /** + * + * + *
+   * Real estate
+   * 
+ * + * REAL_ESTATE = 21; + */ + REAL_ESTATE(21), + /** + * + * + *
+   * Reference
+   * 
+ * + * REFERENCE = 22; + */ + REFERENCE(22), + /** + * + * + *
+   * Science
+   * 
+ * + * SCIENCE = 23; + */ + SCIENCE(23), + /** + * + * + *
+   * Sports
+   * 
+ * + * SPORTS = 24; + */ + SPORTS(24), + /** + * + * + *
+   * Jobs and education
+   * 
+ * + * JOBS_AND_EDUCATION = 25; + */ + JOBS_AND_EDUCATION(25), + /** + * + * + *
+   * Shopping
+   * 
+ * + * SHOPPING = 26; + */ + SHOPPING(26), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Industry category unspecified
+   * 
+ * + * INDUSTRY_CATEGORY_UNSPECIFIED = 0; + */ + public static final int INDUSTRY_CATEGORY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Automotive
+   * 
+ * + * AUTOMOTIVE = 1; + */ + public static final int AUTOMOTIVE_VALUE = 1; + /** + * + * + *
+   * Business and industrial markets
+   * 
+ * + * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + */ + public static final int BUSINESS_AND_INDUSTRIAL_MARKETS_VALUE = 2; + /** + * + * + *
+   * Finance
+   * 
+ * + * FINANCE = 3; + */ + public static final int FINANCE_VALUE = 3; + /** + * + * + *
+   * Healthcare
+   * 
+ * + * HEALTHCARE = 4; + */ + public static final int HEALTHCARE_VALUE = 4; + /** + * + * + *
+   * Technology
+   * 
+ * + * TECHNOLOGY = 5; + */ + public static final int TECHNOLOGY_VALUE = 5; + /** + * + * + *
+   * Travel
+   * 
+ * + * TRAVEL = 6; + */ + public static final int TRAVEL_VALUE = 6; + /** + * + * + *
+   * Other
+   * 
+ * + * OTHER = 7; + */ + public static final int OTHER_VALUE = 7; + /** + * + * + *
+   * Arts and entertainment
+   * 
+ * + * ARTS_AND_ENTERTAINMENT = 8; + */ + public static final int ARTS_AND_ENTERTAINMENT_VALUE = 8; + /** + * + * + *
+   * Beauty and fitness
+   * 
+ * + * BEAUTY_AND_FITNESS = 9; + */ + public static final int BEAUTY_AND_FITNESS_VALUE = 9; + /** + * + * + *
+   * Books and literature
+   * 
+ * + * BOOKS_AND_LITERATURE = 10; + */ + public static final int BOOKS_AND_LITERATURE_VALUE = 10; + /** + * + * + *
+   * Food and drink
+   * 
+ * + * FOOD_AND_DRINK = 11; + */ + public static final int FOOD_AND_DRINK_VALUE = 11; + /** + * + * + *
+   * Games
+   * 
+ * + * GAMES = 12; + */ + public static final int GAMES_VALUE = 12; + /** + * + * + *
+   * Hobbies and leisure
+   * 
+ * + * HOBBIES_AND_LEISURE = 13; + */ + public static final int HOBBIES_AND_LEISURE_VALUE = 13; + /** + * + * + *
+   * Home and garden
+   * 
+ * + * HOME_AND_GARDEN = 14; + */ + public static final int HOME_AND_GARDEN_VALUE = 14; + /** + * + * + *
+   * Internet and telecom
+   * 
+ * + * INTERNET_AND_TELECOM = 15; + */ + public static final int INTERNET_AND_TELECOM_VALUE = 15; + /** + * + * + *
+   * Law and government
+   * 
+ * + * LAW_AND_GOVERNMENT = 16; + */ + public static final int LAW_AND_GOVERNMENT_VALUE = 16; + /** + * + * + *
+   * News
+   * 
+ * + * NEWS = 17; + */ + public static final int NEWS_VALUE = 17; + /** + * + * + *
+   * Online communities
+   * 
+ * + * ONLINE_COMMUNITIES = 18; + */ + public static final int ONLINE_COMMUNITIES_VALUE = 18; + /** + * + * + *
+   * People and society
+   * 
+ * + * PEOPLE_AND_SOCIETY = 19; + */ + public static final int PEOPLE_AND_SOCIETY_VALUE = 19; + /** + * + * + *
+   * Pets and animals
+   * 
+ * + * PETS_AND_ANIMALS = 20; + */ + public static final int PETS_AND_ANIMALS_VALUE = 20; + /** + * + * + *
+   * Real estate
+   * 
+ * + * REAL_ESTATE = 21; + */ + public static final int REAL_ESTATE_VALUE = 21; + /** + * + * + *
+   * Reference
+   * 
+ * + * REFERENCE = 22; + */ + public static final int REFERENCE_VALUE = 22; + /** + * + * + *
+   * Science
+   * 
+ * + * SCIENCE = 23; + */ + public static final int SCIENCE_VALUE = 23; + /** + * + * + *
+   * Sports
+   * 
+ * + * SPORTS = 24; + */ + public static final int SPORTS_VALUE = 24; + /** + * + * + *
+   * Jobs and education
+   * 
+ * + * JOBS_AND_EDUCATION = 25; + */ + public static final int JOBS_AND_EDUCATION_VALUE = 25; + /** + * + * + *
+   * Shopping
+   * 
+ * + * SHOPPING = 26; + */ + public static final int SHOPPING_VALUE = 26; + + 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 IndustryCategory 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 IndustryCategory forNumber(int value) { + switch (value) { + case 0: + return INDUSTRY_CATEGORY_UNSPECIFIED; + case 1: + return AUTOMOTIVE; + case 2: + return BUSINESS_AND_INDUSTRIAL_MARKETS; + case 3: + return FINANCE; + case 4: + return HEALTHCARE; + case 5: + return TECHNOLOGY; + case 6: + return TRAVEL; + case 7: + return OTHER; + case 8: + return ARTS_AND_ENTERTAINMENT; + case 9: + return BEAUTY_AND_FITNESS; + case 10: + return BOOKS_AND_LITERATURE; + case 11: + return FOOD_AND_DRINK; + case 12: + return GAMES; + case 13: + return HOBBIES_AND_LEISURE; + case 14: + return HOME_AND_GARDEN; + case 15: + return INTERNET_AND_TELECOM; + case 16: + return LAW_AND_GOVERNMENT; + case 17: + return NEWS; + case 18: + return ONLINE_COMMUNITIES; + case 19: + return PEOPLE_AND_SOCIETY; + case 20: + return PETS_AND_ANIMALS; + case 21: + return REAL_ESTATE; + case 22: + return REFERENCE; + case 23: + return SCIENCE; + case 24: + return SPORTS; + case 25: + return JOBS_AND_EDUCATION; + case 26: + return SHOPPING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IndustryCategory findValueByNumber(int number) { + return IndustryCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(0); + } + + private static final IndustryCategory[] VALUES = values(); + + public static IndustryCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IndustryCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.IndustryCategory) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java new file mode 100644 index 000000000000..ae5e8b43b3dc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java @@ -0,0 +1,181 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * An indication of which product the user initiated a link proposal from.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.LinkProposalInitiatingProduct} + */ +public enum LinkProposalInitiatingProduct implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified product.
+   * 
+ * + * LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; + */ + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED(0), + /** + * + * + *
+   * This proposal was created by a user from Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS = 1; + */ + GOOGLE_ANALYTICS(1), + /** + * + * + *
+   * This proposal was created by a user from a linked product (not Google
+   * Analytics).
+   * 
+ * + * LINKED_PRODUCT = 2; + */ + LINKED_PRODUCT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified product.
+   * 
+ * + * LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; + */ + public static final int LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * This proposal was created by a user from Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS = 1; + */ + public static final int GOOGLE_ANALYTICS_VALUE = 1; + /** + * + * + *
+   * This proposal was created by a user from a linked product (not Google
+   * Analytics).
+   * 
+ * + * LINKED_PRODUCT = 2; + */ + public static final int LINKED_PRODUCT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static LinkProposalInitiatingProduct 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 LinkProposalInitiatingProduct forNumber(int value) { + switch (value) { + case 0: + return LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED; + case 1: + return GOOGLE_ANALYTICS; + case 2: + return LINKED_PRODUCT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LinkProposalInitiatingProduct findValueByNumber(int number) { + return LinkProposalInitiatingProduct.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(7); + } + + private static final LinkProposalInitiatingProduct[] VALUES = values(); + + public static LinkProposalInitiatingProduct valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private LinkProposalInitiatingProduct(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.LinkProposalInitiatingProduct) +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java similarity index 77% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java index 966a667febc0..240be65d8d69 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java @@ -1,18 +1,36 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; /** + * + * *
  * The state of a link proposal resource.
  * 
* * Protobuf enum {@code google.analytics.admin.v1alpha.LinkProposalState} */ -public enum LinkProposalState - implements com.google.protobuf.ProtocolMessageEnum { +public enum LinkProposalState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified state
    * 
@@ -21,6 +39,8 @@ public enum LinkProposalState */ LINK_PROPOSAL_STATE_UNSPECIFIED(0), /** + * + * *
    * This proposal is awaiting review from a Google Analytics user. This
    * proposal will automatically expire after some time.
@@ -30,6 +50,8 @@ public enum LinkProposalState
    */
   AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS(1),
   /**
+   *
+   *
    * 
    * This proposal is awaiting review from a user of a linked product. This
    * proposal will automatically expire after some time.
@@ -39,6 +61,8 @@ public enum LinkProposalState
    */
   AWAITING_REVIEW_FROM_LINKED_PRODUCT(2),
   /**
+   *
+   *
    * 
    * This proposal has been withdrawn by an admin on the initiating product.
    * This proposal will be automatically deleted after some time.
@@ -48,6 +72,8 @@ public enum LinkProposalState
    */
   WITHDRAWN(3),
   /**
+   *
+   *
    * 
    * This proposal has been declined by an admin on the receiving product. This
    * proposal will be automatically deleted after some time.
@@ -57,6 +83,8 @@ public enum LinkProposalState
    */
   DECLINED(4),
   /**
+   *
+   *
    * 
    * This proposal expired due to lack of response from an admin on the
    * receiving product. This proposal will be automatically deleted after some
@@ -67,6 +95,8 @@ public enum LinkProposalState
    */
   EXPIRED(5),
   /**
+   *
+   *
    * 
    * This proposal has become obsolete because a link was directly created to
    * the same external product resource that this proposal specifies. This
@@ -80,6 +110,8 @@ public enum LinkProposalState
   ;
 
   /**
+   *
+   *
    * 
    * Unspecified state
    * 
@@ -88,6 +120,8 @@ public enum LinkProposalState */ public static final int LINK_PROPOSAL_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * This proposal is awaiting review from a Google Analytics user. This
    * proposal will automatically expire after some time.
@@ -97,6 +131,8 @@ public enum LinkProposalState
    */
   public static final int AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS_VALUE = 1;
   /**
+   *
+   *
    * 
    * This proposal is awaiting review from a user of a linked product. This
    * proposal will automatically expire after some time.
@@ -106,6 +142,8 @@ public enum LinkProposalState
    */
   public static final int AWAITING_REVIEW_FROM_LINKED_PRODUCT_VALUE = 2;
   /**
+   *
+   *
    * 
    * This proposal has been withdrawn by an admin on the initiating product.
    * This proposal will be automatically deleted after some time.
@@ -115,6 +153,8 @@ public enum LinkProposalState
    */
   public static final int WITHDRAWN_VALUE = 3;
   /**
+   *
+   *
    * 
    * This proposal has been declined by an admin on the receiving product. This
    * proposal will be automatically deleted after some time.
@@ -124,6 +164,8 @@ public enum LinkProposalState
    */
   public static final int DECLINED_VALUE = 4;
   /**
+   *
+   *
    * 
    * This proposal expired due to lack of response from an admin on the
    * receiving product. This proposal will be automatically deleted after some
@@ -134,6 +176,8 @@ public enum LinkProposalState
    */
   public static final int EXPIRED_VALUE = 5;
   /**
+   *
+   *
    * 
    * This proposal has become obsolete because a link was directly created to
    * the same external product resource that this proposal specifies. This
@@ -144,7 +188,6 @@ public enum LinkProposalState
    */
   public static final int OBSOLETE_VALUE = 6;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -169,43 +212,50 @@ public static LinkProposalState valueOf(int value) {
    */
   public static LinkProposalState forNumber(int value) {
     switch (value) {
-      case 0: return LINK_PROPOSAL_STATE_UNSPECIFIED;
-      case 1: return AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS;
-      case 2: return AWAITING_REVIEW_FROM_LINKED_PRODUCT;
-      case 3: return WITHDRAWN;
-      case 4: return DECLINED;
-      case 5: return EXPIRED;
-      case 6: return OBSOLETE;
-      default: return null;
+      case 0:
+        return LINK_PROPOSAL_STATE_UNSPECIFIED;
+      case 1:
+        return AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS;
+      case 2:
+        return AWAITING_REVIEW_FROM_LINKED_PRODUCT;
+      case 3:
+        return WITHDRAWN;
+      case 4:
+        return DECLINED;
+      case 5:
+        return EXPIRED;
+      case 6:
+        return OBSOLETE;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      LinkProposalState> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public LinkProposalState findValueByNumber(int number) {
-            return LinkProposalState.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap
+      internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public LinkProposalState findValueByNumber(int number) {
+              return LinkProposalState.forNumber(number);
+            }
+          };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(8);
   }
 
@@ -214,8 +264,7 @@ public LinkProposalState findValueByNumber(int number) {
   public static LinkProposalState valueOf(
       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -231,4 +280,3 @@ private LinkProposalState(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.LinkProposalState)
 }
-
diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java
new file mode 100644
index 000000000000..e4bcd25ea590
--- /dev/null
+++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java
@@ -0,0 +1,978 @@
+/*
+ * 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/admin/v1alpha/resources.proto
+
+package com.google.analytics.admin.v1alpha;
+
+/**
+ *
+ *
+ * 
+ * Status information for a link proposal.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.LinkProposalStatusDetails} + */ +public final class LinkProposalStatusDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + LinkProposalStatusDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use LinkProposalStatusDetails.newBuilder() to construct. + private LinkProposalStatusDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinkProposalStatusDetails() { + linkProposalInitiatingProduct_ = 0; + requestorEmail_ = ""; + linkProposalState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinkProposalStatusDetails(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.class, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder.class); + } + + public static final int LINK_PROPOSAL_INITIATING_PRODUCT_FIELD_NUMBER = 1; + private int linkProposalInitiatingProduct_ = 0; + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalInitiatingProduct. + */ + @java.lang.Override + public int getLinkProposalInitiatingProductValue() { + return linkProposalInitiatingProduct_; + } + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalInitiatingProduct. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + getLinkProposalInitiatingProduct() { + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.forNumber( + linkProposalInitiatingProduct_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.UNRECOGNIZED + : result; + } + + public static final int REQUESTOR_EMAIL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestorEmail_ = ""; + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestorEmail. + */ + @java.lang.Override + public java.lang.String getRequestorEmail() { + java.lang.Object ref = requestorEmail_; + 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(); + requestorEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestorEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestorEmailBytes() { + java.lang.Object ref = requestorEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_PROPOSAL_STATE_FIELD_NUMBER = 3; + private int linkProposalState_ = 0; + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalState. + */ + @java.lang.Override + public int getLinkProposalStateValue() { + return linkProposalState_; + } + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalState. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState() { + com.google.analytics.admin.v1alpha.LinkProposalState result = + com.google.analytics.admin.v1alpha.LinkProposalState.forNumber(linkProposalState_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalState.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (linkProposalInitiatingProduct_ + != com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + .LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, linkProposalInitiatingProduct_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestorEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestorEmail_); + } + if (linkProposalState_ + != com.google.analytics.admin.v1alpha.LinkProposalState.LINK_PROPOSAL_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, linkProposalState_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (linkProposalInitiatingProduct_ + != com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + .LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, linkProposalInitiatingProduct_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestorEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestorEmail_); + } + if (linkProposalState_ + != com.google.analytics.admin.v1alpha.LinkProposalState.LINK_PROPOSAL_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, linkProposalState_); + } + 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.admin.v1alpha.LinkProposalStatusDetails)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails other = + (com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) obj; + + if (linkProposalInitiatingProduct_ != other.linkProposalInitiatingProduct_) return false; + if (!getRequestorEmail().equals(other.getRequestorEmail())) return false; + if (linkProposalState_ != other.linkProposalState_) 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) + LINK_PROPOSAL_INITIATING_PRODUCT_FIELD_NUMBER; + hash = (53 * hash) + linkProposalInitiatingProduct_; + hash = (37 * hash) + REQUESTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRequestorEmail().hashCode(); + hash = (37 * hash) + LINK_PROPOSAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + linkProposalState_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails 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; + } + /** + * + * + *
+   * Status information for a link proposal.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.LinkProposalStatusDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.class, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + linkProposalInitiatingProduct_ = 0; + requestorEmail_ = ""; + linkProposalState_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails build() { + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails buildPartial() { + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result = + new com.google.analytics.admin.v1alpha.LinkProposalStatusDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.linkProposalInitiatingProduct_ = linkProposalInitiatingProduct_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestorEmail_ = requestorEmail_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.linkProposalState_ = linkProposalState_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) { + return mergeFrom((com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.LinkProposalStatusDetails other) { + if (other + == com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance()) + return this; + if (other.linkProposalInitiatingProduct_ != 0) { + setLinkProposalInitiatingProductValue(other.getLinkProposalInitiatingProductValue()); + } + if (!other.getRequestorEmail().isEmpty()) { + requestorEmail_ = other.requestorEmail_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.linkProposalState_ != 0) { + setLinkProposalStateValue(other.getLinkProposalStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + linkProposalInitiatingProduct_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + requestorEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + linkProposalState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int linkProposalInitiatingProduct_ = 0; + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalInitiatingProduct. + */ + @java.lang.Override + public int getLinkProposalInitiatingProductValue() { + return linkProposalInitiatingProduct_; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for linkProposalInitiatingProduct to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalInitiatingProductValue(int value) { + linkProposalInitiatingProduct_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalInitiatingProduct. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + getLinkProposalInitiatingProduct() { + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.forNumber( + linkProposalInitiatingProduct_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The linkProposalInitiatingProduct to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalInitiatingProduct( + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + linkProposalInitiatingProduct_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLinkProposalInitiatingProduct() { + bitField0_ = (bitField0_ & ~0x00000001); + linkProposalInitiatingProduct_ = 0; + onChanged(); + return this; + } + + private java.lang.Object requestorEmail_ = ""; + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestorEmail. + */ + public java.lang.String getRequestorEmail() { + java.lang.Object ref = requestorEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestorEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestorEmail. + */ + public com.google.protobuf.ByteString getRequestorEmailBytes() { + java.lang.Object ref = requestorEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestorEmail to set. + * @return This builder for chaining. + */ + public Builder setRequestorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestorEmail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestorEmail() { + requestorEmail_ = getDefaultInstance().getRequestorEmail(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for requestorEmail to set. + * @return This builder for chaining. + */ + public Builder setRequestorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestorEmail_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int linkProposalState_ = 0; + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalState. + */ + @java.lang.Override + public int getLinkProposalStateValue() { + return linkProposalState_; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for linkProposalState to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalStateValue(int value) { + linkProposalState_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalState. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState() { + com.google.analytics.admin.v1alpha.LinkProposalState result = + com.google.analytics.admin.v1alpha.LinkProposalState.forNumber(linkProposalState_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The linkProposalState to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalState( + com.google.analytics.admin.v1alpha.LinkProposalState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + linkProposalState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLinkProposalState() { + bitField0_ = (bitField0_ & ~0x00000004); + linkProposalState_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + private static final com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkProposalStatusDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java new file mode 100644 index 000000000000..7cf2ea5b5081 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface LinkProposalStatusDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalInitiatingProduct. + */ + int getLinkProposalInitiatingProductValue(); + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalInitiatingProduct. + */ + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + getLinkProposalInitiatingProduct(); + + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestorEmail. + */ + java.lang.String getRequestorEmail(); + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestorEmail. + */ + com.google.protobuf.ByteString getRequestorEmailBytes(); + + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalState. + */ + int getLinkProposalStateValue(); + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalState. + */ + com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java new file mode 100644 index 000000000000..79c407c76eb5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java @@ -0,0 +1,965 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsRequest} + */ +public final class ListAccessBindingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + ListAccessBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccessBindingsRequest.newBuilder() to construct. + private ListAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccessBindingsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccessBindingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of access bindings to return.
+   * The service may return fewer than this value.
+   * If unspecified, at most 200 access bindings will be returned.
+   * The maximum value is 500; values above 500 will be coerced to 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListAccessBindingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest other = + (com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + com.google.analytics.admin.v1alpha.ListAccessBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest build() { + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result = + new com.google.analytics.admin.v1alpha.ListAccessBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Formats:
+     * - accounts/{account}
+     * - properties/{property}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of access bindings to return.
+     * The service may return fewer than this value.
+     * If unspecified, at most 200 access bindings will be returned.
+     * The maximum value is 500; values above 500 will be coerced to 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of access bindings to return.
+     * The service may return fewer than this value.
+     * If unspecified, at most 200 access bindings will be returned.
+     * The maximum value is 500; values above 500 will be coerced to 500.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of access bindings to return.
+     * The service may return fewer than this value.
+     * If unspecified, at most 200 access bindings will be returned.
+     * The maximum value is 500; values above 500 will be coerced to 500.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccessBindings` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccessBindings` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + private static final com.google.analytics.admin.v1alpha.ListAccessBindingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccessBindingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessBindingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..419574021f4f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAccessBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccessBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Formats:
+   * - accounts/{account}
+   * - properties/{property}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of access bindings to return.
+   * The service may return fewer than this value.
+   * If unspecified, at most 200 access bindings will be returned.
+   * The maximum value is 500; values above 500 will be coerced to 500.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListAccessBindings` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccessBindings` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java new file mode 100644 index 000000000000..7145e8732525 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java @@ -0,0 +1,1166 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListAccessBindings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsResponse} + */ +public final class ListAccessBindingsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + ListAccessBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccessBindingsResponse.newBuilder() to construct. + private ListAccessBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccessBindingsResponse() { + accessBindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccessBindingsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.Builder.class); + } + + public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessBindings_; + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List getAccessBindingsList() { + return accessBindings_; + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public java.util.List + getAccessBindingsOrBuilderList() { + return accessBindings_; + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public int getAccessBindingsCount() { + return accessBindings_.size(); + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + return accessBindings_.get(index); + } + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + return accessBindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accessBindings_.size(); i++) { + output.writeMessage(1, accessBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListAccessBindingsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse other = + (com.google.analytics.admin.v1alpha.ListAccessBindingsResponse) obj; + + if (!getAccessBindingsList().equals(other.getAccessBindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAccessBindingsCount() > 0) { + hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getAccessBindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListAccessBindings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + com.google.analytics.admin.v1alpha.ListAccessBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + } else { + accessBindings_ = null; + accessBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse build() { + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result = + new com.google.analytics.admin.v1alpha.ListAccessBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result) { + if (accessBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessBindings_ = accessBindings_; + } else { + result.accessBindings_ = accessBindingsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAccessBindingsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccessBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccessBindingsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.getDefaultInstance()) + return this; + if (accessBindingsBuilder_ == null) { + if (!other.accessBindings_.isEmpty()) { + if (accessBindings_.isEmpty()) { + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessBindingsIsMutable(); + accessBindings_.addAll(other.accessBindings_); + } + onChanged(); + } + } else { + if (!other.accessBindings_.isEmpty()) { + if (accessBindingsBuilder_.isEmpty()) { + accessBindingsBuilder_.dispose(); + accessBindingsBuilder_ = null; + accessBindings_ = other.accessBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + accessBindingsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccessBindingsFieldBuilder() + : null; + } else { + accessBindingsBuilder_.addAllMessages(other.accessBindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessBinding m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessBinding.parser(), + extensionRegistry); + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(m); + } else { + accessBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessBindings_ = + java.util.Collections.emptyList(); + + private void ensureAccessBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessBindings_ = + new java.util.ArrayList( + accessBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingsBuilder_; + + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsList() { + if (accessBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessBindings_); + } else { + return accessBindingsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public int getAccessBindingsCount() { + if (accessBindingsBuilder_ == null) { + return accessBindings_.size(); + } else { + return accessBindingsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, value); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder setAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, value); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAccessBindings( + int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + accessBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder addAllAccessBindings( + java.lang.Iterable values) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessBindings_); + onChanged(); + } else { + accessBindingsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder clearAccessBindings() { + if (accessBindingsBuilder_ == null) { + accessBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessBindingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public Builder removeAccessBindings(int index) { + if (accessBindingsBuilder_ == null) { + ensureAccessBindingsIsMutable(); + accessBindings_.remove(index); + onChanged(); + } else { + accessBindingsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( + int index) { + if (accessBindingsBuilder_ == null) { + return accessBindings_.get(index); + } else { + return accessBindingsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsOrBuilderList() { + if (accessBindingsBuilder_ != null) { + return accessBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessBindings_); + } + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { + return getAccessBindingsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( + int index) { + return getAccessBindingsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); + } + /** + * + * + *
+     * List of AccessBindings. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + public java.util.List + getAccessBindingsBuilderList() { + return getAccessBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingsFieldBuilder() { + if (accessBindingsBuilder_ == null) { + accessBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + accessBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessBindings_ = null; + } + return accessBindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + private static final com.google.analytics.admin.v1alpha.ListAccessBindingsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccessBindingsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessBindingsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..37dbb4b9c1ab --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAccessBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccessBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List getAccessBindingsList(); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + int getAccessBindingsCount(); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + java.util.List + getAccessBindingsOrBuilderList(); + /** + * + * + *
+   * List of AccessBindings. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java new file mode 100644 index 000000000000..0d0b8bbfb0eb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListAccountSummaries RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesRequest} + */ +public final class ListAccountSummariesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountSummariesRequest) + ListAccountSummariesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountSummariesRequest.newBuilder() to construct. + private ListAccountSummariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountSummariesRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountSummariesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.class, + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of AccountSummary resources to return. The service may
+   * return fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + 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.admin.v1alpha.ListAccountSummariesRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest other = + (com.google.analytics.admin.v1alpha.ListAccountSummariesRequest) obj; + + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAccountSummaries RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountSummariesRequest) + com.google.analytics.admin.v1alpha.ListAccountSummariesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.class, + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest build() { + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest result = + new com.google.analytics.admin.v1alpha.ListAccountSummariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAccountSummariesRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountSummariesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccountSummariesRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.getDefaultInstance()) + return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int pageSize_; + /** + * + * + *
+     * The maximum number of AccountSummary resources to return. The service may
+     * return fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of AccountSummary resources to return. The service may
+     * return fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of AccountSummary resources to return. The service may
+     * return fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountSummariesRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountSummariesRequest) + private static final com.google.analytics.admin.v1alpha.ListAccountSummariesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountSummariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java new file mode 100644 index 000000000000..201d0ed53b44 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAccountSummariesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountSummariesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The maximum number of AccountSummary resources to return. The service may
+   * return fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java new file mode 100644 index 000000000000..90a0f75c3aba --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java @@ -0,0 +1,1148 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListAccountSummaries RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesResponse} + */ +public final class ListAccountSummariesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountSummariesResponse) + ListAccountSummariesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountSummariesResponse.newBuilder() to construct. + private ListAccountSummariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountSummariesResponse() { + accountSummaries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountSummariesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.class, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.Builder.class); + } + + public static final int ACCOUNT_SUMMARIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accountSummaries_; + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public java.util.List + getAccountSummariesList() { + return accountSummaries_; + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public java.util.List + getAccountSummariesOrBuilderList() { + return accountSummaries_; + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public int getAccountSummariesCount() { + return accountSummaries_.size(); + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountSummary getAccountSummaries(int index) { + return accountSummaries_.get(index); + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder getAccountSummariesOrBuilder( + int index) { + return accountSummaries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accountSummaries_.size(); i++) { + output.writeMessage(1, accountSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accountSummaries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accountSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListAccountSummariesResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse other = + (com.google.analytics.admin.v1alpha.ListAccountSummariesResponse) obj; + + if (!getAccountSummariesList().equals(other.getAccountSummariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAccountSummariesCount() > 0) { + hash = (37 * hash) + ACCOUNT_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getAccountSummariesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListAccountSummaries RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountSummariesResponse) + com.google.analytics.admin.v1alpha.ListAccountSummariesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.class, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accountSummariesBuilder_ == null) { + accountSummaries_ = java.util.Collections.emptyList(); + } else { + accountSummaries_ = null; + accountSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse build() { + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result = + new com.google.analytics.admin.v1alpha.ListAccountSummariesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result) { + if (accountSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accountSummaries_ = java.util.Collections.unmodifiableList(accountSummaries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accountSummaries_ = accountSummaries_; + } else { + result.accountSummaries_ = accountSummariesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAccountSummariesResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountSummariesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.getDefaultInstance()) + return this; + if (accountSummariesBuilder_ == null) { + if (!other.accountSummaries_.isEmpty()) { + if (accountSummaries_.isEmpty()) { + accountSummaries_ = other.accountSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccountSummariesIsMutable(); + accountSummaries_.addAll(other.accountSummaries_); + } + onChanged(); + } + } else { + if (!other.accountSummaries_.isEmpty()) { + if (accountSummariesBuilder_.isEmpty()) { + accountSummariesBuilder_.dispose(); + accountSummariesBuilder_ = null; + accountSummaries_ = other.accountSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + accountSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccountSummariesFieldBuilder() + : null; + } else { + accountSummariesBuilder_.addAllMessages(other.accountSummaries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccountSummary m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccountSummary.parser(), + extensionRegistry); + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.add(m); + } else { + accountSummariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accountSummaries_ = + java.util.Collections.emptyList(); + + private void ensureAccountSummariesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accountSummaries_ = + new java.util.ArrayList( + accountSummaries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccountSummary, + com.google.analytics.admin.v1alpha.AccountSummary.Builder, + com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder> + accountSummariesBuilder_; + + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public java.util.List + getAccountSummariesList() { + if (accountSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(accountSummaries_); + } else { + return accountSummariesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public int getAccountSummariesCount() { + if (accountSummariesBuilder_ == null) { + return accountSummaries_.size(); + } else { + return accountSummariesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1alpha.AccountSummary getAccountSummaries(int index) { + if (accountSummariesBuilder_ == null) { + return accountSummaries_.get(index); + } else { + return accountSummariesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder setAccountSummaries( + int index, com.google.analytics.admin.v1alpha.AccountSummary value) { + if (accountSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountSummariesIsMutable(); + accountSummaries_.set(index, value); + onChanged(); + } else { + accountSummariesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder setAccountSummaries( + int index, com.google.analytics.admin.v1alpha.AccountSummary.Builder builderForValue) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + accountSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries(com.google.analytics.admin.v1alpha.AccountSummary value) { + if (accountSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountSummariesIsMutable(); + accountSummaries_.add(value); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries( + int index, com.google.analytics.admin.v1alpha.AccountSummary value) { + if (accountSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountSummariesIsMutable(); + accountSummaries_.add(index, value); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries( + com.google.analytics.admin.v1alpha.AccountSummary.Builder builderForValue) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.add(builderForValue.build()); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries( + int index, com.google.analytics.admin.v1alpha.AccountSummary.Builder builderForValue) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder addAllAccountSummaries( + java.lang.Iterable values) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accountSummaries_); + onChanged(); + } else { + accountSummariesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder clearAccountSummaries() { + if (accountSummariesBuilder_ == null) { + accountSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accountSummariesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public Builder removeAccountSummaries(int index) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.remove(index); + onChanged(); + } else { + accountSummariesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1alpha.AccountSummary.Builder getAccountSummariesBuilder( + int index) { + return getAccountSummariesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder getAccountSummariesOrBuilder( + int index) { + if (accountSummariesBuilder_ == null) { + return accountSummaries_.get(index); + } else { + return accountSummariesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public java.util.List + getAccountSummariesOrBuilderList() { + if (accountSummariesBuilder_ != null) { + return accountSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accountSummaries_); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1alpha.AccountSummary.Builder addAccountSummariesBuilder() { + return getAccountSummariesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance()); + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1alpha.AccountSummary.Builder addAccountSummariesBuilder( + int index) { + return getAccountSummariesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance()); + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + public java.util.List + getAccountSummariesBuilderList() { + return getAccountSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccountSummary, + com.google.analytics.admin.v1alpha.AccountSummary.Builder, + com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder> + getAccountSummariesFieldBuilder() { + if (accountSummariesBuilder_ == null) { + accountSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccountSummary, + com.google.analytics.admin.v1alpha.AccountSummary.Builder, + com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder>( + accountSummaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accountSummaries_ = null; + } + return accountSummariesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountSummariesResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountSummariesResponse) + private static final com.google.analytics.admin.v1alpha.ListAccountSummariesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountSummariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java new file mode 100644 index 000000000000..2263b90d86b4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAccountSummariesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountSummariesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + java.util.List getAccountSummariesList(); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + com.google.analytics.admin.v1alpha.AccountSummary getAccountSummaries(int index); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + int getAccountSummariesCount(); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + java.util.List + getAccountSummariesOrBuilderList(); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; + */ + com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder getAccountSummariesOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java new file mode 100644 index 000000000000..df955bcf2baa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java @@ -0,0 +1,852 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsRequest} + */ +public final class ListAccountsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountsRequest) + ListAccountsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountsRequest.newBuilder() to construct. + private ListAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountsRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountsRequest.class, + com.google.analytics.admin.v1alpha.ListAccountsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHOW_DELETED_FIELD_NUMBER = 3; + private boolean showDeleted_ = false; + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Accounts in the
+   * results. Accounts can be inspected to determine whether they are deleted or
+   * not.
+   * 
+ * + * bool show_deleted = 3; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + + 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 (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(3, showDeleted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, showDeleted_); + } + 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.admin.v1alpha.ListAccountsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccountsRequest other = + (com.google.analytics.admin.v1alpha.ListAccountsRequest) obj; + + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAccountsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountsRequest) + com.google.analytics.admin.v1alpha.ListAccountsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountsRequest.class, + com.google.analytics.admin.v1alpha.ListAccountsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccountsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageToken_ = ""; + showDeleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccountsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsRequest build() { + com.google.analytics.admin.v1alpha.ListAccountsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAccountsRequest result = + new com.google.analytics.admin.v1alpha.ListAccountsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccountsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.showDeleted_ = showDeleted_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAccountsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccountsRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListAccountsRequest.getDefaultInstance()) + return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + showDeleted_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean showDeleted_; + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Accounts in the
+     * results. Accounts can be inspected to determine whether they are deleted or
+     * not.
+     * 
+ * + * bool show_deleted = 3; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Accounts in the
+     * results. Accounts can be inspected to determine whether they are deleted or
+     * not.
+     * 
+ * + * bool show_deleted = 3; + * + * @param value The showDeleted to set. + * @return This builder for chaining. + */ + public Builder setShowDeleted(boolean value) { + + showDeleted_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Accounts in the
+     * results. Accounts can be inspected to determine whether they are deleted or
+     * not.
+     * 
+ * + * bool show_deleted = 3; + * + * @return This builder for chaining. + */ + public Builder clearShowDeleted() { + bitField0_ = (bitField0_ & ~0x00000004); + showDeleted_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountsRequest) + private static final com.google.analytics.admin.v1alpha.ListAccountsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java new file mode 100644 index 000000000000..969dd3329aeb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAccountsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Accounts in the
+   * results. Accounts can be inspected to determine whether they are deleted or
+   * not.
+   * 
+ * + * bool show_deleted = 3; + * + * @return The showDeleted. + */ + boolean getShowDeleted(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java new file mode 100644 index 000000000000..18ee9f2c683a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java @@ -0,0 +1,1125 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsResponse} + */ +public final class ListAccountsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountsResponse) + ListAccountsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountsResponse.newBuilder() to construct. + private ListAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountsResponse() { + accounts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountsResponse.class, + com.google.analytics.admin.v1alpha.ListAccountsResponse.Builder.class); + } + + public static final int ACCOUNTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accounts_; + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + @java.lang.Override + public java.util.List getAccountsList() { + return accounts_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + @java.lang.Override + public java.util.List + getAccountsOrBuilderList() { + return accounts_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + @java.lang.Override + public int getAccountsCount() { + return accounts_.size(); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccounts(int index) { + return accounts_.get(index); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountsOrBuilder(int index) { + return accounts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accounts_.size(); i++) { + output.writeMessage(1, accounts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accounts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListAccountsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAccountsResponse other = + (com.google.analytics.admin.v1alpha.ListAccountsResponse) obj; + + if (!getAccountsList().equals(other.getAccountsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAccountsCount() > 0) { + hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getAccountsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAccountsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountsResponse) + com.google.analytics.admin.v1alpha.ListAccountsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAccountsResponse.class, + com.google.analytics.admin.v1alpha.ListAccountsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAccountsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + } else { + accounts_ = null; + accountsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAccountsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsResponse build() { + com.google.analytics.admin.v1alpha.ListAccountsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAccountsResponse result = + new com.google.analytics.admin.v1alpha.ListAccountsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListAccountsResponse result) { + if (accountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accounts_ = accounts_; + } else { + result.accounts_ = accountsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccountsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAccountsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccountsResponse other) { + if (other == com.google.analytics.admin.v1alpha.ListAccountsResponse.getDefaultInstance()) + return this; + if (accountsBuilder_ == null) { + if (!other.accounts_.isEmpty()) { + if (accounts_.isEmpty()) { + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccountsIsMutable(); + accounts_.addAll(other.accounts_); + } + onChanged(); + } + } else { + if (!other.accounts_.isEmpty()) { + if (accountsBuilder_.isEmpty()) { + accountsBuilder_.dispose(); + accountsBuilder_ = null; + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + accountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccountsFieldBuilder() + : null; + } else { + accountsBuilder_.addAllMessages(other.accounts_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.Account m = + input.readMessage( + com.google.analytics.admin.v1alpha.Account.parser(), extensionRegistry); + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(m); + } else { + accountsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accounts_ = + java.util.Collections.emptyList(); + + private void ensureAccountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accounts_ = new java.util.ArrayList(accounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + accountsBuilder_; + + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public java.util.List getAccountsList() { + if (accountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accounts_); + } else { + return accountsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public int getAccountsCount() { + if (accountsBuilder_ == null) { + return accounts_.size(); + } else { + return accountsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public com.google.analytics.admin.v1alpha.Account getAccounts(int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder setAccounts(int index, com.google.analytics.admin.v1alpha.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.set(index, value); + onChanged(); + } else { + accountsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder setAccounts( + int index, com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.set(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder addAccounts(com.google.analytics.admin.v1alpha.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(value); + onChanged(); + } else { + accountsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder addAccounts(int index, com.google.analytics.admin.v1alpha.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(index, value); + onChanged(); + } else { + accountsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder addAccounts(com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder addAccounts( + int index, com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder addAllAccounts( + java.lang.Iterable values) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accounts_); + onChanged(); + } else { + accountsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder clearAccounts() { + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accountsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public Builder removeAccounts(int index) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.remove(index); + onChanged(); + } else { + accountsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public com.google.analytics.admin.v1alpha.Account.Builder getAccountsBuilder(int index) { + return getAccountsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountsOrBuilder(int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public java.util.List + getAccountsOrBuilderList() { + if (accountsBuilder_ != null) { + return accountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accounts_); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public com.google.analytics.admin.v1alpha.Account.Builder addAccountsBuilder() { + return getAccountsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.Account.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public com.google.analytics.admin.v1alpha.Account.Builder addAccountsBuilder(int index) { + return getAccountsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.Account.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + public java.util.List + getAccountsBuilderList() { + return getAccountsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + getAccountsFieldBuilder() { + if (accountsBuilder_ == null) { + accountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder>( + accounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + accounts_ = null; + } + return accountsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountsResponse) + private static final com.google.analytics.admin.v1alpha.ListAccountsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAccountsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAccountsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java new file mode 100644 index 000000000000..e75b84bf18a1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAccountsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + java.util.List getAccountsList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + com.google.analytics.admin.v1alpha.Account getAccounts(int index); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + int getAccountsCount(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + java.util.List + getAccountsOrBuilderList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Account accounts = 1; + */ + com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequest.java new file mode 100644 index 000000000000..b630c9d0f9eb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequest.java @@ -0,0 +1,964 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message to be passed to ListAdSenseLinks method.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksRequest} + */ +public final class ListAdSenseLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) + ListAdSenseLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAdSenseLinksRequest.newBuilder() to construct. + private ListAdSenseLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAdSenseLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAdSenseLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.class, + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Resource name of the parent property.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the parent property.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token received from a previous `ListAdSenseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdSenseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token received from a previous `ListAdSenseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdSenseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListAdSenseLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest other = + (com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message to be passed to ListAdSenseLinks method.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.class, + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest build() { + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest result = + new com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Resource name of the parent property.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the parent property.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the parent property.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the parent property.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the parent property.
+     * Format: properties/{propertyId}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token received from a previous `ListAdSenseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdSenseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token received from a previous `ListAdSenseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdSenseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token received from a previous `ListAdSenseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdSenseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token received from a previous `ListAdSenseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdSenseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token received from a previous `ListAdSenseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAdSenseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAdSenseLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequestOrBuilder.java new file mode 100644 index 000000000000..0966a9a6dce5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAdSenseLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the parent property.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Resource name of the parent property.
+   * Format: properties/{propertyId}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token received from a previous `ListAdSenseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdSenseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token received from a previous `ListAdSenseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAdSenseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponse.java new file mode 100644 index 000000000000..19028bbf761f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponse.java @@ -0,0 +1,1133 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListAdSenseLinks method.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksResponse} + */ +public final class ListAdSenseLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) + ListAdSenseLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAdSenseLinksResponse.newBuilder() to construct. + private ListAdSenseLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAdSenseLinksResponse() { + adsenseLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAdSenseLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.class, + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.Builder.class); + } + + public static final int ADSENSE_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List adsenseLinks_; + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + @java.lang.Override + public java.util.List getAdsenseLinksList() { + return adsenseLinks_; + } + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + @java.lang.Override + public java.util.List + getAdsenseLinksOrBuilderList() { + return adsenseLinks_; + } + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + @java.lang.Override + public int getAdsenseLinksCount() { + return adsenseLinks_.size(); + } + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLinks(int index) { + return adsenseLinks_.get(index); + } + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinksOrBuilder( + int index) { + return adsenseLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < adsenseLinks_.size(); i++) { + output.writeMessage(1, adsenseLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < adsenseLinks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, adsenseLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListAdSenseLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse other = + (com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse) obj; + + if (!getAdsenseLinksList().equals(other.getAdsenseLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAdsenseLinksCount() > 0) { + hash = (37 * hash) + ADSENSE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getAdsenseLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListAdSenseLinks method.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.class, + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (adsenseLinksBuilder_ == null) { + adsenseLinks_ = java.util.Collections.emptyList(); + } else { + adsenseLinks_ = null; + adsenseLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse build() { + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result = + new com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result) { + if (adsenseLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + adsenseLinks_ = java.util.Collections.unmodifiableList(adsenseLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.adsenseLinks_ = adsenseLinks_; + } else { + result.adsenseLinks_ = adsenseLinksBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse other) { + if (other == com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.getDefaultInstance()) + return this; + if (adsenseLinksBuilder_ == null) { + if (!other.adsenseLinks_.isEmpty()) { + if (adsenseLinks_.isEmpty()) { + adsenseLinks_ = other.adsenseLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAdsenseLinksIsMutable(); + adsenseLinks_.addAll(other.adsenseLinks_); + } + onChanged(); + } + } else { + if (!other.adsenseLinks_.isEmpty()) { + if (adsenseLinksBuilder_.isEmpty()) { + adsenseLinksBuilder_.dispose(); + adsenseLinksBuilder_ = null; + adsenseLinks_ = other.adsenseLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + adsenseLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAdsenseLinksFieldBuilder() + : null; + } else { + adsenseLinksBuilder_.addAllMessages(other.adsenseLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AdSenseLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.AdSenseLink.parser(), extensionRegistry); + if (adsenseLinksBuilder_ == null) { + ensureAdsenseLinksIsMutable(); + adsenseLinks_.add(m); + } else { + adsenseLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List adsenseLinks_ = + java.util.Collections.emptyList(); + + private void ensureAdsenseLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + adsenseLinks_ = + new java.util.ArrayList(adsenseLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> + adsenseLinksBuilder_; + + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public java.util.List getAdsenseLinksList() { + if (adsenseLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(adsenseLinks_); + } else { + return adsenseLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public int getAdsenseLinksCount() { + if (adsenseLinksBuilder_ == null) { + return adsenseLinks_.size(); + } else { + return adsenseLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLinks(int index) { + if (adsenseLinksBuilder_ == null) { + return adsenseLinks_.get(index); + } else { + return adsenseLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder setAdsenseLinks( + int index, com.google.analytics.admin.v1alpha.AdSenseLink value) { + if (adsenseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdsenseLinksIsMutable(); + adsenseLinks_.set(index, value); + onChanged(); + } else { + adsenseLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder setAdsenseLinks( + int index, com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { + if (adsenseLinksBuilder_ == null) { + ensureAdsenseLinksIsMutable(); + adsenseLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + adsenseLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder addAdsenseLinks(com.google.analytics.admin.v1alpha.AdSenseLink value) { + if (adsenseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdsenseLinksIsMutable(); + adsenseLinks_.add(value); + onChanged(); + } else { + adsenseLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder addAdsenseLinks( + int index, com.google.analytics.admin.v1alpha.AdSenseLink value) { + if (adsenseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAdsenseLinksIsMutable(); + adsenseLinks_.add(index, value); + onChanged(); + } else { + adsenseLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder addAdsenseLinks( + com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { + if (adsenseLinksBuilder_ == null) { + ensureAdsenseLinksIsMutable(); + adsenseLinks_.add(builderForValue.build()); + onChanged(); + } else { + adsenseLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder addAdsenseLinks( + int index, com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { + if (adsenseLinksBuilder_ == null) { + ensureAdsenseLinksIsMutable(); + adsenseLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + adsenseLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder addAllAdsenseLinks( + java.lang.Iterable values) { + if (adsenseLinksBuilder_ == null) { + ensureAdsenseLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, adsenseLinks_); + onChanged(); + } else { + adsenseLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder clearAdsenseLinks() { + if (adsenseLinksBuilder_ == null) { + adsenseLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + adsenseLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public Builder removeAdsenseLinks(int index) { + if (adsenseLinksBuilder_ == null) { + ensureAdsenseLinksIsMutable(); + adsenseLinks_.remove(index); + onChanged(); + } else { + adsenseLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public com.google.analytics.admin.v1alpha.AdSenseLink.Builder getAdsenseLinksBuilder( + int index) { + return getAdsenseLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinksOrBuilder( + int index) { + if (adsenseLinksBuilder_ == null) { + return adsenseLinks_.get(index); + } else { + return adsenseLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public java.util.List + getAdsenseLinksOrBuilderList() { + if (adsenseLinksBuilder_ != null) { + return adsenseLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(adsenseLinks_); + } + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public com.google.analytics.admin.v1alpha.AdSenseLink.Builder addAdsenseLinksBuilder() { + return getAdsenseLinksFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public com.google.analytics.admin.v1alpha.AdSenseLink.Builder addAdsenseLinksBuilder( + int index) { + return getAdsenseLinksFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of AdSenseLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + public java.util.List + getAdsenseLinksBuilderList() { + return getAdsenseLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> + getAdsenseLinksFieldBuilder() { + if (adsenseLinksBuilder_ == null) { + adsenseLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AdSenseLink, + com.google.analytics.admin.v1alpha.AdSenseLink.Builder, + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder>( + adsenseLinks_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + adsenseLinks_ = null; + } + return adsenseLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAdSenseLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponseOrBuilder.java new file mode 100644 index 000000000000..0fa3125d02cf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAdSenseLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + java.util.List getAdsenseLinksList(); + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLinks(int index); + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + int getAdsenseLinksCount(); + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + java.util.List + getAdsenseLinksOrBuilderList(); + /** + * + * + *
+   * List of AdSenseLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; + */ + com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java new file mode 100644 index 000000000000..494069a94587 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java @@ -0,0 +1,950 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListAudiences RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesRequest} + */ +public final class ListAudiencesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAudiencesRequest) + ListAudiencesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAudiencesRequest.newBuilder() to construct. + private ListAudiencesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAudiencesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAudiencesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, + com.google.analytics.admin.v1alpha.ListAudiencesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAudiences` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAudiences` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListAudiencesRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAudiencesRequest other = + (com.google.analytics.admin.v1alpha.ListAudiencesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAudiencesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAudiences RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAudiencesRequest) + com.google.analytics.admin.v1alpha.ListAudiencesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, + com.google.analytics.admin.v1alpha.ListAudiencesRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAudiencesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAudiencesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesRequest build() { + com.google.analytics.admin.v1alpha.ListAudiencesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListAudiencesRequest result = + new com.google.analytics.admin.v1alpha.ListAudiencesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListAudiencesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAudiencesRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAudiencesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAudiencesRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListAudiencesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAudiences` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAudiences` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAudiences` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAudiences` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAudiences` call. Provide this
+     * to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListAudiences` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAudiencesRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAudiencesRequest) + private static final com.google.analytics.admin.v1alpha.ListAudiencesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAudiencesRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAudiencesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java new file mode 100644 index 000000000000..603da8ecbd0a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAudiencesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAudiencesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAudiences` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListAudiences` call. Provide this
+   * to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListAudiences` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java new file mode 100644 index 000000000000..f9a780b9322d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java @@ -0,0 +1,1127 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListAudiences RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesResponse} + */ +public final class ListAudiencesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAudiencesResponse) + ListAudiencesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAudiencesResponse.newBuilder() to construct. + private ListAudiencesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAudiencesResponse() { + audiences_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAudiencesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, + com.google.analytics.admin.v1alpha.ListAudiencesResponse.Builder.class); + } + + public static final int AUDIENCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List audiences_; + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public java.util.List getAudiencesList() { + return audiences_; + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public java.util.List + getAudiencesOrBuilderList() { + return audiences_; + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public int getAudiencesCount() { + return audiences_.size(); + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudiences(int index) { + return audiences_.get(index); + } + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder(int index) { + return audiences_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < audiences_.size(); i++) { + output.writeMessage(1, audiences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < audiences_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, audiences_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListAudiencesResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListAudiencesResponse other = + (com.google.analytics.admin.v1alpha.ListAudiencesResponse) obj; + + if (!getAudiencesList().equals(other.getAudiencesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAudiencesCount() > 0) { + hash = (37 * hash) + AUDIENCES_FIELD_NUMBER; + hash = (53 * hash) + getAudiencesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListAudiencesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListAudiences RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAudiencesResponse) + com.google.analytics.admin.v1alpha.ListAudiencesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, + com.google.analytics.admin.v1alpha.ListAudiencesResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListAudiencesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (audiencesBuilder_ == null) { + audiences_ = java.util.Collections.emptyList(); + } else { + audiences_ = null; + audiencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListAudiencesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesResponse build() { + com.google.analytics.admin.v1alpha.ListAudiencesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListAudiencesResponse result = + new com.google.analytics.admin.v1alpha.ListAudiencesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListAudiencesResponse result) { + if (audiencesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + audiences_ = java.util.Collections.unmodifiableList(audiences_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.audiences_ = audiences_; + } else { + result.audiences_ = audiencesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListAudiencesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListAudiencesResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListAudiencesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAudiencesResponse other) { + if (other == com.google.analytics.admin.v1alpha.ListAudiencesResponse.getDefaultInstance()) + return this; + if (audiencesBuilder_ == null) { + if (!other.audiences_.isEmpty()) { + if (audiences_.isEmpty()) { + audiences_ = other.audiences_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAudiencesIsMutable(); + audiences_.addAll(other.audiences_); + } + onChanged(); + } + } else { + if (!other.audiences_.isEmpty()) { + if (audiencesBuilder_.isEmpty()) { + audiencesBuilder_.dispose(); + audiencesBuilder_ = null; + audiences_ = other.audiences_; + bitField0_ = (bitField0_ & ~0x00000001); + audiencesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAudiencesFieldBuilder() + : null; + } else { + audiencesBuilder_.addAllMessages(other.audiences_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.Audience m = + input.readMessage( + com.google.analytics.admin.v1alpha.Audience.parser(), extensionRegistry); + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.add(m); + } else { + audiencesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List audiences_ = + java.util.Collections.emptyList(); + + private void ensureAudiencesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + audiences_ = + new java.util.ArrayList(audiences_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + audiencesBuilder_; + + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public java.util.List getAudiencesList() { + if (audiencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(audiences_); + } else { + return audiencesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public int getAudiencesCount() { + if (audiencesBuilder_ == null) { + return audiences_.size(); + } else { + return audiencesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience getAudiences(int index) { + if (audiencesBuilder_ == null) { + return audiences_.get(index); + } else { + return audiencesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder setAudiences(int index, com.google.analytics.admin.v1alpha.Audience value) { + if (audiencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.set(index, value); + onChanged(); + } else { + audiencesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder setAudiences( + int index, com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.set(index, builderForValue.build()); + onChanged(); + } else { + audiencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences(com.google.analytics.admin.v1alpha.Audience value) { + if (audiencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.add(value); + onChanged(); + } else { + audiencesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences(int index, com.google.analytics.admin.v1alpha.Audience value) { + if (audiencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAudiencesIsMutable(); + audiences_.add(index, value); + onChanged(); + } else { + audiencesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences( + com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.add(builderForValue.build()); + onChanged(); + } else { + audiencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAudiences( + int index, com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.add(index, builderForValue.build()); + onChanged(); + } else { + audiencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder addAllAudiences( + java.lang.Iterable values) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, audiences_); + onChanged(); + } else { + audiencesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder clearAudiences() { + if (audiencesBuilder_ == null) { + audiences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + audiencesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public Builder removeAudiences(int index) { + if (audiencesBuilder_ == null) { + ensureAudiencesIsMutable(); + audiences_.remove(index); + onChanged(); + } else { + audiencesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience.Builder getAudiencesBuilder(int index) { + return getAudiencesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder(int index) { + if (audiencesBuilder_ == null) { + return audiences_.get(index); + } else { + return audiencesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public java.util.List + getAudiencesOrBuilderList() { + if (audiencesBuilder_ != null) { + return audiencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(audiences_); + } + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience.Builder addAudiencesBuilder() { + return getAudiencesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()); + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public com.google.analytics.admin.v1alpha.Audience.Builder addAudiencesBuilder(int index) { + return getAudiencesFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()); + } + /** + * + * + *
+     * List of Audiences.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + public java.util.List + getAudiencesBuilderList() { + return getAudiencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + getAudiencesFieldBuilder() { + if (audiencesBuilder_ == null) { + audiencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder>( + audiences_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + audiences_ = null; + } + return audiencesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAudiencesResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAudiencesResponse) + private static final com.google.analytics.admin.v1alpha.ListAudiencesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAudiencesResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAudiencesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java new file mode 100644 index 000000000000..afcd1c842cf6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListAudiencesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAudiencesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + java.util.List getAudiencesList(); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + com.google.analytics.admin.v1alpha.Audience getAudiences(int index); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + int getAudiencesCount(); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + java.util.List + getAudiencesOrBuilderList(); + /** + * + * + *
+   * List of Audiences.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; + */ + com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequest.java new file mode 100644 index 000000000000..10c6c34ab41a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequest.java @@ -0,0 +1,961 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListBigQueryLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksRequest} + */ +public final class ListBigQueryLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) + ListBigQueryLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBigQueryLinksRequest.newBuilder() to construct. + private ListBigQueryLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBigQueryLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBigQueryLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.class, + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the property to list BigQuery links under.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the property to list BigQuery links under.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListBigQueryLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListBigQueryLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListBigQueryLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListBigQueryLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListBigQueryLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest other = + (com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListBigQueryLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.class, + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest build() { + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest result = + new com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the property to list BigQuery links under.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the property to list BigQuery links under.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the property to list BigQuery links under.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the property to list BigQuery links under.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the property to list BigQuery links under.
+     * Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListBigQueryLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListBigQueryLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListBigQueryLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListBigQueryLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListBigQueryLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListBigQueryLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListBigQueryLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListBigQueryLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListBigQueryLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListBigQueryLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBigQueryLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequestOrBuilder.java new file mode 100644 index 000000000000..74fe3d46c4d1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListBigQueryLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the property to list BigQuery links under.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the property to list BigQuery links under.
+   * Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListBigQueryLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListBigQueryLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListBigQueryLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListBigQueryLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponse.java new file mode 100644 index 000000000000..9eb63ed3b711 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponse.java @@ -0,0 +1,1142 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListBigQueryLinks RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksResponse} + */ +public final class ListBigQueryLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) + ListBigQueryLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListBigQueryLinksResponse.newBuilder() to construct. + private ListBigQueryLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListBigQueryLinksResponse() { + bigqueryLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListBigQueryLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.class, + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.Builder.class); + } + + public static final int BIGQUERY_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List bigqueryLinks_; + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + @java.lang.Override + public java.util.List getBigqueryLinksList() { + return bigqueryLinks_; + } + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + @java.lang.Override + public java.util.List + getBigqueryLinksOrBuilderList() { + return bigqueryLinks_; + } + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + @java.lang.Override + public int getBigqueryLinksCount() { + return bigqueryLinks_.size(); + } + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLinks(int index) { + return bigqueryLinks_.get(index); + } + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinksOrBuilder( + int index) { + return bigqueryLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < bigqueryLinks_.size(); i++) { + output.writeMessage(1, bigqueryLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < bigqueryLinks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, bigqueryLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListBigQueryLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse other = + (com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse) obj; + + if (!getBigqueryLinksList().equals(other.getBigqueryLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getBigqueryLinksCount() > 0) { + hash = (37 * hash) + BIGQUERY_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getBigqueryLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListBigQueryLinks RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.class, + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (bigqueryLinksBuilder_ == null) { + bigqueryLinks_ = java.util.Collections.emptyList(); + } else { + bigqueryLinks_ = null; + bigqueryLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse build() { + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result = + new com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result) { + if (bigqueryLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + bigqueryLinks_ = java.util.Collections.unmodifiableList(bigqueryLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bigqueryLinks_ = bigqueryLinks_; + } else { + result.bigqueryLinks_ = bigqueryLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.getDefaultInstance()) + return this; + if (bigqueryLinksBuilder_ == null) { + if (!other.bigqueryLinks_.isEmpty()) { + if (bigqueryLinks_.isEmpty()) { + bigqueryLinks_ = other.bigqueryLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.addAll(other.bigqueryLinks_); + } + onChanged(); + } + } else { + if (!other.bigqueryLinks_.isEmpty()) { + if (bigqueryLinksBuilder_.isEmpty()) { + bigqueryLinksBuilder_.dispose(); + bigqueryLinksBuilder_ = null; + bigqueryLinks_ = other.bigqueryLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + bigqueryLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getBigqueryLinksFieldBuilder() + : null; + } else { + bigqueryLinksBuilder_.addAllMessages(other.bigqueryLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.BigQueryLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.BigQueryLink.parser(), + extensionRegistry); + if (bigqueryLinksBuilder_ == null) { + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.add(m); + } else { + bigqueryLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List bigqueryLinks_ = + java.util.Collections.emptyList(); + + private void ensureBigqueryLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bigqueryLinks_ = + new java.util.ArrayList( + bigqueryLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.BigQueryLink, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder, + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> + bigqueryLinksBuilder_; + + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public java.util.List getBigqueryLinksList() { + if (bigqueryLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(bigqueryLinks_); + } else { + return bigqueryLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public int getBigqueryLinksCount() { + if (bigqueryLinksBuilder_ == null) { + return bigqueryLinks_.size(); + } else { + return bigqueryLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLinks(int index) { + if (bigqueryLinksBuilder_ == null) { + return bigqueryLinks_.get(index); + } else { + return bigqueryLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder setBigqueryLinks( + int index, com.google.analytics.admin.v1alpha.BigQueryLink value) { + if (bigqueryLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.set(index, value); + onChanged(); + } else { + bigqueryLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder setBigqueryLinks( + int index, com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { + if (bigqueryLinksBuilder_ == null) { + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + bigqueryLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder addBigqueryLinks(com.google.analytics.admin.v1alpha.BigQueryLink value) { + if (bigqueryLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.add(value); + onChanged(); + } else { + bigqueryLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder addBigqueryLinks( + int index, com.google.analytics.admin.v1alpha.BigQueryLink value) { + if (bigqueryLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.add(index, value); + onChanged(); + } else { + bigqueryLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder addBigqueryLinks( + com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { + if (bigqueryLinksBuilder_ == null) { + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.add(builderForValue.build()); + onChanged(); + } else { + bigqueryLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder addBigqueryLinks( + int index, com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { + if (bigqueryLinksBuilder_ == null) { + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + bigqueryLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder addAllBigqueryLinks( + java.lang.Iterable values) { + if (bigqueryLinksBuilder_ == null) { + ensureBigqueryLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, bigqueryLinks_); + onChanged(); + } else { + bigqueryLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder clearBigqueryLinks() { + if (bigqueryLinksBuilder_ == null) { + bigqueryLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + bigqueryLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public Builder removeBigqueryLinks(int index) { + if (bigqueryLinksBuilder_ == null) { + ensureBigqueryLinksIsMutable(); + bigqueryLinks_.remove(index); + onChanged(); + } else { + bigqueryLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public com.google.analytics.admin.v1alpha.BigQueryLink.Builder getBigqueryLinksBuilder( + int index) { + return getBigqueryLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinksOrBuilder( + int index) { + if (bigqueryLinksBuilder_ == null) { + return bigqueryLinks_.get(index); + } else { + return bigqueryLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public java.util.List + getBigqueryLinksOrBuilderList() { + if (bigqueryLinksBuilder_ != null) { + return bigqueryLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(bigqueryLinks_); + } + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public com.google.analytics.admin.v1alpha.BigQueryLink.Builder addBigqueryLinksBuilder() { + return getBigqueryLinksFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public com.google.analytics.admin.v1alpha.BigQueryLink.Builder addBigqueryLinksBuilder( + int index) { + return getBigqueryLinksFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of BigQueryLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + public java.util.List + getBigqueryLinksBuilderList() { + return getBigqueryLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.BigQueryLink, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder, + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> + getBigqueryLinksFieldBuilder() { + if (bigqueryLinksBuilder_ == null) { + bigqueryLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.BigQueryLink, + com.google.analytics.admin.v1alpha.BigQueryLink.Builder, + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder>( + bigqueryLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + bigqueryLinks_ = null; + } + return bigqueryLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListBigQueryLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponseOrBuilder.java new file mode 100644 index 000000000000..816a811414b7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListBigQueryLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + java.util.List getBigqueryLinksList(); + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLinks(int index); + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + int getBigqueryLinksCount(); + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + java.util.List + getBigqueryLinksOrBuilderList(); + /** + * + * + *
+   * List of BigQueryLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; + */ + com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequest.java new file mode 100644 index 000000000000..c2170a264ad7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequest.java @@ -0,0 +1,957 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListChannelGroups RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsRequest} + */ +public final class ListChannelGroupsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListChannelGroupsRequest) + ListChannelGroupsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChannelGroupsRequest.newBuilder() to construct. + private ListChannelGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChannelGroupsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChannelGroupsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.class, + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The property for which to list ChannelGroups.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The property for which to list ChannelGroups.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListChannelGroups` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListChannelGroups`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListChannelGroups` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListChannelGroups`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListChannelGroupsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest other = + (com.google.analytics.admin.v1alpha.ListChannelGroupsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListChannelGroups RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListChannelGroupsRequest) + com.google.analytics.admin.v1alpha.ListChannelGroupsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.class, + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest build() { + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListChannelGroupsRequest result = + new com.google.analytics.admin.v1alpha.ListChannelGroupsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListChannelGroupsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListChannelGroupsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The property for which to list ChannelGroups.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The property for which to list ChannelGroups.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The property for which to list ChannelGroups.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to list ChannelGroups.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to list ChannelGroups.
+     * Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListChannelGroups` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListChannelGroups`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListChannelGroups` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListChannelGroups`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListChannelGroups` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListChannelGroups`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListChannelGroups` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListChannelGroups`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListChannelGroups` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListChannelGroups`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListChannelGroupsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListChannelGroupsRequest) + private static final com.google.analytics.admin.v1alpha.ListChannelGroupsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListChannelGroupsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChannelGroupsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequestOrBuilder.java new file mode 100644 index 000000000000..e92c6092c7ae --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListChannelGroupsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListChannelGroupsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property for which to list ChannelGroups.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The property for which to list ChannelGroups.
+   * Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListChannelGroups` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListChannelGroups`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListChannelGroups` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListChannelGroups`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponse.java new file mode 100644 index 000000000000..f637fd22e88b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponse.java @@ -0,0 +1,1165 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListChannelGroups RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsResponse} + */ +public final class ListChannelGroupsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListChannelGroupsResponse) + ListChannelGroupsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListChannelGroupsResponse.newBuilder() to construct. + private ListChannelGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListChannelGroupsResponse() { + channelGroups_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListChannelGroupsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.class, + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.Builder.class); + } + + public static final int CHANNEL_GROUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List channelGroups_; + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + @java.lang.Override + public java.util.List getChannelGroupsList() { + return channelGroups_; + } + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + @java.lang.Override + public java.util.List + getChannelGroupsOrBuilderList() { + return channelGroups_; + } + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + @java.lang.Override + public int getChannelGroupsCount() { + return channelGroups_.size(); + } + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroups(int index) { + return channelGroups_.get(index); + } + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupsOrBuilder( + int index) { + return channelGroups_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < channelGroups_.size(); i++) { + output.writeMessage(1, channelGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < channelGroups_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, channelGroups_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListChannelGroupsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse other = + (com.google.analytics.admin.v1alpha.ListChannelGroupsResponse) obj; + + if (!getChannelGroupsList().equals(other.getChannelGroupsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getChannelGroupsCount() > 0) { + hash = (37 * hash) + CHANNEL_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getChannelGroupsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListChannelGroups RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListChannelGroupsResponse) + com.google.analytics.admin.v1alpha.ListChannelGroupsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.class, + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (channelGroupsBuilder_ == null) { + channelGroups_ = java.util.Collections.emptyList(); + } else { + channelGroups_ = null; + channelGroupsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse build() { + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result = + new com.google.analytics.admin.v1alpha.ListChannelGroupsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result) { + if (channelGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + channelGroups_ = java.util.Collections.unmodifiableList(channelGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.channelGroups_ = channelGroups_; + } else { + result.channelGroups_ = channelGroupsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListChannelGroupsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListChannelGroupsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListChannelGroupsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.getDefaultInstance()) + return this; + if (channelGroupsBuilder_ == null) { + if (!other.channelGroups_.isEmpty()) { + if (channelGroups_.isEmpty()) { + channelGroups_ = other.channelGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChannelGroupsIsMutable(); + channelGroups_.addAll(other.channelGroups_); + } + onChanged(); + } + } else { + if (!other.channelGroups_.isEmpty()) { + if (channelGroupsBuilder_.isEmpty()) { + channelGroupsBuilder_.dispose(); + channelGroupsBuilder_ = null; + channelGroups_ = other.channelGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + channelGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChannelGroupsFieldBuilder() + : null; + } else { + channelGroupsBuilder_.addAllMessages(other.channelGroups_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ChannelGroup m = + input.readMessage( + com.google.analytics.admin.v1alpha.ChannelGroup.parser(), + extensionRegistry); + if (channelGroupsBuilder_ == null) { + ensureChannelGroupsIsMutable(); + channelGroups_.add(m); + } else { + channelGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List channelGroups_ = + java.util.Collections.emptyList(); + + private void ensureChannelGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + channelGroups_ = + new java.util.ArrayList( + channelGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + channelGroupsBuilder_; + + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public java.util.List getChannelGroupsList() { + if (channelGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(channelGroups_); + } else { + return channelGroupsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public int getChannelGroupsCount() { + if (channelGroupsBuilder_ == null) { + return channelGroups_.size(); + } else { + return channelGroupsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroups(int index) { + if (channelGroupsBuilder_ == null) { + return channelGroups_.get(index); + } else { + return channelGroupsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder setChannelGroups( + int index, com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelGroupsIsMutable(); + channelGroups_.set(index, value); + onChanged(); + } else { + channelGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder setChannelGroups( + int index, com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { + if (channelGroupsBuilder_ == null) { + ensureChannelGroupsIsMutable(); + channelGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + channelGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder addChannelGroups(com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelGroupsIsMutable(); + channelGroups_.add(value); + onChanged(); + } else { + channelGroupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder addChannelGroups( + int index, com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChannelGroupsIsMutable(); + channelGroups_.add(index, value); + onChanged(); + } else { + channelGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder addChannelGroups( + com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { + if (channelGroupsBuilder_ == null) { + ensureChannelGroupsIsMutable(); + channelGroups_.add(builderForValue.build()); + onChanged(); + } else { + channelGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder addChannelGroups( + int index, com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { + if (channelGroupsBuilder_ == null) { + ensureChannelGroupsIsMutable(); + channelGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + channelGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder addAllChannelGroups( + java.lang.Iterable values) { + if (channelGroupsBuilder_ == null) { + ensureChannelGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, channelGroups_); + onChanged(); + } else { + channelGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder clearChannelGroups() { + if (channelGroupsBuilder_ == null) { + channelGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + channelGroupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public Builder removeChannelGroups(int index) { + if (channelGroupsBuilder_ == null) { + ensureChannelGroupsIsMutable(); + channelGroups_.remove(index); + onChanged(); + } else { + channelGroupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupsBuilder( + int index) { + return getChannelGroupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupsOrBuilder( + int index) { + if (channelGroupsBuilder_ == null) { + return channelGroups_.get(index); + } else { + return channelGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public java.util.List + getChannelGroupsOrBuilderList() { + if (channelGroupsBuilder_ != null) { + return channelGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(channelGroups_); + } + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public com.google.analytics.admin.v1alpha.ChannelGroup.Builder addChannelGroupsBuilder() { + return getChannelGroupsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()); + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public com.google.analytics.admin.v1alpha.ChannelGroup.Builder addChannelGroupsBuilder( + int index) { + return getChannelGroupsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()); + } + /** + * + * + *
+     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + public java.util.List + getChannelGroupsBuilderList() { + return getChannelGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + getChannelGroupsFieldBuilder() { + if (channelGroupsBuilder_ == null) { + channelGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( + channelGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + channelGroups_ = null; + } + return channelGroupsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListChannelGroupsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListChannelGroupsResponse) + private static final com.google.analytics.admin.v1alpha.ListChannelGroupsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListChannelGroupsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListChannelGroupsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponseOrBuilder.java new file mode 100644 index 000000000000..b888c25882ec --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponseOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListChannelGroupsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListChannelGroupsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + java.util.List getChannelGroupsList(); + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroups(int index); + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + int getChannelGroupsCount(); + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + java.util.List + getChannelGroupsOrBuilderList(); + /** + * + * + *
+   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; + */ + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequest.java new file mode 100644 index 000000000000..0021fb637cf4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListConnectedSiteTags RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest} + */ +public final class ListConnectedSiteTagsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) + ListConnectedSiteTagsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConnectedSiteTagsRequest.newBuilder() to construct. + private ListConnectedSiteTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConnectedSiteTagsRequest() { + property_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConnectedSiteTagsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.class, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * The Universal Analytics property to fetch connected site tags for.
+   * This does not work on GA4 properties. A maximum of 20 connected site tags
+   * will be returned.
+   * Example Format: `properties/1234`
+   * 
+ * + * string property = 1; + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * The Universal Analytics property to fetch connected site tags for.
+   * This does not work on GA4 properties. A maximum of 20 connected site tags
+   * will be returned.
+   * Example Format: `properties/1234`
+   * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + 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.admin.v1alpha.ListConnectedSiteTagsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest other = + (com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) obj; + + if (!getProperty().equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListConnectedSiteTags RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.class, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest build() { + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest result = + new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.getDefaultInstance()) + return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * The Universal Analytics property to fetch connected site tags for.
+     * This does not work on GA4 properties. A maximum of 20 connected site tags
+     * will be returned.
+     * Example Format: `properties/1234`
+     * 
+ * + * string property = 1; + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Universal Analytics property to fetch connected site tags for.
+     * This does not work on GA4 properties. A maximum of 20 connected site tags
+     * will be returned.
+     * Example Format: `properties/1234`
+     * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Universal Analytics property to fetch connected site tags for.
+     * This does not work on GA4 properties. A maximum of 20 connected site tags
+     * will be returned.
+     * Example Format: `properties/1234`
+     * 
+ * + * string property = 1; + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The Universal Analytics property to fetch connected site tags for.
+     * This does not work on GA4 properties. A maximum of 20 connected site tags
+     * will be returned.
+     * Example Format: `properties/1234`
+     * 
+ * + * string property = 1; + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Universal Analytics property to fetch connected site tags for.
+     * This does not work on GA4 properties. A maximum of 20 connected site tags
+     * will be returned.
+     * Example Format: `properties/1234`
+     * 
+ * + * string property = 1; + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + 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.admin.v1alpha.ListConnectedSiteTagsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) + private static final com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectedSiteTagsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequestOrBuilder.java new file mode 100644 index 000000000000..ff0c88bf4166 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListConnectedSiteTagsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Universal Analytics property to fetch connected site tags for.
+   * This does not work on GA4 properties. A maximum of 20 connected site tags
+   * will be returned.
+   * Example Format: `properties/1234`
+   * 
+ * + * string property = 1; + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * The Universal Analytics property to fetch connected site tags for.
+   * This does not work on GA4 properties. A maximum of 20 connected site tags
+   * will be returned.
+   * Example Format: `properties/1234`
+   * 
+ * + * string property = 1; + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponse.java new file mode 100644 index 000000000000..c57c437b58e0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponse.java @@ -0,0 +1,1002 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListConnectedSiteTags RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse} + */ +public final class ListConnectedSiteTagsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) + ListConnectedSiteTagsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConnectedSiteTagsResponse.newBuilder() to construct. + private ListConnectedSiteTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConnectedSiteTagsResponse() { + connectedSiteTags_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConnectedSiteTagsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.class, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.Builder.class); + } + + public static final int CONNECTED_SITE_TAGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List connectedSiteTags_; + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + @java.lang.Override + public java.util.List + getConnectedSiteTagsList() { + return connectedSiteTags_; + } + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + @java.lang.Override + public java.util.List + getConnectedSiteTagsOrBuilderList() { + return connectedSiteTags_; + } + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + @java.lang.Override + public int getConnectedSiteTagsCount() { + return connectedSiteTags_.size(); + } + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTags(int index) { + return connectedSiteTags_.get(index); + } + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagsOrBuilder( + int index) { + return connectedSiteTags_.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 < connectedSiteTags_.size(); i++) { + output.writeMessage(1, connectedSiteTags_.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 < connectedSiteTags_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, connectedSiteTags_.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.admin.v1alpha.ListConnectedSiteTagsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse other = + (com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) obj; + + if (!getConnectedSiteTagsList().equals(other.getConnectedSiteTagsList())) 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 (getConnectedSiteTagsCount() > 0) { + hash = (37 * hash) + CONNECTED_SITE_TAGS_FIELD_NUMBER; + hash = (53 * hash) + getConnectedSiteTagsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListConnectedSiteTags RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.class, + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (connectedSiteTagsBuilder_ == null) { + connectedSiteTags_ = java.util.Collections.emptyList(); + } else { + connectedSiteTags_ = null; + connectedSiteTagsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse build() { + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result = + new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result) { + if (connectedSiteTagsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + connectedSiteTags_ = java.util.Collections.unmodifiableList(connectedSiteTags_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.connectedSiteTags_ = connectedSiteTags_; + } else { + result.connectedSiteTags_ = connectedSiteTagsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.getDefaultInstance()) + return this; + if (connectedSiteTagsBuilder_ == null) { + if (!other.connectedSiteTags_.isEmpty()) { + if (connectedSiteTags_.isEmpty()) { + connectedSiteTags_ = other.connectedSiteTags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.addAll(other.connectedSiteTags_); + } + onChanged(); + } + } else { + if (!other.connectedSiteTags_.isEmpty()) { + if (connectedSiteTagsBuilder_.isEmpty()) { + connectedSiteTagsBuilder_.dispose(); + connectedSiteTagsBuilder_ = null; + connectedSiteTags_ = other.connectedSiteTags_; + bitField0_ = (bitField0_ & ~0x00000001); + connectedSiteTagsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConnectedSiteTagsFieldBuilder() + : null; + } else { + connectedSiteTagsBuilder_.addAllMessages(other.connectedSiteTags_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ConnectedSiteTag m = + input.readMessage( + com.google.analytics.admin.v1alpha.ConnectedSiteTag.parser(), + extensionRegistry); + if (connectedSiteTagsBuilder_ == null) { + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.add(m); + } else { + connectedSiteTagsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List connectedSiteTags_ = + java.util.Collections.emptyList(); + + private void ensureConnectedSiteTagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + connectedSiteTags_ = + new java.util.ArrayList( + connectedSiteTags_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConnectedSiteTag, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> + connectedSiteTagsBuilder_; + + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public java.util.List + getConnectedSiteTagsList() { + if (connectedSiteTagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectedSiteTags_); + } else { + return connectedSiteTagsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public int getConnectedSiteTagsCount() { + if (connectedSiteTagsBuilder_ == null) { + return connectedSiteTags_.size(); + } else { + return connectedSiteTagsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTags(int index) { + if (connectedSiteTagsBuilder_ == null) { + return connectedSiteTags_.get(index); + } else { + return connectedSiteTagsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder setConnectedSiteTags( + int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { + if (connectedSiteTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.set(index, value); + onChanged(); + } else { + connectedSiteTagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder setConnectedSiteTags( + int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { + if (connectedSiteTagsBuilder_ == null) { + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.set(index, builderForValue.build()); + onChanged(); + } else { + connectedSiteTagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder addConnectedSiteTags(com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { + if (connectedSiteTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.add(value); + onChanged(); + } else { + connectedSiteTagsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder addConnectedSiteTags( + int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { + if (connectedSiteTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.add(index, value); + onChanged(); + } else { + connectedSiteTagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder addConnectedSiteTags( + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { + if (connectedSiteTagsBuilder_ == null) { + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.add(builderForValue.build()); + onChanged(); + } else { + connectedSiteTagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder addConnectedSiteTags( + int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { + if (connectedSiteTagsBuilder_ == null) { + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.add(index, builderForValue.build()); + onChanged(); + } else { + connectedSiteTagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder addAllConnectedSiteTags( + java.lang.Iterable values) { + if (connectedSiteTagsBuilder_ == null) { + ensureConnectedSiteTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connectedSiteTags_); + onChanged(); + } else { + connectedSiteTagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder clearConnectedSiteTags() { + if (connectedSiteTagsBuilder_ == null) { + connectedSiteTags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + connectedSiteTagsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public Builder removeConnectedSiteTags(int index) { + if (connectedSiteTagsBuilder_ == null) { + ensureConnectedSiteTagsIsMutable(); + connectedSiteTags_.remove(index); + onChanged(); + } else { + connectedSiteTagsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder getConnectedSiteTagsBuilder( + int index) { + return getConnectedSiteTagsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder + getConnectedSiteTagsOrBuilder(int index) { + if (connectedSiteTagsBuilder_ == null) { + return connectedSiteTags_.get(index); + } else { + return connectedSiteTagsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public java.util.List + getConnectedSiteTagsOrBuilderList() { + if (connectedSiteTagsBuilder_ != null) { + return connectedSiteTagsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectedSiteTags_); + } + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder + addConnectedSiteTagsBuilder() { + return getConnectedSiteTagsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()); + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder addConnectedSiteTagsBuilder( + int index) { + return getConnectedSiteTagsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()); + } + /** + * + * + *
+     * The site tags for the Universal Analytics property. A maximum of 20
+     * connected site tags will be returned.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + * + */ + public java.util.List + getConnectedSiteTagsBuilderList() { + return getConnectedSiteTagsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConnectedSiteTag, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> + getConnectedSiteTagsFieldBuilder() { + if (connectedSiteTagsBuilder_ == null) { + connectedSiteTagsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConnectedSiteTag, + com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder>( + connectedSiteTags_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + connectedSiteTags_ = null; + } + return connectedSiteTagsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) + private static final com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectedSiteTagsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponseOrBuilder.java new file mode 100644 index 000000000000..c071e2054419 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponseOrBuilder.java @@ -0,0 +1,83 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListConnectedSiteTagsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + java.util.List getConnectedSiteTagsList(); + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTags(int index); + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + int getConnectedSiteTagsCount(); + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + java.util.List + getConnectedSiteTagsOrBuilderList(); + /** + * + * + *
+   * The site tags for the Universal Analytics property. A maximum of 20
+   * connected site tags will be returned.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; + */ + com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java new file mode 100644 index 000000000000..3b141b991955 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java @@ -0,0 +1,956 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListConversionEvents RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} + */ +public final class ListConversionEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) + ListConversionEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsRequest.newBuilder() to construct. + private ListConversionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListConversionEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConversionEventsRequest other = + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListConversionEvents RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) + com.google.analytics.admin.v1alpha.ListConversionEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest build() { + com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = + new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListConversionEventsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListConversionEventsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConversionEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsRequest) + private static final com.google.analytics.admin.v1alpha.ListConversionEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java new file mode 100644 index 000000000000..31945d3670a2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListConversionEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java new file mode 100644 index 000000000000..0fd80deb73c0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java @@ -0,0 +1,1148 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListConversionEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} + */ +public final class ListConversionEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) + ListConversionEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsResponse.newBuilder() to construct. + private ListConversionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsResponse() { + conversionEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); + } + + public static final int CONVERSION_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List conversionEvents_; + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsOrBuilderList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public int getConversionEventsCount() { + return conversionEvents_.size(); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { + return conversionEvents_.get(index); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + return conversionEvents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conversionEvents_.size(); i++) { + output.writeMessage(1, conversionEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conversionEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversionEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListConversionEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConversionEventsResponse other = + (com.google.analytics.admin.v1alpha.ListConversionEventsResponse) obj; + + if (!getConversionEventsList().equals(other.getConversionEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getConversionEventsCount() > 0) { + hash = (37 * hash) + CONVERSION_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getConversionEventsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListConversionEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) + com.google.analytics.admin.v1alpha.ListConversionEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + } else { + conversionEvents_ = null; + conversionEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse build() { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = + new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result) { + if (conversionEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversionEvents_ = conversionEvents_; + } else { + result.conversionEvents_ = conversionEventsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListConversionEventsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance()) + return this; + if (conversionEventsBuilder_ == null) { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEvents_.isEmpty()) { + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversionEventsIsMutable(); + conversionEvents_.addAll(other.conversionEvents_); + } + onChanged(); + } + } else { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEventsBuilder_.isEmpty()) { + conversionEventsBuilder_.dispose(); + conversionEventsBuilder_ = null; + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + conversionEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConversionEventsFieldBuilder() + : null; + } else { + conversionEventsBuilder_.addAllMessages(other.conversionEvents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ConversionEvent m = + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionEvent.parser(), + extensionRegistry); + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(m); + } else { + conversionEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List conversionEvents_ = + java.util.Collections.emptyList(); + + private void ensureConversionEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = + new java.util.ArrayList( + conversionEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventsBuilder_; + + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsList() { + if (conversionEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversionEvents_); + } else { + return conversionEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public int getConversionEventsCount() { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.size(); + } else { + return conversionEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, value); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addAllConversionEvents( + java.lang.Iterable values) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionEvents_); + onChanged(); + } else { + conversionEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder clearConversionEvents() { + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversionEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder removeConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.remove(index); + onChanged(); + } else { + conversionEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsOrBuilderList() { + if (conversionEventsBuilder_ != null) { + return conversionEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversionEvents_); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder() { + return getConversionEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsBuilderList() { + return getConversionEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventsFieldBuilder() { + if (conversionEventsBuilder_ == null) { + conversionEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + conversionEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conversionEvents_ = null; + } + return conversionEventsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConversionEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsResponse) + private static final com.google.analytics.admin.v1alpha.ListConversionEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java new file mode 100644 index 000000000000..5b9e19cddabf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListConversionEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + java.util.List getConversionEventsList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + int getConversionEventsCount(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + java.util.List + getConversionEventsOrBuilderList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java new file mode 100644 index 000000000000..5dbb21efab05 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java @@ -0,0 +1,956 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} + */ +public final class ListCustomDimensionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + ListCustomDimensionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsRequest.newBuilder() to construct. + private ListCustomDimensionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListCustomDimensionsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest build() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = + new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java new file mode 100644 index 000000000000..62cc6d34b718 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomDimensionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java new file mode 100644 index 000000000000..7e8356676b4e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java @@ -0,0 +1,1148 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} + */ +public final class ListCustomDimensionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + ListCustomDimensionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsResponse.newBuilder() to construct. + private ListCustomDimensionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsResponse() { + customDimensions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); + } + + public static final int CUSTOM_DIMENSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customDimensions_; + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsOrBuilderList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public int getCustomDimensionsCount() { + return customDimensions_.size(); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { + return customDimensions_.get(index); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + return customDimensions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customDimensions_.size(); i++) { + output.writeMessage(1, customDimensions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customDimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customDimensions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListCustomDimensionsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) obj; + + if (!getCustomDimensionsList().equals(other.getCustomDimensionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getCustomDimensionsCount() > 0) { + hash = (37 * hash) + CUSTOM_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimensionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + } else { + customDimensions_ = null; + customDimensionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse build() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = + new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result) { + if (customDimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customDimensions_ = customDimensions_; + } else { + result.customDimensions_ = customDimensionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance()) + return this; + if (customDimensionsBuilder_ == null) { + if (!other.customDimensions_.isEmpty()) { + if (customDimensions_.isEmpty()) { + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomDimensionsIsMutable(); + customDimensions_.addAll(other.customDimensions_); + } + onChanged(); + } + } else { + if (!other.customDimensions_.isEmpty()) { + if (customDimensionsBuilder_.isEmpty()) { + customDimensionsBuilder_.dispose(); + customDimensionsBuilder_ = null; + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + customDimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomDimensionsFieldBuilder() + : null; + } else { + customDimensionsBuilder_.addAllMessages(other.customDimensions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.CustomDimension m = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry); + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(m); + } else { + customDimensionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List customDimensions_ = + java.util.Collections.emptyList(); + + private void ensureCustomDimensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = + new java.util.ArrayList( + customDimensions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionsBuilder_; + + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsList() { + if (customDimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customDimensions_); + } else { + return customDimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public int getCustomDimensionsCount() { + if (customDimensionsBuilder_ == null) { + return customDimensions_.size(); + } else { + return customDimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, value); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addAllCustomDimensions( + java.lang.Iterable values) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customDimensions_); + onChanged(); + } else { + customDimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder clearCustomDimensions() { + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customDimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder removeCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.remove(index); + onChanged(); + } else { + customDimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsOrBuilderList() { + if (customDimensionsBuilder_ != null) { + return customDimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customDimensions_); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder() { + return getCustomDimensionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsBuilderList() { + return getCustomDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionsFieldBuilder() { + if (customDimensionsBuilder_ == null) { + customDimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + customDimensions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customDimensions_ = null; + } + return customDimensionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java new file mode 100644 index 000000000000..ab2e4a1b733b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomDimensionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + java.util.List getCustomDimensionsList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + int getCustomDimensionsCount(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + java.util.List + getCustomDimensionsOrBuilderList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java new file mode 100644 index 000000000000..7736a26acf9d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java @@ -0,0 +1,950 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} + */ +public final class ListCustomMetricsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + ListCustomMetricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsRequest.newBuilder() to construct. + private ListCustomMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListCustomMetricsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other = + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + com.google.analytics.admin.v1alpha.ListCustomMetricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest build() { + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = + new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + private static final com.google.analytics.admin.v1alpha.ListCustomMetricsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java new file mode 100644 index 000000000000..f6a81c9d2a76 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomMetricsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java new file mode 100644 index 000000000000..81bb7e94707a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java @@ -0,0 +1,1142 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} + */ +public final class ListCustomMetricsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + ListCustomMetricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsResponse.newBuilder() to construct. + private ListCustomMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsResponse() { + customMetrics_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); + } + + public static final int CUSTOM_METRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customMetrics_; + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List getCustomMetricsList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List + getCustomMetricsOrBuilderList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public int getCustomMetricsCount() { + return customMetrics_.size(); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { + return customMetrics_.get(index); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + return customMetrics_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customMetrics_.size(); i++) { + output.writeMessage(1, customMetrics_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customMetrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customMetrics_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListCustomMetricsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other = + (com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) obj; + + if (!getCustomMetricsList().equals(other.getCustomMetricsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getCustomMetricsCount() > 0) { + hash = (37 * hash) + CUSTOM_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetricsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + com.google.analytics.admin.v1alpha.ListCustomMetricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + } else { + customMetrics_ = null; + customMetricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse build() { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = + new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result) { + if (customMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customMetrics_ = customMetrics_; + } else { + result.customMetrics_ = customMetricsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance()) + return this; + if (customMetricsBuilder_ == null) { + if (!other.customMetrics_.isEmpty()) { + if (customMetrics_.isEmpty()) { + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomMetricsIsMutable(); + customMetrics_.addAll(other.customMetrics_); + } + onChanged(); + } + } else { + if (!other.customMetrics_.isEmpty()) { + if (customMetricsBuilder_.isEmpty()) { + customMetricsBuilder_.dispose(); + customMetricsBuilder_ = null; + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + customMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomMetricsFieldBuilder() + : null; + } else { + customMetricsBuilder_.addAllMessages(other.customMetrics_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.CustomMetric m = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), + extensionRegistry); + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(m); + } else { + customMetricsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List customMetrics_ = + java.util.Collections.emptyList(); + + private void ensureCustomMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = + new java.util.ArrayList( + customMetrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricsBuilder_; + + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List getCustomMetricsList() { + if (customMetricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customMetrics_); + } else { + return customMetricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public int getCustomMetricsCount() { + if (customMetricsBuilder_ == null) { + return customMetrics_.size(); + } else { + return customMetricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, value); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addAllCustomMetrics( + java.lang.Iterable values) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customMetrics_); + onChanged(); + } else { + customMetricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder clearCustomMetrics() { + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder removeCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.remove(index); + onChanged(); + } else { + customMetricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsOrBuilderList() { + if (customMetricsBuilder_ != null) { + return customMetricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customMetrics_); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder() { + return getCustomMetricsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsBuilderList() { + return getCustomMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricsFieldBuilder() { + if (customMetricsBuilder_ == null) { + customMetricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + customMetrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customMetrics_ = null; + } + return customMetricsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + private static final com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java new file mode 100644 index 000000000000..808801d5f11d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomMetricsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + java.util.List getCustomMetricsList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + int getCustomMetricsCount(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + java.util.List + getCustomMetricsOrBuilderList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java new file mode 100644 index 000000000000..6001b9afab84 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java @@ -0,0 +1,950 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsRequest} + */ +public final class ListDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsRequest) + ListDataStreamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataStreamsRequest.newBuilder() to construct. + private ListDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataStreamsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataStreamsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListDataStreamsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDataStreamsRequest other = + (com.google.analytics.admin.v1alpha.ListDataStreamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDataStreamsRequest) + com.google.analytics.admin.v1alpha.ListDataStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, + com.google.analytics.admin.v1alpha.ListDataStreamsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListDataStreamsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsRequest build() { + com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = + new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListDataStreamsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListDataStreamsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDataStreamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsRequest) + private static final com.google.analytics.admin.v1alpha.ListDataStreamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java new file mode 100644 index 000000000000..e1685ae3834c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDataStreamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java new file mode 100644 index 000000000000..f6fce810df44 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java @@ -0,0 +1,1128 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsResponse} + */ +public final class ListDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsResponse) + ListDataStreamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataStreamsResponse.newBuilder() to construct. + private ListDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataStreamsResponse() { + dataStreams_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataStreamsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.Builder.class); + } + + public static final int DATA_STREAMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataStreams_; + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public java.util.List getDataStreamsList() { + return dataStreams_; + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public java.util.List + getDataStreamsOrBuilderList() { + return dataStreams_; + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public int getDataStreamsCount() { + return dataStreams_.size(); + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index) { + return dataStreams_.get(index); + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder(int index) { + return dataStreams_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataStreams_.size(); i++) { + output.writeMessage(1, dataStreams_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataStreams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataStreams_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += 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.admin.v1alpha.ListDataStreamsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDataStreamsResponse other = + (com.google.analytics.admin.v1alpha.ListDataStreamsResponse) obj; + + if (!getDataStreamsList().equals(other.getDataStreamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!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 (getDataStreamsCount() > 0) { + hash = (37 * hash) + DATA_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getDataStreamsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDataStreamsResponse) + com.google.analytics.admin.v1alpha.ListDataStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, + com.google.analytics.admin.v1alpha.ListDataStreamsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListDataStreamsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataStreamsBuilder_ == null) { + dataStreams_ = java.util.Collections.emptyList(); + } else { + dataStreams_ = null; + dataStreamsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse build() { + com.google.analytics.admin.v1alpha.ListDataStreamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListDataStreamsResponse result = + new com.google.analytics.admin.v1alpha.ListDataStreamsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListDataStreamsResponse result) { + if (dataStreamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataStreams_ = dataStreams_; + } else { + result.dataStreams_ = dataStreamsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListDataStreamsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListDataStreamsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsResponse other) { + if (other == com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance()) + return this; + if (dataStreamsBuilder_ == null) { + if (!other.dataStreams_.isEmpty()) { + if (dataStreams_.isEmpty()) { + dataStreams_ = other.dataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataStreamsIsMutable(); + dataStreams_.addAll(other.dataStreams_); + } + onChanged(); + } + } else { + if (!other.dataStreams_.isEmpty()) { + if (dataStreamsBuilder_.isEmpty()) { + dataStreamsBuilder_.dispose(); + dataStreamsBuilder_ = null; + dataStreams_ = other.dataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + dataStreamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataStreamsFieldBuilder() + : null; + } else { + dataStreamsBuilder_.addAllMessages(other.dataStreams_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.DataStream m = + input.readMessage( + com.google.analytics.admin.v1alpha.DataStream.parser(), extensionRegistry); + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(m); + } else { + dataStreamsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dataStreams_ = + java.util.Collections.emptyList(); + + private void ensureDataStreamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataStreams_ = + new java.util.ArrayList(dataStreams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + dataStreamsBuilder_; + + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public java.util.List getDataStreamsList() { + if (dataStreamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStreams_); + } else { + return dataStreamsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public int getDataStreamsCount() { + if (dataStreamsBuilder_ == null) { + return dataStreams_.size(); + } else { + return dataStreamsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index) { + if (dataStreamsBuilder_ == null) { + return dataStreams_.get(index); + } else { + return dataStreamsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder setDataStreams(int index, com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.set(index, value); + onChanged(); + } else { + dataStreamsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder setDataStreams( + int index, com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.add(value); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams(int index, com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.add(index, value); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addDataStreams( + int index, com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder addAllDataStreams( + java.lang.Iterable values) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStreams_); + onChanged(); + } else { + dataStreamsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder clearDataStreams() { + if (dataStreamsBuilder_ == null) { + dataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataStreamsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public Builder removeDataStreams(int index) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.remove(index); + onChanged(); + } else { + dataStreamsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamsBuilder(int index) { + return getDataStreamsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder( + int index) { + if (dataStreamsBuilder_ == null) { + return dataStreams_.get(index); + } else { + return dataStreamsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public java.util.List + getDataStreamsOrBuilderList() { + if (dataStreamsBuilder_ != null) { + return dataStreamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStreams_); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder addDataStreamsBuilder() { + return getDataStreamsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder addDataStreamsBuilder(int index) { + return getDataStreamsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + public java.util.List + getDataStreamsBuilderList() { + return getDataStreamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + getDataStreamsFieldBuilder() { + if (dataStreamsBuilder_ == null) { + dataStreamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( + dataStreams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataStreams_ = null; + } + return dataStreamsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDataStreamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsResponse) + private static final com.google.analytics.admin.v1alpha.ListDataStreamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java new file mode 100644 index 000000000000..485b906e656a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDataStreamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + java.util.List getDataStreamsList(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + int getDataStreamsCount(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + java.util.List + getDataStreamsOrBuilderList(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java new file mode 100644 index 000000000000..da1091fa71e7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java @@ -0,0 +1,1008 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} + */ +public final class ListDisplayVideo360AdvertiserLinkProposalsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinkProposalsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinkProposalsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinkProposalsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + private static final com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + ListDisplayVideo360AdvertiserLinkProposalsRequest>() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinkProposalsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java new file mode 100644 index 000000000000..8cabc0fc0a4e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java @@ -0,0 +1,106 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java new file mode 100644 index 000000000000..76dc5a50a29a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java @@ -0,0 +1,1277 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} + */ +public final class ListDisplayVideo360AdvertiserLinkProposalsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinkProposalsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinkProposalsResponse() { + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinkProposalsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .Builder.class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSALS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + displayVideo360AdvertiserLinkProposals_; + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public java.util.List + getDisplayVideo360AdvertiserLinkProposalsList() { + return displayVideo360AdvertiserLinkProposals_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsOrBuilderList() { + return displayVideo360AdvertiserLinkProposals_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public int getDisplayVideo360AdvertiserLinkProposalsCount() { + return displayVideo360AdvertiserLinkProposals_.size(); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposals(int index) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalsOrBuilder(int index) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < displayVideo360AdvertiserLinkProposals_.size(); i++) { + output.writeMessage(1, displayVideo360AdvertiserLinkProposals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < displayVideo360AdvertiserLinkProposals_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, displayVideo360AdvertiserLinkProposals_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) obj; + + if (!getDisplayVideo360AdvertiserLinkProposalsList() + .equals(other.getDisplayVideo360AdvertiserLinkProposalsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDisplayVideo360AdvertiserLinkProposalsCount() > 0) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSALS_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposalsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + } else { + displayVideo360AdvertiserLinkProposals_ = null; + displayVideo360AdvertiserLinkProposalsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + result) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinkProposals_ = + java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.displayVideo360AdvertiserLinkProposals_ = displayVideo360AdvertiserLinkProposals_; + } else { + result.displayVideo360AdvertiserLinkProposals_ = + displayVideo360AdvertiserLinkProposalsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .getDefaultInstance()) return this; + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (!other.displayVideo360AdvertiserLinkProposals_.isEmpty()) { + if (displayVideo360AdvertiserLinkProposals_.isEmpty()) { + displayVideo360AdvertiserLinkProposals_ = other.displayVideo360AdvertiserLinkProposals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.addAll( + other.displayVideo360AdvertiserLinkProposals_); + } + onChanged(); + } + } else { + if (!other.displayVideo360AdvertiserLinkProposals_.isEmpty()) { + if (displayVideo360AdvertiserLinkProposalsBuilder_.isEmpty()) { + displayVideo360AdvertiserLinkProposalsBuilder_.dispose(); + displayVideo360AdvertiserLinkProposalsBuilder_ = null; + displayVideo360AdvertiserLinkProposals_ = other.displayVideo360AdvertiserLinkProposals_; + bitField0_ = (bitField0_ & ~0x00000001); + displayVideo360AdvertiserLinkProposalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() + : null; + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addAllMessages( + other.displayVideo360AdvertiserLinkProposals_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal m = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .parser(), + extensionRegistry); + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(m); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + + private void ensureDisplayVideo360AdvertiserLinkProposalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinkProposals_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + displayVideo360AdvertiserLinkProposals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + displayVideo360AdvertiserLinkProposalsBuilder_; + + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public java.util.List + getDisplayVideo360AdvertiserLinkProposalsList() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public int getDisplayVideo360AdvertiserLinkProposalsCount() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return displayVideo360AdvertiserLinkProposals_.size(); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposals(int index) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposals( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.set(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposals( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.set(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(value); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addAllDisplayVideo360AdvertiserLinkProposals( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + values) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, displayVideo360AdvertiserLinkProposals_); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLinkProposals() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder removeDisplayVideo360AdvertiserLinkProposals(int index) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.remove(index); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + getDisplayVideo360AdvertiserLinkProposalsBuilder(int index) { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalsOrBuilder(int index) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsOrBuilderList() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ != null) { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + addDisplayVideo360AdvertiserLinkProposalsBuilder() { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + addDisplayVideo360AdvertiserLinkProposalsBuilder(int index) { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder> + getDisplayVideo360AdvertiserLinkProposalsBuilderList() { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + displayVideo360AdvertiserLinkProposalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder>( + displayVideo360AdvertiserLinkProposals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + displayVideo360AdvertiserLinkProposals_ = null; + } + return displayVideo360AdvertiserLinkProposalsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + private static final com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListDisplayVideo360AdvertiserLinkProposalsResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListDisplayVideo360AdvertiserLinkProposalsResponse>() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinkProposalsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java new file mode 100644 index 000000000000..e0ff383a52fa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + java.util.List + getDisplayVideo360AdvertiserLinkProposalsList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposals(int index); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + int getDisplayVideo360AdvertiserLinkProposalsCount(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + java.util.List< + ? extends + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsOrBuilderList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java new file mode 100644 index 000000000000..3184d6a2eced --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java @@ -0,0 +1,984 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListDisplayVideo360AdvertiserLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} + */ +public final class ListDisplayVideo360AdvertiserLinksRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + ListDisplayVideo360AdvertiserLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinksRequest.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinksRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListDisplayVideo360AdvertiserLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java new file mode 100644 index 000000000000..e1b70de2b580 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java new file mode 100644 index 000000000000..0f67f1f3f519 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java @@ -0,0 +1,1237 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListDisplayVideo360AdvertiserLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} + */ +public final class ListDisplayVideo360AdvertiserLinksResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + ListDisplayVideo360AdvertiserLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinksResponse.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinksResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinksResponse() { + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.Builder + .class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + displayVideo360AdvertiserLinks_; + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public java.util.List + getDisplayVideo360AdvertiserLinksList() { + return displayVideo360AdvertiserLinks_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksOrBuilderList() { + return displayVideo360AdvertiserLinks_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public int getDisplayVideo360AdvertiserLinksCount() { + return displayVideo360AdvertiserLinks_.size(); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLinks(int index) { + return displayVideo360AdvertiserLinks_.get(index); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinksOrBuilder(int index) { + return displayVideo360AdvertiserLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < displayVideo360AdvertiserLinks_.size(); i++) { + output.writeMessage(1, displayVideo360AdvertiserLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < displayVideo360AdvertiserLinks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, displayVideo360AdvertiserLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) obj; + + if (!getDisplayVideo360AdvertiserLinksList() + .equals(other.getDisplayVideo360AdvertiserLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDisplayVideo360AdvertiserLinksCount() > 0) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListDisplayVideo360AdvertiserLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (displayVideo360AdvertiserLinksBuilder_ == null) { + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + } else { + displayVideo360AdvertiserLinks_ = null; + displayVideo360AdvertiserLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinks_ = + java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinks_; + } else { + result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + .getDefaultInstance()) return this; + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (!other.displayVideo360AdvertiserLinks_.isEmpty()) { + if (displayVideo360AdvertiserLinks_.isEmpty()) { + displayVideo360AdvertiserLinks_ = other.displayVideo360AdvertiserLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.addAll(other.displayVideo360AdvertiserLinks_); + } + onChanged(); + } + } else { + if (!other.displayVideo360AdvertiserLinks_.isEmpty()) { + if (displayVideo360AdvertiserLinksBuilder_.isEmpty()) { + displayVideo360AdvertiserLinksBuilder_.dispose(); + displayVideo360AdvertiserLinksBuilder_ = null; + displayVideo360AdvertiserLinks_ = other.displayVideo360AdvertiserLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + displayVideo360AdvertiserLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisplayVideo360AdvertiserLinksFieldBuilder() + : null; + } else { + displayVideo360AdvertiserLinksBuilder_.addAllMessages( + other.displayVideo360AdvertiserLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.parser(), + extensionRegistry); + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(m); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + + private void ensureDisplayVideo360AdvertiserLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinks_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + displayVideo360AdvertiserLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinksBuilder_; + + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public java.util.List + getDisplayVideo360AdvertiserLinksList() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); + } else { + return displayVideo360AdvertiserLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public int getDisplayVideo360AdvertiserLinksCount() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return displayVideo360AdvertiserLinks_.size(); + } else { + return displayVideo360AdvertiserLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLinks(int index) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return displayVideo360AdvertiserLinks_.get(index); + } else { + return displayVideo360AdvertiserLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinks( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.set(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinks( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(value); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addAllDisplayVideo360AdvertiserLinks( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + values) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, displayVideo360AdvertiserLinks_); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLinks() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder removeDisplayVideo360AdvertiserLinks(int index) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.remove(index); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinksBuilder(int index) { + return getDisplayVideo360AdvertiserLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinksOrBuilder(int index) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return displayVideo360AdvertiserLinks_.get(index); + } else { + return displayVideo360AdvertiserLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksOrBuilderList() { + if (displayVideo360AdvertiserLinksBuilder_ != null) { + return displayVideo360AdvertiserLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + addDisplayVideo360AdvertiserLinksBuilder() { + return getDisplayVideo360AdvertiserLinksFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + addDisplayVideo360AdvertiserLinksBuilder(int index) { + return getDisplayVideo360AdvertiserLinksFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public java.util.List + getDisplayVideo360AdvertiserLinksBuilderList() { + return getDisplayVideo360AdvertiserLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksFieldBuilder() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + displayVideo360AdvertiserLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + displayVideo360AdvertiserLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + displayVideo360AdvertiserLinks_ = null; + } + return displayVideo360AdvertiserLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java new file mode 100644 index 000000000000..1cfe8e67c337 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java @@ -0,0 +1,118 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + java.util.List + getDisplayVideo360AdvertiserLinksList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLinks(int index); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + int getDisplayVideo360AdvertiserLinksCount(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + java.util.List< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksOrBuilderList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequest.java new file mode 100644 index 000000000000..0d001292f331 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequest.java @@ -0,0 +1,956 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListEventCreateRules RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesRequest} + */ +public final class ListEventCreateRulesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) + ListEventCreateRulesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEventCreateRulesRequest.newBuilder() to construct. + private ListEventCreateRulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEventCreateRulesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEventCreateRulesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.class, + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListEventCreateRules` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListEventCreateRules`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListEventCreateRules` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListEventCreateRules`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListEventCreateRulesRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest other = + (com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListEventCreateRules RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.class, + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest build() { + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest result = + new com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/123/dataStreams/456
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListEventCreateRules` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListEventCreateRules`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListEventCreateRules` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListEventCreateRules`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListEventCreateRules` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListEventCreateRules`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListEventCreateRules` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListEventCreateRules`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListEventCreateRules` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListEventCreateRules`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) + private static final com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEventCreateRulesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequestOrBuilder.java new file mode 100644 index 000000000000..ea31bcfb8fbd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListEventCreateRulesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/123/dataStreams/456
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListEventCreateRules` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListEventCreateRules`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListEventCreateRules` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListEventCreateRules`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponse.java new file mode 100644 index 000000000000..f4ba4cdfa02c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponse.java @@ -0,0 +1,1171 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListEventCreateRules RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesResponse} + */ +public final class ListEventCreateRulesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) + ListEventCreateRulesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListEventCreateRulesResponse.newBuilder() to construct. + private ListEventCreateRulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListEventCreateRulesResponse() { + eventCreateRules_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListEventCreateRulesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.class, + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.Builder.class); + } + + public static final int EVENT_CREATE_RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List eventCreateRules_; + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + @java.lang.Override + public java.util.List + getEventCreateRulesList() { + return eventCreateRules_; + } + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + @java.lang.Override + public java.util.List + getEventCreateRulesOrBuilderList() { + return eventCreateRules_; + } + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + @java.lang.Override + public int getEventCreateRulesCount() { + return eventCreateRules_.size(); + } + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRules(int index) { + return eventCreateRules_.get(index); + } + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRulesOrBuilder( + int index) { + return eventCreateRules_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < eventCreateRules_.size(); i++) { + output.writeMessage(1, eventCreateRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < eventCreateRules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, eventCreateRules_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListEventCreateRulesResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse other = + (com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse) obj; + + if (!getEventCreateRulesList().equals(other.getEventCreateRulesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getEventCreateRulesCount() > 0) { + hash = (37 * hash) + EVENT_CREATE_RULES_FIELD_NUMBER; + hash = (53 * hash) + getEventCreateRulesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListEventCreateRules RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.class, + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (eventCreateRulesBuilder_ == null) { + eventCreateRules_ = java.util.Collections.emptyList(); + } else { + eventCreateRules_ = null; + eventCreateRulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse build() { + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result = + new com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result) { + if (eventCreateRulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + eventCreateRules_ = java.util.Collections.unmodifiableList(eventCreateRules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.eventCreateRules_ = eventCreateRules_; + } else { + result.eventCreateRules_ = eventCreateRulesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.getDefaultInstance()) + return this; + if (eventCreateRulesBuilder_ == null) { + if (!other.eventCreateRules_.isEmpty()) { + if (eventCreateRules_.isEmpty()) { + eventCreateRules_ = other.eventCreateRules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventCreateRulesIsMutable(); + eventCreateRules_.addAll(other.eventCreateRules_); + } + onChanged(); + } + } else { + if (!other.eventCreateRules_.isEmpty()) { + if (eventCreateRulesBuilder_.isEmpty()) { + eventCreateRulesBuilder_.dispose(); + eventCreateRulesBuilder_ = null; + eventCreateRules_ = other.eventCreateRules_; + bitField0_ = (bitField0_ & ~0x00000001); + eventCreateRulesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventCreateRulesFieldBuilder() + : null; + } else { + eventCreateRulesBuilder_.addAllMessages(other.eventCreateRules_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.EventCreateRule m = + input.readMessage( + com.google.analytics.admin.v1alpha.EventCreateRule.parser(), + extensionRegistry); + if (eventCreateRulesBuilder_ == null) { + ensureEventCreateRulesIsMutable(); + eventCreateRules_.add(m); + } else { + eventCreateRulesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List eventCreateRules_ = + java.util.Collections.emptyList(); + + private void ensureEventCreateRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + eventCreateRules_ = + new java.util.ArrayList( + eventCreateRules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + eventCreateRulesBuilder_; + + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public java.util.List + getEventCreateRulesList() { + if (eventCreateRulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(eventCreateRules_); + } else { + return eventCreateRulesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public int getEventCreateRulesCount() { + if (eventCreateRulesBuilder_ == null) { + return eventCreateRules_.size(); + } else { + return eventCreateRulesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRules(int index) { + if (eventCreateRulesBuilder_ == null) { + return eventCreateRules_.get(index); + } else { + return eventCreateRulesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder setEventCreateRules( + int index, com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventCreateRulesIsMutable(); + eventCreateRules_.set(index, value); + onChanged(); + } else { + eventCreateRulesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder setEventCreateRules( + int index, com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { + if (eventCreateRulesBuilder_ == null) { + ensureEventCreateRulesIsMutable(); + eventCreateRules_.set(index, builderForValue.build()); + onChanged(); + } else { + eventCreateRulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder addEventCreateRules(com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventCreateRulesIsMutable(); + eventCreateRules_.add(value); + onChanged(); + } else { + eventCreateRulesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder addEventCreateRules( + int index, com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventCreateRulesIsMutable(); + eventCreateRules_.add(index, value); + onChanged(); + } else { + eventCreateRulesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder addEventCreateRules( + com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { + if (eventCreateRulesBuilder_ == null) { + ensureEventCreateRulesIsMutable(); + eventCreateRules_.add(builderForValue.build()); + onChanged(); + } else { + eventCreateRulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder addEventCreateRules( + int index, com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { + if (eventCreateRulesBuilder_ == null) { + ensureEventCreateRulesIsMutable(); + eventCreateRules_.add(index, builderForValue.build()); + onChanged(); + } else { + eventCreateRulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder addAllEventCreateRules( + java.lang.Iterable values) { + if (eventCreateRulesBuilder_ == null) { + ensureEventCreateRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, eventCreateRules_); + onChanged(); + } else { + eventCreateRulesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder clearEventCreateRules() { + if (eventCreateRulesBuilder_ == null) { + eventCreateRules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventCreateRulesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public Builder removeEventCreateRules(int index) { + if (eventCreateRulesBuilder_ == null) { + ensureEventCreateRulesIsMutable(); + eventCreateRules_.remove(index); + onChanged(); + } else { + eventCreateRulesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public com.google.analytics.admin.v1alpha.EventCreateRule.Builder getEventCreateRulesBuilder( + int index) { + return getEventCreateRulesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRulesOrBuilder( + int index) { + if (eventCreateRulesBuilder_ == null) { + return eventCreateRules_.get(index); + } else { + return eventCreateRulesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public java.util.List + getEventCreateRulesOrBuilderList() { + if (eventCreateRulesBuilder_ != null) { + return eventCreateRulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(eventCreateRules_); + } + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public com.google.analytics.admin.v1alpha.EventCreateRule.Builder addEventCreateRulesBuilder() { + return getEventCreateRulesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()); + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public com.google.analytics.admin.v1alpha.EventCreateRule.Builder addEventCreateRulesBuilder( + int index) { + return getEventCreateRulesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()); + } + /** + * + * + *
+     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + public java.util.List + getEventCreateRulesBuilderList() { + return getEventCreateRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + getEventCreateRulesFieldBuilder() { + if (eventCreateRulesBuilder_ == null) { + eventCreateRulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( + eventCreateRules_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + eventCreateRules_ = null; + } + return eventCreateRulesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) + private static final com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListEventCreateRulesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponseOrBuilder.java new file mode 100644 index 000000000000..4d8a633aa97b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListEventCreateRulesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + java.util.List getEventCreateRulesList(); + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRules(int index); + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + int getEventCreateRulesCount(); + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + java.util.List + getEventCreateRulesOrBuilderList(); + /** + * + * + *
+   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; + */ + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRulesOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java new file mode 100644 index 000000000000..6357b020db67 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java @@ -0,0 +1,956 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListExpandedDataSets RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsRequest} + */ +public final class ListExpandedDataSetsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + ListExpandedDataSetsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExpandedDataSetsRequest.newBuilder() to construct. + private ListExpandedDataSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExpandedDataSetsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExpandedDataSetsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListExpandedDataSetsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest other = + (com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListExpandedDataSets RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest build() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result = + new com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListExpandedDataSets` call. Provide
+     * this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListExpandedDataSet`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + private static final com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExpandedDataSetsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java new file mode 100644 index 000000000000..aa596b53a49b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListExpandedDataSetsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListExpandedDataSets` call. Provide
+   * this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListExpandedDataSet`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java new file mode 100644 index 000000000000..c113bf7ec838 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java @@ -0,0 +1,1171 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListExpandedDataSets RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsResponse} + */ +public final class ListExpandedDataSetsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + ListExpandedDataSetsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListExpandedDataSetsResponse.newBuilder() to construct. + private ListExpandedDataSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListExpandedDataSetsResponse() { + expandedDataSets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListExpandedDataSetsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.Builder.class); + } + + public static final int EXPANDED_DATA_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List expandedDataSets_; + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public java.util.List + getExpandedDataSetsList() { + return expandedDataSets_; + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public java.util.List + getExpandedDataSetsOrBuilderList() { + return expandedDataSets_; + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public int getExpandedDataSetsCount() { + return expandedDataSets_.size(); + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index) { + return expandedDataSets_.get(index); + } + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( + int index) { + return expandedDataSets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < expandedDataSets_.size(); i++) { + output.writeMessage(1, expandedDataSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expandedDataSets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expandedDataSets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListExpandedDataSetsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse other = + (com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) obj; + + if (!getExpandedDataSetsList().equals(other.getExpandedDataSetsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getExpandedDataSetsCount() > 0) { + hash = (37 * hash) + EXPANDED_DATA_SETS_FIELD_NUMBER; + hash = (53 * hash) + getExpandedDataSetsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListExpandedDataSets RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expandedDataSetsBuilder_ == null) { + expandedDataSets_ = java.util.Collections.emptyList(); + } else { + expandedDataSets_ = null; + expandedDataSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse build() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result = + new com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result) { + if (expandedDataSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expandedDataSets_ = java.util.Collections.unmodifiableList(expandedDataSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expandedDataSets_ = expandedDataSets_; + } else { + result.expandedDataSets_ = expandedDataSetsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.getDefaultInstance()) + return this; + if (expandedDataSetsBuilder_ == null) { + if (!other.expandedDataSets_.isEmpty()) { + if (expandedDataSets_.isEmpty()) { + expandedDataSets_ = other.expandedDataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.addAll(other.expandedDataSets_); + } + onChanged(); + } + } else { + if (!other.expandedDataSets_.isEmpty()) { + if (expandedDataSetsBuilder_.isEmpty()) { + expandedDataSetsBuilder_.dispose(); + expandedDataSetsBuilder_ = null; + expandedDataSets_ = other.expandedDataSets_; + bitField0_ = (bitField0_ & ~0x00000001); + expandedDataSetsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExpandedDataSetsFieldBuilder() + : null; + } else { + expandedDataSetsBuilder_.addAllMessages(other.expandedDataSets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ExpandedDataSet m = + input.readMessage( + com.google.analytics.admin.v1alpha.ExpandedDataSet.parser(), + extensionRegistry); + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(m); + } else { + expandedDataSetsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List expandedDataSets_ = + java.util.Collections.emptyList(); + + private void ensureExpandedDataSetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expandedDataSets_ = + new java.util.ArrayList( + expandedDataSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + expandedDataSetsBuilder_; + + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public java.util.List + getExpandedDataSetsList() { + if (expandedDataSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expandedDataSets_); + } else { + return expandedDataSetsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public int getExpandedDataSetsCount() { + if (expandedDataSetsBuilder_ == null) { + return expandedDataSets_.size(); + } else { + return expandedDataSetsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index) { + if (expandedDataSetsBuilder_ == null) { + return expandedDataSets_.get(index); + } else { + return expandedDataSetsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder setExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.set(index, value); + onChanged(); + } else { + expandedDataSetsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder setExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.set(index, builderForValue.build()); + onChanged(); + } else { + expandedDataSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(value); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(index, value); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets( + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(builderForValue.build()); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addExpandedDataSets( + int index, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.add(index, builderForValue.build()); + onChanged(); + } else { + expandedDataSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder addAllExpandedDataSets( + java.lang.Iterable values) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expandedDataSets_); + onChanged(); + } else { + expandedDataSetsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder clearExpandedDataSets() { + if (expandedDataSetsBuilder_ == null) { + expandedDataSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expandedDataSetsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public Builder removeExpandedDataSets(int index) { + if (expandedDataSetsBuilder_ == null) { + ensureExpandedDataSetsIsMutable(); + expandedDataSets_.remove(index); + onChanged(); + } else { + expandedDataSetsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetsBuilder( + int index) { + return getExpandedDataSetsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( + int index) { + if (expandedDataSetsBuilder_ == null) { + return expandedDataSets_.get(index); + } else { + return expandedDataSetsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public java.util.List + getExpandedDataSetsOrBuilderList() { + if (expandedDataSetsBuilder_ != null) { + return expandedDataSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expandedDataSets_); + } + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder addExpandedDataSetsBuilder() { + return getExpandedDataSetsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder addExpandedDataSetsBuilder( + int index) { + return getExpandedDataSetsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()); + } + /** + * + * + *
+     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+     * order.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + public java.util.List + getExpandedDataSetsBuilderList() { + return getExpandedDataSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + getExpandedDataSetsFieldBuilder() { + if (expandedDataSetsBuilder_ == null) { + expandedDataSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( + expandedDataSets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + expandedDataSets_ = null; + } + return expandedDataSetsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + private static final com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListExpandedDataSetsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java new file mode 100644 index 000000000000..9bac146a0e03 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListExpandedDataSetsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + java.util.List getExpandedDataSetsList(); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + int getExpandedDataSetsCount(); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + java.util.List + getExpandedDataSetsOrBuilderList(); + /** + * + * + *
+   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
+   * order.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java new file mode 100644 index 000000000000..b4ceab150909 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java @@ -0,0 +1,954 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListFirebaseLinks RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksRequest} + */ +public final class ListFirebaseLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + ListFirebaseLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFirebaseLinksRequest.newBuilder() to construct. + private ListFirebaseLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFirebaseLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFirebaseLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.class, + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListFirebaseLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest other = + (com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListFirebaseLinks RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.class, + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest build() { + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest result = + new com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirebaseLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java new file mode 100644 index 000000000000..508a356163d2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListFirebaseLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java new file mode 100644 index 000000000000..83a51f9be139 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java @@ -0,0 +1,1156 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListFirebaseLinks RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksResponse} + */ +public final class ListFirebaseLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + ListFirebaseLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFirebaseLinksResponse.newBuilder() to construct. + private ListFirebaseLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFirebaseLinksResponse() { + firebaseLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFirebaseLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.class, + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.Builder.class); + } + + public static final int FIREBASE_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List firebaseLinks_; + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public java.util.List getFirebaseLinksList() { + return firebaseLinks_; + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public java.util.List + getFirebaseLinksOrBuilderList() { + return firebaseLinks_; + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public int getFirebaseLinksCount() { + return firebaseLinks_.size(); + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLinks(int index) { + return firebaseLinks_.get(index); + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( + int index) { + return firebaseLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < firebaseLinks_.size(); i++) { + output.writeMessage(1, firebaseLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < firebaseLinks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, firebaseLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListFirebaseLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse other = + (com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) obj; + + if (!getFirebaseLinksList().equals(other.getFirebaseLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getFirebaseLinksCount() > 0) { + hash = (37 * hash) + FIREBASE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListFirebaseLinks RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.class, + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (firebaseLinksBuilder_ == null) { + firebaseLinks_ = java.util.Collections.emptyList(); + } else { + firebaseLinks_ = null; + firebaseLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse build() { + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result = + new com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result) { + if (firebaseLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + firebaseLinks_ = java.util.Collections.unmodifiableList(firebaseLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.firebaseLinks_ = firebaseLinks_; + } else { + result.firebaseLinks_ = firebaseLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.getDefaultInstance()) + return this; + if (firebaseLinksBuilder_ == null) { + if (!other.firebaseLinks_.isEmpty()) { + if (firebaseLinks_.isEmpty()) { + firebaseLinks_ = other.firebaseLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.addAll(other.firebaseLinks_); + } + onChanged(); + } + } else { + if (!other.firebaseLinks_.isEmpty()) { + if (firebaseLinksBuilder_.isEmpty()) { + firebaseLinksBuilder_.dispose(); + firebaseLinksBuilder_ = null; + firebaseLinks_ = other.firebaseLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + firebaseLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFirebaseLinksFieldBuilder() + : null; + } else { + firebaseLinksBuilder_.addAllMessages(other.firebaseLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.FirebaseLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.FirebaseLink.parser(), + extensionRegistry); + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(m); + } else { + firebaseLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List firebaseLinks_ = + java.util.Collections.emptyList(); + + private void ensureFirebaseLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + firebaseLinks_ = + new java.util.ArrayList( + firebaseLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + firebaseLinksBuilder_; + + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public java.util.List getFirebaseLinksList() { + if (firebaseLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(firebaseLinks_); + } else { + return firebaseLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public int getFirebaseLinksCount() { + if (firebaseLinksBuilder_ == null) { + return firebaseLinks_.size(); + } else { + return firebaseLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLinks(int index) { + if (firebaseLinksBuilder_ == null) { + return firebaseLinks_.get(index); + } else { + return firebaseLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder setFirebaseLinks( + int index, com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirebaseLinksIsMutable(); + firebaseLinks_.set(index, value); + onChanged(); + } else { + firebaseLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder setFirebaseLinks( + int index, com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + firebaseLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(value); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks( + int index, com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(index, value); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks( + com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(builderForValue.build()); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks( + int index, com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder addAllFirebaseLinks( + java.lang.Iterable values) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, firebaseLinks_); + onChanged(); + } else { + firebaseLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder clearFirebaseLinks() { + if (firebaseLinksBuilder_ == null) { + firebaseLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + firebaseLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public Builder removeFirebaseLinks(int index) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.remove(index); + onChanged(); + } else { + firebaseLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinksBuilder( + int index) { + return getFirebaseLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( + int index) { + if (firebaseLinksBuilder_ == null) { + return firebaseLinks_.get(index); + } else { + return firebaseLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public java.util.List + getFirebaseLinksOrBuilderList() { + if (firebaseLinksBuilder_ != null) { + return firebaseLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(firebaseLinks_); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder addFirebaseLinksBuilder() { + return getFirebaseLinksFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder addFirebaseLinksBuilder( + int index) { + return getFirebaseLinksFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + public java.util.List + getFirebaseLinksBuilderList() { + return getFirebaseLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> + getFirebaseLinksFieldBuilder() { + if (firebaseLinksBuilder_ == null) { + firebaseLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( + firebaseLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + firebaseLinks_ = null; + } + return firebaseLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirebaseLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java new file mode 100644 index 000000000000..25f8bc4825ab --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListFirebaseLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + java.util.List getFirebaseLinksList(); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLinks(int index); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + int getFirebaseLinksCount(); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + java.util.List + getFirebaseLinksOrBuilderList(); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; + */ + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java new file mode 100644 index 000000000000..cb5616cb18af --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java @@ -0,0 +1,954 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListGoogleAdsLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} + */ +public final class ListGoogleAdsLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + ListGoogleAdsLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListGoogleAdsLinksRequest.newBuilder() to construct. + private ListGoogleAdsLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGoogleAdsLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGoogleAdsLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.class, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListGoogleAdsLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest other = + (com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListGoogleAdsLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.class, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest build() { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest result = + new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGoogleAdsLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java new file mode 100644 index 000000000000..6d1d8ba25010 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListGoogleAdsLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java new file mode 100644 index 000000000000..b720ed70242f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java @@ -0,0 +1,1143 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListGoogleAdsLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} + */ +public final class ListGoogleAdsLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + ListGoogleAdsLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListGoogleAdsLinksResponse.newBuilder() to construct. + private ListGoogleAdsLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGoogleAdsLinksResponse() { + googleAdsLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGoogleAdsLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.class, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.Builder.class); + } + + public static final int GOOGLE_ADS_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List googleAdsLinks_; + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public java.util.List getGoogleAdsLinksList() { + return googleAdsLinks_; + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public java.util.List + getGoogleAdsLinksOrBuilderList() { + return googleAdsLinks_; + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public int getGoogleAdsLinksCount() { + return googleAdsLinks_.size(); + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLinks(int index) { + return googleAdsLinks_.get(index); + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( + int index) { + return googleAdsLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < googleAdsLinks_.size(); i++) { + output.writeMessage(1, googleAdsLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < googleAdsLinks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, googleAdsLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListGoogleAdsLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse other = + (com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) obj; + + if (!getGoogleAdsLinksList().equals(other.getGoogleAdsLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getGoogleAdsLinksCount() > 0) { + hash = (37 * hash) + GOOGLE_ADS_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListGoogleAdsLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.class, + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (googleAdsLinksBuilder_ == null) { + googleAdsLinks_ = java.util.Collections.emptyList(); + } else { + googleAdsLinks_ = null; + googleAdsLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse build() { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result = + new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result) { + if (googleAdsLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + googleAdsLinks_ = java.util.Collections.unmodifiableList(googleAdsLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.googleAdsLinks_ = googleAdsLinks_; + } else { + result.googleAdsLinks_ = googleAdsLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.getDefaultInstance()) + return this; + if (googleAdsLinksBuilder_ == null) { + if (!other.googleAdsLinks_.isEmpty()) { + if (googleAdsLinks_.isEmpty()) { + googleAdsLinks_ = other.googleAdsLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.addAll(other.googleAdsLinks_); + } + onChanged(); + } + } else { + if (!other.googleAdsLinks_.isEmpty()) { + if (googleAdsLinksBuilder_.isEmpty()) { + googleAdsLinksBuilder_.dispose(); + googleAdsLinksBuilder_ = null; + googleAdsLinks_ = other.googleAdsLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + googleAdsLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGoogleAdsLinksFieldBuilder() + : null; + } else { + googleAdsLinksBuilder_.addAllMessages(other.googleAdsLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.GoogleAdsLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), + extensionRegistry); + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(m); + } else { + googleAdsLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List googleAdsLinks_ = + java.util.Collections.emptyList(); + + private void ensureGoogleAdsLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + googleAdsLinks_ = + new java.util.ArrayList( + googleAdsLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + googleAdsLinksBuilder_; + + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public java.util.List + getGoogleAdsLinksList() { + if (googleAdsLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(googleAdsLinks_); + } else { + return googleAdsLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public int getGoogleAdsLinksCount() { + if (googleAdsLinksBuilder_ == null) { + return googleAdsLinks_.size(); + } else { + return googleAdsLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLinks(int index) { + if (googleAdsLinksBuilder_ == null) { + return googleAdsLinks_.get(index); + } else { + return googleAdsLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder setGoogleAdsLinks( + int index, com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.set(index, value); + onChanged(); + } else { + googleAdsLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder setGoogleAdsLinks( + int index, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + googleAdsLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(value); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks( + int index, com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(index, value); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks( + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(builderForValue.build()); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks( + int index, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder addAllGoogleAdsLinks( + java.lang.Iterable values) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, googleAdsLinks_); + onChanged(); + } else { + googleAdsLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder clearGoogleAdsLinks() { + if (googleAdsLinksBuilder_ == null) { + googleAdsLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + googleAdsLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public Builder removeGoogleAdsLinks(int index) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.remove(index); + onChanged(); + } else { + googleAdsLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinksBuilder( + int index) { + return getGoogleAdsLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( + int index) { + if (googleAdsLinksBuilder_ == null) { + return googleAdsLinks_.get(index); + } else { + return googleAdsLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public java.util.List + getGoogleAdsLinksOrBuilderList() { + if (googleAdsLinksBuilder_ != null) { + return googleAdsLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(googleAdsLinks_); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder addGoogleAdsLinksBuilder() { + return getGoogleAdsLinksFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder addGoogleAdsLinksBuilder( + int index) { + return getGoogleAdsLinksFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + public java.util.List + getGoogleAdsLinksBuilderList() { + return getGoogleAdsLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + getGoogleAdsLinksFieldBuilder() { + if (googleAdsLinksBuilder_ == null) { + googleAdsLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( + googleAdsLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + googleAdsLinks_ = null; + } + return googleAdsLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGoogleAdsLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java new file mode 100644 index 000000000000..09c1b7db1930 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListGoogleAdsLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + java.util.List getGoogleAdsLinksList(); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLinks(int index); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + int getGoogleAdsLinksCount(); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + java.util.List + getGoogleAdsLinksOrBuilderList(); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; + */ + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java new file mode 100644 index 000000000000..a4a2471f7636 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java @@ -0,0 +1,975 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} + */ +public final class ListMeasurementProtocolSecretsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + ListMeasurementProtocolSecretsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsRequest.newBuilder() to construct. + private ListMeasurementProtocolSecretsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 10 resources will be returned.
+   * The maximum value is 10. Higher values will be coerced to the maximum.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListMeasurementProtocolSecretsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest build() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java new file mode 100644 index 000000000000..035293fbbab5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListMeasurementProtocolSecretsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 10 resources will be returned.
+   * The maximum value is 10. Higher values will be coerced to the maximum.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java new file mode 100644 index 000000000000..b544745fee3d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java @@ -0,0 +1,1223 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} + */ +public final class ListMeasurementProtocolSecretsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + ListMeasurementProtocolSecretsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsResponse.newBuilder() to construct. + private ListMeasurementProtocolSecretsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsResponse() { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder + .class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + measurementProtocolSecrets_; + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List + getMeasurementProtocolSecretsList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public int getMeasurementProtocolSecretsCount() { + return measurementProtocolSecrets_.size(); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index) { + return measurementProtocolSecrets_.get(index); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + return measurementProtocolSecrets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { + output.writeMessage(1, measurementProtocolSecrets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, measurementProtocolSecrets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListMeasurementProtocolSecretsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) obj; + + if (!getMeasurementProtocolSecretsList().equals(other.getMeasurementProtocolSecretsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMeasurementProtocolSecretsCount() > 0) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecretsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + } else { + measurementProtocolSecrets_ = null; + measurementProtocolSecretsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse build() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result) { + if (measurementProtocolSecretsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.measurementProtocolSecrets_ = measurementProtocolSecrets_; + } else { + result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + .getDefaultInstance()) return this; + if (measurementProtocolSecretsBuilder_ == null) { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecrets_.isEmpty()) { + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.addAll(other.measurementProtocolSecrets_); + } + onChanged(); + } + } else { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecretsBuilder_.isEmpty()) { + measurementProtocolSecretsBuilder_.dispose(); + measurementProtocolSecretsBuilder_ = null; + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + measurementProtocolSecretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMeasurementProtocolSecretsFieldBuilder() + : null; + } else { + measurementProtocolSecretsBuilder_.addAllMessages(other.measurementProtocolSecrets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret m = + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(m); + } else { + measurementProtocolSecretsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + + private void ensureMeasurementProtocolSecretsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + new java.util.ArrayList( + measurementProtocolSecrets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretsBuilder_; + + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsList() { + if (measurementProtocolSecretsBuilder_ == null) { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } else { + return measurementProtocolSecretsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public int getMeasurementProtocolSecretsCount() { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.size(); + } else { + return measurementProtocolSecretsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addAllMeasurementProtocolSecrets( + java.lang.Iterable + values) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, measurementProtocolSecrets_); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder clearMeasurementProtocolSecrets() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder removeMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.remove(index); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + if (measurementProtocolSecretsBuilder_ != null) { + return measurementProtocolSecretsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder() { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsBuilderList() { + return getMeasurementProtocolSecretsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsFieldBuilder() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecretsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + measurementProtocolSecrets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + measurementProtocolSecrets_ = null; + } + return measurementProtocolSecretsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java new file mode 100644 index 000000000000..5a11239f9b48 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListMeasurementProtocolSecretsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + int getMeasurementProtocolSecretsCount(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsOrBuilderList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java new file mode 100644 index 000000000000..31b2c4a0231b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java @@ -0,0 +1,1139 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListProperties RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesRequest} + */ +public final class ListPropertiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListPropertiesRequest) + ListPropertiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPropertiesRequest.newBuilder() to construct. + private ListPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPropertiesRequest() { + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPropertiesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListPropertiesRequest.class, + com.google.analytics.admin.v1alpha.ListPropertiesRequest.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHOW_DELETED_FIELD_NUMBER = 4; + private boolean showDeleted_ = false; + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Properties in the
+   * results. Properties can be inspected to determine whether they are deleted
+   * or not.
+   * 
+ * + * bool show_deleted = 4; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + + 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(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(4, showDeleted_); + } + 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(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + } + 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.admin.v1alpha.ListPropertiesRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListPropertiesRequest other = + (com.google.analytics.admin.v1alpha.ListPropertiesRequest) obj; + + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListPropertiesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListProperties RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListPropertiesRequest) + com.google.analytics.admin.v1alpha.ListPropertiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListPropertiesRequest.class, + com.google.analytics.admin.v1alpha.ListPropertiesRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListPropertiesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + showDeleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListPropertiesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesRequest build() { + com.google.analytics.admin.v1alpha.ListPropertiesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListPropertiesRequest result = + new com.google.analytics.admin.v1alpha.ListPropertiesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListPropertiesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.showDeleted_ = showDeleted_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListPropertiesRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListPropertiesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListPropertiesRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListPropertiesRequest.getDefaultInstance()) + return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + showDeleted_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean showDeleted_; + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Properties in the
+     * results. Properties can be inspected to determine whether they are deleted
+     * or not.
+     * 
+ * + * bool show_deleted = 4; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Properties in the
+     * results. Properties can be inspected to determine whether they are deleted
+     * or not.
+     * 
+ * + * bool show_deleted = 4; + * + * @param value The showDeleted to set. + * @return This builder for chaining. + */ + public Builder setShowDeleted(boolean value) { + + showDeleted_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Properties in the
+     * results. Properties can be inspected to determine whether they are deleted
+     * or not.
+     * 
+ * + * bool show_deleted = 4; + * + * @return This builder for chaining. + */ + public Builder clearShowDeleted() { + bitField0_ = (bitField0_ & ~0x00000008); + showDeleted_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListPropertiesRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListPropertiesRequest) + private static final com.google.analytics.admin.v1alpha.ListPropertiesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListPropertiesRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPropertiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java new file mode 100644 index 000000000000..57b1e9af6b0d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListPropertiesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListPropertiesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Properties in the
+   * results. Properties can be inspected to determine whether they are deleted
+   * or not.
+   * 
+ * + * bool show_deleted = 4; + * + * @return The showDeleted. + */ + boolean getShowDeleted(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java new file mode 100644 index 000000000000..a4e125697e71 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java @@ -0,0 +1,1127 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListProperties RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesResponse} + */ +public final class ListPropertiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListPropertiesResponse) + ListPropertiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPropertiesResponse.newBuilder() to construct. + private ListPropertiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPropertiesResponse() { + properties_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPropertiesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListPropertiesResponse.class, + com.google.analytics.admin.v1alpha.ListPropertiesResponse.Builder.class); + } + + public static final int PROPERTIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List properties_; + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + @java.lang.Override + public java.util.List getPropertiesList() { + return properties_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + @java.lang.Override + public java.util.List + getPropertiesOrBuilderList() { + return properties_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + @java.lang.Override + public int getPropertiesCount() { + return properties_.size(); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperties(int index) { + return properties_.get(index); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertiesOrBuilder(int index) { + return properties_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < properties_.size(); i++) { + output.writeMessage(1, properties_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < properties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListPropertiesResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListPropertiesResponse other = + (com.google.analytics.admin.v1alpha.ListPropertiesResponse) obj; + + if (!getPropertiesList().equals(other.getPropertiesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListPropertiesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListProperties RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListPropertiesResponse) + com.google.analytics.admin.v1alpha.ListPropertiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListPropertiesResponse.class, + com.google.analytics.admin.v1alpha.ListPropertiesResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListPropertiesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + } else { + properties_ = null; + propertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListPropertiesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesResponse build() { + com.google.analytics.admin.v1alpha.ListPropertiesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListPropertiesResponse result = + new com.google.analytics.admin.v1alpha.ListPropertiesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListPropertiesResponse result) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + properties_ = java.util.Collections.unmodifiableList(properties_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ListPropertiesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListPropertiesResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListPropertiesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListPropertiesResponse other) { + if (other == com.google.analytics.admin.v1alpha.ListPropertiesResponse.getDefaultInstance()) + return this; + if (propertiesBuilder_ == null) { + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + onChanged(); + } + } else { + if (!other.properties_.isEmpty()) { + if (propertiesBuilder_.isEmpty()) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; + } else { + propertiesBuilder_.addAllMessages(other.properties_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.Property m = + input.readMessage( + com.google.analytics.admin.v1alpha.Property.parser(), extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List properties_ = + java.util.Collections.emptyList(); + + private void ensurePropertiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + properties_ = + new java.util.ArrayList(properties_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + propertiesBuilder_; + + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public java.util.List getPropertiesList() { + if (propertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(properties_); + } else { + return propertiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public int getPropertiesCount() { + if (propertiesBuilder_ == null) { + return properties_.size(); + } else { + return propertiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public com.google.analytics.admin.v1alpha.Property getProperties(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder setProperties(int index, com.google.analytics.admin.v1alpha.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.set(index, value); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder setProperties( + int index, com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.set(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder addProperties(com.google.analytics.admin.v1alpha.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(value); + onChanged(); + } else { + propertiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder addProperties(int index, com.google.analytics.admin.v1alpha.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(index, value); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder addProperties( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder addProperties( + int index, com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder addAllProperties( + java.lang.Iterable values) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + onChanged(); + } else { + propertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + propertiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public Builder removeProperties(int index) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.remove(index); + onChanged(); + } else { + propertiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getPropertiesBuilder(int index) { + return getPropertiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertiesOrBuilder(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public java.util.List + getPropertiesOrBuilderList() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(properties_); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public com.google.analytics.admin.v1alpha.Property.Builder addPropertiesBuilder() { + return getPropertiesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.Property.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public com.google.analytics.admin.v1alpha.Property.Builder addPropertiesBuilder(int index) { + return getPropertiesFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.Property.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + public java.util.List + getPropertiesBuilderList() { + return getPropertiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListPropertiesResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListPropertiesResponse) + private static final com.google.analytics.admin.v1alpha.ListPropertiesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListPropertiesResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListPropertiesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPropertiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListPropertiesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java new file mode 100644 index 000000000000..9bf0f8f7f444 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListPropertiesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListPropertiesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + java.util.List getPropertiesList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + com.google.analytics.admin.v1alpha.Property getProperties(int index); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + int getPropertiesCount(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + java.util.List + getPropertiesOrBuilderList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.Property properties = 1; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertiesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java new file mode 100644 index 000000000000..e698fe393203 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java @@ -0,0 +1,978 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListRollupPropertySourceLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest} + */ +public final class ListRollupPropertySourceLinksRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + ListRollupPropertySourceLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRollupPropertySourceLinksRequest.newBuilder() to construct. + private ListRollupPropertySourceLinksRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRollupPropertySourceLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRollupPropertySourceLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListRollupPropertySourceLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest other = + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListRollupPropertySourceLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest build() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the roll-up property to list roll-up property source
+     * links under. Format: properties/{property_id} Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListRollupPropertySourceLinks` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRollupPropertySourceLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java new file mode 100644 index 000000000000..291a2ecb5d31 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListRollupPropertySourceLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the roll-up property to list roll-up property source
+   * links under. Format: properties/{property_id} Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListRollupPropertySourceLinks` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java new file mode 100644 index 000000000000..b2f92c7ffaa2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java @@ -0,0 +1,1221 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListRollupPropertySourceLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse} + */ +public final class ListRollupPropertySourceLinksResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + ListRollupPropertySourceLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListRollupPropertySourceLinksResponse.newBuilder() to construct. + private ListRollupPropertySourceLinksResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListRollupPropertySourceLinksResponse() { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListRollupPropertySourceLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.Builder.class); + } + + public static final int ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + rollupPropertySourceLinks_; + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public java.util.List + getRollupPropertySourceLinksList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + return rollupPropertySourceLinks_; + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public int getRollupPropertySourceLinksCount() { + return rollupPropertySourceLinks_.size(); + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + return rollupPropertySourceLinks_.get(index); + } + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + return rollupPropertySourceLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { + output.writeMessage(1, rollupPropertySourceLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, rollupPropertySourceLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListRollupPropertySourceLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse other = + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) obj; + + if (!getRollupPropertySourceLinksList().equals(other.getRollupPropertySourceLinksList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getRollupPropertySourceLinksCount() > 0) { + hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getRollupPropertySourceLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListRollupPropertySourceLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + } else { + rollupPropertySourceLinks_ = null; + rollupPropertySourceLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse build() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rollupPropertySourceLinks_ = + java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rollupPropertySourceLinks_ = rollupPropertySourceLinks_; + } else { + result.rollupPropertySourceLinks_ = rollupPropertySourceLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + .getDefaultInstance()) return this; + if (rollupPropertySourceLinksBuilder_ == null) { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinks_.isEmpty()) { + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.addAll(other.rollupPropertySourceLinks_); + } + onChanged(); + } + } else { + if (!other.rollupPropertySourceLinks_.isEmpty()) { + if (rollupPropertySourceLinksBuilder_.isEmpty()) { + rollupPropertySourceLinksBuilder_.dispose(); + rollupPropertySourceLinksBuilder_ = null; + rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + rollupPropertySourceLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRollupPropertySourceLinksFieldBuilder() + : null; + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(other.rollupPropertySourceLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink m = + input.readMessage( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.parser(), + extensionRegistry); + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(m); + } else { + rollupPropertySourceLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + + private void ensureRollupPropertySourceLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rollupPropertySourceLinks_ = + new java.util.ArrayList( + rollupPropertySourceLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + rollupPropertySourceLinksBuilder_; + + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public java.util.List + getRollupPropertySourceLinksList() { + if (rollupPropertySourceLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } else { + return rollupPropertySourceLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public int getRollupPropertySourceLinksCount() { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.size(); + } else { + return rollupPropertySourceLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder setRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder setRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { + if (rollupPropertySourceLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, value); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addRollupPropertySourceLinks( + int index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder addAllRollupPropertySourceLinks( + java.lang.Iterable + values) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rollupPropertySourceLinks_); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder clearRollupPropertySourceLinks() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public Builder removeRollupPropertySourceLinks(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + ensureRollupPropertySourceLinksIsMutable(); + rollupPropertySourceLinks_.remove(index); + onChanged(); + } else { + rollupPropertySourceLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + getRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index) { + if (rollupPropertySourceLinksBuilder_ == null) { + return rollupPropertySourceLinks_.get(index); + } else { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksOrBuilderList() { + if (rollupPropertySourceLinksBuilder_ != null) { + return rollupPropertySourceLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); + } + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder() { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder + addRollupPropertySourceLinksBuilder(int index) { + return getRollupPropertySourceLinksFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of RollupPropertySourceLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + public java.util.List + getRollupPropertySourceLinksBuilderList() { + return getRollupPropertySourceLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> + getRollupPropertySourceLinksFieldBuilder() { + if (rollupPropertySourceLinksBuilder_ == null) { + rollupPropertySourceLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.RollupPropertySourceLink, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( + rollupPropertySourceLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + rollupPropertySourceLinks_ = null; + } + return rollupPropertySourceLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListRollupPropertySourceLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java new file mode 100644 index 000000000000..e4275d113c65 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListRollupPropertySourceLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + java.util.List + getRollupPropertySourceLinksList(); + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks( + int index); + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + int getRollupPropertySourceLinksCount(); + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + java.util.List + getRollupPropertySourceLinksOrBuilderList(); + /** + * + * + *
+   * List of RollupPropertySourceLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; + * + */ + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder + getRollupPropertySourceLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java new file mode 100644 index 000000000000..5c90aab6e190 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java @@ -0,0 +1,1008 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListSKAdNetworkConversionValueSchemas RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest} + */ +public final class ListSKAdNetworkConversionValueSchemasRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) + ListSKAdNetworkConversionValueSchemasRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSKAdNetworkConversionValueSchemasRequest.newBuilder() to construct. + private ListSKAdNetworkConversionValueSchemasRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSKAdNetworkConversionValueSchemasRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSKAdNetworkConversionValueSchemasRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.class, + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous
+   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest other = + (com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListSKAdNetworkConversionValueSchemas RPC
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.class, + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest build() { + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + buildPartial() { + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest result = + new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream resource to list schemas for.
+     * Format:
+     * properties/{property_id}/dataStreams/{dataStream}
+     * Example: properties/1234/dataStreams/5678
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) + private static final com.google.analytics.admin.v1alpha + .ListSKAdNetworkConversionValueSchemasRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSKAdNetworkConversionValueSchemasRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java new file mode 100644 index 000000000000..8a08ddbc335c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The DataStream resource to list schemas for.
+   * Format:
+   * properties/{property_id}/dataStreams/{dataStream}
+   * Example: properties/1234/dataStreams/5678
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponse.java new file mode 100644 index 000000000000..a0ec0f6d4a3b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponse.java @@ -0,0 +1,1296 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListSKAdNetworkConversionValueSchemas RPC
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse} + */ +public final class ListSKAdNetworkConversionValueSchemasResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) + ListSKAdNetworkConversionValueSchemasResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSKAdNetworkConversionValueSchemasResponse.newBuilder() to construct. + private ListSKAdNetworkConversionValueSchemasResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSKAdNetworkConversionValueSchemasResponse() { + skadnetworkConversionValueSchemas_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSKAdNetworkConversionValueSchemasResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.class, + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.Builder + .class); + } + + public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMAS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + skadnetworkConversionValueSchemas_; + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + @java.lang.Override + public java.util.List + getSkadnetworkConversionValueSchemasList() { + return skadnetworkConversionValueSchemas_; + } + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + getSkadnetworkConversionValueSchemasOrBuilderList() { + return skadnetworkConversionValueSchemas_; + } + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + @java.lang.Override + public int getSkadnetworkConversionValueSchemasCount() { + return skadnetworkConversionValueSchemas_.size(); + } + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchemas(int index) { + return skadnetworkConversionValueSchemas_.get(index); + } + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemasOrBuilder(int index) { + return skadnetworkConversionValueSchemas_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one
+   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+   * populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one
+   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+   * populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < skadnetworkConversionValueSchemas_.size(); i++) { + output.writeMessage(1, skadnetworkConversionValueSchemas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < skadnetworkConversionValueSchemas_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, skadnetworkConversionValueSchemas_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse other = + (com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) obj; + + if (!getSkadnetworkConversionValueSchemasList() + .equals(other.getSkadnetworkConversionValueSchemasList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSkadnetworkConversionValueSchemasCount() > 0) { + hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMAS_FIELD_NUMBER; + hash = (53 * hash) + getSkadnetworkConversionValueSchemasList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListSKAdNetworkConversionValueSchemas RPC
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + .class, + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (skadnetworkConversionValueSchemasBuilder_ == null) { + skadnetworkConversionValueSchemas_ = java.util.Collections.emptyList(); + } else { + skadnetworkConversionValueSchemas_ = null; + skadnetworkConversionValueSchemasBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + build() { + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result = + new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + skadnetworkConversionValueSchemas_ = + java.util.Collections.unmodifiableList(skadnetworkConversionValueSchemas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.skadnetworkConversionValueSchemas_ = skadnetworkConversionValueSchemas_; + } else { + result.skadnetworkConversionValueSchemas_ = + skadnetworkConversionValueSchemasBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + .getDefaultInstance()) return this; + if (skadnetworkConversionValueSchemasBuilder_ == null) { + if (!other.skadnetworkConversionValueSchemas_.isEmpty()) { + if (skadnetworkConversionValueSchemas_.isEmpty()) { + skadnetworkConversionValueSchemas_ = other.skadnetworkConversionValueSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.addAll(other.skadnetworkConversionValueSchemas_); + } + onChanged(); + } + } else { + if (!other.skadnetworkConversionValueSchemas_.isEmpty()) { + if (skadnetworkConversionValueSchemasBuilder_.isEmpty()) { + skadnetworkConversionValueSchemasBuilder_.dispose(); + skadnetworkConversionValueSchemasBuilder_ = null; + skadnetworkConversionValueSchemas_ = other.skadnetworkConversionValueSchemas_; + bitField0_ = (bitField0_ & ~0x00000001); + skadnetworkConversionValueSchemasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSkadnetworkConversionValueSchemasFieldBuilder() + : null; + } else { + skadnetworkConversionValueSchemasBuilder_.addAllMessages( + other.skadnetworkConversionValueSchemas_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema m = + input.readMessage( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .parser(), + extensionRegistry); + if (skadnetworkConversionValueSchemasBuilder_ == null) { + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.add(m); + } else { + skadnetworkConversionValueSchemasBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + skadnetworkConversionValueSchemas_ = java.util.Collections.emptyList(); + + private void ensureSkadnetworkConversionValueSchemasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + skadnetworkConversionValueSchemas_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>( + skadnetworkConversionValueSchemas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + skadnetworkConversionValueSchemasBuilder_; + + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public java.util.List + getSkadnetworkConversionValueSchemasList() { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + return java.util.Collections.unmodifiableList(skadnetworkConversionValueSchemas_); + } else { + return skadnetworkConversionValueSchemasBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public int getSkadnetworkConversionValueSchemasCount() { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + return skadnetworkConversionValueSchemas_.size(); + } else { + return skadnetworkConversionValueSchemasBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchemas(int index) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + return skadnetworkConversionValueSchemas_.get(index); + } else { + return skadnetworkConversionValueSchemasBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder setSkadnetworkConversionValueSchemas( + int index, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.set(index, value); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder setSkadnetworkConversionValueSchemas( + int index, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + builderForValue) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.set(index, builderForValue.build()); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder addSkadnetworkConversionValueSchemas( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.add(value); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder addSkadnetworkConversionValueSchemas( + int index, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.add(index, value); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder addSkadnetworkConversionValueSchemas( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + builderForValue) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.add(builderForValue.build()); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder addSkadnetworkConversionValueSchemas( + int index, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + builderForValue) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.add(index, builderForValue.build()); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder addAllSkadnetworkConversionValueSchemas( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema> + values) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + ensureSkadnetworkConversionValueSchemasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, skadnetworkConversionValueSchemas_); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder clearSkadnetworkConversionValueSchemas() { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + skadnetworkConversionValueSchemas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public Builder removeSkadnetworkConversionValueSchemas(int index) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + ensureSkadnetworkConversionValueSchemasIsMutable(); + skadnetworkConversionValueSchemas_.remove(index); + onChanged(); + } else { + skadnetworkConversionValueSchemasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + getSkadnetworkConversionValueSchemasBuilder(int index) { + return getSkadnetworkConversionValueSchemasFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemasOrBuilder(int index) { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + return skadnetworkConversionValueSchemas_.get(index); + } else { + return skadnetworkConversionValueSchemasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + getSkadnetworkConversionValueSchemasOrBuilderList() { + if (skadnetworkConversionValueSchemasBuilder_ != null) { + return skadnetworkConversionValueSchemasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(skadnetworkConversionValueSchemas_); + } + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + addSkadnetworkConversionValueSchemasBuilder() { + return getSkadnetworkConversionValueSchemasFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance()); + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + addSkadnetworkConversionValueSchemasBuilder(int index) { + return getSkadnetworkConversionValueSchemasFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance()); + } + /** + * + * + *
+     * List of SKAdNetworkConversionValueSchemas. This will have at most one
+     * value.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder> + getSkadnetworkConversionValueSchemasBuilderList() { + return getSkadnetworkConversionValueSchemasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + getSkadnetworkConversionValueSchemasFieldBuilder() { + if (skadnetworkConversionValueSchemasBuilder_ == null) { + skadnetworkConversionValueSchemasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( + skadnetworkConversionValueSchemas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + skadnetworkConversionValueSchemas_ = null; + } + return skadnetworkConversionValueSchemasBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one
+     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+     * populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one
+     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+     * populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one
+     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+     * populated.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one
+     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+     * populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one
+     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+     * populated.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) + private static final com.google.analytics.admin.v1alpha + .ListSKAdNetworkConversionValueSchemasResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSKAdNetworkConversionValueSchemasResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponseOrBuilder.java new file mode 100644 index 000000000000..b6ec68a765a1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponseOrBuilder.java @@ -0,0 +1,129 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListSKAdNetworkConversionValueSchemasResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + java.util.List + getSkadnetworkConversionValueSchemasList(); + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchemas(int index); + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + int getSkadnetworkConversionValueSchemasCount(); + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + java.util.List< + ? extends com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + getSkadnetworkConversionValueSchemasOrBuilderList(); + /** + * + * + *
+   * List of SKAdNetworkConversionValueSchemas. This will have at most one
+   * value.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; + * + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemasOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one
+   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+   * populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one
+   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
+   * populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequest.java new file mode 100644 index 000000000000..4439fd55f560 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequest.java @@ -0,0 +1,964 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListSearchAds360Links RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} + */ +public final class ListSearchAds360LinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) + ListSearchAds360LinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSearchAds360LinksRequest.newBuilder() to construct. + private ListSearchAds360LinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSearchAds360LinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSearchAds360LinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.class, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListSearchAds360Links`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListSearchAds360Links` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListSearchAds360Links`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListSearchAds360Links` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListSearchAds360LinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest other = + (com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListSearchAds360Links RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.class, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest build() { + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest result = + new com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListSearchAds360Links`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListSearchAds360Links` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListSearchAds360Links`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListSearchAds360Links` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListSearchAds360Links`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListSearchAds360Links` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListSearchAds360Links`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListSearchAds360Links` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListSearchAds360Links`
+     * call. Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to
+     * `ListSearchAds360Links` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) + private static final com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSearchAds360LinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequestOrBuilder.java new file mode 100644 index 000000000000..b5fd201a82e5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListSearchAds360LinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListSearchAds360Links`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListSearchAds360Links` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListSearchAds360Links`
+   * call. Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to
+   * `ListSearchAds360Links` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponse.java new file mode 100644 index 000000000000..21391ca9025a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponse.java @@ -0,0 +1,1173 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListSearchAds360Links RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} + */ +public final class ListSearchAds360LinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) + ListSearchAds360LinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSearchAds360LinksResponse.newBuilder() to construct. + private ListSearchAds360LinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSearchAds360LinksResponse() { + searchAds360Links_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSearchAds360LinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.class, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.Builder.class); + } + + public static final int SEARCH_ADS_360_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List searchAds360Links_; + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + @java.lang.Override + public java.util.List + getSearchAds360LinksList() { + return searchAds360Links_; + } + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + @java.lang.Override + public java.util.List + getSearchAds360LinksOrBuilderList() { + return searchAds360Links_; + } + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + @java.lang.Override + public int getSearchAds360LinksCount() { + return searchAds360Links_.size(); + } + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Links(int index) { + return searchAds360Links_.get(index); + } + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinksOrBuilder( + int index) { + return searchAds360Links_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < searchAds360Links_.size(); i++) { + output.writeMessage(1, searchAds360Links_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < searchAds360Links_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, searchAds360Links_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListSearchAds360LinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse other = + (com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) obj; + + if (!getSearchAds360LinksList().equals(other.getSearchAds360LinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSearchAds360LinksCount() > 0) { + hash = (37 * hash) + SEARCH_ADS_360_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getSearchAds360LinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListSearchAds360Links RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.class, + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (searchAds360LinksBuilder_ == null) { + searchAds360Links_ = java.util.Collections.emptyList(); + } else { + searchAds360Links_ = null; + searchAds360LinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse build() { + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result = + new com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result) { + if (searchAds360LinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + searchAds360Links_ = java.util.Collections.unmodifiableList(searchAds360Links_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.searchAds360Links_ = searchAds360Links_; + } else { + result.searchAds360Links_ = searchAds360LinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.getDefaultInstance()) + return this; + if (searchAds360LinksBuilder_ == null) { + if (!other.searchAds360Links_.isEmpty()) { + if (searchAds360Links_.isEmpty()) { + searchAds360Links_ = other.searchAds360Links_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.addAll(other.searchAds360Links_); + } + onChanged(); + } + } else { + if (!other.searchAds360Links_.isEmpty()) { + if (searchAds360LinksBuilder_.isEmpty()) { + searchAds360LinksBuilder_.dispose(); + searchAds360LinksBuilder_ = null; + searchAds360Links_ = other.searchAds360Links_; + bitField0_ = (bitField0_ & ~0x00000001); + searchAds360LinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSearchAds360LinksFieldBuilder() + : null; + } else { + searchAds360LinksBuilder_.addAllMessages(other.searchAds360Links_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.SearchAds360Link m = + input.readMessage( + com.google.analytics.admin.v1alpha.SearchAds360Link.parser(), + extensionRegistry); + if (searchAds360LinksBuilder_ == null) { + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.add(m); + } else { + searchAds360LinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List searchAds360Links_ = + java.util.Collections.emptyList(); + + private void ensureSearchAds360LinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + searchAds360Links_ = + new java.util.ArrayList( + searchAds360Links_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + searchAds360LinksBuilder_; + + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public java.util.List + getSearchAds360LinksList() { + if (searchAds360LinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(searchAds360Links_); + } else { + return searchAds360LinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public int getSearchAds360LinksCount() { + if (searchAds360LinksBuilder_ == null) { + return searchAds360Links_.size(); + } else { + return searchAds360LinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Links(int index) { + if (searchAds360LinksBuilder_ == null) { + return searchAds360Links_.get(index); + } else { + return searchAds360LinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder setSearchAds360Links( + int index, com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.set(index, value); + onChanged(); + } else { + searchAds360LinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder setSearchAds360Links( + int index, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { + if (searchAds360LinksBuilder_ == null) { + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.set(index, builderForValue.build()); + onChanged(); + } else { + searchAds360LinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder addSearchAds360Links(com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.add(value); + onChanged(); + } else { + searchAds360LinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder addSearchAds360Links( + int index, com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.add(index, value); + onChanged(); + } else { + searchAds360LinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder addSearchAds360Links( + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { + if (searchAds360LinksBuilder_ == null) { + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.add(builderForValue.build()); + onChanged(); + } else { + searchAds360LinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder addSearchAds360Links( + int index, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { + if (searchAds360LinksBuilder_ == null) { + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.add(index, builderForValue.build()); + onChanged(); + } else { + searchAds360LinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder addAllSearchAds360Links( + java.lang.Iterable values) { + if (searchAds360LinksBuilder_ == null) { + ensureSearchAds360LinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, searchAds360Links_); + onChanged(); + } else { + searchAds360LinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder clearSearchAds360Links() { + if (searchAds360LinksBuilder_ == null) { + searchAds360Links_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + searchAds360LinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public Builder removeSearchAds360Links(int index) { + if (searchAds360LinksBuilder_ == null) { + ensureSearchAds360LinksIsMutable(); + searchAds360Links_.remove(index); + onChanged(); + } else { + searchAds360LinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder getSearchAds360LinksBuilder( + int index) { + return getSearchAds360LinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder + getSearchAds360LinksOrBuilder(int index) { + if (searchAds360LinksBuilder_ == null) { + return searchAds360Links_.get(index); + } else { + return searchAds360LinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public java.util.List + getSearchAds360LinksOrBuilderList() { + if (searchAds360LinksBuilder_ != null) { + return searchAds360LinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(searchAds360Links_); + } + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder + addSearchAds360LinksBuilder() { + return getSearchAds360LinksFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()); + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder addSearchAds360LinksBuilder( + int index) { + return getSearchAds360LinksFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()); + } + /** + * + * + *
+     * List of SearchAds360Links.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + public java.util.List + getSearchAds360LinksBuilderList() { + return getSearchAds360LinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + getSearchAds360LinksFieldBuilder() { + if (searchAds360LinksBuilder_ == null) { + searchAds360LinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( + searchAds360Links_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + searchAds360Links_ = null; + } + return searchAds360LinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) + private static final com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSearchAds360LinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponseOrBuilder.java new file mode 100644 index 000000000000..e3b1cc1ff9c1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListSearchAds360LinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + java.util.List getSearchAds360LinksList(); + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Links(int index); + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + int getSearchAds360LinksCount(); + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + java.util.List + getSearchAds360LinksOrBuilderList(); + /** + * + * + *
+   * List of SearchAds360Links.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; + * + */ + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinksOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java new file mode 100644 index 000000000000..f36309b40ff9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java @@ -0,0 +1,980 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListSubpropertyEventFilters RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest} + */ +public final class ListSubpropertyEventFiltersRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + ListSubpropertyEventFiltersRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSubpropertyEventFiltersRequest.newBuilder() to construct. + private ListSubpropertyEventFiltersRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSubpropertyEventFiltersRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSubpropertyEventFiltersRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages. If unspecified,
+   * at most 50 resources will be returned. The maximum value is 200; (higher
+   * values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1alpha.ListSubpropertyEventFiltersRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest other = + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListSubpropertyEventFilters RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest build() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result = + new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Resource name of the ordinary property.
+     * Format: properties/property_id
+     * Example: properties/123
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages. If unspecified,
+     * at most 50 resources will be returned. The maximum value is 200; (higher
+     * values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages. If unspecified,
+     * at most 50 resources will be returned. The maximum value is 200; (higher
+     * values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages. If unspecified,
+     * at most 50 resources will be returned. The maximum value is 200; (higher
+     * values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `ListSubpropertyEventFilters` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + private static final com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubpropertyEventFiltersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java new file mode 100644 index 000000000000..1d0f66132f19 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListSubpropertyEventFiltersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Resource name of the ordinary property.
+   * Format: properties/property_id
+   * Example: properties/123
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages. If unspecified,
+   * at most 50 resources will be returned. The maximum value is 200; (higher
+   * values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `ListSubpropertyEventFilters` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java new file mode 100644 index 000000000000..7c86f8b68da9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java @@ -0,0 +1,1217 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse} + */ +public final class ListSubpropertyEventFiltersResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + ListSubpropertyEventFiltersResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListSubpropertyEventFiltersResponse.newBuilder() to construct. + private ListSubpropertyEventFiltersResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListSubpropertyEventFiltersResponse() { + subpropertyEventFilters_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListSubpropertyEventFiltersResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.Builder.class); + } + + public static final int SUBPROPERTY_EVENT_FILTERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + subpropertyEventFilters_; + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public java.util.List + getSubpropertyEventFiltersList() { + return subpropertyEventFilters_; + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFiltersOrBuilderList() { + return subpropertyEventFilters_; + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public int getSubpropertyEventFiltersCount() { + return subpropertyEventFilters_.size(); + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters( + int index) { + return subpropertyEventFilters_.get(index); + } + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFiltersOrBuilder(int index) { + return subpropertyEventFilters_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page. If
+   * this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page. If
+   * this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < subpropertyEventFilters_.size(); i++) { + output.writeMessage(1, subpropertyEventFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < subpropertyEventFilters_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, subpropertyEventFilters_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.ListSubpropertyEventFiltersResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse other = + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) obj; + + if (!getSubpropertyEventFiltersList().equals(other.getSubpropertyEventFiltersList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSubpropertyEventFiltersCount() > 0) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTERS_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFiltersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.class, + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (subpropertyEventFiltersBuilder_ == null) { + subpropertyEventFilters_ = java.util.Collections.emptyList(); + } else { + subpropertyEventFilters_ = null; + subpropertyEventFiltersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse build() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result = + new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result) { + if (subpropertyEventFiltersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + subpropertyEventFilters_ = + java.util.Collections.unmodifiableList(subpropertyEventFilters_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.subpropertyEventFilters_ = subpropertyEventFilters_; + } else { + result.subpropertyEventFilters_ = subpropertyEventFiltersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + .getDefaultInstance()) return this; + if (subpropertyEventFiltersBuilder_ == null) { + if (!other.subpropertyEventFilters_.isEmpty()) { + if (subpropertyEventFilters_.isEmpty()) { + subpropertyEventFilters_ = other.subpropertyEventFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.addAll(other.subpropertyEventFilters_); + } + onChanged(); + } + } else { + if (!other.subpropertyEventFilters_.isEmpty()) { + if (subpropertyEventFiltersBuilder_.isEmpty()) { + subpropertyEventFiltersBuilder_.dispose(); + subpropertyEventFiltersBuilder_ = null; + subpropertyEventFilters_ = other.subpropertyEventFilters_; + bitField0_ = (bitField0_ & ~0x00000001); + subpropertyEventFiltersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSubpropertyEventFiltersFieldBuilder() + : null; + } else { + subpropertyEventFiltersBuilder_.addAllMessages(other.subpropertyEventFilters_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.SubpropertyEventFilter m = + input.readMessage( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.parser(), + extensionRegistry); + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(m); + } else { + subpropertyEventFiltersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + subpropertyEventFilters_ = java.util.Collections.emptyList(); + + private void ensureSubpropertyEventFiltersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + subpropertyEventFilters_ = + new java.util.ArrayList( + subpropertyEventFilters_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFiltersBuilder_; + + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public java.util.List + getSubpropertyEventFiltersList() { + if (subpropertyEventFiltersBuilder_ == null) { + return java.util.Collections.unmodifiableList(subpropertyEventFilters_); + } else { + return subpropertyEventFiltersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public int getSubpropertyEventFiltersCount() { + if (subpropertyEventFiltersBuilder_ == null) { + return subpropertyEventFilters_.size(); + } else { + return subpropertyEventFiltersBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters( + int index) { + if (subpropertyEventFiltersBuilder_ == null) { + return subpropertyEventFilters_.get(index); + } else { + return subpropertyEventFiltersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder setSubpropertyEventFilters( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.set(index, value); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder setSubpropertyEventFilters( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.set(index, builderForValue.build()); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(value); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFiltersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(index, value); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(builderForValue.build()); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addSubpropertyEventFilters( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.add(index, builderForValue.build()); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder addAllSubpropertyEventFilters( + java.lang.Iterable + values) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subpropertyEventFilters_); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder clearSubpropertyEventFilters() { + if (subpropertyEventFiltersBuilder_ == null) { + subpropertyEventFilters_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public Builder removeSubpropertyEventFilters(int index) { + if (subpropertyEventFiltersBuilder_ == null) { + ensureSubpropertyEventFiltersIsMutable(); + subpropertyEventFilters_.remove(index); + onChanged(); + } else { + subpropertyEventFiltersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFiltersBuilder(int index) { + return getSubpropertyEventFiltersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFiltersOrBuilder(int index) { + if (subpropertyEventFiltersBuilder_ == null) { + return subpropertyEventFilters_.get(index); + } else { + return subpropertyEventFiltersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFiltersOrBuilderList() { + if (subpropertyEventFiltersBuilder_ != null) { + return subpropertyEventFiltersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(subpropertyEventFilters_); + } + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + addSubpropertyEventFiltersBuilder() { + return getSubpropertyEventFiltersFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()); + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + addSubpropertyEventFiltersBuilder(int index) { + return getSubpropertyEventFiltersFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()); + } + /** + * + * + *
+     * List of subproperty event filters.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + public java.util.List + getSubpropertyEventFiltersBuilderList() { + return getSubpropertyEventFiltersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFiltersFieldBuilder() { + if (subpropertyEventFiltersBuilder_ == null) { + subpropertyEventFiltersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + subpropertyEventFilters_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + subpropertyEventFilters_ = null; + } + return subpropertyEventFiltersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page. If
+     * this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page. If
+     * this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page. If
+     * this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page. If
+     * this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page. If
+     * this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + private static final com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListSubpropertyEventFiltersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java new file mode 100644 index 000000000000..e580e0ddee87 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListSubpropertyEventFiltersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + java.util.List + getSubpropertyEventFiltersList(); + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters(int index); + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + int getSubpropertyEventFiltersCount(); + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + java.util.List + getSubpropertyEventFiltersOrBuilderList(); + /** + * + * + *
+   * List of subproperty event filters.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFiltersOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page. If
+   * this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page. If
+   * this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingCondition.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingCondition.java new file mode 100644 index 000000000000..3ab67bb2adb6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingCondition.java @@ -0,0 +1,1556 @@ +/* + * 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/admin/v1alpha/event_create_and_edit.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Defines a condition for when an Event Edit or Event Creation rule applies to
+ * an event.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MatchingCondition} + */ +public final class MatchingCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.MatchingCondition) + MatchingConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use MatchingCondition.newBuilder() to construct. + private MatchingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MatchingCondition() { + field_ = ""; + comparisonType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MatchingCondition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MatchingCondition.class, + com.google.analytics.admin.v1alpha.MatchingCondition.Builder.class); + } + + /** + * + * + *
+   * Comparison type for matching condition
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.MatchingCondition.ComparisonType} + */ + public enum ComparisonType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unknown
+     * 
+ * + * COMPARISON_TYPE_UNSPECIFIED = 0; + */ + COMPARISON_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Equals, case sensitive
+     * 
+ * + * EQUALS = 1; + */ + EQUALS(1), + /** + * + * + *
+     * Equals, case insensitive
+     * 
+ * + * EQUALS_CASE_INSENSITIVE = 2; + */ + EQUALS_CASE_INSENSITIVE(2), + /** + * + * + *
+     * Contains, case sensitive
+     * 
+ * + * CONTAINS = 3; + */ + CONTAINS(3), + /** + * + * + *
+     * Contains, case insensitive
+     * 
+ * + * CONTAINS_CASE_INSENSITIVE = 4; + */ + CONTAINS_CASE_INSENSITIVE(4), + /** + * + * + *
+     * Starts with, case sensitive
+     * 
+ * + * STARTS_WITH = 5; + */ + STARTS_WITH(5), + /** + * + * + *
+     * Starts with, case insensitive
+     * 
+ * + * STARTS_WITH_CASE_INSENSITIVE = 6; + */ + STARTS_WITH_CASE_INSENSITIVE(6), + /** + * + * + *
+     * Ends with, case sensitive
+     * 
+ * + * ENDS_WITH = 7; + */ + ENDS_WITH(7), + /** + * + * + *
+     * Ends with, case insensitive
+     * 
+ * + * ENDS_WITH_CASE_INSENSITIVE = 8; + */ + ENDS_WITH_CASE_INSENSITIVE(8), + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 9; + */ + GREATER_THAN(9), + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 10; + */ + GREATER_THAN_OR_EQUAL(10), + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 11; + */ + LESS_THAN(11), + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 12; + */ + LESS_THAN_OR_EQUAL(12), + /** + * + * + *
+     * regular expression. Only supported for web streams.
+     * 
+ * + * REGULAR_EXPRESSION = 13; + */ + REGULAR_EXPRESSION(13), + /** + * + * + *
+     * regular expression, case insensitive. Only supported for web streams.
+     * 
+ * + * REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; + */ + REGULAR_EXPRESSION_CASE_INSENSITIVE(14), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unknown
+     * 
+ * + * COMPARISON_TYPE_UNSPECIFIED = 0; + */ + public static final int COMPARISON_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Equals, case sensitive
+     * 
+ * + * EQUALS = 1; + */ + public static final int EQUALS_VALUE = 1; + /** + * + * + *
+     * Equals, case insensitive
+     * 
+ * + * EQUALS_CASE_INSENSITIVE = 2; + */ + public static final int EQUALS_CASE_INSENSITIVE_VALUE = 2; + /** + * + * + *
+     * Contains, case sensitive
+     * 
+ * + * CONTAINS = 3; + */ + public static final int CONTAINS_VALUE = 3; + /** + * + * + *
+     * Contains, case insensitive
+     * 
+ * + * CONTAINS_CASE_INSENSITIVE = 4; + */ + public static final int CONTAINS_CASE_INSENSITIVE_VALUE = 4; + /** + * + * + *
+     * Starts with, case sensitive
+     * 
+ * + * STARTS_WITH = 5; + */ + public static final int STARTS_WITH_VALUE = 5; + /** + * + * + *
+     * Starts with, case insensitive
+     * 
+ * + * STARTS_WITH_CASE_INSENSITIVE = 6; + */ + public static final int STARTS_WITH_CASE_INSENSITIVE_VALUE = 6; + /** + * + * + *
+     * Ends with, case sensitive
+     * 
+ * + * ENDS_WITH = 7; + */ + public static final int ENDS_WITH_VALUE = 7; + /** + * + * + *
+     * Ends with, case insensitive
+     * 
+ * + * ENDS_WITH_CASE_INSENSITIVE = 8; + */ + public static final int ENDS_WITH_CASE_INSENSITIVE_VALUE = 8; + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 9; + */ + public static final int GREATER_THAN_VALUE = 9; + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 10; + */ + public static final int GREATER_THAN_OR_EQUAL_VALUE = 10; + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 11; + */ + public static final int LESS_THAN_VALUE = 11; + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 12; + */ + public static final int LESS_THAN_OR_EQUAL_VALUE = 12; + /** + * + * + *
+     * regular expression. Only supported for web streams.
+     * 
+ * + * REGULAR_EXPRESSION = 13; + */ + public static final int REGULAR_EXPRESSION_VALUE = 13; + /** + * + * + *
+     * regular expression, case insensitive. Only supported for web streams.
+     * 
+ * + * REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; + */ + public static final int REGULAR_EXPRESSION_CASE_INSENSITIVE_VALUE = 14; + + 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 ComparisonType 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 ComparisonType forNumber(int value) { + switch (value) { + case 0: + return COMPARISON_TYPE_UNSPECIFIED; + case 1: + return EQUALS; + case 2: + return EQUALS_CASE_INSENSITIVE; + case 3: + return CONTAINS; + case 4: + return CONTAINS_CASE_INSENSITIVE; + case 5: + return STARTS_WITH; + case 6: + return STARTS_WITH_CASE_INSENSITIVE; + case 7: + return ENDS_WITH; + case 8: + return ENDS_WITH_CASE_INSENSITIVE; + case 9: + return GREATER_THAN; + case 10: + return GREATER_THAN_OR_EQUAL; + case 11: + return LESS_THAN; + case 12: + return LESS_THAN_OR_EQUAL; + case 13: + return REGULAR_EXPRESSION; + case 14: + return REGULAR_EXPRESSION_CASE_INSENSITIVE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComparisonType findValueByNumber(int number) { + return ComparisonType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.MatchingCondition.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ComparisonType[] VALUES = values(); + + public static ComparisonType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ComparisonType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.MatchingCondition.ComparisonType) + } + + public static final int FIELD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object field_ = ""; + /** + * + * + *
+   * Required. The name of the field that is compared against for the condition.
+   * If 'event_name' is specified this condition will apply to the name of the
+   * event.  Otherwise the condition will apply to a parameter with the
+   * specified name.
+   *
+   * This value cannot contain spaces.
+   * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + @java.lang.Override + public java.lang.String getField() { + java.lang.Object ref = field_; + 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(); + field_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the field that is compared against for the condition.
+   * If 'event_name' is specified this condition will apply to the name of the
+   * event.  Otherwise the condition will apply to a parameter with the
+   * specified name.
+   *
+   * This value cannot contain spaces.
+   * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COMPARISON_TYPE_FIELD_NUMBER = 2; + private int comparisonType_ = 0; + /** + * + * + *
+   * Required. The type of comparison to be applied to the value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonType. + */ + @java.lang.Override + public int getComparisonTypeValue() { + return comparisonType_; + } + /** + * + * + *
+   * Required. The type of comparison to be applied to the value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType getComparisonType() { + com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType result = + com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.forNumber( + comparisonType_); + return result == null + ? com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * Required. The value being compared against for this condition.  The runtime
+   * implementation may perform type coercion of this value to evaluate this
+   * condition based on the type of the parameter value.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The value being compared against for this condition.  The runtime
+   * implementation may perform type coercion of this value to evaluate this
+   * condition based on the type of the parameter value.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATED_FIELD_NUMBER = 4; + private boolean negated_ = false; + /** + * + * + *
+   * Whether or not the result of the comparison should be negated. For example,
+   * if `negated` is true, then 'equals' comparisons would function as 'not
+   * equals'.
+   * 
+ * + * bool negated = 4; + * + * @return The negated. + */ + @java.lang.Override + public boolean getNegated() { + return negated_; + } + + 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(field_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); + } + if (comparisonType_ + != com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType + .COMPARISON_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, comparisonType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); + } + if (negated_ != false) { + output.writeBool(4, negated_); + } + 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(field_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); + } + if (comparisonType_ + != com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType + .COMPARISON_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, comparisonType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); + } + if (negated_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, negated_); + } + 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.admin.v1alpha.MatchingCondition)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.MatchingCondition other = + (com.google.analytics.admin.v1alpha.MatchingCondition) obj; + + if (!getField().equals(other.getField())) return false; + if (comparisonType_ != other.comparisonType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getNegated() != other.getNegated()) 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) + FIELD_FIELD_NUMBER; + hash = (53 * hash) + getField().hashCode(); + hash = (37 * hash) + COMPARISON_TYPE_FIELD_NUMBER; + hash = (53 * hash) + comparisonType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + NEGATED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNegated()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.MatchingCondition 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; + } + /** + * + * + *
+   * Defines a condition for when an Event Edit or Event Creation rule applies to
+   * an event.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MatchingCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.MatchingCondition) + com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MatchingCondition.class, + com.google.analytics.admin.v1alpha.MatchingCondition.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.MatchingCondition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + field_ = ""; + comparisonType_ = 0; + value_ = ""; + negated_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingCondition getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingCondition build() { + com.google.analytics.admin.v1alpha.MatchingCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingCondition buildPartial() { + com.google.analytics.admin.v1alpha.MatchingCondition result = + new com.google.analytics.admin.v1alpha.MatchingCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.MatchingCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.field_ = field_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.comparisonType_ = comparisonType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.negated_ = negated_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.MatchingCondition) { + return mergeFrom((com.google.analytics.admin.v1alpha.MatchingCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.MatchingCondition other) { + if (other == com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance()) + return this; + if (!other.getField().isEmpty()) { + field_ = other.field_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.comparisonType_ != 0) { + setComparisonTypeValue(other.getComparisonTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getNegated() != false) { + setNegated(other.getNegated()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + field_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + comparisonType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + negated_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object field_ = ""; + /** + * + * + *
+     * Required. The name of the field that is compared against for the condition.
+     * If 'event_name' is specified this condition will apply to the name of the
+     * event.  Otherwise the condition will apply to a parameter with the
+     * specified name.
+     *
+     * This value cannot contain spaces.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + public java.lang.String getField() { + java.lang.Object ref = field_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + field_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the field that is compared against for the condition.
+     * If 'event_name' is specified this condition will apply to the name of the
+     * event.  Otherwise the condition will apply to a parameter with the
+     * specified name.
+     *
+     * This value cannot contain spaces.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + public com.google.protobuf.ByteString getFieldBytes() { + java.lang.Object ref = field_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + field_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the field that is compared against for the condition.
+     * If 'event_name' is specified this condition will apply to the name of the
+     * event.  Otherwise the condition will apply to a parameter with the
+     * specified name.
+     *
+     * This value cannot contain spaces.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The field to set. + * @return This builder for chaining. + */ + public Builder setField(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the field that is compared against for the condition.
+     * If 'event_name' is specified this condition will apply to the name of the
+     * event.  Otherwise the condition will apply to a parameter with the
+     * specified name.
+     *
+     * This value cannot contain spaces.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearField() { + field_ = getDefaultInstance().getField(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the field that is compared against for the condition.
+     * If 'event_name' is specified this condition will apply to the name of the
+     * event.  Otherwise the condition will apply to a parameter with the
+     * specified name.
+     *
+     * This value cannot contain spaces.
+     * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for field to set. + * @return This builder for chaining. + */ + public Builder setFieldBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + field_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int comparisonType_ = 0; + /** + * + * + *
+     * Required. The type of comparison to be applied to the value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonType. + */ + @java.lang.Override + public int getComparisonTypeValue() { + return comparisonType_; + } + /** + * + * + *
+     * Required. The type of comparison to be applied to the value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for comparisonType to set. + * @return This builder for chaining. + */ + public Builder setComparisonTypeValue(int value) { + comparisonType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type of comparison to be applied to the value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType getComparisonType() { + com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType result = + com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.forNumber( + comparisonType_); + return result == null + ? com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The type of comparison to be applied to the value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The comparisonType to set. + * @return This builder for chaining. + */ + public Builder setComparisonType( + com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + comparisonType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type of comparison to be applied to the value.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearComparisonType() { + bitField0_ = (bitField0_ & ~0x00000002); + comparisonType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * Required. The value being compared against for this condition.  The runtime
+     * implementation may perform type coercion of this value to evaluate this
+     * condition based on the type of the parameter value.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The value being compared against for this condition.  The runtime
+     * implementation may perform type coercion of this value to evaluate this
+     * condition based on the type of the parameter value.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The value being compared against for this condition.  The runtime
+     * implementation may perform type coercion of this value to evaluate this
+     * condition based on the type of the parameter value.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The value being compared against for this condition.  The runtime
+     * implementation may perform type coercion of this value to evaluate this
+     * condition based on the type of the parameter value.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The value being compared against for this condition.  The runtime
+     * implementation may perform type coercion of this value to evaluate this
+     * condition based on the type of the parameter value.
+     * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean negated_; + /** + * + * + *
+     * Whether or not the result of the comparison should be negated. For example,
+     * if `negated` is true, then 'equals' comparisons would function as 'not
+     * equals'.
+     * 
+ * + * bool negated = 4; + * + * @return The negated. + */ + @java.lang.Override + public boolean getNegated() { + return negated_; + } + /** + * + * + *
+     * Whether or not the result of the comparison should be negated. For example,
+     * if `negated` is true, then 'equals' comparisons would function as 'not
+     * equals'.
+     * 
+ * + * bool negated = 4; + * + * @param value The negated to set. + * @return This builder for chaining. + */ + public Builder setNegated(boolean value) { + + negated_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether or not the result of the comparison should be negated. For example,
+     * if `negated` is true, then 'equals' comparisons would function as 'not
+     * equals'.
+     * 
+ * + * bool negated = 4; + * + * @return This builder for chaining. + */ + public Builder clearNegated() { + bitField0_ = (bitField0_ & ~0x00000008); + negated_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.MatchingCondition) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.MatchingCondition) + private static final com.google.analytics.admin.v1alpha.MatchingCondition DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.MatchingCondition(); + } + + public static com.google.analytics.admin.v1alpha.MatchingCondition getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MatchingCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MatchingCondition getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingConditionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingConditionOrBuilder.java new file mode 100644 index 000000000000..ae2e4750b319 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingConditionOrBuilder.java @@ -0,0 +1,133 @@ +/* + * 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/admin/v1alpha/event_create_and_edit.proto + +package com.google.analytics.admin.v1alpha; + +public interface MatchingConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.MatchingCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the field that is compared against for the condition.
+   * If 'event_name' is specified this condition will apply to the name of the
+   * event.  Otherwise the condition will apply to a parameter with the
+   * specified name.
+   *
+   * This value cannot contain spaces.
+   * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The field. + */ + java.lang.String getField(); + /** + * + * + *
+   * Required. The name of the field that is compared against for the condition.
+   * If 'event_name' is specified this condition will apply to the name of the
+   * event.  Otherwise the condition will apply to a parameter with the
+   * specified name.
+   *
+   * This value cannot contain spaces.
+   * 
+ * + * string field = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for field. + */ + com.google.protobuf.ByteString getFieldBytes(); + + /** + * + * + *
+   * Required. The type of comparison to be applied to the value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonType. + */ + int getComparisonTypeValue(); + /** + * + * + *
+   * Required. The type of comparison to be applied to the value.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonType. + */ + com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType getComparisonType(); + + /** + * + * + *
+   * Required. The value being compared against for this condition.  The runtime
+   * implementation may perform type coercion of this value to evaluate this
+   * condition based on the type of the parameter value.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * Required. The value being compared against for this condition.  The runtime
+   * implementation may perform type coercion of this value to evaluate this
+   * condition based on the type of the parameter value.
+   * 
+ * + * string value = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * Whether or not the result of the comparison should be negated. For example,
+   * if `negated` is true, then 'equals' comparisons would function as 'not
+   * equals'.
+   * 
+ * + * bool negated = 4; + * + * @return The negated. + */ + boolean getNegated(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java new file mode 100644 index 000000000000..6b2f3ce888aa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java @@ -0,0 +1,1021 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A secret value used for sending hits to Measurement Protocol.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} + */ +public final class MeasurementProtocolSecret extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + MeasurementProtocolSecretOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeasurementProtocolSecret.newBuilder() to construct. + private MeasurementProtocolSecret(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeasurementProtocolSecret() { + name_ = ""; + displayName_ = ""; + secretValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeasurementProtocolSecret(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VALUE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretValue_ = ""; + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + @java.lang.Override + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + 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(); + secretValue_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretValue_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretValue_); + } + 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.admin.v1alpha.MeasurementProtocolSecret)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other = + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getSecretValue().equals(other.getSecretValue())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + SECRET_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSecretValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A secret value used for sending hits to Measurement Protocol.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + secretValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret build() { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret buildPartial() { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = + new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.secretValue_ = secretValue_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) { + return mergeFrom((com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other) { + if (other + == com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSecretValue().isEmpty()) { + secretValue_ = other.secretValue_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + secretValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.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. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object secretValue_ = ""; + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSecretValue() { + secretValue_ = getDefaultInstance().getSecretValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + private static final com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeasurementProtocolSecret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java new file mode 100644 index 000000000000..40768578b633 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface MeasurementProtocolSecretOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + java.lang.String getSecretValue(); + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + com.google.protobuf.ByteString getSecretValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java new file mode 100644 index 000000000000..7b04a55b515f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java @@ -0,0 +1,793 @@ +/* + * 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * To represent a number.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.NumericValue} + */ +public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.NumericValue) + NumericValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericValue.newBuilder() to construct. + private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumericValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.NumericValue.class, + com.google.analytics.admin.v1alpha.NumericValue.Builder.class); + } + + private int oneValueCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneValue_; + + public enum OneValueCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INT64_VALUE(1), + DOUBLE_VALUE(2), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 1: + return INT64_VALUE; + case 2: + return DOUBLE_VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int INT64_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneValueCase_ == 1) { + output.writeInt64(1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); + } + 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.CodedOutputStream.computeInt64Size( + 1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) 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.admin.v1alpha.NumericValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.NumericValue other = + (com.google.analytics.admin.v1alpha.NumericValue) obj; + + if (!getOneValueCase().equals(other.getOneValueCase())) return false; + switch (oneValueCase_) { + case 1: + if (getInt64Value() != other.getInt64Value()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 0: + default: + } + if (!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) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + break; + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.NumericValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * To represent a number.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.NumericValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.NumericValue) + com.google.analytics.admin.v1alpha.NumericValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.NumericValue.class, + com.google.analytics.admin.v1alpha.NumericValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.NumericValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oneValueCase_ = 0; + oneValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AccessReportProto + .internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue build() { + com.google.analytics.admin.v1alpha.NumericValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue buildPartial() { + com.google.analytics.admin.v1alpha.NumericValue result = + new com.google.analytics.admin.v1alpha.NumericValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.NumericValue result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.analytics.admin.v1alpha.NumericValue result) { + result.oneValueCase_ = oneValueCase_; + result.oneValue_ = this.oneValue_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.NumericValue) { + return mergeFrom((com.google.analytics.admin.v1alpha.NumericValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.NumericValue other) { + if (other == com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) + return this; + switch (other.getOneValueCase()) { + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case ONEVALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } // case 8 + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public Builder clearOneValue() { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + + oneValueCase_ = 1; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (oneValueCase_ == 1) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + + oneValueCase_ = 2; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (oneValueCase_ == 2) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.NumericValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.NumericValue) + private static final com.google.analytics.admin.v1alpha.NumericValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.NumericValue(); + } + + public static com.google.analytics.admin.v1alpha.NumericValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.NumericValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java new file mode 100644 index 000000000000..5bde39287f9b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 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/admin/v1alpha/access_report.proto + +package com.google.analytics.admin.v1alpha; + +public interface NumericValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.NumericValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + long getInt64Value(); + + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + com.google.analytics.admin.v1alpha.NumericValue.OneValueCase getOneValueCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutation.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutation.java new file mode 100644 index 000000000000..ff6eacd87014 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutation.java @@ -0,0 +1,883 @@ +/* + * 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/admin/v1alpha/event_create_and_edit.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Defines an event parameter to mutate.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ParameterMutation} + */ +public final class ParameterMutation extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ParameterMutation) + ParameterMutationOrBuilder { + private static final long serialVersionUID = 0L; + // Use ParameterMutation.newBuilder() to construct. + private ParameterMutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ParameterMutation() { + parameter_ = ""; + parameterValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ParameterMutation(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ParameterMutation.class, + com.google.analytics.admin.v1alpha.ParameterMutation.Builder.class); + } + + public static final int PARAMETER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameter_ = ""; + /** + * + * + *
+   * Required. The name of the parameter to mutate.
+   * This value must:
+   * * be less than 40 characters.
+   * * be unique across across all mutations within the rule
+   * * consist only of letters, digits or _ (underscores)
+   * For event edit rules, the name may also be set to 'event_name' to modify
+   * the event_name in place.
+   * 
+ * + * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parameter. + */ + @java.lang.Override + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + 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(); + parameter_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the parameter to mutate.
+   * This value must:
+   * * be less than 40 characters.
+   * * be unique across across all mutations within the rule
+   * * consist only of letters, digits or _ (underscores)
+   * For event edit rules, the name may also be set to 'event_name' to modify
+   * the event_name in place.
+   * 
+ * + * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parameter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterValue_ = ""; + /** + * + * + *
+   * Required. The value mutation to perform.
+   * * Must be less than 100 characters.
+   * * To specify a constant value for the param, use the value's string.
+   * * To copy value from another parameter, use syntax like
+   * "[[other_parameter]]" For more details, see this [help center
+   * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
+   * 
+ * + * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parameterValue. + */ + @java.lang.Override + public java.lang.String getParameterValue() { + java.lang.Object ref = parameterValue_; + 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(); + parameterValue_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The value mutation to perform.
+   * * Must be less than 100 characters.
+   * * To specify a constant value for the param, use the value's string.
+   * * To copy value from another parameter, use syntax like
+   * "[[other_parameter]]" For more details, see this [help center
+   * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
+   * 
+ * + * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parameterValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterValueBytes() { + java.lang.Object ref = parameterValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterValue_ = 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(parameter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterValue_); + } + 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(parameter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parameter_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterValue_); + } + 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.admin.v1alpha.ParameterMutation)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ParameterMutation other = + (com.google.analytics.admin.v1alpha.ParameterMutation) obj; + + if (!getParameter().equals(other.getParameter())) return false; + if (!getParameterValue().equals(other.getParameterValue())) 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) + PARAMETER_FIELD_NUMBER; + hash = (53 * hash) + getParameter().hashCode(); + hash = (37 * hash) + PARAMETER_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getParameterValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.ParameterMutation 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; + } + /** + * + * + *
+   * Defines an event parameter to mutate.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ParameterMutation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ParameterMutation) + com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ParameterMutation.class, + com.google.analytics.admin.v1alpha.ParameterMutation.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ParameterMutation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parameter_ = ""; + parameterValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.EventCreateAndEdit + .internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ParameterMutation getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ParameterMutation build() { + com.google.analytics.admin.v1alpha.ParameterMutation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ParameterMutation buildPartial() { + com.google.analytics.admin.v1alpha.ParameterMutation result = + new com.google.analytics.admin.v1alpha.ParameterMutation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.ParameterMutation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parameter_ = parameter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameterValue_ = parameterValue_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ParameterMutation) { + return mergeFrom((com.google.analytics.admin.v1alpha.ParameterMutation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ParameterMutation other) { + if (other == com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance()) + return this; + if (!other.getParameter().isEmpty()) { + parameter_ = other.parameter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getParameterValue().isEmpty()) { + parameterValue_ = other.parameterValue_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parameter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parameterValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parameter_ = ""; + /** + * + * + *
+     * Required. The name of the parameter to mutate.
+     * This value must:
+     * * be less than 40 characters.
+     * * be unique across across all mutations within the rule
+     * * consist only of letters, digits or _ (underscores)
+     * For event edit rules, the name may also be set to 'event_name' to modify
+     * the event_name in place.
+     * 
+ * + * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parameter. + */ + public java.lang.String getParameter() { + java.lang.Object ref = parameter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the parameter to mutate.
+     * This value must:
+     * * be less than 40 characters.
+     * * be unique across across all mutations within the rule
+     * * consist only of letters, digits or _ (underscores)
+     * For event edit rules, the name may also be set to 'event_name' to modify
+     * the event_name in place.
+     * 
+ * + * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parameter. + */ + public com.google.protobuf.ByteString getParameterBytes() { + java.lang.Object ref = parameter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the parameter to mutate.
+     * This value must:
+     * * be less than 40 characters.
+     * * be unique across across all mutations within the rule
+     * * consist only of letters, digits or _ (underscores)
+     * For event edit rules, the name may also be set to 'event_name' to modify
+     * the event_name in place.
+     * 
+ * + * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parameter to set. + * @return This builder for chaining. + */ + public Builder setParameter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parameter to mutate.
+     * This value must:
+     * * be less than 40 characters.
+     * * be unique across across all mutations within the rule
+     * * consist only of letters, digits or _ (underscores)
+     * For event edit rules, the name may also be set to 'event_name' to modify
+     * the event_name in place.
+     * 
+ * + * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParameter() { + parameter_ = getDefaultInstance().getParameter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the parameter to mutate.
+     * This value must:
+     * * be less than 40 characters.
+     * * be unique across across all mutations within the rule
+     * * consist only of letters, digits or _ (underscores)
+     * For event edit rules, the name may also be set to 'event_name' to modify
+     * the event_name in place.
+     * 
+ * + * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parameter to set. + * @return This builder for chaining. + */ + public Builder setParameterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object parameterValue_ = ""; + /** + * + * + *
+     * Required. The value mutation to perform.
+     * * Must be less than 100 characters.
+     * * To specify a constant value for the param, use the value's string.
+     * * To copy value from another parameter, use syntax like
+     * "[[other_parameter]]" For more details, see this [help center
+     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
+     * 
+ * + * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parameterValue. + */ + public java.lang.String getParameterValue() { + java.lang.Object ref = parameterValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The value mutation to perform.
+     * * Must be less than 100 characters.
+     * * To specify a constant value for the param, use the value's string.
+     * * To copy value from another parameter, use syntax like
+     * "[[other_parameter]]" For more details, see this [help center
+     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
+     * 
+ * + * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parameterValue. + */ + public com.google.protobuf.ByteString getParameterValueBytes() { + java.lang.Object ref = parameterValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The value mutation to perform.
+     * * Must be less than 100 characters.
+     * * To specify a constant value for the param, use the value's string.
+     * * To copy value from another parameter, use syntax like
+     * "[[other_parameter]]" For more details, see this [help center
+     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
+     * 
+ * + * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The parameterValue to set. + * @return This builder for chaining. + */ + public Builder setParameterValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameterValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The value mutation to perform.
+     * * Must be less than 100 characters.
+     * * To specify a constant value for the param, use the value's string.
+     * * To copy value from another parameter, use syntax like
+     * "[[other_parameter]]" For more details, see this [help center
+     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
+     * 
+ * + * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearParameterValue() { + parameterValue_ = getDefaultInstance().getParameterValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The value mutation to perform.
+     * * Must be less than 100 characters.
+     * * To specify a constant value for the param, use the value's string.
+     * * To copy value from another parameter, use syntax like
+     * "[[other_parameter]]" For more details, see this [help center
+     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
+     * 
+ * + * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for parameterValue to set. + * @return This builder for chaining. + */ + public Builder setParameterValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameterValue_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ParameterMutation) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ParameterMutation) + private static final com.google.analytics.admin.v1alpha.ParameterMutation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ParameterMutation(); + } + + public static com.google.analytics.admin.v1alpha.ParameterMutation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ParameterMutation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ParameterMutation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutationOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutationOrBuilder.java similarity index 75% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutationOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutationOrBuilder.java index ef0ff0b00c37..b3968d5f243e 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutationOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutationOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/event_create_and_edit.proto package com.google.analytics.admin.v1alpha; -public interface ParameterMutationOrBuilder extends +public interface ParameterMutationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ParameterMutation) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the parameter to mutate.
    * This value must:
@@ -19,10 +37,13 @@ public interface ParameterMutationOrBuilder extends
    * 
* * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parameter. */ java.lang.String getParameter(); /** + * + * *
    * Required. The name of the parameter to mutate.
    * This value must:
@@ -34,12 +55,14 @@ public interface ParameterMutationOrBuilder extends
    * 
* * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parameter. */ - com.google.protobuf.ByteString - getParameterBytes(); + com.google.protobuf.ByteString getParameterBytes(); /** + * + * *
    * Required. The value mutation to perform.
    * * Must be less than 100 characters.
@@ -50,10 +73,13 @@ public interface ParameterMutationOrBuilder extends
    * 
* * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The parameterValue. */ java.lang.String getParameterValue(); /** + * + * *
    * Required. The value mutation to perform.
    * * Must be less than 100 characters.
@@ -64,8 +90,8 @@ public interface ParameterMutationOrBuilder extends
    * 
* * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; + * * @return The bytes for parameterValue. */ - com.google.protobuf.ByteString - getParameterValueBytes(); + com.google.protobuf.ByteString getParameterValueBytes(); } diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindow.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindow.java similarity index 77% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindow.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindow.java index f08225ce3a4b..f029bd9081e3 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindow.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindow.java @@ -1,52 +1,74 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; /** + * + * *
  * Settings for a SKAdNetwork conversion postback window.
  * 
* * Protobuf type {@code google.analytics.admin.v1alpha.PostbackWindow} */ -public final class PostbackWindow extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PostbackWindow extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.PostbackWindow) PostbackWindowOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PostbackWindow.newBuilder() to construct. private PostbackWindow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PostbackWindow() { conversionValues_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PostbackWindow(); } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.PostbackWindow.class, com.google.analytics.admin.v1alpha.PostbackWindow.Builder.class); + com.google.analytics.admin.v1alpha.PostbackWindow.class, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder.class); } public static final int CONVERSION_VALUES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List conversionValues_; /** + * + * *
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -58,10 +80,13 @@ protected java.lang.Object newInstance(
    * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
    */
   @java.lang.Override
-  public java.util.List getConversionValuesList() {
+  public java.util.List
+      getConversionValuesList() {
     return conversionValues_;
   }
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -73,11 +98,13 @@ public java.util.List getCo
    * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getConversionValuesOrBuilderList() {
     return conversionValues_;
   }
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -93,6 +120,8 @@ public int getConversionValuesCount() {
     return conversionValues_.size();
   }
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -108,6 +137,8 @@ public com.google.analytics.admin.v1alpha.ConversionValues getConversionValues(i
     return conversionValues_.get(index);
   }
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -127,6 +158,8 @@ public com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversio
   public static final int POSTBACK_WINDOW_SETTINGS_ENABLED_FIELD_NUMBER = 2;
   private boolean postbackWindowSettingsEnabled_ = false;
   /**
+   *
+   *
    * 
    * If enable_postback_window_settings is true, conversion_values
    * must be populated and will be used for determining when and how to set the
@@ -137,6 +170,7 @@ public com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversio
    * 
* * bool postback_window_settings_enabled = 2; + * * @return The postbackWindowSettingsEnabled. */ @java.lang.Override @@ -145,6 +179,7 @@ public boolean getPostbackWindowSettingsEnabled() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -156,8 +191,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < conversionValues_.size(); i++) { output.writeMessage(1, conversionValues_.get(i)); } @@ -174,12 +208,11 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < conversionValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, conversionValues_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversionValues_.get(i)); } if (postbackWindowSettingsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, postbackWindowSettingsEnabled_); + size += + com.google.protobuf.CodedOutputStream.computeBoolSize(2, postbackWindowSettingsEnabled_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -189,17 +222,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.analytics.admin.v1alpha.PostbackWindow)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.PostbackWindow other = (com.google.analytics.admin.v1alpha.PostbackWindow) obj; + com.google.analytics.admin.v1alpha.PostbackWindow other = + (com.google.analytics.admin.v1alpha.PostbackWindow) obj; - if (!getConversionValuesList() - .equals(other.getConversionValuesList())) return false; - if (getPostbackWindowSettingsEnabled() - != other.getPostbackWindowSettingsEnabled()) return false; + if (!getConversionValuesList().equals(other.getConversionValuesList())) return false; + if (getPostbackWindowSettingsEnabled() != other.getPostbackWindowSettingsEnabled()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -216,139 +249,143 @@ public int hashCode() { hash = (53 * hash) + getConversionValuesList().hashCode(); } hash = (37 * hash) + POSTBACK_WINDOW_SETTINGS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getPostbackWindowSettingsEnabled()); + hash = + (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPostbackWindowSettingsEnabled()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.PostbackWindow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + public static com.google.analytics.admin.v1alpha.PostbackWindow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.analytics.admin.v1alpha.PostbackWindow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.analytics.admin.v1alpha.PostbackWindow parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } + public static Builder newBuilder(com.google.analytics.admin.v1alpha.PostbackWindow prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Settings for a SKAdNetwork conversion postback window.
    * 
* * Protobuf type {@code google.analytics.admin.v1alpha.PostbackWindow} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.PostbackWindow) com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.PostbackWindow.class, com.google.analytics.admin.v1alpha.PostbackWindow.Builder.class); + com.google.analytics.admin.v1alpha.PostbackWindow.class, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder.class); } // Construct using com.google.analytics.admin.v1alpha.PostbackWindow.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -365,9 +402,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; } @java.lang.Override @@ -386,14 +423,18 @@ public com.google.analytics.admin.v1alpha.PostbackWindow build() { @java.lang.Override public com.google.analytics.admin.v1alpha.PostbackWindow buildPartial() { - com.google.analytics.admin.v1alpha.PostbackWindow result = new com.google.analytics.admin.v1alpha.PostbackWindow(this); + com.google.analytics.admin.v1alpha.PostbackWindow result = + new com.google.analytics.admin.v1alpha.PostbackWindow(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.PostbackWindow result) { + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.PostbackWindow result) { if (conversionValuesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { conversionValues_ = java.util.Collections.unmodifiableList(conversionValues_); @@ -416,38 +457,39 @@ private void buildPartial0(com.google.analytics.admin.v1alpha.PostbackWindow res public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.analytics.admin.v1alpha.PostbackWindow) { - return mergeFrom((com.google.analytics.admin.v1alpha.PostbackWindow)other); + return mergeFrom((com.google.analytics.admin.v1alpha.PostbackWindow) other); } else { super.mergeFrom(other); return this; @@ -455,7 +497,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.analytics.admin.v1alpha.PostbackWindow other) { - if (other == com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) return this; + if (other == com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) + return this; if (conversionValuesBuilder_ == null) { if (!other.conversionValues_.isEmpty()) { if (conversionValues_.isEmpty()) { @@ -474,9 +517,10 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.PostbackWindow other conversionValuesBuilder_ = null; conversionValues_ = other.conversionValues_; bitField0_ = (bitField0_ & ~0x00000001); - conversionValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConversionValuesFieldBuilder() : null; + conversionValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConversionValuesFieldBuilder() + : null; } else { conversionValuesBuilder_.addAllMessages(other.conversionValues_); } @@ -511,30 +555,33 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.analytics.admin.v1alpha.ConversionValues m = - input.readMessage( - com.google.analytics.admin.v1alpha.ConversionValues.parser(), - extensionRegistry); - if (conversionValuesBuilder_ == null) { - ensureConversionValuesIsMutable(); - conversionValues_.add(m); - } else { - conversionValuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: { - postbackWindowSettingsEnabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.analytics.admin.v1alpha.ConversionValues m = + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionValues.parser(), + extensionRegistry); + if (conversionValuesBuilder_ == null) { + ensureConversionValuesIsMutable(); + conversionValues_.add(m); + } else { + conversionValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + postbackWindowSettingsEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -544,21 +591,30 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List conversionValues_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureConversionValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - conversionValues_ = new java.util.ArrayList(conversionValues_); + conversionValues_ = + new java.util.ArrayList( + conversionValues_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionValues, com.google.analytics.admin.v1alpha.ConversionValues.Builder, com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder> conversionValuesBuilder_; + com.google.analytics.admin.v1alpha.ConversionValues, + com.google.analytics.admin.v1alpha.ConversionValues.Builder, + com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder> + conversionValuesBuilder_; /** + * + * *
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -569,7 +625,8 @@ private void ensureConversionValuesIsMutable() {
      *
      * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
      */
-    public java.util.List getConversionValuesList() {
+    public java.util.List
+        getConversionValuesList() {
       if (conversionValuesBuilder_ == null) {
         return java.util.Collections.unmodifiableList(conversionValues_);
       } else {
@@ -577,6 +634,8 @@ public java.util.List getCo
       }
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -595,6 +654,8 @@ public int getConversionValuesCount() {
       }
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -613,6 +674,8 @@ public com.google.analytics.admin.v1alpha.ConversionValues getConversionValues(i
       }
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -638,6 +701,8 @@ public Builder setConversionValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -660,6 +725,8 @@ public Builder setConversionValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -684,6 +751,8 @@ public Builder addConversionValues(com.google.analytics.admin.v1alpha.Conversion
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -709,6 +778,8 @@ public Builder addConversionValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -731,6 +802,8 @@ public Builder addConversionValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -753,6 +826,8 @@ public Builder addConversionValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -767,8 +842,7 @@ public Builder addAllConversionValues(
         java.lang.Iterable values) {
       if (conversionValuesBuilder_ == null) {
         ensureConversionValuesIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, conversionValues_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionValues_);
         onChanged();
       } else {
         conversionValuesBuilder_.addAllMessages(values);
@@ -776,6 +850,8 @@ public Builder addAllConversionValues(
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -797,6 +873,8 @@ public Builder clearConversionValues() {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -818,6 +896,8 @@ public Builder removeConversionValues(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -833,6 +913,8 @@ public com.google.analytics.admin.v1alpha.ConversionValues.Builder getConversion
       return getConversionValuesFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -843,14 +925,17 @@ public com.google.analytics.admin.v1alpha.ConversionValues.Builder getConversion
      *
      * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
      */
-    public com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversionValuesOrBuilder(
-        int index) {
+    public com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder
+        getConversionValuesOrBuilder(int index) {
       if (conversionValuesBuilder_ == null) {
-        return conversionValues_.get(index);  } else {
+        return conversionValues_.get(index);
+      } else {
         return conversionValuesBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -861,8 +946,8 @@ public com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversio
      *
      * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
      */
-    public java.util.List 
-         getConversionValuesOrBuilderList() {
+    public java.util.List
+        getConversionValuesOrBuilderList() {
       if (conversionValuesBuilder_ != null) {
         return conversionValuesBuilder_.getMessageOrBuilderList();
       } else {
@@ -870,6 +955,8 @@ public com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversio
       }
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -880,11 +967,14 @@ public com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversio
      *
      * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
      */
-    public com.google.analytics.admin.v1alpha.ConversionValues.Builder addConversionValuesBuilder() {
-      return getConversionValuesFieldBuilder().addBuilder(
-          com.google.analytics.admin.v1alpha.ConversionValues.getDefaultInstance());
+    public com.google.analytics.admin.v1alpha.ConversionValues.Builder
+        addConversionValuesBuilder() {
+      return getConversionValuesFieldBuilder()
+          .addBuilder(com.google.analytics.admin.v1alpha.ConversionValues.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -897,10 +987,13 @@ public com.google.analytics.admin.v1alpha.ConversionValues.Builder addConversion
      */
     public com.google.analytics.admin.v1alpha.ConversionValues.Builder addConversionValuesBuilder(
         int index) {
-      return getConversionValuesFieldBuilder().addBuilder(
-          index, com.google.analytics.admin.v1alpha.ConversionValues.getDefaultInstance());
+      return getConversionValuesFieldBuilder()
+          .addBuilder(
+              index, com.google.analytics.admin.v1alpha.ConversionValues.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * Ordering of the repeated field will be used to prioritize the conversion
      * value settings. Lower indexed entries are prioritized higher. The first
@@ -911,16 +1004,22 @@ public com.google.analytics.admin.v1alpha.ConversionValues.Builder addConversion
      *
      * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
      */
-    public java.util.List 
-         getConversionValuesBuilderList() {
+    public java.util.List
+        getConversionValuesBuilderList() {
       return getConversionValuesFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.analytics.admin.v1alpha.ConversionValues, com.google.analytics.admin.v1alpha.ConversionValues.Builder, com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder> 
+            com.google.analytics.admin.v1alpha.ConversionValues,
+            com.google.analytics.admin.v1alpha.ConversionValues.Builder,
+            com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder>
         getConversionValuesFieldBuilder() {
       if (conversionValuesBuilder_ == null) {
-        conversionValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.analytics.admin.v1alpha.ConversionValues, com.google.analytics.admin.v1alpha.ConversionValues.Builder, com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder>(
+        conversionValuesBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.analytics.admin.v1alpha.ConversionValues,
+                com.google.analytics.admin.v1alpha.ConversionValues.Builder,
+                com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder>(
                 conversionValues_,
                 ((bitField0_ & 0x00000001) != 0),
                 getParentForChildren(),
@@ -930,8 +1029,10 @@ public com.google.analytics.admin.v1alpha.ConversionValues.Builder addConversion
       return conversionValuesBuilder_;
     }
 
-    private boolean postbackWindowSettingsEnabled_ ;
+    private boolean postbackWindowSettingsEnabled_;
     /**
+     *
+     *
      * 
      * If enable_postback_window_settings is true, conversion_values
      * must be populated and will be used for determining when and how to set the
@@ -942,6 +1043,7 @@ public com.google.analytics.admin.v1alpha.ConversionValues.Builder addConversion
      * 
* * bool postback_window_settings_enabled = 2; + * * @return The postbackWindowSettingsEnabled. */ @java.lang.Override @@ -949,6 +1051,8 @@ public boolean getPostbackWindowSettingsEnabled() { return postbackWindowSettingsEnabled_; } /** + * + * *
      * If enable_postback_window_settings is true, conversion_values
      * must be populated and will be used for determining when and how to set the
@@ -959,6 +1063,7 @@ public boolean getPostbackWindowSettingsEnabled() {
      * 
* * bool postback_window_settings_enabled = 2; + * * @param value The postbackWindowSettingsEnabled to set. * @return This builder for chaining. */ @@ -970,6 +1075,8 @@ public Builder setPostbackWindowSettingsEnabled(boolean value) { return this; } /** + * + * *
      * If enable_postback_window_settings is true, conversion_values
      * must be populated and will be used for determining when and how to set the
@@ -980,6 +1087,7 @@ public Builder setPostbackWindowSettingsEnabled(boolean value) {
      * 
* * bool postback_window_settings_enabled = 2; + * * @return This builder for chaining. */ public Builder clearPostbackWindowSettingsEnabled() { @@ -988,9 +1096,9 @@ public Builder clearPostbackWindowSettingsEnabled() { onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1000,12 +1108,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.PostbackWindow) } // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.PostbackWindow) private static final com.google.analytics.admin.v1alpha.PostbackWindow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.PostbackWindow(); } @@ -1014,27 +1122,27 @@ public static com.google.analytics.admin.v1alpha.PostbackWindow getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PostbackWindow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PostbackWindow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1049,6 +1157,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.analytics.admin.v1alpha.PostbackWindow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindowOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindowOrBuilder.java similarity index 83% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindowOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindowOrBuilder.java index 88937bcde6a6..c7ffd1f4710e 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindowOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PostbackWindowOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface PostbackWindowOrBuilder extends +public interface PostbackWindowOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.PostbackWindow) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -18,9 +36,10 @@ public interface PostbackWindowOrBuilder extends
    *
    * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
    */
-  java.util.List 
-      getConversionValuesList();
+  java.util.List getConversionValuesList();
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -33,6 +52,8 @@ public interface PostbackWindowOrBuilder extends
    */
   com.google.analytics.admin.v1alpha.ConversionValues getConversionValues(int index);
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -45,6 +66,8 @@ public interface PostbackWindowOrBuilder extends
    */
   int getConversionValuesCount();
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -55,9 +78,11 @@ public interface PostbackWindowOrBuilder extends
    *
    * repeated .google.analytics.admin.v1alpha.ConversionValues conversion_values = 1;
    */
-  java.util.List 
+  java.util.List
       getConversionValuesOrBuilderList();
   /**
+   *
+   *
    * 
    * Ordering of the repeated field will be used to prioritize the conversion
    * value settings. Lower indexed entries are prioritized higher. The first
@@ -72,6 +97,8 @@ com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversionValues
       int index);
 
   /**
+   *
+   *
    * 
    * If enable_postback_window_settings is true, conversion_values
    * must be populated and will be used for determining when and how to set the
@@ -82,6 +109,7 @@ com.google.analytics.admin.v1alpha.ConversionValuesOrBuilder getConversionValues
    * 
* * bool postback_window_settings_enabled = 2; + * * @return The postbackWindowSettingsEnabled. */ boolean getPostbackWindowSettingsEnabled(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java new file mode 100644 index 000000000000..7a3d028640b9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -0,0 +1,3373 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a Google Analytics GA4 property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Property} + */ +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.Property) + PropertyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Property.newBuilder() to construct. + private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Property() { + name_ = ""; + propertyType_ = 0; + parent_ = ""; + displayName_ = ""; + industryCategory_ = 0; + timeZone_ = ""; + currencyCode_ = ""; + serviceLevel_ = 0; + account_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Property(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Property.class, + com.google.analytics.admin.v1alpha.Property.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_TYPE_FIELD_NUMBER = 14; + private int propertyType_ = 0; + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int PARENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDUSTRY_CATEGORY_FIELD_NUMBER = 6; + private int industryCategory_ = 0; + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @return The enum numeric value on the wire for industryCategory. + */ + @java.lang.Override + public int getIndustryCategoryValue() { + return industryCategory_; + } + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @return The industryCategory. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory() { + com.google.analytics.admin.v1alpha.IndustryCategory result = + com.google.analytics.admin.v1alpha.IndustryCategory.forNumber(industryCategory_); + return result == null + ? com.google.analytics.admin.v1alpha.IndustryCategory.UNRECOGNIZED + : result; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENCY_CODE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object currencyCode_ = ""; + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The currencyCode. + */ + @java.lang.Override + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + 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(); + currencyCode_ = s; + return s; + } + } + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The bytes for currencyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_LEVEL_FIELD_NUMBER = 10; + private int serviceLevel_ = 0; + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel() { + com.google.analytics.admin.v1alpha.ServiceLevel result = + com.google.analytics.admin.v1alpha.ServiceLevel.forNumber(serviceLevel_); + return result == null ? com.google.analytics.admin.v1alpha.ServiceLevel.UNRECOGNIZED : result; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int ACCOUNT_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object account_ = ""; + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + if (industryCategory_ + != com.google.analytics.admin.v1alpha.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, industryCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); + } + if (serviceLevel_ + != com.google.analytics.admin.v1alpha.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(10, serviceLevel_); + } + if (deleteTime_ != null) { + output.writeMessage(11, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(12, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, account_); + } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(14, propertyType_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + if (industryCategory_ + != com.google.analytics.admin.v1alpha.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, industryCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); + } + if (serviceLevel_ + != com.google.analytics.admin.v1alpha.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, serviceLevel_); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, account_); + } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, propertyType_); + } + 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.admin.v1alpha.Property)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.Property other = + (com.google.analytics.admin.v1alpha.Property) obj; + + if (!getName().equals(other.getName())) return false; + if (propertyType_ != other.propertyType_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (industryCategory_ != other.industryCategory_) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (serviceLevel_ != other.serviceLevel_) return false; + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getAccount().equals(other.getAccount())) 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) + PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + propertyType_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + INDUSTRY_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + industryCategory_; + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + hash = (37 * hash) + SERVICE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + serviceLevel_; + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Property parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.Property parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.Property prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a Google Analytics GA4 property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.Property} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.Property) + com.google.analytics.admin.v1alpha.PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.Property.class, + com.google.analytics.admin.v1alpha.Property.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.Property.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + propertyType_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + parent_ = ""; + displayName_ = ""; + industryCategory_ = 0; + timeZone_ = ""; + currencyCode_ = ""; + serviceLevel_ = 0; + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + account_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_Property_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property build() { + com.google.analytics.admin.v1alpha.Property result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property buildPartial() { + com.google.analytics.admin.v1alpha.Property result = + new com.google.analytics.admin.v1alpha.Property(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.Property result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propertyType_ = propertyType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.industryCategory_ = industryCategory_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.currencyCode_ = currencyCode_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.serviceLevel_ = serviceLevel_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.account_ = account_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.Property) { + return mergeFrom((com.google.analytics.admin.v1alpha.Property) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.Property other) { + if (other == com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.propertyType_ != 0) { + setPropertyTypeValue(other.getPropertyTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.industryCategory_ != 0) { + setIndustryCategoryValue(other.getIndustryCategoryValue()); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getCurrencyCode().isEmpty()) { + currencyCode_ = other.currencyCode_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.serviceLevel_ != 0) { + setServiceLevelValue(other.getServiceLevelValue()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + bitField0_ |= 0x00001000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: + { + industryCategory_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 80: + { + serviceLevel_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + account_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + propertyType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 112 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.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. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int propertyType_ = 0; + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyTypeValue(int value) { + propertyType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyType(com.google.analytics.admin.v1alpha.PropertyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + propertyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearPropertyType() { + bitField0_ = (bitField0_ & ~0x00000002); + propertyType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int industryCategory_ = 0; + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @return The enum numeric value on the wire for industryCategory. + */ + @java.lang.Override + public int getIndustryCategoryValue() { + return industryCategory_; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @param value The enum numeric value on the wire for industryCategory to set. + * @return This builder for chaining. + */ + public Builder setIndustryCategoryValue(int value) { + industryCategory_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @return The industryCategory. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory() { + com.google.analytics.admin.v1alpha.IndustryCategory result = + com.google.analytics.admin.v1alpha.IndustryCategory.forNumber(industryCategory_); + return result == null + ? com.google.analytics.admin.v1alpha.IndustryCategory.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @param value The industryCategory to set. + * @return This builder for chaining. + */ + public Builder setIndustryCategory(com.google.analytics.admin.v1alpha.IndustryCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + industryCategory_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @return This builder for chaining. + */ + public Builder clearIndustryCategory() { + bitField0_ = (bitField0_ & ~0x00000040); + industryCategory_ = 0; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object currencyCode_ = ""; + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @return The currencyCode. + */ + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @return The bytes for currencyCode. + */ + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @param value The currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currencyCode_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @return This builder for chaining. + */ + public Builder clearCurrencyCode() { + currencyCode_ = getDefaultInstance().getCurrencyCode(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int serviceLevel_ = 0; + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevelValue(int value) { + serviceLevel_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel() { + com.google.analytics.admin.v1alpha.ServiceLevel result = + com.google.analytics.admin.v1alpha.ServiceLevel.forNumber(serviceLevel_); + return result == null ? com.google.analytics.admin.v1alpha.ServiceLevel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevel(com.google.analytics.admin.v1alpha.ServiceLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + serviceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceLevel() { + bitField0_ = (bitField0_ & ~0x00000200); + serviceLevel_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000400); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000800); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private java.lang.Object account_ = ""; + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + account_ = getDefaultInstance().getAccount(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + account_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.Property) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.Property) + private static final com.google.analytics.admin.v1alpha.Property DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.Property(); + } + + public static com.google.analytics.admin.v1alpha.Property getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java new file mode 100644 index 000000000000..5d1a12f94230 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -0,0 +1,475 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface PropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.Property) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + int getPropertyTypeValue(); + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + com.google.analytics.admin.v1alpha.PropertyType getPropertyType(); + + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @return The enum numeric value on the wire for industryCategory. + */ + int getIndustryCategoryValue(); + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; + * + * @return The industryCategory. + */ + com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory(); + + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The currencyCode. + */ + java.lang.String getCurrencyCode(); + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The bytes for currencyCode. + */ + com.google.protobuf.ByteString getCurrencyCodeBytes(); + + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + int getServiceLevelValue(); + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel(); + + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java new file mode 100644 index 000000000000..87b4273a0097 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java @@ -0,0 +1,1180 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A virtual resource representing metadata for a GA4 property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.PropertySummary} + */ +public final class PropertySummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.PropertySummary) + PropertySummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PropertySummary.newBuilder() to construct. + private PropertySummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PropertySummary() { + property_ = ""; + displayName_ = ""; + propertyType_ = 0; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertySummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.PropertySummary.class, + com.google.analytics.admin.v1alpha.PropertySummary.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_TYPE_FIELD_NUMBER = 3; + private int propertyType_ = 0; + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + + public static final int PARENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, propertyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (propertyType_ + != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, propertyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + 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.admin.v1alpha.PropertySummary)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.PropertySummary other = + (com.google.analytics.admin.v1alpha.PropertySummary) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (propertyType_ != other.propertyType_) return false; + if (!getParent().equals(other.getParent())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + propertyType_; + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.PropertySummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A virtual resource representing metadata for a GA4 property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.PropertySummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.PropertySummary) + com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.PropertySummary.class, + com.google.analytics.admin.v1alpha.PropertySummary.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.PropertySummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + displayName_ = ""; + propertyType_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertySummary getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertySummary build() { + com.google.analytics.admin.v1alpha.PropertySummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertySummary buildPartial() { + com.google.analytics.admin.v1alpha.PropertySummary result = + new com.google.analytics.admin.v1alpha.PropertySummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.PropertySummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.propertyType_ = propertyType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.PropertySummary) { + return mergeFrom((com.google.analytics.admin.v1alpha.PropertySummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.PropertySummary other) { + if (other == com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance()) + return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.propertyType_ != 0) { + setPropertyTypeValue(other.getPropertyTypeValue()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + propertyType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int propertyType_ = 0; + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @param value The enum numeric value on the wire for propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyTypeValue(int value) { + propertyType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { + com.google.analytics.admin.v1alpha.PropertyType result = + com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @param value The propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyType(com.google.analytics.admin.v1alpha.PropertyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + propertyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearPropertyType() { + bitField0_ = (bitField0_ & ~0x00000004); + propertyType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.PropertySummary) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.PropertySummary) + private static final com.google.analytics.admin.v1alpha.PropertySummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.PropertySummary(); + } + + public static com.google.analytics.admin.v1alpha.PropertySummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertySummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertySummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java new file mode 100644 index 000000000000..f8eae5a86d27 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface PropertySummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.PropertySummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + int getPropertyTypeValue(); + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1alpha.PropertyType property_type = 3; + * + * @return The propertyType. + */ + com.google.analytics.admin.v1alpha.PropertyType getPropertyType(); + + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java new file mode 100644 index 000000000000..86b2d72d1899 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java @@ -0,0 +1,198 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Types of Property resources.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.PropertyType} + */ +public enum PropertyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown or unspecified property type
+   * 
+ * + * PROPERTY_TYPE_UNSPECIFIED = 0; + */ + PROPERTY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Ordinary GA4 property
+   * 
+ * + * PROPERTY_TYPE_ORDINARY = 1; + */ + PROPERTY_TYPE_ORDINARY(1), + /** + * + * + *
+   * GA4 subproperty
+   * 
+ * + * PROPERTY_TYPE_SUBPROPERTY = 2; + */ + PROPERTY_TYPE_SUBPROPERTY(2), + /** + * + * + *
+   * GA4 rollup property
+   * 
+ * + * PROPERTY_TYPE_ROLLUP = 3; + */ + PROPERTY_TYPE_ROLLUP(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown or unspecified property type
+   * 
+ * + * PROPERTY_TYPE_UNSPECIFIED = 0; + */ + public static final int PROPERTY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Ordinary GA4 property
+   * 
+ * + * PROPERTY_TYPE_ORDINARY = 1; + */ + public static final int PROPERTY_TYPE_ORDINARY_VALUE = 1; + /** + * + * + *
+   * GA4 subproperty
+   * 
+ * + * PROPERTY_TYPE_SUBPROPERTY = 2; + */ + public static final int PROPERTY_TYPE_SUBPROPERTY_VALUE = 2; + /** + * + * + *
+   * GA4 rollup property
+   * 
+ * + * PROPERTY_TYPE_ROLLUP = 3; + */ + public static final int PROPERTY_TYPE_ROLLUP_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 PropertyType 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 PropertyType forNumber(int value) { + switch (value) { + case 0: + return PROPERTY_TYPE_UNSPECIFIED; + case 1: + return PROPERTY_TYPE_ORDINARY; + case 2: + return PROPERTY_TYPE_SUBPROPERTY; + case 3: + return PROPERTY_TYPE_ROLLUP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PropertyType findValueByNumber(int number) { + return PropertyType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(9); + } + + private static final PropertyType[] VALUES = values(); + + public static PropertyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PropertyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.PropertyType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java new file mode 100644 index 000000000000..77aacd5edd1b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java @@ -0,0 +1,903 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ProvisionAccountTicket RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} + */ +public final class ProvisionAccountTicketRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + ProvisionAccountTicketRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProvisionAccountTicketRequest.newBuilder() to construct. + private ProvisionAccountTicketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProvisionAccountTicketRequest() { + redirectUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProvisionAccountTicketRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.class, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Account account_; + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return account_ != null; + } + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } + + public static final int REDIRECT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object redirectUri_ = ""; + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The redirectUri. + */ + @java.lang.Override + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + 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(); + redirectUri_ = s; + return s; + } + } + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The bytes for redirectUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUri_ = 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 (account_ != null) { + output.writeMessage(1, getAccount()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (account_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccount()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); + } + 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.admin.v1alpha.ProvisionAccountTicketRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest other = + (com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) obj; + + if (hasAccount() != other.hasAccount()) return false; + if (hasAccount()) { + if (!getAccount().equals(other.getAccount())) return false; + } + if (!getRedirectUri().equals(other.getRedirectUri())) 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 (hasAccount()) { + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + } + hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ProvisionAccountTicket RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.class, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + redirectUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest build() { + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest buildPartial() { + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest result = + new com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.account_ = accountBuilder_ == null ? account_ : accountBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.redirectUri_ = redirectUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.getDefaultInstance()) + return this; + if (other.hasAccount()) { + mergeAccount(other.getAccount()); + } + if (!other.getRedirectUri().isEmpty()) { + redirectUri_ = other.redirectUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + redirectUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Account account_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + public boolean hasAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (accountBuilder_ == null) { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } else { + return accountBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + } else { + accountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + account_ = builderForValue.build(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && account_ != null + && account_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { + getAccountBuilder().mergeFrom(value); + } else { + account_ = value; + } + } else { + accountBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder clearAccount() { + bitField0_ = (bitField0_ & ~0x00000001); + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if (accountBuilder_ != null) { + return accountBuilder_.getMessageOrBuilder(); + } else { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder>( + getAccount(), getParentForChildren(), isClean()); + account_ = null; + } + return accountBuilder_; + } + + private java.lang.Object redirectUri_ = ""; + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @return The redirectUri. + */ + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @return The bytes for redirectUri. + */ + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @param value The redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redirectUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearRedirectUri() { + redirectUri_ = getDefaultInstance().getRedirectUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @param value The bytes for redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redirectUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + private static final com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisionAccountTicketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java new file mode 100644 index 000000000000..ae4aa6c02d1a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ProvisionAccountTicketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + com.google.analytics.admin.v1alpha.Account getAccount(); + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The redirectUri. + */ + java.lang.String getRedirectUri(); + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The bytes for redirectUri. + */ + com.google.protobuf.ByteString getRedirectUriBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java new file mode 100644 index 000000000000..0d050a783844 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java @@ -0,0 +1,635 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ProvisionAccountTicket RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} + */ +public final class ProvisionAccountTicketResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) + ProvisionAccountTicketResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProvisionAccountTicketResponse.newBuilder() to construct. + private ProvisionAccountTicketResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProvisionAccountTicketResponse() { + accountTicketId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProvisionAccountTicketResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.class, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.Builder.class); + } + + public static final int ACCOUNT_TICKET_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountTicketId_ = ""; + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The accountTicketId. + */ + @java.lang.Override + public java.lang.String getAccountTicketId() { + java.lang.Object ref = accountTicketId_; + 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(); + accountTicketId_ = s; + return s; + } + } + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The bytes for accountTicketId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountTicketIdBytes() { + java.lang.Object ref = accountTicketId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountTicketId_ = 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(accountTicketId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountTicketId_); + } + 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(accountTicketId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountTicketId_); + } + 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.admin.v1alpha.ProvisionAccountTicketResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse other = + (com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) obj; + + if (!getAccountTicketId().equals(other.getAccountTicketId())) 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) + ACCOUNT_TICKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccountTicketId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ProvisionAccountTicket RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.class, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accountTicketId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse build() { + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse buildPartial() { + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse result = + new com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accountTicketId_ = accountTicketId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.getDefaultInstance()) + return this; + if (!other.getAccountTicketId().isEmpty()) { + accountTicketId_ = other.accountTicketId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + accountTicketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object accountTicketId_ = ""; + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @return The accountTicketId. + */ + public java.lang.String getAccountTicketId() { + java.lang.Object ref = accountTicketId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountTicketId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @return The bytes for accountTicketId. + */ + public com.google.protobuf.ByteString getAccountTicketIdBytes() { + java.lang.Object ref = accountTicketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountTicketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @param value The accountTicketId to set. + * @return This builder for chaining. + */ + public Builder setAccountTicketId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountTicketId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearAccountTicketId() { + accountTicketId_ = getDefaultInstance().getAccountTicketId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @param value The bytes for accountTicketId to set. + * @return This builder for chaining. + */ + public Builder setAccountTicketIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountTicketId_ = 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.admin.v1alpha.ProvisionAccountTicketResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) + private static final com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); + } + + public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisionAccountTicketResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java new file mode 100644 index 000000000000..9bfceeedd240 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ProvisionAccountTicketResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The accountTicketId. + */ + java.lang.String getAccountTicketId(); + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The bytes for accountTicketId. + */ + com.google.protobuf.ByteString getAccountTicketIdBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java new file mode 100644 index 000000000000..de387a927ad1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -0,0 +1,1115 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public final class ResourcesProto { + private ResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_Account_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/analytics/admin/v1alpha/resourc" + + "es.proto\022\036google.analytics.admin.v1alpha" + + "\032-google/analytics/admin/v1alpha/audienc" + + "e.proto\0322google/analytics/admin/v1alpha/" + + "channel_group.proto\032:google/analytics/ad" + + "min/v1alpha/event_create_and_edit.proto\032" + + "6google/analytics/admin/v1alpha/expanded" + + "_data_set.proto\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\032\037goo" + + "gle/protobuf/timestamp.proto\032\036google/pro" + + "tobuf/wrappers.proto\"\223\002\n\007Account\022\022\n\004name" + + "\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampB\004\342A\001\003\0225\n\013update_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\022\032\n\014display_name\030\004 \001(\tB\004\342A\001\002\022\023\n\013region" + + "_code\030\005 \001(\t\022\025\n\007deleted\030\006 \001(\010B\004\342A\001\003:>\352A;\n" + + "%analyticsadmin.googleapis.com/Account\022\022" + + "accounts/{account}\"\304\005\n\010Property\022\022\n\004name\030" + + "\001 \001(\tB\004\342A\001\003\022I\n\rproperty_type\030\016 \001(\0162,.goo" + + "gle.analytics.admin.v1alpha.PropertyType" + + "B\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0225\n\013update_time\030\004 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n\006" + + "parent\030\002 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\005 \001(\t" + + "B\004\342A\001\002\022K\n\021industry_category\030\006 \001(\01620.goog" + + "le.analytics.admin.v1alpha.IndustryCateg" + + "ory\022\027\n\ttime_zone\030\007 \001(\tB\004\342A\001\002\022\025\n\rcurrency" + + "_code\030\010 \001(\t\022I\n\rservice_level\030\n \001(\0162,.goo" + + "gle.analytics.admin.v1alpha.ServiceLevel" + + "B\004\342A\001\003\0225\n\013delete_time\030\013 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0225\n\013expire_time\030\014 \001" + + "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022?\n\007" + + "account\030\r \001(\tB.\342A\001\005\372A\'\n%analyticsadmin.g" + + "oogleapis.com/Account:B\352A?\n&analyticsadm" + + "in.googleapis.com/Property\022\025properties/{" + + "property}\"\372\007\n\nDataStream\022S\n\017web_stream_d" + + "ata\030\006 \001(\01328.google.analytics.admin.v1alp" + + "ha.DataStream.WebStreamDataH\000\022b\n\027android" + + "_app_stream_data\030\007 \001(\0132?.google.analytic" + + "s.admin.v1alpha.DataStream.AndroidAppStr" + + "eamDataH\000\022Z\n\023ios_app_stream_data\030\010 \001(\0132;" + + ".google.analytics.admin.v1alpha.DataStre" + + "am.IosAppStreamDataH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\003\022N\n\004type\030\002 \001(\01629.google.analytics.admin" + + ".v1alpha.DataStream.DataStreamTypeB\005\342A\002\005" + + "\002\022\024\n\014display_name\030\003 \001(\t\0225\n\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225" + + "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + + "mestampB\004\342A\001\003\032a\n\rWebStreamData\022\034\n\016measur" + + "ement_id\030\001 \001(\tB\004\342A\001\003\022\035\n\017firebase_app_id\030" + + "\002 \001(\tB\004\342A\001\003\022\023\n\013default_uri\030\003 \001(\t\032Q\n\024Andr" + + "oidAppStreamData\022\035\n\017firebase_app_id\030\001 \001(" + + "\tB\004\342A\001\003\022\032\n\014package_name\030\002 \001(\tB\004\342A\001\005\032K\n\020I" + + "osAppStreamData\022\035\n\017firebase_app_id\030\001 \001(\t" + + "B\004\342A\001\003\022\030\n\tbundle_id\030\002 \001(\tB\005\342A\002\005\002\"}\n\016Data" + + "StreamType\022 \n\034DATA_STREAM_TYPE_UNSPECIFI" + + "ED\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022\033\n\027ANDROID_APP" + + "_DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_STREAM\020\003:" + + "^\352A[\n(analyticsadmin.googleapis.com/Data" + + "Stream\022/properties/{property}/dataStream" + + "s/{data_stream}B\r\n\013stream_data\"\326\001\n\014Fireb" + + "aseLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\007project\030\002" + + " \001(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003:d\352Aa\n*analytic" + + "sadmin.googleapis.com/FirebaseLink\0223prop" + + "erties/{property}/firebaseLinks/{firebas" + + "e_link}\"\253\001\n\rGlobalSiteTag\022\022\n\004name\030\001 \001(\tB" + + "\004\342A\001\003\022\025\n\007snippet\030\002 \001(\tB\004\342A\001\005:o\352Al\n+analy" + + "ticsadmin.googleapis.com/GlobalSiteTag\022=" + + "properties/{property}/dataStreams/{data_" + + "stream}/globalSiteTag\"\236\003\n\rGoogleAdsLink\022" + + "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\031\n\013customer_id\030\003 \001(\t" + + "B\004\342A\001\005\022 \n\022can_manage_clients\030\004 \001(\010B\004\342A\001\003" + + "\022?\n\033ads_personalization_enabled\030\005 \001(\0132\032." + + "google.protobuf.BoolValue\0225\n\013create_time" + + "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\0225\n\013update_time\030\010 \001(\0132\032.google.protobuf." + + "TimestampB\004\342A\001\003\022#\n\025creator_email_address" + + "\030\t \001(\tB\004\342A\001\003:h\352Ae\n+analyticsadmin.google" + + "apis.com/GoogleAdsLink\0226properties/{prop" + + "erty}/googleAdsLinks/{google_ads_link}\"\354" + + "\002\n\023DataSharingSettings\022\022\n\004name\030\001 \001(\tB\004\342A" + + "\001\003\022+\n#sharing_with_google_support_enable" + + "d\030\002 \001(\010\0222\n*sharing_with_google_assigned_" + + "sales_enabled\030\003 \001(\010\022-\n%sharing_with_goog" + + "le_any_sales_enabled\030\004 \001(\010\022,\n$sharing_wi" + + "th_google_products_enabled\030\005 \001(\010\022#\n\033shar" + + "ing_with_others_enabled\030\006 \001(\010:^\352A[\n1anal" + + "yticsadmin.googleapis.com/DataSharingSet" + + "tings\022&accounts/{account}/dataSharingSet" + + "tings\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;" + + "\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.goo" + + "gleapis.com/Account\022\024\n\014display_name\030\003 \001(" + + "\t\022K\n\022property_summaries\030\004 \003(\0132/.google.a" + + "nalytics.admin.v1alpha.PropertySummary:U" + + "\352AR\n,analyticsadmin.googleapis.com/Accou" + + "ntSummary\022\"accountSummaries/{account_sum" + + "mary}\"\273\001\n\017PropertySummary\022=\n\010property\030\001 " + + "\001(\tB+\372A(\n&analyticsadmin.googleapis.com/" + + "Property\022\024\n\014display_name\030\002 \001(\t\022C\n\rproper" + + "ty_type\030\003 \001(\0162,.google.analytics.admin.v" + + "1alpha.PropertyType\022\016\n\006parent\030\004 \001(\t\"\221\002\n\031" + + "MeasurementProtocolSecret\022\022\n\004name\030\001 \001(\tB" + + "\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\032\n\014sec" + + "ret_value\030\003 \001(\tB\004\342A\001\003:\247\001\352A\243\001\n7analyticsa" + + "dmin.googleapis.com/MeasurementProtocolS" + + "ecret\022hproperties/{property}/dataStreams" + + "/{data_stream}/measurementProtocolSecret" + + "s/{measurement_protocol_secret}\"\205\004\n SKAd" + + "NetworkConversionValueSchema\022\022\n\004name\030\001 \001" + + "(\tB\004\342A\001\003\022Q\n\023postback_window_one\030\002 \001(\0132.." + + "google.analytics.admin.v1alpha.PostbackW" + + "indowB\004\342A\001\002\022K\n\023postback_window_two\030\003 \001(\013" + + "2..google.analytics.admin.v1alpha.Postba" + + "ckWindow\022M\n\025postback_window_three\030\004 \001(\0132" + + "..google.analytics.admin.v1alpha.Postbac" + + "kWindow\022\037\n\027apply_conversion_values\030\005 \001(\010" + + ":\274\001\352A\270\001\n>analyticsadmin.googleapis.com/S" + + "KAdNetworkConversionValueSchema\022vpropert" + + "ies/{property}/dataStreams/{data_stream}" + + "/sKAdNetworkConversionValueSchema/{skadn" + + "etwork_conversion_value_schema}\"\207\001\n\016Post" + + "backWindow\022K\n\021conversion_values\030\001 \003(\01320." + + "google.analytics.admin.v1alpha.Conversio" + + "nValues\022(\n postback_window_settings_enab" + + "led\030\002 \001(\010\"\365\001\n\020ConversionValues\022\024\n\014displa" + + "y_name\030\001 \001(\t\022\027\n\nfine_value\030\002 \001(\005H\000\210\001\001\022G\n" + + "\014coarse_value\030\003 \001(\0162+.google.analytics.a" + + "dmin.v1alpha.CoarseValueB\004\342A\001\002\022D\n\016event_" + + "mappings\030\004 \003(\0132,.google.analytics.admin." + + "v1alpha.EventMapping\022\024\n\014lock_enabled\030\005 \001" + + "(\010B\r\n\013_fine_value\"\360\001\n\014EventMapping\022\030\n\nev" + + "ent_name\030\001 \001(\tB\004\342A\001\002\022\034\n\017min_event_count\030" + + "\002 \001(\003H\000\210\001\001\022\034\n\017max_event_count\030\003 \001(\003H\001\210\001\001" + + "\022\034\n\017min_event_value\030\004 \001(\001H\002\210\001\001\022\034\n\017max_ev" + + "ent_value\030\005 \001(\001H\003\210\001\001B\022\n\020_min_event_count" + + "B\022\n\020_max_event_countB\022\n\020_min_event_value" + + "B\022\n\020_max_event_value\"\212\002\n\022ChangeHistoryEv" + + "ent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.Timestamp\022=\n\nactor_type\030\003" + + " \001(\0162).google.analytics.admin.v1alpha.Ac" + + "torType\022\030\n\020user_actor_email\030\004 \001(\t\022\030\n\020cha" + + "nges_filtered\030\005 \001(\010\022D\n\007changes\030\006 \003(\01323.g" + + "oogle.analytics.admin.v1alpha.ChangeHist" + + "oryChange\"\220\022\n\023ChangeHistoryChange\022\020\n\010res" + + "ource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*.google.ana" + + "lytics.admin.v1alpha.ActionType\022i\n\026resou" + + "rce_before_change\030\003 \001(\0132I.google.analyti" + + "cs.admin.v1alpha.ChangeHistoryChange.Cha" + + "ngeHistoryResource\022h\n\025resource_after_cha" + + "nge\030\004 \001(\0132I.google.analytics.admin.v1alp" + + "ha.ChangeHistoryChange.ChangeHistoryReso" + + "urce\032\325\017\n\025ChangeHistoryResource\022:\n\007accoun" + + "t\030\001 \001(\0132\'.google.analytics.admin.v1alpha" + + ".AccountH\000\022<\n\010property\030\002 \001(\0132(.google.an" + + "alytics.admin.v1alpha.PropertyH\000\022E\n\rfire" + + "base_link\030\006 \001(\0132,.google.analytics.admin" + + ".v1alpha.FirebaseLinkH\000\022H\n\017google_ads_li" + + "nk\030\007 \001(\0132-.google.analytics.admin.v1alph" + + "a.GoogleAdsLinkH\000\022X\n\027google_signals_sett" + + "ings\030\010 \001(\01325.google.analytics.admin.v1al" + + "pha.GoogleSignalsSettingsH\000\022j\n!display_v" + + "ideo_360_advertiser_link\030\t \001(\0132=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLinkH\000\022{\n*display_video_360_adv" + + "ertiser_link_proposal\030\n \001(\0132E.google.ana" + + "lytics.admin.v1alpha.DisplayVideo360Adve" + + "rtiserLinkProposalH\000\022K\n\020conversion_event" + + "\030\013 \001(\0132/.google.analytics.admin.v1alpha." + + "ConversionEventH\000\022`\n\033measurement_protoco" + + "l_secret\030\014 \001(\01329.google.analytics.admin." + + "v1alpha.MeasurementProtocolSecretH\000\022K\n\020c" + + "ustom_dimension\030\r \001(\0132/.google.analytics" + + ".admin.v1alpha.CustomDimensionH\000\022E\n\rcust" + + "om_metric\030\016 \001(\0132,.google.analytics.admin" + + ".v1alpha.CustomMetricH\000\022X\n\027data_retentio" + + "n_settings\030\017 \001(\01325.google.analytics.admi" + + "n.v1alpha.DataRetentionSettingsH\000\022O\n\023sea" + + "rch_ads_360_link\030\020 \001(\01320.google.analytic" + + "s.admin.v1alpha.SearchAds360LinkH\000\022A\n\013da" + + "ta_stream\030\022 \001(\0132*.google.analytics.admin" + + ".v1alpha.DataStreamH\000\022S\n\024attribution_set" + + "tings\030\024 \001(\01323.google.analytics.admin.v1a" + + "lpha.AttributionSettingsH\000\022L\n\021expanded_d" + + "ata_set\030\025 \001(\0132/.google.analytics.admin.v" + + "1alpha.ExpandedDataSetH\000\022E\n\rchannel_grou" + + "p\030\026 \001(\0132,.google.analytics.admin.v1alpha" + + ".ChannelGroupH\000\022E\n\rbigquery_link\030\027 \001(\0132," + + ".google.analytics.admin.v1alpha.BigQuery" + + "LinkH\000\022d\n\035enhanced_measurement_settings\030" + + "\030 \001(\0132;.google.analytics.admin.v1alpha.E" + + "nhancedMeasurementSettingsH\000\022X\n\027data_red" + + "action_settings\030\031 \001(\01325.google.analytics" + + ".admin.v1alpha.DataRedactionSettingsH\000\022o" + + "\n#skadnetwork_conversion_value_schema\030\032 " + + "\001(\0132@.google.analytics.admin.v1alpha.SKA" + + "dNetworkConversionValueSchemaH\000\022C\n\014adsen" + + "se_link\030\033 \001(\0132+.google.analytics.admin.v" + + "1alpha.AdSenseLinkH\000\022<\n\010audience\030\034 \001(\0132(" + + ".google.analytics.admin.v1alpha.Audience" + + "H\000\022L\n\021event_create_rule\030\035 \001(\0132/.google.a" + + "nalytics.admin.v1alpha.EventCreateRuleH\000" + + "B\n\n\010resource\"\344\003\n\035DisplayVideo360Advertis" + + "erLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\033\n\radvertiser" + + "_id\030\002 \001(\tB\004\342A\001\005\022%\n\027advertiser_display_na" + + "me\030\003 \001(\tB\004\342A\001\003\022?\n\033ads_personalization_en" + + "abled\030\004 \001(\0132\032.google.protobuf.BoolValue\022" + + "G\n\035campaign_data_sharing_enabled\030\005 \001(\0132\032" + + ".google.protobuf.BoolValueB\004\342A\001\005\022C\n\031cost" + + "_data_sharing_enabled\030\006 \001(\0132\032.google.pro" + + "tobuf.BoolValueB\004\342A\001\005:\233\001\352A\227\001\n;analyticsa" + + "dmin.googleapis.com/DisplayVideo360Adver" + + "tiserLink\022Xproperties/{property}/display" + + "Video360AdvertiserLinks/{display_video_3" + + "60_advertiser_link}\"\222\005\n%DisplayVideo360A" + + "dvertiserLinkProposal\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\003\022\033\n\radvertiser_id\030\002 \001(\tB\004\342A\001\005\022e\n\034link_p" + + "roposal_status_details\030\003 \001(\01329.google.an" + + "alytics.admin.v1alpha.LinkProposalStatus" + + "DetailsB\004\342A\001\003\022%\n\027advertiser_display_name" + + "\030\004 \001(\tB\004\342A\001\003\022\036\n\020validation_email\030\005 \001(\tB\004" + + "\342A\001\004\022E\n\033ads_personalization_enabled\030\006 \001(" + + "\0132\032.google.protobuf.BoolValueB\004\342A\001\005\022G\n\035c" + + "ampaign_data_sharing_enabled\030\007 \001(\0132\032.goo" + + "gle.protobuf.BoolValueB\004\342A\001\005\022C\n\031cost_dat" + + "a_sharing_enabled\030\010 \001(\0132\032.google.protobu" + + "f.BoolValueB\004\342A\001\005:\264\001\352A\260\001\nCanalyticsadmin" + + ".googleapis.com/DisplayVideo360Advertise" + + "rLinkProposal\022iproperties/{property}/dis" + + "playVideo360AdvertiserLinkProposals/{dis" + + "play_video_360_advertiser_link_proposal}" + + "\"\355\003\n\020SearchAds360Link\022\022\n\004name\030\001 \001(\tB\004\342A\001" + + "\003\022\033\n\radvertiser_id\030\002 \001(\tB\004\342A\001\005\022G\n\035campai" + + "gn_data_sharing_enabled\030\003 \001(\0132\032.google.p" + + "rotobuf.BoolValueB\004\342A\001\005\022C\n\031cost_data_sha" + + "ring_enabled\030\004 \001(\0132\032.google.protobuf.Boo" + + "lValueB\004\342A\001\005\022%\n\027advertiser_display_name\030" + + "\005 \001(\tB\004\342A\001\003\022?\n\033ads_personalization_enabl" + + "ed\030\006 \001(\0132\032.google.protobuf.BoolValue\022>\n\032" + + "site_stats_sharing_enabled\030\007 \001(\0132\032.googl" + + "e.protobuf.BoolValue:r\352Ao\n.analyticsadmi" + + "n.googleapis.com/SearchAds360Link\022=prope" + + "rties/{property}/searchAds360Links/{sear" + + "ch_ads_360_link}\"\377\001\n\031LinkProposalStatusD" + + "etails\022m\n link_proposal_initiating_produ" + + "ct\030\001 \001(\0162=.google.analytics.admin.v1alph" + + "a.LinkProposalInitiatingProductB\004\342A\001\003\022\035\n" + + "\017requestor_email\030\002 \001(\tB\004\342A\001\003\022T\n\023link_pro" + + "posal_state\030\003 \001(\01621.google.analytics.adm" + + "in.v1alpha.LinkProposalStateB\004\342A\001\003\"\357\003\n\017C" + + "onversionEvent\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\030\n\nev" + + "ent_name\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\027\n\td" + + "eletable\030\004 \001(\010B\004\342A\001\003\022\024\n\006custom\030\005 \001(\010B\004\342A" + + "\001\003\022g\n\017counting_method\030\006 \001(\0162H.google.ana" + + "lytics.admin.v1alpha.ConversionEvent.Con" + + "versionCountingMethodB\004\342A\001\001\"p\n\030Conversio" + + "nCountingMethod\022*\n&CONVERSION_COUNTING_M" + + "ETHOD_UNSPECIFIED\020\000\022\022\n\016ONCE_PER_EVENT\020\001\022" + + "\024\n\020ONCE_PER_SESSION\020\002:m\352Aj\n-analyticsadm" + + "in.googleapis.com/ConversionEvent\0229prope" + + "rties/{property}/conversionEvents/{conve" + + "rsion_event}\"\242\002\n\025GoogleSignalsSettings\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\003\022A\n\005state\030\003 \001(\01622.goog" + + "le.analytics.admin.v1alpha.GoogleSignals" + + "State\022K\n\007consent\030\004 \001(\01624.google.analytic" + + "s.admin.v1alpha.GoogleSignalsConsentB\004\342A" + + "\001\003:e\352Ab\n3analyticsadmin.googleapis.com/G" + + "oogleSignalsSettings\022+properties/{proper" + + "ty}/googleSignalsSettings\"\276\003\n\017CustomDime" + + "nsion\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_n" + + "ame\030\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004" + + "\342A\001\002\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022T\n\005scope" + + "\030\005 \001(\0162>.google.analytics.admin.v1alpha." + + "CustomDimension.DimensionScopeB\005\342A\002\002\005\022*\n" + + "\034disallow_ads_personalization\030\006 \001(\010B\004\342A\001" + + "\001\"P\n\016DimensionScope\022\037\n\033DIMENSION_SCOPE_U" + + "NSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITE" + + "M\020\003:m\352Aj\n-analyticsadmin.googleapis.com/" + + "CustomDimension\0229properties/{property}/c" + + "ustomDimensions/{custom_dimension}\"\310\006\n\014C" + + "ustomMetric\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016param" + + "eter_name\030\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003" + + " \001(\tB\004\342A\001\002\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022\\\n" + + "\020measurement_unit\030\005 \001(\0162<.google.analyti" + + "cs.admin.v1alpha.CustomMetric.Measuremen" + + "tUnitB\004\342A\001\002\022N\n\005scope\030\006 \001(\01628.google.anal" + + "ytics.admin.v1alpha.CustomMetric.MetricS" + + "copeB\005\342A\002\002\005\022g\n\026restricted_metric_type\030\010 " + + "\003(\0162A.google.analytics.admin.v1alpha.Cus" + + "tomMetric.RestrictedMetricTypeB\004\342A\001\001\"\267\001\n" + + "\017MeasurementUnit\022 \n\034MEASUREMENT_UNIT_UNS" + + "PECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n\010CURRENCY\020\002\022\010" + + "\n\004FEET\020\003\022\n\n\006METERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005" + + "MILES\020\006\022\020\n\014MILLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013" + + "\n\007MINUTES\020\t\022\t\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n" + + "\030METRIC_SCOPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_" + + "\n\024RestrictedMetricType\022&\n\"RESTRICTED_MET" + + "RIC_TYPE_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n" + + "\014REVENUE_DATA\020\002:d\352Aa\n*analyticsadmin.goo" + + "gleapis.com/CustomMetric\0223properties/{pr" + + "operty}/customMetrics/{custom_metric}\"\303\003" + + "\n\025DataRetentionSettings\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\003\022e\n\024event_data_retention\030\002 \001(\0162G.goog" + + "le.analytics.admin.v1alpha.DataRetention" + + "Settings.RetentionDuration\022\'\n\037reset_user" + + "_data_on_new_activity\030\003 \001(\010\"\236\001\n\021Retentio" + + "nDuration\022\"\n\036RETENTION_DURATION_UNSPECIF" + + "IED\020\000\022\016\n\nTWO_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS" + + "\020\003\022\025\n\021TWENTY_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGH" + + "T_MONTHS\020\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analy" + + "ticsadmin.googleapis.com/DataRetentionSe" + + "ttings\022+properties/{property}/dataRetent" + + "ionSettings\"\252\r\n\023AttributionSettings\022\022\n\004n" + + "ame\030\001 \001(\tB\004\342A\001\003\022\230\001\n,acquisition_conversi" + + "on_event_lookback_window\030\002 \001(\0162\\.google." + + "analytics.admin.v1alpha.AttributionSetti" + + "ngs.AcquisitionConversionEventLookbackWi" + + "ndowB\004\342A\001\002\022\214\001\n&other_conversion_event_lo" + + "okback_window\030\003 \001(\0162V.google.analytics.a" + + "dmin.v1alpha.AttributionSettings.OtherCo" + + "nversionEventLookbackWindowB\004\342A\001\002\022x\n\033rep" + + "orting_attribution_model\030\004 \001(\0162M.google." + + "analytics.admin.v1alpha.AttributionSetti" + + "ngs.ReportingAttributionModelB\004\342A\001\002\022\207\001\n$" + + "ads_web_conversion_data_export_scope\030\005 \001" + + "(\0162S.google.analytics.admin.v1alpha.Attr" + + "ibutionSettings.AdsWebConversionDataExpo" + + "rtScopeB\004\342A\001\002\"\333\001\n(AcquisitionConversionE" + + "ventLookbackWindow\022<\n8ACQUISITION_CONVER" + + "SION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000" + + "\0227\n3ACQUISITION_CONVERSION_EVENT_LOOKBAC" + + "K_WINDOW_7_DAYS\020\001\0228\n4ACQUISITION_CONVERS" + + "ION_EVENT_LOOKBACK_WINDOW_30_DAYS\020\002\"\370\001\n\"" + + "OtherConversionEventLookbackWindow\0226\n2OT" + + "HER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNS" + + "PECIFIED\020\000\0222\n.OTHER_CONVERSION_EVENT_LOO" + + "KBACK_WINDOW_30_DAYS\020\001\0222\n.OTHER_CONVERSI" + + "ON_EVENT_LOOKBACK_WINDOW_60_DAYS\020\002\0222\n.OT" + + "HER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_" + + "DAYS\020\003\"\353\002\n\031ReportingAttributionModel\022+\n\'" + + "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\020" + + "\000\022)\n%PAID_AND_ORGANIC_CHANNELS_DATA_DRIV" + + "EN\020\001\022(\n$PAID_AND_ORGANIC_CHANNELS_LAST_C" + + "LICK\020\002\022)\n%PAID_AND_ORGANIC_CHANNELS_FIRS" + + "T_CLICK\020\003\022$\n PAID_AND_ORGANIC_CHANNELS_L" + + "INEAR\020\004\022,\n(PAID_AND_ORGANIC_CHANNELS_POS" + + "ITION_BASED\020\005\022(\n$PAID_AND_ORGANIC_CHANNE" + + "LS_TIME_DECAY\020\006\022#\n\037GOOGLE_PAID_CHANNELS_" + + "LAST_CLICK\020\007\"\246\001\n\037AdsWebConversionDataExp" + + "ortScope\0224\n0ADS_WEB_CONVERSION_DATA_EXPO" + + "RT_SCOPE_UNSPECIFIED\020\000\022\024\n\020NOT_SELECTED_Y" + + "ET\020\001\022\035\n\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n\024G" + + "OOGLE_PAID_CHANNELS\020\003:a\352A^\n1analyticsadm" + + "in.googleapis.com/AttributionSettings\022)p" + + "roperties/{property}/attributionSettings" + + "\"\362\001\n\rAccessBinding\022\016\n\004user\030\002 \001(\tH\000\022\022\n\004na" + + "me\030\001 \001(\tB\004\342A\001\003\022\r\n\005roles\030\003 \003(\t:\234\001\352A\230\001\n+an" + + "alyticsadmin.googleapis.com/AccessBindin" + + "g\0222accounts/{account}/accessBindings/{ac" + + "cess_binding}\0225properties/{property}/acc" + + "essBindings/{access_binding}B\017\n\raccess_t" + + "arget\"\213\003\n\014BigQueryLink\022\022\n\004name\030\001 \001(\tB\004\342A" + + "\001\003\022\025\n\007project\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\022\034\n\024daily_export_enabled\030\004 \001(\010\022 \n\030stream" + + "ing_export_enabled\030\005 \001(\010\022\"\n\032fresh_daily_" + + "export_enabled\030\t \001(\010\022\036\n\026include_advertis" + + "ing_id\030\006 \001(\010\022\026\n\016export_streams\030\007 \003(\t\022\027\n\017" + + "excluded_events\030\010 \003(\t:d\352Aa\n*analyticsadm" + + "in.googleapis.com/BigQueryLink\0223properti" + + "es/{property}/bigQueryLinks/{bigquery_li" + + "nk}\"\365\003\n\033EnhancedMeasurementSettings\022\022\n\004n" + + "ame\030\001 \001(\tB\004\342A\001\003\022\026\n\016stream_enabled\030\002 \001(\010\022" + + "\027\n\017scrolls_enabled\030\003 \001(\010\022\037\n\027outbound_cli" + + "cks_enabled\030\004 \001(\010\022\033\n\023site_search_enabled" + + "\030\005 \001(\010\022 \n\030video_engagement_enabled\030\006 \001(\010" + + "\022\036\n\026file_downloads_enabled\030\007 \001(\010\022\034\n\024page" + + "_changes_enabled\030\010 \001(\010\022!\n\031form_interacti" + + "ons_enabled\030\t \001(\010\022$\n\026search_query_parame" + + "ter\030\n \001(\tB\004\342A\001\002\022\033\n\023uri_query_parameter\030\013" + + " \001(\t:\214\001\352A\210\001\n9analyticsadmin.googleapis.c" + + "om/EnhancedMeasurementSettings\022Kproperti" + + "es/{property}/dataStreams/{data_stream}/" + + "enhancedMeasurementSettings\"D\n\020Connected" + + "SiteTag\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\022\024\n\006t" + + "ag_id\030\002 \001(\tB\004\342A\001\002\"\226\002\n\025DataRedactionSetti" + + "ngs\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\037\n\027email_redacti" + + "on_enabled\030\002 \001(\010\022)\n!query_parameter_reda" + + "ction_enabled\030\003 \001(\010\022\034\n\024query_parameter_k" + + "eys\030\004 \003(\t:\177\352A|\n3analyticsadmin.googleapi" + + "s.com/DataRedactionSettings\022Eproperties/" + + "{property}/dataStreams/{data_stream}/dat" + + "aRedactionSettings\"\242\001\n\013AdSenseLink\022\022\n\004na" + + "me\030\001 \001(\tB\004\342A\001\003\022\034\n\016ad_client_code\030\002 \001(\tB\004" + + "\342A\001\005:a\352A^\n)analyticsadmin.googleapis.com" + + "/AdSenseLink\0221properties/{property}/adSe" + + "nseLinks/{adsense_link}\"\220\002\n\030RollupProper" + + "tySourceLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\017sour" + + "ce_property\030\002 \001(\tB\004\342A\001\005:\300\001\352A\274\001\n6analytic", + "sadmin.googleapis.com/RollupPropertySour" + + "ceLink\022Mproperties/{property}/rollupProp" + + "ertySourceLinks/{rollup_property_source_" + + "link}*\031rollupPropertySourceLinks2\030rollup" + + "PropertySourceLink*\252\004\n\020IndustryCategory\022" + + "!\n\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAU" + + "TOMOTIVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MA" + + "RKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\n" + + "TECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026A" + + "RTS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FI" + + "TNESS\020\t\022\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOO" + + "D_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_" + + "LEISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERN" + + "ET_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020" + + "\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PE" + + "OPLE_AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024" + + "\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIE" + + "NCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020" + + "\031\022\014\n\010SHOPPING\020\032*f\n\014ServiceLevel\022\035\n\031SERVI" + + "CE_LEVEL_UNSPECIFIED\020\000\022\035\n\031GOOGLE_ANALYTI" + + "CS_STANDARD\020\001\022\030\n\024GOOGLE_ANALYTICS_360\020\002*" + + "J\n\tActorType\022\032\n\026ACTOR_TYPE_UNSPECIFIED\020\000" + + "\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nA" + + "ctionType\022\033\n\027ACTION_TYPE_UNSPECIFIED\020\000\022\013" + + "\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETED\020\003*\213\005" + + "\n\031ChangeHistoryResourceType\022,\n(CHANGE_HI" + + "STORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n\007ACC" + + "OUNT\020\001\022\014\n\010PROPERTY\020\002\022\021\n\rFIREBASE_LINK\020\006\022" + + "\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n\027GOOGLE_SIGNALS_S" + + "ETTINGS\020\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033MEASU" + + "REMENT_PROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DIMEN" + + "SION\020\013\022\021\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RETENT" + + "ION_SETTINGS\020\r\022%\n!DISPLAY_VIDEO_360_ADVE" + + "RTISER_LINK\020\016\022.\n*DISPLAY_VIDEO_360_ADVER" + + "TISER_LINK_PROPOSAL\020\017\022\027\n\023SEARCH_ADS_360_" + + "LINK\020\020\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_S" + + "ETTINGS\020\024\022\025\n\021EXPANDED_DATA_SET\020\025\022\021\n\rCHAN" + + "NEL_GROUP\020\026\022!\n\035ENHANCED_MEASUREMENT_SETT" + + "INGS\020\030\022\033\n\027DATA_REDACTION_SETTINGS\020\031\022\'\n#S" + + "KADNETWORK_CONVERSION_VALUE_SCHEMA\020\032\022\020\n\014" + + "ADSENSE_LINK\020\033\022\014\n\010AUDIENCE\020\034\022\025\n\021EVENT_CR" + + "EATE_RULE\020\035*s\n\022GoogleSignalsState\022$\n GOO" + + "GLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GOOGL" + + "E_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS_DI" + + "SABLED\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"GOO" + + "GLE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022$\n GOO" + + "GLE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n$GOOGL" + + "E_SIGNALS_CONSENT_NOT_CONSENTED\020\001*{\n\035Lin" + + "kProposalInitiatingProduct\0220\n,LINK_PROPO" + + "SAL_INITIATING_PRODUCT_UNSPECIFIED\020\000\022\024\n\020" + + "GOOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODUCT\020\002*\304" + + "\001\n\021LinkProposalState\022#\n\037LINK_PROPOSAL_ST" + + "ATE_UNSPECIFIED\020\000\022)\n%AWAITING_REVIEW_FRO" + + "M_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_REVIEW_" + + "FROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010" + + "DECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLETE\020\006*\202\001" + + "\n\014PropertyType\022\035\n\031PROPERTY_TYPE_UNSPECIF" + + "IED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031PRO" + + "PERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_TYP" + + "E_ROLLUP\020\003*q\n\013CoarseValue\022\034\n\030COARSE_VALU" + + "E_UNSPECIFIED\020\000\022\024\n\020COARSE_VALUE_LOW\020\001\022\027\n" + + "\023COARSE_VALUE_MEDIUM\020\002\022\025\n\021COARSE_VALUE_H" + + "IGH\020\003Bv\n\"com.google.analytics.admin.v1al" + + "phaB\016ResourcesProtoP\001Z>cloud.google.com/" + + "go/analytics/admin/apiv1alpha/adminpb;ad" + + "minpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), + com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(), + com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(), + com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_Account_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_Account_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "DisplayName", "RegionCode", "Deleted", + }); + internal_static_google_analytics_admin_v1alpha_Property_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_Property_descriptor, + new java.lang.String[] { + "Name", + "PropertyType", + "CreateTime", + "UpdateTime", + "Parent", + "DisplayName", + "IndustryCategory", + "TimeZone", + "CurrencyCode", + "ServiceLevel", + "DeleteTime", + "ExpireTime", + "Account", + }); + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor, + new java.lang.String[] { + "WebStreamData", + "AndroidAppStreamData", + "IosAppStreamData", + "Name", + "Type", + "DisplayName", + "CreateTime", + "UpdateTime", + "StreamData", + }); + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor = + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor, + new java.lang.String[] { + "MeasurementId", "FirebaseAppId", "DefaultUri", + }); + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor = + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor, + new java.lang.String[] { + "FirebaseAppId", "PackageName", + }); + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor = + internal_static_google_analytics_admin_v1alpha_DataStream_descriptor + .getNestedTypes() + .get(2); + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor, + new java.lang.String[] { + "FirebaseAppId", "BundleId", + }); + internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor, + new java.lang.String[] { + "Name", "Project", "CreateTime", + }); + internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor, + new java.lang.String[] { + "Name", "Snippet", + }); + internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor, + new java.lang.String[] { + "Name", + "CustomerId", + "CanManageClients", + "AdsPersonalizationEnabled", + "CreateTime", + "UpdateTime", + "CreatorEmailAddress", + }); + internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor, + new java.lang.String[] { + "Name", + "SharingWithGoogleSupportEnabled", + "SharingWithGoogleAssignedSalesEnabled", + "SharingWithGoogleAnySalesEnabled", + "SharingWithGoogleProductsEnabled", + "SharingWithOthersEnabled", + }); + internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor, + new java.lang.String[] { + "Name", "Account", "DisplayName", "PropertySummaries", + }); + internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor, + new java.lang.String[] { + "Property", "DisplayName", "PropertyType", "Parent", + }); + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "SecretValue", + }); + internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor, + new java.lang.String[] { + "Name", + "PostbackWindowOne", + "PostbackWindowTwo", + "PostbackWindowThree", + "ApplyConversionValues", + }); + internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor, + new java.lang.String[] { + "ConversionValues", "PostbackWindowSettingsEnabled", + }); + internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor, + new java.lang.String[] { + "DisplayName", + "FineValue", + "CoarseValue", + "EventMappings", + "LockEnabled", + "FineValue", + }); + internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor, + new java.lang.String[] { + "EventName", + "MinEventCount", + "MaxEventCount", + "MinEventValue", + "MaxEventValue", + "MinEventCount", + "MaxEventCount", + "MinEventValue", + "MaxEventValue", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor, + new java.lang.String[] { + "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor, + new java.lang.String[] { + "Resource", "Action", "ResourceBeforeChange", "ResourceAfterChange", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor = + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor, + new java.lang.String[] { + "Account", + "Property", + "FirebaseLink", + "GoogleAdsLink", + "GoogleSignalsSettings", + "DisplayVideo360AdvertiserLink", + "DisplayVideo360AdvertiserLinkProposal", + "ConversionEvent", + "MeasurementProtocolSecret", + "CustomDimension", + "CustomMetric", + "DataRetentionSettings", + "SearchAds360Link", + "DataStream", + "AttributionSettings", + "ExpandedDataSet", + "ChannelGroup", + "BigqueryLink", + "EnhancedMeasurementSettings", + "DataRedactionSettings", + "SkadnetworkConversionValueSchema", + "AdsenseLink", + "Audience", + "EventCreateRule", + "Resource", + }); + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor, + new java.lang.String[] { + "Name", + "AdvertiserId", + "AdvertiserDisplayName", + "AdsPersonalizationEnabled", + "CampaignDataSharingEnabled", + "CostDataSharingEnabled", + }); + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor, + new java.lang.String[] { + "Name", + "AdvertiserId", + "LinkProposalStatusDetails", + "AdvertiserDisplayName", + "ValidationEmail", + "AdsPersonalizationEnabled", + "CampaignDataSharingEnabled", + "CostDataSharingEnabled", + }); + internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor, + new java.lang.String[] { + "Name", + "AdvertiserId", + "CampaignDataSharingEnabled", + "CostDataSharingEnabled", + "AdvertiserDisplayName", + "AdsPersonalizationEnabled", + "SiteStatsSharingEnabled", + }); + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor, + new java.lang.String[] { + "LinkProposalInitiatingProduct", "RequestorEmail", "LinkProposalState", + }); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor, + new java.lang.String[] { + "Name", "EventName", "CreateTime", "Deletable", "Custom", "CountingMethod", + }); + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor, + new java.lang.String[] { + "Name", "State", "Consent", + }); + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor, + new java.lang.String[] { + "Name", + "ParameterName", + "DisplayName", + "Description", + "Scope", + "DisallowAdsPersonalization", + }); + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor, + new java.lang.String[] { + "Name", + "ParameterName", + "DisplayName", + "Description", + "MeasurementUnit", + "Scope", + "RestrictedMetricType", + }); + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor, + new java.lang.String[] { + "Name", "EventDataRetention", "ResetUserDataOnNewActivity", + }); + internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor, + new java.lang.String[] { + "Name", + "AcquisitionConversionEventLookbackWindow", + "OtherConversionEventLookbackWindow", + "ReportingAttributionModel", + "AdsWebConversionDataExportScope", + }); + internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor, + new java.lang.String[] { + "User", "Name", "Roles", "AccessTarget", + }); + internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor, + new java.lang.String[] { + "Name", + "Project", + "CreateTime", + "DailyExportEnabled", + "StreamingExportEnabled", + "FreshDailyExportEnabled", + "IncludeAdvertisingId", + "ExportStreams", + "ExcludedEvents", + }); + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor, + new java.lang.String[] { + "Name", + "StreamEnabled", + "ScrollsEnabled", + "OutboundClicksEnabled", + "SiteSearchEnabled", + "VideoEngagementEnabled", + "FileDownloadsEnabled", + "PageChangesEnabled", + "FormInteractionsEnabled", + "SearchQueryParameter", + "UriQueryParameter", + }); + internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor, + new java.lang.String[] { + "DisplayName", "TagId", + }); + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor, + new java.lang.String[] { + "Name", + "EmailRedactionEnabled", + "QueryParameterRedactionEnabled", + "QueryParameterKeys", + }); + internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor, + new java.lang.String[] { + "Name", "AdClientCode", + }); + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor, + new java.lang.String[] { + "Name", "SourceProperty", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); + com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(); + com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(); + com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java new file mode 100644 index 000000000000..bce793f3358d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java @@ -0,0 +1,842 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link that references a source property under the parent rollup property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RollupPropertySourceLink} + */ +public final class RollupPropertySourceLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RollupPropertySourceLink) + RollupPropertySourceLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use RollupPropertySourceLink.newBuilder() to construct. + private RollupPropertySourceLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RollupPropertySourceLink() { + name_ = ""; + sourceProperty_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RollupPropertySourceLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_PROPERTY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceProperty_ = ""; + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The sourceProperty. + */ + @java.lang.Override + public java.lang.String getSourceProperty() { + java.lang.Object ref = sourceProperty_; + 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(); + sourceProperty_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for sourceProperty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourcePropertyBytes() { + java.lang.Object ref = sourceProperty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProperty_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceProperty_); + } + 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(sourceProperty_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceProperty_); + } + 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.admin.v1alpha.RollupPropertySourceLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.RollupPropertySourceLink other = + (com.google.analytics.admin.v1alpha.RollupPropertySourceLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getSourceProperty().equals(other.getSourceProperty())) 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) + SOURCE_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getSourceProperty().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link that references a source property under the parent rollup property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RollupPropertySourceLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RollupPropertySourceLink) + com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, + com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.RollupPropertySourceLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sourceProperty_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink build() { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink buildPartial() { + com.google.analytics.admin.v1alpha.RollupPropertySourceLink result = + new com.google.analytics.admin.v1alpha.RollupPropertySourceLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.RollupPropertySourceLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceProperty_ = sourceProperty_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.RollupPropertySourceLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.RollupPropertySourceLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.RollupPropertySourceLink other) { + if (other == com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getSourceProperty().isEmpty()) { + sourceProperty_ = other.sourceProperty_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + sourceProperty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * string name = 1 [(.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. Resource name of this RollupPropertySourceLink.
+     * Format:
+     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+     * Format: 'properties/123/rollupPropertySourceLinks/456'
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object sourceProperty_ = ""; + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The sourceProperty. + */ + public java.lang.String getSourceProperty() { + java.lang.Object ref = sourceProperty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceProperty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for sourceProperty. + */ + public com.google.protobuf.ByteString getSourcePropertyBytes() { + java.lang.Object ref = sourceProperty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The sourceProperty to set. + * @return This builder for chaining. + */ + public Builder setSourceProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceProperty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearSourceProperty() { + sourceProperty_ = getDefaultInstance().getSourceProperty(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the source property.
+     * Format: properties/{property_id}
+     * Example: "properties/789"
+     * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for sourceProperty to set. + * @return This builder for chaining. + */ + public Builder setSourcePropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceProperty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RollupPropertySourceLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RollupPropertySourceLink) + private static final com.google.analytics.admin.v1alpha.RollupPropertySourceLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RollupPropertySourceLink(); + } + + public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RollupPropertySourceLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java new file mode 100644 index 000000000000..73247d52cdf2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java @@ -0,0 +1,85 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface RollupPropertySourceLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RollupPropertySourceLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this RollupPropertySourceLink.
+   * Format:
+   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
+   * Format: 'properties/123/rollupPropertySourceLinks/456'
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The sourceProperty. + */ + java.lang.String getSourceProperty(); + /** + * + * + *
+   * Immutable. Resource name of the source property.
+   * Format: properties/{property_id}
+   * Example: "properties/789"
+   * 
+ * + * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for sourceProperty. + */ + com.google.protobuf.ByteString getSourcePropertyBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java new file mode 100644 index 000000000000..aae2b03385a7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java @@ -0,0 +1,4215 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The request for a Data Access Record Report.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportRequest} + */ +public final class RunAccessReportRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportRequest) + RunAccessReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAccessReportRequest.newBuilder() to construct. + private RunAccessReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAccessReportRequest() { + entity_ = ""; + dimensions_ = java.util.Collections.emptyList(); + metrics_ = java.util.Collections.emptyList(); + dateRanges_ = java.util.Collections.emptyList(); + timeZone_ = ""; + orderBys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAccessReportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, + com.google.analytics.admin.v1alpha.RunAccessReportRequest.Builder.class); + } + + public static final int ENTITY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object entity_ = ""; + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } + } + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List dimensions_; + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public java.util.List getDimensionsList() { + return dimensions_; + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public java.util.List + getDimensionsOrBuilderList() { + return dimensions_; + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public int getDimensionsCount() { + return dimensions_.size(); + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { + return dimensions_.get(index); + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( + int index) { + return dimensions_.get(index); + } + + public static final int METRICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List metrics_; + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int DATE_RANGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List dateRanges_; + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public java.util.List getDateRangesList() { + return dateRanges_; + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public java.util.List + getDateRangesOrBuilderList() { + return dateRanges_; + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public int getDateRangesCount() { + return dateRanges_.size(); + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { + return dateRanges_.get(index); + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( + int index) { + return dateRanges_.get(index); + } + + public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionFilter() { + return dimensionFilter_ != null; + } + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + + public static final int METRIC_FILTER_FIELD_NUMBER = 6; + private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + @java.lang.Override + public boolean hasMetricFilter() { + return metricFilter_ != null; + } + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { + return metricFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getMetricFilterOrBuilder() { + return metricFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + + public static final int OFFSET_FIELD_NUMBER = 7; + private long offset_ = 0L; + /** + * + * + *
+   * The row count of the start row. The first row is counted as row 0. If
+   * offset is unspecified, it is treated as 0. If offset is zero, then this
+   * method will return the first page of results with `limit` entries.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int LIMIT_FIELD_NUMBER = 8; + private long limit_ = 0L; + /** + * + * + *
+   * The number of rows to return. If unspecified, 10,000 rows are returned. The
+   * API returns a maximum of 100,000 rows per request, no matter how many you
+   * ask for. `limit` must be positive.
+   *
+   * The API may return fewer rows than the requested `limit`, if there aren't
+   * as many remaining rows as the `limit`. For instance, there are fewer than
+   * 300 possible values for the dimension `country`, so when reporting on only
+   * `country`, you can't get more than 300 rows, even if you set `limit` to a
+   * higher value.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BYS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List orderBys_; + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public java.util.List getOrderBysList() { + return orderBys_; + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public java.util.List + getOrderBysOrBuilderList() { + return orderBys_; + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public int getOrderBysCount() { + return orderBys_.size(); + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { + return orderBys_.get(index); + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder(int index) { + return orderBys_.get(index); + } + + public static final int RETURN_ENTITY_QUOTA_FIELD_NUMBER = 11; + private boolean returnEntityQuota_ = false; + /** + * + * + *
+   * Toggles whether to return the current state of this Analytics Property's
+   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+   * requests, this field must be false.
+   * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + @java.lang.Override + public boolean getReturnEntityQuota() { + return returnEntityQuota_; + } + + public static final int INCLUDE_ALL_USERS_FIELD_NUMBER = 12; + private boolean includeAllUsers_ = false; + /** + * + * + *
+   * Optional. Determines whether to include users who have never made an API
+   * call in the response. If true, all users with access to the specified
+   * property or account are included in the response, regardless of whether
+   * they have made an API call or not. If false, only the users who have made
+   * an API call will be included.
+   * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + @java.lang.Override + public boolean getIncludeAllUsers() { + return includeAllUsers_; + } + + public static final int EXPAND_GROUPS_FIELD_NUMBER = 13; + private boolean expandGroups_ = false; + /** + * + * + *
+   * Optional. Decides whether to return the users within user groups. This
+   * field works only when include_all_users is set to true. If true, it will
+   * return all users with access to the specified property or account.
+   * If false, only the users with direct access will be returned.
+   * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + @java.lang.Override + public boolean getExpandGroups() { + return expandGroups_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); + } + for (int i = 0; i < dimensions_.size(); i++) { + output.writeMessage(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + output.writeMessage(4, dateRanges_.get(i)); + } + if (dimensionFilter_ != null) { + output.writeMessage(5, getDimensionFilter()); + } + if (metricFilter_ != null) { + output.writeMessage(6, getMetricFilter()); + } + if (offset_ != 0L) { + output.writeInt64(7, offset_); + } + if (limit_ != 0L) { + output.writeInt64(8, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timeZone_); + } + for (int i = 0; i < orderBys_.size(); i++) { + output.writeMessage(10, orderBys_.get(i)); + } + if (returnEntityQuota_ != false) { + output.writeBool(11, returnEntityQuota_); + } + if (includeAllUsers_ != false) { + output.writeBool(12, includeAllUsers_); + } + if (expandGroups_ != false) { + output.writeBool(13, expandGroups_); + } + 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(entity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_); + } + for (int i = 0; i < dimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dateRanges_.get(i)); + } + if (dimensionFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDimensionFilter()); + } + if (metricFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetricFilter()); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, offset_); + } + if (limit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, timeZone_); + } + for (int i = 0; i < orderBys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, orderBys_.get(i)); + } + if (returnEntityQuota_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, returnEntityQuota_); + } + if (includeAllUsers_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, includeAllUsers_); + } + if (expandGroups_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, expandGroups_); + } + 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.admin.v1alpha.RunAccessReportRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.RunAccessReportRequest other = + (com.google.analytics.admin.v1alpha.RunAccessReportRequest) obj; + + if (!getEntity().equals(other.getEntity())) return false; + if (!getDimensionsList().equals(other.getDimensionsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getDateRangesList().equals(other.getDateRangesList())) return false; + if (hasDimensionFilter() != other.hasDimensionFilter()) return false; + if (hasDimensionFilter()) { + if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; + } + if (hasMetricFilter() != other.hasMetricFilter()) return false; + if (hasMetricFilter()) { + if (!getMetricFilter().equals(other.getMetricFilter())) return false; + } + if (getOffset() != other.getOffset()) return false; + if (getLimit() != other.getLimit()) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getOrderBysList().equals(other.getOrderBysList())) return false; + if (getReturnEntityQuota() != other.getReturnEntityQuota()) return false; + if (getIncludeAllUsers() != other.getIncludeAllUsers()) return false; + if (getExpandGroups() != other.getExpandGroups()) 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) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + if (getDimensionsCount() > 0) { + hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionsList().hashCode(); + } + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getDateRangesCount() > 0) { + hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getDateRangesList().hashCode(); + } + if (hasDimensionFilter()) { + hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionFilter().hashCode(); + } + if (hasMetricFilter()) { + hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getMetricFilter().hashCode(); + } + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (getOrderBysCount() > 0) { + hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; + hash = (53 * hash) + getOrderBysList().hashCode(); + } + hash = (37 * hash) + RETURN_ENTITY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnEntityQuota()); + hash = (37 * hash) + INCLUDE_ALL_USERS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeAllUsers()); + hash = (37 * hash) + EXPAND_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getExpandGroups()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.RunAccessReportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for a Data Access Record Report.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RunAccessReportRequest) + com.google.analytics.admin.v1alpha.RunAccessReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, + com.google.analytics.admin.v1alpha.RunAccessReportRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.RunAccessReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + entity_ = ""; + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + } else { + dimensions_ = null; + dimensionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + } else { + dateRanges_ = null; + dateRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + dimensionFilter_ = null; + if (dimensionFilterBuilder_ != null) { + dimensionFilterBuilder_.dispose(); + dimensionFilterBuilder_ = null; + } + metricFilter_ = null; + if (metricFilterBuilder_ != null) { + metricFilterBuilder_.dispose(); + metricFilterBuilder_ = null; + } + offset_ = 0L; + limit_ = 0L; + timeZone_ = ""; + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + } else { + orderBys_ = null; + orderBysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + returnEntityQuota_ = false; + includeAllUsers_ = false; + expandGroups_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest build() { + com.google.analytics.admin.v1alpha.RunAccessReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest buildPartial() { + com.google.analytics.admin.v1alpha.RunAccessReportRequest result = + new com.google.analytics.admin.v1alpha.RunAccessReportRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.RunAccessReportRequest result) { + if (dimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dimensions_ = java.util.Collections.unmodifiableList(dimensions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dimensions_ = dimensions_; + } else { + result.dimensions_ = dimensionsBuilder_.build(); + } + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (dateRangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.dateRanges_ = dateRanges_; + } else { + result.dateRanges_ = dateRangesBuilder_.build(); + } + if (orderBysBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + orderBys_ = java.util.Collections.unmodifiableList(orderBys_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.orderBys_ = orderBys_; + } else { + result.orderBys_ = orderBysBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.RunAccessReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dimensionFilter_ = + dimensionFilterBuilder_ == null ? dimensionFilter_ : dimensionFilterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.metricFilter_ = + metricFilterBuilder_ == null ? metricFilter_ : metricFilterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.offset_ = offset_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.limit_ = limit_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.returnEntityQuota_ = returnEntityQuota_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.includeAllUsers_ = includeAllUsers_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.expandGroups_ = expandGroups_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportRequest other) { + if (other == com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance()) + return this; + if (!other.getEntity().isEmpty()) { + entity_ = other.entity_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (dimensionsBuilder_ == null) { + if (!other.dimensions_.isEmpty()) { + if (dimensions_.isEmpty()) { + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDimensionsIsMutable(); + dimensions_.addAll(other.dimensions_); + } + onChanged(); + } + } else { + if (!other.dimensions_.isEmpty()) { + if (dimensionsBuilder_.isEmpty()) { + dimensionsBuilder_.dispose(); + dimensionsBuilder_ = null; + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + dimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionsFieldBuilder() + : null; + } else { + dimensionsBuilder_.addAllMessages(other.dimensions_); + } + } + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (dateRangesBuilder_ == null) { + if (!other.dateRanges_.isEmpty()) { + if (dateRanges_.isEmpty()) { + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDateRangesIsMutable(); + dateRanges_.addAll(other.dateRanges_); + } + onChanged(); + } + } else { + if (!other.dateRanges_.isEmpty()) { + if (dateRangesBuilder_.isEmpty()) { + dateRangesBuilder_.dispose(); + dateRangesBuilder_ = null; + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + dateRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDateRangesFieldBuilder() + : null; + } else { + dateRangesBuilder_.addAllMessages(other.dateRanges_); + } + } + } + if (other.hasDimensionFilter()) { + mergeDimensionFilter(other.getDimensionFilter()); + } + if (other.hasMetricFilter()) { + mergeMetricFilter(other.getMetricFilter()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (other.getLimit() != 0L) { + setLimit(other.getLimit()); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (orderBysBuilder_ == null) { + if (!other.orderBys_.isEmpty()) { + if (orderBys_.isEmpty()) { + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureOrderBysIsMutable(); + orderBys_.addAll(other.orderBys_); + } + onChanged(); + } + } else { + if (!other.orderBys_.isEmpty()) { + if (orderBysBuilder_.isEmpty()) { + orderBysBuilder_.dispose(); + orderBysBuilder_ = null; + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000200); + orderBysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrderBysFieldBuilder() + : null; + } else { + orderBysBuilder_.addAllMessages(other.orderBys_); + } + } + } + if (other.getReturnEntityQuota() != false) { + setReturnEntityQuota(other.getReturnEntityQuota()); + } + if (other.getIncludeAllUsers() != false) { + setIncludeAllUsers(other.getIncludeAllUsers()); + } + if (other.getExpandGroups() != false) { + setExpandGroups(other.getExpandGroups()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.AccessDimension m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDimension.parser(), + extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1alpha.AccessMetric m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessMetric.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.admin.v1alpha.AccessDateRange m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDateRange.parser(), + extensionRegistry); + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(m); + } else { + dateRangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + limit_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.analytics.admin.v1alpha.AccessOrderBy m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessOrderBy.parser(), + extensionRegistry); + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(m); + } else { + orderBysBuilder_.addMessage(m); + } + break; + } // case 82 + case 88: + { + returnEntityQuota_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 96: + { + includeAllUsers_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: + { + expandGroups_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object entity_ = ""; + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + entity_ = getDefaultInstance().getEntity(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List dimensions_ = + java.util.Collections.emptyList(); + + private void ensureDimensionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dimensions_ = + new java.util.ArrayList( + dimensions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimension, + com.google.analytics.admin.v1alpha.AccessDimension.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> + dimensionsBuilder_; + + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public java.util.List getDimensionsList() { + if (dimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensions_); + } else { + return dimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public int getDimensionsCount() { + if (dimensionsBuilder_ == null) { + return dimensions_.size(); + } else { + return dimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder setDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.set(index, value); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder setDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions(com.google.analytics.admin.v1alpha.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(index, value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder addAllDimensions( + java.lang.Iterable values) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); + onChanged(); + } else { + dimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder clearDimensions() { + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public Builder removeDimensions(int index) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.remove(index); + onChanged(); + } else { + dimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension.Builder getDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( + int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public java.util.List + getDimensionsOrBuilderList() { + if (dimensionsBuilder_ != null) { + return dimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensions_); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder() { + return getDimensionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + public java.util.List + getDimensionsBuilderList() { + return getDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimension, + com.google.analytics.admin.v1alpha.AccessDimension.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> + getDimensionsFieldBuilder() { + if (dimensionsBuilder_ == null) { + dimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimension, + com.google.analytics.admin.v1alpha.AccessDimension.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder>( + dimensions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + dimensions_ = null; + } + return dimensionsBuilder_; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + metrics_ = + new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetric, + com.google.analytics.admin.v1alpha.AccessMetric.Builder, + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder setMetrics(int index, com.google.analytics.admin.v1alpha.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics(com.google.analytics.admin.v1alpha.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics(int index, com.google.analytics.admin.v1alpha.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics( + com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric.Builder getMetricsBuilder(int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetric, + com.google.analytics.admin.v1alpha.AccessMetric.Builder, + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetric, + com.google.analytics.admin.v1alpha.AccessMetric.Builder, + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List dateRanges_ = + java.util.Collections.emptyList(); + + private void ensureDateRangesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + dateRanges_ = + new java.util.ArrayList( + dateRanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDateRange, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder, + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> + dateRangesBuilder_; + + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public java.util.List getDateRangesList() { + if (dateRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dateRanges_); + } else { + return dateRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public int getDateRangesCount() { + if (dateRangesBuilder_ == null) { + return dateRanges_.size(); + } else { + return dateRangesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder setDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.set(index, value); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder setDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges(com.google.analytics.admin.v1alpha.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(index, value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder addAllDateRanges( + java.lang.Iterable values) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dateRanges_); + onChanged(); + } else { + dateRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder clearDateRanges() { + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + dateRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public Builder removeDateRanges(int index) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.remove(index); + onChanged(); + } else { + dateRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange.Builder getDateRangesBuilder( + int index) { + return getDateRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( + int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public java.util.List + getDateRangesOrBuilderList() { + if (dateRangesBuilder_ != null) { + return dateRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dateRanges_); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder() { + return getDateRangesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder( + int index) { + return getDateRangesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + public java.util.List + getDateRangesBuilderList() { + return getDateRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDateRange, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder, + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> + getDateRangesFieldBuilder() { + if (dateRangesBuilder_ == null) { + dateRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDateRange, + com.google.analytics.admin.v1alpha.AccessDateRange.Builder, + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder>( + dateRanges_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + dateRanges_ = null; + } + return dateRangesBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + dimensionFilterBuilder_; + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + public boolean hasDimensionFilter() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } else { + return dimensionFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder setDimensionFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dimensionFilter_ = value; + } else { + dimensionFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder setDimensionFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (dimensionFilterBuilder_ == null) { + dimensionFilter_ = builderForValue.build(); + } else { + dimensionFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder mergeDimensionFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && dimensionFilter_ != null + && dimensionFilter_ + != com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) { + getDimensionFilterBuilder().mergeFrom(value); + } else { + dimensionFilter_ = value; + } + } else { + dimensionFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public Builder clearDimensionFilter() { + bitField0_ = (bitField0_ & ~0x00000010); + dimensionFilter_ = null; + if (dimensionFilterBuilder_ != null) { + dimensionFilterBuilder_.dispose(); + dimensionFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + getDimensionFilterBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDimensionFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + if (dimensionFilterBuilder_ != null) { + return dimensionFilterBuilder_.getMessageOrBuilder(); + } else { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getDimensionFilterFieldBuilder() { + if (dimensionFilterBuilder_ == null) { + dimensionFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + getDimensionFilter(), getParentForChildren(), isClean()); + dimensionFilter_ = null; + } + return dimensionFilterBuilder_; + } + + private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + metricFilterBuilder_; + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + public boolean hasMetricFilter() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { + if (metricFilterBuilder_ == null) { + return metricFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } else { + return metricFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder setMetricFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (metricFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricFilter_ = value; + } else { + metricFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder setMetricFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { + if (metricFilterBuilder_ == null) { + metricFilter_ = builderForValue.build(); + } else { + metricFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder mergeMetricFilter( + com.google.analytics.admin.v1alpha.AccessFilterExpression value) { + if (metricFilterBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && metricFilter_ != null + && metricFilter_ + != com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) { + getMetricFilterBuilder().mergeFrom(value); + } else { + metricFilter_ = value; + } + } else { + metricFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public Builder clearMetricFilter() { + bitField0_ = (bitField0_ & ~0x00000020); + metricFilter_ = null; + if (metricFilterBuilder_ != null) { + metricFilterBuilder_.dispose(); + metricFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder + getMetricFilterBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getMetricFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder + getMetricFilterOrBuilder() { + if (metricFilterBuilder_ != null) { + return metricFilterBuilder_.getMessageOrBuilder(); + } else { + return metricFilter_ == null + ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> + getMetricFilterFieldBuilder() { + if (metricFilterBuilder_ == null) { + metricFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessFilterExpression, + com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( + getMetricFilter(), getParentForChildren(), isClean()); + metricFilter_ = null; + } + return metricFilterBuilder_; + } + + private long offset_; + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000040); + offset_ = 0L; + onChanged(); + return this; + } + + private long limit_; + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     *
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     *
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(long value) { + + limit_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     *
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000080); + limit_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List orderBys_ = + java.util.Collections.emptyList(); + + private void ensureOrderBysIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + orderBys_ = + new java.util.ArrayList(orderBys_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> + orderBysBuilder_; + + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public java.util.List getOrderBysList() { + if (orderBysBuilder_ == null) { + return java.util.Collections.unmodifiableList(orderBys_); + } else { + return orderBysBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public int getOrderBysCount() { + if (orderBysBuilder_ == null) { + return orderBys_.size(); + } else { + return orderBysBuilder_.getCount(); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder setOrderBys(int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.set(index, value); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder setOrderBys( + int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.set(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys(com.google.analytics.admin.v1alpha.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(value); + onChanged(); + } else { + orderBysBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys(int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(index, value); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys( + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys( + int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder addAllOrderBys( + java.lang.Iterable values) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); + onChanged(); + } else { + orderBysBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder clearOrderBys() { + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + orderBysBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public Builder removeOrderBys(int index) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.remove(index); + onChanged(); + } else { + orderBysBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder getOrderBysBuilder(int index) { + return getOrderBysFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder( + int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public java.util.List + getOrderBysOrBuilderList() { + if (orderBysBuilder_ != null) { + return orderBysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orderBys_); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder() { + return getOrderBysFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder(int index) { + return getOrderBysFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + public java.util.List + getOrderBysBuilderList() { + return getOrderBysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> + getOrderBysFieldBuilder() { + if (orderBysBuilder_ == null) { + orderBysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessOrderBy, + com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder>( + orderBys_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + orderBys_ = null; + } + return orderBysBuilder_; + } + + private boolean returnEntityQuota_; + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+     * requests, this field must be false.
+     * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + @java.lang.Override + public boolean getReturnEntityQuota() { + return returnEntityQuota_; + } + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+     * requests, this field must be false.
+     * 
+ * + * bool return_entity_quota = 11; + * + * @param value The returnEntityQuota to set. + * @return This builder for chaining. + */ + public Builder setReturnEntityQuota(boolean value) { + + returnEntityQuota_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+     * requests, this field must be false.
+     * 
+ * + * bool return_entity_quota = 11; + * + * @return This builder for chaining. + */ + public Builder clearReturnEntityQuota() { + bitField0_ = (bitField0_ & ~0x00000400); + returnEntityQuota_ = false; + onChanged(); + return this; + } + + private boolean includeAllUsers_; + /** + * + * + *
+     * Optional. Determines whether to include users who have never made an API
+     * call in the response. If true, all users with access to the specified
+     * property or account are included in the response, regardless of whether
+     * they have made an API call or not. If false, only the users who have made
+     * an API call will be included.
+     * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + @java.lang.Override + public boolean getIncludeAllUsers() { + return includeAllUsers_; + } + /** + * + * + *
+     * Optional. Determines whether to include users who have never made an API
+     * call in the response. If true, all users with access to the specified
+     * property or account are included in the response, regardless of whether
+     * they have made an API call or not. If false, only the users who have made
+     * an API call will be included.
+     * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeAllUsers to set. + * @return This builder for chaining. + */ + public Builder setIncludeAllUsers(boolean value) { + + includeAllUsers_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Determines whether to include users who have never made an API
+     * call in the response. If true, all users with access to the specified
+     * property or account are included in the response, regardless of whether
+     * they have made an API call or not. If false, only the users who have made
+     * an API call will be included.
+     * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeAllUsers() { + bitField0_ = (bitField0_ & ~0x00000800); + includeAllUsers_ = false; + onChanged(); + return this; + } + + private boolean expandGroups_; + /** + * + * + *
+     * Optional. Decides whether to return the users within user groups. This
+     * field works only when include_all_users is set to true. If true, it will
+     * return all users with access to the specified property or account.
+     * If false, only the users with direct access will be returned.
+     * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + @java.lang.Override + public boolean getExpandGroups() { + return expandGroups_; + } + /** + * + * + *
+     * Optional. Decides whether to return the users within user groups. This
+     * field works only when include_all_users is set to true. If true, it will
+     * return all users with access to the specified property or account.
+     * If false, only the users with direct access will be returned.
+     * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The expandGroups to set. + * @return This builder for chaining. + */ + public Builder setExpandGroups(boolean value) { + + expandGroups_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Decides whether to return the users within user groups. This
+     * field works only when include_all_users is set to true. If true, it will
+     * return all users with access to the specified property or account.
+     * If false, only the users with direct access will be returned.
+     * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearExpandGroups() { + bitField0_ = (bitField0_ & ~0x00001000); + expandGroups_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RunAccessReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportRequest) + private static final com.google.analytics.admin.v1alpha.RunAccessReportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportRequest(); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAccessReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java new file mode 100644 index 000000000000..5461495c7937 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java @@ -0,0 +1,520 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface RunAccessReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The entity. + */ + java.lang.String getEntity(); + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); + + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + java.util.List getDimensionsList(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + int getDimensionsCount(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + java.util.List + getDimensionsOrBuilderList(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; + */ + com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder(int index); + + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + int getMetricsCount(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; + */ + com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + java.util.List getDateRangesList(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + int getDateRangesCount(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + java.util.List + getDateRangesOrBuilderList(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; + */ + com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder(int index); + + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + boolean hasDimensionFilter(); + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter(); + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder(); + + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + boolean hasMetricFilter(); + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter(); + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; + */ + com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder(); + + /** + * + * + *
+   * The row count of the start row. The first row is counted as row 0. If
+   * offset is unspecified, it is treated as 0. If offset is zero, then this
+   * method will return the first page of results with `limit` entries.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
+   * The number of rows to return. If unspecified, 10,000 rows are returned. The
+   * API returns a maximum of 100,000 rows per request, no matter how many you
+   * ask for. `limit` must be positive.
+   *
+   * The API may return fewer rows than the requested `limit`, if there aren't
+   * as many remaining rows as the `limit`. For instance, there are fewer than
+   * 300 possible values for the dimension `country`, so when reporting on only
+   * `country`, you can't get more than 300 rows, even if you set `limit` to a
+   * higher value.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + long getLimit(); + + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + java.util.List getOrderBysList(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + int getOrderBysCount(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + java.util.List + getOrderBysOrBuilderList(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; + */ + com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder(int index); + + /** + * + * + *
+   * Toggles whether to return the current state of this Analytics Property's
+   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+   * requests, this field must be false.
+   * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + boolean getReturnEntityQuota(); + + /** + * + * + *
+   * Optional. Determines whether to include users who have never made an API
+   * call in the response. If true, all users with access to the specified
+   * property or account are included in the response, regardless of whether
+   * they have made an API call or not. If false, only the users who have made
+   * an API call will be included.
+   * 
+ * + * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeAllUsers. + */ + boolean getIncludeAllUsers(); + + /** + * + * + *
+   * Optional. Decides whether to return the users within user groups. This
+   * field works only when include_all_users is set to true. If true, it will
+   * return all users with access to the specified property or account.
+   * If false, only the users with direct access will be returned.
+   * 
+ * + * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The expandGroups. + */ + boolean getExpandGroups(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java new file mode 100644 index 000000000000..639c3979d22a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java @@ -0,0 +1,2466 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The customized Data Access Record Report response.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportResponse} + */ +public final class RunAccessReportResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportResponse) + RunAccessReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAccessReportResponse.newBuilder() to construct. + private RunAccessReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAccessReportResponse() { + dimensionHeaders_ = java.util.Collections.emptyList(); + metricHeaders_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAccessReportResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, + com.google.analytics.admin.v1alpha.RunAccessReportResponse.Builder.class); + } + + public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + dimensionHeaders_; + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionHeadersList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionHeadersOrBuilderList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public int getDimensionHeadersCount() { + return dimensionHeaders_.size(); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index) { + return dimensionHeaders_.get(index); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder + getDimensionHeadersOrBuilder(int index) { + return dimensionHeaders_.get(index); + } + + public static final int METRIC_HEADERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List metricHeaders_; + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersList() { + return metricHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersOrBuilderList() { + return metricHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public int getMetricHeadersCount() { + return metricHeaders_.size(); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index) { + return metricHeaders_.get(index); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + return metricHeaders_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List rows_; + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRow getRows(int index) { + return rows_.get(index); + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index) { + return rows_.get(index); + } + + public static final int ROW_COUNT_FIELD_NUMBER = 4; + private int rowCount_ = 0; + /** + * + * + *
+   * The total number of rows in the query result. `rowCount` is independent of
+   * the number of rows returned in the response, the `limit` request
+   * parameter, and the `offset` request parameter. For example if a query
+   * returns 175 rows and includes `limit` of 50 in the API request, the
+   * response will contain `rowCount` of 175 but only 50 rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + + public static final int QUOTA_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1alpha.AccessQuota quota_; + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + @java.lang.Override + public boolean hasQuota() { + return quota_ != null; + } + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return The quota. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { + return quota_ == null + ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() + : quota_; + } + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { + return quota_ == null + ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() + : quota_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensionHeaders_.size(); i++) { + output.writeMessage(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + output.writeMessage(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(3, rows_.get(i)); + } + if (rowCount_ != 0) { + output.writeInt32(4, rowCount_); + } + if (quota_ != null) { + output.writeMessage(5, getQuota()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dimensionHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i)); + } + if (rowCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, rowCount_); + } + if (quota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQuota()); + } + size += 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.admin.v1alpha.RunAccessReportResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.RunAccessReportResponse other = + (com.google.analytics.admin.v1alpha.RunAccessReportResponse) obj; + + if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; + if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (getRowCount() != other.getRowCount()) return false; + if (hasQuota() != other.hasQuota()) return false; + if (hasQuota()) { + if (!getQuota().equals(other.getQuota())) return false; + } + if (!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 (getDimensionHeadersCount() > 0) { + hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionHeadersList().hashCode(); + } + if (getMetricHeadersCount() > 0) { + hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getMetricHeadersList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRowCount(); + if (hasQuota()) { + hash = (37 * hash) + QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getQuota().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.RunAccessReportResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The customized Data Access Record Report response.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RunAccessReportResponse) + com.google.analytics.admin.v1alpha.RunAccessReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, + com.google.analytics.admin.v1alpha.RunAccessReportResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.RunAccessReportResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + } else { + dimensionHeaders_ = null; + dimensionHeadersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + } else { + metricHeaders_ = null; + metricHeadersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + } else { + rows_ = null; + rowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + rowCount_ = 0; + quota_ = null; + if (quotaBuilder_ != null) { + quotaBuilder_.dispose(); + quotaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse build() { + com.google.analytics.admin.v1alpha.RunAccessReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse buildPartial() { + com.google.analytics.admin.v1alpha.RunAccessReportResponse result = + new com.google.analytics.admin.v1alpha.RunAccessReportResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.RunAccessReportResponse result) { + if (dimensionHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionHeaders_ = dimensionHeaders_; + } else { + result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); + } + if (metricHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricHeaders_ = metricHeaders_; + } else { + result.metricHeaders_ = metricHeadersBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.RunAccessReportResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.rowCount_ = rowCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.quota_ = quotaBuilder_ == null ? quota_ : quotaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportResponse other) { + if (other == com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance()) + return this; + if (dimensionHeadersBuilder_ == null) { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeaders_.isEmpty()) { + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.addAll(other.dimensionHeaders_); + } + onChanged(); + } + } else { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeadersBuilder_.isEmpty()) { + dimensionHeadersBuilder_.dispose(); + dimensionHeadersBuilder_ = null; + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionHeadersFieldBuilder() + : null; + } else { + dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); + } + } + } + if (metricHeadersBuilder_ == null) { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeaders_.isEmpty()) { + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricHeadersIsMutable(); + metricHeaders_.addAll(other.metricHeaders_); + } + onChanged(); + } + } else { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeadersBuilder_.isEmpty()) { + metricHeadersBuilder_.dispose(); + metricHeadersBuilder_ = null; + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + metricHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricHeadersFieldBuilder() + : null; + } else { + metricHeadersBuilder_.addAllMessages(other.metricHeaders_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowsFieldBuilder() + : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + if (other.getRowCount() != 0) { + setRowCount(other.getRowCount()); + } + if (other.hasQuota()) { + mergeQuota(other.getQuota()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.AccessDimensionHeader m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.parser(), + extensionRegistry); + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(m); + } else { + dimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1alpha.AccessMetricHeader m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessMetricHeader.parser(), + extensionRegistry); + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(m); + } else { + metricHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1alpha.AccessRow m = + input.readMessage( + com.google.analytics.admin.v1alpha.AccessRow.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + rowCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getQuotaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + dimensionHeaders_ = java.util.Collections.emptyList(); + + private void ensureDimensionHeadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = + new java.util.ArrayList( + dimensionHeaders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionHeader, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> + dimensionHeadersBuilder_; + + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List + getDimensionHeadersList() { + if (dimensionHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } else { + return dimensionHeadersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public int getDimensionHeadersCount() { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.size(); + } else { + return dimensionHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder setDimensionHeaders( + int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder setDimensionHeaders( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + int index, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addAllDimensionHeaders( + java.lang.Iterable + values) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_); + onChanged(); + } else { + dimensionHeadersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder clearDimensionHeaders() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionHeadersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder removeDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.remove(index); + onChanged(); + } else { + dimensionHeadersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder + getDimensionHeadersBuilder(int index) { + return getDimensionHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder + getDimensionHeadersOrBuilder(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> + getDimensionHeadersOrBuilderList() { + if (dimensionHeadersBuilder_ != null) { + return dimensionHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder + addDimensionHeadersBuilder() { + return getDimensionHeadersFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder + addDimensionHeadersBuilder(int index) { + return getDimensionHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List + getDimensionHeadersBuilderList() { + return getDimensionHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionHeader, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> + getDimensionHeadersFieldBuilder() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessDimensionHeader, + com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder>( + dimensionHeaders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionHeaders_ = null; + } + return dimensionHeadersBuilder_; + } + + private java.util.List metricHeaders_ = + java.util.Collections.emptyList(); + + private void ensureMetricHeadersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = + new java.util.ArrayList( + metricHeaders_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricHeader, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder> + metricHeadersBuilder_; + + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersList() { + if (metricHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricHeaders_); + } else { + return metricHeadersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public int getMetricHeadersCount() { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.size(); + } else { + return metricHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, value); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders(com.google.analytics.admin.v1alpha.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder addAllMetricHeaders( + java.lang.Iterable + values) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_); + onChanged(); + } else { + metricHeadersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder clearMetricHeaders() { + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricHeadersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public Builder removeMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.remove(index); + onChanged(); + } else { + metricHeadersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder getMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersOrBuilderList() { + if (metricHeadersBuilder_ != null) { + return metricHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricHeaders_); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder addMetricHeadersBuilder() { + return getMetricHeadersFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder addMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersBuilderList() { + return getMetricHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricHeader, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder> + getMetricHeadersFieldBuilder() { + if (metricHeadersBuilder_ == null) { + metricHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessMetricHeader, + com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder>( + metricHeaders_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + metricHeaders_ = null; + } + return metricHeadersBuilder_; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessRow, + com.google.analytics.admin.v1alpha.AccessRow.Builder, + com.google.analytics.admin.v1alpha.AccessRowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder setRows(int index, com.google.analytics.admin.v1alpha.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder setRows( + int index, com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows(com.google.analytics.admin.v1alpha.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows(int index, com.google.analytics.admin.v1alpha.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows(com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addRows( + int index, com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow.Builder getRowsBuilder(int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow.Builder addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1alpha.AccessRow.Builder addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessRow, + com.google.analytics.admin.v1alpha.AccessRow.Builder, + com.google.analytics.admin.v1alpha.AccessRowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessRow, + com.google.analytics.admin.v1alpha.AccessRow.Builder, + com.google.analytics.admin.v1alpha.AccessRowOrBuilder>( + rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private int rowCount_; + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(int value) { + + rowCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + bitField0_ = (bitField0_ & ~0x00000008); + rowCount_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.AccessQuota quota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuota, + com.google.analytics.admin.v1alpha.AccessQuota.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> + quotaBuilder_; + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + public boolean hasQuota() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return The quota. + */ + public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { + if (quotaBuilder_ == null) { + return quota_ == null + ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() + : quota_; + } else { + return quotaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder setQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { + if (quotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quota_ = value; + } else { + quotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder setQuota( + com.google.analytics.admin.v1alpha.AccessQuota.Builder builderForValue) { + if (quotaBuilder_ == null) { + quota_ = builderForValue.build(); + } else { + quotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder mergeQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { + if (quotaBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && quota_ != null + && quota_ != com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance()) { + getQuotaBuilder().mergeFrom(value); + } else { + quota_ = value; + } + } else { + quotaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public Builder clearQuota() { + bitField0_ = (bitField0_ & ~0x00000010); + quota_ = null; + if (quotaBuilder_ != null) { + quotaBuilder_.dispose(); + quotaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public com.google.analytics.admin.v1alpha.AccessQuota.Builder getQuotaBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { + if (quotaBuilder_ != null) { + return quotaBuilder_.getMessageOrBuilder(); + } else { + return quota_ == null + ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() + : quota_; + } + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuota, + com.google.analytics.admin.v1alpha.AccessQuota.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> + getQuotaFieldBuilder() { + if (quotaBuilder_ == null) { + quotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessQuota, + com.google.analytics.admin.v1alpha.AccessQuota.Builder, + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder>( + getQuota(), getParentForChildren(), isClean()); + quota_ = null; + } + return quotaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RunAccessReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportResponse) + private static final com.google.analytics.admin.v1alpha.RunAccessReportResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportResponse(); + } + + public static com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAccessReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java new file mode 100644 index 000000000000..b1895f87e69f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java @@ -0,0 +1,267 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface RunAccessReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + java.util.List + getDimensionHeadersList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + int getDimensionHeadersCount(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + java.util.List + getDimensionHeadersOrBuilderList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; + * + */ + com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index); + + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + java.util.List getMetricHeadersList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + int getMetricHeadersCount(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + java.util.List + getMetricHeadersOrBuilderList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; + */ + com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + java.util.List getRowsList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + com.google.analytics.admin.v1alpha.AccessRow getRows(int index); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + int getRowsCount(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + java.util.List + getRowsOrBuilderList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; + */ + com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder(int index); + + /** + * + * + *
+   * The total number of rows in the query result. `rowCount` is independent of
+   * the number of rows returned in the response, the `limit` request
+   * parameter, and the `offset` request parameter. For example if a query
+   * returns 175 rows and includes `limit` of 50 in the API request, the
+   * response will contain `rowCount` of 175 but only 50 rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + int getRowCount(); + + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + boolean hasQuota(); + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + * + * @return The quota. + */ + com.google.analytics.admin.v1alpha.AccessQuota getQuota(); + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1alpha.AccessQuota quota = 5; + */ + com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java new file mode 100644 index 000000000000..8bcf96ce2d5e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java @@ -0,0 +1,1809 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * SKAdNetwork conversion value schema of an iOS stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema} + */ +public final class SKAdNetworkConversionValueSchema extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) + SKAdNetworkConversionValueSchemaOrBuilder { + private static final long serialVersionUID = 0L; + // Use SKAdNetworkConversionValueSchema.newBuilder() to construct. + private SKAdNetworkConversionValueSchema( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SKAdNetworkConversionValueSchema() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SKAdNetworkConversionValueSchema(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * stream, and there can be at most one such child under an iOS stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * stream, and there can be at most one such child under an iOS stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSTBACK_WINDOW_ONE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowOne_; + /** + * + * + *
+   * Required. The conversion value settings for the first postback window.
+   * These differ from values for postback window two and three in that they
+   * contain a "Fine" grained conversion value (a numeric value).
+   *
+   * Conversion values for this postback window must be set.  The other windows
+   * are optional and may inherit this window's settings if unset or disabled.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the postbackWindowOne field is set. + */ + @java.lang.Override + public boolean hasPostbackWindowOne() { + return postbackWindowOne_ != null; + } + /** + * + * + *
+   * Required. The conversion value settings for the first postback window.
+   * These differ from values for postback window two and three in that they
+   * contain a "Fine" grained conversion value (a numeric value).
+   *
+   * Conversion values for this postback window must be set.  The other windows
+   * are optional and may inherit this window's settings if unset or disabled.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The postbackWindowOne. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowOne() { + return postbackWindowOne_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowOne_; + } + /** + * + * + *
+   * Required. The conversion value settings for the first postback window.
+   * These differ from values for postback window two and three in that they
+   * contain a "Fine" grained conversion value (a numeric value).
+   *
+   * Conversion values for this postback window must be set.  The other windows
+   * are optional and may inherit this window's settings if unset or disabled.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder + getPostbackWindowOneOrBuilder() { + return postbackWindowOne_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowOne_; + } + + public static final int POSTBACK_WINDOW_TWO_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowTwo_; + /** + * + * + *
+   * The conversion value settings for the second postback window.
+   *
+   * This field should only be configured if there is a need to define different
+   * conversion values for this postback window.
+   *
+   * If enable_postback_window_settings is set to false for this postback
+   * window, the values from postback_window_one will be used.
+   * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * + * @return Whether the postbackWindowTwo field is set. + */ + @java.lang.Override + public boolean hasPostbackWindowTwo() { + return postbackWindowTwo_ != null; + } + /** + * + * + *
+   * The conversion value settings for the second postback window.
+   *
+   * This field should only be configured if there is a need to define different
+   * conversion values for this postback window.
+   *
+   * If enable_postback_window_settings is set to false for this postback
+   * window, the values from postback_window_one will be used.
+   * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * + * @return The postbackWindowTwo. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowTwo() { + return postbackWindowTwo_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowTwo_; + } + /** + * + * + *
+   * The conversion value settings for the second postback window.
+   *
+   * This field should only be configured if there is a need to define different
+   * conversion values for this postback window.
+   *
+   * If enable_postback_window_settings is set to false for this postback
+   * window, the values from postback_window_one will be used.
+   * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder + getPostbackWindowTwoOrBuilder() { + return postbackWindowTwo_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowTwo_; + } + + public static final int POSTBACK_WINDOW_THREE_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowThree_; + /** + * + * + *
+   * The conversion value settings for the third postback window.
+   *
+   * This field should only be set if the user chose to define different
+   * conversion values for this postback window. It is allowed to configure
+   * window 3 without setting window 2. In case window 1 & 2 settings are set
+   * and enable_postback_window_settings for this postback window is set to
+   * false, the schema will inherit settings from postback_window_two.
+   * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * + * @return Whether the postbackWindowThree field is set. + */ + @java.lang.Override + public boolean hasPostbackWindowThree() { + return postbackWindowThree_ != null; + } + /** + * + * + *
+   * The conversion value settings for the third postback window.
+   *
+   * This field should only be set if the user chose to define different
+   * conversion values for this postback window. It is allowed to configure
+   * window 3 without setting window 2. In case window 1 & 2 settings are set
+   * and enable_postback_window_settings for this postback window is set to
+   * false, the schema will inherit settings from postback_window_two.
+   * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * + * @return The postbackWindowThree. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowThree() { + return postbackWindowThree_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowThree_; + } + /** + * + * + *
+   * The conversion value settings for the third postback window.
+   *
+   * This field should only be set if the user chose to define different
+   * conversion values for this postback window. It is allowed to configure
+   * window 3 without setting window 2. In case window 1 & 2 settings are set
+   * and enable_postback_window_settings for this postback window is set to
+   * false, the schema will inherit settings from postback_window_two.
+   * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder + getPostbackWindowThreeOrBuilder() { + return postbackWindowThree_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowThree_; + } + + public static final int APPLY_CONVERSION_VALUES_FIELD_NUMBER = 5; + private boolean applyConversionValues_ = false; + /** + * + * + *
+   * If enabled, the GA SDK will set conversion values using this schema
+   * definition, and schema will be exported to any Google Ads accounts linked
+   * to this property. If disabled, the GA SDK will not automatically set
+   * conversion values, and also the schema will not be exported to Ads.
+   * 
+ * + * bool apply_conversion_values = 5; + * + * @return The applyConversionValues. + */ + @java.lang.Override + public boolean getApplyConversionValues() { + return applyConversionValues_; + } + + 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 (postbackWindowOne_ != null) { + output.writeMessage(2, getPostbackWindowOne()); + } + if (postbackWindowTwo_ != null) { + output.writeMessage(3, getPostbackWindowTwo()); + } + if (postbackWindowThree_ != null) { + output.writeMessage(4, getPostbackWindowThree()); + } + if (applyConversionValues_ != false) { + output.writeBool(5, applyConversionValues_); + } + 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 (postbackWindowOne_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPostbackWindowOne()); + } + if (postbackWindowTwo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPostbackWindowTwo()); + } + if (postbackWindowThree_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getPostbackWindowThree()); + } + if (applyConversionValues_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, applyConversionValues_); + } + 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.admin.v1alpha.SKAdNetworkConversionValueSchema)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema other = + (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) obj; + + if (!getName().equals(other.getName())) return false; + if (hasPostbackWindowOne() != other.hasPostbackWindowOne()) return false; + if (hasPostbackWindowOne()) { + if (!getPostbackWindowOne().equals(other.getPostbackWindowOne())) return false; + } + if (hasPostbackWindowTwo() != other.hasPostbackWindowTwo()) return false; + if (hasPostbackWindowTwo()) { + if (!getPostbackWindowTwo().equals(other.getPostbackWindowTwo())) return false; + } + if (hasPostbackWindowThree() != other.hasPostbackWindowThree()) return false; + if (hasPostbackWindowThree()) { + if (!getPostbackWindowThree().equals(other.getPostbackWindowThree())) return false; + } + if (getApplyConversionValues() != other.getApplyConversionValues()) 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(); + if (hasPostbackWindowOne()) { + hash = (37 * hash) + POSTBACK_WINDOW_ONE_FIELD_NUMBER; + hash = (53 * hash) + getPostbackWindowOne().hashCode(); + } + if (hasPostbackWindowTwo()) { + hash = (37 * hash) + POSTBACK_WINDOW_TWO_FIELD_NUMBER; + hash = (53 * hash) + getPostbackWindowTwo().hashCode(); + } + if (hasPostbackWindowThree()) { + hash = (37 * hash) + POSTBACK_WINDOW_THREE_FIELD_NUMBER; + hash = (53 * hash) + getPostbackWindowThree().hashCode(); + } + hash = (37 * hash) + APPLY_CONVERSION_VALUES_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getApplyConversionValues()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema 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; + } + /** + * + * + *
+   * SKAdNetwork conversion value schema of an iOS stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + postbackWindowOne_ = null; + if (postbackWindowOneBuilder_ != null) { + postbackWindowOneBuilder_.dispose(); + postbackWindowOneBuilder_ = null; + } + postbackWindowTwo_ = null; + if (postbackWindowTwoBuilder_ != null) { + postbackWindowTwoBuilder_.dispose(); + postbackWindowTwoBuilder_ = null; + } + postbackWindowThree_ = null; + if (postbackWindowThreeBuilder_ != null) { + postbackWindowThreeBuilder_.dispose(); + postbackWindowThreeBuilder_ = null; + } + applyConversionValues_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema build() { + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema buildPartial() { + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema result = + new com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.postbackWindowOne_ = + postbackWindowOneBuilder_ == null + ? postbackWindowOne_ + : postbackWindowOneBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.postbackWindowTwo_ = + postbackWindowTwoBuilder_ == null + ? postbackWindowTwo_ + : postbackWindowTwoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.postbackWindowThree_ = + postbackWindowThreeBuilder_ == null + ? postbackWindowThree_ + : postbackWindowThreeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.applyConversionValues_ = applyConversionValues_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema other) { + if (other + == com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasPostbackWindowOne()) { + mergePostbackWindowOne(other.getPostbackWindowOne()); + } + if (other.hasPostbackWindowTwo()) { + mergePostbackWindowTwo(other.getPostbackWindowTwo()); + } + if (other.hasPostbackWindowThree()) { + mergePostbackWindowThree(other.getPostbackWindowThree()); + } + if (other.getApplyConversionValues() != false) { + setApplyConversionValues(other.getApplyConversionValues()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getPostbackWindowOneFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getPostbackWindowTwoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getPostbackWindowThreeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + applyConversionValues_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * stream, and there can be at most one such child under an iOS stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * stream, and there can be at most one such child under an iOS stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * stream, and there can be at most one such child under an iOS stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * stream, and there can be at most one such child under an iOS stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
+     * 
+ * + * string name = 1 [(.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. Resource name of the schema. This will be child of ONLY an iOS
+     * stream, and there can be at most one such child under an iOS stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowOne_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> + postbackWindowOneBuilder_; + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the postbackWindowOne field is set. + */ + public boolean hasPostbackWindowOne() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The postbackWindowOne. + */ + public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowOne() { + if (postbackWindowOneBuilder_ == null) { + return postbackWindowOne_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowOne_; + } else { + return postbackWindowOneBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPostbackWindowOne(com.google.analytics.admin.v1alpha.PostbackWindow value) { + if (postbackWindowOneBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postbackWindowOne_ = value; + } else { + postbackWindowOneBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setPostbackWindowOne( + com.google.analytics.admin.v1alpha.PostbackWindow.Builder builderForValue) { + if (postbackWindowOneBuilder_ == null) { + postbackWindowOne_ = builderForValue.build(); + } else { + postbackWindowOneBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergePostbackWindowOne(com.google.analytics.admin.v1alpha.PostbackWindow value) { + if (postbackWindowOneBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && postbackWindowOne_ != null + && postbackWindowOne_ + != com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) { + getPostbackWindowOneBuilder().mergeFrom(value); + } else { + postbackWindowOne_ = value; + } + } else { + postbackWindowOneBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearPostbackWindowOne() { + bitField0_ = (bitField0_ & ~0x00000002); + postbackWindowOne_ = null; + if (postbackWindowOneBuilder_ != null) { + postbackWindowOneBuilder_.dispose(); + postbackWindowOneBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PostbackWindow.Builder getPostbackWindowOneBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPostbackWindowOneFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder + getPostbackWindowOneOrBuilder() { + if (postbackWindowOneBuilder_ != null) { + return postbackWindowOneBuilder_.getMessageOrBuilder(); + } else { + return postbackWindowOne_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowOne_; + } + } + /** + * + * + *
+     * Required. The conversion value settings for the first postback window.
+     * These differ from values for postback window two and three in that they
+     * contain a "Fine" grained conversion value (a numeric value).
+     *
+     * Conversion values for this postback window must be set.  The other windows
+     * are optional and may inherit this window's settings if unset or disabled.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> + getPostbackWindowOneFieldBuilder() { + if (postbackWindowOneBuilder_ == null) { + postbackWindowOneBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder>( + getPostbackWindowOne(), getParentForChildren(), isClean()); + postbackWindowOne_ = null; + } + return postbackWindowOneBuilder_; + } + + private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowTwo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> + postbackWindowTwoBuilder_; + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * + * @return Whether the postbackWindowTwo field is set. + */ + public boolean hasPostbackWindowTwo() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * + * @return The postbackWindowTwo. + */ + public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowTwo() { + if (postbackWindowTwoBuilder_ == null) { + return postbackWindowTwo_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowTwo_; + } else { + return postbackWindowTwoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + public Builder setPostbackWindowTwo(com.google.analytics.admin.v1alpha.PostbackWindow value) { + if (postbackWindowTwoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postbackWindowTwo_ = value; + } else { + postbackWindowTwoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + public Builder setPostbackWindowTwo( + com.google.analytics.admin.v1alpha.PostbackWindow.Builder builderForValue) { + if (postbackWindowTwoBuilder_ == null) { + postbackWindowTwo_ = builderForValue.build(); + } else { + postbackWindowTwoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + public Builder mergePostbackWindowTwo(com.google.analytics.admin.v1alpha.PostbackWindow value) { + if (postbackWindowTwoBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && postbackWindowTwo_ != null + && postbackWindowTwo_ + != com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) { + getPostbackWindowTwoBuilder().mergeFrom(value); + } else { + postbackWindowTwo_ = value; + } + } else { + postbackWindowTwoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + public Builder clearPostbackWindowTwo() { + bitField0_ = (bitField0_ & ~0x00000004); + postbackWindowTwo_ = null; + if (postbackWindowTwoBuilder_ != null) { + postbackWindowTwoBuilder_.dispose(); + postbackWindowTwoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + public com.google.analytics.admin.v1alpha.PostbackWindow.Builder getPostbackWindowTwoBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getPostbackWindowTwoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder + getPostbackWindowTwoOrBuilder() { + if (postbackWindowTwoBuilder_ != null) { + return postbackWindowTwoBuilder_.getMessageOrBuilder(); + } else { + return postbackWindowTwo_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowTwo_; + } + } + /** + * + * + *
+     * The conversion value settings for the second postback window.
+     *
+     * This field should only be configured if there is a need to define different
+     * conversion values for this postback window.
+     *
+     * If enable_postback_window_settings is set to false for this postback
+     * window, the values from postback_window_one will be used.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> + getPostbackWindowTwoFieldBuilder() { + if (postbackWindowTwoBuilder_ == null) { + postbackWindowTwoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder>( + getPostbackWindowTwo(), getParentForChildren(), isClean()); + postbackWindowTwo_ = null; + } + return postbackWindowTwoBuilder_; + } + + private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowThree_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> + postbackWindowThreeBuilder_; + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * + * @return Whether the postbackWindowThree field is set. + */ + public boolean hasPostbackWindowThree() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * + * @return The postbackWindowThree. + */ + public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowThree() { + if (postbackWindowThreeBuilder_ == null) { + return postbackWindowThree_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowThree_; + } else { + return postbackWindowThreeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + public Builder setPostbackWindowThree(com.google.analytics.admin.v1alpha.PostbackWindow value) { + if (postbackWindowThreeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + postbackWindowThree_ = value; + } else { + postbackWindowThreeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + public Builder setPostbackWindowThree( + com.google.analytics.admin.v1alpha.PostbackWindow.Builder builderForValue) { + if (postbackWindowThreeBuilder_ == null) { + postbackWindowThree_ = builderForValue.build(); + } else { + postbackWindowThreeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + public Builder mergePostbackWindowThree( + com.google.analytics.admin.v1alpha.PostbackWindow value) { + if (postbackWindowThreeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && postbackWindowThree_ != null + && postbackWindowThree_ + != com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) { + getPostbackWindowThreeBuilder().mergeFrom(value); + } else { + postbackWindowThree_ = value; + } + } else { + postbackWindowThreeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + public Builder clearPostbackWindowThree() { + bitField0_ = (bitField0_ & ~0x00000008); + postbackWindowThree_ = null; + if (postbackWindowThreeBuilder_ != null) { + postbackWindowThreeBuilder_.dispose(); + postbackWindowThreeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + public com.google.analytics.admin.v1alpha.PostbackWindow.Builder + getPostbackWindowThreeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getPostbackWindowThreeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder + getPostbackWindowThreeOrBuilder() { + if (postbackWindowThreeBuilder_ != null) { + return postbackWindowThreeBuilder_.getMessageOrBuilder(); + } else { + return postbackWindowThree_ == null + ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() + : postbackWindowThree_; + } + } + /** + * + * + *
+     * The conversion value settings for the third postback window.
+     *
+     * This field should only be set if the user chose to define different
+     * conversion values for this postback window. It is allowed to configure
+     * window 3 without setting window 2. In case window 1 & 2 settings are set
+     * and enable_postback_window_settings for this postback window is set to
+     * false, the schema will inherit settings from postback_window_two.
+     * 
+ * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> + getPostbackWindowThreeFieldBuilder() { + if (postbackWindowThreeBuilder_ == null) { + postbackWindowThreeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.PostbackWindow, + com.google.analytics.admin.v1alpha.PostbackWindow.Builder, + com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder>( + getPostbackWindowThree(), getParentForChildren(), isClean()); + postbackWindowThree_ = null; + } + return postbackWindowThreeBuilder_; + } + + private boolean applyConversionValues_; + /** + * + * + *
+     * If enabled, the GA SDK will set conversion values using this schema
+     * definition, and schema will be exported to any Google Ads accounts linked
+     * to this property. If disabled, the GA SDK will not automatically set
+     * conversion values, and also the schema will not be exported to Ads.
+     * 
+ * + * bool apply_conversion_values = 5; + * + * @return The applyConversionValues. + */ + @java.lang.Override + public boolean getApplyConversionValues() { + return applyConversionValues_; + } + /** + * + * + *
+     * If enabled, the GA SDK will set conversion values using this schema
+     * definition, and schema will be exported to any Google Ads accounts linked
+     * to this property. If disabled, the GA SDK will not automatically set
+     * conversion values, and also the schema will not be exported to Ads.
+     * 
+ * + * bool apply_conversion_values = 5; + * + * @param value The applyConversionValues to set. + * @return This builder for chaining. + */ + public Builder setApplyConversionValues(boolean value) { + + applyConversionValues_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * If enabled, the GA SDK will set conversion values using this schema
+     * definition, and schema will be exported to any Google Ads accounts linked
+     * to this property. If disabled, the GA SDK will not automatically set
+     * conversion values, and also the schema will not be exported to Ads.
+     * 
+ * + * bool apply_conversion_values = 5; + * + * @return This builder for chaining. + */ + public Builder clearApplyConversionValues() { + bitField0_ = (bitField0_ & ~0x00000010); + applyConversionValues_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) + private static final com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema(); + } + + public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SKAdNetworkConversionValueSchema parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java similarity index 84% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java index ec7bb7c7fefc..a24729e60bd0 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface SKAdNetworkConversionValueSchemaOrBuilder extends +public interface SKAdNetworkConversionValueSchemaOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
@@ -16,10 +34,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
@@ -28,12 +49,14 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The conversion value settings for the first postback window.
    * These differ from values for postback window two and three in that they
@@ -43,11 +66,16 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * are optional and may inherit this window's settings if unset or disabled.
    * 
* - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the postbackWindowOne field is set. */ boolean hasPostbackWindowOne(); /** + * + * *
    * Required. The conversion value settings for the first postback window.
    * These differ from values for postback window two and three in that they
@@ -57,11 +85,16 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * are optional and may inherit this window's settings if unset or disabled.
    * 
* - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The postbackWindowOne. */ com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowOne(); /** + * + * *
    * Required. The conversion value settings for the first postback window.
    * These differ from values for postback window two and three in that they
@@ -71,11 +104,15 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * are optional and may inherit this window's settings if unset or disabled.
    * 
* - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowOneOrBuilder(); /** + * + * *
    * The conversion value settings for the second postback window.
    *
@@ -87,10 +124,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * * @return Whether the postbackWindowTwo field is set. */ boolean hasPostbackWindowTwo(); /** + * + * *
    * The conversion value settings for the second postback window.
    *
@@ -102,10 +142,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; + * * @return The postbackWindowTwo. */ com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowTwo(); /** + * + * *
    * The conversion value settings for the second postback window.
    *
@@ -121,6 +164,8 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
   com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowTwoOrBuilder();
 
   /**
+   *
+   *
    * 
    * The conversion value settings for the third postback window.
    *
@@ -132,10 +177,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * * @return Whether the postbackWindowThree field is set. */ boolean hasPostbackWindowThree(); /** + * + * *
    * The conversion value settings for the third postback window.
    *
@@ -147,10 +195,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * 
* * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; + * * @return The postbackWindowThree. */ com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowThree(); /** + * + * *
    * The conversion value settings for the third postback window.
    *
@@ -166,6 +217,8 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
   com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowThreeOrBuilder();
 
   /**
+   *
+   *
    * 
    * If enabled, the GA SDK will set conversion values using this schema
    * definition, and schema will be exported to any Google Ads accounts linked
@@ -174,6 +227,7 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder extends
    * 
* * bool apply_conversion_values = 5; + * * @return The applyConversionValues. */ boolean getApplyConversionValues(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java new file mode 100644 index 000000000000..fb4ea2b39ece --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java @@ -0,0 +1,2263 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link between a GA4 property and a Search Ads 360 entity.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchAds360Link} + */ +public final class SearchAds360Link extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchAds360Link) + SearchAds360LinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchAds360Link.newBuilder() to construct. + private SearchAds360Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchAds360Link() { + name_ = ""; + advertiserId_ = ""; + advertiserDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchAds360Link(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchAds360Link.class, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. The resource name for this SearchAds360Link resource.
+   * Format: properties/{propertyId}/searchAds360Links/{linkId}
+   *
+   * Note: linkId is not the Search Ads 360 advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this SearchAds360Link resource.
+   * Format: properties/{propertyId}/searchAds360Links/{linkId}
+   *
+   * Note: linkId is not the Search Ads 360 advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserId_ = ""; + /** + * + * + *
+   * Immutable. This field represents the Advertiser ID of the Search Ads 360
+   * Advertiser. that has been linked.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + @java.lang.Override + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + 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(); + advertiserId_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. This field represents the Advertiser ID of the Search Ads 360
+   * Advertiser. that has been linked.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 3; + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Search Ads 360 into the
+   * GA4 property. After link creation, this can only be updated from the Search
+   * Ads 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Search Ads 360 into the
+   * GA4 property. After link creation, this can only be updated from the Search
+   * Ads 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Search Ads 360 into the
+   * GA4 property. After link creation, this can only be updated from the Search
+   * Ads 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + + public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue costDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+   * property. This can only be enabled if campaign_data_sharing_enabled is
+   * enabled. After link creation, this can only be updated from
+   * the Search Ads 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCostDataSharingEnabled() { + return costDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+   * property. This can only be enabled if campaign_data_sharing_enabled is
+   * enabled. After link creation, this can only be updated from
+   * the Search Ads 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+   * property. This can only be enabled if campaign_data_sharing_enabled is
+   * enabled. After link creation, this can only be updated from
+   * the Search Ads 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + + public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+   * Output only. The display name of the Search Ads 360 Advertiser.
+   * Allows users to easily identify the linked resource.
+   * 
+ * + * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + @java.lang.Override + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + 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(); + advertiserDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name of the Search Ads 360 Advertiser.
+   * Allows users to easily identify the linked resource.
+   * 
+ * + * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + @java.lang.Override + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + + public static final int SITE_STATS_SHARING_ENABLED_FIELD_NUMBER = 7; + private com.google.protobuf.BoolValue siteStatsSharingEnabled_; + /** + * + * + *
+   * Enables export of site stats with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * + * @return Whether the siteStatsSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasSiteStatsSharingEnabled() { + return siteStatsSharingEnabled_ != null; + } + /** + * + * + *
+   * Enables export of site stats with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * + * @return The siteStatsSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getSiteStatsSharingEnabled() { + return siteStatsSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : siteStatsSharingEnabled_; + } + /** + * + * + *
+   * Enables export of site stats with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getSiteStatsSharingEnabledOrBuilder() { + return siteStatsSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : siteStatsSharingEnabled_; + } + + 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(advertiserId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); + } + if (campaignDataSharingEnabled_ != null) { + output.writeMessage(3, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + output.writeMessage(4, getCostDataSharingEnabled()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, advertiserDisplayName_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(6, getAdsPersonalizationEnabled()); + } + if (siteStatsSharingEnabled_ != null) { + output.writeMessage(7, getSiteStatsSharingEnabled()); + } + 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(advertiserId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); + } + if (campaignDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCostDataSharingEnabled()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, advertiserDisplayName_); + } + if (adsPersonalizationEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getAdsPersonalizationEnabled()); + } + if (siteStatsSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSiteStatsSharingEnabled()); + } + 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.admin.v1alpha.SearchAds360Link)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SearchAds360Link other = + (com.google.analytics.admin.v1alpha.SearchAds360Link) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAdvertiserId().equals(other.getAdvertiserId())) return false; + if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; + if (hasCampaignDataSharingEnabled()) { + if (!getCampaignDataSharingEnabled().equals(other.getCampaignDataSharingEnabled())) + return false; + } + if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; + if (hasCostDataSharingEnabled()) { + if (!getCostDataSharingEnabled().equals(other.getCostDataSharingEnabled())) return false; + } + if (!getAdvertiserDisplayName().equals(other.getAdvertiserDisplayName())) return false; + if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; + if (hasAdsPersonalizationEnabled()) { + if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) + return false; + } + if (hasSiteStatsSharingEnabled() != other.hasSiteStatsSharingEnabled()) return false; + if (hasSiteStatsSharingEnabled()) { + if (!getSiteStatsSharingEnabled().equals(other.getSiteStatsSharingEnabled())) 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) + ADVERTISER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserId().hashCode(); + if (hasCampaignDataSharingEnabled()) { + hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); + } + if (hasCostDataSharingEnabled()) { + hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); + } + hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); + if (hasAdsPersonalizationEnabled()) { + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); + } + if (hasSiteStatsSharingEnabled()) { + hash = (37 * hash) + SITE_STATS_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getSiteStatsSharingEnabled().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1alpha.SearchAds360Link prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 property and a Search Ads 360 entity.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchAds360Link} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchAds360Link) + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchAds360Link.class, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.SearchAds360Link.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + advertiserId_ = ""; + campaignDataSharingEnabled_ = null; + if (campaignDataSharingEnabledBuilder_ != null) { + campaignDataSharingEnabledBuilder_.dispose(); + campaignDataSharingEnabledBuilder_ = null; + } + costDataSharingEnabled_ = null; + if (costDataSharingEnabledBuilder_ != null) { + costDataSharingEnabledBuilder_.dispose(); + costDataSharingEnabledBuilder_ = null; + } + advertiserDisplayName_ = ""; + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + siteStatsSharingEnabled_ = null; + if (siteStatsSharingEnabledBuilder_ != null) { + siteStatsSharingEnabledBuilder_.dispose(); + siteStatsSharingEnabledBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link build() { + com.google.analytics.admin.v1alpha.SearchAds360Link result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link buildPartial() { + com.google.analytics.admin.v1alpha.SearchAds360Link result = + new com.google.analytics.admin.v1alpha.SearchAds360Link(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.SearchAds360Link result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.advertiserId_ = advertiserId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.campaignDataSharingEnabled_ = + campaignDataSharingEnabledBuilder_ == null + ? campaignDataSharingEnabled_ + : campaignDataSharingEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.costDataSharingEnabled_ = + costDataSharingEnabledBuilder_ == null + ? costDataSharingEnabled_ + : costDataSharingEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.advertiserDisplayName_ = advertiserDisplayName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.adsPersonalizationEnabled_ = + adsPersonalizationEnabledBuilder_ == null + ? adsPersonalizationEnabled_ + : adsPersonalizationEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.siteStatsSharingEnabled_ = + siteStatsSharingEnabledBuilder_ == null + ? siteStatsSharingEnabled_ + : siteStatsSharingEnabledBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SearchAds360Link) { + return mergeFrom((com.google.analytics.admin.v1alpha.SearchAds360Link) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.SearchAds360Link other) { + if (other == com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAdvertiserId().isEmpty()) { + advertiserId_ = other.advertiserId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCampaignDataSharingEnabled()) { + mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); + } + if (other.hasCostDataSharingEnabled()) { + mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); + } + if (!other.getAdvertiserDisplayName().isEmpty()) { + advertiserDisplayName_ = other.advertiserDisplayName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasSiteStatsSharingEnabled()) { + mergeSiteStatsSharingEnabled(other.getSiteStatsSharingEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + advertiserId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getCampaignDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getCostDataSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + advertiserDisplayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getSiteStatsSharingEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this SearchAds360Link resource.
+     * Format: properties/{propertyId}/searchAds360Links/{linkId}
+     *
+     * Note: linkId is not the Search Ads 360 advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this SearchAds360Link resource.
+     * Format: properties/{propertyId}/searchAds360Links/{linkId}
+     *
+     * Note: linkId is not the Search Ads 360 advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this SearchAds360Link resource.
+     * Format: properties/{propertyId}/searchAds360Links/{linkId}
+     *
+     * Note: linkId is not the Search Ads 360 advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this SearchAds360Link resource.
+     * Format: properties/{propertyId}/searchAds360Links/{linkId}
+     *
+     * Note: linkId is not the Search Ads 360 advertiser ID
+     * 
+ * + * string name = 1 [(.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. The resource name for this SearchAds360Link resource.
+     * Format: properties/{propertyId}/searchAds360Links/{linkId}
+     *
+     * Note: linkId is not the Search Ads 360 advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object advertiserId_ = ""; + /** + * + * + *
+     * Immutable. This field represents the Advertiser ID of the Search Ads 360
+     * Advertiser. that has been linked.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. This field represents the Advertiser ID of the Search Ads 360
+     * Advertiser. that has been linked.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. This field represents the Advertiser ID of the Search Ads 360
+     * Advertiser. that has been linked.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertiserId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. This field represents the Advertiser ID of the Search Ads 360
+     * Advertiser. that has been linked.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserId() { + advertiserId_ = getDefaultInstance().getAdvertiserId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. This field represents the Advertiser ID of the Search Ads 360
+     * Advertiser. that has been linked.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertiserId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + campaignDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + public boolean hasCampaignDataSharingEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + if (campaignDataSharingEnabledBuilder_ == null) { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } else { + return campaignDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + campaignDataSharingEnabled_ = value; + } else { + campaignDataSharingEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = builderForValue.build(); + } else { + campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && campaignDataSharingEnabled_ != null + && campaignDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCampaignDataSharingEnabledBuilder().mergeFrom(value); + } else { + campaignDataSharingEnabled_ = value; + } + } else { + campaignDataSharingEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCampaignDataSharingEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + campaignDataSharingEnabled_ = null; + if (campaignDataSharingEnabledBuilder_ != null) { + campaignDataSharingEnabledBuilder_.dispose(); + campaignDataSharingEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + if (campaignDataSharingEnabledBuilder_ != null) { + return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Search Ads 360 into the
+     * GA4 property. After link creation, this can only be updated from the Search
+     * Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCampaignDataSharingEnabledFieldBuilder() { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCampaignDataSharingEnabled(), getParentForChildren(), isClean()); + campaignDataSharingEnabled_ = null; + } + return campaignDataSharingEnabledBuilder_; + } + + private com.google.protobuf.BoolValue costDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + costDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + public boolean hasCostDataSharingEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + if (costDataSharingEnabledBuilder_ == null) { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } else { + return costDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costDataSharingEnabled_ = value; + } else { + costDataSharingEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = builderForValue.build(); + } else { + costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && costDataSharingEnabled_ != null + && costDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getCostDataSharingEnabledBuilder().mergeFrom(value); + } else { + costDataSharingEnabled_ = value; + } + } else { + costDataSharingEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCostDataSharingEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + costDataSharingEnabled_ = null; + if (costDataSharingEnabledBuilder_ != null) { + costDataSharingEnabledBuilder_.dispose(); + costDataSharingEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getCostDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + if (costDataSharingEnabledBuilder_ != null) { + return costDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
+     * property. This can only be enabled if campaign_data_sharing_enabled is
+     * enabled. After link creation, this can only be updated from
+     * the Search Ads 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCostDataSharingEnabledFieldBuilder() { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCostDataSharingEnabled(), getParentForChildren(), isClean()); + costDataSharingEnabled_ = null; + } + return costDataSharingEnabledBuilder_; + } + + private java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+     * Output only. The display name of the Search Ads 360 Advertiser.
+     * Allows users to easily identify the linked resource.
+     * 
+ * + * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Search Ads 360 Advertiser.
+     * Allows users to easily identify the linked resource.
+     * 
+ * + * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Search Ads 360 Advertiser.
+     * Allows users to easily identify the linked resource.
+     * 
+ * + * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + advertiserDisplayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Search Ads 360 Advertiser.
+     * Allows users to easily identify the linked resource.
+     * 
+ * + * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserDisplayName() { + advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Search Ads 360 Advertiser.
+     * Allows users to easily identify the linked resource.
+     * 
+ * + * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + advertiserDisplayName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + adsPersonalizationEnabledBuilder_; + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + public boolean hasAdsPersonalizationEnabled() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + * + * @return The adsPersonalizationEnabled. + */ + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } else { + return adsPersonalizationEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsPersonalizationEnabled_ = value; + } else { + adsPersonalizationEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + public Builder setAdsPersonalizationEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = builderForValue.build(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && adsPersonalizationEnabled_ != null + && adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getAdsPersonalizationEnabledBuilder().mergeFrom(value); + } else { + adsPersonalizationEnabled_ = value; + } + } else { + adsPersonalizationEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + public Builder clearAdsPersonalizationEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + if (adsPersonalizationEnabledBuilder_ != null) { + return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); + } else { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getAdsPersonalizationEnabledFieldBuilder() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); + adsPersonalizationEnabled_ = null; + } + return adsPersonalizationEnabledBuilder_; + } + + private com.google.protobuf.BoolValue siteStatsSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + siteStatsSharingEnabledBuilder_; + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * + * @return Whether the siteStatsSharingEnabled field is set. + */ + public boolean hasSiteStatsSharingEnabled() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * + * @return The siteStatsSharingEnabled. + */ + public com.google.protobuf.BoolValue getSiteStatsSharingEnabled() { + if (siteStatsSharingEnabledBuilder_ == null) { + return siteStatsSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : siteStatsSharingEnabled_; + } else { + return siteStatsSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + public Builder setSiteStatsSharingEnabled(com.google.protobuf.BoolValue value) { + if (siteStatsSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + siteStatsSharingEnabled_ = value; + } else { + siteStatsSharingEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + public Builder setSiteStatsSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (siteStatsSharingEnabledBuilder_ == null) { + siteStatsSharingEnabled_ = builderForValue.build(); + } else { + siteStatsSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + public Builder mergeSiteStatsSharingEnabled(com.google.protobuf.BoolValue value) { + if (siteStatsSharingEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && siteStatsSharingEnabled_ != null + && siteStatsSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getSiteStatsSharingEnabledBuilder().mergeFrom(value); + } else { + siteStatsSharingEnabled_ = value; + } + } else { + siteStatsSharingEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + public Builder clearSiteStatsSharingEnabled() { + bitField0_ = (bitField0_ & ~0x00000040); + siteStatsSharingEnabled_ = null; + if (siteStatsSharingEnabledBuilder_ != null) { + siteStatsSharingEnabledBuilder_.dispose(); + siteStatsSharingEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + public com.google.protobuf.BoolValue.Builder getSiteStatsSharingEnabledBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getSiteStatsSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + public com.google.protobuf.BoolValueOrBuilder getSiteStatsSharingEnabledOrBuilder() { + if (siteStatsSharingEnabledBuilder_ != null) { + return siteStatsSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return siteStatsSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : siteStatsSharingEnabled_; + } + } + /** + * + * + *
+     * Enables export of site stats with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getSiteStatsSharingEnabledFieldBuilder() { + if (siteStatsSharingEnabledBuilder_ == null) { + siteStatsSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getSiteStatsSharingEnabled(), getParentForChildren(), isClean()); + siteStatsSharingEnabled_ = null; + } + return siteStatsSharingEnabledBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SearchAds360Link) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchAds360Link) + private static final com.google.analytics.admin.v1alpha.SearchAds360Link DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchAds360Link(); + } + + public static com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAds360Link parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkName.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java similarity index 78% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java index 4f707d8156ef..46853ce639ba 100644 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java @@ -1,13 +1,31 @@ +/* + * 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/admin/v1alpha/resources.proto package com.google.analytics.admin.v1alpha; -public interface SearchAds360LinkOrBuilder extends +public interface SearchAds360LinkOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchAds360Link) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Output only. The resource name for this SearchAds360Link resource.
    * Format: properties/{propertyId}/searchAds360Links/{linkId}
@@ -16,10 +34,13 @@ public interface SearchAds360LinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Output only. The resource name for this SearchAds360Link resource.
    * Format: properties/{propertyId}/searchAds360Links/{linkId}
@@ -28,34 +49,41 @@ public interface SearchAds360LinkOrBuilder extends
    * 
* * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Immutable. This field represents the Advertiser ID of the Search Ads 360
    * Advertiser. that has been linked.
    * 
* * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The advertiserId. */ java.lang.String getAdvertiserId(); /** + * + * *
    * Immutable. This field represents the Advertiser ID of the Search Ads 360
    * Advertiser. that has been linked.
    * 
* * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * * @return The bytes for advertiserId. */ - com.google.protobuf.ByteString - getAdvertiserIdBytes(); + com.google.protobuf.ByteString getAdvertiserIdBytes(); /** + * + * *
    * Immutable. Enables the import of campaign data from Search Ads 360 into the
    * GA4 property. After link creation, this can only be updated from the Search
@@ -63,11 +91,16 @@ public interface SearchAds360LinkOrBuilder extends
    * If this field is not set on create, it will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the campaignDataSharingEnabled field is set. */ boolean hasCampaignDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of campaign data from Search Ads 360 into the
    * GA4 property. After link creation, this can only be updated from the Search
@@ -75,11 +108,16 @@ public interface SearchAds360LinkOrBuilder extends
    * If this field is not set on create, it will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The campaignDataSharingEnabled. */ com.google.protobuf.BoolValue getCampaignDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of campaign data from Search Ads 360 into the
    * GA4 property. After link creation, this can only be updated from the Search
@@ -87,11 +125,15 @@ public interface SearchAds360LinkOrBuilder extends
    * If this field is not set on create, it will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder(); /** + * + * *
    * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
    * property. This can only be enabled if campaign_data_sharing_enabled is
@@ -100,11 +142,16 @@ public interface SearchAds360LinkOrBuilder extends
    * If this field is not set on create, it will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return Whether the costDataSharingEnabled field is set. */ boolean hasCostDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
    * property. This can only be enabled if campaign_data_sharing_enabled is
@@ -113,11 +160,16 @@ public interface SearchAds360LinkOrBuilder extends
    * If this field is not set on create, it will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * * @return The costDataSharingEnabled. */ com.google.protobuf.BoolValue getCostDataSharingEnabled(); /** + * + * *
    * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
    * property. This can only be enabled if campaign_data_sharing_enabled is
@@ -126,53 +178,68 @@ public interface SearchAds360LinkOrBuilder extends
    * If this field is not set on create, it will be defaulted to true.
    * 
* - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; + * */ com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder(); /** + * + * *
    * Output only. The display name of the Search Ads 360 Advertiser.
    * Allows users to easily identify the linked resource.
    * 
* * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The advertiserDisplayName. */ java.lang.String getAdvertiserDisplayName(); /** + * + * *
    * Output only. The display name of the Search Ads 360 Advertiser.
    * Allows users to easily identify the linked resource.
    * 
* * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * @return The bytes for advertiserDisplayName. */ - com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes(); + com.google.protobuf.ByteString getAdvertiserDisplayNameBytes(); /** + * + * *
    * Enables personalized advertising features with this integration.
    * If this field is not set on create, it will be defaulted to true.
    * 
* * .google.protobuf.BoolValue ads_personalization_enabled = 6; + * * @return Whether the adsPersonalizationEnabled field is set. */ boolean hasAdsPersonalizationEnabled(); /** + * + * *
    * Enables personalized advertising features with this integration.
    * If this field is not set on create, it will be defaulted to true.
    * 
* * .google.protobuf.BoolValue ads_personalization_enabled = 6; + * * @return The adsPersonalizationEnabled. */ com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); /** + * + * *
    * Enables personalized advertising features with this integration.
    * If this field is not set on create, it will be defaulted to true.
@@ -183,26 +250,34 @@ public interface SearchAds360LinkOrBuilder extends
   com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder();
 
   /**
+   *
+   *
    * 
    * Enables export of site stats with this integration.
    * If this field is not set on create, it will be defaulted to true.
    * 
* * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * * @return Whether the siteStatsSharingEnabled field is set. */ boolean hasSiteStatsSharingEnabled(); /** + * + * *
    * Enables export of site stats with this integration.
    * If this field is not set on create, it will be defaulted to true.
    * 
* * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; + * * @return The siteStatsSharingEnabled. */ com.google.protobuf.BoolValue getSiteStatsSharingEnabled(); /** + * + * *
    * Enables export of site stats with this integration.
    * If this field is not set on create, it will be defaulted to true.
diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java
new file mode 100644
index 000000000000..d1261da16bf0
--- /dev/null
+++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java
@@ -0,0 +1,2927 @@
+/*
+ * 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/admin/v1alpha/analytics_admin.proto
+
+package com.google.analytics.admin.v1alpha;
+
+/**
+ *
+ *
+ * 
+ * Request message for SearchChangeHistoryEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} + */ +public final class SearchChangeHistoryEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + SearchChangeHistoryEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsRequest.newBuilder() to construct. + private SearchChangeHistoryEventsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsRequest() { + account_ = ""; + property_ = ""; + resourceType_ = java.util.Collections.emptyList(); + action_ = java.util.Collections.emptyList(); + actorEmail_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object account_ = ""; + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List resourceType_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType> + resourceType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>() { + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType convert( + java.lang.Integer from) { + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType result = + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.forNumber(from); + return result == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + @java.lang.Override + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + @java.lang.Override + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + @java.lang.Override + public java.util.List getResourceTypeValueList() { + return resourceType_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + @java.lang.Override + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + + private int resourceTypeMemoizedSerializedSize; + + public static final int ACTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List action_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType> + action_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>() { + public com.google.analytics.admin.v1alpha.ActionType convert(java.lang.Integer from) { + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.forNumber(from); + return result == null + ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + @java.lang.Override + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + @java.lang.Override + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + @java.lang.Override + public java.util.List getActionValueList() { + return action_; + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + @java.lang.Override + public int getActionValue(int index) { + return action_.get(index); + } + + private int actionMemoizedSerializedSize; + + public static final int ACTOR_EMAIL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList actorEmail_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + return actorEmail_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + + public static final int EARLIEST_CHANGE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp earliestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + @java.lang.Override + public boolean hasEarliestChangeTime() { + return earliestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEarliestChangeTime() { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + + public static final int LATEST_CHANGE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp latestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + @java.lang.Override + public boolean hasLatestChangeTime() { + return latestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestChangeTime() { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); + } + if (getResourceTypeList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(resourceTypeMemoizedSerializedSize); + } + for (int i = 0; i < resourceType_.size(); i++) { + output.writeEnumNoTag(resourceType_.get(i)); + } + if (getActionList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(actionMemoizedSerializedSize); + } + for (int i = 0; i < action_.size(); i++) { + output.writeEnumNoTag(action_.get(i)); + } + for (int i = 0; i < actorEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorEmail_.getRaw(i)); + } + if (earliestChangeTime_ != null) { + output.writeMessage(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + output.writeMessage(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); + } + 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(account_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); + } + { + int dataSize = 0; + for (int i = 0; i < resourceType_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(resourceType_.get(i)); + } + size += dataSize; + if (!getResourceTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + resourceTypeMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < action_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(action_.get(i)); + } + size += dataSize; + if (!getActionList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + actionMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < actorEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(actorEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getActorEmailList().size(); + } + if (earliestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); + } + 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.admin.v1alpha.SearchChangeHistoryEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) obj; + + if (!getAccount().equals(other.getAccount())) return false; + if (!getProperty().equals(other.getProperty())) return false; + if (!resourceType_.equals(other.resourceType_)) return false; + if (!action_.equals(other.action_)) return false; + if (!getActorEmailList().equals(other.getActorEmailList())) return false; + if (hasEarliestChangeTime() != other.hasEarliestChangeTime()) return false; + if (hasEarliestChangeTime()) { + if (!getEarliestChangeTime().equals(other.getEarliestChangeTime())) return false; + } + if (hasLatestChangeTime() != other.hasLatestChangeTime()) return false; + if (hasLatestChangeTime()) { + if (!getLatestChangeTime().equals(other.getLatestChangeTime())) return false; + } + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + if (getResourceTypeCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_.hashCode(); + } + if (getActionCount() > 0) { + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_.hashCode(); + } + if (getActorEmailCount() > 0) { + hash = (37 * hash) + ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getActorEmailList().hashCode(); + } + if (hasEarliestChangeTime()) { + hash = (37 * hash) + EARLIEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEarliestChangeTime().hashCode(); + } + if (hasLatestChangeTime()) { + hash = (37 * hash) + LATEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestChangeTime().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for SearchChangeHistoryEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + account_ = ""; + property_ = ""; + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + actorEmail_ = com.google.protobuf.LazyStringArrayList.emptyList(); + earliestChangeTime_ = null; + if (earliestChangeTimeBuilder_ != null) { + earliestChangeTimeBuilder_.dispose(); + earliestChangeTimeBuilder_ = null; + } + latestChangeTime_ = null; + if (latestChangeTimeBuilder_ != null) { + latestChangeTimeBuilder_.dispose(); + latestChangeTimeBuilder_ = null; + } + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest build() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest buildPartial() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = + new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result) { + if (((bitField0_ & 0x00000004) != 0)) { + resourceType_ = java.util.Collections.unmodifiableList(resourceType_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resourceType_ = resourceType_; + if (((bitField0_ & 0x00000008) != 0)) { + action_ = java.util.Collections.unmodifiableList(action_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.action_ = action_; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.account_ = account_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + actorEmail_.makeImmutable(); + result.actorEmail_ = actorEmail_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.earliestChangeTime_ = + earliestChangeTimeBuilder_ == null + ? earliestChangeTime_ + : earliestChangeTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latestChangeTime_ = + latestChangeTimeBuilder_ == null ? latestChangeTime_ : latestChangeTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance()) return this; + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.resourceType_.isEmpty()) { + if (resourceType_.isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourceTypeIsMutable(); + resourceType_.addAll(other.resourceType_); + } + onChanged(); + } + if (!other.action_.isEmpty()) { + if (action_.isEmpty()) { + action_ = other.action_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureActionIsMutable(); + action_.addAll(other.action_); + } + onChanged(); + } + if (!other.actorEmail_.isEmpty()) { + if (actorEmail_.isEmpty()) { + actorEmail_ = other.actorEmail_; + bitField0_ |= 0x00000010; + } else { + ensureActorEmailIsMutable(); + actorEmail_.addAll(other.actorEmail_); + } + onChanged(); + } + if (other.hasEarliestChangeTime()) { + mergeEarliestChangeTime(other.getEarliestChangeTime()); + } + if (other.hasLatestChangeTime()) { + mergeLatestChangeTime(other.getLatestChangeTime()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + account_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + int tmpRaw = input.readEnum(); + ensureResourceTypeIsMutable(); + resourceType_.add(tmpRaw); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureResourceTypeIsMutable(); + resourceType_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + case 32: + { + int tmpRaw = input.readEnum(); + ensureActionIsMutable(); + action_.add(tmpRaw); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureActionIsMutable(); + action_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureActorEmailIsMutable(); + actorEmail_.add(s); + break; + } // case 42 + case 50: + { + input.readMessage( + getEarliestChangeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getLatestChangeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object account_ = ""; + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + account_ = getDefaultInstance().getAccount(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + account_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List resourceType_ = java.util.Collections.emptyList(); + + private void ensureResourceTypeIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + resourceType_ = new java.util.ArrayList(resourceType_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceType( + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceType( + java.lang.Iterable + values) { + ensureResourceTypeIsMutable(); + for (com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value : values) { + resourceType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + public java.util.List getResourceTypeValueList() { + return java.util.Collections.unmodifiableList(resourceType_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int index, int value) { + ensureResourceTypeIsMutable(); + resourceType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceTypeValue(int value) { + ensureResourceTypeIsMutable(); + resourceType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceTypeValue(java.lang.Iterable values) { + ensureResourceTypeIsMutable(); + for (int value : values) { + resourceType_.add(value); + } + onChanged(); + return this; + } + + private java.util.List action_ = java.util.Collections.emptyList(); + + private void ensureActionIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + action_ = new java.util.ArrayList(action_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(int index, com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The action to add. + * @return This builder for chaining. + */ + public Builder addAction(com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The action to add. + * @return This builder for chaining. + */ + public Builder addAllAction( + java.lang.Iterable values) { + ensureActionIsMutable(); + for (com.google.analytics.admin.v1alpha.ActionType value : values) { + action_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + public java.util.List getActionValueList() { + return java.util.Collections.unmodifiableList(action_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + public int getActionValue(int index) { + return action_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int index, int value) { + ensureActionIsMutable(); + action_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addActionValue(int value) { + ensureActionIsMutable(); + action_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addAllActionValue(java.lang.Iterable values) { + ensureActionIsMutable(); + for (int value : values) { + action_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList actorEmail_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureActorEmailIsMutable() { + if (!actorEmail_.isModifiable()) { + actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + actorEmail_.makeImmutable(); + return actorEmail_; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The actorEmail to set. + * @return This builder for chaining. + */ + public Builder setActorEmail(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addAllActorEmail(java.lang.Iterable values) { + ensureActorEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actorEmail_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearActorEmail() { + actorEmail_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureActorEmailIsMutable(); + actorEmail_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp earliestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + earliestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + public boolean hasEarliestChangeTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + public com.google.protobuf.Timestamp getEarliestChangeTime() { + if (earliestChangeTimeBuilder_ == null) { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } else { + return earliestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earliestChangeTime_ = value; + } else { + earliestChangeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = builderForValue.build(); + } else { + earliestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && earliestChangeTime_ != null + && earliestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEarliestChangeTimeBuilder().mergeFrom(value); + } else { + earliestChangeTime_ = value; + } + } else { + earliestChangeTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEarliestChangeTime() { + bitField0_ = (bitField0_ & ~0x00000020); + earliestChangeTime_ = null; + if (earliestChangeTimeBuilder_ != null) { + earliestChangeTimeBuilder_.dispose(); + earliestChangeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEarliestChangeTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEarliestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + if (earliestChangeTimeBuilder_ != null) { + return earliestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEarliestChangeTimeFieldBuilder() { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestChangeTime(), getParentForChildren(), isClean()); + earliestChangeTime_ = null; + } + return earliestChangeTimeBuilder_; + } + + private com.google.protobuf.Timestamp latestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + public boolean hasLatestChangeTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + public com.google.protobuf.Timestamp getLatestChangeTime() { + if (latestChangeTimeBuilder_ == null) { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } else { + return latestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestChangeTime_ = value; + } else { + latestChangeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = builderForValue.build(); + } else { + latestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && latestChangeTime_ != null + && latestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLatestChangeTimeBuilder().mergeFrom(value); + } else { + latestChangeTime_ = value; + } + } else { + latestChangeTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLatestChangeTime() { + bitField0_ = (bitField0_ & ~0x00000040); + latestChangeTime_ = null; + if (latestChangeTimeBuilder_ != null) { + latestChangeTimeBuilder_.dispose(); + latestChangeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getLatestChangeTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getLatestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + if (latestChangeTimeBuilder_ != null) { + return latestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestChangeTimeFieldBuilder() { + if (latestChangeTimeBuilder_ == null) { + latestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestChangeTime(), getParentForChildren(), isClean()); + latestChangeTime_ = null; + } + return latestChangeTimeBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000080); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java new file mode 100644 index 000000000000..885131e496c2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java @@ -0,0 +1,430 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface SearchChangeHistoryEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); + + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + java.util.List + getResourceTypeList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + int getResourceTypeCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + java.util.List getResourceTypeValueList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + int getResourceTypeValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + java.util.List getActionList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + int getActionCount(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + com.google.analytics.admin.v1alpha.ActionType getAction(int index); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + java.util.List getActionValueList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + int getActionValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + java.util.List getActorEmailList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + int getActorEmailCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + java.lang.String getActorEmail(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + com.google.protobuf.ByteString getActorEmailBytes(int index); + + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + boolean hasEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + com.google.protobuf.Timestamp getEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + boolean hasLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + com.google.protobuf.Timestamp getLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java new file mode 100644 index 000000000000..62d56d1d7506 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java @@ -0,0 +1,1181 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for SearchAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} + */ +public final class SearchChangeHistoryEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + SearchChangeHistoryEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsResponse.newBuilder() to construct. + private SearchChangeHistoryEventsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsResponse() { + changeHistoryEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); + } + + public static final int CHANGE_HISTORY_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + changeHistoryEvents_; + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsOrBuilderList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public int getChangeHistoryEventsCount() { + return changeHistoryEvents_.size(); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { + return changeHistoryEvents_.get(index); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + return changeHistoryEvents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < changeHistoryEvents_.size(); i++) { + output.writeMessage(1, changeHistoryEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < changeHistoryEvents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, changeHistoryEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1alpha.SearchChangeHistoryEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) obj; + + if (!getChangeHistoryEventsList().equals(other.getChangeHistoryEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getChangeHistoryEventsCount() > 0) { + hash = (37 * hash) + CHANGE_HISTORY_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getChangeHistoryEventsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for SearchAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + } else { + changeHistoryEvents_ = null; + changeHistoryEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse build() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse buildPartial() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = + new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result) { + if (changeHistoryEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changeHistoryEvents_ = changeHistoryEvents_; + } else { + result.changeHistoryEvents_ = changeHistoryEventsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance()) return this; + if (changeHistoryEventsBuilder_ == null) { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEvents_.isEmpty()) { + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.addAll(other.changeHistoryEvents_); + } + onChanged(); + } + } else { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEventsBuilder_.isEmpty()) { + changeHistoryEventsBuilder_.dispose(); + changeHistoryEventsBuilder_ = null; + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + changeHistoryEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangeHistoryEventsFieldBuilder() + : null; + } else { + changeHistoryEventsBuilder_.addAllMessages(other.changeHistoryEvents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.ChangeHistoryEvent m = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.parser(), + extensionRegistry); + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(m); + } else { + changeHistoryEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + changeHistoryEvents_ = java.util.Collections.emptyList(); + + private void ensureChangeHistoryEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = + new java.util.ArrayList( + changeHistoryEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> + changeHistoryEventsBuilder_; + + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsList() { + if (changeHistoryEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } else { + return changeHistoryEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public int getChangeHistoryEventsCount() { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.size(); + } else { + return changeHistoryEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addAllChangeHistoryEvents( + java.lang.Iterable + values) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changeHistoryEvents_); + onChanged(); + } else { + changeHistoryEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder clearChangeHistoryEvents() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changeHistoryEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder removeChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.remove(index); + onChanged(); + } else { + changeHistoryEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + getChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsOrBuilderList() { + if (changeHistoryEventsBuilder_ != null) { + return changeHistoryEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder() { + return getChangeHistoryEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsBuilderList() { + return getChangeHistoryEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> + getChangeHistoryEventsFieldBuilder() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder>( + changeHistoryEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + changeHistoryEvents_ = null; + } + return changeHistoryEventsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java new file mode 100644 index 000000000000..ad5ac9777b6f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface SearchChangeHistoryEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List + getChangeHistoryEventsList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + int getChangeHistoryEventsCount(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List + getChangeHistoryEventsOrBuilderList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java new file mode 100644 index 000000000000..dbde7218caf2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java @@ -0,0 +1,176 @@ +/* + * 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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Various levels of service for Google Analytics.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ServiceLevel} + */ +public enum ServiceLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Service level not specified or invalid.
+   * 
+ * + * SERVICE_LEVEL_UNSPECIFIED = 0; + */ + SERVICE_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * The standard version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_STANDARD = 1; + */ + GOOGLE_ANALYTICS_STANDARD(1), + /** + * + * + *
+   * The paid, premium version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_360 = 2; + */ + GOOGLE_ANALYTICS_360(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Service level not specified or invalid.
+   * 
+ * + * SERVICE_LEVEL_UNSPECIFIED = 0; + */ + public static final int SERVICE_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The standard version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_STANDARD = 1; + */ + public static final int GOOGLE_ANALYTICS_STANDARD_VALUE = 1; + /** + * + * + *
+   * The paid, premium version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_360 = 2; + */ + public static final int GOOGLE_ANALYTICS_360_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ServiceLevel 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 ServiceLevel forNumber(int value) { + switch (value) { + case 0: + return SERVICE_LEVEL_UNSPECIFIED; + case 1: + return GOOGLE_ANALYTICS_STANDARD; + case 2: + return GOOGLE_ANALYTICS_360; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ServiceLevel findValueByNumber(int number) { + return ServiceLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(1); + } + + private static final ServiceLevel[] VALUES = values(); + + public static ServiceLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ServiceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ServiceLevel) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequest.java new file mode 100644 index 000000000000..db564151ee86 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequest.java @@ -0,0 +1,766 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request for setting the opt out status for the automated GA4 setup process.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} + */ +public final class SetAutomatedGa4ConfigurationOptOutRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) + SetAutomatedGa4ConfigurationOptOutRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() to construct. + private SetAutomatedGa4ConfigurationOptOutRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetAutomatedGa4ConfigurationOptOutRequest() { + property_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetAutomatedGa4ConfigurationOptOutRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.class, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.Builder + .class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Required. The UA property to set the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The UA property to set the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPT_OUT_FIELD_NUMBER = 2; + private boolean optOut_ = false; + /** + * + * + *
+   * The status to set.
+   * 
+ * + * bool opt_out = 2; + * + * @return The optOut. + */ + @java.lang.Override + public boolean getOptOut() { + return optOut_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (optOut_ != false) { + output.writeBool(2, optOut_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (optOut_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, optOut_); + } + 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.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest other = + (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (getOptOut() != other.getOptOut()) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + OPT_OUT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getOptOut()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request for setting the opt out status for the automated GA4 setup process.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.class, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + optOut_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest build() { + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + buildPartial() { + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest result = + new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.optOut_ = optOut_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest other) { + if (other + == com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + .getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getOptOut() != false) { + setOptOut(other.getOptOut()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + optOut_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Required. The UA property to set the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The UA property to set the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The UA property to set the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The UA property to set the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The UA property to set the opt out status. Note this request uses
+     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+     * Format: properties/{internalWebPropertyId}
+     * Example: properties/1234
+     * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean optOut_; + /** + * + * + *
+     * The status to set.
+     * 
+ * + * bool opt_out = 2; + * + * @return The optOut. + */ + @java.lang.Override + public boolean getOptOut() { + return optOut_; + } + /** + * + * + *
+     * The status to set.
+     * 
+ * + * bool opt_out = 2; + * + * @param value The optOut to set. + * @return This builder for chaining. + */ + public Builder setOptOut(boolean value) { + + optOut_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The status to set.
+     * 
+ * + * bool opt_out = 2; + * + * @return This builder for chaining. + */ + public Builder clearOptOut() { + bitField0_ = (bitField0_ & ~0x00000002); + optOut_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) + private static final com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest(); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetAutomatedGa4ConfigurationOptOutRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequestOrBuilder.java new file mode 100644 index 000000000000..2491b8661456 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface SetAutomatedGa4ConfigurationOptOutRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The UA property to set the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Required. The UA property to set the opt out status. Note this request uses
+   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
+   * Format: properties/{internalWebPropertyId}
+   * Example: properties/1234
+   * 
+ * + * string property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * The status to set.
+   * 
+ * + * bool opt_out = 2; + * + * @return The optOut. + */ + boolean getOptOut(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponse.java new file mode 100644 index 000000000000..de7cfad6764d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponse.java @@ -0,0 +1,461 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for setting the opt out status for the automated GA4 setup
+ * process.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} + */ +public final class SetAutomatedGa4ConfigurationOptOutResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) + SetAutomatedGa4ConfigurationOptOutResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SetAutomatedGa4ConfigurationOptOutResponse.newBuilder() to construct. + private SetAutomatedGa4ConfigurationOptOutResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SetAutomatedGa4ConfigurationOptOutResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SetAutomatedGa4ConfigurationOptOutResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.class, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.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.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse other = + (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) 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.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for setting the opt out status for the automated GA4 setup
+   * process.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.class, + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse build() { + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + buildPartial() { + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse result = + new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse other) { + if (other + == com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) + private static final com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse(); + } + + public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetAutomatedGa4ConfigurationOptOutResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponseOrBuilder.java new file mode 100644 index 000000000000..c63979df62f8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface SetAutomatedGa4ConfigurationOptOutResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java new file mode 100644 index 000000000000..8e7896e963f6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java @@ -0,0 +1,1479 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A resource message representing a GA4 Subproperty event filter.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilter} + */ +public final class SubpropertyEventFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilter) + SubpropertyEventFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilter.newBuilder() to construct. + private SubpropertyEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilter() { + name_ = ""; + applyToProperty_ = ""; + filterClauses_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLY_TO_PROPERTY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object applyToProperty_ = ""; + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the applyToProperty field is set. + */ + @java.lang.Override + public boolean hasApplyToProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The applyToProperty. + */ + @java.lang.Override + public java.lang.String getApplyToProperty() { + java.lang.Object ref = applyToProperty_; + 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(); + applyToProperty_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for applyToProperty. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApplyToPropertyBytes() { + java.lang.Object ref = applyToProperty_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applyToProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_CLAUSES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List + filterClauses_; + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterClausesList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + getFilterClausesOrBuilderList() { + return filterClauses_; + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public int getFilterClausesCount() { + return filterClauses_.size(); + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses( + int index) { + return filterClauses_.get(index); + } + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder + getFilterClausesOrBuilder(int index) { + return filterClauses_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applyToProperty_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + output.writeMessage(3, filterClauses_.get(i)); + } + 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 (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applyToProperty_); + } + for (int i = 0; i < filterClauses_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, filterClauses_.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.admin.v1alpha.SubpropertyEventFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilter other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilter) obj; + + if (!getName().equals(other.getName())) return false; + if (hasApplyToProperty() != other.hasApplyToProperty()) return false; + if (hasApplyToProperty()) { + if (!getApplyToProperty().equals(other.getApplyToProperty())) return false; + } + if (!getFilterClausesList().equals(other.getFilterClausesList())) 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(); + if (hasApplyToProperty()) { + hash = (37 * hash) + APPLY_TO_PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getApplyToProperty().hashCode(); + } + if (getFilterClausesCount() > 0) { + hash = (37 * hash) + FILTER_CLAUSES_FIELD_NUMBER; + hash = (53 * hash) + getFilterClausesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a GA4 Subproperty event filter.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilter) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + applyToProperty_ = ""; + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + } else { + filterClauses_ = null; + filterClausesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilter result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilter(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter result) { + if (filterClausesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.filterClauses_ = filterClauses_; + } else { + result.filterClauses_ = filterClausesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.applyToProperty_ = applyToProperty_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilter) { + return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilter other) { + if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasApplyToProperty()) { + applyToProperty_ = other.applyToProperty_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (filterClausesBuilder_ == null) { + if (!other.filterClauses_.isEmpty()) { + if (filterClauses_.isEmpty()) { + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureFilterClausesIsMutable(); + filterClauses_.addAll(other.filterClauses_); + } + onChanged(); + } + } else { + if (!other.filterClauses_.isEmpty()) { + if (filterClausesBuilder_.isEmpty()) { + filterClausesBuilder_.dispose(); + filterClausesBuilder_ = null; + filterClauses_ = other.filterClauses_; + bitField0_ = (bitField0_ & ~0x00000004); + filterClausesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterClausesFieldBuilder() + : null; + } else { + filterClausesBuilder_.addAllMessages(other.filterClauses_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + applyToProperty_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause m = + input.readMessage( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.parser(), + extensionRegistry); + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(m); + } else { + filterClausesBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * string name = 1 [(.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. Format:
+     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+     * Example: properties/1234/subpropertyEventFilters/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object applyToProperty_ = ""; + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the applyToProperty field is set. + */ + public boolean hasApplyToProperty() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The applyToProperty. + */ + public java.lang.String getApplyToProperty() { + java.lang.Object ref = applyToProperty_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + applyToProperty_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for applyToProperty. + */ + public com.google.protobuf.ByteString getApplyToPropertyBytes() { + java.lang.Object ref = applyToProperty_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + applyToProperty_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The applyToProperty to set. + * @return This builder for chaining. + */ + public Builder setApplyToProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + applyToProperty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearApplyToProperty() { + applyToProperty_ = getDefaultInstance().getApplyToProperty(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of the Subproperty that uses this filter.
+     * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for applyToProperty to set. + * @return This builder for chaining. + */ + public Builder setApplyToPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + applyToProperty_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List + filterClauses_ = java.util.Collections.emptyList(); + + private void ensureFilterClausesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + filterClauses_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause>(filterClauses_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + filterClausesBuilder_; + + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesList() { + if (filterClausesBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterClauses_); + } else { + return filterClausesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public int getFilterClausesCount() { + if (filterClausesBuilder_ == null) { + return filterClauses_.size(); + } else { + return filterClausesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses( + int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.set(index, value); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterClauses( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.set(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { + if (filterClausesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterClausesIsMutable(); + filterClauses_.add(index, value); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterClauses( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.add(index, builderForValue.build()); + onChanged(); + } else { + filterClausesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addAllFilterClauses( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause> + values) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterClauses_); + onChanged(); + } else { + filterClausesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder clearFilterClauses() { + if (filterClausesBuilder_ == null) { + filterClauses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + filterClausesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder removeFilterClauses(int index) { + if (filterClausesBuilder_ == null) { + ensureFilterClausesIsMutable(); + filterClauses_.remove(index); + onChanged(); + } else { + filterClausesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder + getFilterClausesBuilder(int index) { + return getFilterClausesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder + getFilterClausesOrBuilder(int index) { + if (filterClausesBuilder_ == null) { + return filterClauses_.get(index); + } else { + return filterClausesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + getFilterClausesOrBuilderList() { + if (filterClausesBuilder_ != null) { + return filterClausesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterClauses_); + } + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder + addFilterClausesBuilder() { + return getFilterClausesFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder + addFilterClausesBuilder(int index) { + return getFilterClausesFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. Filter clauses that define the
+     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+     * data is sent to the subproperty.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterClausesBuilderList() { + return getFilterClausesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> + getFilterClausesFieldBuilder() { + if (filterClausesBuilder_ == null) { + filterClausesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder>( + filterClauses_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + filterClauses_ = null; + } + return filterClausesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilter) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilter(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java new file mode 100644 index 000000000000..3d22d1281c14 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java @@ -0,0 +1,1113 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A clause for defining a filter. A filter may be inclusive (events satisfying
+ * the filter clause are included in the subproperty's data) or exclusive
+ * (events satisfying the filter clause are excluded from the subproperty's
+ * data).
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterClause} + */ +public final class SubpropertyEventFilterClause extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + SubpropertyEventFilterClauseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterClause.newBuilder() to construct. + private SubpropertyEventFilterClause(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterClause() { + filterClauseType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterClause(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder.class); + } + + /** + * + * + *
+   * Specifies whether this is an include or exclude filter clause.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType} + */ + public enum FilterClauseType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Filter clause type unknown or not specified.
+     * 
+ * + * FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + FILTER_CLAUSE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Events will be included in the Sub property if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + INCLUDE(1), + /** + * + * + *
+     * Events will be excluded from the Sub property if the filter clause is
+     * met.
+     * 
+ * + * EXCLUDE = 2; + */ + EXCLUDE(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Filter clause type unknown or not specified.
+     * 
+ * + * FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; + */ + public static final int FILTER_CLAUSE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Events will be included in the Sub property if the filter clause is met.
+     * 
+ * + * INCLUDE = 1; + */ + public static final int INCLUDE_VALUE = 1; + /** + * + * + *
+     * Events will be excluded from the Sub property if the filter clause is
+     * met.
+     * 
+ * + * EXCLUDE = 2; + */ + public static final int EXCLUDE_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FilterClauseType 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 FilterClauseType forNumber(int value) { + switch (value) { + case 0: + return FILTER_CLAUSE_TYPE_UNSPECIFIED; + case 1: + return INCLUDE; + case 2: + return EXCLUDE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FilterClauseType findValueByNumber(int number) { + return FilterClauseType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FilterClauseType[] VALUES = values(); + + public static FilterClauseType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FilterClauseType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType) + } + + public static final int FILTER_CLAUSE_TYPE_FIELD_NUMBER = 1; + private int filterClauseType_ = 0; + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filterClauseType. + */ + @java.lang.Override + public int getFilterClauseTypeValue() { + return filterClauseType_; + } + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterClauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + getFilterClauseType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.forNumber( + filterClauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .UNRECOGNIZED + : result; + } + + public static final int FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filterExpression_; + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filterExpression field is set. + */ + @java.lang.Override + public boolean hasFilterExpression() { + return filterExpression_ != null; + } + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpression() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() + : filterExpression_; + } + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() + : filterExpression_; + } + + 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 (filterClauseType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .FILTER_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, filterClauseType_); + } + if (filterExpression_ != null) { + output.writeMessage(2, getFilterExpression()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (filterClauseType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .FILTER_CLAUSE_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, filterClauseType_); + } + if (filterExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFilterExpression()); + } + 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.admin.v1alpha.SubpropertyEventFilterClause)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause) obj; + + if (filterClauseType_ != other.filterClauseType_) return false; + if (hasFilterExpression() != other.hasFilterExpression()) return false; + if (hasFilterExpression()) { + if (!getFilterExpression().equals(other.getFilterExpression())) 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) + FILTER_CLAUSE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + filterClauseType_; + if (hasFilterExpression()) { + hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpression().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A clause for defining a filter. A filter may be inclusive (events satisfying
+   * the filter clause are included in the subproperty's data) or exclusive
+   * (events satisfying the filter clause are excluded from the subproperty's
+   * data).
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterClause} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filterClauseType_ = 0; + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filterClauseType_ = filterClauseType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filterExpression_ = + filterExpressionBuilder_ == null ? filterExpression_ : filterExpressionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause) { + return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()) + return this; + if (other.filterClauseType_ != 0) { + setFilterClauseTypeValue(other.getFilterClauseTypeValue()); + } + if (other.hasFilterExpression()) { + mergeFilterExpression(other.getFilterExpression()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + filterClauseType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage( + getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int filterClauseType_ = 0; + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filterClauseType. + */ + @java.lang.Override + public int getFilterClauseTypeValue() { + return filterClauseType_; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for filterClauseType to set. + * @return This builder for chaining. + */ + public Builder setFilterClauseTypeValue(int value) { + filterClauseType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterClauseType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + getFilterClauseType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .forNumber(filterClauseType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The filterClauseType to set. + * @return This builder for chaining. + */ + public Builder setFilterClauseType( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + filterClauseType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the filter clause.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFilterClauseType() { + bitField0_ = (bitField0_ & ~0x00000001); + filterClauseType_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + filterExpressionBuilder_; + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filterExpression field is set. + */ + public boolean hasFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterExpression. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getFilterExpression() { + if (filterExpressionBuilder_ == null) { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance() + : filterExpression_; + } else { + return filterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterExpression_ = value; + } else { + filterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFilterExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionBuilder_ == null) { + filterExpression_ = builderForValue.build(); + } else { + filterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFilterExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && filterExpression_ != null + && filterExpression_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()) { + getFilterExpressionBuilder().mergeFrom(value); + } else { + filterExpression_ = value; + } + } else { + filterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFilterExpression() { + bitField0_ = (bitField0_ & ~0x00000002); + filterExpression_ = null; + if (filterExpressionBuilder_ != null) { + filterExpressionBuilder_.dispose(); + filterExpressionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + getFilterExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + if (filterExpressionBuilder_ != null) { + return filterExpressionBuilder_.getMessageOrBuilder(); + } else { + return filterExpression_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance() + : filterExpression_; + } + } + /** + * + * + *
+     * Required. The logical expression for what events are sent to the
+     * subproperty.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionFieldBuilder() { + if (filterExpressionBuilder_ == null) { + filterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( + getFilterExpression(), getParentForChildren(), isClean()); + filterExpression_ = null; + } + return filterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterClause parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java new file mode 100644 index 000000000000..92a13b314662 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java @@ -0,0 +1,100 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterClauseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for filterClauseType. + */ + int getFilterClauseTypeValue(); + /** + * + * + *
+   * Required. The type for the filter clause.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterClauseType. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType + getFilterClauseType(); + + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the filterExpression field is set. + */ + boolean hasFilterExpression(); + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The filterExpression. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpression(); + /** + * + * + *
+   * Required. The logical expression for what events are sent to the
+   * subproperty.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java new file mode 100644 index 000000000000..224b88803494 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java @@ -0,0 +1,2452 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A specific filter expression
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition} + */ +public final class SubpropertyEventFilterCondition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + SubpropertyEventFilterConditionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterCondition.newBuilder() to construct. + private SubpropertyEventFilterCondition( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterCondition() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterCondition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder.class); + } + + public interface StringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + getMatchType(); + + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+     * Optional. If true, the string value is case sensitive. If false, the
+     * match is case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter} + */ + public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + StringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use StringFilter.newBuilder() to construct. + private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private StringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new StringFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .Builder.class); + } + + /** + * + * + *
+     * How the filter will be used to determine a match.
+     * 
+ * + * Protobuf enum {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Match type unknown or not specified.
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+       * Partial regular expression matches with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + PARTIAL_REGEXP(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Match type unknown or not specified.
+       * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Exact match of the string value.
+       * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+       * Begins with the string value.
+       * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+       * Ends with the string value.
+       * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+       * Contains the string value.
+       * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+       * Full regular expression matches with the string value.
+       * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+       * Partial regular expression matches with the string value.
+       * 
+ * + * PARTIAL_REGEXP = 6; + */ + public static final int PARTIAL_REGEXP_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + case 6: + return PARTIAL_REGEXP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_ = 0; + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * Required. The match type for the string filter.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The string value used for the matching.
+     * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_ = false; + /** + * + * + *
+     * Optional. If true, the string value is case sensitive. If false, the
+     * match is case-insensitive.
+     * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + size += 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.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchType_ = 0; + value_ = ""; + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance()) return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchType_ = 0; + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType + getMatchType() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + result = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The match type for the string filter.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000001); + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The string value used for the matching.
+       * 
+ * + * string value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+       * Optional. If true, the string value is case sensitive. If false, the
+       * match is case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+       * Optional. If true, the string value is case sensitive. If false, the
+       * match is case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. If true, the string value is case sensitive. If false, the
+       * match is case-insensitive.
+       * 
+ * + * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000004); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilter + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + NULL_FILTER(2), + STRING_FILTER(3), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return NULL_FILTER; + case 3: + return STRING_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int NULL_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return Whether the nullFilter field is set. + */ + @java.lang.Override + public boolean hasNullFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return The nullFilter. + */ + @java.lang.Override + public boolean getNullFilter() { + if (oneFilterCase_ == 2) { + return (java.lang.Boolean) oneFilter_; + } + return false; + } + + public static final int STRING_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getStringFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder + getStringFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeBool(2, (boolean) ((java.lang.Boolean) oneFilter_)); + } + if (oneFilterCase_ == 3) { + output.writeMessage( + 3, + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, (boolean) ((java.lang.Boolean) oneFilter_)); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_); + } + 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.admin.v1alpha.SubpropertyEventFilterCondition)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (getNullFilter() != other.getNullFilter()) return false; + break; + case 3: + if (!getStringFilter().equals(other.getStringFilter())) 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(); + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + NULL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullFilter()); + break; + case 3: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A specific filter expression
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + fieldName_ = ""; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fieldName_ = fieldName_; + } + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result) { + result.oneFilterCase_ = oneFilterCase_; + result.oneFilter_ = this.oneFilter_; + if (oneFilterCase_ == 3 && stringFilterBuilder_ != null) { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getOneFilterCase()) { + case NULL_FILTER: + { + setNullFilter(other.getNullFilter()); + break; + } + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 16: + { + oneFilter_ = input.readBool(); + oneFilterCase_ = 2; + break; + } // case 16 + case 26: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @return Whether the nullFilter field is set. + */ + public boolean hasNullFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @return The nullFilter. + */ + public boolean getNullFilter() { + if (oneFilterCase_ == 2) { + return (java.lang.Boolean) oneFilter_; + } + return false; + } + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @param value The nullFilter to set. + * @return This builder for chaining. + */ + public Builder setNullFilter(boolean value) { + + oneFilterCase_ = 2; + oneFilter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A filter for null values.
+     * 
+ * + * bool null_filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearNullFilter() { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder setStringFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder + builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder mergeStringFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilter) + oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder + getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for a string-type dimension that matches a particular pattern.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter + .Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .StringFilterOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) + oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + return stringFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The field that is being filtered.
+     * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterCondition parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java new file mode 100644 index 000000000000..f334741b9030 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java @@ -0,0 +1,120 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterConditionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return Whether the nullFilter field is set. + */ + boolean hasNullFilter(); + /** + * + * + *
+   * A filter for null values.
+   * 
+ * + * bool null_filter = 2; + * + * @return The nullFilter. + */ + boolean getNullFilter(); + + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getStringFilter(); + /** + * + * + *
+   * A filter for a string-type dimension that matches a particular pattern.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder + getStringFilterOrBuilder(); + + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * Required. The field that is being filtered.
+   * 
+ * + * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.OneFilterCase + getOneFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java new file mode 100644 index 000000000000..b0d3d9c158ab --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java @@ -0,0 +1,1546 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A logical expression of Subproperty event filters.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpression} + */ +public final class SubpropertyEventFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + SubpropertyEventFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterExpression.newBuilder() to construct. + private SubpropertyEventFilterExpression( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder.class); + } + + private int exprCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object expr_; + + public enum ExprCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OR_GROUP(1), + NOT_EXPRESSION(2), + FILTER_CONDITION(3), + EXPR_NOT_SET(0); + private final int value; + + private ExprCase(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 ExprCase valueOf(int value) { + return forNumber(value); + } + + public static ExprCase forNumber(int value) { + switch (value) { + case 1: + return OR_GROUP; + case 2: + return NOT_EXPRESSION; + case 3: + return FILTER_CONDITION; + case 0: + return EXPR_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public static final int OR_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 2; + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 2; + } + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); + } + + public static final int FILTER_CONDITION_FIELD_NUMBER = 3; + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return Whether the filterCondition field is set. + */ + @java.lang.Override + public boolean hasFilterCondition() { + return exprCase_ == 3; + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return The filterCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); + } + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder + getFilterConditionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (exprCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_); + } + if (exprCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exprCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_); + } + 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.admin.v1alpha.SubpropertyEventFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) obj; + + if (!getExprCase().equals(other.getExprCase())) return false; + switch (exprCase_) { + case 1: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 2: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 3: + if (!getFilterCondition().equals(other.getFilterCondition())) 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 (exprCase_) { + case 1: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 3: + hash = (37 * hash) + FILTER_CONDITION_FIELD_NUMBER; + hash = (53 * hash) + getFilterCondition().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A logical expression of Subproperty event filters.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (filterConditionBuilder_ != null) { + filterConditionBuilder_.clear(); + } + exprCase_ = 0; + expr_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result) { + result.exprCase_ = exprCase_; + result.expr_ = this.expr_; + if (exprCase_ == 1 && orGroupBuilder_ != null) { + result.expr_ = orGroupBuilder_.build(); + } + if (exprCase_ == 2 && notExpressionBuilder_ != null) { + result.expr_ = notExpressionBuilder_.build(); + } + if (exprCase_ == 3 && filterConditionBuilder_ != null) { + result.expr_ = filterConditionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()) return this; + switch (other.getExprCase()) { + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case FILTER_CONDITION: + { + mergeFilterCondition(other.getFilterCondition()); + break; + } + case EXPR_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getFilterConditionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int exprCase_ = 0; + private java.lang.Object expr_; + + public ExprCase getExprCase() { + return ExprCase.forNumber(exprCase_); + } + + public Builder clearExpr() { + exprCase_ = 0; + expr_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder setOrGroup( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder + builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 1) { + exprCase_ = 0; + expr_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 1) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A list of expressions to OR’ed together. Must only contain
+     * not_expression or filter_condition expressions.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 2; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder setNotExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 2) { + exprCase_ = 0; + expr_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 2) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter expression to be NOT'ed (inverted, complemented). It can only
+     * include a filter. This cannot be set on the top level
+     * SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder> + filterConditionBuilder_; + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return Whether the filterCondition field is set. + */ + @java.lang.Override + public boolean hasFilterCondition() { + return exprCase_ == 3; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return The filterCondition. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition() { + if (filterConditionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return filterConditionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder setFilterCondition( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition value) { + if (filterConditionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + filterConditionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder setFilterCondition( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder + builderForValue) { + if (filterConditionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + filterConditionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder mergeFilterCondition( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition value) { + if (filterConditionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance()) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.newBuilder( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + filterConditionBuilder_.mergeFrom(value); + } else { + filterConditionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public Builder clearFilterCondition() { + if (filterConditionBuilder_ == null) { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 3) { + exprCase_ = 0; + expr_ = null; + } + filterConditionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder + getFilterConditionBuilder() { + return getFilterConditionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder + getFilterConditionOrBuilder() { + if ((exprCase_ == 3) && (filterConditionBuilder_ != null)) { + return filterConditionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; + } + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches a specific event. This cannot be set on the
+     * top level SubpropertyEventFilterExpression.
+     * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder> + getFilterConditionFieldBuilder() { + if (filterConditionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition + .getDefaultInstance(); + } + filterConditionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder>( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + return filterConditionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java new file mode 100644 index 000000000000..87cf420aa05a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java @@ -0,0 +1,1037 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A list of Subproperty event filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList} + */ +public final class SubpropertyEventFilterExpressionList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + SubpropertyEventFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use SubpropertyEventFilterExpressionList.newBuilder() to construct. + private SubpropertyEventFilterExpressionList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SubpropertyEventFilterExpressionList() { + filterExpressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SubpropertyEventFilterExpressionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder.class); + } + + public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + filterExpressions_; + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List + getFilterExpressionsList() { + return filterExpressions_; + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + return filterExpressions_; + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public int getFilterExpressionsCount() { + return filterExpressions_.size(); + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions( + int index) { + return filterExpressions_.get(index); + } + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + return filterExpressions_.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 < filterExpressions_.size(); i++) { + output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, filterExpressions_.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.admin.v1alpha.SubpropertyEventFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList other = + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) obj; + + if (!getFilterExpressionsList().equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { + hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of Subproperty event filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.class, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + } else { + filterExpressions_ = null; + filterExpressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto + .internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList build() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList buildPartial() { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result) { + if (filterExpressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filterExpressions_ = filterExpressions_; + } else { + result.filterExpressions_ = filterExpressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + .getDefaultInstance()) return this; + if (filterExpressionsBuilder_ == null) { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressions_.isEmpty()) { + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterExpressionsIsMutable(); + filterExpressions_.addAll(other.filterExpressions_); + } + onChanged(); + } + } else { + if (!other.filterExpressions_.isEmpty()) { + if (filterExpressionsBuilder_.isEmpty()) { + filterExpressionsBuilder_.dispose(); + filterExpressionsBuilder_ = null; + filterExpressions_ = other.filterExpressions_; + bitField0_ = (bitField0_ & ~0x00000001); + filterExpressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFilterExpressionsFieldBuilder() + : null; + } else { + filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression m = + input.readMessage( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .parser(), + extensionRegistry); + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(m); + } else { + filterExpressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + filterExpressions_ = java.util.Collections.emptyList(); + + private void ensureFilterExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filterExpressions_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression>( + filterExpressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + filterExpressionsBuilder_; + + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List + getFilterExpressionsList() { + if (filterExpressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(filterExpressions_); + } else { + return filterExpressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public int getFilterExpressionsCount() { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.size(); + } else { + return filterExpressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions( + int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterExpressions( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder setFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.set(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { + if (filterExpressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, value); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addFilterExpressions( + int index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + builderForValue) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.add(index, builderForValue.build()); + onChanged(); + } else { + filterExpressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder addAllFilterExpressions( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression> + values) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filterExpressions_); + onChanged(); + } else { + filterExpressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder clearFilterExpressions() { + if (filterExpressionsBuilder_ == null) { + filterExpressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterExpressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public Builder removeFilterExpressions(int index) { + if (filterExpressionsBuilder_ == null) { + ensureFilterExpressionsIsMutable(); + filterExpressions_.remove(index); + onChanged(); + } else { + filterExpressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + getFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index) { + if (filterExpressionsBuilder_ == null) { + return filterExpressions_.get(index); + } else { + return filterExpressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList() { + if (filterExpressionsBuilder_ != null) { + return filterExpressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filterExpressions_); + } + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + addFilterExpressionsBuilder() { + return getFilterExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder + addFilterExpressionsBuilder(int index) { + return getFilterExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * Required. Unordered list. A list of Subproperty event filter expressions
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder> + getFilterExpressionsBuilderList() { + return getFilterExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsFieldBuilder() { + if (filterExpressionsBuilder_ == null) { + filterExpressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( + filterExpressions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + filterExpressions_ = null; + } + return filterExpressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList(); + } + + public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SubpropertyEventFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..1e74881f418f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java @@ -0,0 +1,91 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterExpressionsList(); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions( + int index); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + int getFilterExpressionsCount(); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List< + ? extends com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> + getFilterExpressionsOrBuilderList(); + /** + * + * + *
+   * Required. Unordered list. A list of Subproperty event filter expressions
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getFilterExpressionsOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java new file mode 100644 index 000000000000..bb4d99e9179e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java @@ -0,0 +1,153 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + * + * @return The orGroup. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup(); + /** + * + * + *
+   * A list of expressions to OR’ed together. Must only contain
+   * not_expression or filter_condition expressions.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder + getOrGroupOrBuilder(); + + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + * + * @return The notExpression. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression(); + /** + * + * + *
+   * A filter expression to be NOT'ed (inverted, complemented). It can only
+   * include a filter. This cannot be set on the top level
+   * SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder + getNotExpressionOrBuilder(); + + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return Whether the filterCondition field is set. + */ + boolean hasFilterCondition(); + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + * + * @return The filterCondition. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition(); + /** + * + * + *
+   * Creates a filter that matches a specific event. This cannot be set on the
+   * top level SubpropertyEventFilterExpression.
+   * 
+ * + * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder + getFilterConditionOrBuilder(); + + com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.ExprCase getExprCase(); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java new file mode 100644 index 000000000000..b0bee1b20692 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java @@ -0,0 +1,165 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public interface SubpropertyEventFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Format:
+   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
+   * Example: properties/1234/subpropertyEventFilters/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the applyToProperty field is set. + */ + boolean hasApplyToProperty(); + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The applyToProperty. + */ + java.lang.String getApplyToProperty(); + /** + * + * + *
+   * Immutable. Resource name of the Subproperty that uses this filter.
+   * 
+ * + * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for applyToProperty. + */ + com.google.protobuf.ByteString getApplyToPropertyBytes(); + + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterClausesList(); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses(int index); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + int getFilterClausesCount(); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + java.util.List + getFilterClausesOrBuilderList(); + /** + * + * + *
+   * Required. Unordered list. Filter clauses that define the
+   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
+   * data is sent to the subproperty.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder + getFilterClausesOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java new file mode 100644 index 000000000000..58e0fe70a959 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java @@ -0,0 +1,182 @@ +/* + * 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/admin/v1alpha/subproperty_event_filter.proto + +package com.google.analytics.admin.v1alpha; + +public final class SubpropertyEventFilterProto { + private SubpropertyEventFilterProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n=google/analytics/admin/v1alpha/subprop" + + "erty_event_filter.proto\022\036google.analytic" + + "s.admin.v1alpha\032\037google/api/field_behavi" + + "or.proto\032\031google/api/resource.proto\"\205\004\n\037" + + "SubpropertyEventFilterCondition\022\025\n\013null_" + + "filter\030\002 \001(\010H\000\022e\n\rstring_filter\030\003 \001(\0132L." + + "google.analytics.admin.v1alpha.Subproper" + + "tyEventFilterCondition.StringFilterH\000\022\030\n" + + "\nfield_name\030\001 \001(\tB\004\342A\001\002\032\273\002\n\014StringFilter" + + "\022p\n\nmatch_type\030\001 \001(\0162V.google.analytics." + + "admin.v1alpha.SubpropertyEventFilterCond" + + "ition.StringFilter.MatchTypeB\004\342A\001\002\022\023\n\005va" + + "lue\030\002 \001(\tB\004\342A\001\002\022\034\n\016case_sensitive\030\003 \001(\010B" + + "\004\342A\001\001\"\205\001\n\tMatchType\022\032\n\026MATCH_TYPE_UNSPEC" + + "IFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tE" + + "NDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020" + + "\005\022\022\n\016PARTIAL_REGEXP\020\006B\014\n\none_filter\"\275\002\n " + + "SubpropertyEventFilterExpression\022X\n\010or_g" + + "roup\030\001 \001(\0132D.google.analytics.admin.v1al" + + "pha.SubpropertyEventFilterExpressionList" + + "H\000\022Z\n\016not_expression\030\002 \001(\0132@.google.anal" + + "ytics.admin.v1alpha.SubpropertyEventFilt" + + "erExpressionH\000\022[\n\020filter_condition\030\003 \001(\013" + + "2?.google.analytics.admin.v1alpha.Subpro" + + "pertyEventFilterConditionH\000B\006\n\004expr\"\213\001\n$" + + "SubpropertyEventFilterExpressionList\022c\n\022" + + "filter_expressions\030\001 \003(\0132@.google.analyt" + + "ics.admin.v1alpha.SubpropertyEventFilter" + + "ExpressionB\005\342A\002\002\006\"\304\002\n\034SubpropertyEventFi" + + "lterClause\022o\n\022filter_clause_type\030\001 \001(\0162M" + + ".google.analytics.admin.v1alpha.Subprope" + + "rtyEventFilterClause.FilterClauseTypeB\004\342" + + "A\001\002\022a\n\021filter_expression\030\002 \001(\0132@.google." + + "analytics.admin.v1alpha.SubpropertyEvent" + + "FilterExpressionB\004\342A\001\002\"P\n\020FilterClauseTy" + + "pe\022\"\n\036FILTER_CLAUSE_TYPE_UNSPECIFIED\020\000\022\013" + + "\n\007INCLUDE\020\001\022\013\n\007EXCLUDE\020\002\"\376\002\n\026Subproperty" + + "EventFilter\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022$\n\021apply" + + "_to_property\030\002 \001(\tB\004\342A\001\005H\000\210\001\001\022[\n\016filter_" + + "clauses\030\003 \003(\0132<.google.analytics.admin.v" + + "1alpha.SubpropertyEventFilterClauseB\005\342A\002" + + "\002\006:\266\001\352A\262\001\n4analyticsadmin.googleapis.com" + + "/SubpropertyEventFilter\022Iproperties/{pro" + + "perty}/subpropertyEventFilters/{sub_prop" + + "erty_event_filter}*\027subpropertyEventFilt" + + "ers2\026subpropertyEventFilterB\024\n\022_apply_to" + + "_propertyB\203\001\n\"com.google.analytics.admin" + + ".v1alphaB\033SubpropertyEventFilterProtoP\001Z" + + ">cloud.google.com/go/analytics/admin/api" + + "v1alpha/adminpb;adminpbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor, + new java.lang.String[] { + "NullFilter", "StringFilter", "FieldName", "OneFilter", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor = + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor, + new java.lang.String[] { + "OrGroup", "NotExpression", "FilterCondition", "Expr", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor, + new java.lang.String[] { + "FilterExpressions", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor, + new java.lang.String[] { + "FilterClauseType", "FilterExpression", + }); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor, + new java.lang.String[] { + "Name", "ApplyToProperty", "FilterClauses", "ApplyToProperty", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java new file mode 100644 index 000000000000..196a1672a61f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java @@ -0,0 +1,737 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateAccessBinding RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccessBindingRequest} + */ +public final class UpdateAccessBindingRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + UpdateAccessBindingRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAccessBindingRequest.newBuilder() to construct. + private UpdateAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAccessBindingRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAccessBindingRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder.class); + } + + public static final int ACCESS_BINDING_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + @java.lang.Override + public boolean hasAccessBinding() { + return accessBinding_ != null; + } + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + + 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 (accessBinding_ != null) { + output.writeMessage(1, getAccessBinding()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (accessBinding_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccessBinding()); + } + 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.admin.v1alpha.UpdateAccessBindingRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest other = + (com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) obj; + + if (hasAccessBinding() != other.hasAccessBinding()) return false; + if (hasAccessBinding()) { + if (!getAccessBinding().equals(other.getAccessBinding())) 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 (hasAccessBinding()) { + hash = (37 * hash) + ACCESS_BINDING_FIELD_NUMBER; + hash = (53 * hash) + getAccessBinding().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateAccessBinding RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccessBindingRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest build() { + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result = + new com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessBinding_ = + accessBindingBuilder_ == null ? accessBinding_ : accessBindingBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()) + return this; + if (other.hasAccessBinding()) { + mergeAccessBinding(other.getAccessBinding()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccessBindingFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + accessBindingBuilder_; + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + public boolean hasAccessBinding() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { + if (accessBindingBuilder_ == null) { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } else { + return accessBindingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessBinding_ = value; + } else { + accessBindingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessBinding( + com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { + if (accessBindingBuilder_ == null) { + accessBinding_ = builderForValue.build(); + } else { + accessBindingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { + if (accessBindingBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && accessBinding_ != null + && accessBinding_ + != com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) { + getAccessBindingBuilder().mergeFrom(value); + } else { + accessBinding_ = value; + } + } else { + accessBindingBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessBinding() { + bitField0_ = (bitField0_ & ~0x00000001); + accessBinding_ = null; + if (accessBindingBuilder_ != null) { + accessBindingBuilder_.dispose(); + accessBindingBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAccessBindingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { + if (accessBindingBuilder_ != null) { + return accessBindingBuilder_.getMessageOrBuilder(); + } else { + return accessBinding_ == null + ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() + : accessBinding_; + } + } + /** + * + * + *
+     * Required. The access binding to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> + getAccessBindingFieldBuilder() { + if (accessBindingBuilder_ == null) { + accessBindingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AccessBinding, + com.google.analytics.admin.v1alpha.AccessBinding.Builder, + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( + getAccessBinding(), getParentForChildren(), isClean()); + accessBinding_ = null; + } + return accessBindingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAccessBindingRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java new file mode 100644 index 000000000000..67019b134ba8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java @@ -0,0 +1,66 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateAccessBindingRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessBinding field is set. + */ + boolean hasAccessBinding(); + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessBinding. + */ + com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding(); + /** + * + * + *
+   * Required. The access binding to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java new file mode 100644 index 000000000000..1a8ce38a74fc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java @@ -0,0 +1,1050 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateAccount RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccountRequest} + */ +public final class UpdateAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAccountRequest) + UpdateAccountRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAccountRequest.newBuilder() to construct. + private UpdateAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAccountRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAccountRequest.class, + com.google.analytics.admin.v1alpha.UpdateAccountRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Account account_; + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return account_ != null; + } + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (account_ != null) { + output.writeMessage(1, getAccount()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (account_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccount()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateAccountRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAccountRequest other = + (com.google.analytics.admin.v1alpha.UpdateAccountRequest) obj; + + if (hasAccount() != other.hasAccount()) return false; + if (hasAccount()) { + if (!getAccount().equals(other.getAccount())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasAccount()) { + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateAccount RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccountRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAccountRequest) + com.google.analytics.admin.v1alpha.UpdateAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAccountRequest.class, + com.google.analytics.admin.v1alpha.UpdateAccountRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateAccountRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccountRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccountRequest build() { + com.google.analytics.admin.v1alpha.UpdateAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccountRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAccountRequest result = + new com.google.analytics.admin.v1alpha.UpdateAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.account_ = accountBuilder_ == null ? account_ : accountBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateAccountRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAccountRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAccountRequest other) { + if (other == com.google.analytics.admin.v1alpha.UpdateAccountRequest.getDefaultInstance()) + return this; + if (other.hasAccount()) { + mergeAccount(other.getAccount()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Account account_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the account field is set. + */ + public boolean hasAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The account. + */ + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (accountBuilder_ == null) { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } else { + return accountBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + } else { + accountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccount(com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + account_ = builderForValue.build(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && account_ != null + && account_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { + getAccountBuilder().mergeFrom(value); + } else { + account_ = value; + } + } else { + accountBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccount() { + bitField0_ = (bitField0_ & ~0x00000001); + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if (accountBuilder_ != null) { + return accountBuilder_.getMessageOrBuilder(); + } else { + return account_ == null + ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() + : account_; + } + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder>( + getAccount(), getParentForChildren(), isClean()); + account_ = null; + } + return accountBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAccountRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAccountRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAccountRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAccountRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java new file mode 100644 index 000000000000..dd07c2edee31 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The account. + */ + com.google.analytics.admin.v1alpha.Account getAccount(); + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java new file mode 100644 index 000000000000..0a7e582331dc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java @@ -0,0 +1,1073 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateAttributionSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} + */ +public final class UpdateAttributionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + UpdateAttributionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAttributionSettingsRequest.newBuilder() to construct. + private UpdateAttributionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAttributionSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAttributionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.Builder.class); + } + + public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.AttributionSettings attributionSettings_; + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attributionSettings field is set. + */ + @java.lang.Override + public boolean hasAttributionSettings() { + return attributionSettings_ != null; + } + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attributionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + return attributionSettings_ == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() + : attributionSettings_; + } + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + return attributionSettings_ == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() + : attributionSettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (attributionSettings_ != null) { + output.writeMessage(1, getAttributionSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (attributionSettings_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAttributionSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateAttributionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) obj; + + if (hasAttributionSettings() != other.hasAttributionSettings()) return false; + if (hasAttributionSettings()) { + if (!getAttributionSettings().equals(other.getAttributionSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasAttributionSettings()) { + hash = (37 * hash) + ATTRIBUTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getAttributionSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateAttributionSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + attributionSettings_ = null; + if (attributionSettingsBuilder_ != null) { + attributionSettingsBuilder_.dispose(); + attributionSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.attributionSettings_ = + attributionSettingsBuilder_ == null + ? attributionSettings_ + : attributionSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + .getDefaultInstance()) return this; + if (other.hasAttributionSettings()) { + mergeAttributionSettings(other.getAttributionSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getAttributionSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.AttributionSettings attributionSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + attributionSettingsBuilder_; + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attributionSettings field is set. + */ + public boolean hasAttributionSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attributionSettings. + */ + public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { + if (attributionSettingsBuilder_ == null) { + return attributionSettings_ == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() + : attributionSettings_; + } else { + return attributionSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + attributionSettings_ = value; + } else { + attributionSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings.Builder builderForValue) { + if (attributionSettingsBuilder_ == null) { + attributionSettings_ = builderForValue.build(); + } else { + attributionSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAttributionSettings( + com.google.analytics.admin.v1alpha.AttributionSettings value) { + if (attributionSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && attributionSettings_ != null + && attributionSettings_ + != com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) { + getAttributionSettingsBuilder().mergeFrom(value); + } else { + attributionSettings_ = value; + } + } else { + attributionSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAttributionSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + attributionSettings_ = null; + if (attributionSettingsBuilder_ != null) { + attributionSettingsBuilder_.dispose(); + attributionSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AttributionSettings.Builder + getAttributionSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAttributionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder + getAttributionSettingsOrBuilder() { + if (attributionSettingsBuilder_ != null) { + return attributionSettingsBuilder_.getMessageOrBuilder(); + } else { + return attributionSettings_ == null + ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() + : attributionSettings_; + } + } + /** + * + * + *
+     * Required. The attribution settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> + getAttributionSettingsFieldBuilder() { + if (attributionSettingsBuilder_ == null) { + attributionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AttributionSettings, + com.google.analytics.admin.v1alpha.AttributionSettings.Builder, + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder>( + getAttributionSettings(), getParentForChildren(), isClean()); + attributionSettings_ = null; + } + return attributionSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAttributionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..4508cf3e199f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateAttributionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the attributionSettings field is set. + */ + boolean hasAttributionSettings(); + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The attributionSettings. + */ + com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings(); + /** + * + * + *
+   * Required. The attribution settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java new file mode 100644 index 000000000000..b92fdd7e5441 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java @@ -0,0 +1,1051 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateAudience RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAudienceRequest} + */ +public final class UpdateAudienceRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAudienceRequest) + UpdateAudienceRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAudienceRequest.newBuilder() to construct. + private UpdateAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAudienceRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAudienceRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.Builder.class); + } + + public static final int AUDIENCE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Audience audience_; + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + @java.lang.Override + public boolean hasAudience() { + return audience_ != null; + } + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Audience getAudience() { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (audience_ != null) { + output.writeMessage(1, getAudience()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (audience_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAudience()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateAudienceRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateAudienceRequest other = + (com.google.analytics.admin.v1alpha.UpdateAudienceRequest) obj; + + if (hasAudience() != other.hasAudience()) return false; + if (hasAudience()) { + if (!getAudience().equals(other.getAudience())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasAudience()) { + hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; + hash = (53 * hash) + getAudience().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateAudience RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAudienceRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAudienceRequest) + com.google.analytics.admin.v1alpha.UpdateAudienceRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, + com.google.analytics.admin.v1alpha.UpdateAudienceRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateAudienceRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + audience_ = null; + if (audienceBuilder_ != null) { + audienceBuilder_.dispose(); + audienceBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateAudienceRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAudienceRequest build() { + com.google.analytics.admin.v1alpha.UpdateAudienceRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAudienceRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateAudienceRequest result = + new com.google.analytics.admin.v1alpha.UpdateAudienceRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateAudienceRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.audience_ = audienceBuilder_ == null ? audience_ : audienceBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateAudienceRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAudienceRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAudienceRequest other) { + if (other == com.google.analytics.admin.v1alpha.UpdateAudienceRequest.getDefaultInstance()) + return this; + if (other.hasAudience()) { + mergeAudience(other.getAudience()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAudienceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Audience audience_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + audienceBuilder_; + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + public boolean hasAudience() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + public com.google.analytics.admin.v1alpha.Audience getAudience() { + if (audienceBuilder_ == null) { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } else { + return audienceBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + audience_ = value; + } else { + audienceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAudience( + com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { + if (audienceBuilder_ == null) { + audience_ = builderForValue.build(); + } else { + audienceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { + if (audienceBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && audience_ != null + && audience_ != com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) { + getAudienceBuilder().mergeFrom(value); + } else { + audience_ = value; + } + } else { + audienceBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAudience() { + bitField0_ = (bitField0_ & ~0x00000001); + audience_ = null; + if (audienceBuilder_ != null) { + audienceBuilder_.dispose(); + audienceBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAudienceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { + if (audienceBuilder_ != null) { + return audienceBuilder_.getMessageOrBuilder(); + } else { + return audience_ == null + ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() + : audience_; + } + } + /** + * + * + *
+     * Required. The audience to update.
+     * The audience's `name` field is used to identify the audience to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder> + getAudienceFieldBuilder() { + if (audienceBuilder_ == null) { + audienceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Audience, + com.google.analytics.admin.v1alpha.Audience.Builder, + com.google.analytics.admin.v1alpha.AudienceOrBuilder>( + getAudience(), getParentForChildren(), isClean()); + audience_ = null; + } + return audienceBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAudienceRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAudienceRequest) + private static final com.google.analytics.admin.v1alpha.UpdateAudienceRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAudienceRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAudienceRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java new file mode 100644 index 000000000000..87e242b230fe --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateAudienceRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAudienceRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the audience field is set. + */ + boolean hasAudience(); + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The audience. + */ + com.google.analytics.admin.v1alpha.Audience getAudience(); + /** + * + * + *
+   * Required. The audience to update.
+   * The audience's `name` field is used to identify the audience to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequest.java new file mode 100644 index 000000000000..ac964b25e419 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequest.java @@ -0,0 +1,1069 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateChannelGroup RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateChannelGroupRequest} + */ +public final class UpdateChannelGroupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) + UpdateChannelGroupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateChannelGroupRequest.newBuilder() to construct. + private UpdateChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateChannelGroupRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateChannelGroupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.Builder.class); + } + + public static final int CHANNEL_GROUP_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; + /** + * + * + *
+   * Required. The ChannelGroup to update.
+   * The resource's `name` field is used to identify the ChannelGroup to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelGroup field is set. + */ + @java.lang.Override + public boolean hasChannelGroup() { + return channelGroup_ != null; + } + /** + * + * + *
+   * Required. The ChannelGroup to update.
+   * The resource's `name` field is used to identify the ChannelGroup to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } + /** + * + * + *
+   * Required. The ChannelGroup to update.
+   * The resource's `name` field is used to identify the ChannelGroup to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (channelGroup_ != null) { + output.writeMessage(1, getChannelGroup()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (channelGroup_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getChannelGroup()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateChannelGroupRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest other = + (com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest) obj; + + if (hasChannelGroup() != other.hasChannelGroup()) return false; + if (hasChannelGroup()) { + if (!getChannelGroup().equals(other.getChannelGroup())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasChannelGroup()) { + hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getChannelGroup().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateChannelGroup RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateChannelGroupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.class, + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + channelGroup_ = null; + if (channelGroupBuilder_ != null) { + channelGroupBuilder_.dispose(); + channelGroupBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest build() { + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest result = + new com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.channelGroup_ = + channelGroupBuilder_ == null ? channelGroup_ : channelGroupBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.getDefaultInstance()) + return this; + if (other.hasChannelGroup()) { + mergeChannelGroup(other.getChannelGroup()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getChannelGroupFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + channelGroupBuilder_; + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelGroup field is set. + */ + public boolean hasChannelGroup() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelGroup. + */ + public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { + if (channelGroupBuilder_ == null) { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } else { + return channelGroupBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + channelGroup_ = value; + } else { + channelGroupBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setChannelGroup( + com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { + if (channelGroupBuilder_ == null) { + channelGroup_ = builderForValue.build(); + } else { + channelGroupBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { + if (channelGroupBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && channelGroup_ != null + && channelGroup_ + != com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) { + getChannelGroupBuilder().mergeFrom(value); + } else { + channelGroup_ = value; + } + } else { + channelGroupBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearChannelGroup() { + bitField0_ = (bitField0_ & ~0x00000001); + channelGroup_ = null; + if (channelGroupBuilder_ != null) { + channelGroupBuilder_.dispose(); + channelGroupBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getChannelGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { + if (channelGroupBuilder_ != null) { + return channelGroupBuilder_.getMessageOrBuilder(); + } else { + return channelGroup_ == null + ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() + : channelGroup_; + } + } + /** + * + * + *
+     * Required. The ChannelGroup to update.
+     * The resource's `name` field is used to identify the ChannelGroup to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> + getChannelGroupFieldBuilder() { + if (channelGroupBuilder_ == null) { + channelGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChannelGroup, + com.google.analytics.admin.v1alpha.ChannelGroup.Builder, + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( + getChannelGroup(), getParentForChildren(), isClean()); + channelGroup_ = null; + } + return channelGroupBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) + private static final com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateChannelGroupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequestOrBuilder.java new file mode 100644 index 000000000000..9dd26f25c4b2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateChannelGroupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ChannelGroup to update.
+   * The resource's `name` field is used to identify the ChannelGroup to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the channelGroup field is set. + */ + boolean hasChannelGroup(); + /** + * + * + *
+   * Required. The ChannelGroup to update.
+   * The resource's `name` field is used to identify the ChannelGroup to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The channelGroup. + */ + com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup(); + /** + * + * + *
+   * Required. The ChannelGroup to update.
+   * The resource's `name` field is used to identify the ChannelGroup to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequest.java new file mode 100644 index 000000000000..db96bc2bb896 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequest.java @@ -0,0 +1,1061 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateConversionEventRequest} + */ +public final class UpdateConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateConversionEventRequest) + UpdateConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateConversionEventRequest.newBuilder() to construct. + private UpdateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateConversionEventRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.Builder.class); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return conversionEvent_ != null; + } + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (conversionEvent_ != null) { + output.writeMessage(1, getConversionEvent()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversionEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversionEvent()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest other = + (com.google.analytics.admin.v1alpha.UpdateConversionEventRequest) obj; + + if (hasConversionEvent() != other.hasConversionEvent()) return false; + if (hasConversionEvent()) { + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasConversionEvent()) { + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateConversionEventRequest) + com.google.analytics.admin.v1alpha.UpdateConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest build() { + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest result = + new com.google.analytics.admin.v1alpha.UpdateConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionEvent_ = + conversionEventBuilder_ == null ? conversionEvent_ : conversionEventBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.getDefaultInstance()) + return this; + if (other.hasConversionEvent()) { + mergeConversionEvent(other.getConversionEvent()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getConversionEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + public boolean hasConversionEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } else { + return conversionEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionEvent_ = value; + } else { + conversionEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + conversionEvent_ = builderForValue.build(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && conversionEvent_ != null + && conversionEvent_ + != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { + getConversionEventBuilder().mergeFrom(value); + } else { + conversionEvent_ = value; + } + } else { + conversionEventBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionEvent() { + bitField0_ = (bitField0_ & ~0x00000001); + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (conversionEventBuilder_ != null) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + getConversionEvent(), getParentForChildren(), isClean()); + conversionEvent_ = null; + } + return conversionEventBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.UpdateConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..b6e6987c61fc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java new file mode 100644 index 000000000000..c80658682190 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java @@ -0,0 +1,1013 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} + */ +public final class UpdateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + UpdateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomDimensionRequest.newBuilder() to construct. + private UpdateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomDimensionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (customDimension_ != null) { + output.writeMessage(1, getCustomDimension()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomDimension()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) obj; + + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customDimension_ = + customDimensionBuilder_ == null ? customDimension_ : customDimensionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance()) + return this; + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCustomDimensionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + } else { + customDimensionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customDimension_ != null + && customDimension_ + != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { + getCustomDimensionBuilder().mergeFrom(value); + } else { + customDimension_ = value; + } + } else { + customDimensionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder clearCustomDimension() { + bitField0_ = (bitField0_ & ~0x00000001); + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..728101452cc1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java new file mode 100644 index 000000000000..33f7e490c2f1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java @@ -0,0 +1,1009 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} + */ +public final class UpdateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + UpdateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomMetricRequest.newBuilder() to construct. + private UpdateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomMetricRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (customMetric_ != null) { + output.writeMessage(1, getCustomMetric()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomMetric()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) obj; + + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customMetric_ = + customMetricBuilder_ == null ? customMetric_ : customMetricBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance()) + return this; + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCustomMetricFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + } else { + customMetricBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customMetric_ != null + && customMetric_ + != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { + getCustomMetricBuilder().mergeFrom(value); + } else { + customMetric_ = value; + } + } else { + customMetricBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder clearCustomMetric() { + bitField0_ = (bitField0_ & ~0x00000001); + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..204e1a65cf99 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java new file mode 100644 index 000000000000..8a35f638b1a2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java @@ -0,0 +1,1074 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateDataRedactionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest} + */ +public final class UpdateDataRedactionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + UpdateDataRedactionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataRedactionSettingsRequest.newBuilder() to construct. + private UpdateDataRedactionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataRedactionSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataRedactionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.Builder.class); + } + + public static final int DATA_REDACTION_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DataRedactionSettings dataRedactionSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRedactionSettings() { + return dataRedactionSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRedactionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (dataRedactionSettings_ != null) { + output.writeMessage(1, getDataRedactionSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataRedactionSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataRedactionSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateDataRedactionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) obj; + + if (hasDataRedactionSettings() != other.hasDataRedactionSettings()) return false; + if (hasDataRedactionSettings()) { + if (!getDataRedactionSettings().equals(other.getDataRedactionSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDataRedactionSettings()) { + hash = (37 * hash) + DATA_REDACTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRedactionSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateDataRedactionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataRedactionSettings_ = null; + if (dataRedactionSettingsBuilder_ != null) { + dataRedactionSettingsBuilder_.dispose(); + dataRedactionSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataRedactionSettings_ = + dataRedactionSettingsBuilder_ == null + ? dataRedactionSettings_ + : dataRedactionSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + .getDefaultInstance()) return this; + if (other.hasDataRedactionSettings()) { + mergeDataRedactionSettings(other.getDataRedactionSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDataRedactionSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.DataRedactionSettings dataRedactionSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + dataRedactionSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + public boolean hasDataRedactionSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRedactionSettings. + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { + if (dataRedactionSettingsBuilder_ == null) { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } else { + return dataRedactionSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRedactionSettings_ = value; + } else { + dataRedactionSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder builderForValue) { + if (dataRedactionSettingsBuilder_ == null) { + dataRedactionSettings_ = builderForValue.build(); + } else { + dataRedactionSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataRedactionSettings( + com.google.analytics.admin.v1alpha.DataRedactionSettings value) { + if (dataRedactionSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataRedactionSettings_ != null + && dataRedactionSettings_ + != com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance()) { + getDataRedactionSettingsBuilder().mergeFrom(value); + } else { + dataRedactionSettings_ = value; + } + } else { + dataRedactionSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataRedactionSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + dataRedactionSettings_ = null; + if (dataRedactionSettingsBuilder_ != null) { + dataRedactionSettingsBuilder_.dispose(); + dataRedactionSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder + getDataRedactionSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataRedactionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder() { + if (dataRedactionSettingsBuilder_ != null) { + return dataRedactionSettingsBuilder_.getMessageOrBuilder(); + } else { + return dataRedactionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() + : dataRedactionSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> + getDataRedactionSettingsFieldBuilder() { + if (dataRedactionSettingsBuilder_ == null) { + dataRedactionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRedactionSettings, + com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder>( + getDataRedactionSettings(), getParentForChildren(), isClean()); + dataRedactionSettings_ = null; + } + return dataRedactionSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataRedactionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..d80e67ab3db1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateDataRedactionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRedactionSettings field is set. + */ + boolean hasDataRedactionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRedactionSettings. + */ + com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder + getDataRedactionSettingsOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java new file mode 100644 index 000000000000..dde8d5656e55 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java @@ -0,0 +1,1074 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateDataRetentionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} + */ +public final class UpdateDataRetentionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + UpdateDataRetentionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataRetentionSettingsRequest.newBuilder() to construct. + private UpdateDataRetentionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataRetentionSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataRetentionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.Builder.class); + } + + public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DataRetentionSettings dataRetentionSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return dataRetentionSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (dataRetentionSettings_ != null) { + output.writeMessage(1, getDataRetentionSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataRetentionSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataRetentionSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateDataRetentionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) obj; + + if (hasDataRetentionSettings() != other.hasDataRetentionSettings()) return false; + if (hasDataRetentionSettings()) { + if (!getDataRetentionSettings().equals(other.getDataRetentionSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDataRetentionSettings()) { + hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRetentionSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateDataRetentionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataRetentionSettings_ = null; + if (dataRetentionSettingsBuilder_ != null) { + dataRetentionSettingsBuilder_.dispose(); + dataRetentionSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataRetentionSettings_ = + dataRetentionSettingsBuilder_ == null + ? dataRetentionSettings_ + : dataRetentionSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + .getDefaultInstance()) return this; + if (other.hasDataRetentionSettings()) { + mergeDataRetentionSettings(other.getDataRetentionSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDataRetentionSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.DataRetentionSettings dataRetentionSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + dataRetentionSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + public boolean hasDataRetentionSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRetentionSettings. + */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } else { + return dataRetentionSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRetentionSettings_ = value; + } else { + dataRetentionSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder builderForValue) { + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettings_ = builderForValue.build(); + } else { + dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataRetentionSettings_ != null + && dataRetentionSettings_ + != com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance()) { + getDataRetentionSettingsBuilder().mergeFrom(value); + } else { + dataRetentionSettings_ = value; + } + } else { + dataRetentionSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataRetentionSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + dataRetentionSettings_ = null; + if (dataRetentionSettingsBuilder_ != null) { + dataRetentionSettingsBuilder_.dispose(); + dataRetentionSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder + getDataRetentionSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataRetentionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if (dataRetentionSettingsBuilder_ != null) { + return dataRetentionSettingsBuilder_.getMessageOrBuilder(); + } else { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + getDataRetentionSettingsFieldBuilder() { + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder>( + getDataRetentionSettings(), getParentForChildren(), isClean()); + dataRetentionSettings_ = null; + } + return dataRetentionSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataRetentionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..a2ff59bc448a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateDataRetentionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + boolean hasDataRetentionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRetentionSettings. + */ + com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java new file mode 100644 index 000000000000..d906c06fcd39 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java @@ -0,0 +1,1003 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataStreamRequest} + */ +public final class UpdateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + UpdateDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataStreamRequest.newBuilder() to construct. + private UpdateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataStreamRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.Builder.class); + } + + public static final int DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return dataStream_ != null; + } + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataStream_ != null) { + output.writeMessage(1, getDataStream()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataStream()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += 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.admin.v1alpha.UpdateDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest other = + (com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) obj; + + if (hasDataStream() != other.hasDataStream()) return false; + if (hasDataStream()) { + if (!getDataStream().equals(other.getDataStream())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!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 (hasDataStream()) { + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + com.google.analytics.admin.v1alpha.UpdateDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest build() { + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = + new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataStream_ = dataStreamBuilder_ == null ? dataStream_ : dataStreamBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest other) { + if (other == com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance()) + return this; + if (other.hasDataStream()) { + mergeDataStream(other.getDataStream()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.DataStream dataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + dataStreamBuilder_; + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + public boolean hasDataStream() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return The dataStream. + */ + public com.google.analytics.admin.v1alpha.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } else { + return dataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStream_ = value; + } else { + dataStreamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder setDataStream( + com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + dataStream_ = builderForValue.build(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { + if (dataStreamBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataStream_ != null + && dataStream_ != com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) { + getDataStreamBuilder().mergeFrom(value); + } else { + dataStream_ = value; + } + } else { + dataStreamBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public Builder clearDataStream() { + bitField0_ = (bitField0_ & ~0x00000001); + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { + if (dataStreamBuilder_ != null) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + return dataStream_ == null + ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() + : dataStream_; + } + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder> + getDataStreamFieldBuilder() { + if (dataStreamBuilder_ == null) { + dataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataStream, + com.google.analytics.admin.v1alpha.DataStream.Builder, + com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( + getDataStream(), getParentForChildren(), isClean()); + dataStream_ = null; + } + return dataStreamBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..dc9d130d382b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + * + * @return The dataStream. + */ + com.google.analytics.admin.v1alpha.DataStream getDataStream(); + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1alpha.DataStream data_stream = 1; + */ + com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 000000000000..306fae53610b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,1074 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} + */ +public final class UpdateDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private UpdateDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDisplayVideo360AdvertiserLinkRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDisplayVideo360AdvertiserLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (displayVideo360AdvertiserLink_ != null) { + output.writeMessage(1, getDisplayVideo360AdvertiserLink()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (displayVideo360AdvertiserLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getDisplayVideo360AdvertiserLink()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) obj; + + if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) + return false; + if (hasDisplayVideo360AdvertiserLink()) { + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDisplayVideo360AdvertiserLink()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayVideo360AdvertiserLink_ = null; + if (displayVideo360AdvertiserLinkBuilder_ != null) { + displayVideo360AdvertiserLinkBuilder_.dispose(); + displayVideo360AdvertiserLinkBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayVideo360AdvertiserLink_ = + displayVideo360AdvertiserLinkBuilder_ == null + ? displayVideo360AdvertiserLink_ + : displayVideo360AdvertiserLinkBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance()) return this; + if (other.hasDisplayVideo360AdvertiserLink()) { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + public boolean hasDisplayVideo360AdvertiserLink() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } else { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLink_ = value; + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = builderForValue.build(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && displayVideo360AdvertiserLink_ != null + && displayVideo360AdvertiserLink_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()) { + getDisplayVideo360AdvertiserLinkBuilder().mergeFrom(value); + } else { + displayVideo360AdvertiserLink_ = value; + } + } else { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + bitField0_ = (bitField0_ & ~0x00000001); + displayVideo360AdvertiserLink_ = null; + if (displayVideo360AdvertiserLinkBuilder_ != null) { + displayVideo360AdvertiserLinkBuilder_.dispose(); + displayVideo360AdvertiserLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ != null) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + getDisplayVideo360AdvertiserLink(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLink_ = null; + } + return displayVideo360AdvertiserLinkBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 000000000000..35904910f70a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java new file mode 100644 index 000000000000..12878047903a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java @@ -0,0 +1,1094 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateEnhancedMeasurementSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} + */ +public final class UpdateEnhancedMeasurementSettingsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + UpdateEnhancedMeasurementSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEnhancedMeasurementSettingsRequest.newBuilder() to construct. + private UpdateEnhancedMeasurementSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEnhancedMeasurementSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEnhancedMeasurementSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder + .class); + } + + public static final int ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + enhancedMeasurementSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + @java.lang.Override + public boolean hasEnhancedMeasurementSettings() { + return enhancedMeasurementSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enhancedMeasurementSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings() { + return enhancedMeasurementSettings_ == null + ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() + : enhancedMeasurementSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder() { + return enhancedMeasurementSettings_ == null + ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() + : enhancedMeasurementSettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enhancedMeasurementSettings_ != null) { + output.writeMessage(1, getEnhancedMeasurementSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enhancedMeasurementSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getEnhancedMeasurementSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += 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.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) obj; + + if (hasEnhancedMeasurementSettings() != other.hasEnhancedMeasurementSettings()) return false; + if (hasEnhancedMeasurementSettings()) { + if (!getEnhancedMeasurementSettings().equals(other.getEnhancedMeasurementSettings())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!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 (hasEnhancedMeasurementSettings()) { + hash = (37 * hash) + ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getEnhancedMeasurementSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateEnhancedMeasurementSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enhancedMeasurementSettings_ = null; + if (enhancedMeasurementSettingsBuilder_ != null) { + enhancedMeasurementSettingsBuilder_.dispose(); + enhancedMeasurementSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enhancedMeasurementSettings_ = + enhancedMeasurementSettingsBuilder_ == null + ? enhancedMeasurementSettings_ + : enhancedMeasurementSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + .getDefaultInstance()) return this; + if (other.hasEnhancedMeasurementSettings()) { + mergeEnhancedMeasurementSettings(other.getEnhancedMeasurementSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getEnhancedMeasurementSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + enhancedMeasurementSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> + enhancedMeasurementSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + public boolean hasEnhancedMeasurementSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enhancedMeasurementSettings. + */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings() { + if (enhancedMeasurementSettingsBuilder_ == null) { + return enhancedMeasurementSettings_ == null + ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() + : enhancedMeasurementSettings_; + } else { + return enhancedMeasurementSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + enhancedMeasurementSettings_ = value; + } else { + enhancedMeasurementSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder builderForValue) { + if (enhancedMeasurementSettingsBuilder_ == null) { + enhancedMeasurementSettings_ = builderForValue.build(); + } else { + enhancedMeasurementSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { + if (enhancedMeasurementSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && enhancedMeasurementSettings_ != null + && enhancedMeasurementSettings_ + != com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + .getDefaultInstance()) { + getEnhancedMeasurementSettingsBuilder().mergeFrom(value); + } else { + enhancedMeasurementSettings_ = value; + } + } else { + enhancedMeasurementSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEnhancedMeasurementSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + enhancedMeasurementSettings_ = null; + if (enhancedMeasurementSettingsBuilder_ != null) { + enhancedMeasurementSettingsBuilder_.dispose(); + enhancedMeasurementSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder + getEnhancedMeasurementSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEnhancedMeasurementSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder() { + if (enhancedMeasurementSettingsBuilder_ != null) { + return enhancedMeasurementSettingsBuilder_.getMessageOrBuilder(); + } else { + return enhancedMeasurementSettings_ == null + ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() + : enhancedMeasurementSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> + getEnhancedMeasurementSettingsFieldBuilder() { + if (enhancedMeasurementSettingsBuilder_ == null) { + enhancedMeasurementSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder>( + getEnhancedMeasurementSettings(), getParentForChildren(), isClean()); + enhancedMeasurementSettings_ = null; + } + return enhancedMeasurementSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEnhancedMeasurementSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..6000fb6e8280 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateEnhancedMeasurementSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the enhancedMeasurementSettings field is set. + */ + boolean hasEnhancedMeasurementSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enhancedMeasurementSettings. + */ + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder + getEnhancedMeasurementSettingsOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequest.java new file mode 100644 index 000000000000..08c67be36213 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequest.java @@ -0,0 +1,1073 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateEventCreateRule RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} + */ +public final class UpdateEventCreateRuleRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) + UpdateEventCreateRuleRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateEventCreateRuleRequest.newBuilder() to construct. + private UpdateEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateEventCreateRuleRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateEventCreateRuleRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.Builder.class); + } + + public static final int EVENT_CREATE_RULE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; + /** + * + * + *
+   * Required. The EventCreateRule to update.
+   * The resource's `name` field is used to identify the EventCreateRule to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventCreateRule field is set. + */ + @java.lang.Override + public boolean hasEventCreateRule() { + return eventCreateRule_ != null; + } + /** + * + * + *
+   * Required. The EventCreateRule to update.
+   * The resource's `name` field is used to identify the EventCreateRule to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventCreateRule. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } + /** + * + * + *
+   * Required. The EventCreateRule to update.
+   * The resource's `name` field is used to identify the EventCreateRule to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (eventCreateRule_ != null) { + output.writeMessage(1, getEventCreateRule()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (eventCreateRule_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEventCreateRule()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateEventCreateRuleRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest other = + (com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) obj; + + if (hasEventCreateRule() != other.hasEventCreateRule()) return false; + if (hasEventCreateRule()) { + if (!getEventCreateRule().equals(other.getEventCreateRule())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasEventCreateRule()) { + hash = (37 * hash) + EVENT_CREATE_RULE_FIELD_NUMBER; + hash = (53 * hash) + getEventCreateRule().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateEventCreateRule RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.class, + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + eventCreateRule_ = null; + if (eventCreateRuleBuilder_ != null) { + eventCreateRuleBuilder_.dispose(); + eventCreateRuleBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest build() { + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest result = + new com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.eventCreateRule_ = + eventCreateRuleBuilder_ == null ? eventCreateRule_ : eventCreateRuleBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.getDefaultInstance()) + return this; + if (other.hasEventCreateRule()) { + mergeEventCreateRule(other.getEventCreateRule()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getEventCreateRuleFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + eventCreateRuleBuilder_; + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventCreateRule field is set. + */ + public boolean hasEventCreateRule() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventCreateRule. + */ + public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { + if (eventCreateRuleBuilder_ == null) { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } else { + return eventCreateRuleBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventCreateRule_ = value; + } else { + eventCreateRuleBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventCreateRule( + com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { + if (eventCreateRuleBuilder_ == null) { + eventCreateRule_ = builderForValue.build(); + } else { + eventCreateRuleBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { + if (eventCreateRuleBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && eventCreateRule_ != null + && eventCreateRule_ + != com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) { + getEventCreateRuleBuilder().mergeFrom(value); + } else { + eventCreateRule_ = value; + } + } else { + eventCreateRuleBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEventCreateRule() { + bitField0_ = (bitField0_ & ~0x00000001); + eventCreateRule_ = null; + if (eventCreateRuleBuilder_ != null) { + eventCreateRuleBuilder_.dispose(); + eventCreateRuleBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EventCreateRule.Builder getEventCreateRuleBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getEventCreateRuleFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder + getEventCreateRuleOrBuilder() { + if (eventCreateRuleBuilder_ != null) { + return eventCreateRuleBuilder_.getMessageOrBuilder(); + } else { + return eventCreateRule_ == null + ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() + : eventCreateRule_; + } + } + /** + * + * + *
+     * Required. The EventCreateRule to update.
+     * The resource's `name` field is used to identify the EventCreateRule to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> + getEventCreateRuleFieldBuilder() { + if (eventCreateRuleBuilder_ == null) { + eventCreateRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.EventCreateRule, + com.google.analytics.admin.v1alpha.EventCreateRule.Builder, + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( + getEventCreateRule(), getParentForChildren(), isClean()); + eventCreateRule_ = null; + } + return eventCreateRuleBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) + private static final com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateEventCreateRuleRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequestOrBuilder.java new file mode 100644 index 000000000000..d4c4e35e927a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateEventCreateRuleRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The EventCreateRule to update.
+   * The resource's `name` field is used to identify the EventCreateRule to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventCreateRule field is set. + */ + boolean hasEventCreateRule(); + /** + * + * + *
+   * Required. The EventCreateRule to update.
+   * The resource's `name` field is used to identify the EventCreateRule to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventCreateRule. + */ + com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule(); + /** + * + * + *
+   * Required. The EventCreateRule to update.
+   * The resource's `name` field is used to identify the EventCreateRule to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java new file mode 100644 index 000000000000..94e44cf347c4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java @@ -0,0 +1,1073 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateExpandedDataSet RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest} + */ +public final class UpdateExpandedDataSetRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + UpdateExpandedDataSetRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateExpandedDataSetRequest.newBuilder() to construct. + private UpdateExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateExpandedDataSetRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateExpandedDataSetRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.Builder.class); + } + + public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + @java.lang.Override + public boolean hasExpandedDataSet() { + return expandedDataSet_ != null; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (expandedDataSet_ != null) { + output.writeMessage(1, getExpandedDataSet()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (expandedDataSet_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getExpandedDataSet()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateExpandedDataSetRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest other = + (com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) obj; + + if (hasExpandedDataSet() != other.hasExpandedDataSet()) return false; + if (hasExpandedDataSet()) { + if (!getExpandedDataSet().equals(other.getExpandedDataSet())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasExpandedDataSet()) { + hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; + hash = (53 * hash) + getExpandedDataSet().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateExpandedDataSet RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest build() { + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result = + new com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.expandedDataSet_ = + expandedDataSetBuilder_ == null ? expandedDataSet_ : expandedDataSetBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.getDefaultInstance()) + return this; + if (other.hasExpandedDataSet()) { + mergeExpandedDataSet(other.getExpandedDataSet()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getExpandedDataSetFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + expandedDataSetBuilder_; + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + public boolean hasExpandedDataSet() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { + if (expandedDataSetBuilder_ == null) { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } else { + return expandedDataSetBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expandedDataSet_ = value; + } else { + expandedDataSetBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpandedDataSet( + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { + if (expandedDataSetBuilder_ == null) { + expandedDataSet_ = builderForValue.build(); + } else { + expandedDataSetBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { + if (expandedDataSetBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && expandedDataSet_ != null + && expandedDataSet_ + != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { + getExpandedDataSetBuilder().mergeFrom(value); + } else { + expandedDataSet_ = value; + } + } else { + expandedDataSetBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpandedDataSet() { + bitField0_ = (bitField0_ & ~0x00000001); + expandedDataSet_ = null; + if (expandedDataSetBuilder_ != null) { + expandedDataSetBuilder_.dispose(); + expandedDataSetBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getExpandedDataSetFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder + getExpandedDataSetOrBuilder() { + if (expandedDataSetBuilder_ != null) { + return expandedDataSetBuilder_.getMessageOrBuilder(); + } else { + return expandedDataSet_ == null + ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() + : expandedDataSet_; + } + } + /** + * + * + *
+     * Required. The ExpandedDataSet to update.
+     * The resource's `name` field is used to identify the ExpandedDataSet to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> + getExpandedDataSetFieldBuilder() { + if (expandedDataSetBuilder_ == null) { + expandedDataSetBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ExpandedDataSet, + com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( + getExpandedDataSet(), getParentForChildren(), isClean()); + expandedDataSet_ = null; + } + return expandedDataSetBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + private static final com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateExpandedDataSetRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java new file mode 100644 index 000000000000..265efddba8fd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateExpandedDataSetRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expandedDataSet field is set. + */ + boolean hasExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expandedDataSet. + */ + com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); + /** + * + * + *
+   * Required. The ExpandedDataSet to update.
+   * The resource's `name` field is used to identify the ExpandedDataSet to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java new file mode 100644 index 000000000000..2172a940623d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java @@ -0,0 +1,1021 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateGoogleAdsLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} + */ +public final class UpdateGoogleAdsLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + UpdateGoogleAdsLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateGoogleAdsLinkRequest.newBuilder() to construct. + private UpdateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateGoogleAdsLinkRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGoogleAdsLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.Builder.class); + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return googleAdsLink_ != null; + } + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (googleAdsLink_ != null) { + output.writeMessage(1, getGoogleAdsLink()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (googleAdsLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGoogleAdsLink()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateGoogleAdsLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest other = + (com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) obj; + + if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; + if (hasGoogleAdsLink()) { + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasGoogleAdsLink()) { + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateGoogleAdsLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest build() { + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest result = + new com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.googleAdsLink_ = + googleAdsLinkBuilder_ == null ? googleAdsLink_ : googleAdsLinkBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.getDefaultInstance()) + return this; + if (other.hasGoogleAdsLink()) { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * + * @return Whether the googleAdsLink field is set. + */ + public boolean hasGoogleAdsLink() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * + * @return The googleAdsLink. + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } else { + return googleAdsLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleAdsLink_ = value; + } else { + googleAdsLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + googleAdsLink_ = builderForValue.build(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && googleAdsLink_ != null + && googleAdsLink_ + != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { + getGoogleAdsLinkBuilder().mergeFrom(value); + } else { + googleAdsLink_ = value; + } + } else { + googleAdsLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + public Builder clearGoogleAdsLink() { + bitField0_ = (bitField0_ & ~0x00000001); + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (googleAdsLinkBuilder_ != null) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( + getGoogleAdsLink(), getParentForChildren(), isClean()); + googleAdsLink_ = null; + } + return googleAdsLinkBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + private static final com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGoogleAdsLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java new file mode 100644 index 000000000000..ad1326fc7937 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateGoogleAdsLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; + */ + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java new file mode 100644 index 000000000000..940b7ca3ce89 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java @@ -0,0 +1,1074 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateGoogleSignalsSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} + */ +public final class UpdateGoogleSignalsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + UpdateGoogleSignalsSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateGoogleSignalsSettingsRequest.newBuilder() to construct. + private UpdateGoogleSignalsSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateGoogleSignalsSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGoogleSignalsSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); + } + + public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + @java.lang.Override + public boolean hasGoogleSignalsSettings() { + return googleSignalsSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (googleSignalsSettings_ != null) { + output.writeMessage(1, getGoogleSignalsSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (googleSignalsSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGoogleSignalsSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateGoogleSignalsSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) obj; + + if (hasGoogleSignalsSettings() != other.hasGoogleSignalsSettings()) return false; + if (hasGoogleSignalsSettings()) { + if (!getGoogleSignalsSettings().equals(other.getGoogleSignalsSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasGoogleSignalsSettings()) { + hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateGoogleSignalsSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + googleSignalsSettings_ = null; + if (googleSignalsSettingsBuilder_ != null) { + googleSignalsSettingsBuilder_.dispose(); + googleSignalsSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.googleSignalsSettings_ = + googleSignalsSettingsBuilder_ == null + ? googleSignalsSettings_ + : googleSignalsSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance()) return this; + if (other.hasGoogleSignalsSettings()) { + mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getGoogleSignalsSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + googleSignalsSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + public boolean hasGoogleSignalsSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } else { + return googleSignalsSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleSignalsSettings_ = value; + } else { + googleSignalsSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettings_ = builderForValue.build(); + } else { + googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && googleSignalsSettings_ != null + && googleSignalsSettings_ + != com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance()) { + getGoogleSignalsSettingsBuilder().mergeFrom(value); + } else { + googleSignalsSettings_ = value; + } + } else { + googleSignalsSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGoogleSignalsSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + googleSignalsSettings_ = null; + if (googleSignalsSettingsBuilder_ != null) { + googleSignalsSettingsBuilder_.dispose(); + googleSignalsSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder + getGoogleSignalsSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGoogleSignalsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if (googleSignalsSettingsBuilder_ != null) { + return googleSignalsSettingsBuilder_.getMessageOrBuilder(); + } else { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + getGoogleSignalsSettingsFieldBuilder() { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( + getGoogleSignalsSettings(), getParentForChildren(), isClean()); + googleSignalsSettings_ = null; + } + return googleSignalsSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGoogleSignalsSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..2d306a890ea6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateGoogleSignalsSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + boolean hasGoogleSignalsSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..ad7dad53d9eb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java @@ -0,0 +1,1051 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} + */ +public final class UpdateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + UpdateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMeasurementProtocolSecretRequest.newBuilder() to construct. + private UpdateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMeasurementProtocolSecretRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (measurementProtocolSecret_ != null) { + output.writeMessage(1, getMeasurementProtocolSecret()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getMeasurementProtocolSecret()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) obj; + + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.measurementProtocolSecret_ = + measurementProtocolSecretBuilder_ == null + ? measurementProtocolSecret_ + : measurementProtocolSecretBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && measurementProtocolSecret_ != null + && measurementProtocolSecret_ + != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance()) { + getMeasurementProtocolSecretBuilder().mergeFrom(value); + } else { + measurementProtocolSecret_ = value; + } + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + bitField0_ = (bitField0_ & ~0x00000001); + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..9449bf52834b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java new file mode 100644 index 000000000000..18b2803ea608 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java @@ -0,0 +1,1063 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdatePropertyRequest} + */ +public final class UpdatePropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdatePropertyRequest) + UpdatePropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePropertyRequest.newBuilder() to construct. + private UpdatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePropertyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest.class, + com.google.analytics.admin.v1alpha.UpdatePropertyRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.Property property_; + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return property_ != null; + } + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (property_ != null) { + output.writeMessage(1, getProperty()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (property_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdatePropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdatePropertyRequest other = + (com.google.analytics.admin.v1alpha.UpdatePropertyRequest) obj; + + if (hasProperty() != other.hasProperty()) return false; + if (hasProperty()) { + if (!getProperty().equals(other.getProperty())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasProperty()) { + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdatePropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdatePropertyRequest) + com.google.analytics.admin.v1alpha.UpdatePropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest.class, + com.google.analytics.admin.v1alpha.UpdatePropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdatePropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdatePropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdatePropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdatePropertyRequest build() { + com.google.analytics.admin.v1alpha.UpdatePropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdatePropertyRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdatePropertyRequest result = + new com.google.analytics.admin.v1alpha.UpdatePropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.UpdatePropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = propertyBuilder_ == null ? property_ : propertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdatePropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdatePropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdatePropertyRequest other) { + if (other == com.google.analytics.admin.v1alpha.UpdatePropertyRequest.getDefaultInstance()) + return this; + if (other.hasProperty()) { + mergeProperty(other.getProperty()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.Property property_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + public boolean hasProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (propertyBuilder_ == null) { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } else { + return propertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + } else { + propertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + property_ = builderForValue.build(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && property_ != null + && property_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + getPropertyBuilder().mergeFrom(value); + } else { + property_ = value; + } + } else { + propertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if (propertyBuilder_ != null) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + return property_ == null + ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() + : property_; + } + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); + property_ = null; + } + return propertyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdatePropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdatePropertyRequest) + private static final com.google.analytics.admin.v1alpha.UpdatePropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdatePropertyRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdatePropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java new file mode 100644 index 000000000000..77c090262ec7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdatePropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdatePropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + com.google.analytics.admin.v1alpha.Property getProperty(); + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.java new file mode 100644 index 000000000000..4072ba0fa2f9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.java @@ -0,0 +1,1075 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateSKAdNetworkConversionValueSchema RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest} + */ +public final class UpdateSKAdNetworkConversionValueSchemaRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) + UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. + private UpdateSKAdNetworkConversionValueSchemaRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSKAdNetworkConversionValueSchemaRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSKAdNetworkConversionValueSchemaRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.class, + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.Builder + .class); + } + + public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + skadnetworkConversionValueSchema_; + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + @java.lang.Override + public boolean hasSkadnetworkConversionValueSchema() { + return skadnetworkConversionValueSchema_ != null; + } + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skadnetworkConversionValueSchema. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema() { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() + : skadnetworkConversionValueSchema_; + } + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder() { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() + : skadnetworkConversionValueSchema_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (skadnetworkConversionValueSchema_ != null) { + output.writeMessage(1, getSkadnetworkConversionValueSchema()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (skadnetworkConversionValueSchema_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getSkadnetworkConversionValueSchema()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest other = + (com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) obj; + + if (hasSkadnetworkConversionValueSchema() != other.hasSkadnetworkConversionValueSchema()) + return false; + if (hasSkadnetworkConversionValueSchema()) { + if (!getSkadnetworkConversionValueSchema() + .equals(other.getSkadnetworkConversionValueSchema())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasSkadnetworkConversionValueSchema()) { + hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER; + hash = (53 * hash) + getSkadnetworkConversionValueSchema().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateSKAdNetworkConversionValueSchema RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + .class, + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + skadnetworkConversionValueSchema_ = null; + if (skadnetworkConversionValueSchemaBuilder_ != null) { + skadnetworkConversionValueSchemaBuilder_.dispose(); + skadnetworkConversionValueSchemaBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + build() { + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest result = + new com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.skadnetworkConversionValueSchema_ = + skadnetworkConversionValueSchemaBuilder_ == null + ? skadnetworkConversionValueSchema_ + : skadnetworkConversionValueSchemaBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + .getDefaultInstance()) return this; + if (other.hasSkadnetworkConversionValueSchema()) { + mergeSkadnetworkConversionValueSchema(other.getSkadnetworkConversionValueSchema()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + skadnetworkConversionValueSchema_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + skadnetworkConversionValueSchemaBuilder_; + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + public boolean hasSkadnetworkConversionValueSchema() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skadnetworkConversionValueSchema. + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema() { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance() + : skadnetworkConversionValueSchema_; + } else { + return skadnetworkConversionValueSchemaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + skadnetworkConversionValueSchema_ = value; + } else { + skadnetworkConversionValueSchemaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + builderForValue) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + skadnetworkConversionValueSchema_ = builderForValue.build(); + } else { + skadnetworkConversionValueSchemaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSkadnetworkConversionValueSchema( + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && skadnetworkConversionValueSchema_ != null + && skadnetworkConversionValueSchema_ + != com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance()) { + getSkadnetworkConversionValueSchemaBuilder().mergeFrom(value); + } else { + skadnetworkConversionValueSchema_ = value; + } + } else { + skadnetworkConversionValueSchemaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSkadnetworkConversionValueSchema() { + bitField0_ = (bitField0_ & ~0x00000001); + skadnetworkConversionValueSchema_ = null; + if (skadnetworkConversionValueSchemaBuilder_ != null) { + skadnetworkConversionValueSchemaBuilder_.dispose(); + skadnetworkConversionValueSchemaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder + getSkadnetworkConversionValueSchemaBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder() { + if (skadnetworkConversionValueSchemaBuilder_ != null) { + return skadnetworkConversionValueSchemaBuilder_.getMessageOrBuilder(); + } else { + return skadnetworkConversionValueSchema_ == null + ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + .getDefaultInstance() + : skadnetworkConversionValueSchema_; + } + } + /** + * + * + *
+     * Required. SKAdNetwork conversion value schema to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> + getSkadnetworkConversionValueSchemaFieldBuilder() { + if (skadnetworkConversionValueSchemaBuilder_ == null) { + skadnetworkConversionValueSchemaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( + getSkadnetworkConversionValueSchema(), getParentForChildren(), isClean()); + skadnetworkConversionValueSchema_ = null; + } + return skadnetworkConversionValueSchemaBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) + private static final com.google.analytics.admin.v1alpha + .UpdateSKAdNetworkConversionValueSchemaRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSKAdNetworkConversionValueSchemaRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder.java new file mode 100644 index 000000000000..33f65219c73d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder.java @@ -0,0 +1,109 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the skadnetworkConversionValueSchema field is set. + */ + boolean hasSkadnetworkConversionValueSchema(); + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The skadnetworkConversionValueSchema. + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema + getSkadnetworkConversionValueSchema(); + /** + * + * + *
+   * Required. SKAdNetwork conversion value schema to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder + getSkadnetworkConversionValueSchemaOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequest.java new file mode 100644 index 000000000000..4965847d7671 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequest.java @@ -0,0 +1,1017 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateSearchAds360Link RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} + */ +public final class UpdateSearchAds360LinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) + UpdateSearchAds360LinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSearchAds360LinkRequest.newBuilder() to construct. + private UpdateSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSearchAds360LinkRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSearchAds360LinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.Builder.class); + } + + public static final int SEARCH_ADS_360_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; + /** + * + * + *
+   * The SearchAds360Link to update
+   * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * + * @return Whether the searchAds360Link field is set. + */ + @java.lang.Override + public boolean hasSearchAds360Link() { + return searchAds360Link_ != null; + } + /** + * + * + *
+   * The SearchAds360Link to update
+   * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * + * @return The searchAds360Link. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } + /** + * + * + *
+   * The SearchAds360Link to update
+   * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder + getSearchAds360LinkOrBuilder() { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (searchAds360Link_ != null) { + output.writeMessage(1, getSearchAds360Link()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (searchAds360Link_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSearchAds360Link()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateSearchAds360LinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest other = + (com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) obj; + + if (hasSearchAds360Link() != other.hasSearchAds360Link()) return false; + if (hasSearchAds360Link()) { + if (!getSearchAds360Link().equals(other.getSearchAds360Link())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasSearchAds360Link()) { + hash = (37 * hash) + SEARCH_ADS_360_LINK_FIELD_NUMBER; + hash = (53 * hash) + getSearchAds360Link().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateSearchAds360Link RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + searchAds360Link_ = null; + if (searchAds360LinkBuilder_ != null) { + searchAds360LinkBuilder_.dispose(); + searchAds360LinkBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest build() { + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest result = + new com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.searchAds360Link_ = + searchAds360LinkBuilder_ == null ? searchAds360Link_ : searchAds360LinkBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.getDefaultInstance()) + return this; + if (other.hasSearchAds360Link()) { + mergeSearchAds360Link(other.getSearchAds360Link()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSearchAds360LinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + searchAds360LinkBuilder_; + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * + * @return Whether the searchAds360Link field is set. + */ + public boolean hasSearchAds360Link() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * + * @return The searchAds360Link. + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { + if (searchAds360LinkBuilder_ == null) { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } else { + return searchAds360LinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + public Builder setSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchAds360Link_ = value; + } else { + searchAds360LinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + public Builder setSearchAds360Link( + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { + if (searchAds360LinkBuilder_ == null) { + searchAds360Link_ = builderForValue.build(); + } else { + searchAds360LinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + public Builder mergeSearchAds360Link( + com.google.analytics.admin.v1alpha.SearchAds360Link value) { + if (searchAds360LinkBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && searchAds360Link_ != null + && searchAds360Link_ + != com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) { + getSearchAds360LinkBuilder().mergeFrom(value); + } else { + searchAds360Link_ = value; + } + } else { + searchAds360LinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + public Builder clearSearchAds360Link() { + bitField0_ = (bitField0_ & ~0x00000001); + searchAds360Link_ = null; + if (searchAds360LinkBuilder_ != null) { + searchAds360LinkBuilder_.dispose(); + searchAds360LinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder + getSearchAds360LinkBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSearchAds360LinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder + getSearchAds360LinkOrBuilder() { + if (searchAds360LinkBuilder_ != null) { + return searchAds360LinkBuilder_.getMessageOrBuilder(); + } else { + return searchAds360Link_ == null + ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() + : searchAds360Link_; + } + } + /** + * + * + *
+     * The SearchAds360Link to update
+     * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> + getSearchAds360LinkFieldBuilder() { + if (searchAds360LinkBuilder_ == null) { + searchAds360LinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SearchAds360Link, + com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( + getSearchAds360Link(), getParentForChildren(), isClean()); + searchAds360Link_ = null; + } + return searchAds360LinkBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) + private static final com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSearchAds360LinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequestOrBuilder.java new file mode 100644 index 000000000000..cd7331211a3d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateSearchAds360LinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SearchAds360Link to update
+   * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * + * @return Whether the searchAds360Link field is set. + */ + boolean hasSearchAds360Link(); + /** + * + * + *
+   * The SearchAds360Link to update
+   * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + * + * @return The searchAds360Link. + */ + com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link(); + /** + * + * + *
+   * The SearchAds360Link to update
+   * 
+ * + * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; + */ + com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java new file mode 100644 index 000000000000..9876da44f3db --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java @@ -0,0 +1,1064 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateSubpropertyEventFilter RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest} + */ +public final class UpdateSubpropertyEventFilterRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + UpdateSubpropertyEventFilterRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateSubpropertyEventFilterRequest.newBuilder() to construct. + private UpdateSubpropertyEventFilterRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateSubpropertyEventFilterRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateSubpropertyEventFilterRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.Builder.class); + } + + public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + @java.lang.Override + public boolean hasSubpropertyEventFilter() { + return subpropertyEventFilter_ != null; + } + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (subpropertyEventFilter_ != null) { + output.writeMessage(1, getSubpropertyEventFilter()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (subpropertyEventFilter_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getSubpropertyEventFilter()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1alpha.UpdateSubpropertyEventFilterRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest other = + (com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) obj; + + if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; + if (hasSubpropertyEventFilter()) { + if (!getSubpropertyEventFilter().equals(other.getSubpropertyEventFilter())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasSubpropertyEventFilter()) { + hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateSubpropertyEventFilter RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.class, + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest build() { + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result = + new com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subpropertyEventFilter_ = + subpropertyEventFilterBuilder_ == null + ? subpropertyEventFilter_ + : subpropertyEventFilterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + .getDefaultInstance()) return this; + if (other.hasSubpropertyEventFilter()) { + mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSubpropertyEventFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + subpropertyEventFilterBuilder_; + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + public boolean hasSubpropertyEventFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { + if (subpropertyEventFilterBuilder_ == null) { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } else { + return subpropertyEventFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + subpropertyEventFilter_ = value; + } else { + subpropertyEventFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilter_ = builderForValue.build(); + } else { + subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeSubpropertyEventFilter( + com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { + if (subpropertyEventFilterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && subpropertyEventFilter_ != null + && subpropertyEventFilter_ + != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { + getSubpropertyEventFilterBuilder().mergeFrom(value); + } else { + subpropertyEventFilter_ = value; + } + } else { + subpropertyEventFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearSubpropertyEventFilter() { + bitField0_ = (bitField0_ & ~0x00000001); + subpropertyEventFilter_ = null; + if (subpropertyEventFilterBuilder_ != null) { + subpropertyEventFilterBuilder_.dispose(); + subpropertyEventFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder + getSubpropertyEventFilterBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSubpropertyEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder() { + if (subpropertyEventFilterBuilder_ != null) { + return subpropertyEventFilterBuilder_.getMessageOrBuilder(); + } else { + return subpropertyEventFilter_ == null + ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() + : subpropertyEventFilter_; + } + } + /** + * + * + *
+     * Required. The subproperty event filter to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> + getSubpropertyEventFilterFieldBuilder() { + if (subpropertyEventFilterBuilder_ == null) { + subpropertyEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.SubpropertyEventFilter, + com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( + getSubpropertyEventFilter(), getParentForChildren(), isClean()); + subpropertyEventFilter_ = null; + } + return subpropertyEventFilterBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to update. Field names must be in snake case
+     * (for example, "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + private static final com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateSubpropertyEventFilterRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java new file mode 100644 index 000000000000..9aac2a776f4f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * 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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateSubpropertyEventFilterRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the subpropertyEventFilter field is set. + */ + boolean hasSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The subpropertyEventFilter. + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); + /** + * + * + *
+   * Required. The subproperty event filter to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder + getSubpropertyEventFilterOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to update. Field names must be in snake case
+   * (for example, "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto rename to java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilter.java new file mode 100644 index 000000000000..7817af40a542 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilter.java @@ -0,0 +1,972 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * To express that the result needs to be between two numbers (inclusive).
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessBetweenFilter} + */ +public final class AccessBetweenFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessBetweenFilter) + AccessBetweenFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessBetweenFilter.newBuilder() to construct. + private AccessBetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessBetweenFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessBetweenFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessBetweenFilter.class, + com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder.class); + } + + public static final int FROM_VALUE_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.NumericValue fromValue_; + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + @java.lang.Override + public boolean hasFromValue() { + return fromValue_ != null; + } + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + * + * @return The fromValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValue getFromValue() { + return fromValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : fromValue_; + } + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValueOrBuilder getFromValueOrBuilder() { + return fromValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : fromValue_; + } + + public static final int TO_VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.NumericValue toValue_; + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + @java.lang.Override + public boolean hasToValue() { + return toValue_ != null; + } + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + * + * @return The toValue. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValue getToValue() { + return toValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : toValue_; + } + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValueOrBuilder getToValueOrBuilder() { + return toValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : toValue_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (fromValue_ != null) { + output.writeMessage(1, getFromValue()); + } + if (toValue_ != null) { + output.writeMessage(2, getToValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (fromValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFromValue()); + } + if (toValue_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); + } + size += 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.admin.v1beta.AccessBetweenFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessBetweenFilter other = + (com.google.analytics.admin.v1beta.AccessBetweenFilter) obj; + + if (hasFromValue() != other.hasFromValue()) return false; + if (hasFromValue()) { + if (!getFromValue().equals(other.getFromValue())) return false; + } + if (hasToValue() != other.hasToValue()) return false; + if (hasToValue()) { + if (!getToValue().equals(other.getToValue())) return false; + } + if (!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 (hasFromValue()) { + hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getFromValue().hashCode(); + } + if (hasToValue()) { + hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getToValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessBetweenFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * To express that the result needs to be between two numbers (inclusive).
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessBetweenFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessBetweenFilter) + com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessBetweenFilter.class, + com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessBetweenFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + fromValue_ = null; + if (fromValueBuilder_ != null) { + fromValueBuilder_.dispose(); + fromValueBuilder_ = null; + } + toValue_ = null; + if (toValueBuilder_ != null) { + toValueBuilder_.dispose(); + toValueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilter build() { + com.google.analytics.admin.v1beta.AccessBetweenFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilter buildPartial() { + com.google.analytics.admin.v1beta.AccessBetweenFilter result = + new com.google.analytics.admin.v1beta.AccessBetweenFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessBetweenFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.fromValue_ = fromValueBuilder_ == null ? fromValue_ : fromValueBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.toValue_ = toValueBuilder_ == null ? toValue_ : toValueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessBetweenFilter) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessBetweenFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessBetweenFilter other) { + if (other == com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance()) + return this; + if (other.hasFromValue()) { + mergeFromValue(other.getFromValue()); + } + if (other.hasToValue()) { + mergeToValue(other.getToValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.NumericValue fromValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder> + fromValueBuilder_; + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + public boolean hasFromValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + * + * @return The fromValue. + */ + public com.google.analytics.admin.v1beta.NumericValue getFromValue() { + if (fromValueBuilder_ == null) { + return fromValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : fromValue_; + } else { + return fromValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + public Builder setFromValue(com.google.analytics.admin.v1beta.NumericValue value) { + if (fromValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fromValue_ = value; + } else { + fromValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + public Builder setFromValue( + com.google.analytics.admin.v1beta.NumericValue.Builder builderForValue) { + if (fromValueBuilder_ == null) { + fromValue_ = builderForValue.build(); + } else { + fromValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + public Builder mergeFromValue(com.google.analytics.admin.v1beta.NumericValue value) { + if (fromValueBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && fromValue_ != null + && fromValue_ != com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) { + getFromValueBuilder().mergeFrom(value); + } else { + fromValue_ = value; + } + } else { + fromValueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + public Builder clearFromValue() { + bitField0_ = (bitField0_ & ~0x00000001); + fromValue_ = null; + if (fromValueBuilder_ != null) { + fromValueBuilder_.dispose(); + fromValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + public com.google.analytics.admin.v1beta.NumericValue.Builder getFromValueBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getFromValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + public com.google.analytics.admin.v1beta.NumericValueOrBuilder getFromValueOrBuilder() { + if (fromValueBuilder_ != null) { + return fromValueBuilder_.getMessageOrBuilder(); + } else { + return fromValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : fromValue_; + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder> + getFromValueFieldBuilder() { + if (fromValueBuilder_ == null) { + fromValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder>( + getFromValue(), getParentForChildren(), isClean()); + fromValue_ = null; + } + return fromValueBuilder_; + } + + private com.google.analytics.admin.v1beta.NumericValue toValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder> + toValueBuilder_; + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + public boolean hasToValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + * + * @return The toValue. + */ + public com.google.analytics.admin.v1beta.NumericValue getToValue() { + if (toValueBuilder_ == null) { + return toValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : toValue_; + } else { + return toValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + public Builder setToValue(com.google.analytics.admin.v1beta.NumericValue value) { + if (toValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toValue_ = value; + } else { + toValueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + public Builder setToValue( + com.google.analytics.admin.v1beta.NumericValue.Builder builderForValue) { + if (toValueBuilder_ == null) { + toValue_ = builderForValue.build(); + } else { + toValueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + public Builder mergeToValue(com.google.analytics.admin.v1beta.NumericValue value) { + if (toValueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && toValue_ != null + && toValue_ != com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) { + getToValueBuilder().mergeFrom(value); + } else { + toValue_ = value; + } + } else { + toValueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + public Builder clearToValue() { + bitField0_ = (bitField0_ & ~0x00000002); + toValue_ = null; + if (toValueBuilder_ != null) { + toValueBuilder_.dispose(); + toValueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + public com.google.analytics.admin.v1beta.NumericValue.Builder getToValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getToValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + public com.google.analytics.admin.v1beta.NumericValueOrBuilder getToValueOrBuilder() { + if (toValueBuilder_ != null) { + return toValueBuilder_.getMessageOrBuilder(); + } else { + return toValue_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : toValue_; + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder> + getToValueFieldBuilder() { + if (toValueBuilder_ == null) { + toValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder>( + getToValue(), getParentForChildren(), isClean()); + toValue_ = null; + } + return toValueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessBetweenFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessBetweenFilter) + private static final com.google.analytics.admin.v1beta.AccessBetweenFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessBetweenFilter(); + } + + public static com.google.analytics.admin.v1beta.AccessBetweenFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessBetweenFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilterOrBuilder.java new file mode 100644 index 000000000000..47cf989c4c75 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilterOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessBetweenFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessBetweenFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + boolean hasFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + * + * @return The fromValue. + */ + com.google.analytics.admin.v1beta.NumericValue getFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue from_value = 1; + */ + com.google.analytics.admin.v1beta.NumericValueOrBuilder getFromValueOrBuilder(); + + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + boolean hasToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + * + * @return The toValue. + */ + com.google.analytics.admin.v1beta.NumericValue getToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue to_value = 2; + */ + com.google.analytics.admin.v1beta.NumericValueOrBuilder getToValueOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRange.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRange.java new file mode 100644 index 000000000000..a4ba8e8cfce3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRange.java @@ -0,0 +1,848 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A contiguous range of days: startDate, startDate + 1, ..., endDate.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDateRange} + */ +public final class AccessDateRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDateRange) + AccessDateRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDateRange.newBuilder() to construct. + private AccessDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDateRange() { + startDate_ = ""; + endDate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDateRange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDateRange.class, + com.google.analytics.admin.v1beta.AccessDateRange.Builder.class); + } + + public static final int START_DATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object startDate_ = ""; + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + @java.lang.Override + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startDate_ = s; + return s; + } + } + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int END_DATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object endDate_ = ""; + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + @java.lang.Override + public java.lang.String getEndDate() { + java.lang.Object ref = endDate_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endDate_ = s; + return s; + } + } + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEndDateBytes() { + java.lang.Object ref = endDate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); + } + 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(startDate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); + } + size += 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.admin.v1beta.AccessDateRange)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessDateRange other = + (com.google.analytics.admin.v1beta.AccessDateRange) obj; + + if (!getStartDate().equals(other.getStartDate())) return false; + if (!getEndDate().equals(other.getEndDate())) 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) + START_DATE_FIELD_NUMBER; + hash = (53 * hash) + getStartDate().hashCode(); + hash = (37 * hash) + END_DATE_FIELD_NUMBER; + hash = (53 * hash) + getEndDate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessDateRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A contiguous range of days: startDate, startDate + 1, ..., endDate.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDateRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDateRange) + com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDateRange.class, + com.google.analytics.admin.v1beta.AccessDateRange.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessDateRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startDate_ = ""; + endDate_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDateRange getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDateRange build() { + com.google.analytics.admin.v1beta.AccessDateRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDateRange buildPartial() { + com.google.analytics.admin.v1beta.AccessDateRange result = + new com.google.analytics.admin.v1beta.AccessDateRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessDateRange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startDate_ = startDate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endDate_ = endDate_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessDateRange) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessDateRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDateRange other) { + if (other == com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance()) + return this; + if (!other.getStartDate().isEmpty()) { + startDate_ = other.startDate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEndDate().isEmpty()) { + endDate_ = other.endDate_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + startDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + endDate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object startDate_ = ""; + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + public java.lang.String getStartDate() { + java.lang.Object ref = startDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + startDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + public com.google.protobuf.ByteString getStartDateBytes() { + java.lang.Object ref = startDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + startDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @param value The startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + startDate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartDate() { + startDate_ = getDefaultInstance().getStartDate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+     * accepted, and in that case, the date is inferred based on the current time
+     * in the request's time zone.
+     * 
+ * + * string start_date = 1; + * + * @param value The bytes for startDate to set. + * @return This builder for chaining. + */ + public Builder setStartDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + startDate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object endDate_ = ""; + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + public java.lang.String getEndDate() { + java.lang.Object ref = endDate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + endDate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + public com.google.protobuf.ByteString getEndDateBytes() { + java.lang.Object ref = endDate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + endDate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @param value The endDate to set. + * @return This builder for chaining. + */ + public Builder setEndDate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + endDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndDate() { + endDate_ = getDefaultInstance().getEndDate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+     * also accepted, and in that case, the date is inferred based on the current
+     * time in the request's time zone.
+     * 
+ * + * string end_date = 2; + * + * @param value The bytes for endDate to set. + * @return This builder for chaining. + */ + public Builder setEndDateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endDate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessDateRange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDateRange) + private static final com.google.analytics.admin.v1beta.AccessDateRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDateRange(); + } + + public static com.google.analytics.admin.v1beta.AccessDateRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDateRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDateRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRangeOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRangeOrBuilder.java new file mode 100644 index 000000000000..0f125645496f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRangeOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessDateRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDateRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The startDate. + */ + java.lang.String getStartDate(); + /** + * + * + *
+   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
+   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
+   * accepted, and in that case, the date is inferred based on the current time
+   * in the request's time zone.
+   * 
+ * + * string start_date = 1; + * + * @return The bytes for startDate. + */ + com.google.protobuf.ByteString getStartDateBytes(); + + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The endDate. + */ + java.lang.String getEndDate(); + /** + * + * + *
+   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
+   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
+   * also accepted, and in that case, the date is inferred based on the current
+   * time in the request's time zone.
+   * 
+ * + * string end_date = 2; + * + * @return The bytes for endDate. + */ + com.google.protobuf.ByteString getEndDateBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimension.java new file mode 100644 index 000000000000..6397151d49bc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimension.java @@ -0,0 +1,656 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Dimensions are attributes of your data. For example, the dimension
+ * `userEmail` indicates the email of the user that accessed reporting data.
+ * Dimension values in report responses are strings.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDimension} + */ +public final class AccessDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDimension) + AccessDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimension.newBuilder() to construct. + private AccessDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimension() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimension(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDimension.class, + com.google.analytics.admin.v1beta.AccessDimension.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimensionName_ = ""; + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + 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.admin.v1beta.AccessDimension)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessDimension other = + (com.google.analytics.admin.v1beta.AccessDimension) 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.admin.v1beta.AccessDimension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessDimension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Dimensions are attributes of your data. For example, the dimension
+   * `userEmail` indicates the email of the user that accessed reporting data.
+   * Dimension values in report responses are strings.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDimension) + com.google.analytics.admin.v1beta.AccessDimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDimension.class, + com.google.analytics.admin.v1beta.AccessDimension.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessDimension.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dimensionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimension getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimension build() { + com.google.analytics.admin.v1beta.AccessDimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimension buildPartial() { + com.google.analytics.admin.v1beta.AccessDimension result = + new com.google.analytics.admin.v1beta.AccessDimension(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessDimension result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimensionName_ = dimensionName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessDimension) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessDimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDimension other) { + if (other == com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance()) + return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + dimensionName_ = getDefaultInstance().getDimensionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the dimension. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of dimensions supported in this API.
+     *
+     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dimensionName_ = value; + 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.admin.v1beta.AccessDimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDimension) + private static final com.google.analytics.admin.v1beta.AccessDimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDimension(); + } + + public static com.google.analytics.admin.v1beta.AccessDimension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeader.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeader.java new file mode 100644 index 000000000000..4911d55f8de8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeader.java @@ -0,0 +1,631 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Describes a dimension column in the report. Dimensions requested in a report
+ * produce column entries within rows and DimensionHeaders. However, dimensions
+ * used exclusively within filters or expressions do not produce columns in a
+ * report; correspondingly, those dimensions do not produce headers.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionHeader} + */ +public final class AccessDimensionHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDimensionHeader) + AccessDimensionHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimensionHeader.newBuilder() to construct. + private AccessDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimensionHeader() { + dimensionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimensionHeader(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDimensionHeader.class, + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder.class); + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimensionName_ = ""; + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + 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.admin.v1beta.AccessDimensionHeader)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessDimensionHeader other = + (com.google.analytics.admin.v1beta.AccessDimensionHeader) 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.admin.v1beta.AccessDimensionHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessDimensionHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes a dimension column in the report. Dimensions requested in a report
+   * produce column entries within rows and DimensionHeaders. However, dimensions
+   * used exclusively within filters or expressions do not produce columns in a
+   * report; correspondingly, those dimensions do not produce headers.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDimensionHeader) + com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDimensionHeader.class, + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessDimensionHeader.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dimensionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionHeader getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionHeader build() { + com.google.analytics.admin.v1beta.AccessDimensionHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionHeader buildPartial() { + com.google.analytics.admin.v1beta.AccessDimensionHeader result = + new com.google.analytics.admin.v1beta.AccessDimensionHeader(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessDimensionHeader result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimensionName_ = dimensionName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessDimensionHeader) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessDimensionHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDimensionHeader other) { + if (other == com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance()) + return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + dimensionName_ = getDefaultInstance().getDimensionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension's name; for example 'userEmail'.
+     * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dimensionName_ = value; + 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.admin.v1beta.AccessDimensionHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDimensionHeader) + private static final com.google.analytics.admin.v1beta.AccessDimensionHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDimensionHeader(); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimensionHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeaderOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeaderOrBuilder.java new file mode 100644 index 000000000000..ad640052e013 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeaderOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessDimensionHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDimensionHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+   * The dimension's name; for example 'userEmail'.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionOrBuilder.java new file mode 100644 index 000000000000..6125be1ef288 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessDimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDimension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+   * The API name of the dimension. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of dimensions supported in this API.
+   *
+   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
+   * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValue.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValue.java new file mode 100644 index 000000000000..fc2f593982fa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValue.java @@ -0,0 +1,632 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The value of a dimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionValue} + */ +public final class AccessDimensionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDimensionValue) + AccessDimensionValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessDimensionValue.newBuilder() to construct. + private AccessDimensionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessDimensionValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessDimensionValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDimensionValue.class, + com.google.analytics.admin.v1beta.AccessDimensionValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + 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(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + 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.admin.v1beta.AccessDimensionValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessDimensionValue other = + (com.google.analytics.admin.v1beta.AccessDimensionValue) obj; + + if (!getValue().equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessDimensionValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The value of a dimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDimensionValue) + com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessDimensionValue.class, + com.google.analytics.admin.v1beta.AccessDimensionValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessDimensionValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionValue build() { + com.google.analytics.admin.v1beta.AccessDimensionValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionValue buildPartial() { + com.google.analytics.admin.v1beta.AccessDimensionValue result = + new com.google.analytics.admin.v1beta.AccessDimensionValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessDimensionValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessDimensionValue) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessDimensionValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDimensionValue other) { + if (other == com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension value. For example, this value may be 'France' for the
+     * 'country' dimension.
+     * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + 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.admin.v1beta.AccessDimensionValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDimensionValue) + private static final com.google.analytics.admin.v1beta.AccessDimensionValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDimensionValue(); + } + + public static com.google.analytics.admin.v1beta.AccessDimensionValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessDimensionValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValueOrBuilder.java new file mode 100644 index 000000000000..334ce9c753b2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValueOrBuilder.java @@ -0,0 +1,52 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessDimensionValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDimensionValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The dimension value. For example, this value may be 'France' for the
+   * 'country' dimension.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilter.java new file mode 100644 index 000000000000..d6c4bba49428 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilter.java @@ -0,0 +1,1893 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * An expression to filter dimension or metric values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessFilter} + */ +public final class AccessFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessFilter) + AccessFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilter.newBuilder() to construct. + private AccessFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessFilter.class, + com.google.analytics.admin.v1beta.AccessFilter.Builder.class); + } + + private int oneFilterCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneFilter_; + + public enum OneFilterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STRING_FILTER(2), + IN_LIST_FILTER(3), + NUMERIC_FILTER(4), + BETWEEN_FILTER(5), + ONEFILTER_NOT_SET(0); + private final int value; + + private OneFilterCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneFilterCase valueOf(int value) { + return forNumber(value); + } + + public static OneFilterCase forNumber(int value) { + switch (value) { + case 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 4: + return NUMERIC_FILTER; + case 5: + return BETWEEN_FILTER; + case 0: + return ONEFILTER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public static final int STRING_FILTER_FIELD_NUMBER = 2; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter getStringFilter() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilter getInListFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter getNumericFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder + getNumericFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); + } + + public static final int FIELD_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); + } + if (oneFilterCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_); + } + 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(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); + } + if (oneFilterCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_); + } + 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.admin.v1beta.AccessFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessFilter other = + (com.google.analytics.admin.v1beta.AccessFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 4: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 5: + if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; + break; + case 0: + default: + } + if (!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) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + switch (oneFilterCase_) { + case 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getBetweenFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * An expression to filter dimension or metric values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessFilter) + com.google.analytics.admin.v1beta.AccessFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessFilter.class, + com.google.analytics.admin.v1beta.AccessFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } + fieldName_ = ""; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilter build() { + com.google.analytics.admin.v1beta.AccessFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilter buildPartial() { + com.google.analytics.admin.v1beta.AccessFilter result = + new com.google.analytics.admin.v1beta.AccessFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.fieldName_ = fieldName_; + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1beta.AccessFilter result) { + result.oneFilterCase_ = oneFilterCase_; + result.oneFilter_ = this.oneFilter_; + if (oneFilterCase_ == 2 && stringFilterBuilder_ != null) { + result.oneFilter_ = stringFilterBuilder_.build(); + } + if (oneFilterCase_ == 3 && inListFilterBuilder_ != null) { + result.oneFilter_ = inListFilterBuilder_.build(); + } + if (oneFilterCase_ == 4 && numericFilterBuilder_ != null) { + result.oneFilter_ = numericFilterBuilder_.build(); + } + if (oneFilterCase_ == 5 && betweenFilterBuilder_ != null) { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessFilter) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessFilter other) { + if (other == com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance()) return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + bitField0_ |= 0x00000010; + onChanged(); + } + switch (other.getOneFilterCase()) { + case STRING_FILTER: + { + mergeStringFilter(other.getStringFilter()); + break; + } + case IN_LIST_FILTER: + { + mergeInListFilter(other.getInListFilter()); + break; + } + case NUMERIC_FILTER: + { + mergeNumericFilter(other.getNumericFilter()); + break; + } + case BETWEEN_FILTER: + { + mergeBetweenFilter(other.getBetweenFilter()); + break; + } + case ONEFILTER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 10 + case 18: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneFilterCase_ = 0; + private java.lang.Object oneFilter_; + + public OneFilterCase getOneFilterCase() { + return OneFilterCase.forNumber(oneFilterCase_); + } + + public Builder clearOneFilter() { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessStringFilter, + com.google.analytics.admin.v1beta.AccessStringFilter.Builder, + com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + public Builder setStringFilter(com.google.analytics.admin.v1beta.AccessStringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + public Builder setStringFilter( + com.google.analytics.admin.v1beta.AccessStringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + public Builder mergeStringFilter(com.google.analytics.admin.v1beta.AccessStringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2 + && oneFilter_ + != com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1beta.AccessStringFilter.newBuilder( + (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + public com.google.analytics.admin.v1beta.AccessStringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder + getStringFilterOrBuilder() { + if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessStringFilter, + com.google.analytics.admin.v1beta.AccessStringFilter.Builder, + com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 2)) { + oneFilter_ = com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessStringFilter, + com.google.analytics.admin.v1beta.AccessStringFilter.Builder, + com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder>( + (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 2; + onChanged(); + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessInListFilter, + com.google.analytics.admin.v1beta.AccessInListFilter.Builder, + com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + public Builder setInListFilter(com.google.analytics.admin.v1beta.AccessInListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + public Builder setInListFilter( + com.google.analytics.admin.v1beta.AccessInListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + public Builder mergeInListFilter(com.google.analytics.admin.v1beta.AccessInListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ + != com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1beta.AccessInListFilter.newBuilder( + (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + public com.google.analytics.admin.v1beta.AccessInListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder + getInListFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessInListFilter, + com.google.analytics.admin.v1beta.AccessInListFilter.Builder, + com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessInListFilter, + com.google.analytics.admin.v1beta.AccessInListFilter.Builder, + com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder>( + (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessNumericFilter, + com.google.analytics.admin.v1beta.AccessNumericFilter.Builder, + com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter(com.google.analytics.admin.v1beta.AccessNumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter( + com.google.analytics.admin.v1beta.AccessNumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + public Builder mergeNumericFilter(com.google.analytics.admin.v1beta.AccessNumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ + != com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1beta.AccessNumericFilter.newBuilder( + (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + public com.google.analytics.admin.v1beta.AccessNumericFilter.Builder getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder + getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessNumericFilter, + com.google.analytics.admin.v1beta.AccessNumericFilter.Builder, + com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessNumericFilter, + com.google.analytics.admin.v1beta.AccessNumericFilter.Builder, + com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder>( + (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessBetweenFilter, + com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter(com.google.analytics.admin.v1beta.AccessBetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter( + com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + public Builder mergeBetweenFilter(com.google.analytics.admin.v1beta.AccessBetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ + != com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.admin.v1beta.AccessBetweenFilter.newBuilder( + (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + public com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder + getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; + } + return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for two values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessBetweenFilter, + com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessBetweenFilter, + com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder, + com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder>( + (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + return betweenFilterBuilder_; + } + + private java.lang.Object fieldName_ = ""; + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fieldName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * string field_name = 1; + * + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessFilter) + private static final com.google.analytics.admin.v1beta.AccessFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessFilter(); + } + + public static com.google.analytics.admin.v1beta.AccessFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpression.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpression.java new file mode 100644 index 000000000000..5dc2160ece76 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpression.java @@ -0,0 +1,1742 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Expresses dimension or metric filters. The fields in the same expression need
+ * to be either all dimensions or all metrics.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpression} + */ +public final class AccessFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessFilterExpression) + AccessFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilterExpression.newBuilder() to construct. + private AccessFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilterExpression(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessFilterExpression.class, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder.class); + } + + private int oneExpressionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneExpression_; + + public enum OneExpressionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + AND_GROUP(1), + OR_GROUP(2), + NOT_EXPRESSION(3), + ACCESS_FILTER(4), + ONEEXPRESSION_NOT_SET(0); + private final int value; + + private OneExpressionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneExpressionCase valueOf(int value) { + return forNumber(value); + } + + public static OneExpressionCase forNumber(int value) { + switch (value) { + case 1: + return AND_GROUP; + case 2: + return OR_GROUP; + case 3: + return NOT_EXPRESSION; + case 4: + return ACCESS_FILTER; + case 0: + return ONEEXPRESSION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneExpressionCase getOneExpressionCase() { + return OneExpressionCase.forNumber(oneExpressionCase_); + } + + public static final int AND_GROUP_FIELD_NUMBER = 1; + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return oneExpressionCase_ == 1; + } + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList getAndGroup() { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return oneExpressionCase_ == 2; + } + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList getOrGroup() { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return oneExpressionCase_ == 3; + } + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression getNotExpression() { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); + } + + public static final int ACCESS_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + @java.lang.Override + public boolean hasAccessFilter() { + return oneExpressionCase_ == 4; + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilter getAccessFilter() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterOrBuilder getAccessFilterOrBuilder() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneExpressionCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_); + } + if (oneExpressionCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneExpressionCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); + } + if (oneExpressionCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_); + } + if (oneExpressionCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_); + } + 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.admin.v1beta.AccessFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessFilterExpression other = + (com.google.analytics.admin.v1beta.AccessFilterExpression) obj; + + if (!getOneExpressionCase().equals(other.getOneExpressionCase())) return false; + switch (oneExpressionCase_) { + case 1: + if (!getAndGroup().equals(other.getAndGroup())) return false; + break; + case 2: + if (!getOrGroup().equals(other.getOrGroup())) return false; + break; + case 3: + if (!getNotExpression().equals(other.getNotExpression())) return false; + break; + case 4: + if (!getAccessFilter().equals(other.getAccessFilter())) return false; + break; + case 0: + default: + } + if (!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 (oneExpressionCase_) { + case 1: + hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getAndGroup().hashCode(); + break; + case 2: + hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; + hash = (53 * hash) + getOrGroup().hashCode(); + break; + case 3: + hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getNotExpression().hashCode(); + break; + case 4: + hash = (37 * hash) + ACCESS_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getAccessFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Expresses dimension or metric filters. The fields in the same expression need
+   * to be either all dimensions or all metrics.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessFilterExpression) + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessFilterExpression.class, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessFilterExpression.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (accessFilterBuilder_ != null) { + accessFilterBuilder_.clear(); + } + oneExpressionCase_ = 0; + oneExpression_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression build() { + com.google.analytics.admin.v1beta.AccessFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression buildPartial() { + com.google.analytics.admin.v1beta.AccessFilterExpression result = + new com.google.analytics.admin.v1beta.AccessFilterExpression(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessFilterExpression result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1beta.AccessFilterExpression result) { + result.oneExpressionCase_ = oneExpressionCase_; + result.oneExpression_ = this.oneExpression_; + if (oneExpressionCase_ == 1 && andGroupBuilder_ != null) { + result.oneExpression_ = andGroupBuilder_.build(); + } + if (oneExpressionCase_ == 2 && orGroupBuilder_ != null) { + result.oneExpression_ = orGroupBuilder_.build(); + } + if (oneExpressionCase_ == 3 && notExpressionBuilder_ != null) { + result.oneExpression_ = notExpressionBuilder_.build(); + } + if (oneExpressionCase_ == 4 && accessFilterBuilder_ != null) { + result.oneExpression_ = accessFilterBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessFilterExpression) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessFilterExpression other) { + if (other == com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) + return this; + switch (other.getOneExpressionCase()) { + case AND_GROUP: + { + mergeAndGroup(other.getAndGroup()); + break; + } + case OR_GROUP: + { + mergeOrGroup(other.getOrGroup()); + break; + } + case NOT_EXPRESSION: + { + mergeNotExpression(other.getNotExpression()); + break; + } + case ACCESS_FILTER: + { + mergeAccessFilter(other.getAccessFilter()); + break; + } + case ONEEXPRESSION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getAccessFilterFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneExpressionCase_ = 0; + private java.lang.Object oneExpression_; + + public OneExpressionCase getOneExpressionCase() { + return OneExpressionCase.forNumber(oneExpressionCase_); + } + + public Builder clearOneExpression() { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpressionList, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return oneExpressionCase_ == 1; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + public Builder setAndGroup(com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder builderForValue) { + if (andGroupBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1 + && oneExpression_ + != com.google.analytics.admin.v1beta.AccessFilterExpressionList + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1beta.AccessFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 1; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + public Builder clearAndGroup() { + if (andGroupBuilder_ == null) { + if (oneExpressionCase_ == 1) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 1) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + andGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((oneExpressionCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the and_group has an AND relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpressionList, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(oneExpressionCase_ == 1)) { + oneExpression_ = + com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpressionList, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 1; + onChanged(); + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpressionList, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return oneExpressionCase_ == 2; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + public Builder setOrGroup(com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder builderForValue) { + if (orGroupBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2 + && oneExpression_ + != com.google.analytics.admin.v1beta.AccessFilterExpressionList + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1beta.AccessFilterExpressionList.newBuilder( + (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 2; + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + public Builder clearOrGroup() { + if (orGroupBuilder_ == null) { + if (oneExpressionCase_ == 2) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 2) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + orGroupBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((oneExpressionCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * Each of the FilterExpressions in the or_group has an OR relationship.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpressionList, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(oneExpressionCase_ == 2)) { + oneExpression_ = + com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpressionList, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder>( + (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 2; + onChanged(); + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return oneExpressionCase_ == 3; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3 + && oneExpression_ + != com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1beta.AccessFilterExpression.newBuilder( + (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + public Builder clearNotExpression() { + if (notExpressionBuilder_ == null) { + if (oneExpressionCase_ == 3) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 3) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + notExpressionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((oneExpressionCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 3) { + return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(oneExpressionCase_ == 3)) { + oneExpression_ = + com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( + (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 3; + onChanged(); + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilter, + com.google.analytics.admin.v1beta.AccessFilter.Builder, + com.google.analytics.admin.v1beta.AccessFilterOrBuilder> + accessFilterBuilder_; + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + @java.lang.Override + public boolean hasAccessFilter() { + return oneExpressionCase_ == 4; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilter getAccessFilter() { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); + } else { + if (oneExpressionCase_ == 4) { + return accessFilterBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + public Builder setAccessFilter(com.google.analytics.admin.v1beta.AccessFilter value) { + if (accessFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneExpression_ = value; + onChanged(); + } else { + accessFilterBuilder_.setMessage(value); + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + public Builder setAccessFilter( + com.google.analytics.admin.v1beta.AccessFilter.Builder builderForValue) { + if (accessFilterBuilder_ == null) { + oneExpression_ = builderForValue.build(); + onChanged(); + } else { + accessFilterBuilder_.setMessage(builderForValue.build()); + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + public Builder mergeAccessFilter(com.google.analytics.admin.v1beta.AccessFilter value) { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4 + && oneExpression_ + != com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance()) { + oneExpression_ = + com.google.analytics.admin.v1beta.AccessFilter.newBuilder( + (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 4) { + accessFilterBuilder_.mergeFrom(value); + } else { + accessFilterBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + public Builder clearAccessFilter() { + if (accessFilterBuilder_ == null) { + if (oneExpressionCase_ == 4) { + oneExpressionCase_ = 0; + oneExpression_ = null; + onChanged(); + } + } else { + if (oneExpressionCase_ == 4) { + oneExpressionCase_ = 0; + oneExpression_ = null; + } + accessFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + public com.google.analytics.admin.v1beta.AccessFilter.Builder getAccessFilterBuilder() { + return getAccessFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterOrBuilder getAccessFilterOrBuilder() { + if ((oneExpressionCase_ == 4) && (accessFilterBuilder_ != null)) { + return accessFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; + } + return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilter, + com.google.analytics.admin.v1beta.AccessFilter.Builder, + com.google.analytics.admin.v1beta.AccessFilterOrBuilder> + getAccessFilterFieldBuilder() { + if (accessFilterBuilder_ == null) { + if (!(oneExpressionCase_ == 4)) { + oneExpression_ = com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); + } + accessFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilter, + com.google.analytics.admin.v1beta.AccessFilter.Builder, + com.google.analytics.admin.v1beta.AccessFilterOrBuilder>( + (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 4; + onChanged(); + return accessFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessFilterExpression) + private static final com.google.analytics.admin.v1beta.AccessFilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessFilterExpression(); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionList.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionList.java new file mode 100644 index 000000000000..44dfcc7c0ff7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionList.java @@ -0,0 +1,959 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A list of filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpressionList} + */ +public final class AccessFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessFilterExpressionList) + AccessFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessFilterExpressionList.newBuilder() to construct. + private AccessFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessFilterExpressionList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessFilterExpressionList.class, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List expressions_; + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( + int index) { + return expressions_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < expressions_.size(); i++) { + output.writeMessage(1, expressions_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < expressions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); + } + size += 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.admin.v1beta.AccessFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessFilterExpressionList other = + (com.google.analytics.admin.v1beta.AccessFilterExpressionList) obj; + + if (!getExpressionsList().equals(other.getExpressionsList())) 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 (getExpressionsCount() > 0) { + hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExpressionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessFilterExpressionList) + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessFilterExpressionList.class, + com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessFilterExpressionList.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + } else { + expressions_ = null; + expressionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList build() { + com.google.analytics.admin.v1beta.AccessFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList buildPartial() { + com.google.analytics.admin.v1beta.AccessFilterExpressionList result = + new com.google.analytics.admin.v1beta.AccessFilterExpressionList(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.AccessFilterExpressionList result) { + if (expressionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + expressions_ = java.util.Collections.unmodifiableList(expressions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.expressions_ = expressions_; + } else { + result.expressions_ = expressionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.AccessFilterExpressionList result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessFilterExpressionList) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessFilterExpressionList other) { + if (other + == com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance()) + return this; + if (expressionsBuilder_ == null) { + if (!other.expressions_.isEmpty()) { + if (expressions_.isEmpty()) { + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureExpressionsIsMutable(); + expressions_.addAll(other.expressions_); + } + onChanged(); + } + } else { + if (!other.expressions_.isEmpty()) { + if (expressionsBuilder_.isEmpty()) { + expressionsBuilder_.dispose(); + expressionsBuilder_ = null; + expressions_ = other.expressions_; + bitField0_ = (bitField0_ & ~0x00000001); + expressionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getExpressionsFieldBuilder() + : null; + } else { + expressionsBuilder_.addAllMessages(other.expressions_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.AccessFilterExpression m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessFilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List expressions_ = + java.util.Collections.emptyList(); + + private void ensureExpressionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + expressions_ = + new java.util.ArrayList( + expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions(com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder addAllExpressions( + java.lang.Iterable + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder getExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public java.util.List< + ? extends com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder addExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( + expressions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + expressions_ = null; + } + return expressionsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessFilterExpressionList) + private static final com.google.analytics.admin.v1beta.AccessFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessFilterExpressionList(); + } + + public static com.google.analytics.admin.v1beta.AccessFilterExpressionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionListOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionListOrBuilder.java new file mode 100644 index 000000000000..fc0df6c1664f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionListOrBuilder.java @@ -0,0 +1,78 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + java.util.List getExpressionsList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + com.google.analytics.admin.v1beta.AccessFilterExpression getExpressions(int index); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + int getExpressionsCount(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + java.util.List + getExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionOrBuilder.java new file mode 100644 index 000000000000..38b8cebd94f9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionOrBuilder.java @@ -0,0 +1,170 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionList getAndGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the and_group has an AND relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder(); + + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionList getOrGroup(); + /** + * + * + *
+   * Each of the FilterExpressions in the or_group has an OR relationship.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder(); + + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.admin.v1beta.AccessFilterExpression getNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * + * @return Whether the accessFilter field is set. + */ + boolean hasAccessFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + * + * @return The accessFilter. + */ + com.google.analytics.admin.v1beta.AccessFilter getAccessFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; + */ + com.google.analytics.admin.v1beta.AccessFilterOrBuilder getAccessFilterOrBuilder(); + + com.google.analytics.admin.v1beta.AccessFilterExpression.OneExpressionCase getOneExpressionCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterOrBuilder.java new file mode 100644 index 000000000000..91059efca408 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterOrBuilder.java @@ -0,0 +1,192 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + * + * @return The stringFilter. + */ + com.google.analytics.admin.v1beta.AccessStringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; + */ + com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + com.google.analytics.admin.v1beta.AccessInListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; + */ + com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + com.google.analytics.admin.v1beta.AccessNumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; + */ + com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + com.google.analytics.admin.v1beta.AccessBetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for two values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; + */ + com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + com.google.analytics.admin.v1beta.AccessFilter.OneFilterCase getOneFilterCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilter.java new file mode 100644 index 000000000000..d8d591c0d7ab --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilter.java @@ -0,0 +1,812 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The result needs to be in a list of string values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessInListFilter} + */ +public final class AccessInListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessInListFilter) + AccessInListFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessInListFilter.newBuilder() to construct. + private AccessInListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessInListFilter() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessInListFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessInListFilter.class, + com.google.analytics.admin.v1beta.AccessInListFilter.Builder.class); + } + + public static final int VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + return values_; + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; + private boolean caseSensitive_ = false; + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < values_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); + } + if (caseSensitive_ != false) { + output.writeBool(2, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < values_.size(); i++) { + dataSize += computeStringSizeNoTag(values_.getRaw(i)); + } + size += dataSize; + size += 1 * getValuesList().size(); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); + } + size += 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.admin.v1beta.AccessInListFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessInListFilter other = + (com.google.analytics.admin.v1beta.AccessInListFilter) obj; + + if (!getValuesList().equals(other.getValuesList())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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 (getValuesCount() > 0) { + hash = (37 * hash) + VALUES_FIELD_NUMBER; + hash = (53 * hash) + getValuesList().hashCode(); + } + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessInListFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The result needs to be in a list of string values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessInListFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessInListFilter) + com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessInListFilter.class, + com.google.analytics.admin.v1beta.AccessInListFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessInListFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilter build() { + com.google.analytics.admin.v1beta.AccessInListFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilter buildPartial() { + com.google.analytics.admin.v1beta.AccessInListFilter result = + new com.google.analytics.admin.v1beta.AccessInListFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessInListFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + values_.makeImmutable(); + result.values_ = values_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessInListFilter) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessInListFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessInListFilter other) { + if (other == com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance()) + return this; + if (!other.values_.isEmpty()) { + if (values_.isEmpty()) { + values_ = other.values_; + bitField0_ |= 0x00000001; + } else { + ensureValuesIsMutable(); + values_.addAll(other.values_); + } + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 16: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList values_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureValuesIsMutable() { + if (!values_.isModifiable()) { + values_ = new com.google.protobuf.LazyStringArrayList(values_); + } + bitField0_ |= 0x00000001; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + public com.google.protobuf.ProtocolStringList getValuesList() { + values_.makeImmutable(); + return values_; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + public int getValuesCount() { + return values_.size(); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + public java.lang.String getValues(int index) { + return values_.get(index); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + public com.google.protobuf.ByteString getValuesBytes(int index) { + return values_.getByteString(index); + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param index The index to set the value at. + * @param value The values to set. + * @return This builder for chaining. + */ + public Builder setValues(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param value The values to add. + * @return This builder for chaining. + */ + public Builder addValues(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param values The values to add. + * @return This builder for chaining. + */ + public Builder addAllValues(java.lang.Iterable values) { + ensureValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @return This builder for chaining. + */ + public Builder clearValues() { + values_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * The list of string values. Must be non-empty.
+     * 
+ * + * repeated string values = 1; + * + * @param value The bytes of the values to add. + * @return This builder for chaining. + */ + public Builder addValuesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureValuesIsMutable(); + values_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 2; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000002); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessInListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessInListFilter) + private static final com.google.analytics.admin.v1beta.AccessInListFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessInListFilter(); + } + + public static com.google.analytics.admin.v1beta.AccessInListFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessInListFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessInListFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilterOrBuilder.java new file mode 100644 index 000000000000..1d75811b5e79 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilterOrBuilder.java @@ -0,0 +1,89 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessInListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessInListFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return A list containing the values. + */ + java.util.List getValuesList(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @return The count of values. + */ + int getValuesCount(); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the element to return. + * @return The values at the given index. + */ + java.lang.String getValues(int index); + /** + * + * + *
+   * The list of string values. Must be non-empty.
+   * 
+ * + * repeated string values = 1; + * + * @param index The index of the value to return. + * @return The bytes of the values at the given index. + */ + com.google.protobuf.ByteString getValuesBytes(int index); + + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 2; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetric.java new file mode 100644 index 000000000000..9b9ab0f9577d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetric.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The quantitative measurements of a report. For example, the metric
+ * `accessCount` is the total number of data access records.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessMetric} + */ +public final class AccessMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessMetric) + AccessMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetric.newBuilder() to construct. + private AccessMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetric() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessMetric.class, + com.google.analytics.admin.v1beta.AccessMetric.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.admin.v1beta.AccessMetric)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessMetric other = + (com.google.analytics.admin.v1beta.AccessMetric) obj; + + if (!getMetricName().equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessMetric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The quantitative measurements of a report. For example, the metric
+   * `accessCount` is the total number of data access records.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessMetric) + com.google.analytics.admin.v1beta.AccessMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessMetric.class, + com.google.analytics.admin.v1beta.AccessMetric.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessMetric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetric getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetric build() { + com.google.analytics.admin.v1beta.AccessMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetric buildPartial() { + com.google.analytics.admin.v1beta.AccessMetric result = + new com.google.analytics.admin.v1beta.AccessMetric(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessMetric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessMetric) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessMetric other) { + if (other == com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance()) return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The API name of the metric. See [Data Access
+     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+     * for the list of metrics supported in this API.
+     *
+     * Metrics are referenced by name in `metricFilter` & `orderBys`.
+     * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; + 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.admin.v1beta.AccessMetric) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessMetric) + private static final com.google.analytics.admin.v1beta.AccessMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessMetric(); + } + + public static com.google.analytics.admin.v1beta.AccessMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeader.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeader.java new file mode 100644 index 000000000000..5e7dee0c8a99 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeader.java @@ -0,0 +1,630 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Describes a metric column in the report. Visible metrics requested in a
+ * report produce column entries within rows and MetricHeaders. However,
+ * metrics used exclusively within filters or expressions do not produce columns
+ * in a report; correspondingly, those metrics do not produce headers.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricHeader} + */ +public final class AccessMetricHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessMetricHeader) + AccessMetricHeaderOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetricHeader.newBuilder() to construct. + private AccessMetricHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetricHeader() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetricHeader(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessMetricHeader.class, + com.google.analytics.admin.v1beta.AccessMetricHeader.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.admin.v1beta.AccessMetricHeader)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessMetricHeader other = + (com.google.analytics.admin.v1beta.AccessMetricHeader) obj; + + if (!getMetricName().equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessMetricHeader prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Describes a metric column in the report. Visible metrics requested in a
+   * report produce column entries within rows and MetricHeaders. However,
+   * metrics used exclusively within filters or expressions do not produce columns
+   * in a report; correspondingly, those metrics do not produce headers.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessMetricHeader) + com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessMetricHeader.class, + com.google.analytics.admin.v1beta.AccessMetricHeader.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessMetricHeader.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricHeader getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricHeader build() { + com.google.analytics.admin.v1beta.AccessMetricHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricHeader buildPartial() { + com.google.analytics.admin.v1beta.AccessMetricHeader result = + new com.google.analytics.admin.v1beta.AccessMetricHeader(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessMetricHeader result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessMetricHeader) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessMetricHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessMetricHeader other) { + if (other == com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The metric's name; for example 'accessCount'.
+     * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; + 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.admin.v1beta.AccessMetricHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessMetricHeader) + private static final com.google.analytics.admin.v1beta.AccessMetricHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessMetricHeader(); + } + + public static com.google.analytics.admin.v1beta.AccessMetricHeader getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetricHeader parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeaderOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeaderOrBuilder.java new file mode 100644 index 000000000000..36d0da589e15 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeaderOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessMetricHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessMetricHeader) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * The metric's name; for example 'accessCount'.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricOrBuilder.java new file mode 100644 index 000000000000..744fd6ee499f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+   * The API name of the metric. See [Data Access
+   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
+   * for the list of metrics supported in this API.
+   *
+   * Metrics are referenced by name in `metricFilter` & `orderBys`.
+   * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValue.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValue.java new file mode 100644 index 000000000000..47255809d73c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValue.java @@ -0,0 +1,624 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The value of a metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricValue} + */ +public final class AccessMetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessMetricValue) + AccessMetricValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessMetricValue.newBuilder() to construct. + private AccessMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessMetricValue() { + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessMetricValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessMetricValue.class, + com.google.analytics.admin.v1beta.AccessMetricValue.Builder.class); + } + + public static final int VALUE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); + } + 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(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); + } + 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.admin.v1beta.AccessMetricValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessMetricValue other = + (com.google.analytics.admin.v1beta.AccessMetricValue) obj; + + if (!getValue().equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessMetricValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The value of a metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessMetricValue) + com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessMetricValue.class, + com.google.analytics.admin.v1beta.AccessMetricValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessMetricValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + value_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricValue build() { + com.google.analytics.admin.v1beta.AccessMetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricValue buildPartial() { + com.google.analytics.admin.v1beta.AccessMetricValue result = + new com.google.analytics.admin.v1beta.AccessMetricValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessMetricValue result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessMetricValue) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessMetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessMetricValue other) { + if (other == com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance()) + return this; + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The measurement value. For example, this value may be '13'.
+     * 
+ * + * string value = 1; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + 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.admin.v1beta.AccessMetricValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessMetricValue) + private static final com.google.analytics.admin.v1beta.AccessMetricValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessMetricValue(); + } + + public static com.google.analytics.admin.v1beta.AccessMetricValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessMetricValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValueOrBuilder.java new file mode 100644 index 000000000000..904ab8adf2bd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValueOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessMetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessMetricValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The measurement value. For example, this value may be '13'.
+   * 
+ * + * string value = 1; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilter.java new file mode 100644 index 000000000000..eacc043b3f00 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilter.java @@ -0,0 +1,1090 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Filters for numeric or date values.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessNumericFilter} + */ +public final class AccessNumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessNumericFilter) + AccessNumericFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessNumericFilter.newBuilder() to construct. + private AccessNumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessNumericFilter() { + operation_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessNumericFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessNumericFilter.class, + com.google.analytics.admin.v1beta.AccessNumericFilter.Builder.class); + } + + /** + * + * + *
+   * The operation applied to a numeric filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.AccessNumericFilter.Operation} + */ + public enum Operation implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + OPERATION_UNSPECIFIED(0), + /** + * + * + *
+     * Equal
+     * 
+ * + * EQUAL = 1; + */ + EQUAL(1), + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 2; + */ + LESS_THAN(2), + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + LESS_THAN_OR_EQUAL(3), + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 4; + */ + GREATER_THAN(4), + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + GREATER_THAN_OR_EQUAL(5), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * OPERATION_UNSPECIFIED = 0; + */ + public static final int OPERATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Equal
+     * 
+ * + * EQUAL = 1; + */ + public static final int EQUAL_VALUE = 1; + /** + * + * + *
+     * Less than
+     * 
+ * + * LESS_THAN = 2; + */ + public static final int LESS_THAN_VALUE = 2; + /** + * + * + *
+     * Less than or equal
+     * 
+ * + * LESS_THAN_OR_EQUAL = 3; + */ + public static final int LESS_THAN_OR_EQUAL_VALUE = 3; + /** + * + * + *
+     * Greater than
+     * 
+ * + * GREATER_THAN = 4; + */ + public static final int GREATER_THAN_VALUE = 4; + /** + * + * + *
+     * Greater than or equal
+     * 
+ * + * GREATER_THAN_OR_EQUAL = 5; + */ + public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Operation valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Operation forNumber(int value) { + switch (value) { + case 0: + return OPERATION_UNSPECIFIED; + case 1: + return EQUAL; + case 2: + return LESS_THAN; + case 3: + return LESS_THAN_OR_EQUAL; + case 4: + return GREATER_THAN; + case 5: + return GREATER_THAN_OR_EQUAL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Operation findValueByNumber(int number) { + return Operation.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessNumericFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Operation[] VALUES = values(); + + public static Operation valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Operation(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.AccessNumericFilter.Operation) + } + + public static final int OPERATION_FIELD_NUMBER = 1; + private int operation_ = 0; + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter.Operation getOperation() { + com.google.analytics.admin.v1beta.AccessNumericFilter.Operation result = + com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.forNumber(operation_); + return result == null + ? com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.NumericValue value_; + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return value_ != null; + } + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValue getValue() { + return value_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : value_; + } + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValueOrBuilder getValueOrBuilder() { + return value_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : value_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (operation_ + != com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, operation_); + } + if (value_ != null) { + output.writeMessage(2, getValue()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (operation_ + != com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, operation_); + } + if (value_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); + } + size += 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.admin.v1beta.AccessNumericFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessNumericFilter other = + (com.google.analytics.admin.v1beta.AccessNumericFilter) obj; + + if (operation_ != other.operation_) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue().equals(other.getValue())) 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) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + operation_; + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessNumericFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Filters for numeric or date values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessNumericFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessNumericFilter) + com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessNumericFilter.class, + com.google.analytics.admin.v1beta.AccessNumericFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessNumericFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + operation_ = 0; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter build() { + com.google.analytics.admin.v1beta.AccessNumericFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter buildPartial() { + com.google.analytics.admin.v1beta.AccessNumericFilter result = + new com.google.analytics.admin.v1beta.AccessNumericFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessNumericFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operation_ = operation_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null ? value_ : valueBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessNumericFilter) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessNumericFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessNumericFilter other) { + if (other == com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance()) + return this; + if (other.operation_ != 0) { + setOperationValue(other.getOperationValue()); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + operation_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int operation_ = 0; + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + @java.lang.Override + public int getOperationValue() { + return operation_; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @param value The enum numeric value on the wire for operation to set. + * @return This builder for chaining. + */ + public Builder setOperationValue(int value) { + operation_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter.Operation getOperation() { + com.google.analytics.admin.v1beta.AccessNumericFilter.Operation result = + com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.forNumber(operation_); + return result == null + ? com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation( + com.google.analytics.admin.v1beta.AccessNumericFilter.Operation value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + operation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000001); + operation_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.NumericValue value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder> + valueBuilder_; + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + * + * @return The value. + */ + public com.google.analytics.admin.v1beta.NumericValue getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + public Builder setValue(com.google.analytics.admin.v1beta.NumericValue value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + public Builder setValue( + com.google.analytics.admin.v1beta.NumericValue.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + public Builder mergeValue(com.google.analytics.admin.v1beta.NumericValue value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && value_ != null + && value_ != com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + public com.google.analytics.admin.v1beta.NumericValue.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + public com.google.analytics.admin.v1beta.NumericValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() + : value_; + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.NumericValue, + com.google.analytics.admin.v1beta.NumericValue.Builder, + com.google.analytics.admin.v1beta.NumericValueOrBuilder>( + getValue(), getParentForChildren(), isClean()); + value_ = null; + } + return valueBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessNumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessNumericFilter) + private static final com.google.analytics.admin.v1beta.AccessNumericFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessNumericFilter(); + } + + public static com.google.analytics.admin.v1beta.AccessNumericFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessNumericFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessNumericFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilterOrBuilder.java new file mode 100644 index 000000000000..1b5f47d845d6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilterOrBuilder.java @@ -0,0 +1,85 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessNumericFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessNumericFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @return The enum numeric value on the wire for operation. + */ + int getOperationValue(); + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; + * + * @return The operation. + */ + com.google.analytics.admin.v1beta.AccessNumericFilter.Operation getOperation(); + + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + * + * @return The value. + */ + com.google.analytics.admin.v1beta.NumericValue getValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.admin.v1beta.NumericValue value = 2; + */ + com.google.analytics.admin.v1beta.NumericValueOrBuilder getValueOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderBy.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderBy.java new file mode 100644 index 000000000000..cca7a2e8cb1b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderBy.java @@ -0,0 +1,2929 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Order bys define how rows will be sorted in the response. For example,
+ * ordering rows by descending access count is one ordering, and ordering rows
+ * by the country string is a different ordering.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy} + */ +public final class AccessOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessOrderBy) + AccessOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessOrderBy.newBuilder() to construct. + private AccessOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessOrderBy() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessOrderBy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessOrderBy.class, + com.google.analytics.admin.v1beta.AccessOrderBy.Builder.class); + } + + public interface MetricOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + java.lang.String getMetricName(); + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + com.google.protobuf.ByteString getMetricNameBytes(); + } + /** + * + * + *
+   * Sorts by metric values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy} + */ + public static final class MetricOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) + MetricOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use MetricOrderBy.newBuilder() to construct. + private MetricOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MetricOrderBy() { + metricName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MetricOrderBy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.class, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder.class); + } + + public static final int METRIC_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object metricName_ = ""; + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + @java.lang.Override + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } + } + /** + * + * + *
+     * A metric name in the request to order by.
+     * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); + } + 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(metricName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); + } + 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.admin.v1beta.AccessOrderBy.MetricOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy other = + (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) obj; + + if (!getMetricName().equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Sorts by metric values.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.class, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + metricName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy build() { + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy buildPartial() { + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy result = + new com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.metricName_ = metricName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy other) { + if (other + == com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance()) + return this; + if (!other.getMetricName().isEmpty()) { + metricName_ = other.metricName_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object metricName_ = ""; + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return The metricName. + */ + public java.lang.String getMetricName() { + java.lang.Object ref = metricName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + metricName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return The bytes for metricName. + */ + public com.google.protobuf.ByteString getMetricNameBytes() { + java.lang.Object ref = metricName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + metricName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @param value The metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearMetricName() { + metricName_ = getDefaultInstance().getMetricName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * A metric name in the request to order by.
+       * 
+ * + * string metric_name = 1; + * + * @param value The bytes for metricName to set. + * @return This builder for chaining. + */ + public Builder setMetricNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricName_ = value; + 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.admin.v1beta.AccessOrderBy.MetricOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) + private static final com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy(); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface DimensionOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + java.lang.String getDimensionName(); + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + com.google.protobuf.ByteString getDimensionNameBytes(); + + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + int getOrderTypeValue(); + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType getOrderType(); + } + /** + * + * + *
+   * Sorts by dimension values.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy} + */ + public static final class DimensionOrderBy extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) + DimensionOrderByOrBuilder { + private static final long serialVersionUID = 0L; + // Use DimensionOrderBy.newBuilder() to construct. + private DimensionOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DimensionOrderBy() { + dimensionName_ = ""; + orderType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DimensionOrderBy(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.class, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder.class); + } + + /** + * + * + *
+     * Rule to order the string dimension values by.
+     * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType} + */ + public enum OrderType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * ORDER_TYPE_UNSPECIFIED = 0; + */ + ORDER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
+       * "b" < "z".
+       * 
+ * + * ALPHANUMERIC = 1; + */ + ALPHANUMERIC(1), + /** + * + * + *
+       * Case insensitive alphanumeric sort by lower case Unicode code point.
+       * For example, "2" < "A" < "b" < "X" < "z".
+       * 
+ * + * CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + CASE_INSENSITIVE_ALPHANUMERIC(2), + /** + * + * + *
+       * Dimension values are converted to numbers before sorting. For example
+       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
+       * "25". Non-numeric dimension values all have equal ordering value below
+       * all numeric values.
+       * 
+ * + * NUMERIC = 3; + */ + NUMERIC(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * Unspecified.
+       * 
+ * + * ORDER_TYPE_UNSPECIFIED = 0; + */ + public static final int ORDER_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
+       * "b" < "z".
+       * 
+ * + * ALPHANUMERIC = 1; + */ + public static final int ALPHANUMERIC_VALUE = 1; + /** + * + * + *
+       * Case insensitive alphanumeric sort by lower case Unicode code point.
+       * For example, "2" < "A" < "b" < "X" < "z".
+       * 
+ * + * CASE_INSENSITIVE_ALPHANUMERIC = 2; + */ + public static final int CASE_INSENSITIVE_ALPHANUMERIC_VALUE = 2; + /** + * + * + *
+       * Dimension values are converted to numbers before sorting. For example
+       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
+       * "25". Non-numeric dimension values all have equal ordering value below
+       * all numeric values.
+       * 
+ * + * NUMERIC = 3; + */ + public static final int NUMERIC_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OrderType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static OrderType forNumber(int value) { + switch (value) { + case 0: + return ORDER_TYPE_UNSPECIFIED; + case 1: + return ALPHANUMERIC; + case 2: + return CASE_INSENSITIVE_ALPHANUMERIC; + case 3: + return NUMERIC; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public OrderType findValueByNumber(int number) { + return OrderType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final OrderType[] VALUES = values(); + + public static OrderType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private OrderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType) + } + + public static final int DIMENSION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object dimensionName_ = ""; + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + @java.lang.Override + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } + } + /** + * + * + *
+     * A dimension name in the request to order by.
+     * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_TYPE_FIELD_NUMBER = 2; + private int orderType_ = 0; + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + @java.lang.Override + public int getOrderTypeValue() { + return orderType_; + } + /** + * + * + *
+     * Controls the rule for dimension value ordering.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType + getOrderType() { + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType result = + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.forNumber( + orderType_); + return result == null + ? com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); + } + if (orderType_ + != com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType + .ORDER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, orderType_); + } + 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_); + } + if (orderType_ + != com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType + .ORDER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, orderType_); + } + 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.admin.v1beta.AccessOrderBy.DimensionOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy other = + (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) obj; + + if (!getDimensionName().equals(other.getDimensionName())) return false; + if (orderType_ != other.orderType_) 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 = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + orderType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Sorts by dimension values.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.class, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dimensionName_ = ""; + orderType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy build() { + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy buildPartial() { + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy result = + new com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dimensionName_ = dimensionName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.orderType_ = orderType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) { + return mergeFrom( + (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy other) { + if (other + == com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + .getDefaultInstance()) return this; + if (!other.getDimensionName().isEmpty()) { + dimensionName_ = other.dimensionName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.orderType_ != 0) { + setOrderTypeValue(other.getOrderTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + orderType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object dimensionName_ = ""; + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return The dimensionName. + */ + public java.lang.String getDimensionName() { + java.lang.Object ref = dimensionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + dimensionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return The bytes for dimensionName. + */ + public com.google.protobuf.ByteString getDimensionNameBytes() { + java.lang.Object ref = dimensionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + dimensionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @param value The dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearDimensionName() { + dimensionName_ = getDefaultInstance().getDimensionName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * A dimension name in the request to order by.
+       * 
+ * + * string dimension_name = 1; + * + * @param value The bytes for dimensionName to set. + * @return This builder for chaining. + */ + public Builder setDimensionNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dimensionName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int orderType_ = 0; + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The enum numeric value on the wire for orderType. + */ + @java.lang.Override + public int getOrderTypeValue() { + return orderType_; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @param value The enum numeric value on the wire for orderType to set. + * @return This builder for chaining. + */ + public Builder setOrderTypeValue(int value) { + orderType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return The orderType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType + getOrderType() { + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType result = + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.forNumber( + orderType_); + return result == null + ? com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @param value The orderType to set. + * @return This builder for chaining. + */ + public Builder setOrderType( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + orderType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Controls the rule for dimension value ordering.
+       * 
+ * + * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearOrderType() { + bitField0_ = (bitField0_ & ~0x00000002); + orderType_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) + private static final com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy(); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DimensionOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int oneOrderByCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object oneOrderBy_; + + public enum OneOrderByCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + METRIC(1), + DIMENSION(2), + ONEORDERBY_NOT_SET(0); + private final int value; + + private OneOrderByCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneOrderByCase valueOf(int value) { + return forNumber(value); + } + + public static OneOrderByCase forNumber(int value) { + switch (value) { + case 1: + return METRIC; + case 2: + return DIMENSION; + case 0: + return ONEORDERBY_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneOrderByCase getOneOrderByCase() { + return OneOrderByCase.forNumber(oneOrderByCase_); + } + + public static final int METRIC_FIELD_NUMBER = 1; + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return oneOrderByCase_ == 1; + } + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getMetric() { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder + getMetricOrBuilder() { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + + public static final int DIMENSION_FIELD_NUMBER = 2; + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + @java.lang.Override + public boolean hasDimension() { + return oneOrderByCase_ == 2; + } + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDimension() { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); + } + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder() { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); + } + + public static final int DESC_FIELD_NUMBER = 3; + private boolean desc_ = false; + /** + * + * + *
+   * If true, sorts by descending order. If false or unspecified, sorts in
+   * ascending order.
+   * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + @java.lang.Override + public boolean getDesc() { + return desc_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneOrderByCase_ == 1) { + output.writeMessage( + 1, (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_); + } + if (oneOrderByCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_); + } + if (desc_ != false) { + output.writeBool(3, desc_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneOrderByCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_); + } + if (oneOrderByCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_); + } + if (desc_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, desc_); + } + 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.admin.v1beta.AccessOrderBy)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessOrderBy other = + (com.google.analytics.admin.v1beta.AccessOrderBy) obj; + + if (getDesc() != other.getDesc()) return false; + if (!getOneOrderByCase().equals(other.getOneOrderByCase())) return false; + switch (oneOrderByCase_) { + case 1: + if (!getMetric().equals(other.getMetric())) return false; + break; + case 2: + if (!getDimension().equals(other.getDimension())) return false; + break; + case 0: + default: + } + if (!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) + DESC_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDesc()); + switch (oneOrderByCase_) { + case 1: + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + break; + case 2: + hash = (37 * hash) + DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getDimension().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessOrderBy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Order bys define how rows will be sorted in the response. For example,
+   * ordering rows by descending access count is one ordering, and ordering rows
+   * by the country string is a different ordering.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessOrderBy) + com.google.analytics.admin.v1beta.AccessOrderByOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessOrderBy.class, + com.google.analytics.admin.v1beta.AccessOrderBy.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessOrderBy.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (metricBuilder_ != null) { + metricBuilder_.clear(); + } + if (dimensionBuilder_ != null) { + dimensionBuilder_.clear(); + } + desc_ = false; + oneOrderByCase_ = 0; + oneOrderBy_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy build() { + com.google.analytics.admin.v1beta.AccessOrderBy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy buildPartial() { + com.google.analytics.admin.v1beta.AccessOrderBy result = + new com.google.analytics.admin.v1beta.AccessOrderBy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessOrderBy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.desc_ = desc_; + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1beta.AccessOrderBy result) { + result.oneOrderByCase_ = oneOrderByCase_; + result.oneOrderBy_ = this.oneOrderBy_; + if (oneOrderByCase_ == 1 && metricBuilder_ != null) { + result.oneOrderBy_ = metricBuilder_.build(); + } + if (oneOrderByCase_ == 2 && dimensionBuilder_ != null) { + result.oneOrderBy_ = dimensionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessOrderBy) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessOrderBy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessOrderBy other) { + if (other == com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance()) + return this; + if (other.getDesc() != false) { + setDesc(other.getDesc()); + } + switch (other.getOneOrderByCase()) { + case METRIC: + { + mergeMetric(other.getMetric()); + break; + } + case DIMENSION: + { + mergeDimension(other.getDimension()); + break; + } + case ONEORDERBY_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry); + oneOrderByCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getDimensionFieldBuilder().getBuilder(), extensionRegistry); + oneOrderByCase_ = 2; + break; + } // case 18 + case 24: + { + desc_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneOrderByCase_ = 0; + private java.lang.Object oneOrderBy_; + + public OneOrderByCase getOneOrderByCase() { + return OneOrderByCase.forNumber(oneOrderByCase_); + } + + public Builder clearOneOrderBy() { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder> + metricBuilder_; + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return oneOrderByCase_ == 1; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getMetric() { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } else { + if (oneOrderByCase_ == 1) { + return metricBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder setMetric(com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy value) { + if (metricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneOrderBy_ = value; + onChanged(); + } else { + metricBuilder_.setMessage(value); + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder setMetric( + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder builderForValue) { + if (metricBuilder_ == null) { + oneOrderBy_ = builderForValue.build(); + onChanged(); + } else { + metricBuilder_.setMessage(builderForValue.build()); + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder mergeMetric( + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy value) { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1 + && oneOrderBy_ + != com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy + .getDefaultInstance()) { + oneOrderBy_ = + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.newBuilder( + (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_) + .mergeFrom(value) + .buildPartial(); + } else { + oneOrderBy_ = value; + } + onChanged(); + } else { + if (oneOrderByCase_ == 1) { + metricBuilder_.mergeFrom(value); + } else { + metricBuilder_.setMessage(value); + } + } + oneOrderByCase_ = 1; + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + public Builder clearMetric() { + if (metricBuilder_ == null) { + if (oneOrderByCase_ == 1) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + } + } else { + if (oneOrderByCase_ == 1) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + } + metricBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder + getMetricBuilder() { + return getMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder + getMetricOrBuilder() { + if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { + return metricBuilder_.getMessageOrBuilder(); + } else { + if (oneOrderByCase_ == 1) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a metric's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder> + getMetricFieldBuilder() { + if (metricBuilder_ == null) { + if (!(oneOrderByCase_ == 1)) { + oneOrderBy_ = + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); + } + metricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder>( + (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_, + getParentForChildren(), + isClean()); + oneOrderBy_ = null; + } + oneOrderByCase_ = 1; + onChanged(); + return metricBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder> + dimensionBuilder_; + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + @java.lang.Override + public boolean hasDimension() { + return oneOrderByCase_ == 2; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDimension() { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } else { + if (oneOrderByCase_ == 2) { + return dimensionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder setDimension( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy value) { + if (dimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneOrderBy_ = value; + onChanged(); + } else { + dimensionBuilder_.setMessage(value); + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder setDimension( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder builderForValue) { + if (dimensionBuilder_ == null) { + oneOrderBy_ = builderForValue.build(); + onChanged(); + } else { + dimensionBuilder_.setMessage(builderForValue.build()); + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder mergeDimension( + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy value) { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2 + && oneOrderBy_ + != com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + .getDefaultInstance()) { + oneOrderBy_ = + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.newBuilder( + (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) + oneOrderBy_) + .mergeFrom(value) + .buildPartial(); + } else { + oneOrderBy_ = value; + } + onChanged(); + } else { + if (oneOrderByCase_ == 2) { + dimensionBuilder_.mergeFrom(value); + } else { + dimensionBuilder_.setMessage(value); + } + } + oneOrderByCase_ = 2; + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public Builder clearDimension() { + if (dimensionBuilder_ == null) { + if (oneOrderByCase_ == 2) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + onChanged(); + } + } else { + if (oneOrderByCase_ == 2) { + oneOrderByCase_ = 0; + oneOrderBy_ = null; + } + dimensionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder + getDimensionBuilder() { + return getDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder + getDimensionOrBuilder() { + if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { + return dimensionBuilder_.getMessageOrBuilder(); + } else { + if (oneOrderByCase_ == 2) { + return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; + } + return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Sorts results by a dimension's values.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder> + getDimensionFieldBuilder() { + if (dimensionBuilder_ == null) { + if (!(oneOrderByCase_ == 2)) { + oneOrderBy_ = + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); + } + dimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder>( + (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_, + getParentForChildren(), + isClean()); + oneOrderBy_ = null; + } + oneOrderByCase_ = 2; + onChanged(); + return dimensionBuilder_; + } + + private boolean desc_; + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + @java.lang.Override + public boolean getDesc() { + return desc_; + } + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @param value The desc to set. + * @return This builder for chaining. + */ + public Builder setDesc(boolean value) { + + desc_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, sorts by descending order. If false or unspecified, sorts in
+     * ascending order.
+     * 
+ * + * bool desc = 3; + * + * @return This builder for chaining. + */ + public Builder clearDesc() { + bitField0_ = (bitField0_ & ~0x00000004); + desc_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessOrderBy) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessOrderBy) + private static final com.google.analytics.admin.v1beta.AccessOrderBy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessOrderBy(); + } + + public static com.google.analytics.admin.v1beta.AccessOrderBy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessOrderBy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderByOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderByOrBuilder.java new file mode 100644 index 000000000000..0f2070d50f81 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderByOrBuilder.java @@ -0,0 +1,111 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessOrderByOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessOrderBy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return Whether the metric field is set. + */ + boolean hasMetric(); + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + * + * @return The metric. + */ + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getMetric(); + /** + * + * + *
+   * Sorts results by a metric's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; + */ + com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); + + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return Whether the dimension field is set. + */ + boolean hasDimension(); + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + * + * @return The dimension. + */ + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDimension(); + /** + * + * + *
+   * Sorts results by a dimension's values.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; + */ + com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder(); + + /** + * + * + *
+   * If true, sorts by descending order. If false or unspecified, sorts in
+   * ascending order.
+   * 
+ * + * bool desc = 3; + * + * @return The desc. + */ + boolean getDesc(); + + com.google.analytics.admin.v1beta.AccessOrderBy.OneOrderByCase getOneOrderByCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuota.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuota.java new file mode 100644 index 000000000000..994edd55030b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuota.java @@ -0,0 +1,1923 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Current state of all quotas for this Analytics property. If any quota for a
+ * property is exhausted, all requests to that property will return Resource
+ * Exhausted errors.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessQuota} + */ +public final class AccessQuota extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessQuota) + AccessQuotaOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessQuota.newBuilder() to construct. + private AccessQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessQuota() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessQuota(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessQuota.class, + com.google.analytics.admin.v1beta.AccessQuota.Builder.class); + } + + public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerDay_; + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + @java.lang.Override + public boolean hasTokensPerDay() { + return tokensPerDay_ != null; + } + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerDay() { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + + public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerHour_; + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + @java.lang.Override + public boolean hasTokensPerHour() { + return tokensPerHour_ != null; + } + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerHour() { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + + public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1beta.AccessQuotaStatus concurrentRequests_; + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + @java.lang.Override + public boolean hasConcurrentRequests() { + return concurrentRequests_ != null; + } + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus getConcurrentRequests() { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getConcurrentRequestsOrBuilder() { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + + public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1beta.AccessQuotaStatus serverErrorsPerProjectPerHour_; + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + @java.lang.Override + public boolean hasServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHour_ != null; + } + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus getServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + + public static final int TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerProjectPerHour_; + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + @java.lang.Override + public boolean hasTokensPerProjectPerHour() { + return tokensPerProjectPerHour_ != null; + } + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return The tokensPerProjectPerHour. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerProjectPerHour() { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder() { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (tokensPerDay_ != null) { + output.writeMessage(1, getTokensPerDay()); + } + if (tokensPerHour_ != null) { + output.writeMessage(2, getTokensPerHour()); + } + if (concurrentRequests_ != null) { + output.writeMessage(3, getConcurrentRequests()); + } + if (serverErrorsPerProjectPerHour_ != null) { + output.writeMessage(4, getServerErrorsPerProjectPerHour()); + } + if (tokensPerProjectPerHour_ != null) { + output.writeMessage(5, getTokensPerProjectPerHour()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (tokensPerDay_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getTokensPerDay()); + } + if (tokensPerHour_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTokensPerHour()); + } + if (concurrentRequests_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getConcurrentRequests()); + } + if (serverErrorsPerProjectPerHour_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getServerErrorsPerProjectPerHour()); + } + if (tokensPerProjectPerHour_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTokensPerProjectPerHour()); + } + 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.admin.v1beta.AccessQuota)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessQuota other = + (com.google.analytics.admin.v1beta.AccessQuota) obj; + + if (hasTokensPerDay() != other.hasTokensPerDay()) return false; + if (hasTokensPerDay()) { + if (!getTokensPerDay().equals(other.getTokensPerDay())) return false; + } + if (hasTokensPerHour() != other.hasTokensPerHour()) return false; + if (hasTokensPerHour()) { + if (!getTokensPerHour().equals(other.getTokensPerHour())) return false; + } + if (hasConcurrentRequests() != other.hasConcurrentRequests()) return false; + if (hasConcurrentRequests()) { + if (!getConcurrentRequests().equals(other.getConcurrentRequests())) return false; + } + if (hasServerErrorsPerProjectPerHour() != other.hasServerErrorsPerProjectPerHour()) + return false; + if (hasServerErrorsPerProjectPerHour()) { + if (!getServerErrorsPerProjectPerHour().equals(other.getServerErrorsPerProjectPerHour())) + return false; + } + if (hasTokensPerProjectPerHour() != other.hasTokensPerProjectPerHour()) return false; + if (hasTokensPerProjectPerHour()) { + if (!getTokensPerProjectPerHour().equals(other.getTokensPerProjectPerHour())) 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 (hasTokensPerDay()) { + hash = (37 * hash) + TOKENS_PER_DAY_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerDay().hashCode(); + } + if (hasTokensPerHour()) { + hash = (37 * hash) + TOKENS_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerHour().hashCode(); + } + if (hasConcurrentRequests()) { + hash = (37 * hash) + CONCURRENT_REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getConcurrentRequests().hashCode(); + } + if (hasServerErrorsPerProjectPerHour()) { + hash = (37 * hash) + SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getServerErrorsPerProjectPerHour().hashCode(); + } + if (hasTokensPerProjectPerHour()) { + hash = (37 * hash) + TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerProjectPerHour().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessQuota prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Current state of all quotas for this Analytics property. If any quota for a
+   * property is exhausted, all requests to that property will return Resource
+   * Exhausted errors.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessQuota} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessQuota) + com.google.analytics.admin.v1beta.AccessQuotaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessQuota.class, + com.google.analytics.admin.v1beta.AccessQuota.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessQuota.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + tokensPerDay_ = null; + if (tokensPerDayBuilder_ != null) { + tokensPerDayBuilder_.dispose(); + tokensPerDayBuilder_ = null; + } + tokensPerHour_ = null; + if (tokensPerHourBuilder_ != null) { + tokensPerHourBuilder_.dispose(); + tokensPerHourBuilder_ = null; + } + concurrentRequests_ = null; + if (concurrentRequestsBuilder_ != null) { + concurrentRequestsBuilder_.dispose(); + concurrentRequestsBuilder_ = null; + } + serverErrorsPerProjectPerHour_ = null; + if (serverErrorsPerProjectPerHourBuilder_ != null) { + serverErrorsPerProjectPerHourBuilder_.dispose(); + serverErrorsPerProjectPerHourBuilder_ = null; + } + tokensPerProjectPerHour_ = null; + if (tokensPerProjectPerHourBuilder_ != null) { + tokensPerProjectPerHourBuilder_.dispose(); + tokensPerProjectPerHourBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuota getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuota build() { + com.google.analytics.admin.v1beta.AccessQuota result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuota buildPartial() { + com.google.analytics.admin.v1beta.AccessQuota result = + new com.google.analytics.admin.v1beta.AccessQuota(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessQuota result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.tokensPerDay_ = + tokensPerDayBuilder_ == null ? tokensPerDay_ : tokensPerDayBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.tokensPerHour_ = + tokensPerHourBuilder_ == null ? tokensPerHour_ : tokensPerHourBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.concurrentRequests_ = + concurrentRequestsBuilder_ == null + ? concurrentRequests_ + : concurrentRequestsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.serverErrorsPerProjectPerHour_ = + serverErrorsPerProjectPerHourBuilder_ == null + ? serverErrorsPerProjectPerHour_ + : serverErrorsPerProjectPerHourBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tokensPerProjectPerHour_ = + tokensPerProjectPerHourBuilder_ == null + ? tokensPerProjectPerHour_ + : tokensPerProjectPerHourBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessQuota) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessQuota) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessQuota other) { + if (other == com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance()) return this; + if (other.hasTokensPerDay()) { + mergeTokensPerDay(other.getTokensPerDay()); + } + if (other.hasTokensPerHour()) { + mergeTokensPerHour(other.getTokensPerHour()); + } + if (other.hasConcurrentRequests()) { + mergeConcurrentRequests(other.getConcurrentRequests()); + } + if (other.hasServerErrorsPerProjectPerHour()) { + mergeServerErrorsPerProjectPerHour(other.getServerErrorsPerProjectPerHour()); + } + if (other.hasTokensPerProjectPerHour()) { + mergeTokensPerProjectPerHour(other.getTokensPerProjectPerHour()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTokensPerDayFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getTokensPerHourFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + getConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getTokensPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerDay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + tokensPerDayBuilder_; + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + public boolean hasTokensPerDay() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerDay() { + if (tokensPerDayBuilder_ == null) { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } else { + return tokensPerDayBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (tokensPerDayBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerDay_ = value; + } else { + tokensPerDayBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay( + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerDayBuilder_ == null) { + tokensPerDay_ = builderForValue.build(); + } else { + tokensPerDayBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder mergeTokensPerDay(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (tokensPerDayBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && tokensPerDay_ != null + && tokensPerDay_ + != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { + getTokensPerDayBuilder().mergeFrom(value); + } else { + tokensPerDay_ = value; + } + } else { + tokensPerDayBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + public Builder clearTokensPerDay() { + bitField0_ = (bitField0_ & ~0x00000001); + tokensPerDay_ = null; + if (tokensPerDayBuilder_ != null) { + tokensPerDayBuilder_.dispose(); + tokensPerDayBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder getTokensPerDayBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getTokensPerDayFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { + if (tokensPerDayBuilder_ != null) { + return tokensPerDayBuilder_.getMessageOrBuilder(); + } else { + return tokensPerDay_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerDay_; + } + } + /** + * + * + *
+     * Properties can use 250,000 tokens per day. Most requests consume fewer than
+     * 10 tokens.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + getTokensPerDayFieldBuilder() { + if (tokensPerDayBuilder_ == null) { + tokensPerDayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( + getTokensPerDay(), getParentForChildren(), isClean()); + tokensPerDay_ = null; + } + return tokensPerDayBuilder_; + } + + private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + tokensPerHourBuilder_; + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + public boolean hasTokensPerHour() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerHour() { + if (tokensPerHourBuilder_ == null) { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } else { + return tokensPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (tokensPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerHour_ = value; + } else { + tokensPerHourBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour( + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerHourBuilder_ == null) { + tokensPerHour_ = builderForValue.build(); + } else { + tokensPerHourBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder mergeTokensPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (tokensPerHourBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && tokensPerHour_ != null + && tokensPerHour_ + != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { + getTokensPerHourBuilder().mergeFrom(value); + } else { + tokensPerHour_ = value; + } + } else { + tokensPerHourBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + public Builder clearTokensPerHour() { + bitField0_ = (bitField0_ & ~0x00000002); + tokensPerHour_ = null; + if (tokensPerHourBuilder_ != null) { + tokensPerHourBuilder_.dispose(); + tokensPerHourBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder getTokensPerHourBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getTokensPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getTokensPerHourOrBuilder() { + if (tokensPerHourBuilder_ != null) { + return tokensPerHourBuilder_.getMessageOrBuilder(); + } else { + return tokensPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerHour_; + } + } + /** + * + * + *
+     * Properties can use 50,000 tokens per hour. An API request consumes a single
+     * number of tokens, and that number is deducted from all of the hourly,
+     * daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + getTokensPerHourFieldBuilder() { + if (tokensPerHourBuilder_ == null) { + tokensPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( + getTokensPerHour(), getParentForChildren(), isClean()); + tokensPerHour_ = null; + } + return tokensPerHourBuilder_; + } + + private com.google.analytics.admin.v1beta.AccessQuotaStatus concurrentRequests_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + concurrentRequestsBuilder_; + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + public boolean hasConcurrentRequests() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus getConcurrentRequests() { + if (concurrentRequestsBuilder_ == null) { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } else { + return concurrentRequestsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests( + com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (concurrentRequestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + concurrentRequests_ = value; + } else { + concurrentRequestsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests( + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { + if (concurrentRequestsBuilder_ == null) { + concurrentRequests_ = builderForValue.build(); + } else { + concurrentRequestsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder mergeConcurrentRequests( + com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (concurrentRequestsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && concurrentRequests_ != null + && concurrentRequests_ + != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { + getConcurrentRequestsBuilder().mergeFrom(value); + } else { + concurrentRequests_ = value; + } + } else { + concurrentRequestsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + public Builder clearConcurrentRequests() { + bitField0_ = (bitField0_ & ~0x00000004); + concurrentRequests_ = null; + if (concurrentRequestsBuilder_ != null) { + concurrentRequestsBuilder_.dispose(); + concurrentRequestsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder + getConcurrentRequestsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getConcurrentRequestsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getConcurrentRequestsOrBuilder() { + if (concurrentRequestsBuilder_ != null) { + return concurrentRequestsBuilder_.getMessageOrBuilder(); + } else { + return concurrentRequests_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : concurrentRequests_; + } + } + /** + * + * + *
+     * Properties can use up to 50 concurrent requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + getConcurrentRequestsFieldBuilder() { + if (concurrentRequestsBuilder_ == null) { + concurrentRequestsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( + getConcurrentRequests(), getParentForChildren(), isClean()); + concurrentRequests_ = null; + } + return concurrentRequestsBuilder_; + } + + private com.google.analytics.admin.v1beta.AccessQuotaStatus serverErrorsPerProjectPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + serverErrorsPerProjectPerHourBuilder_; + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + public boolean hasServerErrorsPerProjectPerHour() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus getServerErrorsPerProjectPerHour() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } else { + return serverErrorsPerProjectPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serverErrorsPerProjectPerHour_ = value; + } else { + serverErrorsPerProjectPerHourBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHour_ = builderForValue.build(); + } else { + serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder mergeServerErrorsPerProjectPerHour( + com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && serverErrorsPerProjectPerHour_ != null + && serverErrorsPerProjectPerHour_ + != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { + getServerErrorsPerProjectPerHourBuilder().mergeFrom(value); + } else { + serverErrorsPerProjectPerHour_ = value; + } + } else { + serverErrorsPerProjectPerHourBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder clearServerErrorsPerProjectPerHour() { + bitField0_ = (bitField0_ & ~0x00000008); + serverErrorsPerProjectPerHour_ = null; + if (serverErrorsPerProjectPerHourBuilder_ != null) { + serverErrorsPerProjectPerHourBuilder_.dispose(); + serverErrorsPerProjectPerHourBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder + getServerErrorsPerProjectPerHourBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ != null) { + return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); + } else { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : serverErrorsPerProjectPerHour_; + } + } + /** + * + * + *
+     * Properties and cloud project pairs can have up to 50 server errors per
+     * hour.
+     * 
+ * + * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + getServerErrorsPerProjectPerHourFieldBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( + getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); + serverErrorsPerProjectPerHour_ = null; + } + return serverErrorsPerProjectPerHourBuilder_; + } + + private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerProjectPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + tokensPerProjectPerHourBuilder_; + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + public boolean hasTokensPerProjectPerHour() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * + * @return The tokensPerProjectPerHour. + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerProjectPerHour() { + if (tokensPerProjectPerHourBuilder_ == null) { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } else { + return tokensPerProjectPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder setTokensPerProjectPerHour( + com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (tokensPerProjectPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerProjectPerHour_ = value; + } else { + tokensPerProjectPerHourBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder setTokensPerProjectPerHour( + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHour_ = builderForValue.build(); + } else { + tokensPerProjectPerHourBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder mergeTokensPerProjectPerHour( + com.google.analytics.admin.v1beta.AccessQuotaStatus value) { + if (tokensPerProjectPerHourBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && tokensPerProjectPerHour_ != null + && tokensPerProjectPerHour_ + != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { + getTokensPerProjectPerHourBuilder().mergeFrom(value); + } else { + tokensPerProjectPerHour_ = value; + } + } else { + tokensPerProjectPerHourBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public Builder clearTokensPerProjectPerHour() { + bitField0_ = (bitField0_ & ~0x00000010); + tokensPerProjectPerHour_ = null; + if (tokensPerProjectPerHourBuilder_ != null) { + tokensPerProjectPerHourBuilder_.dispose(); + tokensPerProjectPerHourBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder + getTokensPerProjectPerHourBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getTokensPerProjectPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder() { + if (tokensPerProjectPerHourBuilder_ != null) { + return tokensPerProjectPerHourBuilder_.getMessageOrBuilder(); + } else { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + } + /** + * + * + *
+     * Properties can use up to 25% of their tokens per project per hour. This
+     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+     * hour. An API request consumes a single number of tokens, and that number is
+     * deducted from all of the hourly, daily, and per project hourly quotas.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> + getTokensPerProjectPerHourFieldBuilder() { + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuotaStatus, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( + getTokensPerProjectPerHour(), getParentForChildren(), isClean()); + tokensPerProjectPerHour_ = null; + } + return tokensPerProjectPerHourBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessQuota) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessQuota) + private static final com.google.analytics.admin.v1beta.AccessQuota DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessQuota(); + } + + public static com.google.analytics.admin.v1beta.AccessQuota getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessQuota parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuota getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaOrBuilder.java new file mode 100644 index 000000000000..a40ad8f3fd68 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaOrBuilder.java @@ -0,0 +1,226 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessQuotaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessQuota) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * + * @return Whether the tokensPerDay field is set. + */ + boolean hasTokensPerDay(); + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerDay(); + /** + * + * + *
+   * Properties can use 250,000 tokens per day. Most requests consume fewer than
+   * 10 tokens.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; + */ + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder(); + + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * + * @return Whether the tokensPerHour field is set. + */ + boolean hasTokensPerHour(); + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerHour(); + /** + * + * + *
+   * Properties can use 50,000 tokens per hour. An API request consumes a single
+   * number of tokens, and that number is deducted from all of the hourly,
+   * daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; + */ + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder(); + + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * + * @return Whether the concurrentRequests field is set. + */ + boolean hasConcurrentRequests(); + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + com.google.analytics.admin.v1beta.AccessQuotaStatus getConcurrentRequests(); + /** + * + * + *
+   * Properties can use up to 50 concurrent requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; + */ + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder(); + + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return Whether the serverErrorsPerProjectPerHour field is set. + */ + boolean hasServerErrorsPerProjectPerHour(); + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + com.google.analytics.admin.v1beta.AccessQuotaStatus getServerErrorsPerProjectPerHour(); + /** + * + * + *
+   * Properties and cloud project pairs can have up to 50 server errors per
+   * hour.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; + * + */ + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder(); + + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + boolean hasTokensPerProjectPerHour(); + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + * + * @return The tokensPerProjectPerHour. + */ + com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerProjectPerHour(); + /** + * + * + *
+   * Properties can use up to 25% of their tokens per project per hour. This
+   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
+   * hour. An API request consumes a single number of tokens, and that number is
+   * deducted from all of the hourly, daily, and per project hourly quotas.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; + */ + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatus.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatus.java new file mode 100644 index 000000000000..e148bc7bcfc7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatus.java @@ -0,0 +1,627 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Current state for a particular quota group.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessQuotaStatus} + */ +public final class AccessQuotaStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessQuotaStatus) + AccessQuotaStatusOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessQuotaStatus.newBuilder() to construct. + private AccessQuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessQuotaStatus() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessQuotaStatus(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessQuotaStatus.class, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder.class); + } + + public static final int CONSUMED_FIELD_NUMBER = 1; + private int consumed_ = 0; + /** + * + * + *
+   * Quota consumed by this request.
+   * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + @java.lang.Override + public int getConsumed() { + return consumed_; + } + + public static final int REMAINING_FIELD_NUMBER = 2; + private int remaining_ = 0; + /** + * + * + *
+   * Quota remaining after this request.
+   * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + @java.lang.Override + public int getRemaining() { + return remaining_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (consumed_ != 0) { + output.writeInt32(1, consumed_); + } + if (remaining_ != 0) { + output.writeInt32(2, remaining_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (consumed_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, consumed_); + } + if (remaining_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, remaining_); + } + size += 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.admin.v1beta.AccessQuotaStatus)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessQuotaStatus other = + (com.google.analytics.admin.v1beta.AccessQuotaStatus) obj; + + if (getConsumed() != other.getConsumed()) return false; + if (getRemaining() != other.getRemaining()) 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) + CONSUMED_FIELD_NUMBER; + hash = (53 * hash) + getConsumed(); + hash = (37 * hash) + REMAINING_FIELD_NUMBER; + hash = (53 * hash) + getRemaining(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessQuotaStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Current state for a particular quota group.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessQuotaStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessQuotaStatus) + com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessQuotaStatus.class, + com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessQuotaStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + consumed_ = 0; + remaining_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus build() { + com.google.analytics.admin.v1beta.AccessQuotaStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus buildPartial() { + com.google.analytics.admin.v1beta.AccessQuotaStatus result = + new com.google.analytics.admin.v1beta.AccessQuotaStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessQuotaStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.consumed_ = consumed_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.remaining_ = remaining_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessQuotaStatus) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessQuotaStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessQuotaStatus other) { + if (other == com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) + return this; + if (other.getConsumed() != 0) { + setConsumed(other.getConsumed()); + } + if (other.getRemaining() != 0) { + setRemaining(other.getRemaining()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + consumed_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + remaining_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int consumed_; + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + @java.lang.Override + public int getConsumed() { + return consumed_; + } + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @param value The consumed to set. + * @return This builder for chaining. + */ + public Builder setConsumed(int value) { + + consumed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Quota consumed by this request.
+     * 
+ * + * int32 consumed = 1; + * + * @return This builder for chaining. + */ + public Builder clearConsumed() { + bitField0_ = (bitField0_ & ~0x00000001); + consumed_ = 0; + onChanged(); + return this; + } + + private int remaining_; + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + @java.lang.Override + public int getRemaining() { + return remaining_; + } + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @param value The remaining to set. + * @return This builder for chaining. + */ + public Builder setRemaining(int value) { + + remaining_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Quota remaining after this request.
+     * 
+ * + * int32 remaining = 2; + * + * @return This builder for chaining. + */ + public Builder clearRemaining() { + bitField0_ = (bitField0_ & ~0x00000002); + remaining_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessQuotaStatus) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessQuotaStatus) + private static final com.google.analytics.admin.v1beta.AccessQuotaStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessQuotaStatus(); + } + + public static com.google.analytics.admin.v1beta.AccessQuotaStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessQuotaStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatusOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatusOrBuilder.java new file mode 100644 index 000000000000..4cb9453d116b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatusOrBuilder.java @@ -0,0 +1,51 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessQuotaStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessQuotaStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Quota consumed by this request.
+   * 
+ * + * int32 consumed = 1; + * + * @return The consumed. + */ + int getConsumed(); + + /** + * + * + *
+   * Quota remaining after this request.
+   * 
+ * + * int32 remaining = 2; + * + * @return The remaining. + */ + int getRemaining(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java new file mode 100644 index 000000000000..e17a39e72839 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java @@ -0,0 +1,395 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public final class AccessReportProto { + private AccessReportProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n1google/analytics/admin/v1beta/access_r" + + "eport.proto\022\035google.analytics.admin.v1be" + + "ta\")\n\017AccessDimension\022\026\n\016dimension_name\030" + + "\001 \001(\t\"#\n\014AccessMetric\022\023\n\013metric_name\030\001 \001" + + "(\t\"7\n\017AccessDateRange\022\022\n\nstart_date\030\001 \001(" + + "\t\022\020\n\010end_date\030\002 \001(\t\"\340\002\n\026AccessFilterExpr" + + "ession\022N\n\tand_group\030\001 \001(\01329.google.analy" + + "tics.admin.v1beta.AccessFilterExpression" + + "ListH\000\022M\n\010or_group\030\002 \001(\01329.google.analyt" + + "ics.admin.v1beta.AccessFilterExpressionL" + + "istH\000\022O\n\016not_expression\030\003 \001(\01325.google.a" + + "nalytics.admin.v1beta.AccessFilterExpres" + + "sionH\000\022D\n\raccess_filter\030\004 \001(\0132+.google.a" + + "nalytics.admin.v1beta.AccessFilterH\000B\020\n\016" + + "one_expression\"h\n\032AccessFilterExpression" + + "List\022J\n\013expressions\030\001 \003(\01325.google.analy" + + "tics.admin.v1beta.AccessFilterExpression" + + "\"\345\002\n\014AccessFilter\022J\n\rstring_filter\030\002 \001(\013" + + "21.google.analytics.admin.v1beta.AccessS" + + "tringFilterH\000\022K\n\016in_list_filter\030\003 \001(\01321." + + "google.analytics.admin.v1beta.AccessInLi" + + "stFilterH\000\022L\n\016numeric_filter\030\004 \001(\01322.goo" + + "gle.analytics.admin.v1beta.AccessNumeric" + + "FilterH\000\022L\n\016between_filter\030\005 \001(\01322.googl" + + "e.analytics.admin.v1beta.AccessBetweenFi" + + "lterH\000\022\022\n\nfield_name\030\001 \001(\tB\014\n\none_filter" + + "\"\224\002\n\022AccessStringFilter\022O\n\nmatch_type\030\001 " + + "\001(\0162;.google.analytics.admin.v1beta.Acce" + + "ssStringFilter.MatchType\022\r\n\005value\030\002 \001(\t\022" + + "\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n" + + "\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013" + + "BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS" + + "\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\"" + + "<\n\022AccessInListFilter\022\016\n\006values\030\001 \003(\t\022\026\n" + + "\016case_sensitive\030\002 \001(\010\"\252\002\n\023AccessNumericF" + + "ilter\022O\n\toperation\030\001 \001(\0162<.google.analyt" + + "ics.admin.v1beta.AccessNumericFilter.Ope" + + "ration\022:\n\005value\030\002 \001(\0132+.google.analytics" + + ".admin.v1beta.NumericValue\"\205\001\n\tOperation" + + "\022\031\n\025OPERATION_UNSPECIFIED\020\000\022\t\n\005EQUAL\020\001\022\r" + + "\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN_OR_EQUAL\020\003\022\020\n" + + "\014GREATER_THAN\020\004\022\031\n\025GREATER_THAN_OR_EQUAL" + + "\020\005\"\225\001\n\023AccessBetweenFilter\022?\n\nfrom_value" + + "\030\001 \001(\0132+.google.analytics.admin.v1beta.N" + + "umericValue\022=\n\010to_value\030\002 \001(\0132+.google.a" + + "nalytics.admin.v1beta.NumericValue\"J\n\014Nu" + + "mericValue\022\025\n\013int64_value\030\001 \001(\003H\000\022\026\n\014dou" + + "ble_value\030\002 \001(\001H\000B\013\n\tone_value\"\352\003\n\rAcces" + + "sOrderBy\022L\n\006metric\030\001 \001(\0132:.google.analyt" + + "ics.admin.v1beta.AccessOrderBy.MetricOrd" + + "erByH\000\022R\n\tdimension\030\002 \001(\0132=.google.analy" + + "tics.admin.v1beta.AccessOrderBy.Dimensio" + + "nOrderByH\000\022\014\n\004desc\030\003 \001(\010\032$\n\rMetricOrderB" + + "y\022\023\n\013metric_name\030\001 \001(\t\032\362\001\n\020DimensionOrde" + + "rBy\022\026\n\016dimension_name\030\001 \001(\t\022[\n\norder_typ" + + "e\030\002 \001(\0162G.google.analytics.admin.v1beta." + + "AccessOrderBy.DimensionOrderBy.OrderType" + + "\"i\n\tOrderType\022\032\n\026ORDER_TYPE_UNSPECIFIED\020" + + "\000\022\020\n\014ALPHANUMERIC\020\001\022!\n\035CASE_INSENSITIVE_" + + "ALPHANUMERIC\020\002\022\013\n\007NUMERIC\020\003B\016\n\014one_order" + + "_by\"/\n\025AccessDimensionHeader\022\026\n\016dimensio" + + "n_name\030\001 \001(\t\")\n\022AccessMetricHeader\022\023\n\013me" + + "tric_name\030\001 \001(\t\"\243\001\n\tAccessRow\022M\n\020dimensi" + + "on_values\030\001 \003(\01323.google.analytics.admin" + + ".v1beta.AccessDimensionValue\022G\n\rmetric_v" + + "alues\030\002 \003(\01320.google.analytics.admin.v1b" + + "eta.AccessMetricValue\"%\n\024AccessDimension" + + "Value\022\r\n\005value\030\001 \001(\t\"\"\n\021AccessMetricValu" + + "e\022\r\n\005value\030\001 \001(\t\"\246\003\n\013AccessQuota\022H\n\016toke" + + "ns_per_day\030\001 \001(\01320.google.analytics.admi" + + "n.v1beta.AccessQuotaStatus\022I\n\017tokens_per" + + "_hour\030\002 \001(\01320.google.analytics.admin.v1b" + + "eta.AccessQuotaStatus\022M\n\023concurrent_requ" + + "ests\030\003 \001(\01320.google.analytics.admin.v1be" + + "ta.AccessQuotaStatus\022\\\n\"server_errors_pe" + + "r_project_per_hour\030\004 \001(\01320.google.analyt" + + "ics.admin.v1beta.AccessQuotaStatus\022U\n\033to" + + "kens_per_project_per_hour\030\005 \001(\01320.google" + + ".analytics.admin.v1beta.AccessQuotaStatu" + + "s\"8\n\021AccessQuotaStatus\022\020\n\010consumed\030\001 \001(\005" + + "\022\021\n\tremaining\030\002 \001(\005B|\n!com.google.analyt" + + "ics.admin.v1betaB\021AccessReportProtoP\001ZBg" + + "oogle.golang.org/genproto/googleapis/ana" + + "lytics/admin/v1beta;adminb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor, + new java.lang.String[] { + "DimensionName", + }); + internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", + }); + internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "AccessFilter", "OneExpression", + }); + internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor, + new java.lang.String[] { + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "FieldName", + "OneFilter", + }); + internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor, + new java.lang.String[] { + "Values", "CaseSensitive", + }); + internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor, + new java.lang.String[] { + "Operation", "Value", + }); + internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor, + new java.lang.String[] { + "FromValue", "ToValue", + }); + internal_static_google_analytics_admin_v1beta_NumericValue_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_NumericValue_descriptor, + new java.lang.String[] { + "Int64Value", "DoubleValue", "OneValue", + }); + internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor, + new java.lang.String[] { + "Metric", "Dimension", "Desc", "OneOrderBy", + }); + internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor = + internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor = + internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor, + new java.lang.String[] { + "DimensionName", "OrderType", + }); + internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor, + new java.lang.String[] { + "DimensionName", + }); + internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor, + new java.lang.String[] { + "MetricName", + }); + internal_static_google_analytics_admin_v1beta_AccessRow_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessRow_descriptor, + new java.lang.String[] { + "DimensionValues", "MetricValues", + }); + internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor, + new java.lang.String[] { + "Value", + }); + internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor, + new java.lang.String[] { + "TokensPerDay", + "TokensPerHour", + "ConcurrentRequests", + "ServerErrorsPerProjectPerHour", + "TokensPerProjectPerHour", + }); + internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor, + new java.lang.String[] { + "Consumed", "Remaining", + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRow.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRow.java new file mode 100644 index 000000000000..c605ea031a17 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRow.java @@ -0,0 +1,1516 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Access report data for each row.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessRow} + */ +public final class AccessRow extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessRow) + AccessRowOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessRow.newBuilder() to construct. + private AccessRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessRow() { + dimensionValues_ = java.util.Collections.emptyList(); + metricValues_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessRow(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessRow.class, + com.google.analytics.admin.v1beta.AccessRow.Builder.class); + } + + public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dimensionValues_; + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + @java.lang.Override + public java.util.List + getDimensionValuesList() { + return dimensionValues_; + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + @java.lang.Override + public java.util.List + getDimensionValuesOrBuilderList() { + return dimensionValues_; + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + @java.lang.Override + public int getDimensionValuesCount() { + return dimensionValues_.size(); + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionValue getDimensionValues(int index) { + return dimensionValues_.get(index); + } + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder + getDimensionValuesOrBuilder(int index) { + return dimensionValues_.get(index); + } + + public static final int METRIC_VALUES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List metricValues_; + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List getMetricValuesList() { + return metricValues_; + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List + getMetricValuesOrBuilderList() { + return metricValues_; + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public int getMetricValuesCount() { + return metricValues_.size(); + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricValue getMetricValues(int index) { + return metricValues_.get(index); + } + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder getMetricValuesOrBuilder( + int index) { + return metricValues_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensionValues_.size(); i++) { + output.writeMessage(1, dimensionValues_.get(i)); + } + for (int i = 0; i < metricValues_.size(); i++) { + output.writeMessage(2, metricValues_.get(i)); + } + 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)); + } + for (int i = 0; i < metricValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricValues_.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.admin.v1beta.AccessRow)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessRow other = + (com.google.analytics.admin.v1beta.AccessRow) obj; + + if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; + if (!getMetricValuesList().equals(other.getMetricValuesList())) 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(); + } + if (getMetricValuesCount() > 0) { + hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getMetricValuesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessRow parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessRow prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Access report data for each row.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessRow} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessRow) + com.google.analytics.admin.v1beta.AccessRowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessRow.class, + com.google.analytics.admin.v1beta.AccessRow.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessRow.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + } else { + dimensionValues_ = null; + dimensionValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (metricValuesBuilder_ == null) { + metricValues_ = java.util.Collections.emptyList(); + } else { + metricValues_ = null; + metricValuesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessRow getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessRow build() { + com.google.analytics.admin.v1beta.AccessRow result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessRow buildPartial() { + com.google.analytics.admin.v1beta.AccessRow result = + new com.google.analytics.admin.v1beta.AccessRow(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.AccessRow result) { + if (dimensionValuesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionValues_ = dimensionValues_; + } else { + result.dimensionValues_ = dimensionValuesBuilder_.build(); + } + if (metricValuesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricValues_ = java.util.Collections.unmodifiableList(metricValues_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricValues_ = metricValues_; + } else { + result.metricValues_ = metricValuesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessRow result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessRow) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessRow) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessRow other) { + if (other == com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance()) return this; + if (dimensionValuesBuilder_ == null) { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValues_.isEmpty()) { + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionValuesIsMutable(); + dimensionValues_.addAll(other.dimensionValues_); + } + onChanged(); + } + } else { + if (!other.dimensionValues_.isEmpty()) { + if (dimensionValuesBuilder_.isEmpty()) { + dimensionValuesBuilder_.dispose(); + dimensionValuesBuilder_ = null; + dimensionValues_ = other.dimensionValues_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionValuesFieldBuilder() + : null; + } else { + dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); + } + } + } + if (metricValuesBuilder_ == null) { + if (!other.metricValues_.isEmpty()) { + if (metricValues_.isEmpty()) { + metricValues_ = other.metricValues_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricValuesIsMutable(); + metricValues_.addAll(other.metricValues_); + } + onChanged(); + } + } else { + if (!other.metricValues_.isEmpty()) { + if (metricValuesBuilder_.isEmpty()) { + metricValuesBuilder_.dispose(); + metricValuesBuilder_ = null; + metricValues_ = other.metricValues_; + bitField0_ = (bitField0_ & ~0x00000002); + metricValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricValuesFieldBuilder() + : null; + } else { + metricValuesBuilder_.addAllMessages(other.metricValues_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.AccessDimensionValue m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessDimensionValue.parser(), + extensionRegistry); + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(m); + } else { + dimensionValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1beta.AccessMetricValue m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessMetricValue.parser(), + extensionRegistry); + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(m); + } else { + metricValuesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + dimensionValues_ = java.util.Collections.emptyList(); + + private void ensureDimensionValuesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionValues_ = + new java.util.ArrayList( + dimensionValues_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimensionValue, + com.google.analytics.admin.v1beta.AccessDimensionValue.Builder, + com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder> + dimensionValuesBuilder_; + + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List + getDimensionValuesList() { + if (dimensionValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionValues_); + } else { + return dimensionValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public int getDimensionValuesCount() { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.size(); + } else { + return dimensionValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionValue getDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder setDimensionValues( + int index, com.google.analytics.admin.v1beta.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder setDimensionValues( + int index, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + com.google.analytics.admin.v1beta.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + int index, com.google.analytics.admin.v1beta.AccessDimensionValue value) { + if (dimensionValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, value); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + com.google.analytics.admin.v1beta.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addDimensionValues( + int index, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder builderForValue) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder addAllDimensionValues( + java.lang.Iterable + values) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionValues_); + onChanged(); + } else { + dimensionValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder clearDimensionValues() { + if (dimensionValuesBuilder_ == null) { + dimensionValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public Builder removeDimensionValues(int index) { + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.remove(index); + onChanged(); + } else { + dimensionValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionValue.Builder getDimensionValuesBuilder( + int index) { + return getDimensionValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder + getDimensionValuesOrBuilder(int index) { + if (dimensionValuesBuilder_ == null) { + return dimensionValues_.get(index); + } else { + return dimensionValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List + getDimensionValuesOrBuilderList() { + if (dimensionValuesBuilder_ != null) { + return dimensionValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionValues_); + } + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionValue.Builder + addDimensionValuesBuilder() { + return getDimensionValuesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionValue.Builder addDimensionValuesBuilder( + int index) { + return getDimensionValuesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of dimension values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + * + */ + public java.util.List + getDimensionValuesBuilderList() { + return getDimensionValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimensionValue, + com.google.analytics.admin.v1beta.AccessDimensionValue.Builder, + com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder> + getDimensionValuesFieldBuilder() { + if (dimensionValuesBuilder_ == null) { + dimensionValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimensionValue, + com.google.analytics.admin.v1beta.AccessDimensionValue.Builder, + com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder>( + dimensionValues_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionValues_ = null; + } + return dimensionValuesBuilder_; + } + + private java.util.List metricValues_ = + java.util.Collections.emptyList(); + + private void ensureMetricValuesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricValues_ = + new java.util.ArrayList( + metricValues_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetricValue, + com.google.analytics.admin.v1beta.AccessMetricValue.Builder, + com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder> + metricValuesBuilder_; + + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesList() { + if (metricValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricValues_); + } else { + return metricValuesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public int getMetricValuesCount() { + if (metricValuesBuilder_ == null) { + return metricValues_.size(); + } else { + return metricValuesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricValue getMetricValues(int index) { + if (metricValuesBuilder_ == null) { + return metricValues_.get(index); + } else { + return metricValuesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder setMetricValues( + int index, com.google.analytics.admin.v1beta.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.set(index, value); + onChanged(); + } else { + metricValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder setMetricValues( + int index, com.google.analytics.admin.v1beta.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.set(index, builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues(com.google.analytics.admin.v1beta.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.add(value); + onChanged(); + } else { + metricValuesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + int index, com.google.analytics.admin.v1beta.AccessMetricValue value) { + if (metricValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricValuesIsMutable(); + metricValues_.add(index, value); + onChanged(); + } else { + metricValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + com.google.analytics.admin.v1beta.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder addMetricValues( + int index, com.google.analytics.admin.v1beta.AccessMetricValue.Builder builderForValue) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(index, builderForValue.build()); + onChanged(); + } else { + metricValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder addAllMetricValues( + java.lang.Iterable values) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricValues_); + onChanged(); + } else { + metricValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder clearMetricValues() { + if (metricValuesBuilder_ == null) { + metricValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricValuesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public Builder removeMetricValues(int index) { + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.remove(index); + onChanged(); + } else { + metricValuesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricValue.Builder getMetricValuesBuilder( + int index) { + return getMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder getMetricValuesOrBuilder( + int index) { + if (metricValuesBuilder_ == null) { + return metricValues_.get(index); + } else { + return metricValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesOrBuilderList() { + if (metricValuesBuilder_ != null) { + return metricValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricValues_); + } + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricValue.Builder addMetricValuesBuilder() { + return getMetricValuesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricValue.Builder addMetricValuesBuilder( + int index) { + return getMetricValuesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of metric values. These values are in the same order as specified
+     * in the request.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesBuilderList() { + return getMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetricValue, + com.google.analytics.admin.v1beta.AccessMetricValue.Builder, + com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder> + getMetricValuesFieldBuilder() { + if (metricValuesBuilder_ == null) { + metricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetricValue, + com.google.analytics.admin.v1beta.AccessMetricValue.Builder, + com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder>( + metricValues_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metricValues_ = null; + } + return metricValuesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessRow) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessRow) + private static final com.google.analytics.admin.v1beta.AccessRow DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessRow(); + } + + public static com.google.analytics.admin.v1beta.AccessRow getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessRow getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRowOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRowOrBuilder.java new file mode 100644 index 000000000000..0136adffb130 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRowOrBuilder.java @@ -0,0 +1,140 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessRowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessRow) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + java.util.List getDimensionValuesList(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + com.google.analytics.admin.v1beta.AccessDimensionValue getDimensionValues(int index); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + int getDimensionValuesCount(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + java.util.List + getDimensionValuesOrBuilderList(); + /** + * + * + *
+   * List of dimension values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; + */ + com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( + int index); + + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + java.util.List getMetricValuesList(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + com.google.analytics.admin.v1beta.AccessMetricValue getMetricValues(int index); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + int getMetricValuesCount(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + java.util.List + getMetricValuesOrBuilderList(); + /** + * + * + *
+   * List of metric values. These values are in the same order as specified
+   * in the request.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; + */ + com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder getMetricValuesOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilter.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilter.java new file mode 100644 index 000000000000..e5697bad5a9d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilter.java @@ -0,0 +1,1121 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The filter for strings.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessStringFilter} + */ +public final class AccessStringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessStringFilter) + AccessStringFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccessStringFilter.newBuilder() to construct. + private AccessStringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccessStringFilter() { + matchType_ = 0; + value_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccessStringFilter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessStringFilter.class, + com.google.analytics.admin.v1beta.AccessStringFilter.Builder.class); + } + + /** + * + * + *
+   * The match type of a string filter.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.AccessStringFilter.MatchType} + */ + public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + MATCH_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Exact match of the string value.
+     * 
+ * + * EXACT = 1; + */ + EXACT(1), + /** + * + * + *
+     * Begins with the string value.
+     * 
+ * + * BEGINS_WITH = 2; + */ + BEGINS_WITH(2), + /** + * + * + *
+     * Ends with the string value.
+     * 
+ * + * ENDS_WITH = 3; + */ + ENDS_WITH(3), + /** + * + * + *
+     * Contains the string value.
+     * 
+ * + * CONTAINS = 4; + */ + CONTAINS(4), + /** + * + * + *
+     * Full match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+     * Partial match for the regular expression with the string value.
+     * 
+ * + * PARTIAL_REGEXP = 6; + */ + PARTIAL_REGEXP(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified
+     * 
+ * + * MATCH_TYPE_UNSPECIFIED = 0; + */ + public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Exact match of the string value.
+     * 
+ * + * EXACT = 1; + */ + public static final int EXACT_VALUE = 1; + /** + * + * + *
+     * Begins with the string value.
+     * 
+ * + * BEGINS_WITH = 2; + */ + public static final int BEGINS_WITH_VALUE = 2; + /** + * + * + *
+     * Ends with the string value.
+     * 
+ * + * ENDS_WITH = 3; + */ + public static final int ENDS_WITH_VALUE = 3; + /** + * + * + *
+     * Contains the string value.
+     * 
+ * + * CONTAINS = 4; + */ + public static final int CONTAINS_VALUE = 4; + /** + * + * + *
+     * Full match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+     * Partial match for the regular expression with the string value.
+     * 
+ * + * PARTIAL_REGEXP = 6; + */ + public static final int PARTIAL_REGEXP_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MatchType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static MatchType forNumber(int value) { + switch (value) { + case 0: + return MATCH_TYPE_UNSPECIFIED; + case 1: + return EXACT; + case 2: + return BEGINS_WITH; + case 3: + return ENDS_WITH; + case 4: + return CONTAINS; + case 5: + return FULL_REGEXP; + case 6: + return PARTIAL_REGEXP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MatchType findValueByNumber(int number) { + return MatchType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessStringFilter.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final MatchType[] VALUES = values(); + + public static MatchType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MatchType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.AccessStringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_ = 0; + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter.MatchType getMatchType() { + com.google.analytics.admin.v1beta.AccessStringFilter.MatchType result = + com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object value_ = ""; + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + @java.lang.Override + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } + } + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_ = false; + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (matchType_ + != com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (matchType_ + != com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); + } + size += 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.admin.v1beta.AccessStringFilter)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccessStringFilter other = + (com.google.analytics.admin.v1beta.AccessStringFilter) obj; + + if (matchType_ != other.matchType_) return false; + if (!getValue().equals(other.getValue())) return false; + if (getCaseSensitive() != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; + hash = (53 * hash) + matchType_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessStringFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The filter for strings.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccessStringFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessStringFilter) + com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccessStringFilter.class, + com.google.analytics.admin.v1beta.AccessStringFilter.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccessStringFilter.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + matchType_ = 0; + value_ = ""; + caseSensitive_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter build() { + com.google.analytics.admin.v1beta.AccessStringFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter buildPartial() { + com.google.analytics.admin.v1beta.AccessStringFilter result = + new com.google.analytics.admin.v1beta.AccessStringFilter(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccessStringFilter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.matchType_ = matchType_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.caseSensitive_ = caseSensitive_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccessStringFilter) { + return mergeFrom((com.google.analytics.admin.v1beta.AccessStringFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessStringFilter other) { + if (other == com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance()) + return this; + if (other.matchType_ != 0) { + setMatchTypeValue(other.getMatchTypeValue()); + } + if (!other.getValue().isEmpty()) { + value_ = other.value_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int matchType_ = 0; + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + @java.lang.Override + public int getMatchTypeValue() { + return matchType_; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @param value The enum numeric value on the wire for matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchTypeValue(int value) { + matchType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter.MatchType getMatchType() { + com.google.analytics.admin.v1beta.AccessStringFilter.MatchType result = + com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.forNumber(matchType_); + return result == null + ? com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType( + com.google.analytics.admin.v1beta.AccessStringFilter.MatchType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @return This builder for chaining. + */ + public Builder clearMatchType() { + bitField0_ = (bitField0_ & ~0x00000001); + matchType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object value_ = ""; + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return The value. + */ + public java.lang.String getValue() { + java.lang.Object ref = value_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + value_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + public com.google.protobuf.ByteString getValueBytes() { + java.lang.Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + value_ = getDefaultInstance().getValue(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The string value used for the matching.
+     * 
+ * + * string value = 2; + * + * @param value The bytes for value to set. + * @return This builder for chaining. + */ + public Builder setValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean caseSensitive_; + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the string value is case sensitive.
+     * 
+ * + * bool case_sensitive = 3; + * + * @return This builder for chaining. + */ + public Builder clearCaseSensitive() { + bitField0_ = (bitField0_ & ~0x00000004); + caseSensitive_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessStringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessStringFilter) + private static final com.google.analytics.admin.v1beta.AccessStringFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessStringFilter(); + } + + public static com.google.analytics.admin.v1beta.AccessStringFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessStringFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessStringFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilterOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilterOrBuilder.java new file mode 100644 index 000000000000..cdb2743102f6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilterOrBuilder.java @@ -0,0 +1,88 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface AccessStringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessStringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @return The enum numeric value on the wire for matchType. + */ + int getMatchTypeValue(); + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + com.google.analytics.admin.v1beta.AccessStringFilter.MatchType getMatchType(); + + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The value. + */ + java.lang.String getValue(); + /** + * + * + *
+   * The string value used for the matching.
+   * 
+ * + * string value = 2; + * + * @return The bytes for value. + */ + com.google.protobuf.ByteString getValueBytes(); + + /** + * + * + *
+   * If true, the string value is case sensitive.
+   * 
+ * + * bool case_sensitive = 3; + * + * @return The caseSensitive. + */ + boolean getCaseSensitive(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java new file mode 100644 index 000000000000..fcedb49cf202 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java @@ -0,0 +1,1660 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A resource message representing a Google Analytics account.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.Account} + */ +public final class Account extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.Account) + AccountOrBuilder { + private static final long serialVersionUID = 0L; + // Use Account.newBuilder() to construct. + private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Account() { + name_ = ""; + displayName_ = ""; + regionCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Account(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Account_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.Account.class, + com.google.analytics.admin.v1beta.Account.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REGION_CODE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object regionCode_ = ""; + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The regionCode. + */ + @java.lang.Override + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + 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(); + regionCode_ = s; + return s; + } + } + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The bytes for regionCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DELETED_FIELD_NUMBER = 6; + private boolean deleted_ = false; + /** + * + * + *
+   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+   * accounts are excluded from List results unless specifically requested.
+   * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + 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 (createTime_ != null) { + output.writeMessage(2, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionCode_); + } + if (deleted_ != false) { + output.writeBool(6, deleted_); + } + 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 (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionCode_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, deleted_); + } + 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.admin.v1beta.Account)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.Account other = + (com.google.analytics.admin.v1beta.Account) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRegionCode().equals(other.getRegionCode())) return false; + if (getDeleted() != other.getDeleted()) 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(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; + hash = (53 * hash) + getRegionCode().hashCode(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.Account parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Account parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.Account parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.Account parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.Account prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a Google Analytics account.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.Account} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.Account) + com.google.analytics.admin.v1beta.AccountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Account_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.Account.class, + com.google.analytics.admin.v1beta.Account.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.Account.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + displayName_ = ""; + regionCode_ = ""; + deleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Account_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Account getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Account build() { + com.google.analytics.admin.v1beta.Account result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Account buildPartial() { + com.google.analytics.admin.v1beta.Account result = + new com.google.analytics.admin.v1beta.Account(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.Account result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.regionCode_ = regionCode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.deleted_ = deleted_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.Account) { + return mergeFrom((com.google.analytics.admin.v1beta.Account) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.Account other) { + if (other == com.google.analytics.admin.v1beta.Account.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getRegionCode().isEmpty()) { + regionCode_ = other.regionCode_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + regionCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + deleted_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.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. Resource name of this account.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this account was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when account payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this account.
+     * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object regionCode_ = ""; + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @return The regionCode. + */ + public java.lang.String getRegionCode() { + java.lang.Object ref = regionCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + regionCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @return The bytes for regionCode. + */ + public com.google.protobuf.ByteString getRegionCodeBytes() { + java.lang.Object ref = regionCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + regionCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @param value The regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + regionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @return This builder for chaining. + */ + public Builder clearRegionCode() { + regionCode_ = getDefaultInstance().getRegionCode(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Country of business. Must be a Unicode CLDR region code.
+     * 
+ * + * string region_code = 5; + * + * @param value The bytes for regionCode to set. + * @return This builder for chaining. + */ + public Builder setRegionCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + regionCode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean deleted_; + /** + * + * + *
+     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+     * accounts are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + /** + * + * + *
+     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+     * accounts are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deleted to set. + * @return This builder for chaining. + */ + public Builder setDeleted(boolean value) { + + deleted_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+     * accounts are excluded from List results unless specifically requested.
+     * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeleted() { + bitField0_ = (bitField0_ & ~0x00000020); + deleted_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.Account) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.Account) + private static final com.google.analytics.admin.v1beta.Account DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.Account(); + } + + public static com.google.analytics.admin.v1beta.Account getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Account parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Account getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java new file mode 100644 index 000000000000..bd21f4f90793 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java @@ -0,0 +1,194 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface AccountOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.Account) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this account.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this account was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when account payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this account.
+   * 
+ * + * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The regionCode. + */ + java.lang.String getRegionCode(); + /** + * + * + *
+   * Country of business. Must be a Unicode CLDR region code.
+   * 
+ * + * string region_code = 5; + * + * @return The bytes for regionCode. + */ + com.google.protobuf.ByteString getRegionCodeBytes(); + + /** + * + * + *
+   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
+   * accounts are excluded from List results unless specifically requested.
+   * 
+ * + * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + boolean getDeleted(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java new file mode 100644 index 000000000000..41cc294b4bf8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java @@ -0,0 +1,1528 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A virtual resource representing an overview of an account and
+ * all its child GA4 properties.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccountSummary} + */ +public final class AccountSummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccountSummary) + AccountSummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use AccountSummary.newBuilder() to construct. + private AccountSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AccountSummary() { + name_ = ""; + account_ = ""; + displayName_ = ""; + propertySummaries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AccountSummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccountSummary.class, + com.google.analytics.admin.v1beta.AccountSummary.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @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 ACCOUNT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object account_ = ""; + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_SUMMARIES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List propertySummaries_; + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public java.util.List + getPropertySummariesList() { + return propertySummaries_; + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public java.util.List + getPropertySummariesOrBuilderList() { + return propertySummaries_; + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public int getPropertySummariesCount() { + return propertySummaries_.size(); + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertySummary getPropertySummaries(int index) { + return propertySummaries_.get(index); + } + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertySummaryOrBuilder getPropertySummariesOrBuilder( + int index) { + return propertySummaries_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + for (int i = 0; i < propertySummaries_.size(); i++) { + output.writeMessage(4, propertySummaries_.get(i)); + } + 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(account_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + for (int i = 0; i < propertySummaries_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, propertySummaries_.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.admin.v1beta.AccountSummary)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AccountSummary other = + (com.google.analytics.admin.v1beta.AccountSummary) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAccount().equals(other.getAccount())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getPropertySummariesList().equals(other.getPropertySummariesList())) 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) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getPropertySummariesCount() > 0) { + hash = (37 * hash) + PROPERTY_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertySummariesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.AccountSummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A virtual resource representing an overview of an account and
+   * all its child GA4 properties.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AccountSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccountSummary) + com.google.analytics.admin.v1beta.AccountSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AccountSummary.class, + com.google.analytics.admin.v1beta.AccountSummary.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.AccountSummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + account_ = ""; + displayName_ = ""; + if (propertySummariesBuilder_ == null) { + propertySummaries_ = java.util.Collections.emptyList(); + } else { + propertySummaries_ = null; + propertySummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountSummary getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountSummary build() { + com.google.analytics.admin.v1beta.AccountSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountSummary buildPartial() { + com.google.analytics.admin.v1beta.AccountSummary result = + new com.google.analytics.admin.v1beta.AccountSummary(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.AccountSummary result) { + if (propertySummariesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + propertySummaries_ = java.util.Collections.unmodifiableList(propertySummaries_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.propertySummaries_ = propertySummaries_; + } else { + result.propertySummaries_ = propertySummariesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.AccountSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.account_ = account_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AccountSummary) { + return mergeFrom((com.google.analytics.admin.v1beta.AccountSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.AccountSummary other) { + if (other == com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (propertySummariesBuilder_ == null) { + if (!other.propertySummaries_.isEmpty()) { + if (propertySummaries_.isEmpty()) { + propertySummaries_ = other.propertySummaries_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePropertySummariesIsMutable(); + propertySummaries_.addAll(other.propertySummaries_); + } + onChanged(); + } + } else { + if (!other.propertySummaries_.isEmpty()) { + if (propertySummariesBuilder_.isEmpty()) { + propertySummariesBuilder_.dispose(); + propertySummariesBuilder_ = null; + propertySummaries_ = other.propertySummaries_; + bitField0_ = (bitField0_ & ~0x00000008); + propertySummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertySummariesFieldBuilder() + : null; + } else { + propertySummariesBuilder_.addAllMessages(other.propertySummaries_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + account_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.analytics.admin.v1beta.PropertySummary m = + input.readMessage( + com.google.analytics.admin.v1beta.PropertySummary.parser(), + extensionRegistry); + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.add(m); + } else { + propertySummariesBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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; + } + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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; + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name for this account summary.
+     * Format: accountSummaries/{account_id}
+     * Example: "accountSummaries/1000"
+     * 
+ * + * string name = 1; + * + * @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 account_ = ""; + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + account_ = getDefaultInstance().getAccount(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of account referred to by this account summary
+     * Format: accounts/{account_id}
+     * Example: "accounts/1000"
+     * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + account_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the account referred to in this account summary.
+     * 
+ * + * string display_name = 3; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List propertySummaries_ = + java.util.Collections.emptyList(); + + private void ensurePropertySummariesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + propertySummaries_ = + new java.util.ArrayList( + propertySummaries_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.PropertySummary, + com.google.analytics.admin.v1beta.PropertySummary.Builder, + com.google.analytics.admin.v1beta.PropertySummaryOrBuilder> + propertySummariesBuilder_; + + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public java.util.List + getPropertySummariesList() { + if (propertySummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(propertySummaries_); + } else { + return propertySummariesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public int getPropertySummariesCount() { + if (propertySummariesBuilder_ == null) { + return propertySummaries_.size(); + } else { + return propertySummariesBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1beta.PropertySummary getPropertySummaries(int index) { + if (propertySummariesBuilder_ == null) { + return propertySummaries_.get(index); + } else { + return propertySummariesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder setPropertySummaries( + int index, com.google.analytics.admin.v1beta.PropertySummary value) { + if (propertySummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertySummariesIsMutable(); + propertySummaries_.set(index, value); + onChanged(); + } else { + propertySummariesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder setPropertySummaries( + int index, com.google.analytics.admin.v1beta.PropertySummary.Builder builderForValue) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + propertySummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries(com.google.analytics.admin.v1beta.PropertySummary value) { + if (propertySummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertySummariesIsMutable(); + propertySummaries_.add(value); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries( + int index, com.google.analytics.admin.v1beta.PropertySummary value) { + if (propertySummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertySummariesIsMutable(); + propertySummaries_.add(index, value); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries( + com.google.analytics.admin.v1beta.PropertySummary.Builder builderForValue) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.add(builderForValue.build()); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder addPropertySummaries( + int index, com.google.analytics.admin.v1beta.PropertySummary.Builder builderForValue) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + propertySummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder addAllPropertySummaries( + java.lang.Iterable values) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, propertySummaries_); + onChanged(); + } else { + propertySummariesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder clearPropertySummaries() { + if (propertySummariesBuilder_ == null) { + propertySummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + propertySummariesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public Builder removePropertySummaries(int index) { + if (propertySummariesBuilder_ == null) { + ensurePropertySummariesIsMutable(); + propertySummaries_.remove(index); + onChanged(); + } else { + propertySummariesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1beta.PropertySummary.Builder getPropertySummariesBuilder( + int index) { + return getPropertySummariesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1beta.PropertySummaryOrBuilder getPropertySummariesOrBuilder( + int index) { + if (propertySummariesBuilder_ == null) { + return propertySummaries_.get(index); + } else { + return propertySummariesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public java.util.List + getPropertySummariesOrBuilderList() { + if (propertySummariesBuilder_ != null) { + return propertySummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(propertySummaries_); + } + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1beta.PropertySummary.Builder addPropertySummariesBuilder() { + return getPropertySummariesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance()); + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public com.google.analytics.admin.v1beta.PropertySummary.Builder addPropertySummariesBuilder( + int index) { + return getPropertySummariesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance()); + } + /** + * + * + *
+     * List of summaries for child accounts of this account.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + public java.util.List + getPropertySummariesBuilderList() { + return getPropertySummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.PropertySummary, + com.google.analytics.admin.v1beta.PropertySummary.Builder, + com.google.analytics.admin.v1beta.PropertySummaryOrBuilder> + getPropertySummariesFieldBuilder() { + if (propertySummariesBuilder_ == null) { + propertySummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.PropertySummary, + com.google.analytics.admin.v1beta.PropertySummary.Builder, + com.google.analytics.admin.v1beta.PropertySummaryOrBuilder>( + propertySummaries_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + propertySummaries_ = null; + } + return propertySummariesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccountSummary) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccountSummary) + private static final com.google.analytics.admin.v1beta.AccountSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccountSummary(); + } + + public static com.google.analytics.admin.v1beta.AccountSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccountSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java new file mode 100644 index 000000000000..5a580dc99c0e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java @@ -0,0 +1,161 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface AccountSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccountSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Resource name for this account summary.
+   * Format: accountSummaries/{account_id}
+   * Example: "accountSummaries/1000"
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Resource name of account referred to by this account summary
+   * Format: accounts/{account_id}
+   * Example: "accounts/1000"
+   * 
+ * + * string account = 2 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); + + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Display name for the account referred to in this account summary.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + java.util.List getPropertySummariesList(); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + com.google.analytics.admin.v1beta.PropertySummary getPropertySummaries(int index); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + int getPropertySummariesCount(); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + java.util.List + getPropertySummariesOrBuilderList(); + /** + * + * + *
+   * List of summaries for child accounts of this account.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; + */ + com.google.analytics.admin.v1beta.PropertySummaryOrBuilder getPropertySummariesOrBuilder( + int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java new file mode 100644 index 000000000000..3d5865a95ae6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java @@ -0,0 +1,884 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for AcknowledgeUserDataCollection RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} + */ +public final class AcknowledgeUserDataCollectionRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) + AcknowledgeUserDataCollectionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcknowledgeUserDataCollectionRequest.newBuilder() to construct. + private AcknowledgeUserDataCollectionRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcknowledgeUserDataCollectionRequest() { + property_ = ""; + acknowledgement_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcknowledgeUserDataCollectionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.class, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object acknowledgement_ = ""; + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + @java.lang.Override + public java.lang.String getAcknowledgement() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acknowledgement_ = s; + return s; + } + } + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAcknowledgementBytes() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acknowledgement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgement_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acknowledgement_); + } + size += 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.admin.v1beta.AcknowledgeUserDataCollectionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest other = + (com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getAcknowledgement().equals(other.getAcknowledgement())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; + hash = (53 * hash) + getAcknowledgement().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for AcknowledgeUserDataCollection RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.class, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + acknowledgement_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest build() { + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest buildPartial() { + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest result = + new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.acknowledgement_ = acknowledgement_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest other) { + if (other + == com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + .getDefaultInstance()) return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAcknowledgement().isEmpty()) { + acknowledgement_ = other.acknowledgement_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + acknowledgement_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property for which to acknowledge user data collection.
+     * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object acknowledgement_ = ""; + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + public java.lang.String getAcknowledgement() { + java.lang.Object ref = acknowledgement_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + acknowledgement_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + public com.google.protobuf.ByteString getAcknowledgementBytes() { + java.lang.Object ref = acknowledgement_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + acknowledgement_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The acknowledgement to set. + * @return This builder for chaining. + */ + public Builder setAcknowledgement(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + acknowledgement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAcknowledgement() { + acknowledgement_ = getDefaultInstance().getAcknowledgement(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An acknowledgement that the caller of this method understands the
+     * terms of user data collection.
+     *
+     * This field must contain the exact value:
+     * "I acknowledge that I have the necessary privacy disclosures and rights
+     * from my end users for the collection and processing of their data,
+     * including the association of such data with the visitation information
+     * Google Analytics collects from my site and/or app property."
+     * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for acknowledgement to set. + * @return This builder for chaining. + */ + public Builder setAcknowledgementBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + acknowledgement_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) + private static final com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest(); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeUserDataCollectionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java new file mode 100644 index 000000000000..9cd761e861d7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java @@ -0,0 +1,93 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface AcknowledgeUserDataCollectionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Required. The property for which to acknowledge user data collection.
+   * 
+ * + * + * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The acknowledgement. + */ + java.lang.String getAcknowledgement(); + /** + * + * + *
+   * Required. An acknowledgement that the caller of this method understands the
+   * terms of user data collection.
+   *
+   * This field must contain the exact value:
+   * "I acknowledge that I have the necessary privacy disclosures and rights
+   * from my end users for the collection and processing of their data,
+   * including the association of such data with the visitation information
+   * Google Analytics collects from my site and/or app property."
+   * 
+ * + * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for acknowledgement. + */ + com.google.protobuf.ByteString getAcknowledgementBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java new file mode 100644 index 000000000000..a67e7e79b92e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java @@ -0,0 +1,448 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for AcknowledgeUserDataCollection RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} + */ +public final class AcknowledgeUserDataCollectionResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) + AcknowledgeUserDataCollectionResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use AcknowledgeUserDataCollectionResponse.newBuilder() to construct. + private AcknowledgeUserDataCollectionResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AcknowledgeUserDataCollectionResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AcknowledgeUserDataCollectionResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.class, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.Builder.class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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.admin.v1beta.AcknowledgeUserDataCollectionResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse other = + (com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) 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.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for AcknowledgeUserDataCollection RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.class, + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse build() { + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse buildPartial() { + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse result = + new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) { + return mergeFrom( + (com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse other) { + if (other + == com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) + private static final com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse(); + } + + public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AcknowledgeUserDataCollectionResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java new file mode 100644 index 000000000000..0869ce94c417 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface AcknowledgeUserDataCollectionResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java new file mode 100644 index 000000000000..ba2d43cef228 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java @@ -0,0 +1,198 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Types of actions that may change a resource.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.ActionType} + */ +public enum ActionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + ACTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + UPDATED(2), + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + DELETED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + public static final int UPDATED_VALUE = 2; + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + public static final int DELETED_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 ActionType 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 ActionType forNumber(int value) { + switch (value) { + case 0: + return ACTION_TYPE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return UPDATED; + case 3: + return DELETED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ActionType findValueByNumber(int number) { + return ActionType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(3); + } + + private static final ActionType[] VALUES = values(); + + public static ActionType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ActionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ActionType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java new file mode 100644 index 000000000000..5a9c6db338b2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java @@ -0,0 +1,199 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Different kinds of actors that can make changes to Google Analytics
+ * resources.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.ActorType} + */ +public enum ActorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + ACTOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + USER(1), + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + SUPPORT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTOR_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + public static final int SUPPORT_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 ActorType 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 ActorType forNumber(int value) { + switch (value) { + case 0: + return ACTOR_TYPE_UNSPECIFIED; + case 1: + return USER; + case 2: + return SYSTEM; + case 3: + return SUPPORT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ActorType findValueByNumber(int number) { + return ActorType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(2); + } + + private static final ActorType[] VALUES = values(); + + public static ActorType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ActorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ActorType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java new file mode 100644 index 000000000000..377aa228db28 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java @@ -0,0 +1,1346 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public final class AnalyticsAdminProto { + private AnalyticsAdminProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/analytics/admin/v1beta/analytic" + + "s_admin.proto\022\035google.analytics.admin.v1" + + "beta\0321google/analytics/admin/v1beta/acce" + + "ss_report.proto\032-google/analytics/admin/" + + "v1beta/resources.proto\032\034google/api/annot" + + "ations.proto\032\027google/api/client.proto\032\037g" + + "oogle/api/field_behavior.proto\032\031google/a" + + "pi/resource.proto\032\033google/protobuf/empty" + + ".proto\032 google/protobuf/field_mask.proto" + + "\032\037google/protobuf/timestamp.proto\"\236\004\n\026Ru" + + "nAccessReportRequest\022\016\n\006entity\030\001 \001(\t\022B\n\n" + + "dimensions\030\002 \003(\0132..google.analytics.admi" + + "n.v1beta.AccessDimension\022<\n\007metrics\030\003 \003(" + + "\0132+.google.analytics.admin.v1beta.Access" + + "Metric\022C\n\013date_ranges\030\004 \003(\0132..google.ana" + + "lytics.admin.v1beta.AccessDateRange\022O\n\020d" + + "imension_filter\030\005 \001(\01325.google.analytics" + + ".admin.v1beta.AccessFilterExpression\022L\n\r" + + "metric_filter\030\006 \001(\01325.google.analytics.a" + + "dmin.v1beta.AccessFilterExpression\022\016\n\006of" + + "fset\030\007 \001(\003\022\r\n\005limit\030\010 \001(\003\022\021\n\ttime_zone\030\t" + + " \001(\t\022?\n\torder_bys\030\n \003(\0132,.google.analyti" + + "cs.admin.v1beta.AccessOrderBy\022\033\n\023return_" + + "entity_quota\030\013 \001(\010\"\273\002\n\027RunAccessReportRe" + + "sponse\022O\n\021dimension_headers\030\001 \003(\01324.goog" + + "le.analytics.admin.v1beta.AccessDimensio" + + "nHeader\022I\n\016metric_headers\030\002 \003(\01321.google" + + ".analytics.admin.v1beta.AccessMetricHead" + + "er\0226\n\004rows\030\003 \003(\0132(.google.analytics.admi" + + "n.v1beta.AccessRow\022\021\n\trow_count\030\004 \001(\005\0229\n" + + "\005quota\030\005 \001(\0132*.google.analytics.admin.v1" + + "beta.AccessQuota\"Q\n\021GetAccountRequest\022<\n" + + "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.goo" + + "gleapis.com/Account\"R\n\023ListAccountsReque" + + "st\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(" + + "\t\022\024\n\014show_deleted\030\003 \001(\010\"i\n\024ListAccountsR" + + "esponse\0228\n\010accounts\030\001 \003(\0132&.google.analy" + + "tics.admin.v1beta.Account\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"T\n\024DeleteAccountRequest\022<\n\004na" + + "me\030\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.google" + + "apis.com/Account\"\214\001\n\024UpdateAccountReques" + + "t\022=\n\007account\030\001 \001(\0132&.google.analytics.ad" + + "min.v1beta.AccountB\004\342A\001\002\0225\n\013update_mask\030" + + "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"" + + "n\n\035ProvisionAccountTicketRequest\0227\n\007acco" + + "unt\030\001 \001(\0132&.google.analytics.admin.v1bet" + + "a.Account\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Provi" + + "sionAccountTicketResponse\022\031\n\021account_tic" + + "ket_id\030\001 \001(\t\"S\n\022GetPropertyRequest\022=\n\004na" + + "me\030\001 \001(\tB/\342A\001\002\372A(\n&analyticsadmin.google" + + "apis.com/Property\"j\n\025ListPropertiesReque" + + "st\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 " + + "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030" + + "\004 \001(\010\"n\n\026ListPropertiesResponse\022;\n\nprope" + + "rties\030\001 \003(\0132\'.google.analytics.admin.v1b" + + "eta.Property\022\027\n\017next_page_token\030\002 \001(\t\"\217\001" + + "\n\025UpdatePropertyRequest\022?\n\010property\030\001 \001(" + + "\0132\'.google.analytics.admin.v1beta.Proper" + + "tyB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\004\342A\001\002\"X\n\025CreatePropert" + + "yRequest\022?\n\010property\030\001 \001(\0132\'.google.anal" + + "ytics.admin.v1beta.PropertyB\004\342A\001\002\"V\n\025Del" + + "etePropertyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A" + + "(\n&analyticsadmin.googleapis.com/Propert" + + "y\"\252\001\n\031CreateFirebaseLinkRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googlea" + + "pis.com/FirebaseLink\022H\n\rfirebase_link\030\002 " + + "\001(\0132+.google.analytics.admin.v1beta.Fire" + + "baseLinkB\004\342A\001\002\"^\n\031DeleteFirebaseLinkRequ" + + "est\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsadm" + + "in.googleapis.com/FirebaseLink\"\206\001\n\030ListF" + + "irebaseLinksRequest\022C\n\006parent\030\001 \001(\tB3\342A\001" + + "\002\372A,\022*analyticsadmin.googleapis.com/Fire" + + "baseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"y\n\031ListFirebaseLinksResponse\022C\n\016" + + "firebase_links\030\001 \003(\0132+.google.analytics." + + "admin.v1beta.FirebaseLink\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"\257\001\n\032CreateGoogleAdsLinkReques" + + "t\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsadm" + + "in.googleapis.com/GoogleAdsLink\022K\n\017googl" + + "e_ads_link\030\002 \001(\0132,.google.analytics.admi" + + "n.v1beta.GoogleAdsLinkB\004\342A\001\002\"\232\001\n\032UpdateG" + + "oogleAdsLinkRequest\022E\n\017google_ads_link\030\001" + + " \001(\0132,.google.analytics.admin.v1beta.Goo" + + "gleAdsLink\0225\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\004\342A\001\002\"`\n\032DeleteGoogl" + + "eAdsLinkRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+" + + "analyticsadmin.googleapis.com/GoogleAdsL" + + "ink\"\210\001\n\031ListGoogleAdsLinksRequest\022D\n\006par" + + "ent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googl" + + "eapis.com/GoogleAdsLink\022\021\n\tpage_size\030\002 \001" + + "(\005\022\022\n\npage_token\030\003 \001(\t\"}\n\032ListGoogleAdsL" + + "inksResponse\022F\n\020google_ads_links\030\001 \003(\0132," + + ".google.analytics.admin.v1beta.GoogleAds" + + "Link\022\027\n\017next_page_token\030\002 \001(\t\"i\n\035GetData" + + "SharingSettingsRequest\022H\n\004name\030\001 \001(\tB:\342A" + + "\001\002\372A3\n1analyticsadmin.googleapis.com/Dat" + + "aSharingSettings\"D\n\033ListAccountSummaries" + + "Request\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token" + + "\030\002 \001(\t\"\201\001\n\034ListAccountSummariesResponse\022" + + "H\n\021account_summaries\030\001 \003(\0132-.google.anal" + + "ytics.admin.v1beta.AccountSummary\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\210\001\n$AcknowledgeUserDa" + + "taCollectionRequest\022A\n\010property\030\001 \001(\tB/\342" + + "A\001\002\372A(\n&analyticsadmin.googleapis.com/Pr" + + "operty\022\035\n\017acknowledgement\030\002 \001(\tB\004\342A\001\002\"\'\n" + + "%AcknowledgeUserDataCollectionResponse\"\212" + + "\004\n SearchChangeHistoryEventsRequest\022?\n\007a" + + "ccount\030\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.go" + + "ogleapis.com/Account\022A\n\010property\030\002 \001(\tB/" + + "\342A\001\001\372A(\n&analyticsadmin.googleapis.com/P" + + "roperty\022U\n\rresource_type\030\003 \003(\01628.google." + + "analytics.admin.v1beta.ChangeHistoryReso" + + "urceTypeB\004\342A\001\001\022?\n\006action\030\004 \003(\0162).google." + + "analytics.admin.v1beta.ActionTypeB\004\342A\001\001\022" + + "\031\n\013actor_email\030\005 \003(\tB\004\342A\001\001\022>\n\024earliest_c" + + "hange_time\030\006 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\001\022<\n\022latest_change_time\030\007 \001(\0132\032" + + ".google.protobuf.TimestampB\004\342A\001\001\022\027\n\tpage" + + "_size\030\010 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\t \001(\tB\004\342" + + "A\001\001\"\216\001\n!SearchChangeHistoryEventsRespons" + + "e\022P\n\025change_history_events\030\001 \003(\01321.googl" + + "e.analytics.admin.v1beta.ChangeHistoryEv" + + "ent\022\027\n\017next_page_token\030\002 \001(\t\"u\n#GetMeasu" + + "rementProtocolSecretRequest\022N\n\004name\030\001 \001(" + + "\tB@\342A\001\002\372A9\n7analyticsadmin.googleapis.co" + + "m/MeasurementProtocolSecret\"\337\001\n&CreateMe" + + "asurementProtocolSecretRequest\022P\n\006parent" + + "\030\001 \001(\tB@\342A\001\002\372A9\0227analyticsadmin.googleap" + + "is.com/MeasurementProtocolSecret\022c\n\033meas" + + "urement_protocol_secret\030\002 \001(\01328.google.a" + + "nalytics.admin.v1beta.MeasurementProtoco" + + "lSecretB\004\342A\001\002\"x\n&DeleteMeasurementProtoc" + + "olSecretRequest\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7" + + "analyticsadmin.googleapis.com/Measuremen" + + "tProtocolSecret\"\304\001\n&UpdateMeasurementPro" + + "tocolSecretRequest\022c\n\033measurement_protoc" + + "ol_secret\030\001 \001(\01328.google.analytics.admin" + + ".v1beta.MeasurementProtocolSecretB\004\342A\001\002\022" + + "5\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\004\342A\001\002\"\240\001\n%ListMeasurementProtoc" + + "olSecretsRequest\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A" + + "9\0227analyticsadmin.googleapis.com/Measure" + + "mentProtocolSecret\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + + "\npage_token\030\003 \001(\t\"\241\001\n&ListMeasurementPro" + + "tocolSecretsResponse\022^\n\034measurement_prot" + + "ocol_secrets\030\001 \003(\01328.google.analytics.ad" + + "min.v1beta.MeasurementProtocolSecret\022\027\n\017" + + "next_page_token\030\002 \001(\t\"\266\001\n\034CreateConversi" + + "onEventRequest\022N\n\020conversion_event\030\001 \001(\013" + + "2..google.analytics.admin.v1beta.Convers" + + "ionEventB\004\342A\001\002\022F\n\006parent\030\002 \001(\tB6\342A\001\002\372A/\022" + + "-analyticsadmin.googleapis.com/Conversio" + + "nEvent\"\245\001\n\034UpdateConversionEventRequest\022" + + "N\n\020conversion_event\030\001 \001(\0132..google.analy" + + "tics.admin.v1beta.ConversionEventB\004\342A\001\002\022" + + "5\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\004\342A\001\002\"a\n\031GetConversionEventRequ" + + "est\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadm" + + "in.googleapis.com/ConversionEvent\"d\n\034Del" + + "eteConversionEventRequest\022D\n\004name\030\001 \001(\tB" + + "6\342A\001\002\372A/\n-analyticsadmin.googleapis.com/" + + "ConversionEvent\"\214\001\n\033ListConversionEvents" + + "Request\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyt" + + "icsadmin.googleapis.com/ConversionEvent\022" + + "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202" + + "\001\n\034ListConversionEventsResponse\022I\n\021conve" + + "rsion_events\030\001 \003(\0132..google.analytics.ad" + + "min.v1beta.ConversionEvent\022\027\n\017next_page_" + + "token\030\002 \001(\t\"\266\001\n\034CreateCustomDimensionReq" + + "uest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytics" + + "admin.googleapis.com/CustomDimension\022N\n\020" + + "custom_dimension\030\002 \001(\0132..google.analytic" + + "s.admin.v1beta.CustomDimensionB\004\342A\001\002\"\237\001\n" + + "\034UpdateCustomDimensionRequest\022H\n\020custom_" + + "dimension\030\001 \001(\0132..google.analytics.admin" + + ".v1beta.CustomDimension\0225\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"\214" + + "\001\n\033ListCustomDimensionsRequest\022F\n\006parent" + + "\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsadmin.googleap" + + "is.com/CustomDimension\022\021\n\tpage_size\030\002 \001(" + + "\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\034ListCustomDime" + + "nsionsResponse\022I\n\021custom_dimensions\030\001 \003(" + + "\0132..google.analytics.admin.v1beta.Custom" + + "Dimension\022\027\n\017next_page_token\030\002 \001(\t\"e\n\035Ar" + + "chiveCustomDimensionRequest\022D\n\004name\030\001 \001(" + + "\tB6\342A\001\002\372A/\n-analyticsadmin.googleapis.co" + + "m/CustomDimension\"a\n\031GetCustomDimensionR" + + "equest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analytics" + + "admin.googleapis.com/CustomDimension\"\252\001\n" + + "\031CreateCustomMetricRequest\022C\n\006parent\030\001 \001" + + "(\tB3\342A\001\002\372A,\022*analyticsadmin.googleapis.c" + + "om/CustomMetric\022H\n\rcustom_metric\030\002 \001(\0132+" + + ".google.analytics.admin.v1beta.CustomMet" + + "ricB\004\342A\001\002\"\226\001\n\031UpdateCustomMetricRequest\022" + + "B\n\rcustom_metric\030\001 \001(\0132+.google.analytic" + + "s.admin.v1beta.CustomMetric\0225\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + + "\001\002\"\206\001\n\030ListCustomMetricsRequest\022C\n\006paren" + + "t\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googlea" + + "pis.com/CustomMetric\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"y\n\031ListCustomMetrics" + + "Response\022C\n\016custom_metrics\030\001 \003(\0132+.googl" + + "e.analytics.admin.v1beta.CustomMetric\022\027\n" + + "\017next_page_token\030\002 \001(\t\"_\n\032ArchiveCustomM" + + "etricRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*ana" + + "lyticsadmin.googleapis.com/CustomMetric\"" + + "[\n\026GetCustomMetricRequest\022A\n\004name\030\001 \001(\tB" + + "3\342A\001\002\372A,\n*analyticsadmin.googleapis.com/" + + "CustomMetric\"m\n\037GetDataRetentionSettings" + + "Request\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A5\n3analytic" + + "sadmin.googleapis.com/DataRetentionSetti" + + "ngs\"\270\001\n\"UpdateDataRetentionSettingsReque" + + "st\022[\n\027data_retention_settings\030\001 \001(\01324.go" + + "ogle.analytics.admin.v1beta.DataRetentio" + + "nSettingsB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\004\342A\001\002\"\242\001\n\027Creat" + + "eDataStreamRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002" + + "\372A*\022(analyticsadmin.googleapis.com/DataS" + + "tream\022D\n\013data_stream\030\002 \001(\0132).google.anal" + + "ytics.admin.v1beta.DataStreamB\004\342A\001\002\"Z\n\027D" + + "eleteDataStreamRequest\022?\n\004name\030\001 \001(\tB1\342A" + + "\001\002\372A*\n(analyticsadmin.googleapis.com/Dat" + + "aStream\"\220\001\n\027UpdateDataStreamRequest\022>\n\013d" + + "ata_stream\030\001 \001(\0132).google.analytics.admi" + + "n.v1beta.DataStream\0225\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\004\342A\001\002\"\202\001\n\026L" + + "istDataStreamsRequest\022A\n\006parent\030\001 \001(\tB1\342" + + "A\001\002\372A*\022(analyticsadmin.googleapis.com/Da" + + "taStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + + "n\030\003 \001(\t\"s\n\027ListDataStreamsResponse\022?\n\014da" + + "ta_streams\030\001 \003(\0132).google.analytics.admi" + + "n.v1beta.DataStream\022\027\n\017next_page_token\030\002" + + " \001(\t\"W\n\024GetDataStreamRequest\022?\n\004name\030\001 \001" + + "(\tB1\342A\001\002\372A*\n(analyticsadmin.googleapis.c" + + "om/DataStream2\333P\n\025AnalyticsAdminService\022" + + "\220\001\n\nGetAccount\0220.google.analytics.admin." + + "v1beta.GetAccountRequest\032&.google.analyt" + + "ics.admin.v1beta.Account\"(\332A\004name\202\323\344\223\002\033\022" + + "\031/v1beta/{name=accounts/*}\022\221\001\n\014ListAccou" + + "nts\0222.google.analytics.admin.v1beta.List" + + "AccountsRequest\0323.google.analytics.admin" + + ".v1beta.ListAccountsResponse\"\030\202\323\344\223\002\022\022\020/v" + + "1beta/accounts\022\206\001\n\rDeleteAccount\0223.googl" + + "e.analytics.admin.v1beta.DeleteAccountRe" + + "quest\032\026.google.protobuf.Empty\"(\332A\004name\202\323" + + "\344\223\002\033*\031/v1beta/{name=accounts/*}\022\266\001\n\rUpda" + + "teAccount\0223.google.analytics.admin.v1bet" + + "a.UpdateAccountRequest\032&.google.analytic" + + "s.admin.v1beta.Account\"H\332A\023account,updat" + + "e_mask\202\323\344\223\002,2!/v1beta/{account.name=acco" + + "unts/*}:\007account\022\311\001\n\026ProvisionAccountTic" + + "ket\022<.google.analytics.admin.v1beta.Prov" + + "isionAccountTicketRequest\032=.google.analy" + + "tics.admin.v1beta.ProvisionAccountTicket" + + "Response\"2\202\323\344\223\002,\"\'/v1beta/accounts:provi" + + "sionAccountTicket:\001*\022\261\001\n\024ListAccountSumm" + + "aries\022:.google.analytics.admin.v1beta.Li" + + "stAccountSummariesRequest\032;.google.analy" + + "tics.admin.v1beta.ListAccountSummariesRe" + + "sponse\" \202\323\344\223\002\032\022\030/v1beta/accountSummaries" + + "\022\225\001\n\013GetProperty\0221.google.analytics.admi" + + "n.v1beta.GetPropertyRequest\032\'.google.ana" + + "lytics.admin.v1beta.Property\"*\332A\004name\202\323\344" + + "\223\002\035\022\033/v1beta/{name=properties/*}\022\231\001\n\016Lis" + + "tProperties\0224.google.analytics.admin.v1b" + + "eta.ListPropertiesRequest\0325.google.analy" + + "tics.admin.v1beta.ListPropertiesResponse" + + "\"\032\202\323\344\223\002\024\022\022/v1beta/properties\022\240\001\n\016CreateP" + + "roperty\0224.google.analytics.admin.v1beta." + + "CreatePropertyRequest\032\'.google.analytics" + + ".admin.v1beta.Property\"/\332A\010property\202\323\344\223\002" + + "\036\"\022/v1beta/properties:\010property\022\233\001\n\016Dele" + + "teProperty\0224.google.analytics.admin.v1be" + + "ta.DeletePropertyRequest\032\'.google.analyt" + + "ics.admin.v1beta.Property\"*\332A\004name\202\323\344\223\002\035" + + "*\033/v1beta/{name=properties/*}\022\276\001\n\016Update" + + "Property\0224.google.analytics.admin.v1beta" + + ".UpdatePropertyRequest\032\'.google.analytic" + + "s.admin.v1beta.Property\"M\332A\024property,upd" + + "ate_mask\202\323\344\223\00202$/v1beta/{property.name=p" + + "roperties/*}:\010property\022\326\001\n\022CreateFirebas" + + "eLink\0228.google.analytics.admin.v1beta.Cr" + + "eateFirebaseLinkRequest\032+.google.analyti" + + "cs.admin.v1beta.FirebaseLink\"Y\332A\024parent," + + "firebase_link\202\323\344\223\002<\"+/v1beta/{parent=pro" + + "perties/*}/firebaseLinks:\rfirebase_link\022" + + "\242\001\n\022DeleteFirebaseLink\0228.google.analytic" + + "s.admin.v1beta.DeleteFirebaseLinkRequest" + + "\032\026.google.protobuf.Empty\":\332A\004name\202\323\344\223\002-*" + + "+/v1beta/{name=properties/*/firebaseLink" + + "s/*}\022\304\001\n\021ListFirebaseLinks\0227.google.anal" + + "ytics.admin.v1beta.ListFirebaseLinksRequ" + + "est\0328.google.analytics.admin.v1beta.List" + + "FirebaseLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+" + + "/v1beta/{parent=properties/*}/firebaseLi" + + "nks\022\336\001\n\023CreateGoogleAdsLink\0229.google.ana" + + "lytics.admin.v1beta.CreateGoogleAdsLinkR" + + "equest\032,.google.analytics.admin.v1beta.G" + + "oogleAdsLink\"^\332A\026parent,google_ads_link\202" + + "\323\344\223\002?\",/v1beta/{parent=properties/*}/goo" + + "gleAdsLinks:\017google_ads_link\022\363\001\n\023UpdateG" + + "oogleAdsLink\0229.google.analytics.admin.v1" + + "beta.UpdateGoogleAdsLinkRequest\032,.google" + + ".analytics.admin.v1beta.GoogleAdsLink\"s\332" + + "A\033google_ads_link,update_mask\202\323\344\223\002O2.google.analytics." + + "admin.v1beta.GetDataRetentionSettingsReq" + + "uest\0324.google.analytics.admin.v1beta.Dat" + + "aRetentionSettings\"@\332A\004name\202\323\344\223\0023\0221/v1be" + + "ta/{name=properties/*/dataRetentionSetti" + + "ngs}\022\251\002\n\033UpdateDataRetentionSettings\022A.g" + + "oogle.analytics.admin.v1beta.UpdateDataR" + + "etentionSettingsRequest\0324.google.analyti" + + "cs.admin.v1beta.DataRetentionSettings\"\220\001" + + "\332A#data_retention_settings,update_mask\202\323" + + "\344\223\002d2I/v1beta/{data_retention_settings.n" + + "ame=properties/*/dataRetentionSettings}:" + + "\027data_retention_settings\022\312\001\n\020CreateDataS" + + "tream\0226.google.analytics.admin.v1beta.Cr" + + "eateDataStreamRequest\032).google.analytics" + + ".admin.v1beta.DataStream\"S\332A\022parent,data" + + "_stream\202\323\344\223\0028\")/v1beta/{parent=propertie" + + "s/*}/dataStreams:\013data_stream\022\234\001\n\020Delete" + + "DataStream\0226.google.analytics.admin.v1be" + + "ta.DeleteDataStreamRequest\032\026.google.prot" + + "obuf.Empty\"8\332A\004name\202\323\344\223\002+*)/v1beta/{name" + + "=properties/*/dataStreams/*}\022\333\001\n\020UpdateD" + + "ataStream\0226.google.analytics.admin.v1bet" + + "a.UpdateDataStreamRequest\032).google.analy" + + "tics.admin.v1beta.DataStream\"d\332A\027data_st" + + "ream,update_mask\202\323\344\223\002D25/v1beta/{data_st" + + "ream.name=properties/*/dataStreams/*}:\013d" + + "ata_stream\022\274\001\n\017ListDataStreams\0225.google." + + "analytics.admin.v1beta.ListDataStreamsRe" + + "quest\0326.google.analytics.admin.v1beta.Li" + + "stDataStreamsResponse\":\332A\006parent\202\323\344\223\002+\022)" + + "/v1beta/{parent=properties/*}/dataStream" + + "s\022\251\001\n\rGetDataStream\0223.google.analytics.a" + + "dmin.v1beta.GetDataStreamRequest\032).googl" + + "e.analytics.admin.v1beta.DataStream\"8\332A\004" + + "name\202\323\344\223\002+\022)/v1beta/{name=properties/*/d" + + "ataStreams/*}\022\354\001\n\017RunAccessReport\0225.goog" + + "le.analytics.admin.v1beta.RunAccessRepor" + + "tRequest\0326.google.analytics.admin.v1beta" + + ".RunAccessReportResponse\"j\202\323\344\223\002d\"-/v1bet" + + "a/{entity=properties/*}:runAccessReport:" + + "\001*Z0\"+/v1beta/{entity=accounts/*}:runAcc" + + "essReport:\001*\032\204\001\312A\035analyticsadmin.googlea" + + "pis.com\322Aahttps://www.googleapis.com/aut" + + "h/analytics.edit,https://www.googleapis." + + "com/auth/analytics.readonlyB~\n!com.googl" + + "e.analytics.admin.v1betaB\023AnalyticsAdmin" + + "ProtoP\001ZBgoogle.golang.org/genproto/goog" + + "leapis/analytics/admin/v1beta;adminb\006pro" + + "to3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.analytics.admin.v1beta.AccessReportProto.getDescriptor(), + com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor, + new java.lang.String[] { + "Entity", + "Dimensions", + "Metrics", + "DateRanges", + "DimensionFilter", + "MetricFilter", + "Offset", + "Limit", + "TimeZone", + "OrderBys", + "ReturnEntityQuota", + }); + internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor, + new java.lang.String[] { + "DimensionHeaders", "MetricHeaders", "Rows", "RowCount", "Quota", + }); + internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor, + new java.lang.String[] { + "Accounts", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor, + new java.lang.String[] { + "Account", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor, + new java.lang.String[] { + "Account", "RedirectUri", + }); + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor, + new java.lang.String[] { + "AccountTicketId", + }); + internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor, + new java.lang.String[] { + "Filter", "PageSize", "PageToken", "ShowDeleted", + }); + internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor, + new java.lang.String[] { + "Properties", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor, + new java.lang.String[] { + "Property", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor, + new java.lang.String[] { + "Property", + }); + internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "FirebaseLink", + }); + internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor, + new java.lang.String[] { + "FirebaseLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "GoogleAdsLink", + }); + internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor, + new java.lang.String[] { + "GoogleAdsLink", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor, + new java.lang.String[] { + "GoogleAdsLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor, + new java.lang.String[] { + "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor, + new java.lang.String[] { + "AccountSummaries", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor, + new java.lang.String[] { + "Property", "Acknowledgement", + }); + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor, + new java.lang.String[] { + "Account", + "Property", + "ResourceType", + "Action", + "ActorEmail", + "EarliestChangeTime", + "LatestChangeTime", + "PageSize", + "PageToken", + }); + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor, + new java.lang.String[] { + "ChangeHistoryEvents", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Parent", "MeasurementProtocolSecret", + }); + internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecret", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecrets", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor, + new java.lang.String[] { + "ConversionEvent", "Parent", + }); + internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor, + new java.lang.String[] { + "ConversionEvent", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor, + new java.lang.String[] { + "ConversionEvents", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomDimension", + }); + internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "CustomDimension", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor, + new java.lang.String[] { + "CustomDimensions", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomMetric", + }); + internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor, + new java.lang.String[] { + "CustomMetric", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor, + new java.lang.String[] { + "CustomMetrics", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(56); + internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor, + new java.lang.String[] { + "DataRetentionSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(57); + internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor, + new java.lang.String[] { + "Parent", "DataStream", + }); + internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(58); + internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(59); + internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor, + new java.lang.String[] { + "DataStream", "UpdateMask", + }); + internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor, + new java.lang.String[] { + "DataStreams", "NextPageToken", + }); + internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor, + new java.lang.String[] { + "Name", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.analytics.admin.v1beta.AccessReportProto.getDescriptor(); + com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java new file mode 100644 index 000000000000..9b3c4bb44904 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ArchiveCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} + */ +public final class ArchiveCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) + ArchiveCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomDimensionRequest.newBuilder() to construct. + private ArchiveCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.ArchiveCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest other = + (com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ArchiveCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest build() { + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest result = + new com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.ArchiveCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) + private static final com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..e34524cf667b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ArchiveCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java new file mode 100644 index 000000000000..d2450c5f0010 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java @@ -0,0 +1,650 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ArchiveCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomMetricRequest} + */ +public final class ArchiveCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) + ArchiveCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomMetricRequest.newBuilder() to construct. + private ArchiveCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.ArchiveCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest other = + (com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ArchiveCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest build() { + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest result = + new com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.ArchiveCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) + private static final com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..bde51d97afcd --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ArchiveCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java new file mode 100644 index 000000000000..23427ba17802 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java @@ -0,0 +1,4677 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A description of a change to a single Google Analytics resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange} + */ +public final class ChangeHistoryChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ChangeHistoryChange) + ChangeHistoryChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryChange.newBuilder() to construct. + private ChangeHistoryChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryChange() { + resource_ = ""; + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryChange(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ChangeHistoryChange.class, + com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder.class); + } + + public interface ChangeHistoryResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return The account. + */ + com.google.analytics.admin.v1beta.Account getAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + * + * @return The property. + */ + com.google.analytics.admin.v1beta.Property getProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder(); + + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + boolean hasFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + boolean hasDataRetentionSettings(); + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings(); + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + * + * @return The dataStream. + */ + com.google.analytics.admin.v1beta.DataStream getDataStream(); + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder(); + + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.ResourceCase + getResourceCase(); + } + /** + * + * + *
+   * A snapshot of a resource as before or after the result of a change in
+   * change history.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class ChangeHistoryResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) + ChangeHistoryResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryResource.newBuilder() to construct. + private ChangeHistoryResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryResource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryResource(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + private int resourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object resource_; + + public enum ResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCOUNT(1), + PROPERTY(2), + FIREBASE_LINK(6), + GOOGLE_ADS_LINK(7), + CONVERSION_EVENT(11), + MEASUREMENT_PROTOCOL_SECRET(12), + DATA_RETENTION_SETTINGS(15), + DATA_STREAM(18), + RESOURCE_NOT_SET(0); + private final int value; + + private ResourceCase(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 ResourceCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceCase forNumber(int value) { + switch (value) { + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + case 11: + return CONVERSION_EVENT; + case 12: + return MEASUREMENT_PROTOCOL_SECRET; + case 15: + return DATA_RETENTION_SETTINGS; + case 18: + return DATA_STREAM; + case 0: + return RESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Account getAccount() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1beta.Account) resource_; + } + return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1beta.Account) resource_; + } + return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Property getProperty() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1beta.Property) resource_; + } + return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1beta.Property) resource_; + } + return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); + } + + public static final int FIREBASE_LINK_FIELD_NUMBER = 6; + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 7; + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 11; + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 12; + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); + } + + public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 15; + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return resourceCase_ == 15; + } + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); + } + + public static final int DATA_STREAM_FIELD_NUMBER = 18; + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return resourceCase_ == 18; + } + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream getDataStream() { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1beta.DataStream) resource_; + } + return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a DataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1beta.DataStream) resource_; + } + return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceCase_ == 1) { + output.writeMessage(1, (com.google.analytics.admin.v1beta.Account) resource_); + } + if (resourceCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1beta.Property) resource_); + } + if (resourceCase_ == 6) { + output.writeMessage(6, (com.google.analytics.admin.v1beta.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + output.writeMessage(7, (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_); + } + if (resourceCase_ == 11) { + output.writeMessage(11, (com.google.analytics.admin.v1beta.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + output.writeMessage( + 12, (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 15) { + output.writeMessage( + 15, (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_); + } + if (resourceCase_ == 18) { + output.writeMessage(18, (com.google.analytics.admin.v1beta.DataStream) resource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1beta.Account) resource_); + } + if (resourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1beta.Property) resource_); + } + if (resourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.admin.v1beta.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_); + } + if (resourceCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.analytics.admin.v1beta.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_); + } + if (resourceCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.analytics.admin.v1beta.DataStream) resource_); + } + 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.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource other = + (com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) obj; + + if (!getResourceCase().equals(other.getResourceCase())) return false; + switch (resourceCase_) { + case 1: + if (!getAccount().equals(other.getAccount())) return false; + break; + case 2: + if (!getProperty().equals(other.getProperty())) return false; + break; + case 6: + if (!getFirebaseLink().equals(other.getFirebaseLink())) return false; + break; + case 7: + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) return false; + break; + case 11: + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + break; + case 12: + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + break; + case 15: + if (!getDataRetentionSettings().equals(other.getDataRetentionSettings())) return false; + break; + case 18: + if (!getDataStream().equals(other.getDataStream())) 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 (resourceCase_) { + case 1: + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + break; + case 2: + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + break; + case 6: + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + break; + case 7: + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + break; + case 11: + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + break; + case 12: + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + break; + case 15: + hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRetentionSettings().hashCode(); + break; + case 18: + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * A snapshot of a resource as before or after the result of a change in
+     * change history.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accountBuilder_ != null) { + accountBuilder_.clear(); + } + if (propertyBuilder_ != null) { + propertyBuilder_.clear(); + } + if (firebaseLinkBuilder_ != null) { + firebaseLinkBuilder_.clear(); + } + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.clear(); + } + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.clear(); + } + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.clear(); + } + if (dataRetentionSettingsBuilder_ != null) { + dataRetentionSettingsBuilder_.clear(); + } + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.clear(); + } + resourceCase_ = 0; + resource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource build() { + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + buildPartial() { + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result = + new com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result) { + result.resourceCase_ = resourceCase_; + result.resource_ = this.resource_; + if (resourceCase_ == 1 && accountBuilder_ != null) { + result.resource_ = accountBuilder_.build(); + } + if (resourceCase_ == 2 && propertyBuilder_ != null) { + result.resource_ = propertyBuilder_.build(); + } + if (resourceCase_ == 6 && firebaseLinkBuilder_ != null) { + result.resource_ = firebaseLinkBuilder_.build(); + } + if (resourceCase_ == 7 && googleAdsLinkBuilder_ != null) { + result.resource_ = googleAdsLinkBuilder_.build(); + } + if (resourceCase_ == 11 && conversionEventBuilder_ != null) { + result.resource_ = conversionEventBuilder_.build(); + } + if (resourceCase_ == 12 && measurementProtocolSecretBuilder_ != null) { + result.resource_ = measurementProtocolSecretBuilder_.build(); + } + if (resourceCase_ == 15 && dataRetentionSettingsBuilder_ != null) { + result.resource_ = dataRetentionSettingsBuilder_.build(); + } + if (resourceCase_ == 18 && dataStreamBuilder_ != null) { + result.resource_ = dataStreamBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) { + return mergeFrom( + (com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource other) { + if (other + == com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) return this; + switch (other.getResourceCase()) { + case ACCOUNT: + { + mergeAccount(other.getAccount()); + break; + } + case PROPERTY: + { + mergeProperty(other.getProperty()); + break; + } + case FIREBASE_LINK: + { + mergeFirebaseLink(other.getFirebaseLink()); + break; + } + case GOOGLE_ADS_LINK: + { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + break; + } + case CONVERSION_EVENT: + { + mergeConversionEvent(other.getConversionEvent()); + break; + } + case MEASUREMENT_PROTOCOL_SECRET: + { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + break; + } + case DATA_RETENTION_SETTINGS: + { + mergeDataRetentionSettings(other.getDataRetentionSettings()); + break; + } + case DATA_STREAM: + { + mergeDataStream(other.getDataStream()); + break; + } + case RESOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getPropertyFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 2; + break; + } // case 18 + case 50: + { + input.readMessage(getFirebaseLinkFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 7; + break; + } // case 58 + case 90: + { + input.readMessage( + getConversionEventFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 11; + break; + } // case 90 + case 98: + { + input.readMessage( + getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 12; + break; + } // case 98 + case 122: + { + input.readMessage( + getDataRetentionSettingsFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 15; + break; + } // case 122 + case 146: + { + input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); + resourceCase_ = 18; + break; + } // case 146 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public Builder clearResource() { + resourceCase_ = 0; + resource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Account getAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1beta.Account) resource_; + } + return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); + } else { + if (resourceCase_ == 1) { + return accountBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1beta.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + accountBuilder_.setMessage(value); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1beta.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder mergeAccount(com.google.analytics.admin.v1beta.Account value) { + if (accountBuilder_ == null) { + if (resourceCase_ == 1 + && resource_ != com.google.analytics.admin.v1beta.Account.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.Account.newBuilder( + (com.google.analytics.admin.v1beta.Account) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 1) { + accountBuilder_.mergeFrom(value); + } else { + accountBuilder_.setMessage(value); + } + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder clearAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + } + accountBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public com.google.analytics.admin.v1beta.Account.Builder getAccountBuilder() { + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { + if ((resourceCase_ == 1) && (accountBuilder_ != null)) { + return accountBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1beta.Account) resource_; + } + return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + if (!(resourceCase_ == 1)) { + resource_ = com.google.analytics.admin.v1beta.Account.getDefaultInstance(); + } + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder>( + (com.google.analytics.admin.v1beta.Account) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 1; + onChanged(); + return accountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Property getProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1beta.Property) resource_; + } + return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); + } else { + if (resourceCase_ == 2) { + return propertyBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + public Builder setProperty(com.google.analytics.admin.v1beta.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + propertyBuilder_.setMessage(value); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + public Builder setProperty( + com.google.analytics.admin.v1beta.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + public Builder mergeProperty(com.google.analytics.admin.v1beta.Property value) { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2 + && resource_ != com.google.analytics.admin.v1beta.Property.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.Property.newBuilder( + (com.google.analytics.admin.v1beta.Property) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 2) { + propertyBuilder_.mergeFrom(value); + } else { + propertyBuilder_.setMessage(value); + } + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + } + propertyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + public com.google.analytics.admin.v1beta.Property.Builder getPropertyBuilder() { + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { + if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1beta.Property) resource_; + } + return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.Property property = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + if (!(resourceCase_ == 2)) { + resource_ = com.google.analytics.admin.v1beta.Property.getDefaultInstance(); + } + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder>( + (com.google.analytics.admin.v1beta.Property) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 2; + onChanged(); + return propertyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> + firebaseLinkBuilder_; + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); + } else { + if (resourceCase_ == 6) { + return firebaseLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(value); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink( + com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { + if (firebaseLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + public Builder mergeFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6 + && resource_ != com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.FirebaseLink.newBuilder( + (com.google.analytics.admin.v1beta.FirebaseLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 6) { + firebaseLinkBuilder_.mergeFrom(value); + } else { + firebaseLinkBuilder_.setMessage(value); + } + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + public Builder clearFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + } + firebaseLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + public com.google.analytics.admin.v1beta.FirebaseLink.Builder getFirebaseLinkBuilder() { + return getFirebaseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if ((resourceCase_ == 6) && (firebaseLinkBuilder_ != null)) { + return firebaseLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> + getFirebaseLinkFieldBuilder() { + if (firebaseLinkBuilder_ == null) { + if (!(resourceCase_ == 6)) { + resource_ = com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); + } + firebaseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder>( + (com.google.analytics.admin.v1beta.FirebaseLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 6; + onChanged(); + return firebaseLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); + } else { + if (resourceCase_ == 7) { + return googleAdsLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(value); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7 + && resource_ + != com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.GoogleAdsLink.newBuilder( + (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 7) { + googleAdsLinkBuilder_.mergeFrom(value); + } else { + googleAdsLinkBuilder_.setMessage(value); + } + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + public Builder clearGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + } + googleAdsLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if ((resourceCase_ == 7) && (googleAdsLinkBuilder_ != null)) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + if (!(resourceCase_ == 7)) { + resource_ = com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); + } + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( + (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 7; + onChanged(); + return googleAdsLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); + } else { + if (resourceCase_ == 11) { + return conversionEventBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + conversionEventBuilder_.setMessage(value); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + public Builder mergeConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11 + && resource_ + != com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.ConversionEvent.newBuilder( + (com.google.analytics.admin.v1beta.ConversionEvent) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 11) { + conversionEventBuilder_.mergeFrom(value); + } else { + conversionEventBuilder_.setMessage(value); + } + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + public Builder clearConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + } + conversionEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventBuilder() { + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if ((resourceCase_ == 11) && (conversionEventBuilder_ != null)) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + if (!(resourceCase_ == 11)) { + resource_ = com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); + } + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( + (com.google.analytics.admin.v1beta.ConversionEvent) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 11; + onChanged(); + return conversionEventBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); + } else { + if (resourceCase_ == 12) { + return measurementProtocolSecretBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12 + && resource_ + != com.google.analytics.admin.v1beta.MeasurementProtocolSecret + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.newBuilder( + (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 12) { + measurementProtocolSecretBuilder_.mergeFrom(value); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + } + measurementProtocolSecretBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if ((resourceCase_ == 12) && (measurementProtocolSecretBuilder_ != null)) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + if (!(resourceCase_ == 12)) { + resource_ = + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); + } + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( + (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 12; + onChanged(); + return measurementProtocolSecretBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataRetentionSettings, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> + dataRetentionSettingsBuilder_; + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return resourceCase_ == 15; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 15) { + return dataRetentionSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1beta.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataRetentionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder builderForValue) { + if (dataRetentionSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder mergeDataRetentionSettings( + com.google.analytics.admin.v1beta.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15 + && resource_ + != com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.DataRetentionSettings.newBuilder( + (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 15) { + dataRetentionSettingsBuilder_.mergeFrom(value); + } else { + dataRetentionSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder clearDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 15) { + resourceCase_ = 0; + resource_ = null; + } + dataRetentionSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + public com.google.analytics.admin.v1beta.DataRetentionSettings.Builder + getDataRetentionSettingsBuilder() { + return getDataRetentionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if ((resourceCase_ == 15) && (dataRetentionSettingsBuilder_ != null)) { + return dataRetentionSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataRetentionSettings, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> + getDataRetentionSettingsFieldBuilder() { + if (dataRetentionSettingsBuilder_ == null) { + if (!(resourceCase_ == 15)) { + resource_ = + com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); + } + dataRetentionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataRetentionSettings, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder>( + (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 15; + onChanged(); + return dataRetentionSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + dataStreamBuilder_; + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return resourceCase_ == 18; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1beta.DataStream) resource_; + } + return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 18) { + return dataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + public Builder setDataStream(com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataStreamBuilder_.setMessage(value); + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + public Builder setDataStream( + com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + public Builder mergeDataStream(com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18 + && resource_ != com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1beta.DataStream.newBuilder( + (com.google.analytics.admin.v1beta.DataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 18) { + dataStreamBuilder_.mergeFrom(value); + } else { + dataStreamBuilder_.setMessage(value); + } + } + resourceCase_ = 18; + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + public Builder clearDataStream() { + if (dataStreamBuilder_ == null) { + if (resourceCase_ == 18) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 18) { + resourceCase_ = 0; + resource_ = null; + } + dataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { + if ((resourceCase_ == 18) && (dataStreamBuilder_ != null)) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 18) { + return (com.google.analytics.admin.v1beta.DataStream) resource_; + } + return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + getDataStreamFieldBuilder() { + if (dataStreamBuilder_ == null) { + if (!(resourceCase_ == 18)) { + resource_ = com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); + } + dataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder>( + (com.google.analytics.admin.v1beta.DataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 18; + onChanged(); + return dataStreamBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) + private static final com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource(); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object resource_ = ""; + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + 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(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_ = 0; + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ActionType getAction() { + com.google.analytics.admin.v1beta.ActionType result = + com.google.analytics.admin.v1beta.ActionType.forNumber(action_); + return result == null ? com.google.analytics.admin.v1beta.ActionType.UNRECOGNIZED : result; + } + + public static final int RESOURCE_BEFORE_CHANGE_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + @java.lang.Override + public boolean hasResourceBeforeChange() { + return resourceBeforeChange_ != null; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + + public static final int RESOURCE_AFTER_CHANGE_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + @java.lang.Override + public boolean hasResourceAfterChange() { + return resourceAfterChange_ != null; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + + 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(resource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); + } + if (action_ + != com.google.analytics.admin.v1beta.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + if (resourceBeforeChange_ != null) { + output.writeMessage(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + output.writeMessage(4, getResourceAfterChange()); + } + 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(resource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); + } + if (action_ + != com.google.analytics.admin.v1beta.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); + } + if (resourceBeforeChange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceAfterChange()); + } + 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.admin.v1beta.ChangeHistoryChange)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ChangeHistoryChange other = + (com.google.analytics.admin.v1beta.ChangeHistoryChange) obj; + + if (!getResource().equals(other.getResource())) return false; + if (action_ != other.action_) return false; + if (hasResourceBeforeChange() != other.hasResourceBeforeChange()) return false; + if (hasResourceBeforeChange()) { + if (!getResourceBeforeChange().equals(other.getResourceBeforeChange())) return false; + } + if (hasResourceAfterChange() != other.hasResourceAfterChange()) return false; + if (hasResourceAfterChange()) { + if (!getResourceAfterChange().equals(other.getResourceAfterChange())) 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) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasResourceBeforeChange()) { + hash = (37 * hash) + RESOURCE_BEFORE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceBeforeChange().hashCode(); + } + if (hasResourceAfterChange()) { + hash = (37 * hash) + RESOURCE_AFTER_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceAfterChange().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ChangeHistoryChange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A description of a change to a single Google Analytics resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ChangeHistoryChange) + com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ChangeHistoryChange.class, + com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ChangeHistoryChange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + resource_ = ""; + action_ = 0; + resourceBeforeChange_ = null; + if (resourceBeforeChangeBuilder_ != null) { + resourceBeforeChangeBuilder_.dispose(); + resourceBeforeChangeBuilder_ = null; + } + resourceAfterChange_ = null; + if (resourceAfterChangeBuilder_ != null) { + resourceAfterChangeBuilder_.dispose(); + resourceAfterChangeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange build() { + com.google.analytics.admin.v1beta.ChangeHistoryChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange buildPartial() { + com.google.analytics.admin.v1beta.ChangeHistoryChange result = + new com.google.analytics.admin.v1beta.ChangeHistoryChange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ChangeHistoryChange result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.resource_ = resource_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.action_ = action_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resourceBeforeChange_ = + resourceBeforeChangeBuilder_ == null + ? resourceBeforeChange_ + : resourceBeforeChangeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.resourceAfterChange_ = + resourceAfterChangeBuilder_ == null + ? resourceAfterChange_ + : resourceAfterChangeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ChangeHistoryChange) { + return mergeFrom((com.google.analytics.admin.v1beta.ChangeHistoryChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ChangeHistoryChange other) { + if (other == com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance()) + return this; + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasResourceBeforeChange()) { + mergeResourceBeforeChange(other.getResourceBeforeChange()); + } + if (other.hasResourceAfterChange()) { + mergeResourceAfterChange(other.getResourceAfterChange()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + resource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + action_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + getResourceBeforeChangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getResourceAfterChangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + resource_ = getDefaultInstance().getResource(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + action_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ActionType getAction() { + com.google.analytics.admin.v1beta.ActionType result = + com.google.analytics.admin.v1beta.ActionType.forNumber(action_); + return result == null ? com.google.analytics.admin.v1beta.ActionType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.analytics.admin.v1beta.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + bitField0_ = (bitField0_ & ~0x00000002); + action_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceBeforeChangeBuilder_; + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + public boolean hasResourceBeforeChange() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + if (resourceBeforeChangeBuilder_ == null) { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } else { + return resourceBeforeChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceBeforeChange_ = value; + } else { + resourceBeforeChangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = builderForValue.build(); + } else { + resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder mergeResourceBeforeChange( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && resourceBeforeChange_ != null + && resourceBeforeChange_ + != com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) { + getResourceBeforeChangeBuilder().mergeFrom(value); + } else { + resourceBeforeChange_ = value; + } + } else { + resourceBeforeChangeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder clearResourceBeforeChange() { + bitField0_ = (bitField0_ & ~0x00000004); + resourceBeforeChange_ = null; + if (resourceBeforeChangeBuilder_ != null) { + resourceBeforeChangeBuilder_.dispose(); + resourceBeforeChangeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceBeforeChangeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getResourceBeforeChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + if (resourceBeforeChangeBuilder_ != null) { + return resourceBeforeChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceBeforeChangeFieldBuilder() { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceBeforeChange(), getParentForChildren(), isClean()); + resourceBeforeChange_ = null; + } + return resourceBeforeChangeBuilder_; + } + + private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceAfterChangeBuilder_; + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + public boolean hasResourceAfterChange() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + if (resourceAfterChangeBuilder_ == null) { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } else { + return resourceAfterChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceAfterChange_ = value; + } else { + resourceAfterChangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = builderForValue.build(); + } else { + resourceAfterChangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder mergeResourceAfterChange( + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && resourceAfterChange_ != null + && resourceAfterChange_ + != com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) { + getResourceAfterChangeBuilder().mergeFrom(value); + } else { + resourceAfterChange_ = value; + } + } else { + resourceAfterChangeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder clearResourceAfterChange() { + bitField0_ = (bitField0_ & ~0x00000008); + resourceAfterChange_ = null; + if (resourceAfterChangeBuilder_ != null) { + resourceAfterChangeBuilder_.dispose(); + resourceAfterChangeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceAfterChangeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getResourceAfterChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + if (resourceAfterChangeBuilder_ != null) { + return resourceAfterChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceAfterChangeFieldBuilder() { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceAfterChange(), getParentForChildren(), isClean()); + resourceAfterChange_ = null; + } + return resourceAfterChangeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ChangeHistoryChange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ChangeHistoryChange) + private static final com.google.analytics.admin.v1beta.ChangeHistoryChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ChangeHistoryChange(); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryChange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java new file mode 100644 index 000000000000..d627af349165 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java @@ -0,0 +1,167 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface ChangeHistoryChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ChangeHistoryChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1beta.ActionType action = 2; + * + * @return The action. + */ + com.google.analytics.admin.v1beta.ActionType getAction(); + + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + boolean hasResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder(); + + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + boolean hasResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java new file mode 100644 index 000000000000..6cc5a2ab3041 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java @@ -0,0 +1,1861 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A set of changes within a Google Analytics account or its child properties
+ * that resulted from the same cause. Common causes would be updates made in the
+ * Google Analytics UI, changes from customer support, or automatic Google
+ * Analytics system changes.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryEvent} + */ +public final class ChangeHistoryEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ChangeHistoryEvent) + ChangeHistoryEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryEvent.newBuilder() to construct. + private ChangeHistoryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryEvent() { + id_ = ""; + actorType_ = 0; + userActorEmail_ = ""; + changes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ChangeHistoryEvent.class, + com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp changeTime_; + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + @java.lang.Override + public boolean hasChangeTime() { + return changeTime_ != null; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getChangeTime() { + return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; + } + + public static final int ACTOR_TYPE_FIELD_NUMBER = 3; + private int actorType_ = 0; + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ActorType getActorType() { + com.google.analytics.admin.v1beta.ActorType result = + com.google.analytics.admin.v1beta.ActorType.forNumber(actorType_); + return result == null ? com.google.analytics.admin.v1beta.ActorType.UNRECOGNIZED : result; + } + + public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object userActorEmail_ = ""; + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + @java.lang.Override + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + 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(); + userActorEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGES_FILTERED_FIELD_NUMBER = 5; + private boolean changesFiltered_ = false; + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + + public static final int CHANGES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List changes_; + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List getChangesList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List + getChangesOrBuilderList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public int getChangesCount() { + return changes_.size(); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChange getChanges(int index) { + return changes_.get(index); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + return changes_.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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (changeTime_ != null) { + output.writeMessage(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1beta.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, actorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_); + } + if (changesFiltered_ != false) { + output.writeBool(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + output.writeMessage(6, changes_.get(i)); + } + 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(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (changeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1beta.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, actorType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_); + } + if (changesFiltered_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, changes_.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.admin.v1beta.ChangeHistoryEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ChangeHistoryEvent other = + (com.google.analytics.admin.v1beta.ChangeHistoryEvent) obj; + + if (!getId().equals(other.getId())) return false; + if (hasChangeTime() != other.hasChangeTime()) return false; + if (hasChangeTime()) { + if (!getChangeTime().equals(other.getChangeTime())) return false; + } + if (actorType_ != other.actorType_) return false; + if (!getUserActorEmail().equals(other.getUserActorEmail())) return false; + if (getChangesFiltered() != other.getChangesFiltered()) return false; + if (!getChangesList().equals(other.getChangesList())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasChangeTime()) { + hash = (37 * hash) + CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getChangeTime().hashCode(); + } + hash = (37 * hash) + ACTOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + actorType_; + hash = (37 * hash) + USER_ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getUserActorEmail().hashCode(); + hash = (37 * hash) + CHANGES_FILTERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChangesFiltered()); + if (getChangesCount() > 0) { + hash = (37 * hash) + CHANGES_FIELD_NUMBER; + hash = (53 * hash) + getChangesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.ChangeHistoryEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A set of changes within a Google Analytics account or its child properties
+   * that resulted from the same cause. Common causes would be updates made in the
+   * Google Analytics UI, changes from customer support, or automatic Google
+   * Analytics system changes.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ChangeHistoryEvent) + com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ChangeHistoryEvent.class, + com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ChangeHistoryEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + changeTime_ = null; + if (changeTimeBuilder_ != null) { + changeTimeBuilder_.dispose(); + changeTimeBuilder_ = null; + } + actorType_ = 0; + userActorEmail_ = ""; + changesFiltered_ = false; + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + } else { + changes_ = null; + changesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryEvent build() { + com.google.analytics.admin.v1beta.ChangeHistoryEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryEvent buildPartial() { + com.google.analytics.admin.v1beta.ChangeHistoryEvent result = + new com.google.analytics.admin.v1beta.ChangeHistoryEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ChangeHistoryEvent result) { + if (changesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + changes_ = java.util.Collections.unmodifiableList(changes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.changes_ = changes_; + } else { + result.changes_ = changesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ChangeHistoryEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.changeTime_ = changeTimeBuilder_ == null ? changeTime_ : changeTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.actorType_ = actorType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.userActorEmail_ = userActorEmail_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.changesFiltered_ = changesFiltered_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ChangeHistoryEvent) { + return mergeFrom((com.google.analytics.admin.v1beta.ChangeHistoryEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ChangeHistoryEvent other) { + if (other == com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasChangeTime()) { + mergeChangeTime(other.getChangeTime()); + } + if (other.actorType_ != 0) { + setActorTypeValue(other.getActorTypeValue()); + } + if (!other.getUserActorEmail().isEmpty()) { + userActorEmail_ = other.userActorEmail_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getChangesFiltered() != false) { + setChangesFiltered(other.getChangesFiltered()); + } + if (changesBuilder_ == null) { + if (!other.changes_.isEmpty()) { + if (changes_.isEmpty()) { + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureChangesIsMutable(); + changes_.addAll(other.changes_); + } + onChanged(); + } + } else { + if (!other.changes_.isEmpty()) { + if (changesBuilder_.isEmpty()) { + changesBuilder_.dispose(); + changesBuilder_ = null; + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000020); + changesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangesFieldBuilder() + : null; + } else { + changesBuilder_.addAllMessages(other.changes_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getChangeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + actorType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + userActorEmail_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + changesFiltered_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: + { + com.google.analytics.admin.v1beta.ChangeHistoryChange m = + input.readMessage( + com.google.analytics.admin.v1beta.ChangeHistoryChange.parser(), + extensionRegistry); + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(m); + } else { + changesBuilder_.addMessage(m); + } + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp changeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + changeTimeBuilder_; + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + public boolean hasChangeTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + public com.google.protobuf.Timestamp getChangeTime() { + if (changeTimeBuilder_ == null) { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } else { + return changeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + changeTime_ = value; + } else { + changeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (changeTimeBuilder_ == null) { + changeTime_ = builderForValue.build(); + } else { + changeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder mergeChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && changeTime_ != null + && changeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getChangeTimeBuilder().mergeFrom(value); + } else { + changeTime_ = value; + } + } else { + changeTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder clearChangeTime() { + bitField0_ = (bitField0_ & ~0x00000002); + changeTime_ = null; + if (changeTimeBuilder_ != null) { + changeTimeBuilder_.dispose(); + changeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + if (changeTimeBuilder_ != null) { + return changeTimeBuilder_.getMessageOrBuilder(); + } else { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getChangeTimeFieldBuilder() { + if (changeTimeBuilder_ == null) { + changeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getChangeTime(), getParentForChildren(), isClean()); + changeTime_ = null; + } + return changeTimeBuilder_; + } + + private int actorType_ = 0; + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @param value The enum numeric value on the wire for actorType to set. + * @return This builder for chaining. + */ + public Builder setActorTypeValue(int value) { + actorType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ActorType getActorType() { + com.google.analytics.admin.v1beta.ActorType result = + com.google.analytics.admin.v1beta.ActorType.forNumber(actorType_); + return result == null ? com.google.analytics.admin.v1beta.ActorType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @param value The actorType to set. + * @return This builder for chaining. + */ + public Builder setActorType(com.google.analytics.admin.v1beta.ActorType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + actorType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearActorType() { + bitField0_ = (bitField0_ & ~0x00000004); + actorType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object userActorEmail_ = ""; + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userActorEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userActorEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return This builder for chaining. + */ + public Builder clearUserActorEmail() { + userActorEmail_ = getDefaultInstance().getUserActorEmail(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The bytes for userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userActorEmail_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean changesFiltered_; + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @param value The changesFiltered to set. + * @return This builder for chaining. + */ + public Builder setChangesFiltered(boolean value) { + + changesFiltered_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return This builder for chaining. + */ + public Builder clearChangesFiltered() { + bitField0_ = (bitField0_ & ~0x00000010); + changesFiltered_ = false; + onChanged(); + return this; + } + + private java.util.List changes_ = + java.util.Collections.emptyList(); + + private void ensureChangesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + changes_ = + new java.util.ArrayList( + changes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange, + com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder> + changesBuilder_; + + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public java.util.List getChangesList() { + if (changesBuilder_ == null) { + return java.util.Collections.unmodifiableList(changes_); + } else { + return changesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public int getChangesCount() { + if (changesBuilder_ == null) { + return changes_.size(); + } else { + return changesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange getChanges(int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1beta.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.set(index, value); + onChanged(); + } else { + changesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.set(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder addChanges(com.google.analytics.admin.v1beta.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(value); + onChanged(); + } else { + changesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1beta.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(index, value); + onChanged(); + } else { + changesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder addAllChanges( + java.lang.Iterable + values) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changes_); + onChanged(); + } else { + changesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder clearChanges() { + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + changesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public Builder removeChanges(int index) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.remove(index); + onChanged(); + } else { + changesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder getChangesBuilder( + int index) { + return getChangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesOrBuilderList() { + if (changesBuilder_ != null) { + return changesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changes_); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder addChangesBuilder() { + return getChangesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder addChangesBuilder( + int index) { + return getChangesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesBuilderList() { + return getChangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange, + com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder> + getChangesFieldBuilder() { + if (changesBuilder_ == null) { + changesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryChange, + com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder>( + changes_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); + changes_ = null; + } + return changesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ChangeHistoryEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ChangeHistoryEvent) + private static final com.google.analytics.admin.v1beta.ChangeHistoryEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ChangeHistoryEvent(); + } + + public static com.google.analytics.admin.v1beta.ChangeHistoryEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java new file mode 100644 index 000000000000..5b52cdc8e089 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java @@ -0,0 +1,210 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface ChangeHistoryEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ChangeHistoryEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + boolean hasChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + com.google.protobuf.Timestamp getChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder(); + + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + int getActorTypeValue(); + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1beta.ActorType actor_type = 3; + * + * @return The actorType. + */ + com.google.analytics.admin.v1beta.ActorType getActorType(); + + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + java.lang.String getUserActorEmail(); + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + com.google.protobuf.ByteString getUserActorEmailBytes(); + + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + boolean getChangesFiltered(); + + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + java.util.List getChangesList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1beta.ChangeHistoryChange getChanges(int index); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + int getChangesCount(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + java.util.List + getChangesOrBuilderList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder getChangesOrBuilder(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java new file mode 100644 index 000000000000..3f619d311e78 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java @@ -0,0 +1,399 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Types of resources whose changes may be returned from change history.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.ChangeHistoryResourceType} + */ +public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + ACCOUNT(1), + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + PROPERTY(2), + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + FIREBASE_LINK(6), + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + GOOGLE_ADS_LINK(7), + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + GOOGLE_SIGNALS_SETTINGS(8), + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + CONVERSION_EVENT(9), + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + MEASUREMENT_PROTOCOL_SECRET(10), + /** + * + * + *
+   * DataRetentionSettings resource
+   * 
+ * + * DATA_RETENTION_SETTINGS = 13; + */ + DATA_RETENTION_SETTINGS(13), + /** + * + * + *
+   * DisplayVideo360AdvertiserLink resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + DISPLAY_VIDEO_360_ADVERTISER_LINK(14), + /** + * + * + *
+   * DisplayVideo360AdvertiserLinkProposal resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(15), + /** + * + * + *
+   * DataStream resource
+   * 
+ * + * DATA_STREAM = 18; + */ + DATA_STREAM(18), + /** + * + * + *
+   * AttributionSettings resource
+   * 
+ * + * ATTRIBUTION_SETTINGS = 20; + */ + ATTRIBUTION_SETTINGS(20), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + public static final int ACCOUNT_VALUE = 1; + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + public static final int PROPERTY_VALUE = 2; + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + public static final int FIREBASE_LINK_VALUE = 6; + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + public static final int GOOGLE_ADS_LINK_VALUE = 7; + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + public static final int GOOGLE_SIGNALS_SETTINGS_VALUE = 8; + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + public static final int CONVERSION_EVENT_VALUE = 9; + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + public static final int MEASUREMENT_PROTOCOL_SECRET_VALUE = 10; + /** + * + * + *
+   * DataRetentionSettings resource
+   * 
+ * + * DATA_RETENTION_SETTINGS = 13; + */ + public static final int DATA_RETENTION_SETTINGS_VALUE = 13; + /** + * + * + *
+   * DisplayVideo360AdvertiserLink resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; + */ + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_VALUE = 14; + /** + * + * + *
+   * DisplayVideo360AdvertiserLinkProposal resource
+   * 
+ * + * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; + */ + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_VALUE = 15; + /** + * + * + *
+   * DataStream resource
+   * 
+ * + * DATA_STREAM = 18; + */ + public static final int DATA_STREAM_VALUE = 18; + /** + * + * + *
+   * AttributionSettings resource
+   * 
+ * + * ATTRIBUTION_SETTINGS = 20; + */ + public static final int ATTRIBUTION_SETTINGS_VALUE = 20; + + 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 ChangeHistoryResourceType 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 ChangeHistoryResourceType forNumber(int value) { + switch (value) { + case 0: + return CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED; + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + case 8: + return GOOGLE_SIGNALS_SETTINGS; + case 9: + return CONVERSION_EVENT; + case 10: + return MEASUREMENT_PROTOCOL_SECRET; + case 13: + return DATA_RETENTION_SETTINGS; + case 14: + return DISPLAY_VIDEO_360_ADVERTISER_LINK; + case 15: + return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; + case 18: + return DATA_STREAM; + case 20: + return ATTRIBUTION_SETTINGS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ChangeHistoryResourceType findValueByNumber(int number) { + return ChangeHistoryResourceType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(4); + } + + private static final ChangeHistoryResourceType[] VALUES = values(); + + public static ChangeHistoryResourceType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ChangeHistoryResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ChangeHistoryResourceType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java new file mode 100644 index 000000000000..4ef7ef7bccac --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java @@ -0,0 +1,1667 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A conversion event in a Google Analytics property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ConversionEvent} + */ +public final class ConversionEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ConversionEvent) + ConversionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionEvent.newBuilder() to construct. + private ConversionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversionEvent() { + name_ = ""; + eventName_ = ""; + countingMethod_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversionEvent(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ConversionEvent.class, + com.google.analytics.admin.v1beta.ConversionEvent.Builder.class); + } + + /** + * + * + *
+   * The method by which conversions will be counted across multiple events
+   * within a session.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod} + */ + public enum ConversionCountingMethod implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Counting method not specified.
+     * 
+ * + * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + */ + CONVERSION_COUNTING_METHOD_UNSPECIFIED(0), + /** + * + * + *
+     * Each Event instance is considered a Conversion.
+     * 
+ * + * ONCE_PER_EVENT = 1; + */ + ONCE_PER_EVENT(1), + /** + * + * + *
+     * An Event instance is considered a Conversion at most once per session per
+     * user.
+     * 
+ * + * ONCE_PER_SESSION = 2; + */ + ONCE_PER_SESSION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Counting method not specified.
+     * 
+ * + * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; + */ + public static final int CONVERSION_COUNTING_METHOD_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Each Event instance is considered a Conversion.
+     * 
+ * + * ONCE_PER_EVENT = 1; + */ + public static final int ONCE_PER_EVENT_VALUE = 1; + /** + * + * + *
+     * An Event instance is considered a Conversion at most once per session per
+     * user.
+     * 
+ * + * ONCE_PER_SESSION = 2; + */ + public static final int ONCE_PER_SESSION_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConversionCountingMethod 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 ConversionCountingMethod forNumber(int value) { + switch (value) { + case 0: + return CONVERSION_COUNTING_METHOD_UNSPECIFIED; + case 1: + return ONCE_PER_EVENT; + case 2: + return ONCE_PER_SESSION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConversionCountingMethod findValueByNumber(int number) { + return ConversionCountingMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ConversionEvent.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ConversionCountingMethod[] VALUES = values(); + + public static ConversionCountingMethod valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ConversionCountingMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventName_ = ""; + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + 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(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int DELETABLE_FIELD_NUMBER = 4; + private boolean deletable_ = false; + /** + * + * + *
+   * Output only. If set, this event can currently be deleted with
+   * DeleteConversionEvent.
+   * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + @java.lang.Override + public boolean getDeletable() { + return deletable_; + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private boolean custom_ = false; + /** + * + * + *
+   * Output only. If set to true, this conversion event refers to a custom
+   * event.  If set to false, this conversion event refers to a default event in
+   * GA. Default events typically have special meaning in GA. Default events are
+   * usually created for you by the GA system, but in some cases can be created
+   * by property admins. Custom events count towards the maximum number of
+   * custom conversion events that may be created per property.
+   * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + @java.lang.Override + public boolean getCustom() { + return custom_; + } + + public static final int COUNTING_METHOD_FIELD_NUMBER = 6; + private int countingMethod_ = 0; + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + @java.lang.Override + public int getCountingMethodValue() { + return countingMethod_; + } + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The countingMethod. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod + getCountingMethod() { + com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod result = + com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.forNumber( + countingMethod_); + return result == null + ? com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (deletable_ != false) { + output.writeBool(4, deletable_); + } + if (custom_ != false) { + output.writeBool(5, custom_); + } + if (countingMethod_ + != com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod + .CONVERSION_COUNTING_METHOD_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, countingMethod_); + } + 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(eventName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (deletable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, deletable_); + } + if (custom_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, custom_); + } + if (countingMethod_ + != com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod + .CONVERSION_COUNTING_METHOD_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, countingMethod_); + } + 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.admin.v1beta.ConversionEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ConversionEvent other = + (com.google.analytics.admin.v1beta.ConversionEvent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEventName().equals(other.getEventName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getDeletable() != other.getDeletable()) return false; + if (getCustom() != other.getCustom()) return false; + if (countingMethod_ != other.countingMethod_) 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) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + DELETABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletable()); + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustom()); + hash = (37 * hash) + COUNTING_METHOD_FIELD_NUMBER; + hash = (53 * hash) + countingMethod_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.ConversionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A conversion event in a Google Analytics property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ConversionEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ConversionEvent) + com.google.analytics.admin.v1beta.ConversionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ConversionEvent.class, + com.google.analytics.admin.v1beta.ConversionEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ConversionEvent.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + eventName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + deletable_ = false; + custom_ = false; + countingMethod_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent build() { + com.google.analytics.admin.v1beta.ConversionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent buildPartial() { + com.google.analytics.admin.v1beta.ConversionEvent result = + new com.google.analytics.admin.v1beta.ConversionEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ConversionEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventName_ = eventName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.deletable_ = deletable_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.custom_ = custom_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.countingMethod_ = countingMethod_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ConversionEvent) { + return mergeFrom((com.google.analytics.admin.v1beta.ConversionEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ConversionEvent other) { + if (other == com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getDeletable() != false) { + setDeletable(other.getDeletable()); + } + if (other.getCustom() != false) { + setCustom(other.getCustom()); + } + if (other.countingMethod_ != 0) { + setCountingMethodValue(other.getCountingMethodValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + deletable_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + custom_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + countingMethod_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.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. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + eventName_ = getDefaultInstance().getEventName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private boolean deletable_; + /** + * + * + *
+     * Output only. If set, this event can currently be deleted with
+     * DeleteConversionEvent.
+     * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + @java.lang.Override + public boolean getDeletable() { + return deletable_; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted with
+     * DeleteConversionEvent.
+     * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deletable to set. + * @return This builder for chaining. + */ + public Builder setDeletable(boolean value) { + + deletable_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted with
+     * DeleteConversionEvent.
+     * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeletable() { + bitField0_ = (bitField0_ & ~0x00000008); + deletable_ = false; + onChanged(); + return this; + } + + private boolean custom_; + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom
+     * event.  If set to false, this conversion event refers to a default event in
+     * GA. Default events typically have special meaning in GA. Default events are
+     * usually created for you by the GA system, but in some cases can be created
+     * by property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + @java.lang.Override + public boolean getCustom() { + return custom_; + } + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom
+     * event.  If set to false, this conversion event refers to a default event in
+     * GA. Default events typically have special meaning in GA. Default events are
+     * usually created for you by the GA system, but in some cases can be created
+     * by property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The custom to set. + * @return This builder for chaining. + */ + public Builder setCustom(boolean value) { + + custom_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom
+     * event.  If set to false, this conversion event refers to a default event in
+     * GA. Default events typically have special meaning in GA. Default events are
+     * usually created for you by the GA system, but in some cases can be created
+     * by property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCustom() { + bitField0_ = (bitField0_ & ~0x00000010); + custom_ = false; + onChanged(); + return this; + } + + private int countingMethod_ = 0; + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + @java.lang.Override + public int getCountingMethodValue() { + return countingMethod_; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for countingMethod to set. + * @return This builder for chaining. + */ + public Builder setCountingMethodValue(int value) { + countingMethod_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The countingMethod. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod + getCountingMethod() { + com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod result = + com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.forNumber( + countingMethod_); + return result == null + ? com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The countingMethod to set. + * @return This builder for chaining. + */ + public Builder setCountingMethod( + com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + countingMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The method by which conversions will be counted across multiple
+     * events within a session. If this value is not provided, it will be set to
+     * `ONCE_PER_EVENT`.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearCountingMethod() { + bitField0_ = (bitField0_ & ~0x00000020); + countingMethod_ = 0; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ConversionEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ConversionEvent) + private static final com.google.analytics.admin.v1beta.ConversionEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ConversionEvent(); + } + + public static com.google.analytics.admin.v1beta.ConversionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java new file mode 100644 index 000000000000..5e6b5df2a8aa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java @@ -0,0 +1,182 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface ConversionEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ConversionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. If set, this event can currently be deleted with
+   * DeleteConversionEvent.
+   * 
+ * + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + boolean getDeletable(); + + /** + * + * + *
+   * Output only. If set to true, this conversion event refers to a custom
+   * event.  If set to false, this conversion event refers to a default event in
+   * GA. Default events typically have special meaning in GA. Default events are
+   * usually created for you by the GA system, but in some cases can be created
+   * by property admins. Custom events count towards the maximum number of
+   * custom conversion events that may be created per property.
+   * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + boolean getCustom(); + + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for countingMethod. + */ + int getCountingMethodValue(); + /** + * + * + *
+   * Optional. The method by which conversions will be counted across multiple
+   * events within a session. If this value is not provided, it will be set to
+   * `ONCE_PER_EVENT`.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The countingMethod. + */ + com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod getCountingMethod(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java new file mode 100644 index 000000000000..137b634976c3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java @@ -0,0 +1,944 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateConversionEventRequest} + */ +public final class CreateConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateConversionEventRequest) + CreateConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateConversionEventRequest.newBuilder() to construct. + private CreateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConversionEventRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateConversionEventRequest.class, + com.google.analytics.admin.v1beta.CreateConversionEventRequest.Builder.class); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return conversionEvent_ != null; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + + public static final int PARENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conversionEvent_ != null) { + output.writeMessage(1, getConversionEvent()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversionEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversionEvent()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + 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.admin.v1beta.CreateConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateConversionEventRequest other = + (com.google.analytics.admin.v1beta.CreateConversionEventRequest) obj; + + if (hasConversionEvent() != other.hasConversionEvent()) return false; + if (hasConversionEvent()) { + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + } + if (!getParent().equals(other.getParent())) 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 (hasConversionEvent()) { + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateConversionEventRequest) + com.google.analytics.admin.v1beta.CreateConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateConversionEventRequest.class, + com.google.analytics.admin.v1beta.CreateConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreateConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateConversionEventRequest build() { + com.google.analytics.admin.v1beta.CreateConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateConversionEventRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateConversionEventRequest result = + new com.google.analytics.admin.v1beta.CreateConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.CreateConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionEvent_ = + conversionEventBuilder_ == null ? conversionEvent_ : conversionEventBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreateConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreateConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1beta.CreateConversionEventRequest.getDefaultInstance()) + return this; + if (other.hasConversionEvent()) { + mergeConversionEvent(other.getConversionEvent()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getConversionEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + public boolean hasConversionEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } else { + return conversionEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionEvent_ = value; + } else { + conversionEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + conversionEvent_ = builderForValue.build(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && conversionEvent_ != null + && conversionEvent_ + != com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) { + getConversionEventBuilder().mergeFrom(value); + } else { + conversionEvent_ = value; + } + } else { + conversionEventBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionEvent() { + bitField0_ = (bitField0_ & ~0x00000001); + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (conversionEventBuilder_ != null) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( + getConversionEvent(), getParentForChildren(), isClean()); + conversionEvent_ = null; + } + return conversionEventBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion
+     * event will be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateConversionEventRequest) + private static final com.google.analytics.admin.v1beta.CreateConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateConversionEventRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..5750efe06d97 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreateConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion
+   * event will be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java new file mode 100644 index 000000000000..9bd1ac802295 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java @@ -0,0 +1,937 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomDimensionRequest} + */ +public final class CreateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateCustomDimensionRequest) + CreateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomDimensionRequest.newBuilder() to construct. + private CreateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomDimensionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.CustomDimension customDimension_; + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (customDimension_ != null) { + output.writeMessage(2, getCustomDimension()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomDimension()); + } + 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.admin.v1beta.CreateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest other = + (com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateCustomDimensionRequest) + com.google.analytics.admin.v1beta.CreateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest build() { + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest result = + new com.google.analytics.admin.v1beta.CreateCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.CreateCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customDimension_ = + customDimensionBuilder_ == null ? customDimension_ : customDimensionBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomDimensionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + } else { + customDimensionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customDimension_ != null + && customDimension_ + != com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()) { + getCustomDimensionBuilder().mergeFrom(value); + } else { + customDimension_ = value; + } + } else { + customDimensionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomDimension() { + bitField0_ = (bitField0_ & ~0x00000002); + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.CustomDimension.Builder getCustomDimensionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateCustomDimensionRequest) + private static final com.google.analytics.admin.v1beta.CreateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..e78bbdd22ea1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + com.google.analytics.admin.v1beta.CustomDimension getCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java new file mode 100644 index 000000000000..235d68607f03 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java @@ -0,0 +1,930 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomMetricRequest} + */ +public final class CreateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateCustomMetricRequest) + CreateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomMetricRequest.newBuilder() to construct. + private CreateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomMetricRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1beta.CreateCustomMetricRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.CustomMetric customMetric_; + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (customMetric_ != null) { + output.writeMessage(2, getCustomMetric()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomMetric()); + } + 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.admin.v1beta.CreateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateCustomMetricRequest other = + (com.google.analytics.admin.v1beta.CreateCustomMetricRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateCustomMetricRequest) + com.google.analytics.admin.v1beta.CreateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1beta.CreateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreateCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomMetricRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomMetricRequest build() { + com.google.analytics.admin.v1beta.CreateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateCustomMetricRequest result = + new com.google.analytics.admin.v1beta.CreateCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.CreateCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customMetric_ = + customMetricBuilder_ == null ? customMetric_ : customMetricBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateCustomMetricRequest other) { + if (other == com.google.analytics.admin.v1beta.CreateCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getCustomMetricFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + } else { + customMetricBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && customMetric_ != null + && customMetric_ + != com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()) { + getCustomMetricBuilder().mergeFrom(value); + } else { + customMetric_ = value; + } + } else { + customMetricBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomMetric() { + bitField0_ = (bitField0_ & ~0x00000002); + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.CustomMetric.Builder getCustomMetricBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateCustomMetricRequest) + private static final com.google.analytics.admin.v1beta.CreateCustomMetricRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..c26b71d5d8ed --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + com.google.analytics.admin.v1beta.CustomMetric getCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java new file mode 100644 index 000000000000..91cec1e4a684 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java @@ -0,0 +1,928 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateDataStreamRequest} + */ +public final class CreateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateDataStreamRequest) + CreateDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDataStreamRequest.newBuilder() to construct. + private CreateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDataStreamRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateDataStreamRequest.class, + com.google.analytics.admin.v1beta.CreateDataStreamRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATA_STREAM_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.DataStream dataStream_; + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return dataStream_ != null; + } + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream getDataStream() { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (dataStream_ != null) { + output.writeMessage(2, getDataStream()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (dataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataStream()); + } + 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.admin.v1beta.CreateDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateDataStreamRequest other = + (com.google.analytics.admin.v1beta.CreateDataStreamRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDataStream() != other.hasDataStream()) return false; + if (hasDataStream()) { + if (!getDataStream().equals(other.getDataStream())) return false; + } + if (!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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDataStream()) { + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateDataStreamRequest) + com.google.analytics.admin.v1beta.CreateDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateDataStreamRequest.class, + com.google.analytics.admin.v1beta.CreateDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreateDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateDataStreamRequest build() { + com.google.analytics.admin.v1beta.CreateDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateDataStreamRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateDataStreamRequest result = + new com.google.analytics.admin.v1beta.CreateDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.CreateDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.dataStream_ = dataStreamBuilder_ == null ? dataStream_ : dataStreamBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreateDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreateDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateDataStreamRequest other) { + if (other == com.google.analytics.admin.v1beta.CreateDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasDataStream()) { + mergeDataStream(other.getDataStream()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.DataStream dataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + dataStreamBuilder_; + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + public boolean hasDataStream() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + public com.google.analytics.admin.v1beta.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } else { + return dataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataStream(com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStream_ = value; + } else { + dataStreamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataStream( + com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + dataStream_ = builderForValue.build(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataStream(com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && dataStream_ != null + && dataStream_ != com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) { + getDataStreamBuilder().mergeFrom(value); + } else { + dataStream_ = value; + } + } else { + dataStreamBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataStream() { + bitField0_ = (bitField0_ & ~0x00000002); + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { + if (dataStreamBuilder_ != null) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } + } + /** + * + * + *
+     * Required. The DataStream to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + getDataStreamFieldBuilder() { + if (dataStreamBuilder_ == null) { + dataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder>( + getDataStream(), getParentForChildren(), isClean()); + dataStream_ = null; + } + return dataStreamBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateDataStreamRequest) + private static final com.google.analytics.admin.v1beta.CreateDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateDataStreamRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..595f00637df6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreateDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataStream. + */ + com.google.analytics.admin.v1beta.DataStream getDataStream(); + /** + * + * + *
+   * Required. The DataStream to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java new file mode 100644 index 000000000000..f6606c461806 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java @@ -0,0 +1,937 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateFirebaseLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateFirebaseLinkRequest} + */ +public final class CreateFirebaseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) + CreateFirebaseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateFirebaseLinkRequest.newBuilder() to construct. + private CreateFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateFirebaseLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateFirebaseLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.class, + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREBASE_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.FirebaseLink firebaseLink_; + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return firebaseLink_ != null; + } + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { + return firebaseLink_ == null + ? com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + return firebaseLink_ == null + ? com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (firebaseLink_ != null) { + output.writeMessage(2, getFirebaseLink()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (firebaseLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirebaseLink()); + } + 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.admin.v1beta.CreateFirebaseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest other = + (com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasFirebaseLink() != other.hasFirebaseLink()) return false; + if (hasFirebaseLink()) { + if (!getFirebaseLink().equals(other.getFirebaseLink())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasFirebaseLink()) { + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateFirebaseLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateFirebaseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.class, + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + firebaseLink_ = null; + if (firebaseLinkBuilder_ != null) { + firebaseLinkBuilder_.dispose(); + firebaseLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest build() { + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest result = + new com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firebaseLink_ = + firebaseLinkBuilder_ == null ? firebaseLink_ : firebaseLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest other) { + if (other == com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFirebaseLink()) { + mergeFirebaseLink(other.getFirebaseLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getFirebaseLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.FirebaseLink firebaseLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> + firebaseLinkBuilder_; + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firebaseLink field is set. + */ + public boolean hasFirebaseLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firebaseLink. + */ + public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + return firebaseLink_ == null + ? com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } else { + return firebaseLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firebaseLink_ = value; + } else { + firebaseLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setFirebaseLink( + com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { + if (firebaseLinkBuilder_ == null) { + firebaseLink_ = builderForValue.build(); + } else { + firebaseLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && firebaseLink_ != null + && firebaseLink_ + != com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()) { + getFirebaseLinkBuilder().mergeFrom(value); + } else { + firebaseLink_ = value; + } + } else { + firebaseLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearFirebaseLink() { + bitField0_ = (bitField0_ & ~0x00000002); + firebaseLink_ = null; + if (firebaseLinkBuilder_ != null) { + firebaseLinkBuilder_.dispose(); + firebaseLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.FirebaseLink.Builder getFirebaseLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFirebaseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if (firebaseLinkBuilder_ != null) { + return firebaseLinkBuilder_.getMessageOrBuilder(); + } else { + return firebaseLink_ == null + ? com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() + : firebaseLink_; + } + } + /** + * + * + *
+     * Required. The Firebase link to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> + getFirebaseLinkFieldBuilder() { + if (firebaseLinkBuilder_ == null) { + firebaseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder>( + getFirebaseLink(), getParentForChildren(), isClean()); + firebaseLink_ = null; + } + return firebaseLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) + private static final com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateFirebaseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java new file mode 100644 index 000000000000..04bf57e900b8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreateFirebaseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the firebaseLink field is set. + */ + boolean hasFirebaseLink(); + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The firebaseLink. + */ + com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink(); + /** + * + * + *
+   * Required. The Firebase link to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java new file mode 100644 index 000000000000..5097386bd31d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java @@ -0,0 +1,934 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateGoogleAdsLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} + */ +public final class CreateGoogleAdsLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) + CreateGoogleAdsLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateGoogleAdsLinkRequest.newBuilder() to construct. + private CreateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateGoogleAdsLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateGoogleAdsLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return googleAdsLink_ != null; + } + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (googleAdsLink_ != null) { + output.writeMessage(2, getGoogleAdsLink()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (googleAdsLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGoogleAdsLink()); + } + 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.admin.v1beta.CreateGoogleAdsLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest other = + (com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; + if (hasGoogleAdsLink()) { + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasGoogleAdsLink()) { + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateGoogleAdsLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest build() { + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest result = + new com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.googleAdsLink_ = + googleAdsLinkBuilder_ == null ? googleAdsLink_ : googleAdsLinkBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest other) { + if (other + == com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasGoogleAdsLink()) { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleAdsLink field is set. + */ + public boolean hasGoogleAdsLink() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleAdsLink. + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } else { + return googleAdsLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleAdsLink_ = value; + } else { + googleAdsLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + googleAdsLink_ = builderForValue.build(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && googleAdsLink_ != null + && googleAdsLink_ + != com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) { + getGoogleAdsLinkBuilder().mergeFrom(value); + } else { + googleAdsLink_ = value; + } + } else { + googleAdsLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGoogleAdsLink() { + bitField0_ = (bitField0_ & ~0x00000002); + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (googleAdsLinkBuilder_ != null) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + } + /** + * + * + *
+     * Required. The GoogleAdsLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( + getGoogleAdsLink(), getParentForChildren(), isClean()); + googleAdsLink_ = null; + } + return googleAdsLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) + private static final com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateGoogleAdsLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java new file mode 100644 index 000000000000..0adfaf10c35b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreateGoogleAdsLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+   * Required. The GoogleAdsLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..35b74569680f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java @@ -0,0 +1,969 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} + */ +public final class CreateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) + CreateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMeasurementProtocolSecretRequest.newBuilder() to construct. + private CreateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMeasurementProtocolSecretRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (measurementProtocolSecret_ != null) { + output.writeMessage(2, getMeasurementProtocolSecret()); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMeasurementProtocolSecret()); + } + 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.admin.v1beta.CreateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest buildPartial() { + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.measurementProtocolSecret_ = + measurementProtocolSecretBuilder_ == null + ? measurementProtocolSecret_ + : measurementProtocolSecretBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Format: properties/{property}/dataStreams/{dataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && measurementProtocolSecret_ != null + && measurementProtocolSecret_ + != com.google.analytics.admin.v1beta.MeasurementProtocolSecret + .getDefaultInstance()) { + getMeasurementProtocolSecretBuilder().mergeFrom(value); + } else { + measurementProtocolSecret_ = value; + } + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + bitField0_ = (bitField0_ & ~0x00000002); + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..6db411497735 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,98 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Format: properties/{property}/dataStreams/{dataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java new file mode 100644 index 000000000000..41a2adc12f63 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java @@ -0,0 +1,742 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for CreateProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreatePropertyRequest} + */ +public final class CreatePropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreatePropertyRequest) + CreatePropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreatePropertyRequest.newBuilder() to construct. + private CreatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreatePropertyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreatePropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreatePropertyRequest.class, + com.google.analytics.admin.v1beta.CreatePropertyRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.Property property_; + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return property_ != null; + } + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Property getProperty() { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } + + 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 (property_ != null) { + output.writeMessage(1, getProperty()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (property_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + } + 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.admin.v1beta.CreatePropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CreatePropertyRequest other = + (com.google.analytics.admin.v1beta.CreatePropertyRequest) obj; + + if (hasProperty() != other.hasProperty()) return false; + if (hasProperty()) { + if (!getProperty().equals(other.getProperty())) 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 (hasProperty()) { + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.CreatePropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for CreateProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CreatePropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreatePropertyRequest) + com.google.analytics.admin.v1beta.CreatePropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CreatePropertyRequest.class, + com.google.analytics.admin.v1beta.CreatePropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CreatePropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreatePropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CreatePropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreatePropertyRequest build() { + com.google.analytics.admin.v1beta.CreatePropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreatePropertyRequest buildPartial() { + com.google.analytics.admin.v1beta.CreatePropertyRequest result = + new com.google.analytics.admin.v1beta.CreatePropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.CreatePropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = propertyBuilder_ == null ? property_ : propertyBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CreatePropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.CreatePropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CreatePropertyRequest other) { + if (other == com.google.analytics.admin.v1beta.CreatePropertyRequest.getDefaultInstance()) + return this; + if (other.hasProperty()) { + mergeProperty(other.getProperty()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.Property property_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + public boolean hasProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + public com.google.analytics.admin.v1beta.Property getProperty() { + if (propertyBuilder_ == null) { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } else { + return propertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty(com.google.analytics.admin.v1beta.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + } else { + propertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty(com.google.analytics.admin.v1beta.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + property_ = builderForValue.build(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeProperty(com.google.analytics.admin.v1beta.Property value) { + if (propertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && property_ != null + && property_ != com.google.analytics.admin.v1beta.Property.getDefaultInstance()) { + getPropertyBuilder().mergeFrom(value); + } else { + property_ = value; + } + } else { + propertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.Property.Builder getPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { + if (propertyBuilder_ != null) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } + } + /** + * + * + *
+     * Required. The property to create.
+     * Note: the supplied property must specify its parent.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); + property_ = null; + } + return propertyBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreatePropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreatePropertyRequest) + private static final com.google.analytics.admin.v1beta.CreatePropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreatePropertyRequest(); + } + + public static com.google.analytics.admin.v1beta.CreatePropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreatePropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CreatePropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java new file mode 100644 index 000000000000..0d146fd58ebc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java @@ -0,0 +1,69 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface CreatePropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreatePropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + com.google.analytics.admin.v1beta.Property getProperty(); + /** + * + * + *
+   * Required. The property to create.
+   * Note: the supplied property must specify its parent.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java new file mode 100644 index 000000000000..1d13f111d4ad --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java @@ -0,0 +1,1762 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A definition for a CustomDimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CustomDimension} + */ +public final class CustomDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CustomDimension) + CustomDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomDimension.newBuilder() to construct. + private CustomDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomDimension() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomDimension(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CustomDimension.class, + com.google.analytics.admin.v1beta.CustomDimension.Builder.class); + } + + /** + * + * + *
+   * Valid values for the scope of this dimension.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.CustomDimension.DimensionScope} + */ + public enum DimensionScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + DIMENSION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + USER(2), + /** + * + * + *
+     * Dimension scoped to eCommerce items
+     * 
+ * + * ITEM = 3; + */ + ITEM(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + public static final int DIMENSION_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + public static final int USER_VALUE = 2; + /** + * + * + *
+     * Dimension scoped to eCommerce items
+     * 
+ * + * ITEM = 3; + */ + public static final int ITEM_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 DimensionScope 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 DimensionScope forNumber(int value) { + switch (value) { + case 0: + return DIMENSION_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + case 2: + return USER; + case 3: + return ITEM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DimensionScope findValueByNumber(int number) { + return DimensionScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.CustomDimension.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DimensionScope[] VALUES = values(); + + public static DimensionScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DimensionScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomDimension.DimensionScope) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterName_ = ""; + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + 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(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 5; + private int scope_ = 0; + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension.DimensionScope getScope() { + com.google.analytics.admin.v1beta.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + + public static final int DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER = 6; + private boolean disallowAdsPersonalization_ = false; + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from
+   * ads personalization.
+   *
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + + 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(parameterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (scope_ + != com.google.analytics.admin.v1beta.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + output.writeBool(6, disallowAdsPersonalization_); + } + 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(parameterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (scope_ + != com.google.analytics.admin.v1beta.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disallowAdsPersonalization_); + } + 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.admin.v1beta.CustomDimension)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CustomDimension other = + (com.google.analytics.admin.v1beta.CustomDimension) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (scope_ != other.scope_) return false; + if (getDisallowAdsPersonalization() != other.getDisallowAdsPersonalization()) 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) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisallowAdsPersonalization()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.CustomDimension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A definition for a CustomDimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CustomDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CustomDimension) + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CustomDimension.class, + com.google.analytics.admin.v1beta.CustomDimension.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CustomDimension.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + scope_ = 0; + disallowAdsPersonalization_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension build() { + com.google.analytics.admin.v1beta.CustomDimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension buildPartial() { + com.google.analytics.admin.v1beta.CustomDimension result = + new com.google.analytics.admin.v1beta.CustomDimension(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.CustomDimension result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameterName_ = parameterName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.scope_ = scope_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.disallowAdsPersonalization_ = disallowAdsPersonalization_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CustomDimension) { + return mergeFrom((com.google.analytics.admin.v1beta.CustomDimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CustomDimension other) { + if (other == com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.getDisallowAdsPersonalization() != false) { + setDisallowAdsPersonalization(other.getDisallowAdsPersonalization()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parameterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + disallowAdsPersonalization_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.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. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + parameterName_ = getDefaultInstance().getParameterName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     *
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     *
+     * If this is an item-scoped dimension, then this is the parameter
+     * name found in the eCommerce items array.
+     *
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics
+     * UI. Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150
+     * characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension.DimensionScope getScope() { + com.google.analytics.admin.v1beta.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + com.google.analytics.admin.v1beta.CustomDimension.DimensionScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000010); + scope_ = 0; + onChanged(); + return this; + } + + private boolean disallowAdsPersonalization_; + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from
+     * ads personalization.
+     *
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from
+     * ads personalization.
+     *
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disallowAdsPersonalization to set. + * @return This builder for chaining. + */ + public Builder setDisallowAdsPersonalization(boolean value) { + + disallowAdsPersonalization_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from
+     * ads personalization.
+     *
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisallowAdsPersonalization() { + bitField0_ = (bitField0_ & ~0x00000020); + disallowAdsPersonalization_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CustomDimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CustomDimension) + private static final com.google.analytics.admin.v1beta.CustomDimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CustomDimension(); + } + + public static com.google.analytics.admin.v1beta.CustomDimension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomDimension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java new file mode 100644 index 000000000000..c57ddaf48abc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java @@ -0,0 +1,208 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface CustomDimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CustomDimension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   *
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   *
+   * If this is an item-scoped dimension, then this is the parameter
+   * name found in the eCommerce items array.
+   *
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics
+   * UI. Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150
+   * characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1beta.CustomDimension.DimensionScope getScope(); + + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from
+   * ads personalization.
+   *
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + boolean getDisallowAdsPersonalization(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java new file mode 100644 index 000000000000..e88476fb62f2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java @@ -0,0 +1,2714 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A definition for a custom metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CustomMetric} + */ +public final class CustomMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CustomMetric) + CustomMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomMetric.newBuilder() to construct. + private CustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomMetric() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + measurementUnit_ = 0; + scope_ = 0; + restrictedMetricType_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomMetric(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CustomMetric.class, + com.google.analytics.admin.v1beta.CustomMetric.Builder.class); + } + + /** + * + * + *
+   * Possible types of representing the custom metric's value.
+   *
+   * Currency representation may change in the future, requiring a breaking API
+   * change.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.CustomMetric.MeasurementUnit} + */ + public enum MeasurementUnit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + MEASUREMENT_UNIT_UNSPECIFIED(0), + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + CURRENCY(2), + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + FEET(3), + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + METERS(4), + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + KILOMETERS(5), + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + MILES(6), + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + MILLISECONDS(7), + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + SECONDS(8), + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + MINUTES(9), + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + HOURS(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + public static final int CURRENCY_VALUE = 2; + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + public static final int FEET_VALUE = 3; + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + public static final int METERS_VALUE = 4; + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + public static final int KILOMETERS_VALUE = 5; + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + public static final int MILES_VALUE = 6; + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + public static final int MILLISECONDS_VALUE = 7; + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + public static final int SECONDS_VALUE = 8; + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + public static final int MINUTES_VALUE = 9; + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + public static final int HOURS_VALUE = 10; + + 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 MeasurementUnit 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 MeasurementUnit forNumber(int value) { + switch (value) { + case 0: + return MEASUREMENT_UNIT_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return CURRENCY; + case 3: + return FEET; + case 4: + return METERS; + case 5: + return KILOMETERS; + case 6: + return MILES; + case 7: + return MILLISECONDS; + case 8: + return SECONDS; + case 9: + return MINUTES; + case 10: + return HOURS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MeasurementUnit findValueByNumber(int number) { + return MeasurementUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.CustomMetric.getDescriptor().getEnumTypes().get(0); + } + + private static final MeasurementUnit[] VALUES = values(); + + public static MeasurementUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MeasurementUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomMetric.MeasurementUnit) + } + + /** + * + * + *
+   * The scope of this metric.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.CustomMetric.MetricScope} + */ + public enum MetricScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + METRIC_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + public static final int METRIC_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + + 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 MetricScope 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 MetricScope forNumber(int value) { + switch (value) { + case 0: + return METRIC_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricScope findValueByNumber(int number) { + return MetricScope.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.CustomMetric.getDescriptor().getEnumTypes().get(1); + } + + private static final MetricScope[] VALUES = values(); + + public static MetricScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private MetricScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomMetric.MetricScope) + } + + /** + * + * + *
+   * Labels that mark the data in this custom metric as data that should be
+   * restricted to specific users.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType} + */ + public enum RestrictedMetricType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Type unknown or unspecified.
+     * 
+ * + * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + RESTRICTED_METRIC_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Metric reports cost data.
+     * 
+ * + * COST_DATA = 1; + */ + COST_DATA(1), + /** + * + * + *
+     * Metric reports revenue data.
+     * 
+ * + * REVENUE_DATA = 2; + */ + REVENUE_DATA(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Type unknown or unspecified.
+     * 
+ * + * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; + */ + public static final int RESTRICTED_METRIC_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Metric reports cost data.
+     * 
+ * + * COST_DATA = 1; + */ + public static final int COST_DATA_VALUE = 1; + /** + * + * + *
+     * Metric reports revenue data.
+     * 
+ * + * REVENUE_DATA = 2; + */ + public static final int REVENUE_DATA_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RestrictedMetricType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RestrictedMetricType forNumber(int value) { + switch (value) { + case 0: + return RESTRICTED_METRIC_TYPE_UNSPECIFIED; + case 1: + return COST_DATA; + case 2: + return REVENUE_DATA; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RestrictedMetricType findValueByNumber(int number) { + return RestrictedMetricType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.CustomMetric.getDescriptor().getEnumTypes().get(2); + } + + private static final RestrictedMetricType[] VALUES = values(); + + public static RestrictedMetricType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RestrictedMetricType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PARAMETER_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parameterName_ = ""; + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + 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(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEASUREMENT_UNIT_FIELD_NUMBER = 5; + private int measurementUnit_ = 0; + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit getMeasurementUnit() { + com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.forNumber(measurementUnit_); + return result == null + ? com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_ = 0; + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric.MetricScope getScope() { + com.google.analytics.admin.v1beta.CustomMetric.MetricScope result = + com.google.analytics.admin.v1beta.CustomMetric.MetricScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1beta.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + + public static final int RESTRICTED_METRIC_TYPE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List restrictedMetricType_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType> + restrictedMetricType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, + com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType>() { + public com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType convert( + java.lang.Integer from) { + com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType result = + com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType.forNumber( + from); + return result == null + ? com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + @java.lang.Override + public java.util.List + getRestrictedMetricTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType>( + restrictedMetricType_, restrictedMetricType_converter_); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + @java.lang.Override + public int getRestrictedMetricTypeCount() { + return restrictedMetricType_.size(); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType + getRestrictedMetricType(int index) { + return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + @java.lang.Override + public java.util.List getRestrictedMetricTypeValueList() { + return restrictedMetricType_; + } + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + @java.lang.Override + public int getRestrictedMetricTypeValue(int index) { + return restrictedMetricType_.get(index); + } + + private int restrictedMetricTypeMemoizedSerializedSize; + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + 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 { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1beta.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } + if (getRestrictedMetricTypeList().size() > 0) { + output.writeUInt32NoTag(66); + output.writeUInt32NoTag(restrictedMetricTypeMemoizedSerializedSize); + } + for (int i = 0; i < restrictedMetricType_.size(); i++) { + output.writeEnumNoTag(restrictedMetricType_.get(i)); + } + 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(parameterName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1beta.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } + { + int dataSize = 0; + for (int i = 0; i < restrictedMetricType_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + restrictedMetricType_.get(i)); + } + size += dataSize; + if (!getRestrictedMetricTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + restrictedMetricTypeMemoizedSerializedSize = dataSize; + } + size += 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.admin.v1beta.CustomMetric)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.CustomMetric other = + (com.google.analytics.admin.v1beta.CustomMetric) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (measurementUnit_ != other.measurementUnit_) return false; + if (scope_ != other.scope_) return false; + if (!restrictedMetricType_.equals(other.restrictedMetricType_)) return false; + if (!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) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MEASUREMENT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + measurementUnit_; + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + if (getRestrictedMetricTypeCount() > 0) { + hash = (37 * hash) + RESTRICTED_METRIC_TYPE_FIELD_NUMBER; + hash = (53 * hash) + restrictedMetricType_.hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.CustomMetric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A definition for a custom metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.CustomMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CustomMetric) + com.google.analytics.admin.v1beta.CustomMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.CustomMetric.class, + com.google.analytics.admin.v1beta.CustomMetric.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.CustomMetric.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + measurementUnit_ = 0; + scope_ = 0; + restrictedMetricType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric build() { + com.google.analytics.admin.v1beta.CustomMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric buildPartial() { + com.google.analytics.admin.v1beta.CustomMetric result = + new com.google.analytics.admin.v1beta.CustomMetric(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.CustomMetric result) { + if (((bitField0_ & 0x00000040) != 0)) { + restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.restrictedMetricType_ = restrictedMetricType_; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.CustomMetric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.parameterName_ = parameterName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.measurementUnit_ = measurementUnit_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.scope_ = scope_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.CustomMetric) { + return mergeFrom((com.google.analytics.admin.v1beta.CustomMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.CustomMetric other) { + if (other == com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.measurementUnit_ != 0) { + setMeasurementUnitValue(other.getMeasurementUnitValue()); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (!other.restrictedMetricType_.isEmpty()) { + if (restrictedMetricType_.isEmpty()) { + restrictedMetricType_ = other.restrictedMetricType_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.addAll(other.restrictedMetricType_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parameterName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 40: + { + measurementUnit_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + scope_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 64: + { + int tmpRaw = input.readEnum(); + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(tmpRaw); + break; + } // case 64 + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.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. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + parameterName_ = getDefaultInstance().getParameterName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     *
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     *
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parameterName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int measurementUnit_ = 0; + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnitValue(int value) { + measurementUnit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit getMeasurementUnit() { + com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.forNumber( + measurementUnit_); + return result == null + ? com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnit( + com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + measurementUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The type for the custom metric's value.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMeasurementUnit() { + bitField0_ = (bitField0_ & ~0x00000010); + measurementUnit_ = 0; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + scope_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric.MetricScope getScope() { + com.google.analytics.admin.v1beta.CustomMetric.MetricScope result = + com.google.analytics.admin.v1beta.CustomMetric.MetricScope.forNumber(scope_); + return result == null + ? com.google.analytics.admin.v1beta.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.analytics.admin.v1beta.CustomMetric.MetricScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + bitField0_ = (bitField0_ & ~0x00000020); + scope_ = 0; + onChanged(); + return this; + } + + private java.util.List restrictedMetricType_ = + java.util.Collections.emptyList(); + + private void ensureRestrictedMetricTypeIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + restrictedMetricType_ = new java.util.ArrayList(restrictedMetricType_); + bitField0_ |= 0x00000040; + } + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + public java.util.List + getRestrictedMetricTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType>( + restrictedMetricType_, restrictedMetricType_converter_); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + public int getRestrictedMetricTypeCount() { + return restrictedMetricType_.size(); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + public com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType + getRestrictedMetricType(int index) { + return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The restrictedMetricType to set. + * @return This builder for chaining. + */ + public Builder setRestrictedMetricType( + int index, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addRestrictedMetricType( + com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedMetricType( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType> + values) { + ensureRestrictedMetricTypeIsMutable(); + for (com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType value : values) { + restrictedMetricType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRestrictedMetricType() { + restrictedMetricType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + public java.util.List getRestrictedMetricTypeValueList() { + return java.util.Collections.unmodifiableList(restrictedMetricType_); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + public int getRestrictedMetricTypeValue(int index) { + return restrictedMetricType_.get(index); + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for restrictedMetricType to set. + * @return This builder for chaining. + */ + public Builder setRestrictedMetricTypeValue(int index, int value) { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addRestrictedMetricTypeValue(int value) { + ensureRestrictedMetricTypeIsMutable(); + restrictedMetricType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Types of restricted data that this metric may contain. Required
+     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+     * a non-CURRENCY measurement unit.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for restrictedMetricType to add. + * @return This builder for chaining. + */ + public Builder addAllRestrictedMetricTypeValue(java.lang.Iterable values) { + ensureRestrictedMetricTypeIsMutable(); + for (int value : values) { + restrictedMetricType_.add(value); + } + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CustomMetric) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CustomMetric) + private static final com.google.analytics.admin.v1beta.CustomMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CustomMetric(); + } + + public static com.google.analytics.admin.v1beta.CustomMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java new file mode 100644 index 000000000000..33240df380be --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java @@ -0,0 +1,296 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface CustomMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CustomMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   *
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   *
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + int getMeasurementUnitValue(); + /** + * + * + *
+   * Required. The type for the custom metric's value.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementUnit. + */ + com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit getMeasurementUnit(); + + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1beta.CustomMetric.MetricScope getScope(); + + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the restrictedMetricType. + */ + java.util.List + getRestrictedMetricTypeList(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of restrictedMetricType. + */ + int getRestrictedMetricTypeCount(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The restrictedMetricType at the given index. + */ + com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType getRestrictedMetricType( + int index); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for restrictedMetricType. + */ + java.util.List getRestrictedMetricTypeValueList(); + /** + * + * + *
+   * Optional. Types of restricted data that this metric may contain. Required
+   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
+   * a non-CURRENCY measurement unit.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of restrictedMetricType at the given index. + */ + int getRestrictedMetricTypeValue(int index); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java new file mode 100644 index 000000000000..0b751b55c8a7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java @@ -0,0 +1,1140 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Settings values for data retention. This is a singleton resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataRetentionSettings} + */ +public final class DataRetentionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataRetentionSettings) + DataRetentionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataRetentionSettings.newBuilder() to construct. + private DataRetentionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataRetentionSettings() { + name_ = ""; + eventDataRetention_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataRetentionSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataRetentionSettings.class, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder.class); + } + + /** + * + * + *
+   * Valid values for the data retention duration.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration} + */ + public enum RetentionDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Data retention time duration is not specified.
+     * 
+ * + * RETENTION_DURATION_UNSPECIFIED = 0; + */ + RETENTION_DURATION_UNSPECIFIED(0), + /** + * + * + *
+     * The data retention time duration is 2 months.
+     * 
+ * + * TWO_MONTHS = 1; + */ + TWO_MONTHS(1), + /** + * + * + *
+     * The data retention time duration is 14 months.
+     * 
+ * + * FOURTEEN_MONTHS = 3; + */ + FOURTEEN_MONTHS(3), + /** + * + * + *
+     * The data retention time duration is 26 months.
+     * Available to 360 properties only.
+     * 
+ * + * TWENTY_SIX_MONTHS = 4; + */ + TWENTY_SIX_MONTHS(4), + /** + * + * + *
+     * The data retention time duration is 38 months.
+     * Available to 360 properties only.
+     * 
+ * + * THIRTY_EIGHT_MONTHS = 5; + */ + THIRTY_EIGHT_MONTHS(5), + /** + * + * + *
+     * The data retention time duration is 50 months.
+     * Available to 360 properties only.
+     * 
+ * + * FIFTY_MONTHS = 6; + */ + FIFTY_MONTHS(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Data retention time duration is not specified.
+     * 
+ * + * RETENTION_DURATION_UNSPECIFIED = 0; + */ + public static final int RETENTION_DURATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The data retention time duration is 2 months.
+     * 
+ * + * TWO_MONTHS = 1; + */ + public static final int TWO_MONTHS_VALUE = 1; + /** + * + * + *
+     * The data retention time duration is 14 months.
+     * 
+ * + * FOURTEEN_MONTHS = 3; + */ + public static final int FOURTEEN_MONTHS_VALUE = 3; + /** + * + * + *
+     * The data retention time duration is 26 months.
+     * Available to 360 properties only.
+     * 
+ * + * TWENTY_SIX_MONTHS = 4; + */ + public static final int TWENTY_SIX_MONTHS_VALUE = 4; + /** + * + * + *
+     * The data retention time duration is 38 months.
+     * Available to 360 properties only.
+     * 
+ * + * THIRTY_EIGHT_MONTHS = 5; + */ + public static final int THIRTY_EIGHT_MONTHS_VALUE = 5; + /** + * + * + *
+     * The data retention time duration is 50 months.
+     * Available to 360 properties only.
+     * 
+ * + * FIFTY_MONTHS = 6; + */ + public static final int FIFTY_MONTHS_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RetentionDuration 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 RetentionDuration forNumber(int value) { + switch (value) { + case 0: + return RETENTION_DURATION_UNSPECIFIED; + case 1: + return TWO_MONTHS; + case 3: + return FOURTEEN_MONTHS; + case 4: + return TWENTY_SIX_MONTHS; + case 5: + return THIRTY_EIGHT_MONTHS; + case 6: + return FIFTY_MONTHS; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RetentionDuration findValueByNumber(int number) { + return RetentionDuration.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.DataRetentionSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RetentionDuration[] VALUES = values(); + + public static RetentionDuration valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RetentionDuration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration) + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_DATA_RETENTION_FIELD_NUMBER = 2; + private int eventDataRetention_ = 0; + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + @java.lang.Override + public int getEventDataRetentionValue() { + return eventDataRetention_; + } + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration + getEventDataRetention() { + com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration result = + com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.forNumber( + eventDataRetention_); + return result == null + ? com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.UNRECOGNIZED + : result; + } + + public static final int RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER = 3; + private boolean resetUserDataOnNewActivity_ = false; + /** + * + * + *
+   * If true, reset the retention period for the user identifier with every
+   * event from that user.
+   * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + @java.lang.Override + public boolean getResetUserDataOnNewActivity() { + return resetUserDataOnNewActivity_; + } + + 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 (eventDataRetention_ + != com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration + .RETENTION_DURATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, eventDataRetention_); + } + if (resetUserDataOnNewActivity_ != false) { + output.writeBool(3, resetUserDataOnNewActivity_); + } + 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 (eventDataRetention_ + != com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration + .RETENTION_DURATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventDataRetention_); + } + if (resetUserDataOnNewActivity_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, resetUserDataOnNewActivity_); + } + 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.admin.v1beta.DataRetentionSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DataRetentionSettings other = + (com.google.analytics.admin.v1beta.DataRetentionSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (eventDataRetention_ != other.eventDataRetention_) return false; + if (getResetUserDataOnNewActivity() != other.getResetUserDataOnNewActivity()) 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) + EVENT_DATA_RETENTION_FIELD_NUMBER; + hash = (53 * hash) + eventDataRetention_; + hash = (37 * hash) + RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResetUserDataOnNewActivity()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DataRetentionSettings 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; + } + /** + * + * + *
+   * Settings values for data retention. This is a singleton resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataRetentionSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataRetentionSettings) + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataRetentionSettings.class, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DataRetentionSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + eventDataRetention_ = 0; + resetUserDataOnNewActivity_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings build() { + com.google.analytics.admin.v1beta.DataRetentionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings buildPartial() { + com.google.analytics.admin.v1beta.DataRetentionSettings result = + new com.google.analytics.admin.v1beta.DataRetentionSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DataRetentionSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.eventDataRetention_ = eventDataRetention_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.resetUserDataOnNewActivity_ = resetUserDataOnNewActivity_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DataRetentionSettings) { + return mergeFrom((com.google.analytics.admin.v1beta.DataRetentionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DataRetentionSettings other) { + if (other == com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.eventDataRetention_ != 0) { + setEventDataRetentionValue(other.getEventDataRetentionValue()); + } + if (other.getResetUserDataOnNewActivity() != false) { + setResetUserDataOnNewActivity(other.getResetUserDataOnNewActivity()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + eventDataRetention_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + resetUserDataOnNewActivity_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.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. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int eventDataRetention_ = 0; + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + @java.lang.Override + public int getEventDataRetentionValue() { + return eventDataRetention_; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @param value The enum numeric value on the wire for eventDataRetention to set. + * @return This builder for chaining. + */ + public Builder setEventDataRetentionValue(int value) { + eventDataRetention_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration + getEventDataRetention() { + com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration result = + com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.forNumber( + eventDataRetention_); + return result == null + ? com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @param value The eventDataRetention to set. + * @return This builder for chaining. + */ + public Builder setEventDataRetention( + com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + eventDataRetention_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearEventDataRetention() { + bitField0_ = (bitField0_ & ~0x00000002); + eventDataRetention_ = 0; + onChanged(); + return this; + } + + private boolean resetUserDataOnNewActivity_; + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + @java.lang.Override + public boolean getResetUserDataOnNewActivity() { + return resetUserDataOnNewActivity_; + } + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @param value The resetUserDataOnNewActivity to set. + * @return This builder for chaining. + */ + public Builder setResetUserDataOnNewActivity(boolean value) { + + resetUserDataOnNewActivity_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return This builder for chaining. + */ + public Builder clearResetUserDataOnNewActivity() { + bitField0_ = (bitField0_ & ~0x00000004); + resetUserDataOnNewActivity_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataRetentionSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataRetentionSettings) + private static final com.google.analytics.admin.v1beta.DataRetentionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataRetentionSettings(); + } + + public static com.google.analytics.admin.v1beta.DataRetentionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataRetentionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java new file mode 100644 index 000000000000..498d4a51e13f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java @@ -0,0 +1,95 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface DataRetentionSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataRetentionSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + int getEventDataRetentionValue(); + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration getEventDataRetention(); + + /** + * + * + *
+   * If true, reset the retention period for the user identifier with every
+   * event from that user.
+   * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + boolean getResetUserDataOnNewActivity(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java new file mode 100644 index 000000000000..f6115dd560a3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java @@ -0,0 +1,1142 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A resource message representing data sharing settings of a Google Analytics
+ * account.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataSharingSettings} + */ +public final class DataSharingSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataSharingSettings) + DataSharingSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataSharingSettings.newBuilder() to construct. + private DataSharingSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataSharingSettings() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataSharingSettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataSharingSettings.class, + com.google.analytics.admin.v1beta.DataSharingSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER = 2; + private boolean sharingWithGoogleSupportEnabled_ = false; + /** + * + * + *
+   * Allows Google support to access the data in order to help troubleshoot
+   * issues.
+   * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return The sharingWithGoogleSupportEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleSupportEnabled() { + return sharingWithGoogleSupportEnabled_; + } + + public static final int SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER = 3; + private boolean sharingWithGoogleAssignedSalesEnabled_ = false; + /** + * + * + *
+   * Allows Google sales teams that are assigned to the customer to access the
+   * data in order to suggest configuration changes to improve results.
+   * Sales team restrictions still apply when enabled.
+   * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return The sharingWithGoogleAssignedSalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAssignedSalesEnabled() { + return sharingWithGoogleAssignedSalesEnabled_; + } + + public static final int SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER = 4; + private boolean sharingWithGoogleAnySalesEnabled_ = false; + /** + * + * + *
+   * Allows any of Google sales to access the data in order to suggest
+   * configuration changes to improve results.
+   * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return The sharingWithGoogleAnySalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAnySalesEnabled() { + return sharingWithGoogleAnySalesEnabled_; + } + + public static final int SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER = 5; + private boolean sharingWithGoogleProductsEnabled_ = false; + /** + * + * + *
+   * Allows Google to use the data to improve other Google products or services.
+   * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return The sharingWithGoogleProductsEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleProductsEnabled() { + return sharingWithGoogleProductsEnabled_; + } + + public static final int SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER = 6; + private boolean sharingWithOthersEnabled_ = false; + /** + * + * + *
+   * Allows Google to share the data anonymously in aggregate form with others.
+   * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return The sharingWithOthersEnabled. + */ + @java.lang.Override + public boolean getSharingWithOthersEnabled() { + return sharingWithOthersEnabled_; + } + + 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 (sharingWithGoogleSupportEnabled_ != false) { + output.writeBool(2, sharingWithGoogleSupportEnabled_); + } + if (sharingWithGoogleAssignedSalesEnabled_ != false) { + output.writeBool(3, sharingWithGoogleAssignedSalesEnabled_); + } + if (sharingWithGoogleAnySalesEnabled_ != false) { + output.writeBool(4, sharingWithGoogleAnySalesEnabled_); + } + if (sharingWithGoogleProductsEnabled_ != false) { + output.writeBool(5, sharingWithGoogleProductsEnabled_); + } + if (sharingWithOthersEnabled_ != false) { + output.writeBool(6, sharingWithOthersEnabled_); + } + 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 (sharingWithGoogleSupportEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, sharingWithGoogleSupportEnabled_); + } + if (sharingWithGoogleAssignedSalesEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, sharingWithGoogleAssignedSalesEnabled_); + } + if (sharingWithGoogleAnySalesEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 4, sharingWithGoogleAnySalesEnabled_); + } + if (sharingWithGoogleProductsEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 5, sharingWithGoogleProductsEnabled_); + } + if (sharingWithOthersEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, sharingWithOthersEnabled_); + } + 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.admin.v1beta.DataSharingSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DataSharingSettings other = + (com.google.analytics.admin.v1beta.DataSharingSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getSharingWithGoogleSupportEnabled() != other.getSharingWithGoogleSupportEnabled()) + return false; + if (getSharingWithGoogleAssignedSalesEnabled() + != other.getSharingWithGoogleAssignedSalesEnabled()) return false; + if (getSharingWithGoogleAnySalesEnabled() != other.getSharingWithGoogleAnySalesEnabled()) + return false; + if (getSharingWithGoogleProductsEnabled() != other.getSharingWithGoogleProductsEnabled()) + return false; + if (getSharingWithOthersEnabled() != other.getSharingWithOthersEnabled()) 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) + SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleSupportEnabled()); + hash = (37 * hash) + SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleAssignedSalesEnabled()); + hash = (37 * hash) + SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleAnySalesEnabled()); + hash = (37 * hash) + SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getSharingWithGoogleProductsEnabled()); + hash = (37 * hash) + SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSharingWithOthersEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DataSharingSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing data sharing settings of a Google Analytics
+   * account.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataSharingSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataSharingSettings) + com.google.analytics.admin.v1beta.DataSharingSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataSharingSettings.class, + com.google.analytics.admin.v1beta.DataSharingSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DataSharingSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sharingWithGoogleSupportEnabled_ = false; + sharingWithGoogleAssignedSalesEnabled_ = false; + sharingWithGoogleAnySalesEnabled_ = false; + sharingWithGoogleProductsEnabled_ = false; + sharingWithOthersEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataSharingSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DataSharingSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataSharingSettings build() { + com.google.analytics.admin.v1beta.DataSharingSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataSharingSettings buildPartial() { + com.google.analytics.admin.v1beta.DataSharingSettings result = + new com.google.analytics.admin.v1beta.DataSharingSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DataSharingSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sharingWithGoogleSupportEnabled_ = sharingWithGoogleSupportEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sharingWithGoogleAssignedSalesEnabled_ = sharingWithGoogleAssignedSalesEnabled_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.sharingWithGoogleAnySalesEnabled_ = sharingWithGoogleAnySalesEnabled_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sharingWithGoogleProductsEnabled_ = sharingWithGoogleProductsEnabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.sharingWithOthersEnabled_ = sharingWithOthersEnabled_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DataSharingSettings) { + return mergeFrom((com.google.analytics.admin.v1beta.DataSharingSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DataSharingSettings other) { + if (other == com.google.analytics.admin.v1beta.DataSharingSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getSharingWithGoogleSupportEnabled() != false) { + setSharingWithGoogleSupportEnabled(other.getSharingWithGoogleSupportEnabled()); + } + if (other.getSharingWithGoogleAssignedSalesEnabled() != false) { + setSharingWithGoogleAssignedSalesEnabled(other.getSharingWithGoogleAssignedSalesEnabled()); + } + if (other.getSharingWithGoogleAnySalesEnabled() != false) { + setSharingWithGoogleAnySalesEnabled(other.getSharingWithGoogleAnySalesEnabled()); + } + if (other.getSharingWithGoogleProductsEnabled() != false) { + setSharingWithGoogleProductsEnabled(other.getSharingWithGoogleProductsEnabled()); + } + if (other.getSharingWithOthersEnabled() != false) { + setSharingWithOthersEnabled(other.getSharingWithOthersEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + sharingWithGoogleSupportEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + sharingWithGoogleAssignedSalesEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + sharingWithGoogleAnySalesEnabled_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + sharingWithGoogleProductsEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + sharingWithOthersEnabled_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.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. Resource name.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean sharingWithGoogleSupportEnabled_; + /** + * + * + *
+     * Allows Google support to access the data in order to help troubleshoot
+     * issues.
+     * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return The sharingWithGoogleSupportEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleSupportEnabled() { + return sharingWithGoogleSupportEnabled_; + } + /** + * + * + *
+     * Allows Google support to access the data in order to help troubleshoot
+     * issues.
+     * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @param value The sharingWithGoogleSupportEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleSupportEnabled(boolean value) { + + sharingWithGoogleSupportEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google support to access the data in order to help troubleshoot
+     * issues.
+     * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleSupportEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + sharingWithGoogleSupportEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithGoogleAssignedSalesEnabled_; + /** + * + * + *
+     * Allows Google sales teams that are assigned to the customer to access the
+     * data in order to suggest configuration changes to improve results.
+     * Sales team restrictions still apply when enabled.
+     * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return The sharingWithGoogleAssignedSalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAssignedSalesEnabled() { + return sharingWithGoogleAssignedSalesEnabled_; + } + /** + * + * + *
+     * Allows Google sales teams that are assigned to the customer to access the
+     * data in order to suggest configuration changes to improve results.
+     * Sales team restrictions still apply when enabled.
+     * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @param value The sharingWithGoogleAssignedSalesEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleAssignedSalesEnabled(boolean value) { + + sharingWithGoogleAssignedSalesEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google sales teams that are assigned to the customer to access the
+     * data in order to suggest configuration changes to improve results.
+     * Sales team restrictions still apply when enabled.
+     * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleAssignedSalesEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + sharingWithGoogleAssignedSalesEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithGoogleAnySalesEnabled_; + /** + * + * + *
+     * Allows any of Google sales to access the data in order to suggest
+     * configuration changes to improve results.
+     * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return The sharingWithGoogleAnySalesEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleAnySalesEnabled() { + return sharingWithGoogleAnySalesEnabled_; + } + /** + * + * + *
+     * Allows any of Google sales to access the data in order to suggest
+     * configuration changes to improve results.
+     * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @param value The sharingWithGoogleAnySalesEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { + + sharingWithGoogleAnySalesEnabled_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows any of Google sales to access the data in order to suggest
+     * configuration changes to improve results.
+     * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleAnySalesEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + sharingWithGoogleAnySalesEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithGoogleProductsEnabled_; + /** + * + * + *
+     * Allows Google to use the data to improve other Google products or services.
+     * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return The sharingWithGoogleProductsEnabled. + */ + @java.lang.Override + public boolean getSharingWithGoogleProductsEnabled() { + return sharingWithGoogleProductsEnabled_; + } + /** + * + * + *
+     * Allows Google to use the data to improve other Google products or services.
+     * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @param value The sharingWithGoogleProductsEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithGoogleProductsEnabled(boolean value) { + + sharingWithGoogleProductsEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google to use the data to improve other Google products or services.
+     * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithGoogleProductsEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + sharingWithGoogleProductsEnabled_ = false; + onChanged(); + return this; + } + + private boolean sharingWithOthersEnabled_; + /** + * + * + *
+     * Allows Google to share the data anonymously in aggregate form with others.
+     * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return The sharingWithOthersEnabled. + */ + @java.lang.Override + public boolean getSharingWithOthersEnabled() { + return sharingWithOthersEnabled_; + } + /** + * + * + *
+     * Allows Google to share the data anonymously in aggregate form with others.
+     * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @param value The sharingWithOthersEnabled to set. + * @return This builder for chaining. + */ + public Builder setSharingWithOthersEnabled(boolean value) { + + sharingWithOthersEnabled_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Allows Google to share the data anonymously in aggregate form with others.
+     * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return This builder for chaining. + */ + public Builder clearSharingWithOthersEnabled() { + bitField0_ = (bitField0_ & ~0x00000020); + sharingWithOthersEnabled_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataSharingSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataSharingSettings) + private static final com.google.analytics.admin.v1beta.DataSharingSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataSharingSettings(); + } + + public static com.google.analytics.admin.v1beta.DataSharingSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataSharingSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataSharingSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java new file mode 100644 index 000000000000..26d272fc22be --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java @@ -0,0 +1,123 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface DataSharingSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataSharingSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Allows Google support to access the data in order to help troubleshoot
+   * issues.
+   * 
+ * + * bool sharing_with_google_support_enabled = 2; + * + * @return The sharingWithGoogleSupportEnabled. + */ + boolean getSharingWithGoogleSupportEnabled(); + + /** + * + * + *
+   * Allows Google sales teams that are assigned to the customer to access the
+   * data in order to suggest configuration changes to improve results.
+   * Sales team restrictions still apply when enabled.
+   * 
+ * + * bool sharing_with_google_assigned_sales_enabled = 3; + * + * @return The sharingWithGoogleAssignedSalesEnabled. + */ + boolean getSharingWithGoogleAssignedSalesEnabled(); + + /** + * + * + *
+   * Allows any of Google sales to access the data in order to suggest
+   * configuration changes to improve results.
+   * 
+ * + * bool sharing_with_google_any_sales_enabled = 4; + * + * @return The sharingWithGoogleAnySalesEnabled. + */ + boolean getSharingWithGoogleAnySalesEnabled(); + + /** + * + * + *
+   * Allows Google to use the data to improve other Google products or services.
+   * 
+ * + * bool sharing_with_google_products_enabled = 5; + * + * @return The sharingWithGoogleProductsEnabled. + */ + boolean getSharingWithGoogleProductsEnabled(); + + /** + * + * + *
+   * Allows Google to share the data anonymously in aggregate form with others.
+   * 
+ * + * bool sharing_with_others_enabled = 6; + * + * @return The sharingWithOthersEnabled. + */ + boolean getSharingWithOthersEnabled(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java new file mode 100644 index 000000000000..9a1d894f4a21 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java @@ -0,0 +1,5697 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A resource message representing a data stream.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream} + */ +public final class DataStream extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream) + DataStreamOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataStream.newBuilder() to construct. + private DataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataStream() { + name_ = ""; + type_ = 0; + displayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataStream(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.class, + com.google.analytics.admin.v1beta.DataStream.Builder.class); + } + + /** + * + * + *
+   * The type of the data stream.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.DataStream.DataStreamType} + */ + public enum DataStreamType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Type unknown or not specified.
+     * 
+ * + * DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + DATA_STREAM_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * Web data stream.
+     * 
+ * + * WEB_DATA_STREAM = 1; + */ + WEB_DATA_STREAM(1), + /** + * + * + *
+     * Android app data stream.
+     * 
+ * + * ANDROID_APP_DATA_STREAM = 2; + */ + ANDROID_APP_DATA_STREAM(2), + /** + * + * + *
+     * iOS app data stream.
+     * 
+ * + * IOS_APP_DATA_STREAM = 3; + */ + IOS_APP_DATA_STREAM(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Type unknown or not specified.
+     * 
+ * + * DATA_STREAM_TYPE_UNSPECIFIED = 0; + */ + public static final int DATA_STREAM_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Web data stream.
+     * 
+ * + * WEB_DATA_STREAM = 1; + */ + public static final int WEB_DATA_STREAM_VALUE = 1; + /** + * + * + *
+     * Android app data stream.
+     * 
+ * + * ANDROID_APP_DATA_STREAM = 2; + */ + public static final int ANDROID_APP_DATA_STREAM_VALUE = 2; + /** + * + * + *
+     * iOS app data stream.
+     * 
+ * + * IOS_APP_DATA_STREAM = 3; + */ + public static final int IOS_APP_DATA_STREAM_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataStreamType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static DataStreamType forNumber(int value) { + switch (value) { + case 0: + return DATA_STREAM_TYPE_UNSPECIFIED; + case 1: + return WEB_DATA_STREAM; + case 2: + return ANDROID_APP_DATA_STREAM; + case 3: + return IOS_APP_DATA_STREAM; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DataStreamType findValueByNumber(int number) { + return DataStreamType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.DataStream.getDescriptor().getEnumTypes().get(0); + } + + private static final DataStreamType[] VALUES = values(); + + public static DataStreamType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private DataStreamType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.DataStream.DataStreamType) + } + + public interface WebStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream.WebStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The measurementId. + */ + java.lang.String getMeasurementId(); + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for measurementId. + */ + com.google.protobuf.ByteString getMeasurementIdBytes(); + + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + java.lang.String getFirebaseAppId(); + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The defaultUri. + */ + java.lang.String getDefaultUri(); + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The bytes for defaultUri. + */ + com.google.protobuf.ByteString getDefaultUriBytes(); + } + /** + * + * + *
+   * Data specific to web streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream.WebStreamData} + */ + public static final class WebStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream.WebStreamData) + WebStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use WebStreamData.newBuilder() to construct. + private WebStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private WebStreamData() { + measurementId_ = ""; + firebaseAppId_ = ""; + defaultUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new WebStreamData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.WebStreamData.class, + com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder.class); + } + + public static final int MEASUREMENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object measurementId_ = ""; + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The measurementId. + */ + @java.lang.Override + public java.lang.String getMeasurementId() { + java.lang.Object ref = measurementId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + measurementId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. Analytics Measurement ID.
+     *
+     * Example: "G-1A2BCD345E"
+     * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for measurementId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMeasurementIdBytes() { + java.lang.Object ref = measurementId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + measurementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + @java.lang.Override + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. ID of the corresponding web app in Firebase, if any.
+     * This ID can change if the web app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEFAULT_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultUri_ = ""; + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The defaultUri. + */ + @java.lang.Override + public java.lang.String getDefaultUri() { + java.lang.Object ref = defaultUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultUri_ = s; + return s; + } + } + /** + * + * + *
+     * Domain name of the web app being measured, or empty.
+     * Example: "http://www.google.com", "https://www.google.com"
+     * 
+ * + * string default_uri = 3; + * + * @return The bytes for defaultUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultUriBytes() { + java.lang.Object ref = defaultUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, measurementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultUri_); + } + 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(measurementId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, measurementId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultUri_); + } + size += 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.admin.v1beta.DataStream.WebStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DataStream.WebStreamData other = + (com.google.analytics.admin.v1beta.DataStream.WebStreamData) obj; + + if (!getMeasurementId().equals(other.getMeasurementId())) return false; + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getDefaultUri().equals(other.getDefaultUri())) return false; + if (!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) + MEASUREMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementId().hashCode(); + hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + DEFAULT_URI_FIELD_NUMBER; + hash = (53 * hash) + getDefaultUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DataStream.WebStreamData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Data specific to web streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream.WebStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream.WebStreamData) + com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.WebStreamData.class, + com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DataStream.WebStreamData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + measurementId_ = ""; + firebaseAppId_ = ""; + defaultUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamData build() { + com.google.analytics.admin.v1beta.DataStream.WebStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamData buildPartial() { + com.google.analytics.admin.v1beta.DataStream.WebStreamData result = + new com.google.analytics.admin.v1beta.DataStream.WebStreamData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.DataStream.WebStreamData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.measurementId_ = measurementId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firebaseAppId_ = firebaseAppId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.defaultUri_ = defaultUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DataStream.WebStreamData) { + return mergeFrom((com.google.analytics.admin.v1beta.DataStream.WebStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DataStream.WebStreamData other) { + if (other + == com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance()) + return this; + if (!other.getMeasurementId().isEmpty()) { + measurementId_ = other.measurementId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDefaultUri().isEmpty()) { + defaultUri_ = other.defaultUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + measurementId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + firebaseAppId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + defaultUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object measurementId_ = ""; + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The measurementId. + */ + public java.lang.String getMeasurementId() { + java.lang.Object ref = measurementId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + measurementId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for measurementId. + */ + public com.google.protobuf.ByteString getMeasurementIdBytes() { + java.lang.Object ref = measurementId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + measurementId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The measurementId to set. + * @return This builder for chaining. + */ + public Builder setMeasurementId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + measurementId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMeasurementId() { + measurementId_ = getDefaultInstance().getMeasurementId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. Analytics Measurement ID.
+       *
+       * Example: "G-1A2BCD345E"
+       * 
+ * + * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for measurementId to set. + * @return This builder for chaining. + */ + public Builder setMeasurementIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + measurementId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firebaseAppId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFirebaseAppId() { + firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding web app in Firebase, if any.
+       * This ID can change if the web app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firebaseAppId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object defaultUri_ = ""; + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @return The defaultUri. + */ + public java.lang.String getDefaultUri() { + java.lang.Object ref = defaultUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @return The bytes for defaultUri. + */ + public com.google.protobuf.ByteString getDefaultUriBytes() { + java.lang.Object ref = defaultUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @param value The defaultUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @return This builder for chaining. + */ + public Builder clearDefaultUri() { + defaultUri_ = getDefaultInstance().getDefaultUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+       * Domain name of the web app being measured, or empty.
+       * Example: "http://www.google.com", "https://www.google.com"
+       * 
+ * + * string default_uri = 3; + * + * @param value The bytes for defaultUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream.WebStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream.WebStreamData) + private static final com.google.analytics.admin.v1beta.DataStream.WebStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream.WebStreamData(); + } + + public static com.google.analytics.admin.v1beta.DataStream.WebStreamData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public WebStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AndroidAppStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + java.lang.String getFirebaseAppId(); + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The packageName. + */ + java.lang.String getPackageName(); + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + com.google.protobuf.ByteString getPackageNameBytes(); + } + /** + * + * + *
+   * Data specific to Android app streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} + */ + public static final class AndroidAppStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) + AndroidAppStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use AndroidAppStreamData.newBuilder() to construct. + private AndroidAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AndroidAppStreamData() { + firebaseAppId_ = ""; + packageName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AndroidAppStreamData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.class, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder.class); + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + @java.lang.Override + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. ID of the corresponding Android app in Firebase, if any.
+     * This ID can change if the Android app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PACKAGE_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object packageName_ = ""; + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The packageName. + */ + @java.lang.Override + public java.lang.String getPackageName() { + java.lang.Object ref = packageName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageName_ = s; + return s; + } + } + /** + * + * + *
+     * Immutable. The package name for the app being measured.
+     * Example: "com.example.myandroidapp"
+     * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPackageNameBytes() { + java.lang.Object ref = packageName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageName_); + } + 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(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packageName_); + } + size += 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.admin.v1beta.DataStream.AndroidAppStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData other = + (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) obj; + + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getPackageName().equals(other.getPackageName())) 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) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getPackageName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Data specific to Android app streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.class, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firebaseAppId_ = ""; + packageName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData build() { + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData buildPartial() { + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData result = + new com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firebaseAppId_ = firebaseAppId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.packageName_ = packageName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) { + return mergeFrom( + (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData other) { + if (other + == com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + .getDefaultInstance()) return this; + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getPackageName().isEmpty()) { + packageName_ = other.packageName_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + firebaseAppId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + packageName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFirebaseAppId() { + firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding Android app in Firebase, if any.
+       * This ID can change if the Android app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object packageName_ = ""; + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The packageName. + */ + public java.lang.String getPackageName() { + java.lang.Object ref = packageName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + packageName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for packageName. + */ + public com.google.protobuf.ByteString getPackageNameBytes() { + java.lang.Object ref = packageName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + packageName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The packageName to set. + * @return This builder for chaining. + */ + public Builder setPackageName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + packageName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearPackageName() { + packageName_ = getDefaultInstance().getPackageName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Immutable. The package name for the app being measured.
+       * Example: "com.example.myandroidapp"
+       * 
+ * + * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for packageName to set. + * @return This builder for chaining. + */ + public Builder setPackageNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + packageName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) + private static final com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData(); + } + + public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AndroidAppStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface IosAppStreamDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream.IosAppStreamData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + java.lang.String getFirebaseAppId(); + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + com.google.protobuf.ByteString getFirebaseAppIdBytes(); + + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bundleId. + */ + java.lang.String getBundleId(); + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + com.google.protobuf.ByteString getBundleIdBytes(); + } + /** + * + * + *
+   * Data specific to iOS app streams.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream.IosAppStreamData} + */ + public static final class IosAppStreamData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream.IosAppStreamData) + IosAppStreamDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use IosAppStreamData.newBuilder() to construct. + private IosAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IosAppStreamData() { + firebaseAppId_ = ""; + bundleId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IosAppStreamData(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.class, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder.class); + } + + public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + @java.lang.Override + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } + } + /** + * + * + *
+     * Output only. ID of the corresponding iOS app in Firebase, if any.
+     * This ID can change if the iOS app is deleted and recreated.
+     * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BUNDLE_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object bundleId_ = ""; + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bundleId. + */ + @java.lang.Override + public java.lang.String getBundleId() { + java.lang.Object ref = bundleId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bundleId_ = s; + return s; + } + } + /** + * + * + *
+     * Required. Immutable. The Apple App Store Bundle ID for the app
+     * Example: "com.example.myiosapp"
+     * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBundleIdBytes() { + java.lang.Object ref = bundleId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bundleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bundleId_); + } + 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(firebaseAppId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bundleId_); + } + size += 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.admin.v1beta.DataStream.IosAppStreamData)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData other = + (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) obj; + + if (!getFirebaseAppId().equals(other.getFirebaseAppId())) return false; + if (!getBundleId().equals(other.getBundleId())) 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) + FIREBASE_APP_ID_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseAppId().hashCode(); + hash = (37 * hash) + BUNDLE_ID_FIELD_NUMBER; + hash = (53 * hash) + getBundleId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+     * Data specific to iOS app streams.
+     * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream.IosAppStreamData} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream.IosAppStreamData) + com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.class, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + firebaseAppId_ = ""; + bundleId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData build() { + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData buildPartial() { + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData result = + new com.google.analytics.admin.v1beta.DataStream.IosAppStreamData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.firebaseAppId_ = firebaseAppId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bundleId_ = bundleId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) { + return mergeFrom((com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData other) { + if (other + == com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance()) + return this; + if (!other.getFirebaseAppId().isEmpty()) { + firebaseAppId_ = other.firebaseAppId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBundleId().isEmpty()) { + bundleId_ = other.bundleId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + firebaseAppId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + bundleId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object firebaseAppId_ = ""; + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The firebaseAppId. + */ + public java.lang.String getFirebaseAppId() { + java.lang.Object ref = firebaseAppId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + firebaseAppId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for firebaseAppId. + */ + public com.google.protobuf.ByteString getFirebaseAppIdBytes() { + java.lang.Object ref = firebaseAppId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + firebaseAppId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFirebaseAppId() { + firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+       * Output only. ID of the corresponding iOS app in Firebase, if any.
+       * This ID can change if the iOS app is deleted and recreated.
+       * 
+ * + * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for firebaseAppId to set. + * @return This builder for chaining. + */ + public Builder setFirebaseAppIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + firebaseAppId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object bundleId_ = ""; + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bundleId. + */ + public java.lang.String getBundleId() { + java.lang.Object ref = bundleId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bundleId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for bundleId. + */ + public com.google.protobuf.ByteString getBundleIdBytes() { + java.lang.Object ref = bundleId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bundleId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bundleId to set. + * @return This builder for chaining. + */ + public Builder setBundleId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bundleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearBundleId() { + bundleId_ = getDefaultInstance().getBundleId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. Immutable. The Apple App Store Bundle ID for the app
+       * Example: "com.example.myiosapp"
+       * 
+ * + * + * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for bundleId to set. + * @return This builder for chaining. + */ + public Builder setBundleIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bundleId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream.IosAppStreamData) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream.IosAppStreamData) + private static final com.google.analytics.admin.v1beta.DataStream.IosAppStreamData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream.IosAppStreamData(); + } + + public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IosAppStreamData parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int streamDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object streamData_; + + public enum StreamDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + WEB_STREAM_DATA(6), + ANDROID_APP_STREAM_DATA(7), + IOS_APP_STREAM_DATA(8), + STREAMDATA_NOT_SET(0); + private final int value; + + private StreamDataCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StreamDataCase valueOf(int value) { + return forNumber(value); + } + + public static StreamDataCase forNumber(int value) { + switch (value) { + case 6: + return WEB_STREAM_DATA; + case 7: + return ANDROID_APP_STREAM_DATA; + case 8: + return IOS_APP_STREAM_DATA; + case 0: + return STREAMDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public StreamDataCase getStreamDataCase() { + return StreamDataCase.forNumber(streamDataCase_); + } + + public static final int WEB_STREAM_DATA_FIELD_NUMBER = 6; + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + @java.lang.Override + public boolean hasWebStreamData() { + return streamDataCase_ == 6; + } + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamData getWebStreamData() { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder + getWebStreamDataOrBuilder() { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); + } + + public static final int ANDROID_APP_STREAM_DATA_FIELD_NUMBER = 7; + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + @java.lang.Override + public boolean hasAndroidAppStreamData() { + return streamDataCase_ == 7; + } + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + getAndroidAppStreamData() { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder() { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); + } + + public static final int IOS_APP_STREAM_DATA_FIELD_NUMBER = 8; + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + @java.lang.Override + public boolean hasIosAppStreamData() { + return streamDataCase_ == 8; + } + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppStreamData() { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder() { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.DataStreamType getType() { + com.google.analytics.admin.v1beta.DataStream.DataStreamType result = + com.google.analytics.admin.v1beta.DataStream.DataStreamType.forNumber(type_); + return result == null + ? com.google.analytics.admin.v1beta.DataStream.DataStreamType.UNRECOGNIZED + : result; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (type_ + != com.google.analytics.admin.v1beta.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (createTime_ != null) { + output.writeMessage(4, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(5, getUpdateTime()); + } + if (streamDataCase_ == 6) { + output.writeMessage( + 6, (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_); + } + if (streamDataCase_ == 7) { + output.writeMessage( + 7, (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_); + } + if (streamDataCase_ == 8) { + output.writeMessage( + 8, (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_); + } + 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 (type_ + != com.google.analytics.admin.v1beta.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); + } + if (streamDataCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_); + } + if (streamDataCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_); + } + if (streamDataCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_); + } + 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.admin.v1beta.DataStream)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DataStream other = + (com.google.analytics.admin.v1beta.DataStream) obj; + + if (!getName().equals(other.getName())) return false; + if (type_ != other.type_) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getStreamDataCase().equals(other.getStreamDataCase())) return false; + switch (streamDataCase_) { + case 6: + if (!getWebStreamData().equals(other.getWebStreamData())) return false; + break; + case 7: + if (!getAndroidAppStreamData().equals(other.getAndroidAppStreamData())) return false; + break; + case 8: + if (!getIosAppStreamData().equals(other.getIosAppStreamData())) return false; + break; + case 0: + default: + } + if (!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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + switch (streamDataCase_) { + case 6: + hash = (37 * hash) + WEB_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getWebStreamData().hashCode(); + break; + case 7: + hash = (37 * hash) + ANDROID_APP_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppStreamData().hashCode(); + break; + case 8: + hash = (37 * hash) + IOS_APP_STREAM_DATA_FIELD_NUMBER; + hash = (53 * hash) + getIosAppStreamData().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DataStream parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.DataStream prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a data stream.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DataStream} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream) + com.google.analytics.admin.v1beta.DataStreamOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DataStream.class, + com.google.analytics.admin.v1beta.DataStream.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DataStream.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (webStreamDataBuilder_ != null) { + webStreamDataBuilder_.clear(); + } + if (androidAppStreamDataBuilder_ != null) { + androidAppStreamDataBuilder_.clear(); + } + if (iosAppStreamDataBuilder_ != null) { + iosAppStreamDataBuilder_.clear(); + } + name_ = ""; + type_ = 0; + displayName_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + streamDataCase_ = 0; + streamData_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_DataStream_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream build() { + com.google.analytics.admin.v1beta.DataStream result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream buildPartial() { + com.google.analytics.admin.v1beta.DataStream result = + new com.google.analytics.admin.v1beta.DataStream(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DataStream result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + } + + private void buildPartialOneofs(com.google.analytics.admin.v1beta.DataStream result) { + result.streamDataCase_ = streamDataCase_; + result.streamData_ = this.streamData_; + if (streamDataCase_ == 6 && webStreamDataBuilder_ != null) { + result.streamData_ = webStreamDataBuilder_.build(); + } + if (streamDataCase_ == 7 && androidAppStreamDataBuilder_ != null) { + result.streamData_ = androidAppStreamDataBuilder_.build(); + } + if (streamDataCase_ == 8 && iosAppStreamDataBuilder_ != null) { + result.streamData_ = iosAppStreamDataBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DataStream) { + return mergeFrom((com.google.analytics.admin.v1beta.DataStream) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DataStream other) { + if (other == com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + switch (other.getStreamDataCase()) { + case WEB_STREAM_DATA: + { + mergeWebStreamData(other.getWebStreamData()); + break; + } + case ANDROID_APP_STREAM_DATA: + { + mergeAndroidAppStreamData(other.getAndroidAppStreamData()); + break; + } + case IOS_APP_STREAM_DATA: + { + mergeIosAppStreamData(other.getIosAppStreamData()); + break; + } + case STREAMDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 16 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 34: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 34 + case 42: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 42 + case 50: + { + input.readMessage(getWebStreamDataFieldBuilder().getBuilder(), extensionRegistry); + streamDataCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage( + getAndroidAppStreamDataFieldBuilder().getBuilder(), extensionRegistry); + streamDataCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage( + getIosAppStreamDataFieldBuilder().getBuilder(), extensionRegistry); + streamDataCase_ = 8; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int streamDataCase_ = 0; + private java.lang.Object streamData_; + + public StreamDataCase getStreamDataCase() { + return StreamDataCase.forNumber(streamDataCase_); + } + + public Builder clearStreamData() { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.WebStreamData, + com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder> + webStreamDataBuilder_; + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + @java.lang.Override + public boolean hasWebStreamData() { + return streamDataCase_ == 6; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamData getWebStreamData() { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); + } else { + if (streamDataCase_ == 6) { + return webStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder setWebStreamData( + com.google.analytics.admin.v1beta.DataStream.WebStreamData value) { + if (webStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + webStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder setWebStreamData( + com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder builderForValue) { + if (webStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + webStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder mergeWebStreamData( + com.google.analytics.admin.v1beta.DataStream.WebStreamData value) { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6 + && streamData_ + != com.google.analytics.admin.v1beta.DataStream.WebStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1beta.DataStream.WebStreamData.newBuilder( + (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 6) { + webStreamDataBuilder_.mergeFrom(value); + } else { + webStreamDataBuilder_.setMessage(value); + } + } + streamDataCase_ = 6; + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + public Builder clearWebStreamData() { + if (webStreamDataBuilder_ == null) { + if (streamDataCase_ == 6) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 6) { + streamDataCase_ = 0; + streamData_ = null; + } + webStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + public com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder + getWebStreamDataBuilder() { + return getWebStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder + getWebStreamDataOrBuilder() { + if ((streamDataCase_ == 6) && (webStreamDataBuilder_ != null)) { + return webStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 6) { + return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to web streams. Must be populated if type is
+     * WEB_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.WebStreamData, + com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder> + getWebStreamDataFieldBuilder() { + if (webStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 6)) { + streamData_ = + com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); + } + webStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.WebStreamData, + com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder>( + (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 6; + onChanged(); + return webStreamDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder> + androidAppStreamDataBuilder_; + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + @java.lang.Override + public boolean hasAndroidAppStreamData() { + return streamDataCase_ == 7; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + getAndroidAppStreamData() { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } else { + if (streamDataCase_ == 7) { + return androidAppStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder setAndroidAppStreamData( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData value) { + if (androidAppStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + androidAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder setAndroidAppStreamData( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder builderForValue) { + if (androidAppStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + androidAppStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder mergeAndroidAppStreamData( + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData value) { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7 + && streamData_ + != com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.newBuilder( + (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) + streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 7) { + androidAppStreamDataBuilder_.mergeFrom(value); + } else { + androidAppStreamDataBuilder_.setMessage(value); + } + } + streamDataCase_ = 7; + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public Builder clearAndroidAppStreamData() { + if (androidAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 7) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 7) { + streamDataCase_ = 0; + streamData_ = null; + } + androidAppStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder + getAndroidAppStreamDataBuilder() { + return getAndroidAppStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder() { + if ((streamDataCase_ == 7) && (androidAppStreamDataBuilder_ != null)) { + return androidAppStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 7) { + return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to Android app streams. Must be populated if type is
+     * ANDROID_APP_DATA_STREAM.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder> + getAndroidAppStreamDataFieldBuilder() { + if (androidAppStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 7)) { + streamData_ = + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData + .getDefaultInstance(); + } + androidAppStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder>( + (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 7; + onChanged(); + return androidAppStreamDataBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder> + iosAppStreamDataBuilder_; + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + @java.lang.Override + public boolean hasIosAppStreamData() { + return streamDataCase_ == 8; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppStreamData() { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); + } else { + if (streamDataCase_ == 8) { + return iosAppStreamDataBuilder_.getMessage(); + } + return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder setIosAppStreamData( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData value) { + if (iosAppStreamDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + streamData_ = value; + onChanged(); + } else { + iosAppStreamDataBuilder_.setMessage(value); + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder setIosAppStreamData( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder builderForValue) { + if (iosAppStreamDataBuilder_ == null) { + streamData_ = builderForValue.build(); + onChanged(); + } else { + iosAppStreamDataBuilder_.setMessage(builderForValue.build()); + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder mergeIosAppStreamData( + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData value) { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8 + && streamData_ + != com.google.analytics.admin.v1beta.DataStream.IosAppStreamData + .getDefaultInstance()) { + streamData_ = + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.newBuilder( + (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_) + .mergeFrom(value) + .buildPartial(); + } else { + streamData_ = value; + } + onChanged(); + } else { + if (streamDataCase_ == 8) { + iosAppStreamDataBuilder_.mergeFrom(value); + } else { + iosAppStreamDataBuilder_.setMessage(value); + } + } + streamDataCase_ = 8; + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public Builder clearIosAppStreamData() { + if (iosAppStreamDataBuilder_ == null) { + if (streamDataCase_ == 8) { + streamDataCase_ = 0; + streamData_ = null; + onChanged(); + } + } else { + if (streamDataCase_ == 8) { + streamDataCase_ = 0; + streamData_ = null; + } + iosAppStreamDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder + getIosAppStreamDataBuilder() { + return getIosAppStreamDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder() { + if ((streamDataCase_ == 8) && (iosAppStreamDataBuilder_ != null)) { + return iosAppStreamDataBuilder_.getMessageOrBuilder(); + } else { + if (streamDataCase_ == 8) { + return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; + } + return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specific to iOS app streams. Must be populated if type is
+     * IOS_APP_DATA_STREAM.
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder> + getIosAppStreamDataFieldBuilder() { + if (iosAppStreamDataBuilder_ == null) { + if (!(streamDataCase_ == 8)) { + streamData_ = + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); + } + iosAppStreamDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder, + com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder>( + (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_, + getParentForChildren(), + isClean()); + streamData_ = null; + } + streamDataCase_ = 8; + onChanged(); + return iosAppStreamDataBuilder_; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this Data Stream.
+     * Format: properties/{property_id}/dataStreams/{stream_id}
+     * Example: "properties/1000/dataStreams/2000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private int type_ = 0; + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for type to set. + * @return This builder for chaining. + */ + public Builder setTypeValue(int value) { + type_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream.DataStreamType getType() { + com.google.analytics.admin.v1beta.DataStream.DataStreamType result = + com.google.analytics.admin.v1beta.DataStream.DataStreamType.forNumber(type_); + return result == null + ? com.google.analytics.admin.v1beta.DataStream.DataStreamType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.analytics.admin.v1beta.DataStream.DataStreamType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The type of this DataStream resource.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000010); + type_ = 0; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Human-readable display name for the Data Stream.
+     *
+     * Required for web data streams.
+     *
+     * The max allowed display name length is 255 UTF-16 code units.
+     * 
+ * + * string display_name = 3; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this stream was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when stream payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream) + private static final com.google.analytics.admin.v1beta.DataStream DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream(); + } + + public static com.google.analytics.admin.v1beta.DataStream getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataStream parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java new file mode 100644 index 000000000000..34e64a33cfb8 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java @@ -0,0 +1,319 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface DataStreamOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * + * @return Whether the webStreamData field is set. + */ + boolean hasWebStreamData(); + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + * + * @return The webStreamData. + */ + com.google.analytics.admin.v1beta.DataStream.WebStreamData getWebStreamData(); + /** + * + * + *
+   * Data specific to web streams. Must be populated if type is
+   * WEB_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; + */ + com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder(); + + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return Whether the androidAppStreamData field is set. + */ + boolean hasAndroidAppStreamData(); + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + * + * @return The androidAppStreamData. + */ + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData getAndroidAppStreamData(); + /** + * + * + *
+   * Data specific to Android app streams. Must be populated if type is
+   * ANDROID_APP_DATA_STREAM.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; + * + */ + com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder + getAndroidAppStreamDataOrBuilder(); + + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return Whether the iosAppStreamData field is set. + */ + boolean hasIosAppStreamData(); + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + * + * @return The iosAppStreamData. + */ + com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppStreamData(); + /** + * + * + *
+   * Data specific to iOS app streams. Must be populated if type is
+   * IOS_APP_DATA_STREAM.
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; + * + */ + com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder + getIosAppStreamDataOrBuilder(); + + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this Data Stream.
+   * Format: properties/{property_id}/dataStreams/{stream_id}
+   * Example: "properties/1000/dataStreams/2000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * Required. Immutable. The type of this DataStream resource.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The type. + */ + com.google.analytics.admin.v1beta.DataStream.DataStreamType getType(); + + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Human-readable display name for the Data Stream.
+   *
+   * Required for web data streams.
+   *
+   * The max allowed display name length is 255 UTF-16 code units.
+   * 
+ * + * string display_name = 3; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this stream was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when stream payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + com.google.analytics.admin.v1beta.DataStream.StreamDataCase getStreamDataCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java new file mode 100644 index 000000000000..2148c1eb31ed --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for DeleteAccount RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteAccountRequest} + */ +public final class DeleteAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteAccountRequest) + DeleteAccountRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteAccountRequest.newBuilder() to construct. + private DeleteAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteAccountRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteAccountRequest.class, + com.google.analytics.admin.v1beta.DeleteAccountRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.DeleteAccountRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeleteAccountRequest other = + (com.google.analytics.admin.v1beta.DeleteAccountRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeleteAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteAccount RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteAccountRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteAccountRequest) + com.google.analytics.admin.v1beta.DeleteAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteAccountRequest.class, + com.google.analytics.admin.v1beta.DeleteAccountRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DeleteAccountRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteAccountRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeleteAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteAccountRequest build() { + com.google.analytics.admin.v1beta.DeleteAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteAccountRequest buildPartial() { + com.google.analytics.admin.v1beta.DeleteAccountRequest result = + new com.google.analytics.admin.v1beta.DeleteAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DeleteAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DeleteAccountRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.DeleteAccountRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteAccountRequest other) { + if (other == com.google.analytics.admin.v1beta.DeleteAccountRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Account to soft-delete.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.DeleteAccountRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteAccountRequest) + private static final com.google.analytics.admin.v1beta.DeleteAccountRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteAccountRequest(); + } + + public static com.google.analytics.admin.v1beta.DeleteAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java new file mode 100644 index 000000000000..6c733caa1b48 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface DeleteAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Account to soft-delete.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java new file mode 100644 index 000000000000..60695dc09bb3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java @@ -0,0 +1,659 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for DeleteConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteConversionEventRequest} + */ +public final class DeleteConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteConversionEventRequest) + DeleteConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteConversionEventRequest.newBuilder() to construct. + private DeleteConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1beta.DeleteConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.DeleteConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeleteConversionEventRequest other = + (com.google.analytics.admin.v1beta.DeleteConversionEventRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteConversionEventRequest) + com.google.analytics.admin.v1beta.DeleteConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1beta.DeleteConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DeleteConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeleteConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteConversionEventRequest build() { + com.google.analytics.admin.v1beta.DeleteConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteConversionEventRequest buildPartial() { + com.google.analytics.admin.v1beta.DeleteConversionEventRequest result = + new com.google.analytics.admin.v1beta.DeleteConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.DeleteConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DeleteConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.DeleteConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1beta.DeleteConversionEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.DeleteConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteConversionEventRequest) + private static final com.google.analytics.admin.v1beta.DeleteConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteConversionEventRequest(); + } + + public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..868e34658425 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface DeleteConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java new file mode 100644 index 000000000000..0083af4e6914 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for DeleteDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteDataStreamRequest} + */ +public final class DeleteDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteDataStreamRequest) + DeleteDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDataStreamRequest.newBuilder() to construct. + private DeleteDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest.class, + com.google.analytics.admin.v1beta.DeleteDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.DeleteDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeleteDataStreamRequest other = + (com.google.analytics.admin.v1beta.DeleteDataStreamRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteDataStreamRequest) + com.google.analytics.admin.v1beta.DeleteDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteDataStreamRequest.class, + com.google.analytics.admin.v1beta.DeleteDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DeleteDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeleteDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteDataStreamRequest build() { + com.google.analytics.admin.v1beta.DeleteDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteDataStreamRequest buildPartial() { + com.google.analytics.admin.v1beta.DeleteDataStreamRequest result = + new com.google.analytics.admin.v1beta.DeleteDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DeleteDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DeleteDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.DeleteDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteDataStreamRequest other) { + if (other == com.google.analytics.admin.v1beta.DeleteDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to delete.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DeleteDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteDataStreamRequest) + private static final com.google.analytics.admin.v1beta.DeleteDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteDataStreamRequest(); + } + + public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..5596ad1764b2 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface DeleteDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DataStream to delete.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java new file mode 100644 index 000000000000..f44ad9a4acbf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for DeleteFirebaseLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} + */ +public final class DeleteFirebaseLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) + DeleteFirebaseLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteFirebaseLinkRequest.newBuilder() to construct. + private DeleteFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteFirebaseLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteFirebaseLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.class, + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.DeleteFirebaseLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest other = + (com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteFirebaseLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.class, + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest build() { + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest buildPartial() { + com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest result = + new com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest other) { + if (other == com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+     * Example: properties/1234/firebaseLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.DeleteFirebaseLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) + private static final com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest(); + } + + public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteFirebaseLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java new file mode 100644 index 000000000000..f6f3db240c91 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface DeleteFirebaseLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
+   * Example: properties/1234/firebaseLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java new file mode 100644 index 000000000000..f6809baa1c36 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java @@ -0,0 +1,643 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for DeleteGoogleAdsLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} + */ +public final class DeleteGoogleAdsLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) + DeleteGoogleAdsLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteGoogleAdsLinkRequest.newBuilder() to construct. + private DeleteGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteGoogleAdsLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteGoogleAdsLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.DeleteGoogleAdsLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest other = + (com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteGoogleAdsLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest build() { + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest buildPartial() { + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest result = + new com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest other) { + if (other + == com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234/googleAdsLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.DeleteGoogleAdsLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) + private static final com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest(); + } + + public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteGoogleAdsLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java new file mode 100644 index 000000000000..31db45aa717f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface DeleteGoogleAdsLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. Example format: properties/1234/googleAdsLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..06dc961d971e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java @@ -0,0 +1,671 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for DeleteMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} + */ +public final class DeleteMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) + DeleteMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMeasurementProtocolSecretRequest.newBuilder() to construct. + private DeleteMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.DeleteMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest buildPartial() { + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.DeleteMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..d64879420a6a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface DeleteMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java new file mode 100644 index 000000000000..f2a3fc4d52e3 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for DeleteProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeletePropertyRequest} + */ +public final class DeletePropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeletePropertyRequest) + DeletePropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeletePropertyRequest.newBuilder() to construct. + private DeletePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeletePropertyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeletePropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeletePropertyRequest.class, + com.google.analytics.admin.v1beta.DeletePropertyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.DeletePropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.DeletePropertyRequest other = + (com.google.analytics.admin.v1beta.DeletePropertyRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.DeletePropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for DeleteProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.DeletePropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeletePropertyRequest) + com.google.analytics.admin.v1beta.DeletePropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.DeletePropertyRequest.class, + com.google.analytics.admin.v1beta.DeletePropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.DeletePropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeletePropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.DeletePropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeletePropertyRequest build() { + com.google.analytics.admin.v1beta.DeletePropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeletePropertyRequest buildPartial() { + com.google.analytics.admin.v1beta.DeletePropertyRequest result = + new com.google.analytics.admin.v1beta.DeletePropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.DeletePropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.DeletePropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.DeletePropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.DeletePropertyRequest other) { + if (other == com.google.analytics.admin.v1beta.DeletePropertyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the Property to soft-delete.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.DeletePropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeletePropertyRequest) + private static final com.google.analytics.admin.v1beta.DeletePropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeletePropertyRequest(); + } + + public static com.google.analytics.admin.v1beta.DeletePropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeletePropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.DeletePropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java new file mode 100644 index 000000000000..13a22b7e823d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface DeletePropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeletePropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the Property to soft-delete.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java new file mode 100644 index 000000000000..88fc6d97add6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java @@ -0,0 +1,1128 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A link between a GA4 property and a Firebase project.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.FirebaseLink} + */ +public final class FirebaseLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.FirebaseLink) + FirebaseLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use FirebaseLink.newBuilder() to construct. + private FirebaseLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FirebaseLink() { + name_ = ""; + project_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FirebaseLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.FirebaseLink.class, + com.google.analytics.admin.v1beta.FirebaseLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROJECT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object project_ = ""; + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + @java.lang.Override + public java.lang.String getProject() { + java.lang.Object ref = project_; + 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(); + project_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + @java.lang.Override + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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(project_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + 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(project_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + 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.admin.v1beta.FirebaseLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.FirebaseLink other = + (com.google.analytics.admin.v1beta.FirebaseLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getProject().equals(other.getProject())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) 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) + PROJECT_FIELD_NUMBER; + hash = (53 * hash) + getProject().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.FirebaseLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 property and a Firebase project.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.FirebaseLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.FirebaseLink) + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.FirebaseLink.class, + com.google.analytics.admin.v1beta.FirebaseLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.FirebaseLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + project_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink build() { + com.google.analytics.admin.v1beta.FirebaseLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink buildPartial() { + com.google.analytics.admin.v1beta.FirebaseLink result = + new com.google.analytics.admin.v1beta.FirebaseLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.FirebaseLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.project_ = project_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.FirebaseLink) { + return mergeFrom((com.google.analytics.admin.v1beta.FirebaseLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.FirebaseLink other) { + if (other == com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProject().isEmpty()) { + project_ = other.project_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + project_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.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. Example format: properties/1234/firebaseLinks/5678
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object project_ = ""; + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + public java.lang.String getProject() { + java.lang.Object ref = project_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + project_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + public com.google.protobuf.ByteString getProjectBytes() { + java.lang.Object ref = project_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + project_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The project to set. + * @return This builder for chaining. + */ + public Builder setProject(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearProject() { + project_ = getDefaultInstance().getProject(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Firebase project resource name. When creating a FirebaseLink,
+     * you may provide this resource name using either a project number or project
+     * ID. Once this resource has been created, returned FirebaseLinks will always
+     * have a project_name that contains a project number.
+     *
+     * Format: 'projects/{project number}'
+     * Example: 'projects/1234'
+     * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for project to set. + * @return This builder for chaining. + */ + public Builder setProjectBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this FirebaseLink was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.FirebaseLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.FirebaseLink) + private static final com.google.analytics.admin.v1beta.FirebaseLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.FirebaseLink(); + } + + public static com.google.analytics.admin.v1beta.FirebaseLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FirebaseLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java new file mode 100644 index 000000000000..4f921ab36d63 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java @@ -0,0 +1,125 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface FirebaseLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.FirebaseLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The project. + */ + java.lang.String getProject(); + /** + * + * + *
+   * Immutable. Firebase project resource name. When creating a FirebaseLink,
+   * you may provide this resource name using either a project number or project
+   * ID. Once this resource has been created, returned FirebaseLinks will always
+   * have a project_name that contains a project number.
+   *
+   * Format: 'projects/{project number}'
+   * Example: 'projects/1234'
+   * 
+ * + * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for project. + */ + com.google.protobuf.ByteString getProjectBytes(); + + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this FirebaseLink was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java new file mode 100644 index 000000000000..b73bf77fb54f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java @@ -0,0 +1,652 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetAccount RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetAccountRequest} + */ +public final class GetAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetAccountRequest) + GetAccountRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetAccountRequest.newBuilder() to construct. + private GetAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetAccountRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetAccountRequest.class, + com.google.analytics.admin.v1beta.GetAccountRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetAccountRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetAccountRequest other = + (com.google.analytics.admin.v1beta.GetAccountRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.GetAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetAccount RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetAccountRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetAccountRequest) + com.google.analytics.admin.v1beta.GetAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetAccountRequest.class, + com.google.analytics.admin.v1beta.GetAccountRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetAccountRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetAccountRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetAccountRequest build() { + com.google.analytics.admin.v1beta.GetAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetAccountRequest buildPartial() { + com.google.analytics.admin.v1beta.GetAccountRequest result = + new com.google.analytics.admin.v1beta.GetAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GetAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetAccountRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetAccountRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GetAccountRequest other) { + if (other == com.google.analytics.admin.v1beta.GetAccountRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the account to lookup.
+     * Format: accounts/{account}
+     * Example: "accounts/100"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetAccountRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetAccountRequest) + private static final com.google.analytics.admin.v1beta.GetAccountRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetAccountRequest(); + } + + public static com.google.analytics.admin.v1beta.GetAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java new file mode 100644 index 000000000000..5ab0cb355bfa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the account to lookup.
+   * Format: accounts/{account}
+   * Example: "accounts/100"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java new file mode 100644 index 000000000000..094beaa111d7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java @@ -0,0 +1,653 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetConversionEventRequest} + */ +public final class GetConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetConversionEventRequest) + GetConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetConversionEventRequest.newBuilder() to construct. + private GetConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetConversionEventRequest.class, + com.google.analytics.admin.v1beta.GetConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetConversionEventRequest other = + (com.google.analytics.admin.v1beta.GetConversionEventRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.GetConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetConversionEventRequest) + com.google.analytics.admin.v1beta.GetConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetConversionEventRequest.class, + com.google.analytics.admin.v1beta.GetConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetConversionEventRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetConversionEventRequest build() { + com.google.analytics.admin.v1beta.GetConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetConversionEventRequest buildPartial() { + com.google.analytics.admin.v1beta.GetConversionEventRequest result = + new com.google.analytics.admin.v1beta.GetConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GetConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GetConversionEventRequest other) { + if (other == com.google.analytics.admin.v1beta.GetConversionEventRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetConversionEventRequest) + private static final com.google.analytics.admin.v1beta.GetConversionEventRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetConversionEventRequest(); + } + + public static com.google.analytics.admin.v1beta.GetConversionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetConversionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..b6d475cfa890 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java new file mode 100644 index 000000000000..b9c44d55a676 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetCustomDimensionRequest} + */ +public final class GetCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetCustomDimensionRequest) + GetCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomDimensionRequest.newBuilder() to construct. + private GetCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.GetCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetCustomDimensionRequest other = + (com.google.analytics.admin.v1beta.GetCustomDimensionRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetCustomDimensionRequest) + com.google.analytics.admin.v1beta.GetCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.GetCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomDimensionRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomDimensionRequest build() { + com.google.analytics.admin.v1beta.GetCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1beta.GetCustomDimensionRequest result = + new com.google.analytics.admin.v1beta.GetCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GetCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GetCustomDimensionRequest other) { + if (other == com.google.analytics.admin.v1beta.GetCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetCustomDimensionRequest) + private static final com.google.analytics.admin.v1beta.GetCustomDimensionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomDimensionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..c50af5d04402 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java new file mode 100644 index 000000000000..5cd516d94dfb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetCustomMetricRequest} + */ +public final class GetCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetCustomMetricRequest) + GetCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomMetricRequest.newBuilder() to construct. + private GetCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetCustomMetricRequest.class, + com.google.analytics.admin.v1beta.GetCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetCustomMetricRequest other = + (com.google.analytics.admin.v1beta.GetCustomMetricRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.GetCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetCustomMetricRequest) + com.google.analytics.admin.v1beta.GetCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetCustomMetricRequest.class, + com.google.analytics.admin.v1beta.GetCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomMetricRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomMetricRequest build() { + com.google.analytics.admin.v1beta.GetCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1beta.GetCustomMetricRequest result = + new com.google.analytics.admin.v1beta.GetCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GetCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GetCustomMetricRequest other) { + if (other == com.google.analytics.admin.v1beta.GetCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetCustomMetricRequest) + private static final com.google.analytics.admin.v1beta.GetCustomMetricRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1beta.GetCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..303cbc52bb0f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java new file mode 100644 index 000000000000..cd7344b6a3bf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java @@ -0,0 +1,670 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetDataRetentionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} + */ +public final class GetDataRetentionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) + GetDataRetentionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataRetentionSettingsRequest.newBuilder() to construct. + private GetDataRetentionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataRetentionSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataRetentionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetDataRetentionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest other = + (com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDataRetentionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest build() { + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest buildPartial() { + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest result = + new com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetDataRetentionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) + private static final com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest(); + } + + public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataRetentionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..f837c8e396c6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetDataRetentionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java new file mode 100644 index 000000000000..694438269cb5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java @@ -0,0 +1,660 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetDataSharingSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetDataSharingSettingsRequest} + */ +public final class GetDataSharingSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) + GetDataSharingSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataSharingSettingsRequest.newBuilder() to construct. + private GetDataSharingSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataSharingSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataSharingSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.class, + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetDataSharingSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest other = + (com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDataSharingSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetDataSharingSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.class, + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest build() { + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest buildPartial() { + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest result = + new com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest other) { + if (other + == com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format: accounts/{account}/dataSharingSettings
+     * Example: "accounts/1000/dataSharingSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetDataSharingSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) + private static final com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest(); + } + + public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataSharingSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..c008a5b70021 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetDataSharingSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format: accounts/{account}/dataSharingSettings
+   * Example: "accounts/1000/dataSharingSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java new file mode 100644 index 000000000000..580c4bc76f05 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java @@ -0,0 +1,646 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetDataStreamRequest} + */ +public final class GetDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetDataStreamRequest) + GetDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataStreamRequest.newBuilder() to construct. + private GetDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataStreamRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetDataStreamRequest.class, + com.google.analytics.admin.v1beta.GetDataStreamRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetDataStreamRequest other = + (com.google.analytics.admin.v1beta.GetDataStreamRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.GetDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetDataStreamRequest) + com.google.analytics.admin.v1beta.GetDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetDataStreamRequest.class, + com.google.analytics.admin.v1beta.GetDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataStreamRequest build() { + com.google.analytics.admin.v1beta.GetDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataStreamRequest buildPartial() { + com.google.analytics.admin.v1beta.GetDataStreamRequest result = + new com.google.analytics.admin.v1beta.GetDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GetDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GetDataStreamRequest other) { + if (other == com.google.analytics.admin.v1beta.GetDataStreamRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DataStream to get.
+     * Example format: properties/1234/dataStreams/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetDataStreamRequest) + private static final com.google.analytics.admin.v1beta.GetDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetDataStreamRequest(); + } + + public static com.google.analytics.admin.v1beta.GetDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..1ad1ed15b62e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DataStream to get.
+   * Example format: properties/1234/dataStreams/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..06d16a572e23 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java @@ -0,0 +1,666 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetMeasurementProtocolSecret RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} + */ +public final class GetMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) + GetMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMeasurementProtocolSecretRequest.newBuilder() to construct. + private GetMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetMeasurementProtocolSecret RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest buildPartial() { + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..f21966dfd258 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java new file mode 100644 index 000000000000..e47174f13a81 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java @@ -0,0 +1,652 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for GetProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetPropertyRequest} + */ +public final class GetPropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetPropertyRequest) + GetPropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetPropertyRequest.newBuilder() to construct. + private GetPropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetPropertyRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetPropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetPropertyRequest.class, + com.google.analytics.admin.v1beta.GetPropertyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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_); + } + 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.admin.v1beta.GetPropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GetPropertyRequest other = + (com.google.analytics.admin.v1beta.GetPropertyRequest) obj; + + if (!getName().equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.GetPropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for GetProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GetPropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetPropertyRequest) + com.google.analytics.admin.v1beta.GetPropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GetPropertyRequest.class, + com.google.analytics.admin.v1beta.GetPropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GetPropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetPropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GetPropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetPropertyRequest build() { + com.google.analytics.admin.v1beta.GetPropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetPropertyRequest buildPartial() { + com.google.analytics.admin.v1beta.GetPropertyRequest result = + new com.google.analytics.admin.v1beta.GetPropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GetPropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GetPropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.GetPropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GetPropertyRequest other) { + if (other == com.google.analytics.admin.v1beta.GetPropertyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the property to lookup.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + 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.admin.v1beta.GetPropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetPropertyRequest) + private static final com.google.analytics.admin.v1beta.GetPropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetPropertyRequest(); + } + + public static com.google.analytics.admin.v1beta.GetPropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetPropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GetPropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java new file mode 100644 index 000000000000..97fe8880f480 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface GetPropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetPropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the property to lookup.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java new file mode 100644 index 000000000000..8afab8bca792 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java @@ -0,0 +1,1979 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A link between a GA4 property and a Google Ads account.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GoogleAdsLink} + */ +public final class GoogleAdsLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GoogleAdsLink) + GoogleAdsLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleAdsLink.newBuilder() to construct. + private GoogleAdsLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleAdsLink() { + name_ = ""; + customerId_ = ""; + creatorEmailAddress_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleAdsLink(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GoogleAdsLink.class, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerId_ = ""; + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The customerId. + */ + @java.lang.Override + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + 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(); + customerId_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for customerId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CAN_MANAGE_CLIENTS_FIELD_NUMBER = 4; + private boolean canManageClients_ = false; + /** + * + * + *
+   * Output only. If true, this link is for a Google Ads manager account.
+   * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The canManageClients. + */ + @java.lang.Override + public boolean getCanManageClients() { + return canManageClients_; + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 5; + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + @java.lang.Override + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object creatorEmailAddress_ = ""; + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + @java.lang.Override + public java.lang.String getCreatorEmailAddress() { + java.lang.Object ref = creatorEmailAddress_; + 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(); + creatorEmailAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorEmailAddressBytes() { + java.lang.Object ref = creatorEmailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorEmailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerId_); + } + if (canManageClients_ != false) { + output.writeBool(4, canManageClients_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(5, getAdsPersonalizationEnabled()); + } + if (createTime_ != null) { + output.writeMessage(7, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, creatorEmailAddress_); + } + 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(customerId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerId_); + } + if (canManageClients_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, canManageClients_); + } + if (adsPersonalizationEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getAdsPersonalizationEnabled()); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, creatorEmailAddress_); + } + 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.admin.v1beta.GoogleAdsLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.GoogleAdsLink other = + (com.google.analytics.admin.v1beta.GoogleAdsLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCustomerId().equals(other.getCustomerId())) return false; + if (getCanManageClients() != other.getCanManageClients()) return false; + if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; + if (hasAdsPersonalizationEnabled()) { + if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) + return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getCreatorEmailAddress().equals(other.getCreatorEmailAddress())) 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) + CUSTOMER_ID_FIELD_NUMBER; + hash = (53 * hash) + getCustomerId().hashCode(); + hash = (37 * hash) + CAN_MANAGE_CLIENTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCanManageClients()); + if (hasAdsPersonalizationEnabled()) { + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + CREATOR_EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getCreatorEmailAddress().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.GoogleAdsLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A link between a GA4 property and a Google Ads account.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.GoogleAdsLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GoogleAdsLink) + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.GoogleAdsLink.class, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.GoogleAdsLink.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + customerId_ = ""; + canManageClients_ = false; + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + creatorEmailAddress_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink build() { + com.google.analytics.admin.v1beta.GoogleAdsLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink buildPartial() { + com.google.analytics.admin.v1beta.GoogleAdsLink result = + new com.google.analytics.admin.v1beta.GoogleAdsLink(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.GoogleAdsLink result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.customerId_ = customerId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.canManageClients_ = canManageClients_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.adsPersonalizationEnabled_ = + adsPersonalizationEnabledBuilder_ == null + ? adsPersonalizationEnabled_ + : adsPersonalizationEnabledBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.creatorEmailAddress_ = creatorEmailAddress_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.GoogleAdsLink) { + return mergeFrom((com.google.analytics.admin.v1beta.GoogleAdsLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.GoogleAdsLink other) { + if (other == com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getCustomerId().isEmpty()) { + customerId_ = other.customerId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getCanManageClients() != false) { + setCanManageClients(other.getCanManageClients()); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getCreatorEmailAddress().isEmpty()) { + creatorEmailAddress_ = other.creatorEmailAddress_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + customerId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 32: + { + canManageClients_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 32 + case 42: + { + input.readMessage( + getAdsPersonalizationEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 58: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 + case 66: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 66 + case 74: + { + creatorEmailAddress_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.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. Format:
+     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+     *
+     * Note: googleAdsLinkId is not the Google Ads customer ID.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object customerId_ = ""; + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The customerId. + */ + public java.lang.String getCustomerId() { + java.lang.Object ref = customerId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for customerId. + */ + public com.google.protobuf.ByteString getCustomerIdBytes() { + java.lang.Object ref = customerId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The customerId to set. + * @return This builder for chaining. + */ + public Builder setCustomerId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearCustomerId() { + customerId_ = getDefaultInstance().getCustomerId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Google Ads customer ID.
+     * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for customerId to set. + * @return This builder for chaining. + */ + public Builder setCustomerIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean canManageClients_; + /** + * + * + *
+     * Output only. If true, this link is for a Google Ads manager account.
+     * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The canManageClients. + */ + @java.lang.Override + public boolean getCanManageClients() { + return canManageClients_; + } + /** + * + * + *
+     * Output only. If true, this link is for a Google Ads manager account.
+     * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The canManageClients to set. + * @return This builder for chaining. + */ + public Builder setCanManageClients(boolean value) { + + canManageClients_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If true, this link is for a Google Ads manager account.
+     * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCanManageClients() { + bitField0_ = (bitField0_ & ~0x00000004); + canManageClients_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + adsPersonalizationEnabledBuilder_; + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + public boolean hasAdsPersonalizationEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return The adsPersonalizationEnabled. + */ + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } else { + return adsPersonalizationEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsPersonalizationEnabled_ = value; + } else { + adsPersonalizationEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder setAdsPersonalizationEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = builderForValue.build(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && adsPersonalizationEnabled_ != null + && adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getAdsPersonalizationEnabledBuilder().mergeFrom(value); + } else { + adsPersonalizationEnabled_ = value; + } + } else { + adsPersonalizationEnabledBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public Builder clearAdsPersonalizationEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + adsPersonalizationEnabled_ = null; + if (adsPersonalizationEnabledBuilder_ != null) { + adsPersonalizationEnabledBuilder_.dispose(); + adsPersonalizationEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + if (adsPersonalizationEnabledBuilder_ != null) { + return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); + } else { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + } + /** + * + * + *
+     * Enable personalized advertising features with this integration.
+     * Automatically publish my Google Analytics audience lists and Google
+     * Analytics remarketing events/parameters to the linked Google Ads account.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getAdsPersonalizationEnabledFieldBuilder() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); + adsPersonalizationEnabled_ = null; + } + return adsPersonalizationEnabledBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this link was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when this link was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object creatorEmailAddress_ = ""; + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + public java.lang.String getCreatorEmailAddress() { + java.lang.Object ref = creatorEmailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorEmailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + public com.google.protobuf.ByteString getCreatorEmailAddressBytes() { + java.lang.Object ref = creatorEmailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorEmailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The creatorEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setCreatorEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + creatorEmailAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreatorEmailAddress() { + creatorEmailAddress_ = getDefaultInstance().getCreatorEmailAddress(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for creatorEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setCreatorEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + creatorEmailAddress_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.GoogleAdsLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GoogleAdsLink) + private static final com.google.analytics.admin.v1beta.GoogleAdsLink DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GoogleAdsLink(); + } + + public static com.google.analytics.admin.v1beta.GoogleAdsLink getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleAdsLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java new file mode 100644 index 000000000000..bb1076a72c2f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java @@ -0,0 +1,241 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface GoogleAdsLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GoogleAdsLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Format:
+   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
+   *
+   * Note: googleAdsLinkId is not the Google Ads customer ID.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The customerId. + */ + java.lang.String getCustomerId(); + /** + * + * + *
+   * Immutable. Google Ads customer ID.
+   * 
+ * + * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for customerId. + */ + com.google.protobuf.ByteString getCustomerIdBytes(); + + /** + * + * + *
+   * Output only. If true, this link is for a Google Ads manager account.
+   * 
+ * + * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The canManageClients. + */ + boolean getCanManageClients(); + + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + boolean hasAdsPersonalizationEnabled(); + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + * + * @return The adsPersonalizationEnabled. + */ + com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); + /** + * + * + *
+   * Enable personalized advertising features with this integration.
+   * Automatically publish my Google Analytics audience lists and Google
+   * Analytics remarketing events/parameters to the linked Google Ads account.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 5; + */ + com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); + + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this link was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when this link was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + java.lang.String getCreatorEmailAddress(); + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + com.google.protobuf.ByteString getCreatorEmailAddressBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java new file mode 100644 index 000000000000..270829cedebf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java @@ -0,0 +1,704 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The category selected for this property, used for industry benchmarking.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.IndustryCategory} + */ +public enum IndustryCategory implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Industry category unspecified
+   * 
+ * + * INDUSTRY_CATEGORY_UNSPECIFIED = 0; + */ + INDUSTRY_CATEGORY_UNSPECIFIED(0), + /** + * + * + *
+   * Automotive
+   * 
+ * + * AUTOMOTIVE = 1; + */ + AUTOMOTIVE(1), + /** + * + * + *
+   * Business and industrial markets
+   * 
+ * + * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + */ + BUSINESS_AND_INDUSTRIAL_MARKETS(2), + /** + * + * + *
+   * Finance
+   * 
+ * + * FINANCE = 3; + */ + FINANCE(3), + /** + * + * + *
+   * Healthcare
+   * 
+ * + * HEALTHCARE = 4; + */ + HEALTHCARE(4), + /** + * + * + *
+   * Technology
+   * 
+ * + * TECHNOLOGY = 5; + */ + TECHNOLOGY(5), + /** + * + * + *
+   * Travel
+   * 
+ * + * TRAVEL = 6; + */ + TRAVEL(6), + /** + * + * + *
+   * Other
+   * 
+ * + * OTHER = 7; + */ + OTHER(7), + /** + * + * + *
+   * Arts and entertainment
+   * 
+ * + * ARTS_AND_ENTERTAINMENT = 8; + */ + ARTS_AND_ENTERTAINMENT(8), + /** + * + * + *
+   * Beauty and fitness
+   * 
+ * + * BEAUTY_AND_FITNESS = 9; + */ + BEAUTY_AND_FITNESS(9), + /** + * + * + *
+   * Books and literature
+   * 
+ * + * BOOKS_AND_LITERATURE = 10; + */ + BOOKS_AND_LITERATURE(10), + /** + * + * + *
+   * Food and drink
+   * 
+ * + * FOOD_AND_DRINK = 11; + */ + FOOD_AND_DRINK(11), + /** + * + * + *
+   * Games
+   * 
+ * + * GAMES = 12; + */ + GAMES(12), + /** + * + * + *
+   * Hobbies and leisure
+   * 
+ * + * HOBBIES_AND_LEISURE = 13; + */ + HOBBIES_AND_LEISURE(13), + /** + * + * + *
+   * Home and garden
+   * 
+ * + * HOME_AND_GARDEN = 14; + */ + HOME_AND_GARDEN(14), + /** + * + * + *
+   * Internet and telecom
+   * 
+ * + * INTERNET_AND_TELECOM = 15; + */ + INTERNET_AND_TELECOM(15), + /** + * + * + *
+   * Law and government
+   * 
+ * + * LAW_AND_GOVERNMENT = 16; + */ + LAW_AND_GOVERNMENT(16), + /** + * + * + *
+   * News
+   * 
+ * + * NEWS = 17; + */ + NEWS(17), + /** + * + * + *
+   * Online communities
+   * 
+ * + * ONLINE_COMMUNITIES = 18; + */ + ONLINE_COMMUNITIES(18), + /** + * + * + *
+   * People and society
+   * 
+ * + * PEOPLE_AND_SOCIETY = 19; + */ + PEOPLE_AND_SOCIETY(19), + /** + * + * + *
+   * Pets and animals
+   * 
+ * + * PETS_AND_ANIMALS = 20; + */ + PETS_AND_ANIMALS(20), + /** + * + * + *
+   * Real estate
+   * 
+ * + * REAL_ESTATE = 21; + */ + REAL_ESTATE(21), + /** + * + * + *
+   * Reference
+   * 
+ * + * REFERENCE = 22; + */ + REFERENCE(22), + /** + * + * + *
+   * Science
+   * 
+ * + * SCIENCE = 23; + */ + SCIENCE(23), + /** + * + * + *
+   * Sports
+   * 
+ * + * SPORTS = 24; + */ + SPORTS(24), + /** + * + * + *
+   * Jobs and education
+   * 
+ * + * JOBS_AND_EDUCATION = 25; + */ + JOBS_AND_EDUCATION(25), + /** + * + * + *
+   * Shopping
+   * 
+ * + * SHOPPING = 26; + */ + SHOPPING(26), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Industry category unspecified
+   * 
+ * + * INDUSTRY_CATEGORY_UNSPECIFIED = 0; + */ + public static final int INDUSTRY_CATEGORY_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Automotive
+   * 
+ * + * AUTOMOTIVE = 1; + */ + public static final int AUTOMOTIVE_VALUE = 1; + /** + * + * + *
+   * Business and industrial markets
+   * 
+ * + * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; + */ + public static final int BUSINESS_AND_INDUSTRIAL_MARKETS_VALUE = 2; + /** + * + * + *
+   * Finance
+   * 
+ * + * FINANCE = 3; + */ + public static final int FINANCE_VALUE = 3; + /** + * + * + *
+   * Healthcare
+   * 
+ * + * HEALTHCARE = 4; + */ + public static final int HEALTHCARE_VALUE = 4; + /** + * + * + *
+   * Technology
+   * 
+ * + * TECHNOLOGY = 5; + */ + public static final int TECHNOLOGY_VALUE = 5; + /** + * + * + *
+   * Travel
+   * 
+ * + * TRAVEL = 6; + */ + public static final int TRAVEL_VALUE = 6; + /** + * + * + *
+   * Other
+   * 
+ * + * OTHER = 7; + */ + public static final int OTHER_VALUE = 7; + /** + * + * + *
+   * Arts and entertainment
+   * 
+ * + * ARTS_AND_ENTERTAINMENT = 8; + */ + public static final int ARTS_AND_ENTERTAINMENT_VALUE = 8; + /** + * + * + *
+   * Beauty and fitness
+   * 
+ * + * BEAUTY_AND_FITNESS = 9; + */ + public static final int BEAUTY_AND_FITNESS_VALUE = 9; + /** + * + * + *
+   * Books and literature
+   * 
+ * + * BOOKS_AND_LITERATURE = 10; + */ + public static final int BOOKS_AND_LITERATURE_VALUE = 10; + /** + * + * + *
+   * Food and drink
+   * 
+ * + * FOOD_AND_DRINK = 11; + */ + public static final int FOOD_AND_DRINK_VALUE = 11; + /** + * + * + *
+   * Games
+   * 
+ * + * GAMES = 12; + */ + public static final int GAMES_VALUE = 12; + /** + * + * + *
+   * Hobbies and leisure
+   * 
+ * + * HOBBIES_AND_LEISURE = 13; + */ + public static final int HOBBIES_AND_LEISURE_VALUE = 13; + /** + * + * + *
+   * Home and garden
+   * 
+ * + * HOME_AND_GARDEN = 14; + */ + public static final int HOME_AND_GARDEN_VALUE = 14; + /** + * + * + *
+   * Internet and telecom
+   * 
+ * + * INTERNET_AND_TELECOM = 15; + */ + public static final int INTERNET_AND_TELECOM_VALUE = 15; + /** + * + * + *
+   * Law and government
+   * 
+ * + * LAW_AND_GOVERNMENT = 16; + */ + public static final int LAW_AND_GOVERNMENT_VALUE = 16; + /** + * + * + *
+   * News
+   * 
+ * + * NEWS = 17; + */ + public static final int NEWS_VALUE = 17; + /** + * + * + *
+   * Online communities
+   * 
+ * + * ONLINE_COMMUNITIES = 18; + */ + public static final int ONLINE_COMMUNITIES_VALUE = 18; + /** + * + * + *
+   * People and society
+   * 
+ * + * PEOPLE_AND_SOCIETY = 19; + */ + public static final int PEOPLE_AND_SOCIETY_VALUE = 19; + /** + * + * + *
+   * Pets and animals
+   * 
+ * + * PETS_AND_ANIMALS = 20; + */ + public static final int PETS_AND_ANIMALS_VALUE = 20; + /** + * + * + *
+   * Real estate
+   * 
+ * + * REAL_ESTATE = 21; + */ + public static final int REAL_ESTATE_VALUE = 21; + /** + * + * + *
+   * Reference
+   * 
+ * + * REFERENCE = 22; + */ + public static final int REFERENCE_VALUE = 22; + /** + * + * + *
+   * Science
+   * 
+ * + * SCIENCE = 23; + */ + public static final int SCIENCE_VALUE = 23; + /** + * + * + *
+   * Sports
+   * 
+ * + * SPORTS = 24; + */ + public static final int SPORTS_VALUE = 24; + /** + * + * + *
+   * Jobs and education
+   * 
+ * + * JOBS_AND_EDUCATION = 25; + */ + public static final int JOBS_AND_EDUCATION_VALUE = 25; + /** + * + * + *
+   * Shopping
+   * 
+ * + * SHOPPING = 26; + */ + public static final int SHOPPING_VALUE = 26; + + 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 IndustryCategory 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 IndustryCategory forNumber(int value) { + switch (value) { + case 0: + return INDUSTRY_CATEGORY_UNSPECIFIED; + case 1: + return AUTOMOTIVE; + case 2: + return BUSINESS_AND_INDUSTRIAL_MARKETS; + case 3: + return FINANCE; + case 4: + return HEALTHCARE; + case 5: + return TECHNOLOGY; + case 6: + return TRAVEL; + case 7: + return OTHER; + case 8: + return ARTS_AND_ENTERTAINMENT; + case 9: + return BEAUTY_AND_FITNESS; + case 10: + return BOOKS_AND_LITERATURE; + case 11: + return FOOD_AND_DRINK; + case 12: + return GAMES; + case 13: + return HOBBIES_AND_LEISURE; + case 14: + return HOME_AND_GARDEN; + case 15: + return INTERNET_AND_TELECOM; + case 16: + return LAW_AND_GOVERNMENT; + case 17: + return NEWS; + case 18: + return ONLINE_COMMUNITIES; + case 19: + return PEOPLE_AND_SOCIETY; + case 20: + return PETS_AND_ANIMALS; + case 21: + return REAL_ESTATE; + case 22: + return REFERENCE; + case 23: + return SCIENCE; + case 24: + return SPORTS; + case 25: + return JOBS_AND_EDUCATION; + case 26: + return SHOPPING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public IndustryCategory findValueByNumber(int number) { + return IndustryCategory.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(0); + } + + private static final IndustryCategory[] VALUES = values(); + + public static IndustryCategory valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private IndustryCategory(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.IndustryCategory) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java new file mode 100644 index 000000000000..42aad163e4f9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java @@ -0,0 +1,755 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListAccountSummaries RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesRequest} + */ +public final class ListAccountSummariesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountSummariesRequest) + ListAccountSummariesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountSummariesRequest.newBuilder() to construct. + private ListAccountSummariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountSummariesRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountSummariesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest.class, + com.google.analytics.admin.v1beta.ListAccountSummariesRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of AccountSummary resources to return. The service may
+   * return fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + 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.admin.v1beta.ListAccountSummariesRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListAccountSummariesRequest other = + (com.google.analytics.admin.v1beta.ListAccountSummariesRequest) obj; + + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAccountSummaries RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountSummariesRequest) + com.google.analytics.admin.v1beta.ListAccountSummariesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest.class, + com.google.analytics.admin.v1beta.ListAccountSummariesRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListAccountSummariesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListAccountSummariesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesRequest build() { + com.google.analytics.admin.v1beta.ListAccountSummariesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesRequest buildPartial() { + com.google.analytics.admin.v1beta.ListAccountSummariesRequest result = + new com.google.analytics.admin.v1beta.ListAccountSummariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListAccountSummariesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListAccountSummariesRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListAccountSummariesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountSummariesRequest other) { + if (other + == com.google.analytics.admin.v1beta.ListAccountSummariesRequest.getDefaultInstance()) + return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int pageSize_; + /** + * + * + *
+     * The maximum number of AccountSummary resources to return. The service may
+     * return fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of AccountSummary resources to return. The service may
+     * return fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of AccountSummary resources to return. The service may
+     * return fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccountSummaries` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccountSummaries`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountSummariesRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountSummariesRequest) + private static final com.google.analytics.admin.v1beta.ListAccountSummariesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountSummariesRequest(); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountSummariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java new file mode 100644 index 000000000000..e42b50889f91 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java @@ -0,0 +1,72 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListAccountSummariesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountSummariesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The maximum number of AccountSummary resources to return. The service may
+   * return fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListAccountSummaries` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccountSummaries`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java new file mode 100644 index 000000000000..8f64fb4f8305 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java @@ -0,0 +1,1146 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListAccountSummaries RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesResponse} + */ +public final class ListAccountSummariesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountSummariesResponse) + ListAccountSummariesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountSummariesResponse.newBuilder() to construct. + private ListAccountSummariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountSummariesResponse() { + accountSummaries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountSummariesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountSummariesResponse.class, + com.google.analytics.admin.v1beta.ListAccountSummariesResponse.Builder.class); + } + + public static final int ACCOUNT_SUMMARIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accountSummaries_; + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public java.util.List + getAccountSummariesList() { + return accountSummaries_; + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public java.util.List + getAccountSummariesOrBuilderList() { + return accountSummaries_; + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public int getAccountSummariesCount() { + return accountSummaries_.size(); + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountSummary getAccountSummaries(int index) { + return accountSummaries_.get(index); + } + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountSummaryOrBuilder getAccountSummariesOrBuilder( + int index) { + return accountSummaries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accountSummaries_.size(); i++) { + output.writeMessage(1, accountSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accountSummaries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accountSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListAccountSummariesResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListAccountSummariesResponse other = + (com.google.analytics.admin.v1beta.ListAccountSummariesResponse) obj; + + if (!getAccountSummariesList().equals(other.getAccountSummariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAccountSummariesCount() > 0) { + hash = (37 * hash) + ACCOUNT_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getAccountSummariesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListAccountSummariesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListAccountSummaries RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountSummariesResponse) + com.google.analytics.admin.v1beta.ListAccountSummariesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountSummariesResponse.class, + com.google.analytics.admin.v1beta.ListAccountSummariesResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListAccountSummariesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accountSummariesBuilder_ == null) { + accountSummaries_ = java.util.Collections.emptyList(); + } else { + accountSummaries_ = null; + accountSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListAccountSummariesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesResponse build() { + com.google.analytics.admin.v1beta.ListAccountSummariesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesResponse buildPartial() { + com.google.analytics.admin.v1beta.ListAccountSummariesResponse result = + new com.google.analytics.admin.v1beta.ListAccountSummariesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListAccountSummariesResponse result) { + if (accountSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accountSummaries_ = java.util.Collections.unmodifiableList(accountSummaries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accountSummaries_ = accountSummaries_; + } else { + result.accountSummaries_ = accountSummariesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListAccountSummariesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListAccountSummariesResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListAccountSummariesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountSummariesResponse other) { + if (other + == com.google.analytics.admin.v1beta.ListAccountSummariesResponse.getDefaultInstance()) + return this; + if (accountSummariesBuilder_ == null) { + if (!other.accountSummaries_.isEmpty()) { + if (accountSummaries_.isEmpty()) { + accountSummaries_ = other.accountSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccountSummariesIsMutable(); + accountSummaries_.addAll(other.accountSummaries_); + } + onChanged(); + } + } else { + if (!other.accountSummaries_.isEmpty()) { + if (accountSummariesBuilder_.isEmpty()) { + accountSummariesBuilder_.dispose(); + accountSummariesBuilder_ = null; + accountSummaries_ = other.accountSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + accountSummariesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccountSummariesFieldBuilder() + : null; + } else { + accountSummariesBuilder_.addAllMessages(other.accountSummaries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.AccountSummary m = + input.readMessage( + com.google.analytics.admin.v1beta.AccountSummary.parser(), + extensionRegistry); + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.add(m); + } else { + accountSummariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accountSummaries_ = + java.util.Collections.emptyList(); + + private void ensureAccountSummariesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accountSummaries_ = + new java.util.ArrayList( + accountSummaries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccountSummary, + com.google.analytics.admin.v1beta.AccountSummary.Builder, + com.google.analytics.admin.v1beta.AccountSummaryOrBuilder> + accountSummariesBuilder_; + + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public java.util.List + getAccountSummariesList() { + if (accountSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(accountSummaries_); + } else { + return accountSummariesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public int getAccountSummariesCount() { + if (accountSummariesBuilder_ == null) { + return accountSummaries_.size(); + } else { + return accountSummariesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1beta.AccountSummary getAccountSummaries(int index) { + if (accountSummariesBuilder_ == null) { + return accountSummaries_.get(index); + } else { + return accountSummariesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder setAccountSummaries( + int index, com.google.analytics.admin.v1beta.AccountSummary value) { + if (accountSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountSummariesIsMutable(); + accountSummaries_.set(index, value); + onChanged(); + } else { + accountSummariesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder setAccountSummaries( + int index, com.google.analytics.admin.v1beta.AccountSummary.Builder builderForValue) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + accountSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries(com.google.analytics.admin.v1beta.AccountSummary value) { + if (accountSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountSummariesIsMutable(); + accountSummaries_.add(value); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries( + int index, com.google.analytics.admin.v1beta.AccountSummary value) { + if (accountSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountSummariesIsMutable(); + accountSummaries_.add(index, value); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries( + com.google.analytics.admin.v1beta.AccountSummary.Builder builderForValue) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.add(builderForValue.build()); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder addAccountSummaries( + int index, com.google.analytics.admin.v1beta.AccountSummary.Builder builderForValue) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + accountSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder addAllAccountSummaries( + java.lang.Iterable values) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accountSummaries_); + onChanged(); + } else { + accountSummariesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder clearAccountSummaries() { + if (accountSummariesBuilder_ == null) { + accountSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accountSummariesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public Builder removeAccountSummaries(int index) { + if (accountSummariesBuilder_ == null) { + ensureAccountSummariesIsMutable(); + accountSummaries_.remove(index); + onChanged(); + } else { + accountSummariesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1beta.AccountSummary.Builder getAccountSummariesBuilder( + int index) { + return getAccountSummariesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1beta.AccountSummaryOrBuilder getAccountSummariesOrBuilder( + int index) { + if (accountSummariesBuilder_ == null) { + return accountSummaries_.get(index); + } else { + return accountSummariesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public java.util.List + getAccountSummariesOrBuilderList() { + if (accountSummariesBuilder_ != null) { + return accountSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accountSummaries_); + } + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1beta.AccountSummary.Builder addAccountSummariesBuilder() { + return getAccountSummariesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance()); + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public com.google.analytics.admin.v1beta.AccountSummary.Builder addAccountSummariesBuilder( + int index) { + return getAccountSummariesFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance()); + } + /** + * + * + *
+     * Account summaries of all accounts the caller has access to.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + public java.util.List + getAccountSummariesBuilderList() { + return getAccountSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccountSummary, + com.google.analytics.admin.v1beta.AccountSummary.Builder, + com.google.analytics.admin.v1beta.AccountSummaryOrBuilder> + getAccountSummariesFieldBuilder() { + if (accountSummariesBuilder_ == null) { + accountSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccountSummary, + com.google.analytics.admin.v1beta.AccountSummary.Builder, + com.google.analytics.admin.v1beta.AccountSummaryOrBuilder>( + accountSummaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accountSummaries_ = null; + } + return accountSummariesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountSummariesResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountSummariesResponse) + private static final com.google.analytics.admin.v1beta.ListAccountSummariesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountSummariesResponse(); + } + + public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountSummariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountSummariesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java new file mode 100644 index 000000000000..52f5e09601d7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListAccountSummariesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountSummariesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + java.util.List getAccountSummariesList(); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + com.google.analytics.admin.v1beta.AccountSummary getAccountSummaries(int index); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + int getAccountSummariesCount(); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + java.util.List + getAccountSummariesOrBuilderList(); + /** + * + * + *
+   * Account summaries of all accounts the caller has access to.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; + */ + com.google.analytics.admin.v1beta.AccountSummaryOrBuilder getAccountSummariesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java new file mode 100644 index 000000000000..e83ec27835aa --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java @@ -0,0 +1,852 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsRequest} + */ +public final class ListAccountsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountsRequest) + ListAccountsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountsRequest.newBuilder() to construct. + private ListAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountsRequest() { + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountsRequest.class, + com.google.analytics.admin.v1beta.ListAccountsRequest.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHOW_DELETED_FIELD_NUMBER = 3; + private boolean showDeleted_ = false; + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Accounts in the
+   * results. Accounts can be inspected to determine whether they are deleted or
+   * not.
+   * 
+ * + * bool show_deleted = 3; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + + 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 (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(3, showDeleted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, showDeleted_); + } + 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.admin.v1beta.ListAccountsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListAccountsRequest other = + (com.google.analytics.admin.v1beta.ListAccountsRequest) obj; + + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListAccountsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountsRequest) + com.google.analytics.admin.v1beta.ListAccountsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountsRequest.class, + com.google.analytics.admin.v1beta.ListAccountsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListAccountsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageToken_ = ""; + showDeleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListAccountsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsRequest build() { + com.google.analytics.admin.v1beta.ListAccountsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsRequest buildPartial() { + com.google.analytics.admin.v1beta.ListAccountsRequest result = + new com.google.analytics.admin.v1beta.ListAccountsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListAccountsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.showDeleted_ = showDeleted_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListAccountsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListAccountsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountsRequest other) { + if (other == com.google.analytics.admin.v1beta.ListAccountsRequest.getDefaultInstance()) + return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + showDeleted_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 1; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListAccounts` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAccounts` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 2; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean showDeleted_; + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Accounts in the
+     * results. Accounts can be inspected to determine whether they are deleted or
+     * not.
+     * 
+ * + * bool show_deleted = 3; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Accounts in the
+     * results. Accounts can be inspected to determine whether they are deleted or
+     * not.
+     * 
+ * + * bool show_deleted = 3; + * + * @param value The showDeleted to set. + * @return This builder for chaining. + */ + public Builder setShowDeleted(boolean value) { + + showDeleted_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Accounts in the
+     * results. Accounts can be inspected to determine whether they are deleted or
+     * not.
+     * 
+ * + * bool show_deleted = 3; + * + * @return This builder for chaining. + */ + public Builder clearShowDeleted() { + bitField0_ = (bitField0_ & ~0x00000004); + showDeleted_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountsRequest) + private static final com.google.analytics.admin.v1beta.ListAccountsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountsRequest(); + } + + public static com.google.analytics.admin.v1beta.ListAccountsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java new file mode 100644 index 000000000000..9a220c4cfcf1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListAccountsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 1; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListAccounts` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAccounts` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 2; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Accounts in the
+   * results. Accounts can be inspected to determine whether they are deleted or
+   * not.
+   * 
+ * + * bool show_deleted = 3; + * + * @return The showDeleted. + */ + boolean getShowDeleted(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java new file mode 100644 index 000000000000..5a1be707ae4d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java @@ -0,0 +1,1125 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsResponse} + */ +public final class ListAccountsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountsResponse) + ListAccountsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListAccountsResponse.newBuilder() to construct. + private ListAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListAccountsResponse() { + accounts_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListAccountsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountsResponse.class, + com.google.analytics.admin.v1beta.ListAccountsResponse.Builder.class); + } + + public static final int ACCOUNTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accounts_; + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + @java.lang.Override + public java.util.List getAccountsList() { + return accounts_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + @java.lang.Override + public java.util.List + getAccountsOrBuilderList() { + return accounts_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + @java.lang.Override + public int getAccountsCount() { + return accounts_.size(); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Account getAccounts(int index) { + return accounts_.get(index); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountsOrBuilder(int index) { + return accounts_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < accounts_.size(); i++) { + output.writeMessage(1, accounts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accounts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accounts_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListAccountsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListAccountsResponse other = + (com.google.analytics.admin.v1beta.ListAccountsResponse) obj; + + if (!getAccountsList().equals(other.getAccountsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAccountsCount() > 0) { + hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; + hash = (53 * hash) + getAccountsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListAccountsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountsResponse) + com.google.analytics.admin.v1beta.ListAccountsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListAccountsResponse.class, + com.google.analytics.admin.v1beta.ListAccountsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListAccountsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + } else { + accounts_ = null; + accountsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListAccountsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsResponse build() { + com.google.analytics.admin.v1beta.ListAccountsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsResponse buildPartial() { + com.google.analytics.admin.v1beta.ListAccountsResponse result = + new com.google.analytics.admin.v1beta.ListAccountsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListAccountsResponse result) { + if (accountsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accounts_ = java.util.Collections.unmodifiableList(accounts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accounts_ = accounts_; + } else { + result.accounts_ = accountsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListAccountsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListAccountsResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListAccountsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountsResponse other) { + if (other == com.google.analytics.admin.v1beta.ListAccountsResponse.getDefaultInstance()) + return this; + if (accountsBuilder_ == null) { + if (!other.accounts_.isEmpty()) { + if (accounts_.isEmpty()) { + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccountsIsMutable(); + accounts_.addAll(other.accounts_); + } + onChanged(); + } + } else { + if (!other.accounts_.isEmpty()) { + if (accountsBuilder_.isEmpty()) { + accountsBuilder_.dispose(); + accountsBuilder_ = null; + accounts_ = other.accounts_; + bitField0_ = (bitField0_ & ~0x00000001); + accountsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAccountsFieldBuilder() + : null; + } else { + accountsBuilder_.addAllMessages(other.accounts_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.Account m = + input.readMessage( + com.google.analytics.admin.v1beta.Account.parser(), extensionRegistry); + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(m); + } else { + accountsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accounts_ = + java.util.Collections.emptyList(); + + private void ensureAccountsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accounts_ = new java.util.ArrayList(accounts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + accountsBuilder_; + + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public java.util.List getAccountsList() { + if (accountsBuilder_ == null) { + return java.util.Collections.unmodifiableList(accounts_); + } else { + return accountsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public int getAccountsCount() { + if (accountsBuilder_ == null) { + return accounts_.size(); + } else { + return accountsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public com.google.analytics.admin.v1beta.Account getAccounts(int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder setAccounts(int index, com.google.analytics.admin.v1beta.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.set(index, value); + onChanged(); + } else { + accountsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder setAccounts( + int index, com.google.analytics.admin.v1beta.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.set(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder addAccounts(com.google.analytics.admin.v1beta.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(value); + onChanged(); + } else { + accountsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder addAccounts(int index, com.google.analytics.admin.v1beta.Account value) { + if (accountsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccountsIsMutable(); + accounts_.add(index, value); + onChanged(); + } else { + accountsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder addAccounts(com.google.analytics.admin.v1beta.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder addAccounts( + int index, com.google.analytics.admin.v1beta.Account.Builder builderForValue) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.add(index, builderForValue.build()); + onChanged(); + } else { + accountsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder addAllAccounts( + java.lang.Iterable values) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accounts_); + onChanged(); + } else { + accountsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder clearAccounts() { + if (accountsBuilder_ == null) { + accounts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accountsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public Builder removeAccounts(int index) { + if (accountsBuilder_ == null) { + ensureAccountsIsMutable(); + accounts_.remove(index); + onChanged(); + } else { + accountsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public com.google.analytics.admin.v1beta.Account.Builder getAccountsBuilder(int index) { + return getAccountsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountsOrBuilder(int index) { + if (accountsBuilder_ == null) { + return accounts_.get(index); + } else { + return accountsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public java.util.List + getAccountsOrBuilderList() { + if (accountsBuilder_ != null) { + return accountsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accounts_); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public com.google.analytics.admin.v1beta.Account.Builder addAccountsBuilder() { + return getAccountsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.Account.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public com.google.analytics.admin.v1beta.Account.Builder addAccountsBuilder(int index) { + return getAccountsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.Account.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + public java.util.List + getAccountsBuilderList() { + return getAccountsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + getAccountsFieldBuilder() { + if (accountsBuilder_ == null) { + accountsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder>( + accounts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + accounts_ = null; + } + return accountsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountsResponse) + private static final com.google.analytics.admin.v1beta.ListAccountsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountsResponse(); + } + + public static com.google.analytics.admin.v1beta.ListAccountsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccountsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListAccountsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java new file mode 100644 index 000000000000..bde1f770aa4d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListAccountsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + java.util.List getAccountsList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + com.google.analytics.admin.v1beta.Account getAccounts(int index); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + int getAccountsCount(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + java.util.List + getAccountsOrBuilderList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Account accounts = 1; + */ + com.google.analytics.admin.v1beta.AccountOrBuilder getAccountsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java new file mode 100644 index 000000000000..8cb004a1b2f9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java @@ -0,0 +1,954 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListConversionEvents RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsRequest} + */ +public final class ListConversionEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListConversionEventsRequest) + ListConversionEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsRequest.newBuilder() to construct. + private ListConversionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListConversionEventsRequest.class, + com.google.analytics.admin.v1beta.ListConversionEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1beta.ListConversionEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListConversionEventsRequest other = + (com.google.analytics.admin.v1beta.ListConversionEventsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListConversionEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListConversionEvents RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListConversionEventsRequest) + com.google.analytics.admin.v1beta.ListConversionEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListConversionEventsRequest.class, + com.google.analytics.admin.v1beta.ListConversionEventsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListConversionEventsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListConversionEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsRequest build() { + com.google.analytics.admin.v1beta.ListConversionEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsRequest buildPartial() { + com.google.analytics.admin.v1beta.ListConversionEventsRequest result = + new com.google.analytics.admin.v1beta.ListConversionEventsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListConversionEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListConversionEventsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListConversionEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListConversionEventsRequest other) { + if (other + == com.google.analytics.admin.v1beta.ListConversionEventsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListConversionEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListConversionEventsRequest) + private static final com.google.analytics.admin.v1beta.ListConversionEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListConversionEventsRequest(); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java new file mode 100644 index 000000000000..903f9f91f9f7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListConversionEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListConversionEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java new file mode 100644 index 000000000000..f241715505e6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java @@ -0,0 +1,1147 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListConversionEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsResponse} + */ +public final class ListConversionEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListConversionEventsResponse) + ListConversionEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsResponse.newBuilder() to construct. + private ListConversionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsResponse() { + conversionEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListConversionEventsResponse.class, + com.google.analytics.admin.v1beta.ListConversionEventsResponse.Builder.class); + } + + public static final int CONVERSION_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List conversionEvents_; + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsOrBuilderList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public int getConversionEventsCount() { + return conversionEvents_.size(); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvents(int index) { + return conversionEvents_.get(index); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + return conversionEvents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < conversionEvents_.size(); i++) { + output.writeMessage(1, conversionEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < conversionEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversionEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListConversionEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListConversionEventsResponse other = + (com.google.analytics.admin.v1beta.ListConversionEventsResponse) obj; + + if (!getConversionEventsList().equals(other.getConversionEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getConversionEventsCount() > 0) { + hash = (37 * hash) + CONVERSION_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getConversionEventsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListConversionEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListConversionEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListConversionEventsResponse) + com.google.analytics.admin.v1beta.ListConversionEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListConversionEventsResponse.class, + com.google.analytics.admin.v1beta.ListConversionEventsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListConversionEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + } else { + conversionEvents_ = null; + conversionEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListConversionEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsResponse build() { + com.google.analytics.admin.v1beta.ListConversionEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsResponse buildPartial() { + com.google.analytics.admin.v1beta.ListConversionEventsResponse result = + new com.google.analytics.admin.v1beta.ListConversionEventsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListConversionEventsResponse result) { + if (conversionEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversionEvents_ = conversionEvents_; + } else { + result.conversionEvents_ = conversionEventsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListConversionEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListConversionEventsResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListConversionEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListConversionEventsResponse other) { + if (other + == com.google.analytics.admin.v1beta.ListConversionEventsResponse.getDefaultInstance()) + return this; + if (conversionEventsBuilder_ == null) { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEvents_.isEmpty()) { + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversionEventsIsMutable(); + conversionEvents_.addAll(other.conversionEvents_); + } + onChanged(); + } + } else { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEventsBuilder_.isEmpty()) { + conversionEventsBuilder_.dispose(); + conversionEventsBuilder_ = null; + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + conversionEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConversionEventsFieldBuilder() + : null; + } else { + conversionEventsBuilder_.addAllMessages(other.conversionEvents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.ConversionEvent m = + input.readMessage( + com.google.analytics.admin.v1beta.ConversionEvent.parser(), + extensionRegistry); + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(m); + } else { + conversionEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List conversionEvents_ = + java.util.Collections.emptyList(); + + private void ensureConversionEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = + new java.util.ArrayList( + conversionEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + conversionEventsBuilder_; + + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsList() { + if (conversionEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversionEvents_); + } else { + return conversionEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public int getConversionEventsCount() { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.size(); + } else { + return conversionEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, value); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents(com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder addAllConversionEvents( + java.lang.Iterable values) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionEvents_); + onChanged(); + } else { + conversionEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder clearConversionEvents() { + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversionEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public Builder removeConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.remove(index); + onChanged(); + } else { + conversionEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsOrBuilderList() { + if (conversionEventsBuilder_ != null) { + return conversionEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversionEvents_); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1beta.ConversionEvent.Builder addConversionEventsBuilder() { + return getConversionEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1beta.ConversionEvent.Builder addConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsBuilderList() { + return getConversionEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + getConversionEventsFieldBuilder() { + if (conversionEventsBuilder_ == null) { + conversionEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( + conversionEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conversionEvents_ = null; + } + return conversionEventsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListConversionEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListConversionEventsResponse) + private static final com.google.analytics.admin.v1beta.ListConversionEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListConversionEventsResponse(); + } + + public static com.google.analytics.admin.v1beta.ListConversionEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListConversionEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java new file mode 100644 index 000000000000..161bdee80e09 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListConversionEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListConversionEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + java.util.List getConversionEventsList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1beta.ConversionEvent getConversionEvents(int index); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + int getConversionEventsCount(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + java.util.List + getConversionEventsOrBuilderList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java new file mode 100644 index 000000000000..7ff7c66c6147 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java @@ -0,0 +1,954 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsRequest} + */ +public final class ListCustomDimensionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomDimensionsRequest) + ListCustomDimensionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsRequest.newBuilder() to construct. + private ListCustomDimensionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1beta.ListCustomDimensionsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest other = + (com.google.analytics.admin.v1beta.ListCustomDimensionsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomDimensionsRequest) + com.google.analytics.admin.v1beta.ListCustomDimensionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest build() { + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest buildPartial() { + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest result = + new com.google.analytics.admin.v1beta.ListCustomDimensionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListCustomDimensionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListCustomDimensionsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListCustomDimensionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomDimensionsRequest other) { + if (other + == com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomDimensionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomDimensionsRequest) + private static final com.google.analytics.admin.v1beta.ListCustomDimensionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomDimensionsRequest(); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java new file mode 100644 index 000000000000..d45a71a9da88 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListCustomDimensionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomDimensionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java new file mode 100644 index 000000000000..25286c3f8b3f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java @@ -0,0 +1,1147 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsResponse} + */ +public final class ListCustomDimensionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomDimensionsResponse) + ListCustomDimensionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsResponse.newBuilder() to construct. + private ListCustomDimensionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsResponse() { + customDimensions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.Builder.class); + } + + public static final int CUSTOM_DIMENSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customDimensions_; + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsOrBuilderList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public int getCustomDimensionsCount() { + return customDimensions_.size(); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension getCustomDimensions(int index) { + return customDimensions_.get(index); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + return customDimensions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customDimensions_.size(); i++) { + output.writeMessage(1, customDimensions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customDimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customDimensions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListCustomDimensionsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse other = + (com.google.analytics.admin.v1beta.ListCustomDimensionsResponse) obj; + + if (!getCustomDimensionsList().equals(other.getCustomDimensionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getCustomDimensionsCount() > 0) { + hash = (37 * hash) + CUSTOM_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimensionsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomDimensionsResponse) + com.google.analytics.admin.v1beta.ListCustomDimensionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + } else { + customDimensions_ = null; + customDimensionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse build() { + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse buildPartial() { + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result = + new com.google.analytics.admin.v1beta.ListCustomDimensionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result) { + if (customDimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customDimensions_ = customDimensions_; + } else { + result.customDimensions_ = customDimensionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListCustomDimensionsResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListCustomDimensionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomDimensionsResponse other) { + if (other + == com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.getDefaultInstance()) + return this; + if (customDimensionsBuilder_ == null) { + if (!other.customDimensions_.isEmpty()) { + if (customDimensions_.isEmpty()) { + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomDimensionsIsMutable(); + customDimensions_.addAll(other.customDimensions_); + } + onChanged(); + } + } else { + if (!other.customDimensions_.isEmpty()) { + if (customDimensionsBuilder_.isEmpty()) { + customDimensionsBuilder_.dispose(); + customDimensionsBuilder_ = null; + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + customDimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomDimensionsFieldBuilder() + : null; + } else { + customDimensionsBuilder_.addAllMessages(other.customDimensions_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.CustomDimension m = + input.readMessage( + com.google.analytics.admin.v1beta.CustomDimension.parser(), + extensionRegistry); + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(m); + } else { + customDimensionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List customDimensions_ = + java.util.Collections.emptyList(); + + private void ensureCustomDimensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = + new java.util.ArrayList( + customDimensions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> + customDimensionsBuilder_; + + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsList() { + if (customDimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customDimensions_); + } else { + return customDimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public int getCustomDimensionsCount() { + if (customDimensionsBuilder_ == null) { + return customDimensions_.size(); + } else { + return customDimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1beta.CustomDimension getCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1beta.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, value); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions(com.google.analytics.admin.v1beta.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1beta.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder addAllCustomDimensions( + java.lang.Iterable values) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customDimensions_); + onChanged(); + } else { + customDimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder clearCustomDimensions() { + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customDimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public Builder removeCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.remove(index); + onChanged(); + } else { + customDimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1beta.CustomDimension.Builder getCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsOrBuilderList() { + if (customDimensionsBuilder_ != null) { + return customDimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customDimensions_); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1beta.CustomDimension.Builder addCustomDimensionsBuilder() { + return getCustomDimensionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1beta.CustomDimension.Builder addCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsBuilderList() { + return getCustomDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> + getCustomDimensionsFieldBuilder() { + if (customDimensionsBuilder_ == null) { + customDimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder>( + customDimensions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customDimensions_ = null; + } + return customDimensionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomDimensionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomDimensionsResponse) + private static final com.google.analytics.admin.v1beta.ListCustomDimensionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomDimensionsResponse(); + } + + public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java new file mode 100644 index 000000000000..ee62c649aaf7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListCustomDimensionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomDimensionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + java.util.List getCustomDimensionsList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1beta.CustomDimension getCustomDimensions(int index); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + int getCustomDimensionsCount(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + java.util.List + getCustomDimensionsOrBuilderList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java new file mode 100644 index 000000000000..1337dee2c117 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java @@ -0,0 +1,950 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsRequest} + */ +public final class ListCustomMetricsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomMetricsRequest) + ListCustomMetricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsRequest.newBuilder() to construct. + private ListCustomMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1beta.ListCustomMetricsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1beta.ListCustomMetricsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListCustomMetricsRequest other = + (com.google.analytics.admin.v1beta.ListCustomMetricsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomMetricsRequest) + com.google.analytics.admin.v1beta.ListCustomMetricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1beta.ListCustomMetricsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListCustomMetricsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListCustomMetricsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsRequest build() { + com.google.analytics.admin.v1beta.ListCustomMetricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsRequest buildPartial() { + com.google.analytics.admin.v1beta.ListCustomMetricsRequest result = + new com.google.analytics.admin.v1beta.ListCustomMetricsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListCustomMetricsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListCustomMetricsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListCustomMetricsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomMetricsRequest other) { + if (other == com.google.analytics.admin.v1beta.ListCustomMetricsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListCustomMetrics` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomMetricsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomMetricsRequest) + private static final com.google.analytics.admin.v1beta.ListCustomMetricsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomMetricsRequest(); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java new file mode 100644 index 000000000000..6bec17e08844 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListCustomMetricsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomMetricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListCustomMetrics` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java new file mode 100644 index 000000000000..660891be2eb4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java @@ -0,0 +1,1136 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsResponse} + */ +public final class ListCustomMetricsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomMetricsResponse) + ListCustomMetricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsResponse.newBuilder() to construct. + private ListCustomMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsResponse() { + customMetrics_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1beta.ListCustomMetricsResponse.Builder.class); + } + + public static final int CUSTOM_METRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List customMetrics_; + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List getCustomMetricsList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List + getCustomMetricsOrBuilderList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public int getCustomMetricsCount() { + return customMetrics_.size(); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric getCustomMetrics(int index) { + return customMetrics_.get(index); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + return customMetrics_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < customMetrics_.size(); i++) { + output.writeMessage(1, customMetrics_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < customMetrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customMetrics_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListCustomMetricsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListCustomMetricsResponse other = + (com.google.analytics.admin.v1beta.ListCustomMetricsResponse) obj; + + if (!getCustomMetricsList().equals(other.getCustomMetricsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getCustomMetricsCount() > 0) { + hash = (37 * hash) + CUSTOM_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetricsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListCustomMetricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomMetricsResponse) + com.google.analytics.admin.v1beta.ListCustomMetricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1beta.ListCustomMetricsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListCustomMetricsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + } else { + customMetrics_ = null; + customMetricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListCustomMetricsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsResponse build() { + com.google.analytics.admin.v1beta.ListCustomMetricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsResponse buildPartial() { + com.google.analytics.admin.v1beta.ListCustomMetricsResponse result = + new com.google.analytics.admin.v1beta.ListCustomMetricsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListCustomMetricsResponse result) { + if (customMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customMetrics_ = customMetrics_; + } else { + result.customMetrics_ = customMetricsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListCustomMetricsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListCustomMetricsResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListCustomMetricsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomMetricsResponse other) { + if (other == com.google.analytics.admin.v1beta.ListCustomMetricsResponse.getDefaultInstance()) + return this; + if (customMetricsBuilder_ == null) { + if (!other.customMetrics_.isEmpty()) { + if (customMetrics_.isEmpty()) { + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomMetricsIsMutable(); + customMetrics_.addAll(other.customMetrics_); + } + onChanged(); + } + } else { + if (!other.customMetrics_.isEmpty()) { + if (customMetricsBuilder_.isEmpty()) { + customMetricsBuilder_.dispose(); + customMetricsBuilder_ = null; + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + customMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomMetricsFieldBuilder() + : null; + } else { + customMetricsBuilder_.addAllMessages(other.customMetrics_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.CustomMetric m = + input.readMessage( + com.google.analytics.admin.v1beta.CustomMetric.parser(), extensionRegistry); + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(m); + } else { + customMetricsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List customMetrics_ = + java.util.Collections.emptyList(); + + private void ensureCustomMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = + new java.util.ArrayList(customMetrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder> + customMetricsBuilder_; + + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public java.util.List getCustomMetricsList() { + if (customMetricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customMetrics_); + } else { + return customMetricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public int getCustomMetricsCount() { + if (customMetricsBuilder_ == null) { + return customMetrics_.size(); + } else { + return customMetricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1beta.CustomMetric getCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1beta.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, value); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics(com.google.analytics.admin.v1beta.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1beta.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder addAllCustomMetrics( + java.lang.Iterable values) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customMetrics_); + onChanged(); + } else { + customMetricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder clearCustomMetrics() { + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public Builder removeCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.remove(index); + onChanged(); + } else { + customMetricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1beta.CustomMetric.Builder getCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsOrBuilderList() { + if (customMetricsBuilder_ != null) { + return customMetricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customMetrics_); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1beta.CustomMetric.Builder addCustomMetricsBuilder() { + return getCustomMetricsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1beta.CustomMetric.Builder addCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsBuilderList() { + return getCustomMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder> + getCustomMetricsFieldBuilder() { + if (customMetricsBuilder_ == null) { + customMetricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder>( + customMetrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customMetrics_ = null; + } + return customMetricsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomMetricsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomMetricsResponse) + private static final com.google.analytics.admin.v1beta.ListCustomMetricsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomMetricsResponse(); + } + + public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListCustomMetricsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java new file mode 100644 index 000000000000..d42c2860928e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListCustomMetricsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomMetricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + java.util.List getCustomMetricsList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1beta.CustomMetric getCustomMetrics(int index); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + int getCustomMetricsCount(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + java.util.List + getCustomMetricsOrBuilderList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java new file mode 100644 index 000000000000..55450b520e95 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java @@ -0,0 +1,950 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsRequest} + */ +public final class ListDataStreamsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListDataStreamsRequest) + ListDataStreamsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataStreamsRequest.newBuilder() to construct. + private ListDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataStreamsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataStreamsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListDataStreamsRequest.class, + com.google.analytics.admin.v1beta.ListDataStreamsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1beta.ListDataStreamsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListDataStreamsRequest other = + (com.google.analytics.admin.v1beta.ListDataStreamsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListDataStreamsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListDataStreamsRequest) + com.google.analytics.admin.v1beta.ListDataStreamsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListDataStreamsRequest.class, + com.google.analytics.admin.v1beta.ListDataStreamsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListDataStreamsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListDataStreamsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsRequest build() { + com.google.analytics.admin.v1beta.ListDataStreamsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsRequest buildPartial() { + com.google.analytics.admin.v1beta.ListDataStreamsRequest result = + new com.google.analytics.admin.v1beta.ListDataStreamsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListDataStreamsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListDataStreamsRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListDataStreamsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListDataStreamsRequest other) { + if (other == com.google.analytics.admin.v1beta.ListDataStreamsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDataStreams` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListDataStreams` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListDataStreamsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListDataStreamsRequest) + private static final com.google.analytics.admin.v1beta.ListDataStreamsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListDataStreamsRequest(); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataStreamsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java new file mode 100644 index 000000000000..fcabb50dd789 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListDataStreamsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListDataStreamsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListDataStreams` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListDataStreams` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java new file mode 100644 index 000000000000..ffe8be3b6b72 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java @@ -0,0 +1,1128 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListDataStreams RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsResponse} + */ +public final class ListDataStreamsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListDataStreamsResponse) + ListDataStreamsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDataStreamsResponse.newBuilder() to construct. + private ListDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDataStreamsResponse() { + dataStreams_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDataStreamsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListDataStreamsResponse.class, + com.google.analytics.admin.v1beta.ListDataStreamsResponse.Builder.class); + } + + public static final int DATA_STREAMS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dataStreams_; + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + @java.lang.Override + public java.util.List getDataStreamsList() { + return dataStreams_; + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + @java.lang.Override + public java.util.List + getDataStreamsOrBuilderList() { + return dataStreams_; + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + @java.lang.Override + public int getDataStreamsCount() { + return dataStreams_.size(); + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream getDataStreams(int index) { + return dataStreams_.get(index); + } + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamsOrBuilder(int index) { + return dataStreams_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dataStreams_.size(); i++) { + output.writeMessage(1, dataStreams_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dataStreams_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dataStreams_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += 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.admin.v1beta.ListDataStreamsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListDataStreamsResponse other = + (com.google.analytics.admin.v1beta.ListDataStreamsResponse) obj; + + if (!getDataStreamsList().equals(other.getDataStreamsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getDataStreamsCount() > 0) { + hash = (37 * hash) + DATA_STREAMS_FIELD_NUMBER; + hash = (53 * hash) + getDataStreamsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListDataStreamsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListDataStreams RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListDataStreamsResponse) + com.google.analytics.admin.v1beta.ListDataStreamsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListDataStreamsResponse.class, + com.google.analytics.admin.v1beta.ListDataStreamsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListDataStreamsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dataStreamsBuilder_ == null) { + dataStreams_ = java.util.Collections.emptyList(); + } else { + dataStreams_ = null; + dataStreamsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListDataStreamsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsResponse build() { + com.google.analytics.admin.v1beta.ListDataStreamsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsResponse buildPartial() { + com.google.analytics.admin.v1beta.ListDataStreamsResponse result = + new com.google.analytics.admin.v1beta.ListDataStreamsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListDataStreamsResponse result) { + if (dataStreamsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dataStreams_ = dataStreams_; + } else { + result.dataStreams_ = dataStreamsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListDataStreamsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListDataStreamsResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListDataStreamsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListDataStreamsResponse other) { + if (other == com.google.analytics.admin.v1beta.ListDataStreamsResponse.getDefaultInstance()) + return this; + if (dataStreamsBuilder_ == null) { + if (!other.dataStreams_.isEmpty()) { + if (dataStreams_.isEmpty()) { + dataStreams_ = other.dataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDataStreamsIsMutable(); + dataStreams_.addAll(other.dataStreams_); + } + onChanged(); + } + } else { + if (!other.dataStreams_.isEmpty()) { + if (dataStreamsBuilder_.isEmpty()) { + dataStreamsBuilder_.dispose(); + dataStreamsBuilder_ = null; + dataStreams_ = other.dataStreams_; + bitField0_ = (bitField0_ & ~0x00000001); + dataStreamsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDataStreamsFieldBuilder() + : null; + } else { + dataStreamsBuilder_.addAllMessages(other.dataStreams_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.DataStream m = + input.readMessage( + com.google.analytics.admin.v1beta.DataStream.parser(), extensionRegistry); + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(m); + } else { + dataStreamsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List dataStreams_ = + java.util.Collections.emptyList(); + + private void ensureDataStreamsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dataStreams_ = + new java.util.ArrayList(dataStreams_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + dataStreamsBuilder_; + + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public java.util.List getDataStreamsList() { + if (dataStreamsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dataStreams_); + } else { + return dataStreamsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public int getDataStreamsCount() { + if (dataStreamsBuilder_ == null) { + return dataStreams_.size(); + } else { + return dataStreamsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1beta.DataStream getDataStreams(int index) { + if (dataStreamsBuilder_ == null) { + return dataStreams_.get(index); + } else { + return dataStreamsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder setDataStreams(int index, com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.set(index, value); + onChanged(); + } else { + dataStreamsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder setDataStreams( + int index, com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.set(index, builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder addDataStreams(com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.add(value); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder addDataStreams(int index, com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDataStreamsIsMutable(); + dataStreams_.add(index, value); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder addDataStreams( + com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder addDataStreams( + int index, com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.add(index, builderForValue.build()); + onChanged(); + } else { + dataStreamsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder addAllDataStreams( + java.lang.Iterable values) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataStreams_); + onChanged(); + } else { + dataStreamsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder clearDataStreams() { + if (dataStreamsBuilder_ == null) { + dataStreams_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dataStreamsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public Builder removeDataStreams(int index) { + if (dataStreamsBuilder_ == null) { + ensureDataStreamsIsMutable(); + dataStreams_.remove(index); + onChanged(); + } else { + dataStreamsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamsBuilder(int index) { + return getDataStreamsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamsOrBuilder( + int index) { + if (dataStreamsBuilder_ == null) { + return dataStreams_.get(index); + } else { + return dataStreamsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public java.util.List + getDataStreamsOrBuilderList() { + if (dataStreamsBuilder_ != null) { + return dataStreamsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dataStreams_); + } + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1beta.DataStream.Builder addDataStreamsBuilder() { + return getDataStreamsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public com.google.analytics.admin.v1beta.DataStream.Builder addDataStreamsBuilder(int index) { + return getDataStreamsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()); + } + /** + * + * + *
+     * List of DataStreams.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + public java.util.List + getDataStreamsBuilderList() { + return getDataStreamsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + getDataStreamsFieldBuilder() { + if (dataStreamsBuilder_ == null) { + dataStreamsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder>( + dataStreams_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dataStreams_ = null; + } + return dataStreamsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListDataStreamsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListDataStreamsResponse) + private static final com.google.analytics.admin.v1beta.ListDataStreamsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListDataStreamsResponse(); + } + + public static com.google.analytics.admin.v1beta.ListDataStreamsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDataStreamsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListDataStreamsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java new file mode 100644 index 000000000000..73719c0e3e5e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListDataStreamsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListDataStreamsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + java.util.List getDataStreamsList(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + com.google.analytics.admin.v1beta.DataStream getDataStreams(int index); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + int getDataStreamsCount(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + java.util.List + getDataStreamsOrBuilderList(); + /** + * + * + *
+   * List of DataStreams.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; + */ + com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java new file mode 100644 index 000000000000..549f2319661d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java @@ -0,0 +1,954 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListFirebaseLinks RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksRequest} + */ +public final class ListFirebaseLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListFirebaseLinksRequest) + ListFirebaseLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFirebaseLinksRequest.newBuilder() to construct. + private ListFirebaseLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFirebaseLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFirebaseLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.class, + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1beta.ListFirebaseLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest other = + (com.google.analytics.admin.v1beta.ListFirebaseLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListFirebaseLinks RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListFirebaseLinksRequest) + com.google.analytics.admin.v1beta.ListFirebaseLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.class, + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest build() { + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest buildPartial() { + com.google.analytics.admin.v1beta.ListFirebaseLinksRequest result = + new com.google.analytics.admin.v1beta.ListFirebaseLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListFirebaseLinksRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListFirebaseLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest other) { + if (other == com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Format: properties/{property_id}
+     * Example: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListFirebaseLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListFirebaseLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListFirebaseLinksRequest) + private static final com.google.analytics.admin.v1beta.ListFirebaseLinksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListFirebaseLinksRequest(); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirebaseLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java new file mode 100644 index 000000000000..8fbf88e319ff --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListFirebaseLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListFirebaseLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Format: properties/{property_id}
+   * Example: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListFirebaseLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java new file mode 100644 index 000000000000..bd888d424abb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java @@ -0,0 +1,1150 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListFirebaseLinks RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksResponse} + */ +public final class ListFirebaseLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListFirebaseLinksResponse) + ListFirebaseLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListFirebaseLinksResponse.newBuilder() to construct. + private ListFirebaseLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListFirebaseLinksResponse() { + firebaseLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListFirebaseLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.class, + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.Builder.class); + } + + public static final int FIREBASE_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List firebaseLinks_; + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public java.util.List getFirebaseLinksList() { + return firebaseLinks_; + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public java.util.List + getFirebaseLinksOrBuilderList() { + return firebaseLinks_; + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public int getFirebaseLinksCount() { + return firebaseLinks_.size(); + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLinks(int index) { + return firebaseLinks_.get(index); + } + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( + int index) { + return firebaseLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < firebaseLinks_.size(); i++) { + output.writeMessage(1, firebaseLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < firebaseLinks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, firebaseLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListFirebaseLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse other = + (com.google.analytics.admin.v1beta.ListFirebaseLinksResponse) obj; + + if (!getFirebaseLinksList().equals(other.getFirebaseLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getFirebaseLinksCount() > 0) { + hash = (37 * hash) + FIREBASE_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListFirebaseLinks RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListFirebaseLinksResponse) + com.google.analytics.admin.v1beta.ListFirebaseLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.class, + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (firebaseLinksBuilder_ == null) { + firebaseLinks_ = java.util.Collections.emptyList(); + } else { + firebaseLinks_ = null; + firebaseLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse build() { + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse buildPartial() { + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result = + new com.google.analytics.admin.v1beta.ListFirebaseLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result) { + if (firebaseLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + firebaseLinks_ = java.util.Collections.unmodifiableList(firebaseLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.firebaseLinks_ = firebaseLinks_; + } else { + result.firebaseLinks_ = firebaseLinksBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListFirebaseLinksResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListFirebaseLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListFirebaseLinksResponse other) { + if (other == com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.getDefaultInstance()) + return this; + if (firebaseLinksBuilder_ == null) { + if (!other.firebaseLinks_.isEmpty()) { + if (firebaseLinks_.isEmpty()) { + firebaseLinks_ = other.firebaseLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.addAll(other.firebaseLinks_); + } + onChanged(); + } + } else { + if (!other.firebaseLinks_.isEmpty()) { + if (firebaseLinksBuilder_.isEmpty()) { + firebaseLinksBuilder_.dispose(); + firebaseLinksBuilder_ = null; + firebaseLinks_ = other.firebaseLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + firebaseLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getFirebaseLinksFieldBuilder() + : null; + } else { + firebaseLinksBuilder_.addAllMessages(other.firebaseLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.FirebaseLink m = + input.readMessage( + com.google.analytics.admin.v1beta.FirebaseLink.parser(), extensionRegistry); + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(m); + } else { + firebaseLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List firebaseLinks_ = + java.util.Collections.emptyList(); + + private void ensureFirebaseLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + firebaseLinks_ = + new java.util.ArrayList(firebaseLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> + firebaseLinksBuilder_; + + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public java.util.List getFirebaseLinksList() { + if (firebaseLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(firebaseLinks_); + } else { + return firebaseLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public int getFirebaseLinksCount() { + if (firebaseLinksBuilder_ == null) { + return firebaseLinks_.size(); + } else { + return firebaseLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLinks(int index) { + if (firebaseLinksBuilder_ == null) { + return firebaseLinks_.get(index); + } else { + return firebaseLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder setFirebaseLinks( + int index, com.google.analytics.admin.v1beta.FirebaseLink value) { + if (firebaseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirebaseLinksIsMutable(); + firebaseLinks_.set(index, value); + onChanged(); + } else { + firebaseLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder setFirebaseLinks( + int index, com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + firebaseLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks(com.google.analytics.admin.v1beta.FirebaseLink value) { + if (firebaseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(value); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks( + int index, com.google.analytics.admin.v1beta.FirebaseLink value) { + if (firebaseLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(index, value); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks( + com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(builderForValue.build()); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder addFirebaseLinks( + int index, com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + firebaseLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder addAllFirebaseLinks( + java.lang.Iterable values) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, firebaseLinks_); + onChanged(); + } else { + firebaseLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder clearFirebaseLinks() { + if (firebaseLinksBuilder_ == null) { + firebaseLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + firebaseLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public Builder removeFirebaseLinks(int index) { + if (firebaseLinksBuilder_ == null) { + ensureFirebaseLinksIsMutable(); + firebaseLinks_.remove(index); + onChanged(); + } else { + firebaseLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1beta.FirebaseLink.Builder getFirebaseLinksBuilder( + int index) { + return getFirebaseLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( + int index) { + if (firebaseLinksBuilder_ == null) { + return firebaseLinks_.get(index); + } else { + return firebaseLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public java.util.List + getFirebaseLinksOrBuilderList() { + if (firebaseLinksBuilder_ != null) { + return firebaseLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(firebaseLinks_); + } + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1beta.FirebaseLink.Builder addFirebaseLinksBuilder() { + return getFirebaseLinksFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public com.google.analytics.admin.v1beta.FirebaseLink.Builder addFirebaseLinksBuilder( + int index) { + return getFirebaseLinksFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of FirebaseLinks. This will have at most one value.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + public java.util.List + getFirebaseLinksBuilderList() { + return getFirebaseLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> + getFirebaseLinksFieldBuilder() { + if (firebaseLinksBuilder_ == null) { + firebaseLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.FirebaseLink, + com.google.analytics.admin.v1beta.FirebaseLink.Builder, + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder>( + firebaseLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + firebaseLinks_ = null; + } + return firebaseLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * Currently, Google Analytics supports only one FirebaseLink per property,
+     * so this will never be populated.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListFirebaseLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListFirebaseLinksResponse) + private static final com.google.analytics.admin.v1beta.ListFirebaseLinksResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListFirebaseLinksResponse(); + } + + public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListFirebaseLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java new file mode 100644 index 000000000000..c3539d7a10da --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListFirebaseLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListFirebaseLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + java.util.List getFirebaseLinksList(); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLinks(int index); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + int getFirebaseLinksCount(); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + java.util.List + getFirebaseLinksOrBuilderList(); + /** + * + * + *
+   * List of FirebaseLinks. This will have at most one value.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; + */ + com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * Currently, Google Analytics supports only one FirebaseLink per property,
+   * so this will never be populated.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java new file mode 100644 index 000000000000..a6587d1a3008 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java @@ -0,0 +1,950 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListGoogleAdsLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} + */ +public final class ListGoogleAdsLinksRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) + ListGoogleAdsLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListGoogleAdsLinksRequest.newBuilder() to construct. + private ListGoogleAdsLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGoogleAdsLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGoogleAdsLinksRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.class, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1beta.ListGoogleAdsLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest other = + (com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListGoogleAdsLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.class, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest build() { + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest buildPartial() { + com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest result = + new com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest other) { + if (other == com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Provide this to retrieve the subsequent page.
+     *
+     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) + private static final com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest(); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGoogleAdsLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java new file mode 100644 index 000000000000..c0675ee80264 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListGoogleAdsLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Provide this to retrieve the subsequent page.
+   *
+   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java new file mode 100644 index 000000000000..93ee954bb2f4 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java @@ -0,0 +1,1142 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListGoogleAdsLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} + */ +public final class ListGoogleAdsLinksResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) + ListGoogleAdsLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListGoogleAdsLinksResponse.newBuilder() to construct. + private ListGoogleAdsLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListGoogleAdsLinksResponse() { + googleAdsLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListGoogleAdsLinksResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.class, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.Builder.class); + } + + public static final int GOOGLE_ADS_LINKS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List googleAdsLinks_; + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public java.util.List getGoogleAdsLinksList() { + return googleAdsLinks_; + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public java.util.List + getGoogleAdsLinksOrBuilderList() { + return googleAdsLinks_; + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public int getGoogleAdsLinksCount() { + return googleAdsLinks_.size(); + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLinks(int index) { + return googleAdsLinks_.get(index); + } + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( + int index) { + return googleAdsLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < googleAdsLinks_.size(); i++) { + output.writeMessage(1, googleAdsLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < googleAdsLinks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, googleAdsLinks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListGoogleAdsLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse other = + (com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) obj; + + if (!getGoogleAdsLinksList().equals(other.getGoogleAdsLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getGoogleAdsLinksCount() > 0) { + hash = (37 * hash) + GOOGLE_ADS_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListGoogleAdsLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.class, + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (googleAdsLinksBuilder_ == null) { + googleAdsLinks_ = java.util.Collections.emptyList(); + } else { + googleAdsLinks_ = null; + googleAdsLinksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse build() { + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse buildPartial() { + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result = + new com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result) { + if (googleAdsLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + googleAdsLinks_ = java.util.Collections.unmodifiableList(googleAdsLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.googleAdsLinks_ = googleAdsLinks_; + } else { + result.googleAdsLinks_ = googleAdsLinksBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse other) { + if (other + == com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.getDefaultInstance()) + return this; + if (googleAdsLinksBuilder_ == null) { + if (!other.googleAdsLinks_.isEmpty()) { + if (googleAdsLinks_.isEmpty()) { + googleAdsLinks_ = other.googleAdsLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.addAll(other.googleAdsLinks_); + } + onChanged(); + } + } else { + if (!other.googleAdsLinks_.isEmpty()) { + if (googleAdsLinksBuilder_.isEmpty()) { + googleAdsLinksBuilder_.dispose(); + googleAdsLinksBuilder_ = null; + googleAdsLinks_ = other.googleAdsLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + googleAdsLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getGoogleAdsLinksFieldBuilder() + : null; + } else { + googleAdsLinksBuilder_.addAllMessages(other.googleAdsLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.GoogleAdsLink m = + input.readMessage( + com.google.analytics.admin.v1beta.GoogleAdsLink.parser(), + extensionRegistry); + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(m); + } else { + googleAdsLinksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List googleAdsLinks_ = + java.util.Collections.emptyList(); + + private void ensureGoogleAdsLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + googleAdsLinks_ = + new java.util.ArrayList( + googleAdsLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + googleAdsLinksBuilder_; + + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public java.util.List getGoogleAdsLinksList() { + if (googleAdsLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(googleAdsLinks_); + } else { + return googleAdsLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public int getGoogleAdsLinksCount() { + if (googleAdsLinksBuilder_ == null) { + return googleAdsLinks_.size(); + } else { + return googleAdsLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLinks(int index) { + if (googleAdsLinksBuilder_ == null) { + return googleAdsLinks_.get(index); + } else { + return googleAdsLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder setGoogleAdsLinks( + int index, com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.set(index, value); + onChanged(); + } else { + googleAdsLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder setGoogleAdsLinks( + int index, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + googleAdsLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks(com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(value); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks( + int index, com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(index, value); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks( + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(builderForValue.build()); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder addGoogleAdsLinks( + int index, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + googleAdsLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder addAllGoogleAdsLinks( + java.lang.Iterable values) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, googleAdsLinks_); + onChanged(); + } else { + googleAdsLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder clearGoogleAdsLinks() { + if (googleAdsLinksBuilder_ == null) { + googleAdsLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + googleAdsLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public Builder removeGoogleAdsLinks(int index) { + if (googleAdsLinksBuilder_ == null) { + ensureGoogleAdsLinksIsMutable(); + googleAdsLinks_.remove(index); + onChanged(); + } else { + googleAdsLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinksBuilder( + int index) { + return getGoogleAdsLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( + int index) { + if (googleAdsLinksBuilder_ == null) { + return googleAdsLinks_.get(index); + } else { + return googleAdsLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public java.util.List + getGoogleAdsLinksOrBuilderList() { + if (googleAdsLinksBuilder_ != null) { + return googleAdsLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(googleAdsLinks_); + } + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder addGoogleAdsLinksBuilder() { + return getGoogleAdsLinksFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder addGoogleAdsLinksBuilder( + int index) { + return getGoogleAdsLinksFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()); + } + /** + * + * + *
+     * List of GoogleAdsLinks.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + public java.util.List + getGoogleAdsLinksBuilderList() { + return getGoogleAdsLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + getGoogleAdsLinksFieldBuilder() { + if (googleAdsLinksBuilder_ == null) { + googleAdsLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( + googleAdsLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + googleAdsLinks_ = null; + } + return googleAdsLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) + private static final com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse(); + } + + public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListGoogleAdsLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java new file mode 100644 index 000000000000..2939048bda73 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListGoogleAdsLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + java.util.List getGoogleAdsLinksList(); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLinks(int index); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + int getGoogleAdsLinksCount(); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + java.util.List + getGoogleAdsLinksOrBuilderList(); + /** + * + * + *
+   * List of GoogleAdsLinks.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; + */ + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java new file mode 100644 index 000000000000..9a526e8a9592 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java @@ -0,0 +1,974 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} + */ +public final class ListMeasurementProtocolSecretsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) + ListMeasurementProtocolSecretsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsRequest.newBuilder() to construct. + private ListMeasurementProtocolSecretsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 10 resources will be returned.
+   * The maximum value is 10. Higher values will be coerced to the maximum.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += 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.admin.v1beta.ListMeasurementProtocolSecretsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest other = + (com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest build() { + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest buildPartial() { + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest result = + new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest other) { + if (other + == com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 10 resources will be returned.
+     * The maximum value is 10. Higher values will be coerced to the maximum.
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` must match
+     * the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) + private static final com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest(); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java new file mode 100644 index 000000000000..d44c9f5df06c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListMeasurementProtocolSecretsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 10 resources will be returned.
+   * The maximum value is 10. Higher values will be coerced to the maximum.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` must match
+   * the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java new file mode 100644 index 000000000000..d20ff3246d2d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java @@ -0,0 +1,1221 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} + */ +public final class ListMeasurementProtocolSecretsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) + ListMeasurementProtocolSecretsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsResponse.newBuilder() to construct. + private ListMeasurementProtocolSecretsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsResponse() { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.Builder.class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List + measurementProtocolSecrets_; + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List + getMeasurementProtocolSecretsList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public int getMeasurementProtocolSecretsCount() { + return measurementProtocolSecrets_.size(); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index) { + return measurementProtocolSecrets_.get(index); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + return measurementProtocolSecrets_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { + output.writeMessage(1, measurementProtocolSecrets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, measurementProtocolSecrets_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListMeasurementProtocolSecretsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse other = + (com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) obj; + + if (!getMeasurementProtocolSecretsList().equals(other.getMeasurementProtocolSecretsList())) + return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getMeasurementProtocolSecretsCount() > 0) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecretsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + } else { + measurementProtocolSecrets_ = null; + measurementProtocolSecretsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse build() { + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse buildPartial() { + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result = + new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result) { + if (measurementProtocolSecretsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.measurementProtocolSecrets_ = measurementProtocolSecrets_; + } else { + result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse other) { + if (other + == com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + .getDefaultInstance()) return this; + if (measurementProtocolSecretsBuilder_ == null) { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecrets_.isEmpty()) { + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.addAll(other.measurementProtocolSecrets_); + } + onChanged(); + } + } else { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecretsBuilder_.isEmpty()) { + measurementProtocolSecretsBuilder_.dispose(); + measurementProtocolSecretsBuilder_ = null; + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + measurementProtocolSecretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMeasurementProtocolSecretsFieldBuilder() + : null; + } else { + measurementProtocolSecretsBuilder_.addAllMessages(other.measurementProtocolSecrets_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.MeasurementProtocolSecret m = + input.readMessage( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(m); + } else { + measurementProtocolSecretsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + + private void ensureMeasurementProtocolSecretsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + new java.util.ArrayList( + measurementProtocolSecrets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretsBuilder_; + + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsList() { + if (measurementProtocolSecretsBuilder_ == null) { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } else { + return measurementProtocolSecretsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public int getMeasurementProtocolSecretsCount() { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.size(); + } else { + return measurementProtocolSecretsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + getMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addAllMeasurementProtocolSecrets( + java.lang.Iterable + values) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, measurementProtocolSecrets_); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder clearMeasurementProtocolSecrets() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder removeMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.remove(index); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + if (measurementProtocolSecretsBuilder_ != null) { + return measurementProtocolSecretsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder() { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsBuilderList() { + return getMeasurementProtocolSecretsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsFieldBuilder() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecretsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( + measurementProtocolSecrets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + measurementProtocolSecrets_ = null; + } + return measurementProtocolSecretsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) + private static final com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse(); + } + + public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java new file mode 100644 index 000000000000..72e79c607717 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListMeasurementProtocolSecretsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + int getMeasurementProtocolSecretsCount(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsOrBuilderList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java new file mode 100644 index 000000000000..1640f3776c54 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java @@ -0,0 +1,1139 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ListProperties RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesRequest} + */ +public final class ListPropertiesRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListPropertiesRequest) + ListPropertiesRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPropertiesRequest.newBuilder() to construct. + private ListPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPropertiesRequest() { + filter_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPropertiesRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListPropertiesRequest.class, + com.google.analytics.admin.v1beta.ListPropertiesRequest.Builder.class); + } + + public static final int FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHOW_DELETED_FIELD_NUMBER = 4; + private boolean showDeleted_ = false; + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Properties in the
+   * results. Properties can be inspected to determine whether they are deleted
+   * or not.
+   * 
+ * + * bool show_deleted = 4; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + + 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(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + if (showDeleted_ != false) { + output.writeBool(4, showDeleted_); + } + 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(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, showDeleted_); + } + 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.admin.v1beta.ListPropertiesRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListPropertiesRequest other = + (com.google.analytics.admin.v1beta.ListPropertiesRequest) obj; + + if (!getFilter().equals(other.getFilter())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (getShowDeleted() != other.getShowDeleted()) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListPropertiesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ListProperties RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListPropertiesRequest) + com.google.analytics.admin.v1beta.ListPropertiesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListPropertiesRequest.class, + com.google.analytics.admin.v1beta.ListPropertiesRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListPropertiesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filter_ = ""; + pageSize_ = 0; + pageToken_ = ""; + showDeleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListPropertiesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesRequest build() { + com.google.analytics.admin.v1beta.ListPropertiesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesRequest buildPartial() { + com.google.analytics.admin.v1beta.ListPropertiesRequest result = + new com.google.analytics.admin.v1beta.ListPropertiesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListPropertiesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.showDeleted_ = showDeleted_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListPropertiesRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ListPropertiesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListPropertiesRequest other) { + if (other == com.google.analytics.admin.v1beta.ListPropertiesRequest.getDefaultInstance()) + return this; + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + showDeleted_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. An expression for filtering the results of the request.
+     * Fields eligible for filtering are:
+     * `parent:`(The resource name of the parent account/property) or
+     * `ancestor:`(The resource name of the parent account) or
+     * `firebase_project:`(The id or number of the linked firebase project).
+     * Some examples of filters:
+     *
+     * ```
+     * | Filter                      | Description                               |
+     * |-----------------------------|-------------------------------------------|
+     * | parent:accounts/123         | The account with account id: 123.       |
+     * | parent:properties/123       | The property with property id: 123.       |
+     * | ancestor:accounts/123       | The account with account id: 123.         |
+     * | firebase_project:project-id | The firebase project with id: project-id. |
+     * | firebase_project:123        | The firebase project with number: 123.    |
+     * ```
+     * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return. The service may return
+     * fewer than this value, even if there are additional pages.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListProperties` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListProperties` must
+     * match the call that provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private boolean showDeleted_; + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Properties in the
+     * results. Properties can be inspected to determine whether they are deleted
+     * or not.
+     * 
+ * + * bool show_deleted = 4; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Properties in the
+     * results. Properties can be inspected to determine whether they are deleted
+     * or not.
+     * 
+ * + * bool show_deleted = 4; + * + * @param value The showDeleted to set. + * @return This builder for chaining. + */ + public Builder setShowDeleted(boolean value) { + + showDeleted_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to include soft-deleted (ie: "trashed") Properties in the
+     * results. Properties can be inspected to determine whether they are deleted
+     * or not.
+     * 
+ * + * bool show_deleted = 4; + * + * @return This builder for chaining. + */ + public Builder clearShowDeleted() { + bitField0_ = (bitField0_ & ~0x00000008); + showDeleted_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListPropertiesRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListPropertiesRequest) + private static final com.google.analytics.admin.v1beta.ListPropertiesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListPropertiesRequest(); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPropertiesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java new file mode 100644 index 000000000000..3c62a031d74f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java @@ -0,0 +1,142 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListPropertiesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListPropertiesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. An expression for filtering the results of the request.
+   * Fields eligible for filtering are:
+   * `parent:`(The resource name of the parent account/property) or
+   * `ancestor:`(The resource name of the parent account) or
+   * `firebase_project:`(The id or number of the linked firebase project).
+   * Some examples of filters:
+   *
+   * ```
+   * | Filter                      | Description                               |
+   * |-----------------------------|-------------------------------------------|
+   * | parent:accounts/123         | The account with account id: 123.       |
+   * | parent:properties/123       | The property with property id: 123.       |
+   * | ancestor:accounts/123       | The account with account id: 123.         |
+   * | firebase_project:project-id | The firebase project with id: project-id. |
+   * | firebase_project:123        | The firebase project with number: 123.    |
+   * ```
+   * 
+ * + * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * The maximum number of resources to return. The service may return
+   * fewer than this value, even if there are additional pages.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListProperties` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListProperties` must
+   * match the call that provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Whether to include soft-deleted (ie: "trashed") Properties in the
+   * results. Properties can be inspected to determine whether they are deleted
+   * or not.
+   * 
+ * + * bool show_deleted = 4; + * + * @return The showDeleted. + */ + boolean getShowDeleted(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java new file mode 100644 index 000000000000..54509cd56737 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java @@ -0,0 +1,1127 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ListProperties RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesResponse} + */ +public final class ListPropertiesResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListPropertiesResponse) + ListPropertiesResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListPropertiesResponse.newBuilder() to construct. + private ListPropertiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListPropertiesResponse() { + properties_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListPropertiesResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListPropertiesResponse.class, + com.google.analytics.admin.v1beta.ListPropertiesResponse.Builder.class); + } + + public static final int PROPERTIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List properties_; + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + @java.lang.Override + public java.util.List getPropertiesList() { + return properties_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + @java.lang.Override + public java.util.List + getPropertiesOrBuilderList() { + return properties_; + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + @java.lang.Override + public int getPropertiesCount() { + return properties_.size(); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Property getProperties(int index) { + return properties_.get(index); + } + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertiesOrBuilder(int index) { + return properties_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < properties_.size(); i++) { + output.writeMessage(1, properties_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < properties_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.ListPropertiesResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ListPropertiesResponse other = + (com.google.analytics.admin.v1beta.ListPropertiesResponse) obj; + + if (!getPropertiesList().equals(other.getPropertiesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getPropertiesCount() > 0) { + hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; + hash = (53 * hash) + getPropertiesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ListPropertiesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ListProperties RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListPropertiesResponse) + com.google.analytics.admin.v1beta.ListPropertiesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ListPropertiesResponse.class, + com.google.analytics.admin.v1beta.ListPropertiesResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ListPropertiesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + } else { + properties_ = null; + propertiesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ListPropertiesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesResponse build() { + com.google.analytics.admin.v1beta.ListPropertiesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesResponse buildPartial() { + com.google.analytics.admin.v1beta.ListPropertiesResponse result = + new com.google.analytics.admin.v1beta.ListPropertiesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.ListPropertiesResponse result) { + if (propertiesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + properties_ = java.util.Collections.unmodifiableList(properties_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.properties_ = properties_; + } else { + result.properties_ = propertiesBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.ListPropertiesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ListPropertiesResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ListPropertiesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.ListPropertiesResponse other) { + if (other == com.google.analytics.admin.v1beta.ListPropertiesResponse.getDefaultInstance()) + return this; + if (propertiesBuilder_ == null) { + if (!other.properties_.isEmpty()) { + if (properties_.isEmpty()) { + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePropertiesIsMutable(); + properties_.addAll(other.properties_); + } + onChanged(); + } + } else { + if (!other.properties_.isEmpty()) { + if (propertiesBuilder_.isEmpty()) { + propertiesBuilder_.dispose(); + propertiesBuilder_ = null; + properties_ = other.properties_; + bitField0_ = (bitField0_ & ~0x00000001); + propertiesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPropertiesFieldBuilder() + : null; + } else { + propertiesBuilder_.addAllMessages(other.properties_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.Property m = + input.readMessage( + com.google.analytics.admin.v1beta.Property.parser(), extensionRegistry); + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(m); + } else { + propertiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List properties_ = + java.util.Collections.emptyList(); + + private void ensurePropertiesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + properties_ = + new java.util.ArrayList(properties_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + propertiesBuilder_; + + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public java.util.List getPropertiesList() { + if (propertiesBuilder_ == null) { + return java.util.Collections.unmodifiableList(properties_); + } else { + return propertiesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public int getPropertiesCount() { + if (propertiesBuilder_ == null) { + return properties_.size(); + } else { + return propertiesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public com.google.analytics.admin.v1beta.Property getProperties(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder setProperties(int index, com.google.analytics.admin.v1beta.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.set(index, value); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder setProperties( + int index, com.google.analytics.admin.v1beta.Property.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.set(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder addProperties(com.google.analytics.admin.v1beta.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(value); + onChanged(); + } else { + propertiesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder addProperties(int index, com.google.analytics.admin.v1beta.Property value) { + if (propertiesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePropertiesIsMutable(); + properties_.add(index, value); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder addProperties( + com.google.analytics.admin.v1beta.Property.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder addProperties( + int index, com.google.analytics.admin.v1beta.Property.Builder builderForValue) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.add(index, builderForValue.build()); + onChanged(); + } else { + propertiesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder addAllProperties( + java.lang.Iterable values) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, properties_); + onChanged(); + } else { + propertiesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder clearProperties() { + if (propertiesBuilder_ == null) { + properties_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + propertiesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public Builder removeProperties(int index) { + if (propertiesBuilder_ == null) { + ensurePropertiesIsMutable(); + properties_.remove(index); + onChanged(); + } else { + propertiesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public com.google.analytics.admin.v1beta.Property.Builder getPropertiesBuilder(int index) { + return getPropertiesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertiesOrBuilder(int index) { + if (propertiesBuilder_ == null) { + return properties_.get(index); + } else { + return propertiesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public java.util.List + getPropertiesOrBuilderList() { + if (propertiesBuilder_ != null) { + return propertiesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(properties_); + } + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public com.google.analytics.admin.v1beta.Property.Builder addPropertiesBuilder() { + return getPropertiesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.Property.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public com.google.analytics.admin.v1beta.Property.Builder addPropertiesBuilder(int index) { + return getPropertiesFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.Property.getDefaultInstance()); + } + /** + * + * + *
+     * Results that matched the filter criteria and were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + public java.util.List + getPropertiesBuilderList() { + return getPropertiesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + getPropertiesFieldBuilder() { + if (propertiesBuilder_ == null) { + propertiesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder>( + properties_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + properties_ = null; + } + return propertiesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListPropertiesResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListPropertiesResponse) + private static final com.google.analytics.admin.v1beta.ListPropertiesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListPropertiesResponse(); + } + + public static com.google.analytics.admin.v1beta.ListPropertiesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListPropertiesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ListPropertiesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java new file mode 100644 index 000000000000..231d6c76269e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ListPropertiesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListPropertiesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + java.util.List getPropertiesList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + com.google.analytics.admin.v1beta.Property getProperties(int index); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + int getPropertiesCount(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + java.util.List + getPropertiesOrBuilderList(); + /** + * + * + *
+   * Results that matched the filter criteria and were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.Property properties = 1; + */ + com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertiesOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java new file mode 100644 index 000000000000..ae3288a60e0a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java @@ -0,0 +1,1017 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A secret value used for sending hits to Measurement Protocol.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.MeasurementProtocolSecret} + */ +public final class MeasurementProtocolSecret extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.MeasurementProtocolSecret) + MeasurementProtocolSecretOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeasurementProtocolSecret.newBuilder() to construct. + private MeasurementProtocolSecret(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeasurementProtocolSecret() { + name_ = ""; + displayName_ = ""; + secretValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeasurementProtocolSecret(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VALUE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object secretValue_ = ""; + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + @java.lang.Override + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + 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(); + secretValue_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretValue_); + } + 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(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretValue_); + } + 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.admin.v1beta.MeasurementProtocolSecret)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.MeasurementProtocolSecret other = + (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getSecretValue().equals(other.getSecretValue())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + SECRET_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSecretValue().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A secret value used for sending hits to Measurement Protocol.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.MeasurementProtocolSecret} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.MeasurementProtocolSecret) + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.MeasurementProtocolSecret.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + secretValue_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret build() { + com.google.analytics.admin.v1beta.MeasurementProtocolSecret result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret buildPartial() { + com.google.analytics.admin.v1beta.MeasurementProtocolSecret result = + new com.google.analytics.admin.v1beta.MeasurementProtocolSecret(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.MeasurementProtocolSecret result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.secretValue_ = secretValue_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.MeasurementProtocolSecret) { + return mergeFrom((com.google.analytics.admin.v1beta.MeasurementProtocolSecret) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.MeasurementProtocolSecret other) { + if (other == com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSecretValue().isEmpty()) { + secretValue_ = other.secretValue_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + secretValue_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.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. Resource name of this secret. This secret may be a child of
+     * any type of stream. Format:
+     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object secretValue_ = ""; + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + secretValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSecretValue() { + secretValue_ = getDefaultInstance().getSecretValue(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the
+     * api_secret field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + secretValue_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.MeasurementProtocolSecret) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.MeasurementProtocolSecret) + private static final com.google.analytics.admin.v1beta.MeasurementProtocolSecret DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.MeasurementProtocolSecret(); + } + + public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeasurementProtocolSecret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java new file mode 100644 index 000000000000..8f648031781f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface MeasurementProtocolSecretOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.MeasurementProtocolSecret) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of
+   * any type of stream. Format:
+   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + java.lang.String getSecretValue(); + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the
+   * api_secret field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + com.google.protobuf.ByteString getSecretValueBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValue.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValue.java new file mode 100644 index 000000000000..1aaac91e0bd7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValue.java @@ -0,0 +1,792 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * To represent a number.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.NumericValue} + */ +public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.NumericValue) + NumericValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use NumericValue.newBuilder() to construct. + private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private NumericValue() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new NumericValue(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.NumericValue.class, + com.google.analytics.admin.v1beta.NumericValue.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 { + INT64_VALUE(1), + DOUBLE_VALUE(2), + ONEVALUE_NOT_SET(0); + private final int value; + + private OneValueCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static OneValueCase valueOf(int value) { + return forNumber(value); + } + + public static OneValueCase forNumber(int value) { + switch (value) { + case 1: + return INT64_VALUE; + case 2: + return DOUBLE_VALUE; + case 0: + return ONEVALUE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public static final int INT64_VALUE_FIELD_NUMBER = 1; + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + @java.lang.Override + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + @java.lang.Override + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + + public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + @java.lang.Override + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + @java.lang.Override + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneValueCase_ == 1) { + output.writeInt64(1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); + } + 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.CodedOutputStream.computeInt64Size( + 1, (long) ((java.lang.Long) oneValue_)); + } + if (oneValueCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeDoubleSize( + 2, (double) ((java.lang.Double) 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.admin.v1beta.NumericValue)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.NumericValue other = + (com.google.analytics.admin.v1beta.NumericValue) obj; + + if (!getOneValueCase().equals(other.getOneValueCase())) return false; + switch (oneValueCase_) { + case 1: + if (getInt64Value() != other.getInt64Value()) return false; + break; + case 2: + if (java.lang.Double.doubleToLongBits(getDoubleValue()) + != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; + break; + case 0: + default: + } + if (!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) + INT64_VALUE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInt64Value()); + break; + case 2: + hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getDoubleValue())); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.NumericValue parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.NumericValue prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * To represent a number.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.NumericValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.NumericValue) + com.google.analytics.admin.v1beta.NumericValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.NumericValue.class, + com.google.analytics.admin.v1beta.NumericValue.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.NumericValue.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + oneValueCase_ = 0; + oneValue_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AccessReportProto + .internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValue getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValue build() { + com.google.analytics.admin.v1beta.NumericValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValue buildPartial() { + com.google.analytics.admin.v1beta.NumericValue result = + new com.google.analytics.admin.v1beta.NumericValue(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.NumericValue result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.analytics.admin.v1beta.NumericValue result) { + result.oneValueCase_ = oneValueCase_; + result.oneValue_ = this.oneValue_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.NumericValue) { + return mergeFrom((com.google.analytics.admin.v1beta.NumericValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.NumericValue other) { + if (other == com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) return this; + switch (other.getOneValueCase()) { + case INT64_VALUE: + { + setInt64Value(other.getInt64Value()); + break; + } + case DOUBLE_VALUE: + { + setDoubleValue(other.getDoubleValue()); + break; + } + case ONEVALUE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } // case 8 + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int oneValueCase_ = 0; + private java.lang.Object oneValue_; + + public OneValueCase getOneValueCase() { + return OneValueCase.forNumber(oneValueCase_); + } + + public Builder clearOneValue() { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + public boolean hasInt64Value() { + return oneValueCase_ == 1; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + public long getInt64Value() { + if (oneValueCase_ == 1) { + return (java.lang.Long) oneValue_; + } + return 0L; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @param value The int64Value to set. + * @return This builder for chaining. + */ + public Builder setInt64Value(long value) { + + oneValueCase_ = 1; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Integer value
+     * 
+ * + * int64 int64_value = 1; + * + * @return This builder for chaining. + */ + public Builder clearInt64Value() { + if (oneValueCase_ == 1) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + public boolean hasDoubleValue() { + return oneValueCase_ == 2; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + public double getDoubleValue() { + if (oneValueCase_ == 2) { + return (java.lang.Double) oneValue_; + } + return 0D; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @param value The doubleValue to set. + * @return This builder for chaining. + */ + public Builder setDoubleValue(double value) { + + oneValueCase_ = 2; + oneValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Double value
+     * 
+ * + * double double_value = 2; + * + * @return This builder for chaining. + */ + public Builder clearDoubleValue() { + if (oneValueCase_ == 2) { + oneValueCase_ = 0; + oneValue_ = null; + onChanged(); + } + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.NumericValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.NumericValue) + private static final com.google.analytics.admin.v1beta.NumericValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.NumericValue(); + } + + public static com.google.analytics.admin.v1beta.NumericValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.NumericValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValueOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValueOrBuilder.java new file mode 100644 index 000000000000..0ee703dd9fe6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValueOrBuilder.java @@ -0,0 +1,77 @@ +/* + * 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/admin/v1beta/access_report.proto + +package com.google.analytics.admin.v1beta; + +public interface NumericValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.NumericValue) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return Whether the int64Value field is set. + */ + boolean hasInt64Value(); + /** + * + * + *
+   * Integer value
+   * 
+ * + * int64 int64_value = 1; + * + * @return The int64Value. + */ + long getInt64Value(); + + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return Whether the doubleValue field is set. + */ + boolean hasDoubleValue(); + /** + * + * + *
+   * Double value
+   * 
+ * + * double double_value = 2; + * + * @return The doubleValue. + */ + double getDoubleValue(); + + com.google.analytics.admin.v1beta.NumericValue.OneValueCase getOneValueCase(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java new file mode 100644 index 000000000000..169914195cdc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java @@ -0,0 +1,3380 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A resource message representing a Google Analytics GA4 property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.Property} + */ +public final class Property extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.Property) + PropertyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Property.newBuilder() to construct. + private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Property() { + name_ = ""; + propertyType_ = 0; + parent_ = ""; + displayName_ = ""; + industryCategory_ = 0; + timeZone_ = ""; + currencyCode_ = ""; + serviceLevel_ = 0; + account_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Property(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.Property.class, + com.google.analytics.admin.v1beta.Property.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_TYPE_FIELD_NUMBER = 14; + private int propertyType_ = 0; + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+   * types cannot yet be created with the Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+   * types cannot yet be created with the Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { + com.google.analytics.admin.v1beta.PropertyType result = + com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp updateTime_; + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return updateTime_ != null; + } + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int PARENT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INDUSTRY_CATEGORY_FIELD_NUMBER = 6; + private int industryCategory_ = 0; + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @return The enum numeric value on the wire for industryCategory. + */ + @java.lang.Override + public int getIndustryCategoryValue() { + return industryCategory_; + } + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @return The industryCategory. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.IndustryCategory getIndustryCategory() { + com.google.analytics.admin.v1beta.IndustryCategory result = + com.google.analytics.admin.v1beta.IndustryCategory.forNumber(industryCategory_); + return result == null + ? com.google.analytics.admin.v1beta.IndustryCategory.UNRECOGNIZED + : result; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CURRENCY_CODE_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object currencyCode_ = ""; + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The currencyCode. + */ + @java.lang.Override + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + 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(); + currencyCode_ = s; + return s; + } + } + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The bytes for currencyCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SERVICE_LEVEL_FIELD_NUMBER = 10; + private int serviceLevel_ = 0; + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ServiceLevel getServiceLevel() { + com.google.analytics.admin.v1beta.ServiceLevel result = + com.google.analytics.admin.v1beta.ServiceLevel.forNumber(serviceLevel_); + return result == null ? com.google.analytics.admin.v1beta.ServiceLevel.UNRECOGNIZED : result; + } + + public static final int DELETE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int ACCOUNT_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object account_ = ""; + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (updateTime_ != null) { + output.writeMessage(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); + } + if (industryCategory_ + != com.google.analytics.admin.v1beta.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, industryCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); + } + if (serviceLevel_ + != com.google.analytics.admin.v1beta.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(10, serviceLevel_); + } + if (deleteTime_ != null) { + output.writeMessage(11, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(12, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, account_); + } + if (propertyType_ + != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(14, propertyType_); + } + 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(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (updateTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); + } + if (industryCategory_ + != com.google.analytics.admin.v1beta.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, industryCategory_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); + } + if (serviceLevel_ + != com.google.analytics.admin.v1beta.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, serviceLevel_); + } + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getExpireTime()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, account_); + } + if (propertyType_ + != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(14, propertyType_); + } + 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.admin.v1beta.Property)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.Property other = + (com.google.analytics.admin.v1beta.Property) obj; + + if (!getName().equals(other.getName())) return false; + if (propertyType_ != other.propertyType_) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (industryCategory_ != other.industryCategory_) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (serviceLevel_ != other.serviceLevel_) return false; + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getAccount().equals(other.getAccount())) 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) + PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + propertyType_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + INDUSTRY_CATEGORY_FIELD_NUMBER; + hash = (53 * hash) + industryCategory_; + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; + hash = (53 * hash) + getCurrencyCode().hashCode(); + hash = (37 * hash) + SERVICE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + serviceLevel_; + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.Property parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.Property parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.Property parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.Property prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A resource message representing a Google Analytics GA4 property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.Property} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.Property) + com.google.analytics.admin.v1beta.PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.Property.class, + com.google.analytics.admin.v1beta.Property.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.Property.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + propertyType_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + parent_ = ""; + displayName_ = ""; + industryCategory_ = 0; + timeZone_ = ""; + currencyCode_ = ""; + serviceLevel_ = 0; + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + account_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_Property_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Property getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Property build() { + com.google.analytics.admin.v1beta.Property result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Property buildPartial() { + com.google.analytics.admin.v1beta.Property result = + new com.google.analytics.admin.v1beta.Property(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.Property result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.propertyType_ = propertyType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.industryCategory_ = industryCategory_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.currencyCode_ = currencyCode_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.serviceLevel_ = serviceLevel_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.deleteTime_ = deleteTimeBuilder_ == null ? deleteTime_ : deleteTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.account_ = account_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.Property) { + return mergeFrom((com.google.analytics.admin.v1beta.Property) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.Property other) { + if (other == com.google.analytics.admin.v1beta.Property.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.propertyType_ != 0) { + setPropertyTypeValue(other.getPropertyTypeValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.industryCategory_ != 0) { + setIndustryCategoryValue(other.getIndustryCategoryValue()); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getCurrencyCode().isEmpty()) { + currencyCode_ = other.currencyCode_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.serviceLevel_ != 0) { + setServiceLevelValue(other.getServiceLevelValue()); + } + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + bitField0_ |= 0x00001000; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 48: + { + industryCategory_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 48 + case 58: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 80: + { + serviceLevel_ = input.readEnum(); + bitField0_ |= 0x00000200; + break; + } // case 80 + case 90: + { + input.readMessage(getDeleteTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: + { + account_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 112: + { + propertyType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 112 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.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. Resource name of this property.
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int propertyType_ = 0; + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+     * types cannot yet be created with the Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+     * types cannot yet be created with the Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyTypeValue(int value) { + propertyType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+     * types cannot yet be created with the Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { + com.google.analytics.admin.v1beta.PropertyType result = + com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+     * types cannot yet be created with the Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyType(com.google.analytics.admin.v1beta.PropertyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + propertyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The property type for this Property resource. When creating a
+     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+     * types cannot yet be created with the Google Analytics Admin API.
+     * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearPropertyType() { + bitField0_ = (bitField0_ & ~0x00000002); + propertyType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when the entity was originally created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getUpdateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + /** + * + * + *
+     * Output only. Time when entity payload fields were last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/101"
+     * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this property.
+     *
+     * The max allowed display name length is 100 UTF-16 code units.
+     * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int industryCategory_ = 0; + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @return The enum numeric value on the wire for industryCategory. + */ + @java.lang.Override + public int getIndustryCategoryValue() { + return industryCategory_; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @param value The enum numeric value on the wire for industryCategory to set. + * @return This builder for chaining. + */ + public Builder setIndustryCategoryValue(int value) { + industryCategory_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @return The industryCategory. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.IndustryCategory getIndustryCategory() { + com.google.analytics.admin.v1beta.IndustryCategory result = + com.google.analytics.admin.v1beta.IndustryCategory.forNumber(industryCategory_); + return result == null + ? com.google.analytics.admin.v1beta.IndustryCategory.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @param value The industryCategory to set. + * @return This builder for chaining. + */ + public Builder setIndustryCategory(com.google.analytics.admin.v1beta.IndustryCategory value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + industryCategory_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Industry associated with this property
+     * Example: AUTOMOTIVE, FOOD_AND_DRINK
+     * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @return This builder for chaining. + */ + public Builder clearIndustryCategory() { + bitField0_ = (bitField0_ & ~0x00000040); + industryCategory_ = 0; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Reporting Time Zone, used as the day boundary for reports,
+     * regardless of where the data originates. If the time zone honors DST,
+     * Analytics will automatically adjust for the changes.
+     *
+     * NOTE: Changing the time zone only affects data going forward, and is not
+     * applied retroactively.
+     *
+     * Format: https://www.iana.org/time-zones
+     * Example: "America/Los_Angeles"
+     * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object currencyCode_ = ""; + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @return The currencyCode. + */ + public java.lang.String getCurrencyCode() { + java.lang.Object ref = currencyCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + currencyCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @return The bytes for currencyCode. + */ + public com.google.protobuf.ByteString getCurrencyCodeBytes() { + java.lang.Object ref = currencyCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + currencyCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @param value The currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + currencyCode_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @return This builder for chaining. + */ + public Builder clearCurrencyCode() { + currencyCode_ = getDefaultInstance().getCurrencyCode(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * The currency type used in reports involving monetary values.
+     *
+     *
+     * Format: https://en.wikipedia.org/wiki/ISO_4217
+     * Examples: "USD", "EUR", "JPY"
+     * 
+ * + * string currency_code = 8; + * + * @param value The bytes for currencyCode to set. + * @return This builder for chaining. + */ + public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + currencyCode_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private int serviceLevel_ = 0; + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevelValue(int value) { + serviceLevel_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ServiceLevel getServiceLevel() { + com.google.analytics.admin.v1beta.ServiceLevel result = + com.google.analytics.admin.v1beta.ServiceLevel.forNumber(serviceLevel_); + return result == null ? com.google.analytics.admin.v1beta.ServiceLevel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevel(com.google.analytics.admin.v1beta.ServiceLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000200; + serviceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this
+     * property.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceLevel() { + bitField0_ = (bitField0_ & ~0x00000200); + serviceLevel_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + public boolean hasDeleteTime() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + } else { + deleteTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && deleteTime_ != null + && deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getDeleteTimeBuilder().mergeFrom(value); + } else { + deleteTime_ = value; + } + } else { + deleteTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDeleteTime() { + bitField0_ = (bitField0_ & ~0x00000400); + deleteTime_ = null; + if (deleteTimeBuilder_ != null) { + deleteTimeBuilder_.dispose(); + deleteTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + /** + * + * + *
+     * Output only. If set, the time at which this property was trashed. If not
+     * set, then this property is not currently in the trash can.
+     * 
+ * + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000800); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be
+     * permanently deleted. If not set, then this property is not currently in the
+     * trash can and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private java.lang.Object account_ = ""; + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + account_ = getDefaultInstance().getAccount(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The resource name of the parent account
+     * Format: accounts/{account_id}
+     * Example: "accounts/123"
+     * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + account_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.Property) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.Property) + private static final com.google.analytics.admin.v1beta.Property DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.Property(); + } + + public static com.google.analytics.admin.v1beta.Property getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.Property getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyName.java diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java new file mode 100644 index 000000000000..b6b416219743 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java @@ -0,0 +1,477 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface PropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.Property) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this property.
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+   * types cannot yet be created with the Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for propertyType. + */ + int getPropertyTypeValue(); + /** + * + * + *
+   * Immutable. The property type for this Property resource. When creating a
+   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
+   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
+   * types cannot yet be created with the Google Analytics Admin API.
+   * 
+ * + * + * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The propertyType. + */ + com.google.analytics.admin.v1beta.PropertyType getPropertyType(); + + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when the entity was originally created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + /** + * + * + *
+   * Output only. Time when entity payload fields were last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Immutable. Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/101"
+   * 
+ * + * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this property.
+   *
+   * The max allowed display name length is 100 UTF-16 code units.
+   * 
+ * + * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @return The enum numeric value on the wire for industryCategory. + */ + int getIndustryCategoryValue(); + /** + * + * + *
+   * Industry associated with this property
+   * Example: AUTOMOTIVE, FOOD_AND_DRINK
+   * 
+ * + * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; + * + * @return The industryCategory. + */ + com.google.analytics.admin.v1beta.IndustryCategory getIndustryCategory(); + + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * Required. Reporting Time Zone, used as the day boundary for reports,
+   * regardless of where the data originates. If the time zone honors DST,
+   * Analytics will automatically adjust for the changes.
+   *
+   * NOTE: Changing the time zone only affects data going forward, and is not
+   * applied retroactively.
+   *
+   * Format: https://www.iana.org/time-zones
+   * Example: "America/Los_Angeles"
+   * 
+ * + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The currencyCode. + */ + java.lang.String getCurrencyCode(); + /** + * + * + *
+   * The currency type used in reports involving monetary values.
+   *
+   *
+   * Format: https://en.wikipedia.org/wiki/ISO_4217
+   * Examples: "USD", "EUR", "JPY"
+   * 
+ * + * string currency_code = 8; + * + * @return The bytes for currencyCode. + */ + com.google.protobuf.ByteString getCurrencyCodeBytes(); + + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + int getServiceLevelValue(); + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this
+   * property.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + com.google.analytics.admin.v1beta.ServiceLevel getServiceLevel(); + + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + * + * + *
+   * Output only. If set, the time at which this property was trashed. If not
+   * set, then this property is not currently in the trash can.
+   * 
+ * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be
+   * permanently deleted. If not set, then this property is not currently in the
+   * trash can and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Immutable. The resource name of the parent account
+   * Format: accounts/{account_id}
+   * Example: "accounts/123"
+   * 
+ * + * + * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java new file mode 100644 index 000000000000..c71ce760867c --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java @@ -0,0 +1,1180 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * A virtual resource representing metadata for a GA4 property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.PropertySummary} + */ +public final class PropertySummary extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.PropertySummary) + PropertySummaryOrBuilder { + private static final long serialVersionUID = 0L; + // Use PropertySummary.newBuilder() to construct. + private PropertySummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private PropertySummary() { + property_ = ""; + displayName_ = ""; + propertyType_ = 0; + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new PropertySummary(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.PropertySummary.class, + com.google.analytics.admin.v1beta.PropertySummary.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_TYPE_FIELD_NUMBER = 3; + private int propertyType_ = 0; + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { + com.google.analytics.admin.v1beta.PropertyType result = + com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; + } + + public static final int PARENT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (propertyType_ + != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, propertyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); + } + 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(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (propertyType_ + != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, propertyType_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); + } + 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.admin.v1beta.PropertySummary)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.PropertySummary other = + (com.google.analytics.admin.v1beta.PropertySummary) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (propertyType_ != other.propertyType_) return false; + if (!getParent().equals(other.getParent())) 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) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + PROPERTY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + propertyType_; + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.analytics.admin.v1beta.PropertySummary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A virtual resource representing metadata for a GA4 property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.PropertySummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.PropertySummary) + com.google.analytics.admin.v1beta.PropertySummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.PropertySummary.class, + com.google.analytics.admin.v1beta.PropertySummary.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.PropertySummary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = ""; + displayName_ = ""; + propertyType_ = 0; + parent_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.ResourcesProto + .internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertySummary getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertySummary build() { + com.google.analytics.admin.v1beta.PropertySummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertySummary buildPartial() { + com.google.analytics.admin.v1beta.PropertySummary result = + new com.google.analytics.admin.v1beta.PropertySummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.PropertySummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.propertyType_ = propertyType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.parent_ = parent_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.PropertySummary) { + return mergeFrom((com.google.analytics.admin.v1beta.PropertySummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.PropertySummary other) { + if (other == com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance()) + return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.propertyType_ != 0) { + setPropertyTypeValue(other.getPropertyTypeValue()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + propertyType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of property referred to by this property summary
+     * Format: properties/{property_id}
+     * Example: "properties/1000"
+     * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Display name for the property referred to in this property summary.
+     * 
+ * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int propertyType_ = 0; + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + @java.lang.Override + public int getPropertyTypeValue() { + return propertyType_; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @param value The enum numeric value on the wire for propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyTypeValue(int value) { + propertyType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @return The propertyType. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { + com.google.analytics.admin.v1beta.PropertyType result = + com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); + return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @param value The propertyType to set. + * @return This builder for chaining. + */ + public Builder setPropertyType(com.google.analytics.admin.v1beta.PropertyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + propertyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The property's property type.
+     * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearPropertyType() { + bitField0_ = (bitField0_ & ~0x00000004); + propertyType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of this property's logical parent.
+     *
+     * Note: The Property-Moving UI can be used to change the parent.
+     * Format: accounts/{account}, properties/{property}
+     * Example: "accounts/100", "properties/200"
+     * 
+ * + * string parent = 4; + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.PropertySummary) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.PropertySummary) + private static final com.google.analytics.admin.v1beta.PropertySummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.PropertySummary(); + } + + public static com.google.analytics.admin.v1beta.PropertySummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PropertySummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertySummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java new file mode 100644 index 000000000000..e4ef6d8cf4e6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java @@ -0,0 +1,137 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public interface PropertySummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.PropertySummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Resource name of property referred to by this property summary
+   * Format: properties/{property_id}
+   * Example: "properties/1000"
+   * 
+ * + * string property = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Display name for the property referred to in this property summary.
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @return The enum numeric value on the wire for propertyType. + */ + int getPropertyTypeValue(); + /** + * + * + *
+   * The property's property type.
+   * 
+ * + * .google.analytics.admin.v1beta.PropertyType property_type = 3; + * + * @return The propertyType. + */ + com.google.analytics.admin.v1beta.PropertyType getPropertyType(); + + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Resource name of this property's logical parent.
+   *
+   * Note: The Property-Moving UI can be used to change the parent.
+   * Format: accounts/{account}, properties/{property}
+   * Example: "accounts/100", "properties/200"
+   * 
+ * + * string parent = 4; + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java new file mode 100644 index 000000000000..baf8f72733d0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java @@ -0,0 +1,198 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Types of Property resources.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.PropertyType} + */ +public enum PropertyType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown or unspecified property type
+   * 
+ * + * PROPERTY_TYPE_UNSPECIFIED = 0; + */ + PROPERTY_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Ordinary GA4 property
+   * 
+ * + * PROPERTY_TYPE_ORDINARY = 1; + */ + PROPERTY_TYPE_ORDINARY(1), + /** + * + * + *
+   * GA4 subproperty
+   * 
+ * + * PROPERTY_TYPE_SUBPROPERTY = 2; + */ + PROPERTY_TYPE_SUBPROPERTY(2), + /** + * + * + *
+   * GA4 rollup property
+   * 
+ * + * PROPERTY_TYPE_ROLLUP = 3; + */ + PROPERTY_TYPE_ROLLUP(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown or unspecified property type
+   * 
+ * + * PROPERTY_TYPE_UNSPECIFIED = 0; + */ + public static final int PROPERTY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Ordinary GA4 property
+   * 
+ * + * PROPERTY_TYPE_ORDINARY = 1; + */ + public static final int PROPERTY_TYPE_ORDINARY_VALUE = 1; + /** + * + * + *
+   * GA4 subproperty
+   * 
+ * + * PROPERTY_TYPE_SUBPROPERTY = 2; + */ + public static final int PROPERTY_TYPE_SUBPROPERTY_VALUE = 2; + /** + * + * + *
+   * GA4 rollup property
+   * 
+ * + * PROPERTY_TYPE_ROLLUP = 3; + */ + public static final int PROPERTY_TYPE_ROLLUP_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 PropertyType 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 PropertyType forNumber(int value) { + switch (value) { + case 0: + return PROPERTY_TYPE_UNSPECIFIED; + case 1: + return PROPERTY_TYPE_ORDINARY; + case 2: + return PROPERTY_TYPE_SUBPROPERTY; + case 3: + return PROPERTY_TYPE_ROLLUP; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public PropertyType findValueByNumber(int number) { + return PropertyType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(5); + } + + private static final PropertyType[] VALUES = values(); + + public static PropertyType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private PropertyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.PropertyType) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java new file mode 100644 index 000000000000..acc6abf75e69 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java @@ -0,0 +1,903 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for ProvisionAccountTicket RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketRequest} + */ +public final class ProvisionAccountTicketRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) + ProvisionAccountTicketRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProvisionAccountTicketRequest.newBuilder() to construct. + private ProvisionAccountTicketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProvisionAccountTicketRequest() { + redirectUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProvisionAccountTicketRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.class, + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.Account account_; + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return account_ != null; + } + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Account getAccount() { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } + + public static final int REDIRECT_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object redirectUri_ = ""; + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The redirectUri. + */ + @java.lang.Override + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + 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(); + redirectUri_ = s; + return s; + } + } + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The bytes for redirectUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUri_ = 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 (account_ != null) { + output.writeMessage(1, getAccount()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (account_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccount()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); + } + 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.admin.v1beta.ProvisionAccountTicketRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest other = + (com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) obj; + + if (hasAccount() != other.hasAccount()) return false; + if (hasAccount()) { + if (!getAccount().equals(other.getAccount())) return false; + } + if (!getRedirectUri().equals(other.getRedirectUri())) 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 (hasAccount()) { + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + } + hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for ProvisionAccountTicket RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.class, + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + redirectUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest build() { + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest buildPartial() { + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest result = + new com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.account_ = accountBuilder_ == null ? account_ : accountBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.redirectUri_ = redirectUri_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest other) { + if (other + == com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.getDefaultInstance()) + return this; + if (other.hasAccount()) { + mergeAccount(other.getAccount()); + } + if (!other.getRedirectUri().isEmpty()) { + redirectUri_ = other.redirectUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + redirectUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.Account account_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return Whether the account field is set. + */ + public boolean hasAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return The account. + */ + public com.google.analytics.admin.v1beta.Account getAccount() { + if (accountBuilder_ == null) { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } else { + return accountBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1beta.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + } else { + accountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1beta.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + account_ = builderForValue.build(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder mergeAccount(com.google.analytics.admin.v1beta.Account value) { + if (accountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && account_ != null + && account_ != com.google.analytics.admin.v1beta.Account.getDefaultInstance()) { + getAccountBuilder().mergeFrom(value); + } else { + account_ = value; + } + } else { + accountBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public Builder clearAccount() { + bitField0_ = (bitField0_ & ~0x00000001); + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public com.google.analytics.admin.v1beta.Account.Builder getAccountBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { + if (accountBuilder_ != null) { + return accountBuilder_.getMessageOrBuilder(); + } else { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } + } + /** + * + * + *
+     * The account to create.
+     * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder>( + getAccount(), getParentForChildren(), isClean()); + account_ = null; + } + return accountBuilder_; + } + + private java.lang.Object redirectUri_ = ""; + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @return The redirectUri. + */ + public java.lang.String getRedirectUri() { + java.lang.Object ref = redirectUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @return The bytes for redirectUri. + */ + public com.google.protobuf.ByteString getRedirectUriBytes() { + java.lang.Object ref = redirectUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @param value The redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redirectUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearRedirectUri() { + redirectUri_ = getDefaultInstance().getRedirectUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Redirect URI where the user will be sent after accepting Terms of Service.
+     * Must be configured in Cloud Console as a Redirect URI.
+     * 
+ * + * string redirect_uri = 2; + * + * @param value The bytes for redirectUri to set. + * @return This builder for chaining. + */ + public Builder setRedirectUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redirectUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) + private static final com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest(); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisionAccountTicketRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java new file mode 100644 index 000000000000..b11de20a8614 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java @@ -0,0 +1,87 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ProvisionAccountTicketRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + * + * @return The account. + */ + com.google.analytics.admin.v1beta.Account getAccount(); + /** + * + * + *
+   * The account to create.
+   * 
+ * + * .google.analytics.admin.v1beta.Account account = 1; + */ + com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The redirectUri. + */ + java.lang.String getRedirectUri(); + /** + * + * + *
+   * Redirect URI where the user will be sent after accepting Terms of Service.
+   * Must be configured in Cloud Console as a Redirect URI.
+   * 
+ * + * string redirect_uri = 2; + * + * @return The bytes for redirectUri. + */ + com.google.protobuf.ByteString getRedirectUriBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java new file mode 100644 index 000000000000..f4e763d51e7a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java @@ -0,0 +1,633 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for ProvisionAccountTicket RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketResponse} + */ +public final class ProvisionAccountTicketResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) + ProvisionAccountTicketResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ProvisionAccountTicketResponse.newBuilder() to construct. + private ProvisionAccountTicketResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ProvisionAccountTicketResponse() { + accountTicketId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ProvisionAccountTicketResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.class, + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.Builder.class); + } + + public static final int ACCOUNT_TICKET_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object accountTicketId_ = ""; + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The accountTicketId. + */ + @java.lang.Override + public java.lang.String getAccountTicketId() { + java.lang.Object ref = accountTicketId_; + 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(); + accountTicketId_ = s; + return s; + } + } + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The bytes for accountTicketId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountTicketIdBytes() { + java.lang.Object ref = accountTicketId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountTicketId_ = 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(accountTicketId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountTicketId_); + } + 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(accountTicketId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountTicketId_); + } + 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.admin.v1beta.ProvisionAccountTicketResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse other = + (com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse) obj; + + if (!getAccountTicketId().equals(other.getAccountTicketId())) 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) + ACCOUNT_TICKET_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccountTicketId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for ProvisionAccountTicket RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.class, + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accountTicketId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse build() { + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse buildPartial() { + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse result = + new com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accountTicketId_ = accountTicketId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse other) { + if (other + == com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.getDefaultInstance()) + return this; + if (!other.getAccountTicketId().isEmpty()) { + accountTicketId_ = other.accountTicketId_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + accountTicketId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object accountTicketId_ = ""; + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @return The accountTicketId. + */ + public java.lang.String getAccountTicketId() { + java.lang.Object ref = accountTicketId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accountTicketId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @return The bytes for accountTicketId. + */ + public com.google.protobuf.ByteString getAccountTicketIdBytes() { + java.lang.Object ref = accountTicketId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accountTicketId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @param value The accountTicketId to set. + * @return This builder for chaining. + */ + public Builder setAccountTicketId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accountTicketId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearAccountTicketId() { + accountTicketId_ = getDefaultInstance().getAccountTicketId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The param to be passed in the ToS link.
+     * 
+ * + * string account_ticket_id = 1; + * + * @param value The bytes for accountTicketId to set. + * @return This builder for chaining. + */ + public Builder setAccountTicketIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accountTicketId_ = 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.admin.v1beta.ProvisionAccountTicketResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) + private static final com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse(); + } + + public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ProvisionAccountTicketResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java new file mode 100644 index 000000000000..3ff01f4b1161 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface ProvisionAccountTicketResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The accountTicketId. + */ + java.lang.String getAccountTicketId(); + /** + * + * + *
+   * The param to be passed in the ToS link.
+   * 
+ * + * string account_ticket_id = 1; + * + * @return The bytes for accountTicketId. + */ + com.google.protobuf.ByteString getAccountTicketIdBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java new file mode 100644 index 000000000000..d41add61489a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java @@ -0,0 +1,565 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +public final class ResourcesProto { + private ResourcesProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_Account_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_Property_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DataStream_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/analytics/admin/v1beta/resource" + + "s.proto\022\035google.analytics.admin.v1beta\032\037" + + "google/api/field_behavior.proto\032\031google/" + + "api/resource.proto\032\037google/protobuf/time" + + "stamp.proto\032\036google/protobuf/wrappers.pr" + + "oto\"\223\002\n\007Account\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013c" + + "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google" + + ".protobuf.TimestampB\004\342A\001\003\022\032\n\014display_nam" + + "e\030\004 \001(\tB\004\342A\001\002\022\023\n\013region_code\030\005 \001(\t\022\025\n\007de" + + "leted\030\006 \001(\010B\004\342A\001\003:>\352A;\n%analyticsadmin.g" + + "oogleapis.com/Account\022\022accounts/{account" + + "}\"\301\005\n\010Property\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022H\n\rpr" + + "operty_type\030\016 \001(\0162+.google.analytics.adm" + + "in.v1beta.PropertyTypeB\004\342A\001\005\0225\n\013create_t" + + "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342" + + "A\001\003\0225\n\013update_time\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\022\024\n\006parent\030\002 \001(\tB\004\342A\001\005" + + "\022\032\n\014display_name\030\005 \001(\tB\004\342A\001\002\022J\n\021industry" + + "_category\030\006 \001(\0162/.google.analytics.admin" + + ".v1beta.IndustryCategory\022\027\n\ttime_zone\030\007 " + + "\001(\tB\004\342A\001\002\022\025\n\rcurrency_code\030\010 \001(\t\022H\n\rserv" + + "ice_level\030\n \001(\0162+.google.analytics.admin" + + ".v1beta.ServiceLevelB\004\342A\001\003\0225\n\013delete_tim" + + "e\030\013 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + + "\003\0225\n\013expire_time\030\014 \001(\0132\032.google.protobuf" + + ".TimestampB\004\342A\001\003\022?\n\007account\030\r \001(\tB.\342A\001\005\372" + + "A\'\n%analyticsadmin.googleapis.com/Accoun" + + "t:B\352A?\n&analyticsadmin.googleapis.com/Pr" + + "operty\022\025properties/{property}\"\366\007\n\nDataSt" + + "ream\022R\n\017web_stream_data\030\006 \001(\01327.google.a" + + "nalytics.admin.v1beta.DataStream.WebStre" + + "amDataH\000\022a\n\027android_app_stream_data\030\007 \001(" + + "\0132>.google.analytics.admin.v1beta.DataSt" + + "ream.AndroidAppStreamDataH\000\022Y\n\023ios_app_s" + + "tream_data\030\010 \001(\0132:.google.analytics.admi" + + "n.v1beta.DataStream.IosAppStreamDataH\000\022\022" + + "\n\004name\030\001 \001(\tB\004\342A\001\003\022M\n\004type\030\002 \001(\01628.googl" + + "e.analytics.admin.v1beta.DataStream.Data" + + "StreamTypeB\005\342A\002\005\002\022\024\n\014display_name\030\003 \001(\t\022" + + "5\n\013create_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\032a\n\rWebStre" + + "amData\022\034\n\016measurement_id\030\001 \001(\tB\004\342A\001\003\022\035\n\017" + + "firebase_app_id\030\002 \001(\tB\004\342A\001\003\022\023\n\013default_u" + + "ri\030\003 \001(\t\032Q\n\024AndroidAppStreamData\022\035\n\017fire" + + "base_app_id\030\001 \001(\tB\004\342A\001\003\022\032\n\014package_name\030" + + "\002 \001(\tB\004\342A\001\005\032K\n\020IosAppStreamData\022\035\n\017fireb" + + "ase_app_id\030\001 \001(\tB\004\342A\001\003\022\030\n\tbundle_id\030\002 \001(" + + "\tB\005\342A\002\005\002\"}\n\016DataStreamType\022 \n\034DATA_STREA" + + "M_TYPE_UNSPECIFIED\020\000\022\023\n\017WEB_DATA_STREAM\020" + + "\001\022\033\n\027ANDROID_APP_DATA_STREAM\020\002\022\027\n\023IOS_AP" + + "P_DATA_STREAM\020\003:^\352A[\n(analyticsadmin.goo" + + "gleapis.com/DataStream\022/properties/{prop" + + "erty}/dataStreams/{data_stream}B\r\n\013strea" + + "m_data\"\326\001\n\014FirebaseLink\022\022\n\004name\030\001 \001(\tB\004\342" + + "A\001\003\022\025\n\007project\030\002 \001(\tB\004\342A\001\005\0225\n\013create_tim" + + "e\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + + "\003:d\352Aa\n*analyticsadmin.googleapis.com/Fi" + + "rebaseLink\0223properties/{property}/fireba" + + "seLinks/{firebase_link}\"\236\003\n\rGoogleAdsLin" + + "k\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\031\n\013customer_id\030\003 \001" + + "(\tB\004\342A\001\005\022 \n\022can_manage_clients\030\004 \001(\010B\004\342A" + + "\001\003\022?\n\033ads_personalization_enabled\030\005 \001(\0132" + + "\032.google.protobuf.BoolValue\0225\n\013create_ti" + + "me\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\0225\n\013update_time\030\010 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\022#\n\025creator_email_addre" + + "ss\030\t \001(\tB\004\342A\001\003:h\352Ae\n+analyticsadmin.goog" + + "leapis.com/GoogleAdsLink\0226properties/{pr" + + "operty}/googleAdsLinks/{google_ads_link}" + + "\"\354\002\n\023DataSharingSettings\022\022\n\004name\030\001 \001(\tB\004" + + "\342A\001\003\022+\n#sharing_with_google_support_enab" + + "led\030\002 \001(\010\0222\n*sharing_with_google_assigne" + + "d_sales_enabled\030\003 \001(\010\022-\n%sharing_with_go" + + "ogle_any_sales_enabled\030\004 \001(\010\022,\n$sharing_" + + "with_google_products_enabled\030\005 \001(\010\022#\n\033sh" + + "aring_with_others_enabled\030\006 \001(\010:^\352A[\n1an" + + "alyticsadmin.googleapis.com/DataSharingS" + + "ettings\022&accounts/{account}/dataSharingS" + + "ettings\"\224\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t" + + "\022;\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.g" + + "oogleapis.com/Account\022\024\n\014display_name\030\003 " + + "\001(\t\022J\n\022property_summaries\030\004 \003(\0132..google" + + ".analytics.admin.v1beta.PropertySummary:" + + "U\352AR\n,analyticsadmin.googleapis.com/Acco" + + "untSummary\022\"accountSummaries/{account_su" + + "mmary}\"\272\001\n\017PropertySummary\022=\n\010property\030\001" + + " \001(\tB+\372A(\n&analyticsadmin.googleapis.com" + + "/Property\022\024\n\014display_name\030\002 \001(\t\022B\n\rprope" + + "rty_type\030\003 \001(\0162+.google.analytics.admin." + + "v1beta.PropertyType\022\016\n\006parent\030\004 \001(\t\"\221\002\n\031" + + "MeasurementProtocolSecret\022\022\n\004name\030\001 \001(\tB" + + "\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\032\n\014sec" + + "ret_value\030\003 \001(\tB\004\342A\001\003:\247\001\352A\243\001\n7analyticsa" + + "dmin.googleapis.com/MeasurementProtocolS" + + "ecret\022hproperties/{property}/dataStreams" + + "/{data_stream}/measurementProtocolSecret" + + "s/{measurement_protocol_secret}\"\210\002\n\022Chan" + + "geHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013change_tim" + + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022<\n\na" + + "ctor_type\030\003 \001(\0162(.google.analytics.admin" + + ".v1beta.ActorType\022\030\n\020user_actor_email\030\004 " + + "\001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022C\n\007changes" + + "\030\006 \003(\01322.google.analytics.admin.v1beta.C" + + "hangeHistoryChange\"\252\007\n\023ChangeHistoryChan" + + "ge\022\020\n\010resource\030\001 \001(\t\0229\n\006action\030\002 \001(\0162).g" + + "oogle.analytics.admin.v1beta.ActionType\022" + + "h\n\026resource_before_change\030\003 \001(\0132H.google" + + ".analytics.admin.v1beta.ChangeHistoryCha" + + "nge.ChangeHistoryResource\022g\n\025resource_af" + + "ter_change\030\004 \001(\0132H.google.analytics.admi" + + "n.v1beta.ChangeHistoryChange.ChangeHisto" + + "ryResource\032\362\004\n\025ChangeHistoryResource\0229\n\007" + + "account\030\001 \001(\0132&.google.analytics.admin.v" + + "1beta.AccountH\000\022;\n\010property\030\002 \001(\0132\'.goog" + + "le.analytics.admin.v1beta.PropertyH\000\022D\n\r" + + "firebase_link\030\006 \001(\0132+.google.analytics.a" + + "dmin.v1beta.FirebaseLinkH\000\022G\n\017google_ads" + + "_link\030\007 \001(\0132,.google.analytics.admin.v1b" + + "eta.GoogleAdsLinkH\000\022J\n\020conversion_event\030" + + "\013 \001(\0132..google.analytics.admin.v1beta.Co" + + "nversionEventH\000\022_\n\033measurement_protocol_" + + "secret\030\014 \001(\01328.google.analytics.admin.v1" + + "beta.MeasurementProtocolSecretH\000\022W\n\027data" + + "_retention_settings\030\017 \001(\01324.google.analy" + + "tics.admin.v1beta.DataRetentionSettingsH" + + "\000\022@\n\013data_stream\030\022 \001(\0132).google.analytic" + + "s.admin.v1beta.DataStreamH\000B\n\n\010resource\"" + + "\356\003\n\017ConversionEvent\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022" + + "\030\n\nevent_name\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\022\027\n\tdeletable\030\004 \001(\010B\004\342A\001\003\022\024\n\006custom\030\005 \001(" + + "\010B\004\342A\001\003\022f\n\017counting_method\030\006 \001(\0162G.googl" + + "e.analytics.admin.v1beta.ConversionEvent" + + ".ConversionCountingMethodB\004\342A\001\001\"p\n\030Conve" + + "rsionCountingMethod\022*\n&CONVERSION_COUNTI" + + "NG_METHOD_UNSPECIFIED\020\000\022\022\n\016ONCE_PER_EVEN" + + "T\020\001\022\024\n\020ONCE_PER_SESSION\020\002:m\352Aj\n-analytic" + + "sadmin.googleapis.com/ConversionEvent\0229p" + + "roperties/{property}/conversionEvents/{c" + + "onversion_event}\"\275\003\n\017CustomDimension\022\022\n\004" + + "name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_name\030\002 \001(\t" + + "B\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004\342A\001\002\022\031\n\013d" + + "escription\030\004 \001(\tB\004\342A\001\001\022S\n\005scope\030\005 \001(\0162=." + + "google.analytics.admin.v1beta.CustomDime" + + "nsion.DimensionScopeB\005\342A\002\002\005\022*\n\034disallow_" + + "ads_personalization\030\006 \001(\010B\004\342A\001\001\"P\n\016Dimen" + + "sionScope\022\037\n\033DIMENSION_SCOPE_UNSPECIFIED" + + "\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITEM\020\003:m\352Aj\n-" + + "analyticsadmin.googleapis.com/CustomDime" + + "nsion\0229properties/{property}/customDimen" + + "sions/{custom_dimension}\"\305\006\n\014CustomMetri" + + "c\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_name\030" + + "\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004\342A\001\002" + + "\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022[\n\020measureme" + + "nt_unit\030\005 \001(\0162;.google.analytics.admin.v" + + "1beta.CustomMetric.MeasurementUnitB\004\342A\001\002" + + "\022M\n\005scope\030\006 \001(\01627.google.analytics.admin" + + ".v1beta.CustomMetric.MetricScopeB\005\342A\002\002\005\022" + + "f\n\026restricted_metric_type\030\010 \003(\0162@.google" + + ".analytics.admin.v1beta.CustomMetric.Res" + + "trictedMetricTypeB\004\342A\001\001\"\267\001\n\017MeasurementU" + + "nit\022 \n\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + + "\010STANDARD\020\001\022\014\n\010CURRENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006M" + + "ETERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MI" + + "LLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t" + + "\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n\030METRIC_SCOPE" + + "_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_\n\024RestrictedM" + + "etricType\022&\n\"RESTRICTED_METRIC_TYPE_UNSP" + + "ECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DATA" + + "\020\002:d\352Aa\n*analyticsadmin.googleapis.com/C" + + "ustomMetric\0223properties/{property}/custo" + + "mMetrics/{custom_metric}\"\302\003\n\025DataRetenti" + + "onSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022d\n\024event_" + + "data_retention\030\002 \001(\0162F.google.analytics." + + "admin.v1beta.DataRetentionSettings.Reten" + + "tionDuration\022\'\n\037reset_user_data_on_new_a" + + "ctivity\030\003 \001(\010\"\236\001\n\021RetentionDuration\022\"\n\036R" + + "ETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\nTWO_M" + + "ONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWENTY_S" + + "IX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020\005\022\020\n\014" + + "FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin.goog" + + "leapis.com/DataRetentionSettings\022+proper" + + "ties/{property}/dataRetentionSettings*\252\004" + + "\n\020IndustryCategory\022!\n\035INDUSTRY_CATEGORY_" + + "UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINES" + + "S_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022" + + "\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVE" + + "L\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAINMENT" + + "\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n\024BOOKS_AND_" + + "LITERATURE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005GAME" + + "S\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOME_AND" + + "_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017\022\026\n\022L" + + "AW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_" + + "COMMUNITIES\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023\022\024\n" + + "\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\t" + + "REFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022" + + "JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*f\n\014Se" + + "rviceLevel\022\035\n\031SERVICE_LEVEL_UNSPECIFIED\020" + + "\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n\024GOOG" + + "LE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026ACTOR" + + "_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020" + + "\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACTION_T" + + "YPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATE" + + "D\020\002\022\013\n\007DELETED\020\003*\377\002\n\031ChangeHistoryResour" + + "ceType\022,\n(CHANGE_HISTORY_RESOURCE_TYPE_U" + + "NSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022" + + "\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007\022" + + "\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONVERSI" + + "ON_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_SECRE" + + "T\020\n\022\033\n\027DATA_RETENTION_SETTINGS\020\r\022%\n!DISP" + + "LAY_VIDEO_360_ADVERTISER_LINK\020\016\022.\n*DISPL" + + "AY_VIDEO_360_ADVERTISER_LINK_PROPOSAL\020\017\022" + + "\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_SETTINGS" + + "\020\024*\202\001\n\014PropertyType\022\035\n\031PROPERTY_TYPE_UNS" + + "PECIFIED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035" + + "\n\031PROPERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERT" + + "Y_TYPE_ROLLUP\020\003By\n!com.google.analytics." + + "admin.v1betaB\016ResourcesProtoP\001ZBgoogle.g" + + "olang.org/genproto/googleapis/analytics/" + + "admin/v1beta;adminb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), + }); + internal_static_google_analytics_admin_v1beta_Account_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_Account_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "DisplayName", "RegionCode", "Deleted", + }); + internal_static_google_analytics_admin_v1beta_Property_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_Property_descriptor, + new java.lang.String[] { + "Name", + "PropertyType", + "CreateTime", + "UpdateTime", + "Parent", + "DisplayName", + "IndustryCategory", + "TimeZone", + "CurrencyCode", + "ServiceLevel", + "DeleteTime", + "ExpireTime", + "Account", + }); + internal_static_google_analytics_admin_v1beta_DataStream_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DataStream_descriptor, + new java.lang.String[] { + "WebStreamData", + "AndroidAppStreamData", + "IosAppStreamData", + "Name", + "Type", + "DisplayName", + "CreateTime", + "UpdateTime", + "StreamData", + }); + internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor = + internal_static_google_analytics_admin_v1beta_DataStream_descriptor.getNestedTypes().get(0); + internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor, + new java.lang.String[] { + "MeasurementId", "FirebaseAppId", "DefaultUri", + }); + internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor = + internal_static_google_analytics_admin_v1beta_DataStream_descriptor.getNestedTypes().get(1); + internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor, + new java.lang.String[] { + "FirebaseAppId", "PackageName", + }); + internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor = + internal_static_google_analytics_admin_v1beta_DataStream_descriptor.getNestedTypes().get(2); + internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor, + new java.lang.String[] { + "FirebaseAppId", "BundleId", + }); + internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor, + new java.lang.String[] { + "Name", "Project", "CreateTime", + }); + internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor, + new java.lang.String[] { + "Name", + "CustomerId", + "CanManageClients", + "AdsPersonalizationEnabled", + "CreateTime", + "UpdateTime", + "CreatorEmailAddress", + }); + internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor, + new java.lang.String[] { + "Name", + "SharingWithGoogleSupportEnabled", + "SharingWithGoogleAssignedSalesEnabled", + "SharingWithGoogleAnySalesEnabled", + "SharingWithGoogleProductsEnabled", + "SharingWithOthersEnabled", + }); + internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor, + new java.lang.String[] { + "Name", "Account", "DisplayName", "PropertySummaries", + }); + internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor, + new java.lang.String[] { + "Property", "DisplayName", "PropertyType", "Parent", + }); + internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "SecretValue", + }); + internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor, + new java.lang.String[] { + "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", + }); + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor, + new java.lang.String[] { + "Resource", "Action", "ResourceBeforeChange", "ResourceAfterChange", + }); + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor = + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor, + new java.lang.String[] { + "Account", + "Property", + "FirebaseLink", + "GoogleAdsLink", + "ConversionEvent", + "MeasurementProtocolSecret", + "DataRetentionSettings", + "DataStream", + "Resource", + }); + internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor, + new java.lang.String[] { + "Name", "EventName", "CreateTime", "Deletable", "Custom", "CountingMethod", + }); + internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor, + new java.lang.String[] { + "Name", + "ParameterName", + "DisplayName", + "Description", + "Scope", + "DisallowAdsPersonalization", + }); + internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor, + new java.lang.String[] { + "Name", + "ParameterName", + "DisplayName", + "Description", + "MeasurementUnit", + "Scope", + "RestrictedMetricType", + }); + internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor, + new java.lang.String[] { + "Name", "EventDataRetention", "ResetUserDataOnNewActivity", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java new file mode 100644 index 000000000000..79720fa253b0 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java @@ -0,0 +1,3997 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The request for a Data Access Record Report.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportRequest} + */ +public final class RunAccessReportRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.RunAccessReportRequest) + RunAccessReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAccessReportRequest.newBuilder() to construct. + private RunAccessReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAccessReportRequest() { + entity_ = ""; + dimensions_ = java.util.Collections.emptyList(); + metrics_ = java.util.Collections.emptyList(); + dateRanges_ = java.util.Collections.emptyList(); + timeZone_ = ""; + orderBys_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAccessReportRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.RunAccessReportRequest.class, + com.google.analytics.admin.v1beta.RunAccessReportRequest.Builder.class); + } + + public static final int ENTITY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object entity_ = ""; + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The entity. + */ + @java.lang.Override + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } + } + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DIMENSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List dimensions_; + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + @java.lang.Override + public java.util.List getDimensionsList() { + return dimensions_; + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + @java.lang.Override + public java.util.List + getDimensionsOrBuilderList() { + return dimensions_; + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + @java.lang.Override + public int getDimensionsCount() { + return dimensions_.size(); + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimension getDimensions(int index) { + return dimensions_.get(index); + } + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionOrBuilder getDimensionsOrBuilder( + int index) { + return dimensions_.get(index); + } + + public static final int METRICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List metrics_; + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetric getMetrics(int index) { + return metrics_.get(index); + } + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int DATE_RANGES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List dateRanges_; + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public java.util.List getDateRangesList() { + return dateRanges_; + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public java.util.List + getDateRangesOrBuilderList() { + return dateRanges_; + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public int getDateRangesCount() { + return dateRanges_.size(); + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDateRange getDateRanges(int index) { + return dateRanges_.get(index); + } + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder getDateRangesOrBuilder( + int index) { + return dateRanges_.get(index); + } + + public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1beta.AccessFilterExpression dimensionFilter_; + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + @java.lang.Override + public boolean hasDimensionFilter() { + return dimensionFilter_ != null; + } + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression getDimensionFilter() { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + + public static final int METRIC_FILTER_FIELD_NUMBER = 6; + private com.google.analytics.admin.v1beta.AccessFilterExpression metricFilter_; + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + @java.lang.Override + public boolean hasMetricFilter() { + return metricFilter_ != null; + } + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpression getMetricFilter() { + return metricFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder + getMetricFilterOrBuilder() { + return metricFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + + public static final int OFFSET_FIELD_NUMBER = 7; + private long offset_ = 0L; + /** + * + * + *
+   * The row count of the start row. The first row is counted as row 0. If
+   * offset is unspecified, it is treated as 0. If offset is zero, then this
+   * method will return the first page of results with `limit` entries.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + + public static final int LIMIT_FIELD_NUMBER = 8; + private long limit_ = 0L; + /** + * + * + *
+   * The number of rows to return. If unspecified, 10,000 rows are returned. The
+   * API returns a maximum of 100,000 rows per request, no matter how many you
+   * ask for. `limit` must be positive.
+   *
+   * The API may return fewer rows than the requested `limit`, if there aren't
+   * as many remaining rows as the `limit`. For instance, there are fewer than
+   * 300 possible values for the dimension `country`, so when reporting on only
+   * `country`, you can't get more than 300 rows, even if you set `limit` to a
+   * higher value.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + public static final int TIME_ZONE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object timeZone_ = ""; + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + @java.lang.Override + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } + } + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BYS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List orderBys_; + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public java.util.List getOrderBysList() { + return orderBys_; + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public java.util.List + getOrderBysOrBuilderList() { + return orderBys_; + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public int getOrderBysCount() { + return orderBys_.size(); + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderBy getOrderBys(int index) { + return orderBys_.get(index); + } + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessOrderByOrBuilder getOrderBysOrBuilder(int index) { + return orderBys_.get(index); + } + + public static final int RETURN_ENTITY_QUOTA_FIELD_NUMBER = 11; + private boolean returnEntityQuota_ = false; + /** + * + * + *
+   * Toggles whether to return the current state of this Analytics Property's
+   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+   * requests, this field must be false.
+   * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + @java.lang.Override + public boolean getReturnEntityQuota() { + return returnEntityQuota_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); + } + for (int i = 0; i < dimensions_.size(); i++) { + output.writeMessage(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + output.writeMessage(4, dateRanges_.get(i)); + } + if (dimensionFilter_ != null) { + output.writeMessage(5, getDimensionFilter()); + } + if (metricFilter_ != null) { + output.writeMessage(6, getMetricFilter()); + } + if (offset_ != 0L) { + output.writeInt64(7, offset_); + } + if (limit_ != 0L) { + output.writeInt64(8, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timeZone_); + } + for (int i = 0; i < orderBys_.size(); i++) { + output.writeMessage(10, orderBys_.get(i)); + } + if (returnEntityQuota_ != false) { + output.writeBool(11, returnEntityQuota_); + } + 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(entity_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_); + } + for (int i = 0; i < dimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dimensions_.get(i)); + } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metrics_.get(i)); + } + for (int i = 0; i < dateRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, dateRanges_.get(i)); + } + if (dimensionFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDimensionFilter()); + } + if (metricFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetricFilter()); + } + if (offset_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, offset_); + } + if (limit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, limit_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, timeZone_); + } + for (int i = 0; i < orderBys_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, orderBys_.get(i)); + } + if (returnEntityQuota_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, returnEntityQuota_); + } + size += 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.admin.v1beta.RunAccessReportRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.RunAccessReportRequest other = + (com.google.analytics.admin.v1beta.RunAccessReportRequest) obj; + + if (!getEntity().equals(other.getEntity())) return false; + if (!getDimensionsList().equals(other.getDimensionsList())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getDateRangesList().equals(other.getDateRangesList())) return false; + if (hasDimensionFilter() != other.hasDimensionFilter()) return false; + if (hasDimensionFilter()) { + if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; + } + if (hasMetricFilter() != other.hasMetricFilter()) return false; + if (hasMetricFilter()) { + if (!getMetricFilter().equals(other.getMetricFilter())) return false; + } + if (getOffset() != other.getOffset()) return false; + if (getLimit() != other.getLimit()) return false; + if (!getTimeZone().equals(other.getTimeZone())) return false; + if (!getOrderBysList().equals(other.getOrderBysList())) return false; + if (getReturnEntityQuota() != other.getReturnEntityQuota()) return false; + if (!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) + ENTITY_FIELD_NUMBER; + hash = (53 * hash) + getEntity().hashCode(); + if (getDimensionsCount() > 0) { + hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionsList().hashCode(); + } + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getDateRangesCount() > 0) { + hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getDateRangesList().hashCode(); + } + if (hasDimensionFilter()) { + hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionFilter().hashCode(); + } + if (hasMetricFilter()) { + hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getMetricFilter().hashCode(); + } + hash = (37 * hash) + OFFSET_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOffset()); + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); + hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; + hash = (53 * hash) + getTimeZone().hashCode(); + if (getOrderBysCount() > 0) { + hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; + hash = (53 * hash) + getOrderBysList().hashCode(); + } + hash = (37 * hash) + RETURN_ENTITY_QUOTA_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnEntityQuota()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.RunAccessReportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request for a Data Access Record Report.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.RunAccessReportRequest) + com.google.analytics.admin.v1beta.RunAccessReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.RunAccessReportRequest.class, + com.google.analytics.admin.v1beta.RunAccessReportRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.RunAccessReportRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + entity_ = ""; + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + } else { + dimensions_ = null; + dimensionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + } else { + dateRanges_ = null; + dateRangesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + dimensionFilter_ = null; + if (dimensionFilterBuilder_ != null) { + dimensionFilterBuilder_.dispose(); + dimensionFilterBuilder_ = null; + } + metricFilter_ = null; + if (metricFilterBuilder_ != null) { + metricFilterBuilder_.dispose(); + metricFilterBuilder_ = null; + } + offset_ = 0L; + limit_ = 0L; + timeZone_ = ""; + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + } else { + orderBys_ = null; + orderBysBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000200); + returnEntityQuota_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.RunAccessReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportRequest build() { + com.google.analytics.admin.v1beta.RunAccessReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportRequest buildPartial() { + com.google.analytics.admin.v1beta.RunAccessReportRequest result = + new com.google.analytics.admin.v1beta.RunAccessReportRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.RunAccessReportRequest result) { + if (dimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + dimensions_ = java.util.Collections.unmodifiableList(dimensions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.dimensions_ = dimensions_; + } else { + result.dimensions_ = dimensionsBuilder_.build(); + } + if (metricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (dateRangesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.dateRanges_ = dateRanges_; + } else { + result.dateRanges_ = dateRangesBuilder_.build(); + } + if (orderBysBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0)) { + orderBys_ = java.util.Collections.unmodifiableList(orderBys_); + bitField0_ = (bitField0_ & ~0x00000200); + } + result.orderBys_ = orderBys_; + } else { + result.orderBys_ = orderBysBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.RunAccessReportRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.entity_ = entity_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.dimensionFilter_ = + dimensionFilterBuilder_ == null ? dimensionFilter_ : dimensionFilterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.metricFilter_ = + metricFilterBuilder_ == null ? metricFilter_ : metricFilterBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.offset_ = offset_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.limit_ = limit_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.timeZone_ = timeZone_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.returnEntityQuota_ = returnEntityQuota_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.RunAccessReportRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.RunAccessReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.RunAccessReportRequest other) { + if (other == com.google.analytics.admin.v1beta.RunAccessReportRequest.getDefaultInstance()) + return this; + if (!other.getEntity().isEmpty()) { + entity_ = other.entity_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (dimensionsBuilder_ == null) { + if (!other.dimensions_.isEmpty()) { + if (dimensions_.isEmpty()) { + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureDimensionsIsMutable(); + dimensions_.addAll(other.dimensions_); + } + onChanged(); + } + } else { + if (!other.dimensions_.isEmpty()) { + if (dimensionsBuilder_.isEmpty()) { + dimensionsBuilder_.dispose(); + dimensionsBuilder_ = null; + dimensions_ = other.dimensions_; + bitField0_ = (bitField0_ & ~0x00000002); + dimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionsFieldBuilder() + : null; + } else { + dimensionsBuilder_.addAllMessages(other.dimensions_); + } + } + } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField0_ = (bitField0_ & ~0x00000004); + metricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (dateRangesBuilder_ == null) { + if (!other.dateRanges_.isEmpty()) { + if (dateRanges_.isEmpty()) { + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureDateRangesIsMutable(); + dateRanges_.addAll(other.dateRanges_); + } + onChanged(); + } + } else { + if (!other.dateRanges_.isEmpty()) { + if (dateRangesBuilder_.isEmpty()) { + dateRangesBuilder_.dispose(); + dateRangesBuilder_ = null; + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000008); + dateRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDateRangesFieldBuilder() + : null; + } else { + dateRangesBuilder_.addAllMessages(other.dateRanges_); + } + } + } + if (other.hasDimensionFilter()) { + mergeDimensionFilter(other.getDimensionFilter()); + } + if (other.hasMetricFilter()) { + mergeMetricFilter(other.getMetricFilter()); + } + if (other.getOffset() != 0L) { + setOffset(other.getOffset()); + } + if (other.getLimit() != 0L) { + setLimit(other.getLimit()); + } + if (!other.getTimeZone().isEmpty()) { + timeZone_ = other.timeZone_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (orderBysBuilder_ == null) { + if (!other.orderBys_.isEmpty()) { + if (orderBys_.isEmpty()) { + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000200); + } else { + ensureOrderBysIsMutable(); + orderBys_.addAll(other.orderBys_); + } + onChanged(); + } + } else { + if (!other.orderBys_.isEmpty()) { + if (orderBysBuilder_.isEmpty()) { + orderBysBuilder_.dispose(); + orderBysBuilder_ = null; + orderBys_ = other.orderBys_; + bitField0_ = (bitField0_ & ~0x00000200); + orderBysBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getOrderBysFieldBuilder() + : null; + } else { + orderBysBuilder_.addAllMessages(other.orderBys_); + } + } + } + if (other.getReturnEntityQuota() != false) { + setReturnEntityQuota(other.getReturnEntityQuota()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + entity_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1beta.AccessDimension m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessDimension.parser(), + extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1beta.AccessMetric m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessMetric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.admin.v1beta.AccessDateRange m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessDateRange.parser(), + extensionRegistry); + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(m); + } else { + dateRangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: + { + offset_ = input.readInt64(); + bitField0_ |= 0x00000040; + break; + } // case 56 + case 64: + { + limit_ = input.readInt64(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + com.google.analytics.admin.v1beta.AccessOrderBy m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessOrderBy.parser(), + extensionRegistry); + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(m); + } else { + orderBysBuilder_.addMessage(m); + } + break; + } // case 82 + case 88: + { + returnEntityQuota_ = input.readBool(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object entity_ = ""; + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @return The entity. + */ + public java.lang.String getEntity() { + java.lang.Object ref = entity_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + entity_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + public com.google.protobuf.ByteString getEntityBytes() { + java.lang.Object ref = entity_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + entity_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @param value The entity to set. + * @return This builder for chaining. + */ + public Builder setEntity(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + entity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @return This builder for chaining. + */ + public Builder clearEntity() { + entity_ = getDefaultInstance().getEntity(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The Data Access Report supports requesting at the property level or account
+     * level. If requested at the account level, Data Access Reports include all
+     * access for all properties under that account.
+     *
+     * To request at the property level, entity should be for example
+     * 'properties/123' if "123" is your GA4 property ID. To request at the
+     * account level, entity should be for example 'accounts/1234' if "1234" is
+     * your GA4 Account ID.
+     * 
+ * + * string entity = 1; + * + * @param value The bytes for entity to set. + * @return This builder for chaining. + */ + public Builder setEntityBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + entity_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List dimensions_ = + java.util.Collections.emptyList(); + + private void ensureDimensionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + dimensions_ = + new java.util.ArrayList(dimensions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimension, + com.google.analytics.admin.v1beta.AccessDimension.Builder, + com.google.analytics.admin.v1beta.AccessDimensionOrBuilder> + dimensionsBuilder_; + + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public java.util.List getDimensionsList() { + if (dimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensions_); + } else { + return dimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public int getDimensionsCount() { + if (dimensionsBuilder_ == null) { + return dimensions_.size(); + } else { + return dimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1beta.AccessDimension getDimensions(int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder setDimensions( + int index, com.google.analytics.admin.v1beta.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.set(index, value); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder setDimensions( + int index, com.google.analytics.admin.v1beta.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder addDimensions(com.google.analytics.admin.v1beta.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + int index, com.google.analytics.admin.v1beta.AccessDimension value) { + if (dimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionsIsMutable(); + dimensions_.add(index, value); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + com.google.analytics.admin.v1beta.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder addDimensions( + int index, com.google.analytics.admin.v1beta.AccessDimension.Builder builderForValue) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder addAllDimensions( + java.lang.Iterable values) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensions_); + onChanged(); + } else { + dimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder clearDimensions() { + if (dimensionsBuilder_ == null) { + dimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + dimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public Builder removeDimensions(int index) { + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.remove(index); + onChanged(); + } else { + dimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1beta.AccessDimension.Builder getDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1beta.AccessDimensionOrBuilder getDimensionsOrBuilder( + int index) { + if (dimensionsBuilder_ == null) { + return dimensions_.get(index); + } else { + return dimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public java.util.List + getDimensionsOrBuilderList() { + if (dimensionsBuilder_ != null) { + return dimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensions_); + } + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1beta.AccessDimension.Builder addDimensionsBuilder() { + return getDimensionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance()); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public com.google.analytics.admin.v1beta.AccessDimension.Builder addDimensionsBuilder( + int index) { + return getDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance()); + } + /** + * + * + *
+     * The dimensions requested and displayed in the response. Requests are
+     * allowed up to 9 dimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + public java.util.List + getDimensionsBuilderList() { + return getDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimension, + com.google.analytics.admin.v1beta.AccessDimension.Builder, + com.google.analytics.admin.v1beta.AccessDimensionOrBuilder> + getDimensionsFieldBuilder() { + if (dimensionsBuilder_ == null) { + dimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimension, + com.google.analytics.admin.v1beta.AccessDimension.Builder, + com.google.analytics.admin.v1beta.AccessDimensionOrBuilder>( + dimensions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + dimensions_ = null; + } + return dimensionsBuilder_; + } + + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + metrics_ = + new java.util.ArrayList(metrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetric, + com.google.analytics.admin.v1beta.AccessMetric.Builder, + com.google.analytics.admin.v1beta.AccessMetricOrBuilder> + metricsBuilder_; + + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); + } else { + return metricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1beta.AccessMetric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder setMetrics(int index, com.google.analytics.admin.v1beta.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder setMetrics( + int index, com.google.analytics.admin.v1beta.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder addMetrics(com.google.analytics.admin.v1beta.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder addMetrics(int index, com.google.analytics.admin.v1beta.AccessMetric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder addMetrics( + com.google.analytics.admin.v1beta.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder addMetrics( + int index, com.google.analytics.admin.v1beta.AccessMetric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1beta.AccessMetric.Builder getMetricsBuilder(int index) { + return getMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1beta.AccessMetricOrBuilder getMetricsOrBuilder(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1beta.AccessMetric.Builder addMetricsBuilder() { + return getMetricsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance()); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public com.google.analytics.admin.v1beta.AccessMetric.Builder addMetricsBuilder(int index) { + return getMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance()); + } + /** + * + * + *
+     * The metrics requested and displayed in the response. Requests are allowed
+     * up to 10 metrics.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + public java.util.List + getMetricsBuilderList() { + return getMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetric, + com.google.analytics.admin.v1beta.AccessMetric.Builder, + com.google.analytics.admin.v1beta.AccessMetricOrBuilder> + getMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetric, + com.google.analytics.admin.v1beta.AccessMetric.Builder, + com.google.analytics.admin.v1beta.AccessMetricOrBuilder>( + metrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List dateRanges_ = + java.util.Collections.emptyList(); + + private void ensureDateRangesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + dateRanges_ = + new java.util.ArrayList(dateRanges_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDateRange, + com.google.analytics.admin.v1beta.AccessDateRange.Builder, + com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder> + dateRangesBuilder_; + + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public java.util.List getDateRangesList() { + if (dateRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(dateRanges_); + } else { + return dateRangesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public int getDateRangesCount() { + if (dateRangesBuilder_ == null) { + return dateRanges_.size(); + } else { + return dateRangesBuilder_.getCount(); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1beta.AccessDateRange getDateRanges(int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder setDateRanges( + int index, com.google.analytics.admin.v1beta.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.set(index, value); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder setDateRanges( + int index, com.google.analytics.admin.v1beta.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges(com.google.analytics.admin.v1beta.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + int index, com.google.analytics.admin.v1beta.AccessDateRange value) { + if (dateRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDateRangesIsMutable(); + dateRanges_.add(index, value); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + com.google.analytics.admin.v1beta.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder addDateRanges( + int index, com.google.analytics.admin.v1beta.AccessDateRange.Builder builderForValue) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + dateRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder addAllDateRanges( + java.lang.Iterable values) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dateRanges_); + onChanged(); + } else { + dateRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder clearDateRanges() { + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + dateRangesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public Builder removeDateRanges(int index) { + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.remove(index); + onChanged(); + } else { + dateRangesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1beta.AccessDateRange.Builder getDateRangesBuilder( + int index) { + return getDateRangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder getDateRangesOrBuilder( + int index) { + if (dateRangesBuilder_ == null) { + return dateRanges_.get(index); + } else { + return dateRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public java.util.List + getDateRangesOrBuilderList() { + if (dateRangesBuilder_ != null) { + return dateRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dateRanges_); + } + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1beta.AccessDateRange.Builder addDateRangesBuilder() { + return getDateRangesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance()); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public com.google.analytics.admin.v1beta.AccessDateRange.Builder addDateRangesBuilder( + int index) { + return getDateRangesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance()); + } + /** + * + * + *
+     * Date ranges of access records to read. If multiple date ranges are
+     * requested, each response row will contain a zero based date range index. If
+     * two date ranges overlap, the access records for the overlapping days is
+     * included in the response rows for both date ranges. Requests are allowed up
+     * to 2 date ranges.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + public java.util.List + getDateRangesBuilderList() { + return getDateRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDateRange, + com.google.analytics.admin.v1beta.AccessDateRange.Builder, + com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder> + getDateRangesFieldBuilder() { + if (dateRangesBuilder_ == null) { + dateRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDateRange, + com.google.analytics.admin.v1beta.AccessDateRange.Builder, + com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder>( + dateRanges_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); + dateRanges_ = null; + } + return dateRangesBuilder_; + } + + private com.google.analytics.admin.v1beta.AccessFilterExpression dimensionFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + dimensionFilterBuilder_; + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + public boolean hasDimensionFilter() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression getDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } else { + return dimensionFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + public Builder setDimensionFilter( + com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dimensionFilter_ = value; + } else { + dimensionFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + public Builder setDimensionFilter( + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { + if (dimensionFilterBuilder_ == null) { + dimensionFilter_ = builderForValue.build(); + } else { + dimensionFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + public Builder mergeDimensionFilter( + com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && dimensionFilter_ != null + && dimensionFilter_ + != com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) { + getDimensionFilterBuilder().mergeFrom(value); + } else { + dimensionFilter_ = value; + } + } else { + dimensionFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + public Builder clearDimensionFilter() { + bitField0_ = (bitField0_ & ~0x00000010); + dimensionFilter_ = null; + if (dimensionFilterBuilder_ != null) { + dimensionFilterBuilder_.dispose(); + dimensionFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder + getDimensionFilterBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getDimensionFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + if (dimensionFilterBuilder_ != null) { + return dimensionFilterBuilder_.getMessageOrBuilder(); + } else { + return dimensionFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : dimensionFilter_; + } + } + /** + * + * + *
+     * Dimension filters let you restrict report response to specific
+     * dimension values which match the filter. For example, filtering on access
+     * records of a single user. To learn more, see [Fundamentals of Dimension
+     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+     * for examples. Metrics cannot be used in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + getDimensionFilterFieldBuilder() { + if (dimensionFilterBuilder_ == null) { + dimensionFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( + getDimensionFilter(), getParentForChildren(), isClean()); + dimensionFilter_ = null; + } + return dimensionFilterBuilder_; + } + + private com.google.analytics.admin.v1beta.AccessFilterExpression metricFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + metricFilterBuilder_; + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + public boolean hasMetricFilter() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression getMetricFilter() { + if (metricFilterBuilder_ == null) { + return metricFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } else { + return metricFilterBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + public Builder setMetricFilter(com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (metricFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricFilter_ = value; + } else { + metricFilterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + public Builder setMetricFilter( + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { + if (metricFilterBuilder_ == null) { + metricFilter_ = builderForValue.build(); + } else { + metricFilterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + public Builder mergeMetricFilter( + com.google.analytics.admin.v1beta.AccessFilterExpression value) { + if (metricFilterBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && metricFilter_ != null + && metricFilter_ + != com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) { + getMetricFilterBuilder().mergeFrom(value); + } else { + metricFilter_ = value; + } + } else { + metricFilterBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + public Builder clearMetricFilter() { + bitField0_ = (bitField0_ & ~0x00000020); + metricFilter_ = null; + if (metricFilterBuilder_ != null) { + metricFilterBuilder_.dispose(); + metricFilterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder + getMetricFilterBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getMetricFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder + getMetricFilterOrBuilder() { + if (metricFilterBuilder_ != null) { + return metricFilterBuilder_.getMessageOrBuilder(); + } else { + return metricFilter_ == null + ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() + : metricFilter_; + } + } + /** + * + * + *
+     * Metric filters allow you to restrict report response to specific metric
+     * values which match the filter. Metric filters are applied after aggregating
+     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+     * in this filter.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> + getMetricFilterFieldBuilder() { + if (metricFilterBuilder_ == null) { + metricFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessFilterExpression, + com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( + getMetricFilter(), getParentForChildren(), isClean()); + metricFilter_ = null; + } + return metricFilterBuilder_; + } + + private long offset_; + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + @java.lang.Override + public long getOffset() { + return offset_; + } + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @param value The offset to set. + * @return This builder for chaining. + */ + public Builder setOffset(long value) { + + offset_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * The row count of the start row. The first row is counted as row 0. If
+     * offset is unspecified, it is treated as 0. If offset is zero, then this
+     * method will return the first page of results with `limit` entries.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 offset = 7; + * + * @return This builder for chaining. + */ + public Builder clearOffset() { + bitField0_ = (bitField0_ & ~0x00000040); + offset_ = 0L; + onChanged(); + return this; + } + + private long limit_; + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     *
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     *
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(long value) { + + limit_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of rows to return. If unspecified, 10,000 rows are returned. The
+     * API returns a maximum of 100,000 rows per request, no matter how many you
+     * ask for. `limit` must be positive.
+     *
+     * The API may return fewer rows than the requested `limit`, if there aren't
+     * as many remaining rows as the `limit`. For instance, there are fewer than
+     * 300 possible values for the dimension `country`, so when reporting on only
+     * `country`, you can't get more than 300 rows, even if you set `limit` to a
+     * higher value.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int64 limit = 8; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000080); + limit_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object timeZone_ = ""; + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + public java.lang.String getTimeZone() { + java.lang.Object ref = timeZone_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + timeZone_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + public com.google.protobuf.ByteString getTimeZoneBytes() { + java.lang.Object ref = timeZone_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + timeZone_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @param value The timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZone(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + timeZone_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @return This builder for chaining. + */ + public Builder clearTimeZone() { + timeZone_ = getDefaultInstance().getTimeZone(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * This request's time zone if specified. If unspecified, the property's time
+     * zone is used. The request's time zone is used to interpret the start & end
+     * dates of the report.
+     *
+     * Formatted as strings from the IANA Time Zone database
+     * (https://www.iana.org/time-zones); for example "America/New_York" or
+     * "Asia/Tokyo".
+     * 
+ * + * string time_zone = 9; + * + * @param value The bytes for timeZone to set. + * @return This builder for chaining. + */ + public Builder setTimeZoneBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + timeZone_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.util.List orderBys_ = + java.util.Collections.emptyList(); + + private void ensureOrderBysIsMutable() { + if (!((bitField0_ & 0x00000200) != 0)) { + orderBys_ = + new java.util.ArrayList(orderBys_); + bitField0_ |= 0x00000200; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderByOrBuilder> + orderBysBuilder_; + + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public java.util.List getOrderBysList() { + if (orderBysBuilder_ == null) { + return java.util.Collections.unmodifiableList(orderBys_); + } else { + return orderBysBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public int getOrderBysCount() { + if (orderBysBuilder_ == null) { + return orderBys_.size(); + } else { + return orderBysBuilder_.getCount(); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1beta.AccessOrderBy getOrderBys(int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder setOrderBys(int index, com.google.analytics.admin.v1beta.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.set(index, value); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder setOrderBys( + int index, com.google.analytics.admin.v1beta.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.set(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys(com.google.analytics.admin.v1beta.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(value); + onChanged(); + } else { + orderBysBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys(int index, com.google.analytics.admin.v1beta.AccessOrderBy value) { + if (orderBysBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOrderBysIsMutable(); + orderBys_.add(index, value); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys( + com.google.analytics.admin.v1beta.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder addOrderBys( + int index, com.google.analytics.admin.v1beta.AccessOrderBy.Builder builderForValue) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(index, builderForValue.build()); + onChanged(); + } else { + orderBysBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder addAllOrderBys( + java.lang.Iterable values) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, orderBys_); + onChanged(); + } else { + orderBysBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder clearOrderBys() { + if (orderBysBuilder_ == null) { + orderBys_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + } else { + orderBysBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public Builder removeOrderBys(int index) { + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.remove(index); + onChanged(); + } else { + orderBysBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1beta.AccessOrderBy.Builder getOrderBysBuilder(int index) { + return getOrderBysFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1beta.AccessOrderByOrBuilder getOrderBysOrBuilder( + int index) { + if (orderBysBuilder_ == null) { + return orderBys_.get(index); + } else { + return orderBysBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public java.util.List + getOrderBysOrBuilderList() { + if (orderBysBuilder_ != null) { + return orderBysBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(orderBys_); + } + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1beta.AccessOrderBy.Builder addOrderBysBuilder() { + return getOrderBysFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance()); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public com.google.analytics.admin.v1beta.AccessOrderBy.Builder addOrderBysBuilder(int index) { + return getOrderBysFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance()); + } + /** + * + * + *
+     * Specifies how rows are ordered in the response.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + public java.util.List + getOrderBysBuilderList() { + return getOrderBysFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderByOrBuilder> + getOrderBysFieldBuilder() { + if (orderBysBuilder_ == null) { + orderBysBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessOrderBy, + com.google.analytics.admin.v1beta.AccessOrderBy.Builder, + com.google.analytics.admin.v1beta.AccessOrderByOrBuilder>( + orderBys_, ((bitField0_ & 0x00000200) != 0), getParentForChildren(), isClean()); + orderBys_ = null; + } + return orderBysBuilder_; + } + + private boolean returnEntityQuota_; + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+     * requests, this field must be false.
+     * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + @java.lang.Override + public boolean getReturnEntityQuota() { + return returnEntityQuota_; + } + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+     * requests, this field must be false.
+     * 
+ * + * bool return_entity_quota = 11; + * + * @param value The returnEntityQuota to set. + * @return This builder for chaining. + */ + public Builder setReturnEntityQuota(boolean value) { + + returnEntityQuota_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * + * + *
+     * Toggles whether to return the current state of this Analytics Property's
+     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+     * requests, this field must be false.
+     * 
+ * + * bool return_entity_quota = 11; + * + * @return This builder for chaining. + */ + public Builder clearReturnEntityQuota() { + bitField0_ = (bitField0_ & ~0x00000400); + returnEntityQuota_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.RunAccessReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.RunAccessReportRequest) + private static final com.google.analytics.admin.v1beta.RunAccessReportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.RunAccessReportRequest(); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAccessReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java new file mode 100644 index 000000000000..ad4234a83c7a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java @@ -0,0 +1,487 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface RunAccessReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.RunAccessReportRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The entity. + */ + java.lang.String getEntity(); + /** + * + * + *
+   * The Data Access Report supports requesting at the property level or account
+   * level. If requested at the account level, Data Access Reports include all
+   * access for all properties under that account.
+   *
+   * To request at the property level, entity should be for example
+   * 'properties/123' if "123" is your GA4 property ID. To request at the
+   * account level, entity should be for example 'accounts/1234' if "1234" is
+   * your GA4 Account ID.
+   * 
+ * + * string entity = 1; + * + * @return The bytes for entity. + */ + com.google.protobuf.ByteString getEntityBytes(); + + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + java.util.List getDimensionsList(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + com.google.analytics.admin.v1beta.AccessDimension getDimensions(int index); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + int getDimensionsCount(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + java.util.List + getDimensionsOrBuilderList(); + /** + * + * + *
+   * The dimensions requested and displayed in the response. Requests are
+   * allowed up to 9 dimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; + */ + com.google.analytics.admin.v1beta.AccessDimensionOrBuilder getDimensionsOrBuilder(int index); + + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + java.util.List getMetricsList(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + com.google.analytics.admin.v1beta.AccessMetric getMetrics(int index); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + int getMetricsCount(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + java.util.List + getMetricsOrBuilderList(); + /** + * + * + *
+   * The metrics requested and displayed in the response. Requests are allowed
+   * up to 10 metrics.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; + */ + com.google.analytics.admin.v1beta.AccessMetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + java.util.List getDateRangesList(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + com.google.analytics.admin.v1beta.AccessDateRange getDateRanges(int index); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + int getDateRangesCount(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + java.util.List + getDateRangesOrBuilderList(); + /** + * + * + *
+   * Date ranges of access records to read. If multiple date ranges are
+   * requested, each response row will contain a zero based date range index. If
+   * two date ranges overlap, the access records for the overlapping days is
+   * included in the response rows for both date ranges. Requests are allowed up
+   * to 2 date ranges.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; + */ + com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder getDateRangesOrBuilder(int index); + + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * + * @return Whether the dimensionFilter field is set. + */ + boolean hasDimensionFilter(); + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + * + * @return The dimensionFilter. + */ + com.google.analytics.admin.v1beta.AccessFilterExpression getDimensionFilter(); + /** + * + * + *
+   * Dimension filters let you restrict report response to specific
+   * dimension values which match the filter. For example, filtering on access
+   * records of a single user. To learn more, see [Fundamentals of Dimension
+   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
+   * for examples. Metrics cannot be used in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder(); + + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * + * @return Whether the metricFilter field is set. + */ + boolean hasMetricFilter(); + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + * + * @return The metricFilter. + */ + com.google.analytics.admin.v1beta.AccessFilterExpression getMetricFilter(); + /** + * + * + *
+   * Metric filters allow you to restrict report response to specific metric
+   * values which match the filter. Metric filters are applied after aggregating
+   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
+   * in this filter.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; + */ + com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder(); + + /** + * + * + *
+   * The row count of the start row. The first row is counted as row 0. If
+   * offset is unspecified, it is treated as 0. If offset is zero, then this
+   * method will return the first page of results with `limit` entries.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 offset = 7; + * + * @return The offset. + */ + long getOffset(); + + /** + * + * + *
+   * The number of rows to return. If unspecified, 10,000 rows are returned. The
+   * API returns a maximum of 100,000 rows per request, no matter how many you
+   * ask for. `limit` must be positive.
+   *
+   * The API may return fewer rows than the requested `limit`, if there aren't
+   * as many remaining rows as the `limit`. For instance, there are fewer than
+   * 300 possible values for the dimension `country`, so when reporting on only
+   * `country`, you can't get more than 300 rows, even if you set `limit` to a
+   * higher value.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int64 limit = 8; + * + * @return The limit. + */ + long getLimit(); + + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The timeZone. + */ + java.lang.String getTimeZone(); + /** + * + * + *
+   * This request's time zone if specified. If unspecified, the property's time
+   * zone is used. The request's time zone is used to interpret the start & end
+   * dates of the report.
+   *
+   * Formatted as strings from the IANA Time Zone database
+   * (https://www.iana.org/time-zones); for example "America/New_York" or
+   * "Asia/Tokyo".
+   * 
+ * + * string time_zone = 9; + * + * @return The bytes for timeZone. + */ + com.google.protobuf.ByteString getTimeZoneBytes(); + + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + java.util.List getOrderBysList(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + com.google.analytics.admin.v1beta.AccessOrderBy getOrderBys(int index); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + int getOrderBysCount(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + java.util.List + getOrderBysOrBuilderList(); + /** + * + * + *
+   * Specifies how rows are ordered in the response.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; + */ + com.google.analytics.admin.v1beta.AccessOrderByOrBuilder getOrderBysOrBuilder(int index); + + /** + * + * + *
+   * Toggles whether to return the current state of this Analytics Property's
+   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
+   * requests, this field must be false.
+   * 
+ * + * bool return_entity_quota = 11; + * + * @return The returnEntityQuota. + */ + boolean getReturnEntityQuota(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponse.java new file mode 100644 index 000000000000..a36f3fa33f1f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponse.java @@ -0,0 +1,2462 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * The customized Data Access Record Report response.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportResponse} + */ +public final class RunAccessReportResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.RunAccessReportResponse) + RunAccessReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunAccessReportResponse.newBuilder() to construct. + private RunAccessReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunAccessReportResponse() { + dimensionHeaders_ = java.util.Collections.emptyList(); + metricHeaders_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunAccessReportResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.RunAccessReportResponse.class, + com.google.analytics.admin.v1beta.RunAccessReportResponse.Builder.class); + } + + public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List dimensionHeaders_; + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionHeadersList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public java.util.List + getDimensionHeadersOrBuilderList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public int getDimensionHeadersCount() { + return dimensionHeaders_.size(); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionHeader getDimensionHeaders(int index) { + return dimensionHeaders_.get(index); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder + getDimensionHeadersOrBuilder(int index) { + return dimensionHeaders_.get(index); + } + + public static final int METRIC_HEADERS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List metricHeaders_; + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersList() { + return metricHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersOrBuilderList() { + return metricHeaders_; + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public int getMetricHeadersCount() { + return metricHeaders_.size(); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricHeader getMetricHeaders(int index) { + return metricHeaders_.get(index); + } + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + return metricHeaders_.get(index); + } + + public static final int ROWS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List rows_; + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + @java.lang.Override + public java.util.List getRowsList() { + return rows_; + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + @java.lang.Override + public java.util.List + getRowsOrBuilderList() { + return rows_; + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + @java.lang.Override + public int getRowsCount() { + return rows_.size(); + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessRow getRows(int index) { + return rows_.get(index); + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessRowOrBuilder getRowsOrBuilder(int index) { + return rows_.get(index); + } + + public static final int ROW_COUNT_FIELD_NUMBER = 4; + private int rowCount_ = 0; + /** + * + * + *
+   * The total number of rows in the query result. `rowCount` is independent of
+   * the number of rows returned in the response, the `limit` request
+   * parameter, and the `offset` request parameter. For example if a query
+   * returns 175 rows and includes `limit` of 50 in the API request, the
+   * response will contain `rowCount` of 175 but only 50 rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + + public static final int QUOTA_FIELD_NUMBER = 5; + private com.google.analytics.admin.v1beta.AccessQuota quota_; + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + @java.lang.Override + public boolean hasQuota() { + return quota_ != null; + } + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + * + * @return The quota. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuota getQuota() { + return quota_ == null + ? com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() + : quota_; + } + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccessQuotaOrBuilder getQuotaOrBuilder() { + return quota_ == null + ? com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() + : quota_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < dimensionHeaders_.size(); i++) { + output.writeMessage(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + output.writeMessage(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + output.writeMessage(3, rows_.get(i)); + } + if (rowCount_ != 0) { + output.writeInt32(4, rowCount_); + } + if (quota_ != null) { + output.writeMessage(5, getQuota()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < dimensionHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionHeaders_.get(i)); + } + for (int i = 0; i < metricHeaders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricHeaders_.get(i)); + } + for (int i = 0; i < rows_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rows_.get(i)); + } + if (rowCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, rowCount_); + } + if (quota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQuota()); + } + size += 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.admin.v1beta.RunAccessReportResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.RunAccessReportResponse other = + (com.google.analytics.admin.v1beta.RunAccessReportResponse) obj; + + if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; + if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (getRowCount() != other.getRowCount()) return false; + if (hasQuota() != other.hasQuota()) return false; + if (hasQuota()) { + if (!getQuota().equals(other.getQuota())) return false; + } + if (!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 (getDimensionHeadersCount() > 0) { + hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getDimensionHeadersList().hashCode(); + } + if (getMetricHeadersCount() > 0) { + hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; + hash = (53 * hash) + getMetricHeadersList().hashCode(); + } + if (getRowsCount() > 0) { + hash = (37 * hash) + ROWS_FIELD_NUMBER; + hash = (53 * hash) + getRowsList().hashCode(); + } + hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getRowCount(); + if (hasQuota()) { + hash = (37 * hash) + QUOTA_FIELD_NUMBER; + hash = (53 * hash) + getQuota().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.RunAccessReportResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The customized Data Access Record Report response.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.RunAccessReportResponse) + com.google.analytics.admin.v1beta.RunAccessReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.RunAccessReportResponse.class, + com.google.analytics.admin.v1beta.RunAccessReportResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.RunAccessReportResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + } else { + dimensionHeaders_ = null; + dimensionHeadersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + } else { + metricHeaders_ = null; + metricHeadersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + } else { + rows_ = null; + rowsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + rowCount_ = 0; + quota_ = null; + if (quotaBuilder_ != null) { + quotaBuilder_.dispose(); + quotaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportResponse getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.RunAccessReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportResponse build() { + com.google.analytics.admin.v1beta.RunAccessReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportResponse buildPartial() { + com.google.analytics.admin.v1beta.RunAccessReportResponse result = + new com.google.analytics.admin.v1beta.RunAccessReportResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.RunAccessReportResponse result) { + if (dimensionHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dimensionHeaders_ = dimensionHeaders_; + } else { + result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); + } + if (metricHeadersBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.metricHeaders_ = metricHeaders_; + } else { + result.metricHeaders_ = metricHeadersBuilder_.build(); + } + if (rowsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rows_ = java.util.Collections.unmodifiableList(rows_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rows_ = rows_; + } else { + result.rows_ = rowsBuilder_.build(); + } + } + + private void buildPartial0(com.google.analytics.admin.v1beta.RunAccessReportResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.rowCount_ = rowCount_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.quota_ = quotaBuilder_ == null ? quota_ : quotaBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.RunAccessReportResponse) { + return mergeFrom((com.google.analytics.admin.v1beta.RunAccessReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.RunAccessReportResponse other) { + if (other == com.google.analytics.admin.v1beta.RunAccessReportResponse.getDefaultInstance()) + return this; + if (dimensionHeadersBuilder_ == null) { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeaders_.isEmpty()) { + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.addAll(other.dimensionHeaders_); + } + onChanged(); + } + } else { + if (!other.dimensionHeaders_.isEmpty()) { + if (dimensionHeadersBuilder_.isEmpty()) { + dimensionHeadersBuilder_.dispose(); + dimensionHeadersBuilder_ = null; + dimensionHeaders_ = other.dimensionHeaders_; + bitField0_ = (bitField0_ & ~0x00000001); + dimensionHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDimensionHeadersFieldBuilder() + : null; + } else { + dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); + } + } + } + if (metricHeadersBuilder_ == null) { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeaders_.isEmpty()) { + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureMetricHeadersIsMutable(); + metricHeaders_.addAll(other.metricHeaders_); + } + onChanged(); + } + } else { + if (!other.metricHeaders_.isEmpty()) { + if (metricHeadersBuilder_.isEmpty()) { + metricHeadersBuilder_.dispose(); + metricHeadersBuilder_ = null; + metricHeaders_ = other.metricHeaders_; + bitField0_ = (bitField0_ & ~0x00000002); + metricHeadersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMetricHeadersFieldBuilder() + : null; + } else { + metricHeadersBuilder_.addAllMessages(other.metricHeaders_); + } + } + } + if (rowsBuilder_ == null) { + if (!other.rows_.isEmpty()) { + if (rows_.isEmpty()) { + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRowsIsMutable(); + rows_.addAll(other.rows_); + } + onChanged(); + } + } else { + if (!other.rows_.isEmpty()) { + if (rowsBuilder_.isEmpty()) { + rowsBuilder_.dispose(); + rowsBuilder_ = null; + rows_ = other.rows_; + bitField0_ = (bitField0_ & ~0x00000004); + rowsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getRowsFieldBuilder() + : null; + } else { + rowsBuilder_.addAllMessages(other.rows_); + } + } + } + if (other.getRowCount() != 0) { + setRowCount(other.getRowCount()); + } + if (other.hasQuota()) { + mergeQuota(other.getQuota()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.AccessDimensionHeader m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessDimensionHeader.parser(), + extensionRegistry); + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(m); + } else { + dimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.admin.v1beta.AccessMetricHeader m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessMetricHeader.parser(), + extensionRegistry); + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(m); + } else { + metricHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.admin.v1beta.AccessRow m = + input.readMessage( + com.google.analytics.admin.v1beta.AccessRow.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + rowCount_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage(getQuotaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + dimensionHeaders_ = java.util.Collections.emptyList(); + + private void ensureDimensionHeadersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dimensionHeaders_ = + new java.util.ArrayList( + dimensionHeaders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimensionHeader, + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder> + dimensionHeadersBuilder_; + + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List + getDimensionHeadersList() { + if (dimensionHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } else { + return dimensionHeadersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public int getDimensionHeadersCount() { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.size(); + } else { + return dimensionHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionHeader getDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder setDimensionHeaders( + int index, com.google.analytics.admin.v1beta.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder setDimensionHeaders( + int index, + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + com.google.analytics.admin.v1beta.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + int index, com.google.analytics.admin.v1beta.AccessDimensionHeader value) { + if (dimensionHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, value); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addDimensionHeaders( + int index, + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder addAllDimensionHeaders( + java.lang.Iterable + values) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dimensionHeaders_); + onChanged(); + } else { + dimensionHeadersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder clearDimensionHeaders() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + dimensionHeadersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public Builder removeDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.remove(index); + onChanged(); + } else { + dimensionHeadersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder + getDimensionHeadersBuilder(int index) { + return getDimensionHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder + getDimensionHeadersOrBuilder(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder> + getDimensionHeadersOrBuilderList() { + if (dimensionHeadersBuilder_ != null) { + return dimensionHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(dimensionHeaders_); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder + addDimensionHeadersBuilder() { + return getDimensionHeadersFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder + addDimensionHeadersBuilder(int index) { + return getDimensionHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+     * matches the dimensions present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + public java.util.List + getDimensionHeadersBuilderList() { + return getDimensionHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimensionHeader, + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder> + getDimensionHeadersFieldBuilder() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessDimensionHeader, + com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder, + com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder>( + dimensionHeaders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + dimensionHeaders_ = null; + } + return dimensionHeadersBuilder_; + } + + private java.util.List metricHeaders_ = + java.util.Collections.emptyList(); + + private void ensureMetricHeadersIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + metricHeaders_ = + new java.util.ArrayList( + metricHeaders_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetricHeader, + com.google.analytics.admin.v1beta.AccessMetricHeader.Builder, + com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder> + metricHeadersBuilder_; + + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersList() { + if (metricHeadersBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricHeaders_); + } else { + return metricHeadersBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public int getMetricHeadersCount() { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.size(); + } else { + return metricHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricHeader getMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.admin.v1beta.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, value); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders(com.google.analytics.admin.v1beta.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.admin.v1beta.AccessMetricHeader value) { + if (metricHeadersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, value); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + com.google.analytics.admin.v1beta.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder addAllMetricHeaders( + java.lang.Iterable values) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricHeaders_); + onChanged(); + } else { + metricHeadersBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder clearMetricHeaders() { + if (metricHeadersBuilder_ == null) { + metricHeaders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + metricHeadersBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public Builder removeMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.remove(index); + onChanged(); + } else { + metricHeadersBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricHeader.Builder getMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersOrBuilderList() { + if (metricHeadersBuilder_ != null) { + return metricHeadersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricHeaders_); + } + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricHeader.Builder addMetricHeadersBuilder() { + return getMetricHeadersFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public com.google.analytics.admin.v1beta.AccessMetricHeader.Builder addMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * The header for a column in the report that corresponds to a specific
+     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+     * the metrics present in rows.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersBuilderList() { + return getMetricHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetricHeader, + com.google.analytics.admin.v1beta.AccessMetricHeader.Builder, + com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder> + getMetricHeadersFieldBuilder() { + if (metricHeadersBuilder_ == null) { + metricHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessMetricHeader, + com.google.analytics.admin.v1beta.AccessMetricHeader.Builder, + com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder>( + metricHeaders_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + metricHeaders_ = null; + } + return metricHeadersBuilder_; + } + + private java.util.List rows_ = + java.util.Collections.emptyList(); + + private void ensureRowsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rows_ = new java.util.ArrayList(rows_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessRow, + com.google.analytics.admin.v1beta.AccessRow.Builder, + com.google.analytics.admin.v1beta.AccessRowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public java.util.List getRowsList() { + if (rowsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rows_); + } else { + return rowsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public int getRowsCount() { + if (rowsBuilder_ == null) { + return rows_.size(); + } else { + return rowsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1beta.AccessRow getRows(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder setRows(int index, com.google.analytics.admin.v1beta.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.set(index, value); + onChanged(); + } else { + rowsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder setRows( + int index, com.google.analytics.admin.v1beta.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.set(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder addRows(com.google.analytics.admin.v1beta.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(value); + onChanged(); + } else { + rowsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder addRows(int index, com.google.analytics.admin.v1beta.AccessRow value) { + if (rowsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRowsIsMutable(); + rows_.add(index, value); + onChanged(); + } else { + rowsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder addRows(com.google.analytics.admin.v1beta.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder addRows( + int index, com.google.analytics.admin.v1beta.AccessRow.Builder builderForValue) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(index, builderForValue.build()); + onChanged(); + } else { + rowsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder addAllRows( + java.lang.Iterable values) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rows_); + onChanged(); + } else { + rowsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder clearRows() { + if (rowsBuilder_ == null) { + rows_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rowsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public Builder removeRows(int index) { + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.remove(index); + onChanged(); + } else { + rowsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1beta.AccessRow.Builder getRowsBuilder(int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1beta.AccessRowOrBuilder getRowsOrBuilder(int index) { + if (rowsBuilder_ == null) { + return rows_.get(index); + } else { + return rowsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public java.util.List + getRowsOrBuilderList() { + if (rowsBuilder_ != null) { + return rowsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rows_); + } + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1beta.AccessRow.Builder addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public com.google.analytics.admin.v1beta.AccessRow.Builder addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + public java.util.List + getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessRow, + com.google.analytics.admin.v1beta.AccessRow.Builder, + com.google.analytics.admin.v1beta.AccessRowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessRow, + com.google.analytics.admin.v1beta.AccessRow.Builder, + com.google.analytics.admin.v1beta.AccessRowOrBuilder>( + rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private int rowCount_; + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + @java.lang.Override + public int getRowCount() { + return rowCount_; + } + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @param value The rowCount to set. + * @return This builder for chaining. + */ + public Builder setRowCount(int value) { + + rowCount_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of rows in the query result. `rowCount` is independent of
+     * the number of rows returned in the response, the `limit` request
+     * parameter, and the `offset` request parameter. For example if a query
+     * returns 175 rows and includes `limit` of 50 in the API request, the
+     * response will contain `rowCount` of 175 but only 50 rows.
+     *
+     * To learn more about this pagination parameter, see
+     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+     * 
+ * + * int32 row_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearRowCount() { + bitField0_ = (bitField0_ & ~0x00000008); + rowCount_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1beta.AccessQuota quota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuota, + com.google.analytics.admin.v1beta.AccessQuota.Builder, + com.google.analytics.admin.v1beta.AccessQuotaOrBuilder> + quotaBuilder_; + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + public boolean hasQuota() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + * + * @return The quota. + */ + public com.google.analytics.admin.v1beta.AccessQuota getQuota() { + if (quotaBuilder_ == null) { + return quota_ == null + ? com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() + : quota_; + } else { + return quotaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + public Builder setQuota(com.google.analytics.admin.v1beta.AccessQuota value) { + if (quotaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + quota_ = value; + } else { + quotaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + public Builder setQuota(com.google.analytics.admin.v1beta.AccessQuota.Builder builderForValue) { + if (quotaBuilder_ == null) { + quota_ = builderForValue.build(); + } else { + quotaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + public Builder mergeQuota(com.google.analytics.admin.v1beta.AccessQuota value) { + if (quotaBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && quota_ != null + && quota_ != com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance()) { + getQuotaBuilder().mergeFrom(value); + } else { + quota_ = value; + } + } else { + quotaBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + public Builder clearQuota() { + bitField0_ = (bitField0_ & ~0x00000010); + quota_ = null; + if (quotaBuilder_ != null) { + quotaBuilder_.dispose(); + quotaBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + public com.google.analytics.admin.v1beta.AccessQuota.Builder getQuotaBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + public com.google.analytics.admin.v1beta.AccessQuotaOrBuilder getQuotaOrBuilder() { + if (quotaBuilder_ != null) { + return quotaBuilder_.getMessageOrBuilder(); + } else { + return quota_ == null + ? com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() + : quota_; + } + } + /** + * + * + *
+     * The quota state for this Analytics property including this request. This
+     * field doesn't work with account-level requests.
+     * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuota, + com.google.analytics.admin.v1beta.AccessQuota.Builder, + com.google.analytics.admin.v1beta.AccessQuotaOrBuilder> + getQuotaFieldBuilder() { + if (quotaBuilder_ == null) { + quotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.AccessQuota, + com.google.analytics.admin.v1beta.AccessQuota.Builder, + com.google.analytics.admin.v1beta.AccessQuotaOrBuilder>( + getQuota(), getParentForChildren(), isClean()); + quota_ = null; + } + return quotaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.RunAccessReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.RunAccessReportResponse) + private static final com.google.analytics.admin.v1beta.RunAccessReportResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.RunAccessReportResponse(); + } + + public static com.google.analytics.admin.v1beta.RunAccessReportResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunAccessReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.RunAccessReportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponseOrBuilder.java new file mode 100644 index 000000000000..53902962941d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponseOrBuilder.java @@ -0,0 +1,266 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface RunAccessReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.RunAccessReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + java.util.List getDimensionHeadersList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + com.google.analytics.admin.v1beta.AccessDimensionHeader getDimensionHeaders(int index); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + int getDimensionHeadersCount(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + java.util.List + getDimensionHeadersOrBuilderList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
+   * matches the dimensions present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; + * + */ + com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index); + + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + java.util.List getMetricHeadersList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + com.google.analytics.admin.v1beta.AccessMetricHeader getMetricHeaders(int index); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + int getMetricHeadersCount(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + java.util.List + getMetricHeadersOrBuilderList(); + /** + * + * + *
+   * The header for a column in the report that corresponds to a specific
+   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
+   * the metrics present in rows.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; + */ + com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + java.util.List getRowsList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + com.google.analytics.admin.v1beta.AccessRow getRows(int index); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + int getRowsCount(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + java.util.List + getRowsOrBuilderList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; + */ + com.google.analytics.admin.v1beta.AccessRowOrBuilder getRowsOrBuilder(int index); + + /** + * + * + *
+   * The total number of rows in the query result. `rowCount` is independent of
+   * the number of rows returned in the response, the `limit` request
+   * parameter, and the `offset` request parameter. For example if a query
+   * returns 175 rows and includes `limit` of 50 in the API request, the
+   * response will contain `rowCount` of 175 but only 50 rows.
+   *
+   * To learn more about this pagination parameter, see
+   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
+   * 
+ * + * int32 row_count = 4; + * + * @return The rowCount. + */ + int getRowCount(); + + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + * + * @return Whether the quota field is set. + */ + boolean hasQuota(); + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + * + * @return The quota. + */ + com.google.analytics.admin.v1beta.AccessQuota getQuota(); + /** + * + * + *
+   * The quota state for this Analytics property including this request. This
+   * field doesn't work with account-level requests.
+   * 
+ * + * .google.analytics.admin.v1beta.AccessQuota quota = 5; + */ + com.google.analytics.admin.v1beta.AccessQuotaOrBuilder getQuotaOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java new file mode 100644 index 000000000000..44bfe1aec57b --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java @@ -0,0 +1,2927 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for SearchChangeHistoryEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} + */ +public final class SearchChangeHistoryEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) + SearchChangeHistoryEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsRequest.newBuilder() to construct. + private SearchChangeHistoryEventsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsRequest() { + account_ = ""; + property_ = ""; + resourceType_ = java.util.Collections.emptyList(); + action_ = java.util.Collections.emptyList(); + actorEmail_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object account_ = ""; + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object property_ = ""; + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List resourceType_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType> + resourceType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType>() { + public com.google.analytics.admin.v1beta.ChangeHistoryResourceType convert( + java.lang.Integer from) { + com.google.analytics.admin.v1beta.ChangeHistoryResourceType result = + com.google.analytics.admin.v1beta.ChangeHistoryResourceType.forNumber(from); + return result == null + ? com.google.analytics.admin.v1beta.ChangeHistoryResourceType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + @java.lang.Override + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + @java.lang.Override + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + @java.lang.Override + public java.util.List getResourceTypeValueList() { + return resourceType_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + @java.lang.Override + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + + private int resourceTypeMemoizedSerializedSize; + + public static final int ACTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List action_; + + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1beta.ActionType> + action_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1beta.ActionType>() { + public com.google.analytics.admin.v1beta.ActionType convert(java.lang.Integer from) { + com.google.analytics.admin.v1beta.ActionType result = + com.google.analytics.admin.v1beta.ActionType.forNumber(from); + return result == null + ? com.google.analytics.admin.v1beta.ActionType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + @java.lang.Override + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1beta.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + @java.lang.Override + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + @java.lang.Override + public java.util.List getActionValueList() { + return action_; + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + @java.lang.Override + public int getActionValue(int index) { + return action_.get(index); + } + + private int actionMemoizedSerializedSize; + + public static final int ACTOR_EMAIL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList actorEmail_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + return actorEmail_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + + public static final int EARLIEST_CHANGE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp earliestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + @java.lang.Override + public boolean hasEarliestChangeTime() { + return earliestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEarliestChangeTime() { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + + public static final int LATEST_CHANGE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp latestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + @java.lang.Override + public boolean hasLatestChangeTime() { + return latestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestChangeTime() { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_ = 0; + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getSerializedSize(); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); + } + if (getResourceTypeList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(resourceTypeMemoizedSerializedSize); + } + for (int i = 0; i < resourceType_.size(); i++) { + output.writeEnumNoTag(resourceType_.get(i)); + } + if (getActionList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(actionMemoizedSerializedSize); + } + for (int i = 0; i < action_.size(); i++) { + output.writeEnumNoTag(action_.get(i)); + } + for (int i = 0; i < actorEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorEmail_.getRaw(i)); + } + if (earliestChangeTime_ != null) { + output.writeMessage(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + output.writeMessage(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); + } + 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(account_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); + } + { + int dataSize = 0; + for (int i = 0; i < resourceType_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(resourceType_.get(i)); + } + size += dataSize; + if (!getResourceTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + resourceTypeMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < action_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(action_.get(i)); + } + size += dataSize; + if (!getActionList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + actionMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < actorEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(actorEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getActorEmailList().size(); + } + if (earliestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); + } + 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.admin.v1beta.SearchChangeHistoryEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest other = + (com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) obj; + + if (!getAccount().equals(other.getAccount())) return false; + if (!getProperty().equals(other.getProperty())) return false; + if (!resourceType_.equals(other.resourceType_)) return false; + if (!action_.equals(other.action_)) return false; + if (!getActorEmailList().equals(other.getActorEmailList())) return false; + if (hasEarliestChangeTime() != other.hasEarliestChangeTime()) return false; + if (hasEarliestChangeTime()) { + if (!getEarliestChangeTime().equals(other.getEarliestChangeTime())) return false; + } + if (hasLatestChangeTime() != other.hasLatestChangeTime()) return false; + if (hasLatestChangeTime()) { + if (!getLatestChangeTime().equals(other.getLatestChangeTime())) return false; + } + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) 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) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + if (getResourceTypeCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_.hashCode(); + } + if (getActionCount() > 0) { + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_.hashCode(); + } + if (getActorEmailCount() > 0) { + hash = (37 * hash) + ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getActorEmailList().hashCode(); + } + if (hasEarliestChangeTime()) { + hash = (37 * hash) + EARLIEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEarliestChangeTime().hashCode(); + } + if (hasLatestChangeTime()) { + hash = (37 * hash) + LATEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestChangeTime().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for SearchChangeHistoryEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + account_ = ""; + property_ = ""; + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + actorEmail_ = com.google.protobuf.LazyStringArrayList.emptyList(); + earliestChangeTime_ = null; + if (earliestChangeTimeBuilder_ != null) { + earliestChangeTimeBuilder_.dispose(); + earliestChangeTimeBuilder_ = null; + } + latestChangeTime_ = null; + if (latestChangeTimeBuilder_ != null) { + latestChangeTimeBuilder_.dispose(); + latestChangeTimeBuilder_ = null; + } + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest build() { + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest buildPartial() { + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result = + new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result) { + if (((bitField0_ & 0x00000004) != 0)) { + resourceType_ = java.util.Collections.unmodifiableList(resourceType_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.resourceType_ = resourceType_; + if (((bitField0_ & 0x00000008) != 0)) { + action_ = java.util.Collections.unmodifiableList(action_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.action_ = action_; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.account_ = account_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.property_ = property_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + actorEmail_.makeImmutable(); + result.actorEmail_ = actorEmail_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.earliestChangeTime_ = + earliestChangeTimeBuilder_ == null + ? earliestChangeTime_ + : earliestChangeTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.latestChangeTime_ = + latestChangeTimeBuilder_ == null ? latestChangeTime_ : latestChangeTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest other) { + if (other + == com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + .getDefaultInstance()) return this; + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.resourceType_.isEmpty()) { + if (resourceType_.isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureResourceTypeIsMutable(); + resourceType_.addAll(other.resourceType_); + } + onChanged(); + } + if (!other.action_.isEmpty()) { + if (action_.isEmpty()) { + action_ = other.action_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureActionIsMutable(); + action_.addAll(other.action_); + } + onChanged(); + } + if (!other.actorEmail_.isEmpty()) { + if (actorEmail_.isEmpty()) { + actorEmail_ = other.actorEmail_; + bitField0_ |= 0x00000010; + } else { + ensureActorEmailIsMutable(); + actorEmail_.addAll(other.actorEmail_); + } + onChanged(); + } + if (other.hasEarliestChangeTime()) { + mergeEarliestChangeTime(other.getEarliestChangeTime()); + } + if (other.hasLatestChangeTime()) { + mergeLatestChangeTime(other.getLatestChangeTime()); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000100; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + account_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + property_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + int tmpRaw = input.readEnum(); + ensureResourceTypeIsMutable(); + resourceType_.add(tmpRaw); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureResourceTypeIsMutable(); + resourceType_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 26 + case 32: + { + int tmpRaw = input.readEnum(); + ensureActionIsMutable(); + action_.add(tmpRaw); + break; + } // case 32 + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureActionIsMutable(); + action_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureActorEmailIsMutable(); + actorEmail_.add(s); + break; + } // case 42 + case 50: + { + input.readMessage( + getEarliestChangeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + getLatestChangeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 64: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object account_ = ""; + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + account_ = getDefaultInstance().getAccount(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history
+     * resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + account_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + property_ = getDefaultInstance().getProperty(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + property_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List resourceType_ = java.util.Collections.emptyList(); + + private void ensureResourceTypeIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + resourceType_ = new java.util.ArrayList(resourceType_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + public com.google.analytics.admin.v1beta.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType( + int index, com.google.analytics.admin.v1beta.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceType( + com.google.analytics.admin.v1beta.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceType( + java.lang.Iterable + values) { + ensureResourceTypeIsMutable(); + for (com.google.analytics.admin.v1beta.ChangeHistoryResourceType value : values) { + resourceType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + public java.util.List getResourceTypeValueList() { + return java.util.Collections.unmodifiableList(resourceType_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int index, int value) { + ensureResourceTypeIsMutable(); + resourceType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceTypeValue(int value) { + ensureResourceTypeIsMutable(); + resourceType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that
+     * matches at least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceTypeValue(java.lang.Iterable values) { + ensureResourceTypeIsMutable(); + for (int value : values) { + resourceType_.add(value); + } + onChanged(); + return this; + } + + private java.util.List action_ = java.util.Collections.emptyList(); + + private void ensureActionIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + action_ = new java.util.ArrayList(action_); + bitField0_ |= 0x00000008; + } + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1beta.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + public com.google.analytics.admin.v1beta.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(int index, com.google.analytics.admin.v1beta.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The action to add. + * @return This builder for chaining. + */ + public Builder addAction(com.google.analytics.admin.v1beta.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The action to add. + * @return This builder for chaining. + */ + public Builder addAllAction( + java.lang.Iterable values) { + ensureActionIsMutable(); + for (com.google.analytics.admin.v1beta.ActionType value : values) { + action_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + public java.util.List getActionValueList() { + return java.util.Collections.unmodifiableList(action_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + public int getActionValue(int index) { + return action_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int index, int value) { + ensureActionIsMutable(); + action_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addActionValue(int value) { + ensureActionIsMutable(); + action_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types
+     * of actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addAllActionValue(java.lang.Iterable values) { + ensureActionIsMutable(); + for (int value : values) { + action_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList actorEmail_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureActorEmailIsMutable() { + if (!actorEmail_.isModifiable()) { + actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); + } + bitField0_ |= 0x00000010; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + actorEmail_.makeImmutable(); + return actorEmail_; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The actorEmail to set. + * @return This builder for chaining. + */ + public Builder setActorEmail(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addAllActorEmail(java.lang.Iterable values) { + ensureActorEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actorEmail_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearActorEmail() { + actorEmail_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this
+     * list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureActorEmailIsMutable(); + actorEmail_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp earliestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + earliestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + public boolean hasEarliestChangeTime() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + public com.google.protobuf.Timestamp getEarliestChangeTime() { + if (earliestChangeTimeBuilder_ == null) { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } else { + return earliestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earliestChangeTime_ = value; + } else { + earliestChangeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = builderForValue.build(); + } else { + earliestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && earliestChangeTime_ != null + && earliestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEarliestChangeTimeBuilder().mergeFrom(value); + } else { + earliestChangeTime_ = value; + } + } else { + earliestChangeTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEarliestChangeTime() { + bitField0_ = (bitField0_ & ~0x00000020); + earliestChangeTime_ = null; + if (earliestChangeTimeBuilder_ != null) { + earliestChangeTimeBuilder_.dispose(); + earliestChangeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEarliestChangeTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getEarliestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + if (earliestChangeTimeBuilder_ != null) { + return earliestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEarliestChangeTimeFieldBuilder() { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestChangeTime(), getParentForChildren(), isClean()); + earliestChangeTime_ = null; + } + return earliestChangeTimeBuilder_; + } + + private com.google.protobuf.Timestamp latestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + public boolean hasLatestChangeTime() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + public com.google.protobuf.Timestamp getLatestChangeTime() { + if (latestChangeTimeBuilder_ == null) { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } else { + return latestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestChangeTime_ = value; + } else { + latestChangeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = builderForValue.build(); + } else { + latestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && latestChangeTime_ != null + && latestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLatestChangeTimeBuilder().mergeFrom(value); + } else { + latestChangeTime_ = value; + } + } else { + latestChangeTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLatestChangeTime() { + bitField0_ = (bitField0_ & ~0x00000040); + latestChangeTime_ = null; + if (latestChangeTimeBuilder_ != null) { + latestChangeTimeBuilder_.dispose(); + latestChangeTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getLatestChangeTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getLatestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + if (latestChangeTimeBuilder_ != null) { + return latestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestChangeTimeFieldBuilder() { + if (latestChangeTimeBuilder_ == null) { + latestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestChangeTime(), getParentForChildren(), isClean()); + latestChangeTime_ = null; + } + return latestChangeTimeBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000080); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous
+     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+     * page. When paginating, all other parameters provided to
+     * `SearchChangeHistoryEvents` must match the call that provided the page
+     * token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) + private static final com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest(); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java new file mode 100644 index 000000000000..6e8eb2c636d6 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java @@ -0,0 +1,429 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface SearchChangeHistoryEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Required. The account resource for which to return change history
+   * resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); + + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + java.util.List getResourceTypeList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + int getResourceTypeCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + com.google.analytics.admin.v1beta.ChangeHistoryResourceType getResourceType(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + java.util.List getResourceTypeValueList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that
+   * matches at least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + int getResourceTypeValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + java.util.List getActionList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + int getActionCount(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + com.google.analytics.admin.v1beta.ActionType getAction(int index); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + java.util.List getActionValueList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types
+   * of actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + int getActionValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + java.util.List getActorEmailList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + int getActorEmailCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + java.lang.String getActorEmail(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this
+   * list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + com.google.protobuf.ByteString getActorEmailBytes(int index); + + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + boolean hasEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + com.google.protobuf.Timestamp getEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + boolean hasLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + com.google.protobuf.Timestamp getLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous
+   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
+   * page. When paginating, all other parameters provided to
+   * `SearchChangeHistoryEvents` must match the call that provided the page
+   * token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java new file mode 100644 index 000000000000..755e7d4bd8eb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java @@ -0,0 +1,1179 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Response message for SearchAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} + */ +public final class SearchChangeHistoryEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) + SearchChangeHistoryEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsResponse.newBuilder() to construct. + private SearchChangeHistoryEventsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsResponse() { + changeHistoryEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.Builder.class); + } + + public static final int CHANGE_HISTORY_EVENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List changeHistoryEvents_; + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsOrBuilderList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public int getChangeHistoryEventsCount() { + return changeHistoryEvents_.size(); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryEvent getChangeHistoryEvents(int index) { + return changeHistoryEvents_.get(index); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + return changeHistoryEvents_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < changeHistoryEvents_.size(); i++) { + output.writeMessage(1, changeHistoryEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < changeHistoryEvents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, changeHistoryEvents_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + 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.admin.v1beta.SearchChangeHistoryEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse other = + (com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) obj; + + if (!getChangeHistoryEventsList().equals(other.getChangeHistoryEventsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getChangeHistoryEventsCount() > 0) { + hash = (37 * hash) + CHANGE_HISTORY_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getChangeHistoryEventsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Response message for SearchAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + } else { + changeHistoryEvents_ = null; + changeHistoryEventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse build() { + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse buildPartial() { + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result = + new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result) { + if (changeHistoryEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changeHistoryEvents_ = changeHistoryEvents_; + } else { + result.changeHistoryEvents_ = changeHistoryEventsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse other) { + if (other + == com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + .getDefaultInstance()) return this; + if (changeHistoryEventsBuilder_ == null) { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEvents_.isEmpty()) { + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.addAll(other.changeHistoryEvents_); + } + onChanged(); + } + } else { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEventsBuilder_.isEmpty()) { + changeHistoryEventsBuilder_.dispose(); + changeHistoryEventsBuilder_ = null; + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + changeHistoryEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangeHistoryEventsFieldBuilder() + : null; + } else { + changeHistoryEventsBuilder_.addAllMessages(other.changeHistoryEvents_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.admin.v1beta.ChangeHistoryEvent m = + input.readMessage( + com.google.analytics.admin.v1beta.ChangeHistoryEvent.parser(), + extensionRegistry); + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(m); + } else { + changeHistoryEventsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List + changeHistoryEvents_ = java.util.Collections.emptyList(); + + private void ensureChangeHistoryEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = + new java.util.ArrayList( + changeHistoryEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryEvent, + com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder> + changeHistoryEventsBuilder_; + + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsList() { + if (changeHistoryEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } else { + return changeHistoryEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public int getChangeHistoryEventsCount() { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.size(); + } else { + return changeHistoryEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryEvent getChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1beta.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addAllChangeHistoryEvents( + java.lang.Iterable values) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changeHistoryEvents_); + onChanged(); + } else { + changeHistoryEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder clearChangeHistoryEvents() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changeHistoryEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder removeChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.remove(index); + onChanged(); + } else { + changeHistoryEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder + getChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsOrBuilderList() { + if (changeHistoryEventsBuilder_ != null) { + return changeHistoryEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder() { + return getChangeHistoryEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsBuilderList() { + return getChangeHistoryEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryEvent, + com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder> + getChangeHistoryEventsFieldBuilder() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1beta.ChangeHistoryEvent, + com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder>( + changeHistoryEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + changeHistoryEvents_ = null; + } + return changeHistoryEventsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) + private static final com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse(); + } + + public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java new file mode 100644 index 000000000000..f3f301745050 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface SearchChangeHistoryEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List getChangeHistoryEventsList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1beta.ChangeHistoryEvent getChangeHistoryEvents(int index); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + int getChangeHistoryEventsCount(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List + getChangeHistoryEventsOrBuilderList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( + int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java new file mode 100644 index 000000000000..c0ffc970106f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java @@ -0,0 +1,176 @@ +/* + * 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/admin/v1beta/resources.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Various levels of service for Google Analytics.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1beta.ServiceLevel} + */ +public enum ServiceLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Service level not specified or invalid.
+   * 
+ * + * SERVICE_LEVEL_UNSPECIFIED = 0; + */ + SERVICE_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * The standard version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_STANDARD = 1; + */ + GOOGLE_ANALYTICS_STANDARD(1), + /** + * + * + *
+   * The paid, premium version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_360 = 2; + */ + GOOGLE_ANALYTICS_360(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Service level not specified or invalid.
+   * 
+ * + * SERVICE_LEVEL_UNSPECIFIED = 0; + */ + public static final int SERVICE_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The standard version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_STANDARD = 1; + */ + public static final int GOOGLE_ANALYTICS_STANDARD_VALUE = 1; + /** + * + * + *
+   * The paid, premium version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_360 = 2; + */ + public static final int GOOGLE_ANALYTICS_360_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ServiceLevel 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 ServiceLevel forNumber(int value) { + switch (value) { + case 0: + return SERVICE_LEVEL_UNSPECIFIED; + case 1: + return GOOGLE_ANALYTICS_STANDARD; + case 2: + return GOOGLE_ANALYTICS_360; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ServiceLevel findValueByNumber(int number) { + return ServiceLevel.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(1); + } + + private static final ServiceLevel[] VALUES = values(); + + public static ServiceLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ServiceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ServiceLevel) +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java new file mode 100644 index 000000000000..da7b1ee155b7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java @@ -0,0 +1,1050 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateAccount RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateAccountRequest} + */ +public final class UpdateAccountRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateAccountRequest) + UpdateAccountRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateAccountRequest.newBuilder() to construct. + private UpdateAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateAccountRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateAccountRequest.class, + com.google.analytics.admin.v1beta.UpdateAccountRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.Account account_; + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return account_ != null; + } + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Account getAccount() { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (account_ != null) { + output.writeMessage(1, getAccount()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (account_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccount()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdateAccountRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateAccountRequest other = + (com.google.analytics.admin.v1beta.UpdateAccountRequest) obj; + + if (hasAccount() != other.hasAccount()) return false; + if (hasAccount()) { + if (!getAccount().equals(other.getAccount())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasAccount()) { + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateAccount RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateAccountRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateAccountRequest) + com.google.analytics.admin.v1beta.UpdateAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateAccountRequest.class, + com.google.analytics.admin.v1beta.UpdateAccountRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdateAccountRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateAccountRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateAccountRequest build() { + com.google.analytics.admin.v1beta.UpdateAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateAccountRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateAccountRequest result = + new com.google.analytics.admin.v1beta.UpdateAccountRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.UpdateAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.account_ = accountBuilder_ == null ? account_ : accountBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateAccountRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdateAccountRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateAccountRequest other) { + if (other == com.google.analytics.admin.v1beta.UpdateAccountRequest.getDefaultInstance()) + return this; + if (other.hasAccount()) { + mergeAccount(other.getAccount()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAccountFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.Account account_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the account field is set. + */ + public boolean hasAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The account. + */ + public com.google.analytics.admin.v1beta.Account getAccount() { + if (accountBuilder_ == null) { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } else { + return accountBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccount(com.google.analytics.admin.v1beta.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + account_ = value; + } else { + accountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccount(com.google.analytics.admin.v1beta.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + account_ = builderForValue.build(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccount(com.google.analytics.admin.v1beta.Account value) { + if (accountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && account_ != null + && account_ != com.google.analytics.admin.v1beta.Account.getDefaultInstance()) { + getAccountBuilder().mergeFrom(value); + } else { + account_ = value; + } + } else { + accountBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccount() { + bitField0_ = (bitField0_ & ~0x00000001); + account_ = null; + if (accountBuilder_ != null) { + accountBuilder_.dispose(); + accountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.Account.Builder getAccountBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { + if (accountBuilder_ != null) { + return accountBuilder_.getMessageOrBuilder(); + } else { + return account_ == null + ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() + : account_; + } + } + /** + * + * + *
+     * Required. The account to update.
+     * The account's `name` field is used to identify the account.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Account, + com.google.analytics.admin.v1beta.Account.Builder, + com.google.analytics.admin.v1beta.AccountOrBuilder>( + getAccount(), getParentForChildren(), isClean()); + account_ = null; + } + return accountBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (for example, "field_to_update"). Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateAccountRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateAccountRequest) + private static final com.google.analytics.admin.v1beta.UpdateAccountRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateAccountRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAccountRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java new file mode 100644 index 000000000000..eeeb90b8a5a5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateAccountRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The account. + */ + com.google.analytics.admin.v1beta.Account getAccount(); + /** + * + * + *
+   * Required. The account to update.
+   * The account's `name` field is used to identify the account.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (for example, "field_to_update"). Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequest.java new file mode 100644 index 000000000000..db0ef16f5a7d --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequest.java @@ -0,0 +1,1060 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateConversionEventRequest} + */ +public final class UpdateConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateConversionEventRequest) + UpdateConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateConversionEventRequest.newBuilder() to construct. + private UpdateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateConversionEventRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateConversionEventRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest.class, + com.google.analytics.admin.v1beta.UpdateConversionEventRequest.Builder.class); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return conversionEvent_ != null; + } + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (conversionEvent_ != null) { + output.writeMessage(1, getConversionEvent()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversionEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversionEvent()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdateConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateConversionEventRequest other = + (com.google.analytics.admin.v1beta.UpdateConversionEventRequest) obj; + + if (hasConversionEvent() != other.hasConversionEvent()) return false; + if (hasConversionEvent()) { + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasConversionEvent()) { + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateConversionEventRequest) + com.google.analytics.admin.v1beta.UpdateConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest.class, + com.google.analytics.admin.v1beta.UpdateConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdateConversionEventRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateConversionEventRequest build() { + com.google.analytics.admin.v1beta.UpdateConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateConversionEventRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateConversionEventRequest result = + new com.google.analytics.admin.v1beta.UpdateConversionEventRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.UpdateConversionEventRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.conversionEvent_ = + conversionEventBuilder_ == null ? conversionEvent_ : conversionEventBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdateConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1beta.UpdateConversionEventRequest.getDefaultInstance()) + return this; + if (other.hasConversionEvent()) { + mergeConversionEvent(other.getConversionEvent()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getConversionEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + public boolean hasConversionEvent() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } else { + return conversionEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionEvent_ = value; + } else { + conversionEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + conversionEvent_ = builderForValue.build(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && conversionEvent_ != null + && conversionEvent_ + != com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) { + getConversionEventBuilder().mergeFrom(value); + } else { + conversionEvent_ = value; + } + } else { + conversionEventBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionEvent() { + bitField0_ = (bitField0_ & ~0x00000001); + conversionEvent_ = null; + if (conversionEventBuilder_ != null) { + conversionEventBuilder_.dispose(); + conversionEventBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (conversionEventBuilder_ != null) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + return conversionEvent_ == null + ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + } + /** + * + * + *
+     * Required. The conversion event to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.ConversionEvent, + com.google.analytics.admin.v1beta.ConversionEvent.Builder, + com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( + getConversionEvent(), getParentForChildren(), isClean()); + conversionEvent_ = null; + } + return conversionEventBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateConversionEventRequest) + private static final com.google.analytics.admin.v1beta.UpdateConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateConversionEventRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequestOrBuilder.java new file mode 100644 index 000000000000..fb207bc8b46f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java new file mode 100644 index 000000000000..08b7d24e3420 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java @@ -0,0 +1,1012 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomDimensionRequest} + */ +public final class UpdateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) + UpdateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomDimensionRequest.newBuilder() to construct. + private UpdateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomDimensionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomDimensionRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.Builder.class); + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.CustomDimension customDimension_; + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (customDimension_ != null) { + output.writeMessage(1, getCustomDimension()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomDimension()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest other = + (com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) obj; + + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest build() { + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest result = + new com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customDimension_ = + customDimensionBuilder_ == null ? customDimension_ : customDimensionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.getDefaultInstance()) + return this; + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCustomDimensionFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + } else { + customDimensionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customDimension_ != null + && customDimension_ + != com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()) { + getCustomDimensionBuilder().mergeFrom(value); + } else { + customDimension_ = value; + } + } else { + customDimensionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + public Builder clearCustomDimension() { + bitField0_ = (bitField0_ & ~0x00000001); + customDimension_ = null; + if (customDimensionBuilder_ != null) { + customDimensionBuilder_.dispose(); + customDimensionBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1beta.CustomDimension.Builder getCustomDimensionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomDimension, + com.google.analytics.admin.v1beta.CustomDimension.Builder, + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) + private static final com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java new file mode 100644 index 000000000000..5430b88789fb --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + com.google.analytics.admin.v1beta.CustomDimension getCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; + */ + com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java new file mode 100644 index 000000000000..2e6dde991686 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java @@ -0,0 +1,1005 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomMetricRequest} + */ +public final class UpdateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateCustomMetricRequest) + UpdateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomMetricRequest.newBuilder() to construct. + private UpdateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomMetricRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomMetricRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.Builder.class); + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.CustomMetric customMetric_; + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (customMetric_ != null) { + output.writeMessage(1, getCustomMetric()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomMetric()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest other = + (com.google.analytics.admin.v1beta.UpdateCustomMetricRequest) obj; + + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateCustomMetricRequest) + com.google.analytics.admin.v1beta.UpdateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest build() { + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateCustomMetricRequest result = + new com.google.analytics.admin.v1beta.UpdateCustomMetricRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customMetric_ = + customMetricBuilder_ == null ? customMetric_ : customMetricBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest other) { + if (other == com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.getDefaultInstance()) + return this; + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCustomMetricFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + } else { + customMetricBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && customMetric_ != null + && customMetric_ + != com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()) { + getCustomMetricBuilder().mergeFrom(value); + } else { + customMetric_ = value; + } + } else { + customMetricBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + public Builder clearCustomMetric() { + bitField0_ = (bitField0_ & ~0x00000001); + customMetric_ = null; + if (customMetricBuilder_ != null) { + customMetricBuilder_.dispose(); + customMetricBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1beta.CustomMetric.Builder getCustomMetricBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.CustomMetric, + com.google.analytics.admin.v1beta.CustomMetric.Builder, + com.google.analytics.admin.v1beta.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateCustomMetricRequest) + private static final com.google.analytics.admin.v1beta.UpdateCustomMetricRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java new file mode 100644 index 000000000000..8afe00aaac80 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + com.google.analytics.admin.v1beta.CustomMetric getCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; + */ + com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java new file mode 100644 index 000000000000..8bbdfed64926 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java @@ -0,0 +1,1074 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateDataRetentionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} + */ +public final class UpdateDataRetentionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) + UpdateDataRetentionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataRetentionSettingsRequest.newBuilder() to construct. + private UpdateDataRetentionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataRetentionSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataRetentionSettingsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.Builder.class); + } + + public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.DataRetentionSettings dataRetentionSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return dataRetentionSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (dataRetentionSettings_ != null) { + output.writeMessage(1, getDataRetentionSettings()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataRetentionSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataRetentionSettings()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdateDataRetentionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest other = + (com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) obj; + + if (hasDataRetentionSettings() != other.hasDataRetentionSettings()) return false; + if (hasDataRetentionSettings()) { + if (!getDataRetentionSettings().equals(other.getDataRetentionSettings())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasDataRetentionSettings()) { + hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRetentionSettings().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateDataRetentionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataRetentionSettings_ = null; + if (dataRetentionSettingsBuilder_ != null) { + dataRetentionSettingsBuilder_.dispose(); + dataRetentionSettingsBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest build() { + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest result = + new com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataRetentionSettings_ = + dataRetentionSettingsBuilder_ == null + ? dataRetentionSettings_ + : dataRetentionSettingsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + .getDefaultInstance()) return this; + if (other.hasDataRetentionSettings()) { + mergeDataRetentionSettings(other.getDataRetentionSettings()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDataRetentionSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.DataRetentionSettings dataRetentionSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataRetentionSettings, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> + dataRetentionSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + public boolean hasDataRetentionSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRetentionSettings. + */ + public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } else { + return dataRetentionSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1beta.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataRetentionSettings_ = value; + } else { + dataRetentionSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder builderForValue) { + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettings_ = builderForValue.build(); + } else { + dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDataRetentionSettings( + com.google.analytics.admin.v1beta.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataRetentionSettings_ != null + && dataRetentionSettings_ + != com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance()) { + getDataRetentionSettingsBuilder().mergeFrom(value); + } else { + dataRetentionSettings_ = value; + } + } else { + dataRetentionSettingsBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDataRetentionSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + dataRetentionSettings_ = null; + if (dataRetentionSettingsBuilder_ != null) { + dataRetentionSettingsBuilder_.dispose(); + dataRetentionSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.DataRetentionSettings.Builder + getDataRetentionSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataRetentionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if (dataRetentionSettingsBuilder_ != null) { + return dataRetentionSettingsBuilder_.getMessageOrBuilder(); + } else { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataRetentionSettings, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> + getDataRetentionSettingsFieldBuilder() { + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataRetentionSettings, + com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder>( + getDataRetentionSettings(), getParentForChildren(), isClean()); + dataRetentionSettings_ = null; + } + return dataRetentionSettingsBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) + private static final com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataRetentionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..c3e61a52febe --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateDataRetentionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + boolean hasDataRetentionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The dataRetentionSettings. + */ + com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java new file mode 100644 index 000000000000..c5af4148ef9f --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java @@ -0,0 +1,1003 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateDataStream RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataStreamRequest} + */ +public final class UpdateDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateDataStreamRequest) + UpdateDataStreamRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDataStreamRequest.newBuilder() to construct. + private UpdateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDataStreamRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDataStreamRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest.class, + com.google.analytics.admin.v1beta.UpdateDataStreamRequest.Builder.class); + } + + public static final int DATA_STREAM_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.DataStream dataStream_; + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + @java.lang.Override + public boolean hasDataStream() { + return dataStream_ != null; + } + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + * + * @return The dataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStream getDataStream() { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataStream_ != null) { + output.writeMessage(1, getDataStream()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataStream_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataStream()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += 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.admin.v1beta.UpdateDataStreamRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateDataStreamRequest other = + (com.google.analytics.admin.v1beta.UpdateDataStreamRequest) obj; + + if (hasDataStream() != other.hasDataStream()) return false; + if (hasDataStream()) { + if (!getDataStream().equals(other.getDataStream())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!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 (hasDataStream()) { + hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getDataStream().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateDataStream RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataStreamRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateDataStreamRequest) + com.google.analytics.admin.v1beta.UpdateDataStreamRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateDataStreamRequest.class, + com.google.analytics.admin.v1beta.UpdateDataStreamRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdateDataStreamRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataStreamRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateDataStreamRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataStreamRequest build() { + com.google.analytics.admin.v1beta.UpdateDataStreamRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataStreamRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateDataStreamRequest result = + new com.google.analytics.admin.v1beta.UpdateDataStreamRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.UpdateDataStreamRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dataStream_ = dataStreamBuilder_ == null ? dataStream_ : dataStreamBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateDataStreamRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdateDataStreamRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateDataStreamRequest other) { + if (other == com.google.analytics.admin.v1beta.UpdateDataStreamRequest.getDefaultInstance()) + return this; + if (other.hasDataStream()) { + mergeDataStream(other.getDataStream()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getDataStreamFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.DataStream dataStream_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + dataStreamBuilder_; + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + public boolean hasDataStream() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + * + * @return The dataStream. + */ + public com.google.analytics.admin.v1beta.DataStream getDataStream() { + if (dataStreamBuilder_ == null) { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } else { + return dataStreamBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + public Builder setDataStream(com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataStream_ = value; + } else { + dataStreamBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + public Builder setDataStream( + com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { + if (dataStreamBuilder_ == null) { + dataStream_ = builderForValue.build(); + } else { + dataStreamBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + public Builder mergeDataStream(com.google.analytics.admin.v1beta.DataStream value) { + if (dataStreamBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && dataStream_ != null + && dataStream_ != com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) { + getDataStreamBuilder().mergeFrom(value); + } else { + dataStream_ = value; + } + } else { + dataStreamBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + public Builder clearDataStream() { + bitField0_ = (bitField0_ & ~0x00000001); + dataStream_ = null; + if (dataStreamBuilder_ != null) { + dataStreamBuilder_.dispose(); + dataStreamBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { + if (dataStreamBuilder_ != null) { + return dataStreamBuilder_.getMessageOrBuilder(); + } else { + return dataStream_ == null + ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() + : dataStream_; + } + } + /** + * + * + *
+     * The DataStream to update
+     * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder> + getDataStreamFieldBuilder() { + if (dataStreamBuilder_ == null) { + dataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.DataStream, + com.google.analytics.admin.v1beta.DataStream.Builder, + com.google.analytics.admin.v1beta.DataStreamOrBuilder>( + getDataStream(), getParentForChildren(), isClean()); + dataStream_ = null; + } + return dataStreamBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated. To replace the entire entity, use one path with the string "*" to
+     * match all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateDataStreamRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateDataStreamRequest) + private static final com.google.analytics.admin.v1beta.UpdateDataStreamRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateDataStreamRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDataStreamRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateDataStreamRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java new file mode 100644 index 000000000000..510efe7986fe --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateDataStreamRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateDataStreamRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + * + * @return Whether the dataStream field is set. + */ + boolean hasDataStream(); + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + * + * @return The dataStream. + */ + com.google.analytics.admin.v1beta.DataStream getDataStream(); + /** + * + * + *
+   * The DataStream to update
+   * 
+ * + * .google.analytics.admin.v1beta.DataStream data_stream = 1; + */ + com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated. To replace the entire entity, use one path with the string "*" to
+   * match all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java new file mode 100644 index 000000000000..b6d86a0ab674 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java @@ -0,0 +1,1021 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateGoogleAdsLink RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} + */ +public final class UpdateGoogleAdsLinkRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) + UpdateGoogleAdsLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateGoogleAdsLinkRequest.newBuilder() to construct. + private UpdateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateGoogleAdsLinkRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGoogleAdsLinkRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.Builder.class); + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return googleAdsLink_ != null; + } + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (googleAdsLink_ != null) { + output.writeMessage(1, getGoogleAdsLink()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (googleAdsLink_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGoogleAdsLink()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdateGoogleAdsLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest other = + (com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) obj; + + if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; + if (hasGoogleAdsLink()) { + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasGoogleAdsLink()) { + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateGoogleAdsLink RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.class, + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest build() { + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest result = + new com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.googleAdsLink_ = + googleAdsLinkBuilder_ == null ? googleAdsLink_ : googleAdsLinkBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest other) { + if (other + == com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.getDefaultInstance()) + return this; + if (other.hasGoogleAdsLink()) { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getGoogleAdsLinkFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * + * @return Whether the googleAdsLink field is set. + */ + public boolean hasGoogleAdsLink() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * + * @return The googleAdsLink. + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } else { + return googleAdsLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleAdsLink_ = value; + } else { + googleAdsLinkBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + googleAdsLink_ = builderForValue.build(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && googleAdsLink_ != null + && googleAdsLink_ + != com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) { + getGoogleAdsLinkBuilder().mergeFrom(value); + } else { + googleAdsLink_ = value; + } + } else { + googleAdsLinkBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + public Builder clearGoogleAdsLink() { + bitField0_ = (bitField0_ & ~0x00000001); + googleAdsLink_ = null; + if (googleAdsLinkBuilder_ != null) { + googleAdsLinkBuilder_.dispose(); + googleAdsLinkBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (googleAdsLinkBuilder_ != null) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + return googleAdsLink_ == null + ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() + : googleAdsLink_; + } + } + /** + * + * + *
+     * The GoogleAdsLink to update
+     * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.GoogleAdsLink, + com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( + getGoogleAdsLink(), getParentForChildren(), isClean()); + googleAdsLink_ = null; + } + return googleAdsLinkBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) + private static final com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGoogleAdsLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java new file mode 100644 index 000000000000..e52d288ab3a5 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java @@ -0,0 +1,107 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateGoogleAdsLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+   * The GoogleAdsLink to update
+   * 
+ * + * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; + */ + com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java new file mode 100644 index 000000000000..969a95437bdf --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java @@ -0,0 +1,1049 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} + */ +public final class UpdateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) + UpdateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMeasurementProtocolSecretRequest.newBuilder() to construct. + private UpdateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMeasurementProtocolSecretRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMeasurementProtocolSecretRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.Builder.class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (measurementProtocolSecret_ != null) { + output.writeMessage(1, getMeasurementProtocolSecret()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getMeasurementProtocolSecret()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) obj; + + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.measurementProtocolSecret_ = + measurementProtocolSecretBuilder_ == null + ? measurementProtocolSecret_ + : measurementProtocolSecretBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getMeasurementProtocolSecretFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && measurementProtocolSecret_ != null + && measurementProtocolSecret_ + != com.google.analytics.admin.v1beta.MeasurementProtocolSecret + .getDefaultInstance()) { + getMeasurementProtocolSecretBuilder().mergeFrom(value); + } else { + measurementProtocolSecret_ = value; + } + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + bitField0_ = (bitField0_ & ~0x00000001); + measurementProtocolSecret_ = null; + if (measurementProtocolSecretBuilder_ != null) { + measurementProtocolSecretBuilder_.dispose(); + measurementProtocolSecretBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.MeasurementProtocolSecret, + com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be
+     * updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 000000000000..622f1df497bc --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be
+   * updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java new file mode 100644 index 000000000000..9ac784589e50 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java @@ -0,0 +1,1062 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +/** + * + * + *
+ * Request message for UpdateProperty RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdatePropertyRequest} + */ +public final class UpdatePropertyRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdatePropertyRequest) + UpdatePropertyRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdatePropertyRequest.newBuilder() to construct. + private UpdatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdatePropertyRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdatePropertyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdatePropertyRequest.class, + com.google.analytics.admin.v1beta.UpdatePropertyRequest.Builder.class); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1beta.Property property_; + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return property_ != null; + } + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.Property getProperty() { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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 (property_ != null) { + output.writeMessage(1, getProperty()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (property_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getProperty()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.admin.v1beta.UpdatePropertyRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1beta.UpdatePropertyRequest other = + (com.google.analytics.admin.v1beta.UpdatePropertyRequest) obj; + + if (hasProperty() != other.hasProperty()) return false; + if (hasProperty()) { + if (!getProperty().equals(other.getProperty())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasProperty()) { + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1beta.UpdatePropertyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for UpdateProperty RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1beta.UpdatePropertyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdatePropertyRequest) + com.google.analytics.admin.v1beta.UpdatePropertyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1beta.UpdatePropertyRequest.class, + com.google.analytics.admin.v1beta.UpdatePropertyRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1beta.UpdatePropertyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1beta.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdatePropertyRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1beta.UpdatePropertyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdatePropertyRequest build() { + com.google.analytics.admin.v1beta.UpdatePropertyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdatePropertyRequest buildPartial() { + com.google.analytics.admin.v1beta.UpdatePropertyRequest result = + new com.google.analytics.admin.v1beta.UpdatePropertyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1beta.UpdatePropertyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.property_ = propertyBuilder_ == null ? property_ : propertyBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1beta.UpdatePropertyRequest) { + return mergeFrom((com.google.analytics.admin.v1beta.UpdatePropertyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdatePropertyRequest other) { + if (other == com.google.analytics.admin.v1beta.UpdatePropertyRequest.getDefaultInstance()) + return this; + if (other.hasProperty()) { + mergeProperty(other.getProperty()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getPropertyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.analytics.admin.v1beta.Property property_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + public boolean hasProperty() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + public com.google.analytics.admin.v1beta.Property getProperty() { + if (propertyBuilder_ == null) { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } else { + return propertyBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty(com.google.analytics.admin.v1beta.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + property_ = value; + } else { + propertyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setProperty(com.google.analytics.admin.v1beta.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + property_ = builderForValue.build(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeProperty(com.google.analytics.admin.v1beta.Property value) { + if (propertyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && property_ != null + && property_ != com.google.analytics.admin.v1beta.Property.getDefaultInstance()) { + getPropertyBuilder().mergeFrom(value); + } else { + property_ = value; + } + } else { + propertyBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearProperty() { + bitField0_ = (bitField0_ & ~0x00000001); + property_ = null; + if (propertyBuilder_ != null) { + propertyBuilder_.dispose(); + propertyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.Property.Builder getPropertyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { + if (propertyBuilder_ != null) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + return property_ == null + ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() + : property_; + } + } + /** + * + * + *
+     * Required. The property to update.
+     * The property's `name` field is used to identify the property to be
+     * updated.
+     * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1beta.Property, + com.google.analytics.admin.v1beta.Property.Builder, + com.google.analytics.admin.v1beta.PropertyOrBuilder>( + getProperty(), getParentForChildren(), isClean()); + property_ = null; + } + return propertyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Field names must be in snake
+     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+     * replace the entire entity, use one path with the string "*" to match all
+     * fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdatePropertyRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdatePropertyRequest) + private static final com.google.analytics.admin.v1beta.UpdatePropertyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdatePropertyRequest(); + } + + public static com.google.analytics.admin.v1beta.UpdatePropertyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdatePropertyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1beta.UpdatePropertyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java new file mode 100644 index 000000000000..c625acca93b7 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java @@ -0,0 +1,119 @@ +/* + * 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/admin/v1beta/analytics_admin.proto + +package com.google.analytics.admin.v1beta; + +public interface UpdatePropertyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdatePropertyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The property. + */ + com.google.analytics.admin.v1beta.Property getProperty(); + /** + * + * + *
+   * Required. The property to update.
+   * The property's `name` field is used to identify the property to be
+   * updated.
+   * 
+ * + * + * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Field names must be in snake
+   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
+   * replace the entire entity, use one path with the string "*" to match all
+   * fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/access_report.proto diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/analytics_admin.proto diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto rename to java-analytics-admin/proto-google-analytics-admin-v1beta/src/main/proto/google/analytics/admin/v1beta/resources.proto diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/AsyncApproveDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/AsyncApproveDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/AsyncApproveDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/AsyncApproveDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/SyncApproveDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/SyncApproveDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/SyncApproveDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/approvedisplayvideo360advertiserlinkproposal/SyncApproveDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/AsyncArchiveAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/AsyncArchiveAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/AsyncArchiveAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/AsyncArchiveAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/SyncArchiveAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/SyncArchiveAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/SyncArchiveAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archiveaudience/SyncArchiveAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/AsyncBatchCreateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/AsyncBatchCreateAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/AsyncBatchCreateAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/AsyncBatchCreateAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/SyncBatchCreateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/SyncBatchCreateAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/SyncBatchCreateAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchcreateaccessbindings/SyncBatchCreateAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/AsyncBatchDeleteAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/AsyncBatchDeleteAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/AsyncBatchDeleteAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/AsyncBatchDeleteAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/SyncBatchDeleteAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/SyncBatchDeleteAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/SyncBatchDeleteAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchdeleteaccessbindings/SyncBatchDeleteAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/AsyncBatchGetAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/AsyncBatchGetAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/AsyncBatchGetAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/AsyncBatchGetAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/SyncBatchGetAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/SyncBatchGetAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/SyncBatchGetAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchgetaccessbindings/SyncBatchGetAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/AsyncBatchUpdateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/AsyncBatchUpdateAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/AsyncBatchUpdateAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/AsyncBatchUpdateAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/SyncBatchUpdateAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/SyncBatchUpdateAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/SyncBatchUpdateAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/batchupdateaccessbindings/SyncBatchUpdateAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/AsyncCancelDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/AsyncCancelDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/AsyncCancelDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/AsyncCancelDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/SyncCancelDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/SyncCancelDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/SyncCancelDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/canceldisplayvideo360advertiserlinkproposal/SyncCancelDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetEndpoint.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetEndpoint.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/AsyncCreateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/AsyncCreateAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/AsyncCreateAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/AsyncCreateAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingAccountnameAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingAccountnameAccessbinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingAccountnameAccessbinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingAccountnameAccessbinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingPropertynameAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingPropertynameAccessbinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingPropertynameAccessbinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingPropertynameAccessbinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingStringAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingStringAccessbinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingStringAccessbinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaccessbinding/SyncCreateAccessBindingStringAccessbinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/AsyncCreateAdSenseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/AsyncCreateAdSenseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/AsyncCreateAdSenseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/AsyncCreateAdSenseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkPropertynameAdsenselink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkPropertynameAdsenselink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkPropertynameAdsenselink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkPropertynameAdsenselink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkStringAdsenselink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkStringAdsenselink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkStringAdsenselink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createadsenselink/SyncCreateAdSenseLinkStringAdsenselink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/AsyncCreateAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/AsyncCreateAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/AsyncCreateAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/AsyncCreateAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudiencePropertynameAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudiencePropertynameAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudiencePropertynameAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudiencePropertynameAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudienceStringAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudienceStringAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudienceStringAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createaudience/SyncCreateAudienceStringAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/AsyncCreateChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/AsyncCreateChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/AsyncCreateChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/AsyncCreateChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupPropertynameChannelgroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupPropertynameChannelgroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupPropertynameChannelgroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupPropertynameChannelgroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupStringChannelgroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupStringChannelgroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupStringChannelgroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createchannelgroup/SyncCreateChannelGroupStringChannelgroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/AsyncCreateConnectedSiteTag.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/AsyncCreateConnectedSiteTag.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/AsyncCreateConnectedSiteTag.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/AsyncCreateConnectedSiteTag.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/SyncCreateConnectedSiteTag.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/SyncCreateConnectedSiteTag.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/SyncCreateConnectedSiteTag.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconnectedsitetag/SyncCreateConnectedSiteTag.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/AsyncCreateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/AsyncCreateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/AsyncCreateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/AsyncCreateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/AsyncCreateDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/AsyncCreateDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/AsyncCreateDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/AsyncCreateDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkPropertynameDisplayvideo360Advertiserlink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkPropertynameDisplayvideo360Advertiserlink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkPropertynameDisplayvideo360Advertiserlink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkPropertynameDisplayvideo360Advertiserlink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkStringDisplayvideo360Advertiserlink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkStringDisplayvideo360Advertiserlink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkStringDisplayvideo360Advertiserlink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlink/SyncCreateDisplayVideo360AdvertiserLinkStringDisplayvideo360Advertiserlink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/AsyncCreateDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/AsyncCreateDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/AsyncCreateDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/AsyncCreateDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalPropertynameDisplayvideo360Advertiserlinkproposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalPropertynameDisplayvideo360Advertiserlinkproposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalPropertynameDisplayvideo360Advertiserlinkproposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalPropertynameDisplayvideo360Advertiserlinkproposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalStringDisplayvideo360Advertiserlinkproposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalStringDisplayvideo360Advertiserlinkproposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalStringDisplayvideo360Advertiserlinkproposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createdisplayvideo360advertiserlinkproposal/SyncCreateDisplayVideo360AdvertiserLinkProposalStringDisplayvideo360Advertiserlinkproposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/AsyncCreateEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/AsyncCreateEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/AsyncCreateEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/AsyncCreateEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleDatastreamnameEventcreaterule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleDatastreamnameEventcreaterule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleDatastreamnameEventcreaterule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleDatastreamnameEventcreaterule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleStringEventcreaterule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleStringEventcreaterule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleStringEventcreaterule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createeventcreaterule/SyncCreateEventCreateRuleStringEventcreaterule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/AsyncCreateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/AsyncCreateExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/AsyncCreateExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/AsyncCreateExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetPropertynameExpandeddataset.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetPropertynameExpandeddataset.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetPropertynameExpandeddataset.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetPropertynameExpandeddataset.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetStringExpandeddataset.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetStringExpandeddataset.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetStringExpandeddataset.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createexpandeddataset/SyncCreateExpandedDataSetStringExpandeddataset.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/AsyncCreateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/AsyncCreateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/AsyncCreateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/AsyncCreateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/AsyncCreateRollupProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/AsyncCreateRollupProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/AsyncCreateRollupProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/AsyncCreateRollupProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/SyncCreateRollupProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/SyncCreateRollupProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/SyncCreateRollupProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrollupproperty/SyncCreateRollupProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/AsyncCreateRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/AsyncCreateRollupPropertySourceLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/AsyncCreateRollupPropertySourceLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/AsyncCreateRollupPropertySourceLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkPropertynameRolluppropertysourcelink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createrolluppropertysourcelink/SyncCreateRollupPropertySourceLinkStringRolluppropertysourcelink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/AsyncCreateSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/AsyncCreateSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/AsyncCreateSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/AsyncCreateSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkPropertynameSearchads360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkPropertynameSearchads360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkPropertynameSearchads360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkPropertynameSearchads360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkStringSearchads360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkStringSearchads360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkStringSearchads360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsearchads360link/SyncCreateSearchAds360LinkStringSearchads360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/AsyncCreateSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/AsyncCreateSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/AsyncCreateSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/AsyncCreateSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaDatastreamnameSkadnetworkconversionvalueschema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaDatastreamnameSkadnetworkconversionvalueschema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaDatastreamnameSkadnetworkconversionvalueschema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaDatastreamnameSkadnetworkconversionvalueschema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaStringSkadnetworkconversionvalueschema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaStringSkadnetworkconversionvalueschema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaStringSkadnetworkconversionvalueschema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createskadnetworkconversionvalueschema/SyncCreateSKAdNetworkConversionValueSchemaStringSkadnetworkconversionvalueschema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/AsyncCreateSubproperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/AsyncCreateSubproperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/AsyncCreateSubproperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/AsyncCreateSubproperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/SyncCreateSubproperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/SyncCreateSubproperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/SyncCreateSubproperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubproperty/SyncCreateSubproperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/AsyncCreateSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/AsyncCreateSubpropertyEventFilter.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/AsyncCreateSubpropertyEventFilter.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/AsyncCreateSubpropertyEventFilter.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilter.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilter.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilter.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterPropertynameSubpropertyeventfilter.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/createsubpropertyeventfilter/SyncCreateSubpropertyEventFilterStringSubpropertyeventfilter.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/AsyncDeleteAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/AsyncDeleteAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/AsyncDeleteAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/AsyncDeleteAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingAccessbindingname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingAccessbindingname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingAccessbindingname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingAccessbindingname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccessbinding/SyncDeleteAccessBindingString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/AsyncDeleteAdSenseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/AsyncDeleteAdSenseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/AsyncDeleteAdSenseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/AsyncDeleteAdSenseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkAdsenselinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkAdsenselinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkAdsenselinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkAdsenselinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteadsenselink/SyncDeleteAdSenseLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/AsyncDeleteChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/AsyncDeleteChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/AsyncDeleteChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/AsyncDeleteChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupChannelgroupname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupChannelgroupname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupChannelgroupname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupChannelgroupname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletechannelgroup/SyncDeleteChannelGroupString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/AsyncDeleteConnectedSiteTag.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/AsyncDeleteConnectedSiteTag.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/AsyncDeleteConnectedSiteTag.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/AsyncDeleteConnectedSiteTag.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/SyncDeleteConnectedSiteTag.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/SyncDeleteConnectedSiteTag.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/SyncDeleteConnectedSiteTag.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconnectedsitetag/SyncDeleteConnectedSiteTag.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/AsyncDeleteDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/AsyncDeleteDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/AsyncDeleteDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/AsyncDeleteDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlink/SyncDeleteDisplayVideo360AdvertiserLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/AsyncDeleteDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/AsyncDeleteDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/AsyncDeleteDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/AsyncDeleteDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletedisplayvideo360advertiserlinkproposal/SyncDeleteDisplayVideo360AdvertiserLinkProposalString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/AsyncDeleteEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/AsyncDeleteEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/AsyncDeleteEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/AsyncDeleteEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleEventcreaterulename.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleEventcreaterulename.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleEventcreaterulename.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleEventcreaterulename.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteeventcreaterule/SyncDeleteEventCreateRuleString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/AsyncDeleteExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/AsyncDeleteExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/AsyncDeleteExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/AsyncDeleteExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetExpandeddatasetname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetExpandeddatasetname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetExpandeddatasetname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetExpandeddatasetname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteexpandeddataset/SyncDeleteExpandedDataSetString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeleteProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeleteProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeleteProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeleteProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/AsyncDeleteRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/AsyncDeleteRollupPropertySourceLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/AsyncDeleteRollupPropertySourceLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/AsyncDeleteRollupPropertySourceLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkRolluppropertysourcelinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleterolluppropertysourcelink/SyncDeleteRollupPropertySourceLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/AsyncDeleteSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/AsyncDeleteSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/AsyncDeleteSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/AsyncDeleteSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkSearchads360Linkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkSearchads360Linkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkSearchads360Linkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkSearchads360Linkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesearchads360link/SyncDeleteSearchAds360LinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/AsyncDeleteSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/AsyncDeleteSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/AsyncDeleteSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/AsyncDeleteSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deleteskadnetworkconversionvalueschema/SyncDeleteSKAdNetworkConversionValueSchemaString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/AsyncDeleteSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/AsyncDeleteSubpropertyEventFilter.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/AsyncDeleteSubpropertyEventFilter.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/AsyncDeleteSubpropertyEventFilter.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilter.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilter.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilter.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilter.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/deletesubpropertyeventfilter/SyncDeleteSubpropertyEventFilterSubpropertyeventfiltername.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/AsyncFetchAutomatedGa4ConfigurationOptOut.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/AsyncFetchAutomatedGa4ConfigurationOptOut.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/AsyncFetchAutomatedGa4ConfigurationOptOut.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/AsyncFetchAutomatedGa4ConfigurationOptOut.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/SyncFetchAutomatedGa4ConfigurationOptOut.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/SyncFetchAutomatedGa4ConfigurationOptOut.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/SyncFetchAutomatedGa4ConfigurationOptOut.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchautomatedga4configurationoptout/SyncFetchAutomatedGa4ConfigurationOptOut.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/AsyncFetchConnectedGa4Property.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/AsyncFetchConnectedGa4Property.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/AsyncFetchConnectedGa4Property.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/AsyncFetchConnectedGa4Property.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/SyncFetchConnectedGa4Property.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/SyncFetchConnectedGa4Property.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/SyncFetchConnectedGa4Property.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/fetchconnectedga4property/SyncFetchConnectedGa4Property.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/AsyncGetAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/AsyncGetAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/AsyncGetAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/AsyncGetAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingAccessbindingname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingAccessbindingname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingAccessbindingname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingAccessbindingname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccessbinding/SyncGetAccessBindingString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/AsyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/AsyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/AsyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/AsyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountAccountname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountAccountname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountAccountname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountAccountname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaccount/SyncGetAccountString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/AsyncGetAdSenseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/AsyncGetAdSenseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/AsyncGetAdSenseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/AsyncGetAdSenseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkAdsenselinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkAdsenselinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkAdsenselinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkAdsenselinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getadsenselink/SyncGetAdSenseLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/AsyncGetAttributionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/AsyncGetAttributionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/AsyncGetAttributionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/AsyncGetAttributionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsAttributionsettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsAttributionsettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsAttributionsettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsAttributionsettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getattributionsettings/SyncGetAttributionSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/AsyncGetAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/AsyncGetAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/AsyncGetAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/AsyncGetAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceAudiencename.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceAudiencename.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceAudiencename.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceAudiencename.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getaudience/SyncGetAudienceString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/AsyncGetBigQueryLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/AsyncGetBigQueryLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/AsyncGetBigQueryLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/AsyncGetBigQueryLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkBigquerylinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkBigquerylinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkBigquerylinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkBigquerylinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getbigquerylink/SyncGetBigQueryLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/AsyncGetChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/AsyncGetChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/AsyncGetChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/AsyncGetChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupChannelgroupname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupChannelgroupname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupChannelgroupname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupChannelgroupname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getchannelgroup/SyncGetChannelGroupString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/AsyncGetDataRedactionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/AsyncGetDataRedactionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/AsyncGetDataRedactionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/AsyncGetDataRedactionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsDataredactionsettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsDataredactionsettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsDataredactionsettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsDataredactionsettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataredactionsettings/SyncGetDataRedactionSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/AsyncGetDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/AsyncGetDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/AsyncGetDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/AsyncGetDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdatastream/SyncGetDataStreamString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/AsyncGetDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/AsyncGetDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/AsyncGetDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/AsyncGetDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkDisplayvideo360Advertiserlinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlink/SyncGetDisplayVideo360AdvertiserLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/AsyncGetDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/AsyncGetDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/AsyncGetDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/AsyncGetDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposal.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposal.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposal.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalDisplayvideo360Advertiserlinkproposalname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getdisplayvideo360advertiserlinkproposal/SyncGetDisplayVideo360AdvertiserLinkProposalString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/AsyncGetEnhancedMeasurementSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/AsyncGetEnhancedMeasurementSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/AsyncGetEnhancedMeasurementSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/AsyncGetEnhancedMeasurementSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsEnhancedmeasurementsettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsEnhancedmeasurementsettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsEnhancedmeasurementsettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsEnhancedmeasurementsettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getenhancedmeasurementsettings/SyncGetEnhancedMeasurementSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/AsyncGetEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/AsyncGetEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/AsyncGetEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/AsyncGetEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleEventcreaterulename.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleEventcreaterulename.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleEventcreaterulename.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleEventcreaterulename.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/geteventcreaterule/SyncGetEventCreateRuleString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/AsyncGetExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/AsyncGetExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/AsyncGetExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/AsyncGetExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetExpandeddatasetname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetExpandeddatasetname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetExpandeddatasetname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetExpandeddatasetname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getexpandeddataset/SyncGetExpandedDataSetString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/AsyncGetGlobalSiteTag.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/AsyncGetGlobalSiteTag.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/AsyncGetGlobalSiteTag.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/AsyncGetGlobalSiteTag.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTag.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTag.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTag.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTag.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagGlobalsitetagname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagGlobalsitetagname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagGlobalsitetagname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagGlobalsitetagname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getglobalsitetag/SyncGetGlobalSiteTagString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/AsyncGetGoogleSignalsSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/AsyncGetGoogleSignalsSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/AsyncGetGoogleSignalsSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/AsyncGetGoogleSignalsSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsGooglesignalssettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsGooglesignalssettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsGooglesignalssettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsGooglesignalssettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getgooglesignalssettings/SyncGetGoogleSignalsSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/AsyncGetProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/AsyncGetProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/AsyncGetProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/AsyncGetProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getproperty/SyncGetPropertyString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/AsyncGetRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/AsyncGetRollupPropertySourceLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/AsyncGetRollupPropertySourceLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/AsyncGetRollupPropertySourceLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkRolluppropertysourcelinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getrolluppropertysourcelink/SyncGetRollupPropertySourceLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/AsyncGetSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/AsyncGetSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/AsyncGetSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/AsyncGetSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkSearchads360Linkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkSearchads360Linkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkSearchads360Linkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkSearchads360Linkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getsearchads360link/SyncGetSearchAds360LinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/AsyncGetSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/AsyncGetSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/AsyncGetSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/AsyncGetSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getskadnetworkconversionvalueschema/SyncGetSKAdNetworkConversionValueSchemaString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindingsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindingsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindingsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/AsyncListAccessBindingsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsAccountname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsAccountname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsAccountname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsAccountname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccessbindings/SyncListAccessBindingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccounts.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccounts.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccounts.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccounts.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/SyncListAccounts.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/SyncListAccounts.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/SyncListAccounts.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccounts/SyncListAccounts.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/AsyncListAdSenseLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listadsenselinks/SyncListAdSenseLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiences.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiences.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiences.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiences.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiencesPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiencesPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiencesPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/AsyncListAudiencesPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiences.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiences.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiences.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiences.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listaudiences/SyncListAudiencesString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/AsyncListBigQueryLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listbigquerylinks/SyncListBigQueryLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroups.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroups.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroups.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroups.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroupsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroupsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroupsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/AsyncListChannelGroupsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroups.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroups.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroups.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroups.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listchannelgroups/SyncListChannelGroupsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/AsyncListConnectedSiteTags.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/AsyncListConnectedSiteTags.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/AsyncListConnectedSiteTags.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/AsyncListConnectedSiteTags.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/SyncListConnectedSiteTags.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/SyncListConnectedSiteTags.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/SyncListConnectedSiteTags.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconnectedsitetags/SyncListConnectedSiteTags.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreams.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreams.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreams.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreams.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreams.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreams.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreams.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreams.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposals.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposals.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposals.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposals.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposalsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposalsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposalsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/AsyncListDisplayVideo360AdvertiserLinkProposalsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposals.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposals.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposals.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposals.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinkproposals/SyncListDisplayVideo360AdvertiserLinkProposalsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/AsyncListDisplayVideo360AdvertiserLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listdisplayvideo360advertiserlinks/SyncListDisplayVideo360AdvertiserLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRules.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRules.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRules.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRules.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRulesPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRulesPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRulesPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/AsyncListEventCreateRulesPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRules.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRules.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRules.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRules.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listeventcreaterules/SyncListEventCreateRulesString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSets.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSets.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSets.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSetsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSetsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSetsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/AsyncListExpandedDataSetsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSets.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSets.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSets.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listexpandeddatasets/SyncListExpandedDataSetsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListProperties.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListProperties.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListProperties.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListProperties.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/SyncListProperties.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/SyncListProperties.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/SyncListProperties.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listproperties/SyncListProperties.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/AsyncListRollupPropertySourceLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listrolluppropertysourcelinks/SyncListRollupPropertySourceLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360Links.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360Links.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360Links.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360Links.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360LinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360LinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360LinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/AsyncListSearchAds360LinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360Links.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360Links.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360Links.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360Links.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listsearchads360links/SyncListSearchAds360LinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemas.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemas.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemas.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemas.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemasPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemasPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemasPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/AsyncListSKAdNetworkConversionValueSchemasPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemas.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemas.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemas.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemas.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/listskadnetworkconversionvalueschemas/SyncListSKAdNetworkConversionValueSchemasString.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/runaccessreport/SyncRunAccessReport.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/AsyncSetAutomatedGa4ConfigurationOptOut.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/AsyncSetAutomatedGa4ConfigurationOptOut.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/AsyncSetAutomatedGa4ConfigurationOptOut.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/AsyncSetAutomatedGa4ConfigurationOptOut.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/SyncSetAutomatedGa4ConfigurationOptOut.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/SyncSetAutomatedGa4ConfigurationOptOut.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/SyncSetAutomatedGa4ConfigurationOptOut.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/setautomatedga4configurationoptout/SyncSetAutomatedGa4ConfigurationOptOut.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/AsyncUpdateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/AsyncUpdateAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/AsyncUpdateAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/AsyncUpdateAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBindingAccessbinding.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBindingAccessbinding.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBindingAccessbinding.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccessbinding/SyncUpdateAccessBindingAccessbinding.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/AsyncUpdateAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/AsyncUpdateAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/AsyncUpdateAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/AsyncUpdateAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/AsyncUpdateAttributionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/AsyncUpdateAttributionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/AsyncUpdateAttributionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/AsyncUpdateAttributionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettingsAttributionsettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettingsAttributionsettingsFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettingsAttributionsettingsFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateattributionsettings/SyncUpdateAttributionSettingsAttributionsettingsFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/AsyncUpdateAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/AsyncUpdateAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/AsyncUpdateAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/AsyncUpdateAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudience.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudience.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudience.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudience.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudienceAudienceFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudienceAudienceFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudienceAudienceFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateaudience/SyncUpdateAudienceAudienceFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/AsyncUpdateChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/AsyncUpdateChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/AsyncUpdateChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/AsyncUpdateChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroup.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroup.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroup.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroup.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroupChannelgroupFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroupChannelgroupFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroupChannelgroupFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatechannelgroup/SyncUpdateChannelGroupChannelgroupFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/AsyncUpdateDataRedactionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/AsyncUpdateDataRedactionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/AsyncUpdateDataRedactionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/AsyncUpdateDataRedactionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataredactionsettings/SyncUpdateDataRedactionSettingsDataredactionsettingsFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/AsyncUpdateDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/AsyncUpdateDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/AsyncUpdateDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/AsyncUpdateDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLinkDisplayvideo360AdvertiserlinkFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLinkDisplayvideo360AdvertiserlinkFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLinkDisplayvideo360AdvertiserlinkFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatedisplayvideo360advertiserlink/SyncUpdateDisplayVideo360AdvertiserLinkDisplayvideo360AdvertiserlinkFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/AsyncUpdateEnhancedMeasurementSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/AsyncUpdateEnhancedMeasurementSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/AsyncUpdateEnhancedMeasurementSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/AsyncUpdateEnhancedMeasurementSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettingsEnhancedmeasurementsettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettingsEnhancedmeasurementsettingsFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettingsEnhancedmeasurementsettingsFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateenhancedmeasurementsettings/SyncUpdateEnhancedMeasurementSettingsEnhancedmeasurementsettingsFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/AsyncUpdateEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/AsyncUpdateEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/AsyncUpdateEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/AsyncUpdateEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRule.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRule.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRule.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRule.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRuleEventcreateruleFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRuleEventcreateruleFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRuleEventcreateruleFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateeventcreaterule/SyncUpdateEventCreateRuleEventcreateruleFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/AsyncUpdateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/AsyncUpdateExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/AsyncUpdateExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/AsyncUpdateExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSet.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSet.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSet.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSet.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSetExpandeddatasetFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSetExpandeddatasetFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSetExpandeddatasetFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateexpandeddataset/SyncUpdateExpandedDataSetExpandeddatasetFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/AsyncUpdateGoogleSignalsSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/AsyncUpdateGoogleSignalsSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/AsyncUpdateGoogleSignalsSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/AsyncUpdateGoogleSignalsSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettingsGooglesignalssettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettingsGooglesignalssettingsFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettingsGooglesignalssettingsFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updategooglesignalssettings/SyncUpdateGoogleSignalsSettingsGooglesignalssettingsFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/AsyncUpdateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/AsyncUpdateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/AsyncUpdateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/AsyncUpdateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/AsyncUpdateSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/AsyncUpdateSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/AsyncUpdateSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/AsyncUpdateSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360Link.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360Link.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360Link.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360Link.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360LinkSearchads360LinkFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360LinkSearchads360LinkFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360LinkSearchads360LinkFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updatesearchads360link/SyncUpdateSearchAds360LinkSearchads360LinkFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/AsyncUpdateSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/AsyncUpdateSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/AsyncUpdateSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/AsyncUpdateSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchema.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchema.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchema.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchema.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/updateskadnetworkconversionvalueschema/SyncUpdateSKAdNetworkConversionValueSchemaSkadnetworkconversionvalueschemaFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservicesettings/getaccount/SyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservicesettings/getaccount/SyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservicesettings/getaccount/SyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservicesettings/getaccount/SyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1alpha/samples/snippets/generated/com/google/analytics/admin/v1alpha/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/AsyncAcknowledgeUserDataCollection.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/acknowledgeuserdatacollection/SyncAcknowledgeUserDataCollection.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/AsyncArchiveCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionCustomdimensionname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustomdimension/SyncArchiveCustomDimensionString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/AsyncArchiveCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricCustommetricname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/archivecustommetric/SyncArchiveCustomMetricString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetEndpoint.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetEndpoint.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/AsyncCreateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventPropertynameConversionevent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createconversionevent/SyncCreateConversionEventStringConversionevent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/AsyncCreateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionPropertynameCustomdimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustomdimension/SyncCreateCustomDimensionStringCustomdimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/AsyncCreateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricPropertynameCustommetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createcustommetric/SyncCreateCustomMetricStringCustommetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/AsyncCreateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/AsyncCreateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/AsyncCreateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/AsyncCreateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamPropertynameDatastream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createdatastream/SyncCreateDataStreamStringDatastream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/AsyncCreateFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkPropertynameFirebaselink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createfirebaselink/SyncCreateFirebaseLinkStringFirebaselink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/AsyncCreateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkPropertynameGoogleadslink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/creategoogleadslink/SyncCreateGoogleAdsLinkStringGoogleadslink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/AsyncCreateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretDatastreamnameMeasurementprotocolsecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createmeasurementprotocolsecret/SyncCreateMeasurementProtocolSecretStringMeasurementprotocolsecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/AsyncCreateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/AsyncCreateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/AsyncCreateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/AsyncCreateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/createproperty/SyncCreatePropertyProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/AsyncDeleteAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountAccountname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteaccount/SyncDeleteAccountString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/AsyncDeleteConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventConversioneventname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteconversionevent/SyncDeleteConversionEventString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/AsyncDeleteDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletedatastream/SyncDeleteDataStreamString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/AsyncDeleteFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkFirebaselinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletefirebaselink/SyncDeleteFirebaseLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/AsyncDeleteGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkGoogleadslinkname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletegoogleadslink/SyncDeleteGoogleAdsLinkString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/AsyncDeleteMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretMeasurementprotocolsecretname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deletemeasurementprotocolsecret/SyncDeleteMeasurementProtocolSecretString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/AsyncDeleteProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeleteProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeleteProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeleteProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeleteProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/deleteproperty/SyncDeletePropertyString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/AsyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/AsyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/AsyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/AsyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountAccountname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountAccountname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountAccountname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountAccountname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getaccount/SyncGetAccountString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/AsyncGetConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventConversioneventname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getconversionevent/SyncGetConversionEventString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/AsyncGetCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionCustomdimensionname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustomdimension/SyncGetCustomDimensionString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/AsyncGetCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricCustommetricname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getcustommetric/SyncGetCustomMetricString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/AsyncGetDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsDataretentionsettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdataretentionsettings/SyncGetDataRetentionSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/AsyncGetDataSharingSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsDatasharingsettingsname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatasharingsettings/SyncGetDataSharingSettingsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/AsyncGetDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/AsyncGetDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/AsyncGetDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/AsyncGetDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getdatastream/SyncGetDataStreamString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/AsyncGetMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretMeasurementprotocolsecretname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getmeasurementprotocolsecret/SyncGetMeasurementProtocolSecretString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/AsyncGetProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/AsyncGetProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/AsyncGetProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/AsyncGetProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/getproperty/SyncGetPropertyString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccounts.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccounts.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccounts.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccounts.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/AsyncListAccountsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/SyncListAccounts.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/SyncListAccounts.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/SyncListAccounts.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccounts/SyncListAccounts.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummaries.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/AsyncListAccountSummariesPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listaccountsummaries/SyncListAccountSummaries.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/AsyncListConversionEventsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listconversionevents/SyncListConversionEventsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensions.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/AsyncListCustomDimensionsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensions.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustomdimensions/SyncListCustomDimensionsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetrics.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/AsyncListCustomMetricsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetrics.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listcustommetrics/SyncListCustomMetricsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreams.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreams.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreams.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreams.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/AsyncListDataStreamsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreams.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreams.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreams.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreams.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listdatastreams/SyncListDataStreamsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/AsyncListFirebaseLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listfirebaselinks/SyncListFirebaseLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/AsyncListGoogleAdsLinksPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinks.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksPropertyname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listgoogleadslinks/SyncListGoogleAdsLinksString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecrets.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/AsyncListMeasurementProtocolSecretsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecrets.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsDatastreamname.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listmeasurementprotocolsecrets/SyncListMeasurementProtocolSecretsString.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListProperties.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListProperties.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListProperties.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListProperties.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/AsyncListPropertiesPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/SyncListProperties.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/SyncListProperties.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/SyncListProperties.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/listproperties/SyncListProperties.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/AsyncProvisionAccountTicket.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/provisionaccountticket/SyncProvisionAccountTicket.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/AsyncRunAccessReport.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/runaccessreport/SyncRunAccessReport.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/AsyncSearchChangeHistoryEventsPaged.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/searchchangehistoryevents/SyncSearchChangeHistoryEvents.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/AsyncUpdateAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/AsyncUpdateAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/AsyncUpdateAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/AsyncUpdateAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateaccount/SyncUpdateAccountAccountFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/AsyncUpdateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEvent.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateconversionevent/SyncUpdateConversionEventConversioneventFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/AsyncUpdateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimension.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustomdimension/SyncUpdateCustomDimensionCustomdimensionFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/AsyncUpdateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetric.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatecustommetric/SyncUpdateCustomMetricCustommetricFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/AsyncUpdateDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettings.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedataretentionsettings/SyncUpdateDataRetentionSettingsDataretentionsettingsFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/AsyncUpdateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStream.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatedatastream/SyncUpdateDataStreamDatastreamFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/AsyncUpdateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLink.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updategoogleadslink/SyncUpdateGoogleAdsLinkGoogleadslinkFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/AsyncUpdateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecret.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updatemeasurementprotocolsecret/SyncUpdateMeasurementProtocolSecretMeasurementprotocolsecretFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/AsyncUpdateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/AsyncUpdateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/AsyncUpdateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/AsyncUpdateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdateProperty.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdateProperty.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdateProperty.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdateProperty.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservice/updateproperty/SyncUpdatePropertyPropertyFieldmask.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservicesettings/getaccount/SyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservicesettings/getaccount/SyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservicesettings/getaccount/SyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/analyticsadminservicesettings/getaccount/SyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java similarity index 100% rename from owl-bot-staging/java-analytics-admin/v1beta/samples/snippets/generated/com/google/analytics/admin/v1beta/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java rename to java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1beta/stub/analyticsadminservicestubsettings/getaccount/SyncGetAccount.java diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java deleted file mode 100644 index 089e58215161..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ /dev/null @@ -1,1953 +0,0 @@ -/* - * 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. - */ - -package com.google.analytics.admin.v1alpha; - -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAdSenseLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListChannelGroupsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListEventCreateRulesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListRollupPropertySourceLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link AnalyticsAdminServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (analyticsadmin.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getAccount to 30 seconds: - * - *

{@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
- * AnalyticsAdminServiceSettings.Builder analyticsAdminServiceSettingsBuilder =
- *     AnalyticsAdminServiceSettings.newBuilder();
- * analyticsAdminServiceSettingsBuilder
- *     .getAccountSettings()
- *     .setRetrySettings(
- *         analyticsAdminServiceSettingsBuilder
- *             .getAccountSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
- *     analyticsAdminServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to getAccount. */ - public UnaryCallSettings getAccountSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccountSettings(); - } - - /** Returns the object with the settings used for calls to listAccounts. */ - public PagedCallSettings - listAccountsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountsSettings(); - } - - /** Returns the object with the settings used for calls to deleteAccount. */ - public UnaryCallSettings deleteAccountSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAccountSettings(); - } - - /** Returns the object with the settings used for calls to updateAccount. */ - public UnaryCallSettings updateAccountSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAccountSettings(); - } - - /** Returns the object with the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings - provisionAccountTicketSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).provisionAccountTicketSettings(); - } - - /** Returns the object with the settings used for calls to listAccountSummaries. */ - public PagedCallSettings< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountSummariesSettings(); - } - - /** Returns the object with the settings used for calls to getProperty. */ - public UnaryCallSettings getPropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getPropertySettings(); - } - - /** Returns the object with the settings used for calls to listProperties. */ - public PagedCallSettings< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listPropertiesSettings(); - } - - /** Returns the object with the settings used for calls to createProperty. */ - public UnaryCallSettings createPropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createPropertySettings(); - } - - /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deletePropertySettings(); - } - - /** Returns the object with the settings used for calls to updateProperty. */ - public UnaryCallSettings updatePropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updatePropertySettings(); - } - - /** Returns the object with the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings createFirebaseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings deleteFirebaseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteFirebaseLinkSettings(); - } - - /** Returns the object with the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listFirebaseLinksSettings(); - } - - /** Returns the object with the settings used for calls to getGlobalSiteTag. */ - public UnaryCallSettings getGlobalSiteTagSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getGlobalSiteTagSettings(); - } - - /** Returns the object with the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings - createGoogleAdsLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createGoogleAdsLinkSettings(); - } - - /** Returns the object with the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings - updateGoogleAdsLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateGoogleAdsLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings deleteGoogleAdsLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteGoogleAdsLinkSettings(); - } - - /** Returns the object with the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listGoogleAdsLinksSettings(); - } - - /** Returns the object with the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings - getDataSharingSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings(); - } - - /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings - getMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .listMeasurementProtocolSecretsSettings(); - } - - /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings - createMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings - deleteMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings - updateMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .acknowledgeUserDataCollectionSettings(); - } - - /** Returns the object with the settings used for calls to getSKAdNetworkConversionValueSchema. */ - public UnaryCallSettings< - GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - getSKAdNetworkConversionValueSchemaSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the object with the settings used for calls to createSKAdNetworkConversionValueSchema. - */ - public UnaryCallSettings< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteSKAdNetworkConversionValueSchema. - */ - public UnaryCallSettings - deleteSKAdNetworkConversionValueSchemaSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the object with the settings used for calls to updateSKAdNetworkConversionValueSchema. - */ - public UnaryCallSettings< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the object with the settings used for calls to listSKAdNetworkConversionValueSchemas. - */ - public PagedCallSettings< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse, - ListSKAdNetworkConversionValueSchemasPagedResponse> - listSKAdNetworkConversionValueSchemasSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .listSKAdNetworkConversionValueSchemasSettings(); - } - - /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .searchChangeHistoryEventsSettings(); - } - - /** Returns the object with the settings used for calls to getGoogleSignalsSettings. */ - public UnaryCallSettings - getGoogleSignalsSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getGoogleSignalsSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateGoogleSignalsSettings. */ - public UnaryCallSettings - updateGoogleSignalsSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateGoogleSignalsSettingsSettings(); - } - - /** Returns the object with the settings used for calls to createConversionEvent. */ - public UnaryCallSettings - createConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to updateConversionEvent. */ - public UnaryCallSettings - updateConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to getConversionEvent. */ - public UnaryCallSettings - getConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings deleteConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to listConversionEvents. */ - public PagedCallSettings< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings(); - } - - /** Returns the object with the settings used for calls to getDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings - getDisplayVideo360AdvertiserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getDisplayVideo360AdvertiserLinkSettings(); - } - - /** Returns the object with the settings used for calls to listDisplayVideo360AdvertiserLinks. */ - public PagedCallSettings< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .listDisplayVideo360AdvertiserLinksSettings(); - } - - /** Returns the object with the settings used for calls to createDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createDisplayVideo360AdvertiserLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings - deleteDisplayVideo360AdvertiserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteDisplayVideo360AdvertiserLinkSettings(); - } - - /** Returns the object with the settings used for calls to updateDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateDisplayVideo360AdvertiserLinkSettings(); - } - - /** - * Returns the object with the settings used for calls to - * getDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the object with the settings used for calls to - * listDisplayVideo360AdvertiserLinkProposals. - */ - public PagedCallSettings< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .listDisplayVideo360AdvertiserLinkProposalsSettings(); - } - - /** - * Returns the object with the settings used for calls to - * createDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the object with the settings used for calls to - * deleteDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings - deleteDisplayVideo360AdvertiserLinkProposalSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the object with the settings used for calls to - * approveDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .approveDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the object with the settings used for calls to - * cancelDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .cancelDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** Returns the object with the settings used for calls to createCustomDimension. */ - public UnaryCallSettings - createCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings - updateCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to listCustomDimensions. */ - public PagedCallSettings< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomDimensionsSettings(); - } - - /** Returns the object with the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings archiveCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to getCustomDimension. */ - public UnaryCallSettings - getCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to createCustomMetric. */ - public UnaryCallSettings createCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings updateCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to listCustomMetrics. */ - public PagedCallSettings< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomMetricsSettings(); - } - - /** Returns the object with the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings archiveCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to getCustomMetric. */ - public UnaryCallSettings getCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings - getDataRetentionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getDataRetentionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings - updateDataRetentionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateDataRetentionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to createDataStream. */ - public UnaryCallSettings createDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to deleteDataStream. */ - public UnaryCallSettings deleteDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to updateDataStream. */ - public UnaryCallSettings updateDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to listDataStreams. */ - public PagedCallSettings< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listDataStreamsSettings(); - } - - /** Returns the object with the settings used for calls to getDataStream. */ - public UnaryCallSettings getDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to getAudience. */ - public UnaryCallSettings getAudienceSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAudienceSettings(); - } - - /** Returns the object with the settings used for calls to listAudiences. */ - public PagedCallSettings - listAudiencesSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAudiencesSettings(); - } - - /** Returns the object with the settings used for calls to createAudience. */ - public UnaryCallSettings createAudienceSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAudienceSettings(); - } - - /** Returns the object with the settings used for calls to updateAudience. */ - public UnaryCallSettings updateAudienceSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAudienceSettings(); - } - - /** Returns the object with the settings used for calls to archiveAudience. */ - public UnaryCallSettings archiveAudienceSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveAudienceSettings(); - } - - /** Returns the object with the settings used for calls to getSearchAds360Link. */ - public UnaryCallSettings - getSearchAds360LinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getSearchAds360LinkSettings(); - } - - /** Returns the object with the settings used for calls to listSearchAds360Links. */ - public PagedCallSettings< - ListSearchAds360LinksRequest, - ListSearchAds360LinksResponse, - ListSearchAds360LinksPagedResponse> - listSearchAds360LinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listSearchAds360LinksSettings(); - } - - /** Returns the object with the settings used for calls to createSearchAds360Link. */ - public UnaryCallSettings - createSearchAds360LinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createSearchAds360LinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteSearchAds360Link. */ - public UnaryCallSettings deleteSearchAds360LinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteSearchAds360LinkSettings(); - } - - /** Returns the object with the settings used for calls to updateSearchAds360Link. */ - public UnaryCallSettings - updateSearchAds360LinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateSearchAds360LinkSettings(); - } - - /** Returns the object with the settings used for calls to getAttributionSettings. */ - public UnaryCallSettings - getAttributionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAttributionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateAttributionSettings. */ - public UnaryCallSettings - updateAttributionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateAttributionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to runAccessReport. */ - public UnaryCallSettings - runAccessReportSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).runAccessReportSettings(); - } - - /** Returns the object with the settings used for calls to createAccessBinding. */ - public UnaryCallSettings - createAccessBindingSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAccessBindingSettings(); - } - - /** Returns the object with the settings used for calls to getAccessBinding. */ - public UnaryCallSettings getAccessBindingSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccessBindingSettings(); - } - - /** Returns the object with the settings used for calls to updateAccessBinding. */ - public UnaryCallSettings - updateAccessBindingSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAccessBindingSettings(); - } - - /** Returns the object with the settings used for calls to deleteAccessBinding. */ - public UnaryCallSettings deleteAccessBindingSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAccessBindingSettings(); - } - - /** Returns the object with the settings used for calls to listAccessBindings. */ - public PagedCallSettings< - ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> - listAccessBindingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccessBindingsSettings(); - } - - /** Returns the object with the settings used for calls to batchCreateAccessBindings. */ - public UnaryCallSettings - batchCreateAccessBindingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .batchCreateAccessBindingsSettings(); - } - - /** Returns the object with the settings used for calls to batchGetAccessBindings. */ - public UnaryCallSettings - batchGetAccessBindingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).batchGetAccessBindingsSettings(); - } - - /** Returns the object with the settings used for calls to batchUpdateAccessBindings. */ - public UnaryCallSettings - batchUpdateAccessBindingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .batchUpdateAccessBindingsSettings(); - } - - /** Returns the object with the settings used for calls to batchDeleteAccessBindings. */ - public UnaryCallSettings - batchDeleteAccessBindingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .batchDeleteAccessBindingsSettings(); - } - - /** Returns the object with the settings used for calls to getExpandedDataSet. */ - public UnaryCallSettings - getExpandedDataSetSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getExpandedDataSetSettings(); - } - - /** Returns the object with the settings used for calls to listExpandedDataSets. */ - public PagedCallSettings< - ListExpandedDataSetsRequest, - ListExpandedDataSetsResponse, - ListExpandedDataSetsPagedResponse> - listExpandedDataSetsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listExpandedDataSetsSettings(); - } - - /** Returns the object with the settings used for calls to createExpandedDataSet. */ - public UnaryCallSettings - createExpandedDataSetSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createExpandedDataSetSettings(); - } - - /** Returns the object with the settings used for calls to updateExpandedDataSet. */ - public UnaryCallSettings - updateExpandedDataSetSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateExpandedDataSetSettings(); - } - - /** Returns the object with the settings used for calls to deleteExpandedDataSet. */ - public UnaryCallSettings deleteExpandedDataSetSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteExpandedDataSetSettings(); - } - - /** Returns the object with the settings used for calls to getChannelGroup. */ - public UnaryCallSettings getChannelGroupSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getChannelGroupSettings(); - } - - /** Returns the object with the settings used for calls to listChannelGroups. */ - public PagedCallSettings< - ListChannelGroupsRequest, ListChannelGroupsResponse, ListChannelGroupsPagedResponse> - listChannelGroupsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listChannelGroupsSettings(); - } - - /** Returns the object with the settings used for calls to createChannelGroup. */ - public UnaryCallSettings createChannelGroupSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createChannelGroupSettings(); - } - - /** Returns the object with the settings used for calls to updateChannelGroup. */ - public UnaryCallSettings updateChannelGroupSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateChannelGroupSettings(); - } - - /** Returns the object with the settings used for calls to deleteChannelGroup. */ - public UnaryCallSettings deleteChannelGroupSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteChannelGroupSettings(); - } - - /** Returns the object with the settings used for calls to setAutomatedGa4ConfigurationOptOut. */ - public UnaryCallSettings< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .setAutomatedGa4ConfigurationOptOutSettings(); - } - - /** - * Returns the object with the settings used for calls to fetchAutomatedGa4ConfigurationOptOut. - */ - public UnaryCallSettings< - FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .fetchAutomatedGa4ConfigurationOptOutSettings(); - } - - /** Returns the object with the settings used for calls to getBigQueryLink. */ - public UnaryCallSettings getBigQueryLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getBigQueryLinkSettings(); - } - - /** Returns the object with the settings used for calls to listBigQueryLinks. */ - public PagedCallSettings< - ListBigQueryLinksRequest, ListBigQueryLinksResponse, ListBigQueryLinksPagedResponse> - listBigQueryLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listBigQueryLinksSettings(); - } - - /** Returns the object with the settings used for calls to getEnhancedMeasurementSettings. */ - public UnaryCallSettings - getEnhancedMeasurementSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getEnhancedMeasurementSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateEnhancedMeasurementSettings. */ - public UnaryCallSettings - updateEnhancedMeasurementSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateEnhancedMeasurementSettingsSettings(); - } - - /** Returns the object with the settings used for calls to createConnectedSiteTag. */ - public UnaryCallSettings - createConnectedSiteTagSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConnectedSiteTagSettings(); - } - - /** Returns the object with the settings used for calls to deleteConnectedSiteTag. */ - public UnaryCallSettings deleteConnectedSiteTagSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConnectedSiteTagSettings(); - } - - /** Returns the object with the settings used for calls to listConnectedSiteTags. */ - public UnaryCallSettings - listConnectedSiteTagsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConnectedSiteTagsSettings(); - } - - /** Returns the object with the settings used for calls to fetchConnectedGa4Property. */ - public UnaryCallSettings - fetchConnectedGa4PropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .fetchConnectedGa4PropertySettings(); - } - - /** Returns the object with the settings used for calls to getAdSenseLink. */ - public UnaryCallSettings getAdSenseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAdSenseLinkSettings(); - } - - /** Returns the object with the settings used for calls to createAdSenseLink. */ - public UnaryCallSettings createAdSenseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createAdSenseLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteAdSenseLink. */ - public UnaryCallSettings deleteAdSenseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAdSenseLinkSettings(); - } - - /** Returns the object with the settings used for calls to listAdSenseLinks. */ - public PagedCallSettings< - ListAdSenseLinksRequest, ListAdSenseLinksResponse, ListAdSenseLinksPagedResponse> - listAdSenseLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAdSenseLinksSettings(); - } - - /** Returns the object with the settings used for calls to getEventCreateRule. */ - public UnaryCallSettings - getEventCreateRuleSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getEventCreateRuleSettings(); - } - - /** Returns the object with the settings used for calls to listEventCreateRules. */ - public PagedCallSettings< - ListEventCreateRulesRequest, - ListEventCreateRulesResponse, - ListEventCreateRulesPagedResponse> - listEventCreateRulesSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listEventCreateRulesSettings(); - } - - /** Returns the object with the settings used for calls to createEventCreateRule. */ - public UnaryCallSettings - createEventCreateRuleSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createEventCreateRuleSettings(); - } - - /** Returns the object with the settings used for calls to updateEventCreateRule. */ - public UnaryCallSettings - updateEventCreateRuleSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateEventCreateRuleSettings(); - } - - /** Returns the object with the settings used for calls to deleteEventCreateRule. */ - public UnaryCallSettings deleteEventCreateRuleSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteEventCreateRuleSettings(); - } - - /** Returns the object with the settings used for calls to updateDataRedactionSettings. */ - public UnaryCallSettings - updateDataRedactionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateDataRedactionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to getDataRedactionSettings. */ - public UnaryCallSettings - getDataRedactionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getDataRedactionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to createRollupProperty. */ - public UnaryCallSettings - createRollupPropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createRollupPropertySettings(); - } - - /** Returns the object with the settings used for calls to getRollupPropertySourceLink. */ - public UnaryCallSettings - getRollupPropertySourceLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getRollupPropertySourceLinkSettings(); - } - - /** Returns the object with the settings used for calls to listRollupPropertySourceLinks. */ - public PagedCallSettings< - ListRollupPropertySourceLinksRequest, - ListRollupPropertySourceLinksResponse, - ListRollupPropertySourceLinksPagedResponse> - listRollupPropertySourceLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .listRollupPropertySourceLinksSettings(); - } - - /** Returns the object with the settings used for calls to createRollupPropertySourceLink. */ - public UnaryCallSettings - createRollupPropertySourceLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createRollupPropertySourceLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteRollupPropertySourceLink. */ - public UnaryCallSettings - deleteRollupPropertySourceLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteRollupPropertySourceLinkSettings(); - } - - /** Returns the object with the settings used for calls to createSubproperty. */ - public UnaryCallSettings - createSubpropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createSubpropertySettings(); - } - - /** Returns the object with the settings used for calls to deleteSubpropertyEventFilter. */ - public UnaryCallSettings - deleteSubpropertyEventFilterSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteSubpropertyEventFilterSettings(); - } - - /** Returns the object with the settings used for calls to createSubpropertyEventFilter. */ - public UnaryCallSettings - createSubpropertyEventFilterSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createSubpropertyEventFilterSettings(); - } - - public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) - throws IOException { - return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return AnalyticsAdminServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return AnalyticsAdminServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return AnalyticsAdminServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AnalyticsAdminServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for AnalyticsAdminServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(AnalyticsAdminServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(AnalyticsAdminServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(AnalyticsAdminServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(AnalyticsAdminServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(AnalyticsAdminServiceStubSettings.newHttpJsonBuilder()); - } - - public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() { - return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to getAccount. */ - public UnaryCallSettings.Builder getAccountSettings() { - return getStubSettingsBuilder().getAccountSettings(); - } - - /** Returns the builder for the settings used for calls to listAccounts. */ - public PagedCallSettings.Builder< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings() { - return getStubSettingsBuilder().listAccountsSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAccount. */ - public UnaryCallSettings.Builder deleteAccountSettings() { - return getStubSettingsBuilder().deleteAccountSettings(); - } - - /** Returns the builder for the settings used for calls to updateAccount. */ - public UnaryCallSettings.Builder updateAccountSettings() { - return getStubSettingsBuilder().updateAccountSettings(); - } - - /** Returns the builder for the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings.Builder - provisionAccountTicketSettings() { - return getStubSettingsBuilder().provisionAccountTicketSettings(); - } - - /** Returns the builder for the settings used for calls to listAccountSummaries. */ - public PagedCallSettings.Builder< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return getStubSettingsBuilder().listAccountSummariesSettings(); - } - - /** Returns the builder for the settings used for calls to getProperty. */ - public UnaryCallSettings.Builder getPropertySettings() { - return getStubSettingsBuilder().getPropertySettings(); - } - - /** Returns the builder for the settings used for calls to listProperties. */ - public PagedCallSettings.Builder< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return getStubSettingsBuilder().listPropertiesSettings(); - } - - /** Returns the builder for the settings used for calls to createProperty. */ - public UnaryCallSettings.Builder createPropertySettings() { - return getStubSettingsBuilder().createPropertySettings(); - } - - /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { - return getStubSettingsBuilder().deletePropertySettings(); - } - - /** Returns the builder for the settings used for calls to updateProperty. */ - public UnaryCallSettings.Builder updatePropertySettings() { - return getStubSettingsBuilder().updatePropertySettings(); - } - - /** Returns the builder for the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings.Builder - createFirebaseLinkSettings() { - return getStubSettingsBuilder().createFirebaseLinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings.Builder - deleteFirebaseLinkSettings() { - return getStubSettingsBuilder().deleteFirebaseLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings.Builder< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return getStubSettingsBuilder().listFirebaseLinksSettings(); - } - - /** Returns the builder for the settings used for calls to getGlobalSiteTag. */ - public UnaryCallSettings.Builder - getGlobalSiteTagSettings() { - return getStubSettingsBuilder().getGlobalSiteTagSettings(); - } - - /** Returns the builder for the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings.Builder - createGoogleAdsLinkSettings() { - return getStubSettingsBuilder().createGoogleAdsLinkSettings(); - } - - /** Returns the builder for the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings.Builder - updateGoogleAdsLinkSettings() { - return getStubSettingsBuilder().updateGoogleAdsLinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings.Builder - deleteGoogleAdsLinkSettings() { - return getStubSettingsBuilder().deleteGoogleAdsLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings.Builder< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return getStubSettingsBuilder().listGoogleAdsLinksSettings(); - } - - /** Returns the builder for the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings.Builder - getDataSharingSettingsSettings() { - return getStubSettingsBuilder().getDataSharingSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - getMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().getMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings.Builder< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return getStubSettingsBuilder().listMeasurementProtocolSecretsSettings(); - } - - /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().createMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - deleteMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().deleteMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings.Builder< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return getStubSettingsBuilder().acknowledgeUserDataCollectionSettings(); - } - - /** - * Returns the builder for the settings used for calls to getSKAdNetworkConversionValueSchema. - */ - public UnaryCallSettings.Builder< - GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - getSKAdNetworkConversionValueSchemaSettings() { - return getStubSettingsBuilder().getSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * createSKAdNetworkConversionValueSchema. - */ - public UnaryCallSettings.Builder< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaSettings() { - return getStubSettingsBuilder().createSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * deleteSKAdNetworkConversionValueSchema. - */ - public UnaryCallSettings.Builder - deleteSKAdNetworkConversionValueSchemaSettings() { - return getStubSettingsBuilder().deleteSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * updateSKAdNetworkConversionValueSchema. - */ - public UnaryCallSettings.Builder< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaSettings() { - return getStubSettingsBuilder().updateSKAdNetworkConversionValueSchemaSettings(); - } - - /** - * Returns the builder for the settings used for calls to listSKAdNetworkConversionValueSchemas. - */ - public PagedCallSettings.Builder< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse, - ListSKAdNetworkConversionValueSchemasPagedResponse> - listSKAdNetworkConversionValueSchemasSettings() { - return getStubSettingsBuilder().listSKAdNetworkConversionValueSchemasSettings(); - } - - /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings.Builder< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); - } - - /** Returns the builder for the settings used for calls to getGoogleSignalsSettings. */ - public UnaryCallSettings.Builder - getGoogleSignalsSettingsSettings() { - return getStubSettingsBuilder().getGoogleSignalsSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateGoogleSignalsSettings. */ - public UnaryCallSettings.Builder - updateGoogleSignalsSettingsSettings() { - return getStubSettingsBuilder().updateGoogleSignalsSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to createConversionEvent. */ - public UnaryCallSettings.Builder - createConversionEventSettings() { - return getStubSettingsBuilder().createConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to updateConversionEvent. */ - public UnaryCallSettings.Builder - updateConversionEventSettings() { - return getStubSettingsBuilder().updateConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to getConversionEvent. */ - public UnaryCallSettings.Builder - getConversionEventSettings() { - return getStubSettingsBuilder().getConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings.Builder - deleteConversionEventSettings() { - return getStubSettingsBuilder().deleteConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to listConversionEvents. */ - public PagedCallSettings.Builder< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return getStubSettingsBuilder().listConversionEventsSettings(); - } - - /** Returns the builder for the settings used for calls to getDisplayVideo360AdvertiserLink. */ - public UnaryCallSettings.Builder< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkSettings() { - return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkSettings(); - } - - /** - * Returns the builder for the settings used for calls to listDisplayVideo360AdvertiserLinks. - */ - public PagedCallSettings.Builder< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksResponse, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksSettings() { - return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinksSettings(); - } - - /** - * Returns the builder for the settings used for calls to createDisplayVideo360AdvertiserLink. - */ - public UnaryCallSettings.Builder< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkSettings() { - return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteDisplayVideo360AdvertiserLink. - */ - public UnaryCallSettings.Builder - deleteDisplayVideo360AdvertiserLinkSettings() { - return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateDisplayVideo360AdvertiserLink. - */ - public UnaryCallSettings.Builder< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkSettings() { - return getStubSettingsBuilder().updateDisplayVideo360AdvertiserLinkSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * getDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalSettings() { - return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * listDisplayVideo360AdvertiserLinkProposals. - */ - public PagedCallSettings.Builder< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsSettings() { - return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinkProposalsSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * createDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - CreateDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalSettings() { - return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * deleteDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder - deleteDisplayVideo360AdvertiserLinkProposalSettings() { - return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * approveDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalSettings() { - return getStubSettingsBuilder().approveDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** - * Returns the builder for the settings used for calls to - * cancelDisplayVideo360AdvertiserLinkProposal. - */ - public UnaryCallSettings.Builder< - CancelDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalSettings() { - return getStubSettingsBuilder().cancelDisplayVideo360AdvertiserLinkProposalSettings(); - } - - /** Returns the builder for the settings used for calls to createCustomDimension. */ - public UnaryCallSettings.Builder - createCustomDimensionSettings() { - return getStubSettingsBuilder().createCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings.Builder - updateCustomDimensionSettings() { - return getStubSettingsBuilder().updateCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to listCustomDimensions. */ - public PagedCallSettings.Builder< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return getStubSettingsBuilder().listCustomDimensionsSettings(); - } - - /** Returns the builder for the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings.Builder - archiveCustomDimensionSettings() { - return getStubSettingsBuilder().archiveCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to getCustomDimension. */ - public UnaryCallSettings.Builder - getCustomDimensionSettings() { - return getStubSettingsBuilder().getCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to createCustomMetric. */ - public UnaryCallSettings.Builder - createCustomMetricSettings() { - return getStubSettingsBuilder().createCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings.Builder - updateCustomMetricSettings() { - return getStubSettingsBuilder().updateCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to listCustomMetrics. */ - public PagedCallSettings.Builder< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return getStubSettingsBuilder().listCustomMetricsSettings(); - } - - /** Returns the builder for the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings.Builder - archiveCustomMetricSettings() { - return getStubSettingsBuilder().archiveCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to getCustomMetric. */ - public UnaryCallSettings.Builder - getCustomMetricSettings() { - return getStubSettingsBuilder().getCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings.Builder - getDataRetentionSettingsSettings() { - return getStubSettingsBuilder().getDataRetentionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings.Builder - updateDataRetentionSettingsSettings() { - return getStubSettingsBuilder().updateDataRetentionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to createDataStream. */ - public UnaryCallSettings.Builder - createDataStreamSettings() { - return getStubSettingsBuilder().createDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to deleteDataStream. */ - public UnaryCallSettings.Builder deleteDataStreamSettings() { - return getStubSettingsBuilder().deleteDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataStream. */ - public UnaryCallSettings.Builder - updateDataStreamSettings() { - return getStubSettingsBuilder().updateDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to listDataStreams. */ - public PagedCallSettings.Builder< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return getStubSettingsBuilder().listDataStreamsSettings(); - } - - /** Returns the builder for the settings used for calls to getDataStream. */ - public UnaryCallSettings.Builder getDataStreamSettings() { - return getStubSettingsBuilder().getDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to getAudience. */ - public UnaryCallSettings.Builder getAudienceSettings() { - return getStubSettingsBuilder().getAudienceSettings(); - } - - /** Returns the builder for the settings used for calls to listAudiences. */ - public PagedCallSettings.Builder< - ListAudiencesRequest, ListAudiencesResponse, ListAudiencesPagedResponse> - listAudiencesSettings() { - return getStubSettingsBuilder().listAudiencesSettings(); - } - - /** Returns the builder for the settings used for calls to createAudience. */ - public UnaryCallSettings.Builder createAudienceSettings() { - return getStubSettingsBuilder().createAudienceSettings(); - } - - /** Returns the builder for the settings used for calls to updateAudience. */ - public UnaryCallSettings.Builder updateAudienceSettings() { - return getStubSettingsBuilder().updateAudienceSettings(); - } - - /** Returns the builder for the settings used for calls to archiveAudience. */ - public UnaryCallSettings.Builder archiveAudienceSettings() { - return getStubSettingsBuilder().archiveAudienceSettings(); - } - - /** Returns the builder for the settings used for calls to getSearchAds360Link. */ - public UnaryCallSettings.Builder - getSearchAds360LinkSettings() { - return getStubSettingsBuilder().getSearchAds360LinkSettings(); - } - - /** Returns the builder for the settings used for calls to listSearchAds360Links. */ - public PagedCallSettings.Builder< - ListSearchAds360LinksRequest, - ListSearchAds360LinksResponse, - ListSearchAds360LinksPagedResponse> - listSearchAds360LinksSettings() { - return getStubSettingsBuilder().listSearchAds360LinksSettings(); - } - - /** Returns the builder for the settings used for calls to createSearchAds360Link. */ - public UnaryCallSettings.Builder - createSearchAds360LinkSettings() { - return getStubSettingsBuilder().createSearchAds360LinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteSearchAds360Link. */ - public UnaryCallSettings.Builder - deleteSearchAds360LinkSettings() { - return getStubSettingsBuilder().deleteSearchAds360LinkSettings(); - } - - /** Returns the builder for the settings used for calls to updateSearchAds360Link. */ - public UnaryCallSettings.Builder - updateSearchAds360LinkSettings() { - return getStubSettingsBuilder().updateSearchAds360LinkSettings(); - } - - /** Returns the builder for the settings used for calls to getAttributionSettings. */ - public UnaryCallSettings.Builder - getAttributionSettingsSettings() { - return getStubSettingsBuilder().getAttributionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateAttributionSettings. */ - public UnaryCallSettings.Builder - updateAttributionSettingsSettings() { - return getStubSettingsBuilder().updateAttributionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to runAccessReport. */ - public UnaryCallSettings.Builder - runAccessReportSettings() { - return getStubSettingsBuilder().runAccessReportSettings(); - } - - /** Returns the builder for the settings used for calls to createAccessBinding. */ - public UnaryCallSettings.Builder - createAccessBindingSettings() { - return getStubSettingsBuilder().createAccessBindingSettings(); - } - - /** Returns the builder for the settings used for calls to getAccessBinding. */ - public UnaryCallSettings.Builder - getAccessBindingSettings() { - return getStubSettingsBuilder().getAccessBindingSettings(); - } - - /** Returns the builder for the settings used for calls to updateAccessBinding. */ - public UnaryCallSettings.Builder - updateAccessBindingSettings() { - return getStubSettingsBuilder().updateAccessBindingSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAccessBinding. */ - public UnaryCallSettings.Builder - deleteAccessBindingSettings() { - return getStubSettingsBuilder().deleteAccessBindingSettings(); - } - - /** Returns the builder for the settings used for calls to listAccessBindings. */ - public PagedCallSettings.Builder< - ListAccessBindingsRequest, ListAccessBindingsResponse, ListAccessBindingsPagedResponse> - listAccessBindingsSettings() { - return getStubSettingsBuilder().listAccessBindingsSettings(); - } - - /** Returns the builder for the settings used for calls to batchCreateAccessBindings. */ - public UnaryCallSettings.Builder< - BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> - batchCreateAccessBindingsSettings() { - return getStubSettingsBuilder().batchCreateAccessBindingsSettings(); - } - - /** Returns the builder for the settings used for calls to batchGetAccessBindings. */ - public UnaryCallSettings.Builder - batchGetAccessBindingsSettings() { - return getStubSettingsBuilder().batchGetAccessBindingsSettings(); - } - - /** Returns the builder for the settings used for calls to batchUpdateAccessBindings. */ - public UnaryCallSettings.Builder< - BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> - batchUpdateAccessBindingsSettings() { - return getStubSettingsBuilder().batchUpdateAccessBindingsSettings(); - } - - /** Returns the builder for the settings used for calls to batchDeleteAccessBindings. */ - public UnaryCallSettings.Builder - batchDeleteAccessBindingsSettings() { - return getStubSettingsBuilder().batchDeleteAccessBindingsSettings(); - } - - /** Returns the builder for the settings used for calls to getExpandedDataSet. */ - public UnaryCallSettings.Builder - getExpandedDataSetSettings() { - return getStubSettingsBuilder().getExpandedDataSetSettings(); - } - - /** Returns the builder for the settings used for calls to listExpandedDataSets. */ - public PagedCallSettings.Builder< - ListExpandedDataSetsRequest, - ListExpandedDataSetsResponse, - ListExpandedDataSetsPagedResponse> - listExpandedDataSetsSettings() { - return getStubSettingsBuilder().listExpandedDataSetsSettings(); - } - - /** Returns the builder for the settings used for calls to createExpandedDataSet. */ - public UnaryCallSettings.Builder - createExpandedDataSetSettings() { - return getStubSettingsBuilder().createExpandedDataSetSettings(); - } - - /** Returns the builder for the settings used for calls to updateExpandedDataSet. */ - public UnaryCallSettings.Builder - updateExpandedDataSetSettings() { - return getStubSettingsBuilder().updateExpandedDataSetSettings(); - } - - /** Returns the builder for the settings used for calls to deleteExpandedDataSet. */ - public UnaryCallSettings.Builder - deleteExpandedDataSetSettings() { - return getStubSettingsBuilder().deleteExpandedDataSetSettings(); - } - - /** Returns the builder for the settings used for calls to getChannelGroup. */ - public UnaryCallSettings.Builder - getChannelGroupSettings() { - return getStubSettingsBuilder().getChannelGroupSettings(); - } - - /** Returns the builder for the settings used for calls to listChannelGroups. */ - public PagedCallSettings.Builder< - ListChannelGroupsRequest, ListChannelGroupsResponse, ListChannelGroupsPagedResponse> - listChannelGroupsSettings() { - return getStubSettingsBuilder().listChannelGroupsSettings(); - } - - /** Returns the builder for the settings used for calls to createChannelGroup. */ - public UnaryCallSettings.Builder - createChannelGroupSettings() { - return getStubSettingsBuilder().createChannelGroupSettings(); - } - - /** Returns the builder for the settings used for calls to updateChannelGroup. */ - public UnaryCallSettings.Builder - updateChannelGroupSettings() { - return getStubSettingsBuilder().updateChannelGroupSettings(); - } - - /** Returns the builder for the settings used for calls to deleteChannelGroup. */ - public UnaryCallSettings.Builder - deleteChannelGroupSettings() { - return getStubSettingsBuilder().deleteChannelGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to setAutomatedGa4ConfigurationOptOut. - */ - public UnaryCallSettings.Builder< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutSettings() { - return getStubSettingsBuilder().setAutomatedGa4ConfigurationOptOutSettings(); - } - - /** - * Returns the builder for the settings used for calls to fetchAutomatedGa4ConfigurationOptOut. - */ - public UnaryCallSettings.Builder< - FetchAutomatedGa4ConfigurationOptOutRequest, - FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutSettings() { - return getStubSettingsBuilder().fetchAutomatedGa4ConfigurationOptOutSettings(); - } - - /** Returns the builder for the settings used for calls to getBigQueryLink. */ - public UnaryCallSettings.Builder - getBigQueryLinkSettings() { - return getStubSettingsBuilder().getBigQueryLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listBigQueryLinks. */ - public PagedCallSettings.Builder< - ListBigQueryLinksRequest, ListBigQueryLinksResponse, ListBigQueryLinksPagedResponse> - listBigQueryLinksSettings() { - return getStubSettingsBuilder().listBigQueryLinksSettings(); - } - - /** Returns the builder for the settings used for calls to getEnhancedMeasurementSettings. */ - public UnaryCallSettings.Builder< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsSettings() { - return getStubSettingsBuilder().getEnhancedMeasurementSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateEnhancedMeasurementSettings. */ - public UnaryCallSettings.Builder< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsSettings() { - return getStubSettingsBuilder().updateEnhancedMeasurementSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to createConnectedSiteTag. */ - public UnaryCallSettings.Builder - createConnectedSiteTagSettings() { - return getStubSettingsBuilder().createConnectedSiteTagSettings(); - } - - /** Returns the builder for the settings used for calls to deleteConnectedSiteTag. */ - public UnaryCallSettings.Builder - deleteConnectedSiteTagSettings() { - return getStubSettingsBuilder().deleteConnectedSiteTagSettings(); - } - - /** Returns the builder for the settings used for calls to listConnectedSiteTags. */ - public UnaryCallSettings.Builder - listConnectedSiteTagsSettings() { - return getStubSettingsBuilder().listConnectedSiteTagsSettings(); - } - - /** Returns the builder for the settings used for calls to fetchConnectedGa4Property. */ - public UnaryCallSettings.Builder< - FetchConnectedGa4PropertyRequest, FetchConnectedGa4PropertyResponse> - fetchConnectedGa4PropertySettings() { - return getStubSettingsBuilder().fetchConnectedGa4PropertySettings(); - } - - /** Returns the builder for the settings used for calls to getAdSenseLink. */ - public UnaryCallSettings.Builder getAdSenseLinkSettings() { - return getStubSettingsBuilder().getAdSenseLinkSettings(); - } - - /** Returns the builder for the settings used for calls to createAdSenseLink. */ - public UnaryCallSettings.Builder - createAdSenseLinkSettings() { - return getStubSettingsBuilder().createAdSenseLinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAdSenseLink. */ - public UnaryCallSettings.Builder deleteAdSenseLinkSettings() { - return getStubSettingsBuilder().deleteAdSenseLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listAdSenseLinks. */ - public PagedCallSettings.Builder< - ListAdSenseLinksRequest, ListAdSenseLinksResponse, ListAdSenseLinksPagedResponse> - listAdSenseLinksSettings() { - return getStubSettingsBuilder().listAdSenseLinksSettings(); - } - - /** Returns the builder for the settings used for calls to getEventCreateRule. */ - public UnaryCallSettings.Builder - getEventCreateRuleSettings() { - return getStubSettingsBuilder().getEventCreateRuleSettings(); - } - - /** Returns the builder for the settings used for calls to listEventCreateRules. */ - public PagedCallSettings.Builder< - ListEventCreateRulesRequest, - ListEventCreateRulesResponse, - ListEventCreateRulesPagedResponse> - listEventCreateRulesSettings() { - return getStubSettingsBuilder().listEventCreateRulesSettings(); - } - - /** Returns the builder for the settings used for calls to createEventCreateRule. */ - public UnaryCallSettings.Builder - createEventCreateRuleSettings() { - return getStubSettingsBuilder().createEventCreateRuleSettings(); - } - - /** Returns the builder for the settings used for calls to updateEventCreateRule. */ - public UnaryCallSettings.Builder - updateEventCreateRuleSettings() { - return getStubSettingsBuilder().updateEventCreateRuleSettings(); - } - - /** Returns the builder for the settings used for calls to deleteEventCreateRule. */ - public UnaryCallSettings.Builder - deleteEventCreateRuleSettings() { - return getStubSettingsBuilder().deleteEventCreateRuleSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataRedactionSettings. */ - public UnaryCallSettings.Builder - updateDataRedactionSettingsSettings() { - return getStubSettingsBuilder().updateDataRedactionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to getDataRedactionSettings. */ - public UnaryCallSettings.Builder - getDataRedactionSettingsSettings() { - return getStubSettingsBuilder().getDataRedactionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to createRollupProperty. */ - public UnaryCallSettings.Builder - createRollupPropertySettings() { - return getStubSettingsBuilder().createRollupPropertySettings(); - } - - /** Returns the builder for the settings used for calls to getRollupPropertySourceLink. */ - public UnaryCallSettings.Builder - getRollupPropertySourceLinkSettings() { - return getStubSettingsBuilder().getRollupPropertySourceLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listRollupPropertySourceLinks. */ - public PagedCallSettings.Builder< - ListRollupPropertySourceLinksRequest, - ListRollupPropertySourceLinksResponse, - ListRollupPropertySourceLinksPagedResponse> - listRollupPropertySourceLinksSettings() { - return getStubSettingsBuilder().listRollupPropertySourceLinksSettings(); - } - - /** Returns the builder for the settings used for calls to createRollupPropertySourceLink. */ - public UnaryCallSettings.Builder< - CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> - createRollupPropertySourceLinkSettings() { - return getStubSettingsBuilder().createRollupPropertySourceLinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRollupPropertySourceLink. */ - public UnaryCallSettings.Builder - deleteRollupPropertySourceLinkSettings() { - return getStubSettingsBuilder().deleteRollupPropertySourceLinkSettings(); - } - - /** Returns the builder for the settings used for calls to createSubproperty. */ - public UnaryCallSettings.Builder - createSubpropertySettings() { - return getStubSettingsBuilder().createSubpropertySettings(); - } - - /** Returns the builder for the settings used for calls to deleteSubpropertyEventFilter. */ - public UnaryCallSettings.Builder - deleteSubpropertyEventFilterSettings() { - return getStubSettingsBuilder().deleteSubpropertyEventFilterSettings(); - } - - /** Returns the builder for the settings used for calls to createSubpropertyEventFilter. */ - public UnaryCallSettings.Builder - createSubpropertyEventFilterSettings() { - return getStubSettingsBuilder().createSubpropertyEventFilterSettings(); - } - - @Override - public AnalyticsAdminServiceSettings build() throws IOException { - return new AnalyticsAdminServiceSettings(this); - } - } -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java deleted file mode 100644 index 292d9c997b78..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ /dev/null @@ -1,5190 +0,0 @@ -/* - * 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. - */ - -package com.google.analytics.admin.v1alpha.stub; - -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccessBindingsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAdSenseLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAudiencesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListBigQueryLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListChannelGroupsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListEventCreateRulesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListExpandedDataSetsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListRollupPropertySourceLinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSKAdNetworkConversionValueSchemasPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListSearchAds360LinksPagedResponse; -import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1alpha.AccessBinding; -import com.google.analytics.admin.v1alpha.Account; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest; -import com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1alpha.AdSenseLink; -import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; -import com.google.analytics.admin.v1alpha.ArchiveAudienceRequest; -import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; -import com.google.analytics.admin.v1alpha.AttributionSettings; -import com.google.analytics.admin.v1alpha.Audience; -import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.BigQueryLink; -import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.ChannelGroup; -import com.google.analytics.admin.v1alpha.ConversionEvent; -import com.google.analytics.admin.v1alpha.CreateAccessBindingRequest; -import com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest; -import com.google.analytics.admin.v1alpha.CreateAudienceRequest; -import com.google.analytics.admin.v1alpha.CreateChannelGroupRequest; -import com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest; -import com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse; -import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; -import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.CreateDataStreamRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest; -import com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest; -import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; -import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1alpha.CreatePropertyRequest; -import com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest; -import com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse; -import com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest; -import com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest; -import com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest; -import com.google.analytics.admin.v1alpha.CreateSubpropertyRequest; -import com.google.analytics.admin.v1alpha.CreateSubpropertyResponse; -import com.google.analytics.admin.v1alpha.CustomDimension; -import com.google.analytics.admin.v1alpha.CustomMetric; -import com.google.analytics.admin.v1alpha.DataRedactionSettings; -import com.google.analytics.admin.v1alpha.DataRetentionSettings; -import com.google.analytics.admin.v1alpha.DataSharingSettings; -import com.google.analytics.admin.v1alpha.DataStream; -import com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest; -import com.google.analytics.admin.v1alpha.DeleteAccountRequest; -import com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest; -import com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest; -import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; -import com.google.analytics.admin.v1alpha.DeleteDataStreamRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest; -import com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest; -import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1alpha.DeletePropertyRequest; -import com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest; -import com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest; -import com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; -import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; -import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; -import com.google.analytics.admin.v1alpha.EventCreateRule; -import com.google.analytics.admin.v1alpha.ExpandedDataSet; -import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest; -import com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse; -import com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest; -import com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse; -import com.google.analytics.admin.v1alpha.FirebaseLink; -import com.google.analytics.admin.v1alpha.GetAccessBindingRequest; -import com.google.analytics.admin.v1alpha.GetAccountRequest; -import com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest; -import com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.GetAudienceRequest; -import com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest; -import com.google.analytics.admin.v1alpha.GetChannelGroupRequest; -import com.google.analytics.admin.v1alpha.GetConversionEventRequest; -import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; -import com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest; -import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; -import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; -import com.google.analytics.admin.v1alpha.GetDataStreamRequest; -import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; -import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; -import com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest; -import com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest; -import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; -import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1alpha.GetPropertyRequest; -import com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest; -import com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest; -import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; -import com.google.analytics.admin.v1alpha.GlobalSiteTag; -import com.google.analytics.admin.v1alpha.GoogleAdsLink; -import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; -import com.google.analytics.admin.v1alpha.ListAccessBindingsRequest; -import com.google.analytics.admin.v1alpha.ListAccessBindingsResponse; -import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; -import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; -import com.google.analytics.admin.v1alpha.ListAccountsRequest; -import com.google.analytics.admin.v1alpha.ListAccountsResponse; -import com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest; -import com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse; -import com.google.analytics.admin.v1alpha.ListAudiencesRequest; -import com.google.analytics.admin.v1alpha.ListAudiencesResponse; -import com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest; -import com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse; -import com.google.analytics.admin.v1alpha.ListChannelGroupsRequest; -import com.google.analytics.admin.v1alpha.ListChannelGroupsResponse; -import com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest; -import com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse; -import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; -import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; -import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; -import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; -import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; -import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; -import com.google.analytics.admin.v1alpha.ListDataStreamsRequest; -import com.google.analytics.admin.v1alpha.ListDataStreamsResponse; -import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; -import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; -import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; -import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; -import com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest; -import com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse; -import com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest; -import com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse; -import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; -import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; -import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; -import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; -import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; -import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; -import com.google.analytics.admin.v1alpha.ListPropertiesRequest; -import com.google.analytics.admin.v1alpha.ListPropertiesResponse; -import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest; -import com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse; -import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest; -import com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse; -import com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest; -import com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse; -import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; -import com.google.analytics.admin.v1alpha.Property; -import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; -import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; -import com.google.analytics.admin.v1alpha.RollupPropertySourceLink; -import com.google.analytics.admin.v1alpha.RunAccessReportRequest; -import com.google.analytics.admin.v1alpha.RunAccessReportResponse; -import com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema; -import com.google.analytics.admin.v1alpha.SearchAds360Link; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest; -import com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse; -import com.google.analytics.admin.v1alpha.SubpropertyEventFilter; -import com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest; -import com.google.analytics.admin.v1alpha.UpdateAccountRequest; -import com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateAudienceRequest; -import com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest; -import com.google.analytics.admin.v1alpha.UpdateConversionEventRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; -import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; -import com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateDataStreamRequest; -import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest; -import com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest; -import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; -import com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest; -import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the AnalyticsAdminService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { - private static final MethodDescriptor getAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccount") - .setRequestMarshaller(ProtoUtils.marshaller(GetAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listAccountsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccounts") - .setRequestMarshaller(ProtoUtils.marshaller(ListAccountsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAccountsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccount") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> - provisionAccountTicketMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ProvisionAccountTicket") - .setRequestMarshaller( - ProtoUtils.marshaller(ProvisionAccountTicketRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ProvisionAccountTicketResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listAccountSummariesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccountSummaries") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAccountSummariesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAccountSummariesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getPropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetProperty") - .setRequestMarshaller(ProtoUtils.marshaller(GetPropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listPropertiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListProperties") - .setRequestMarshaller( - ProtoUtils.marshaller(ListPropertiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListPropertiesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createPropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateProperty") - .setRequestMarshaller( - ProtoUtils.marshaller(CreatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deletePropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty") - .setRequestMarshaller( - ProtoUtils.marshaller(DeletePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updatePropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateProperty") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createFirebaseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateFirebaseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteFirebaseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteFirebaseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listFirebaseLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListFirebaseLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListFirebaseLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListFirebaseLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getGlobalSiteTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGlobalSiteTag") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGlobalSiteTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(GlobalSiteTag.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createGoogleAdsLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateGoogleAdsLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateGoogleAdsLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleAdsLink") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteGoogleAdsLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteGoogleAdsLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listGoogleAdsLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListGoogleAdsLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGoogleAdsLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGoogleAdsLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDataSharingSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataSharingSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDataSharingSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - getMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller(GetMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets") - .setRequestMarshaller( - ProtoUtils.marshaller(ListMeasurementProtocolSecretsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ListMeasurementProtocolSecretsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller( - CreateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller( - DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/AcknowledgeUserDataCollection") - .setRequestMarshaller( - ProtoUtils.marshaller(AcknowledgeUserDataCollectionRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AcknowledgeUserDataCollectionResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - getSKAdNetworkConversionValueSchemaMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSKAdNetworkConversionValueSchema") - .setRequestMarshaller( - ProtoUtils.marshaller( - GetSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SKAdNetworkConversionValueSchema.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSKAdNetworkConversionValueSchema") - .setRequestMarshaller( - ProtoUtils.marshaller( - CreateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SKAdNetworkConversionValueSchema.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteSKAdNetworkConversionValueSchemaMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSKAdNetworkConversionValueSchema") - .setRequestMarshaller( - ProtoUtils.marshaller( - DeleteSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSKAdNetworkConversionValueSchema") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SKAdNetworkConversionValueSchema.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse> - listSKAdNetworkConversionValueSchemasMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSKAdNetworkConversionValueSchemas") - .setRequestMarshaller( - ProtoUtils.marshaller( - ListSKAdNetworkConversionValueSchemasRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ListSKAdNetworkConversionValueSchemasResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> - searchChangeHistoryEventsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchChangeHistoryEventsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getGoogleSignalsSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetGoogleSignalsSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateGoogleSignalsSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateGoogleSignalsSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(GetConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listConversionEventsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents") - .setRequestMarshaller( - ProtoUtils.marshaller(ListConversionEventsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink") - .setRequestMarshaller( - ProtoUtils.marshaller( - GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks") - .setRequestMarshaller( - ProtoUtils.marshaller( - ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink") - .setRequestMarshaller( - ProtoUtils.marshaller( - CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteDisplayVideo360AdvertiserLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink") - .setRequestMarshaller( - ProtoUtils.marshaller( - DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal") - .setRequestMarshaller( - ProtoUtils.marshaller( - GetDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals") - .setRequestMarshaller( - ProtoUtils.marshaller( - ListDisplayVideo360AdvertiserLinkProposalsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal") - .setRequestMarshaller( - ProtoUtils.marshaller( - CreateDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal") - .setRequestMarshaller( - ProtoUtils.marshaller( - DeleteDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal") - .setRequestMarshaller( - ProtoUtils.marshaller( - ApproveDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal") - .setRequestMarshaller( - ProtoUtils.marshaller( - CancelDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listCustomDimensionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCustomDimensionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListCustomDimensionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - archiveCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(ArchiveCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listCustomMetricsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCustomMetricsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListCustomMetricsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - archiveCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(ArchiveCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDataRetentionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateDataRetentionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listDataStreamsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDataStreams") - .setRequestMarshaller( - ProtoUtils.marshaller(ListDataStreamsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListDataStreamsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getAudienceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1alpha.AnalyticsAdminService/GetAudience") - .setRequestMarshaller(ProtoUtils.marshaller(GetAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listAudiencesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAudiences") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAudiencesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAudiencesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createAudienceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAudience") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAudienceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAudience") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Audience.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - archiveAudienceMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveAudience") - .setRequestMarshaller( - ProtoUtils.marshaller(ArchiveAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getSearchAds360LinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetSearchAds360Link") - .setRequestMarshaller( - ProtoUtils.marshaller(GetSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SearchAds360Link.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listSearchAds360LinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListSearchAds360Links") - .setRequestMarshaller( - ProtoUtils.marshaller(ListSearchAds360LinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListSearchAds360LinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createSearchAds360LinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSearchAds360Link") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SearchAds360Link.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteSearchAds360LinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSearchAds360Link") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateSearchAds360LinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateSearchAds360Link") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SearchAds360Link.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getAttributionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAttributionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetAttributionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AttributionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAttributionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAttributionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAttributionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AttributionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - runAccessReportMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/RunAccessReport") - .setRequestMarshaller( - ProtoUtils.marshaller(RunAccessReportRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RunAccessReportResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createAccessBindingMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAccessBinding") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getAccessBindingMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAccessBinding") - .setRequestMarshaller( - ProtoUtils.marshaller(GetAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAccessBindingMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateAccessBinding") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AccessBinding.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteAccessBindingMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAccessBinding") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listAccessBindingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAccessBindings") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAccessBindingsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - BatchCreateAccessBindingsRequest, BatchCreateAccessBindingsResponse> - batchCreateAccessBindingsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchCreateAccessBindings") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchCreateAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchCreateAccessBindingsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - BatchGetAccessBindingsRequest, BatchGetAccessBindingsResponse> - batchGetAccessBindingsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchGetAccessBindings") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchGetAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchGetAccessBindingsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - BatchUpdateAccessBindingsRequest, BatchUpdateAccessBindingsResponse> - batchUpdateAccessBindingsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchUpdateAccessBindings") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchUpdateAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(BatchUpdateAccessBindingsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - batchDeleteAccessBindingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/BatchDeleteAccessBindings") - .setRequestMarshaller( - ProtoUtils.marshaller(BatchDeleteAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getExpandedDataSetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetExpandedDataSet") - .setRequestMarshaller( - ProtoUtils.marshaller(GetExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listExpandedDataSetsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListExpandedDataSets") - .setRequestMarshaller( - ProtoUtils.marshaller(ListExpandedDataSetsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListExpandedDataSetsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createExpandedDataSetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateExpandedDataSet") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateExpandedDataSetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateExpandedDataSet") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ExpandedDataSet.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteExpandedDataSetMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteExpandedDataSet") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getChannelGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetChannelGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(GetChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ChannelGroup.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listChannelGroupsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListChannelGroups") - .setRequestMarshaller( - ProtoUtils.marshaller(ListChannelGroupsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListChannelGroupsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createChannelGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateChannelGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ChannelGroup.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateChannelGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateChannelGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ChannelGroup.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteChannelGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteChannelGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/SetAutomatedGa4ConfigurationOptOut") - .setRequestMarshaller( - ProtoUtils.marshaller( - SetAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchAutomatedGa4ConfigurationOptOut") - .setRequestMarshaller( - ProtoUtils.marshaller( - FetchAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - FetchAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getBigQueryLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetBigQueryLink") - .setRequestMarshaller( - ProtoUtils.marshaller(GetBigQueryLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(BigQueryLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listBigQueryLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListBigQueryLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListBigQueryLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListBigQueryLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - GetEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - getEnhancedMeasurementSettingsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEnhancedMeasurementSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - UpdateEnhancedMeasurementSettingsRequest, EnhancedMeasurementSettings> - updateEnhancedMeasurementSettingsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEnhancedMeasurementSettings") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(EnhancedMeasurementSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CreateConnectedSiteTagRequest, CreateConnectedSiteTagResponse> - createConnectedSiteTagMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConnectedSiteTag") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateConnectedSiteTagRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CreateConnectedSiteTagResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteConnectedSiteTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConnectedSiteTag") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteConnectedSiteTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listConnectedSiteTagsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConnectedSiteTags") - .setRequestMarshaller( - ProtoUtils.marshaller(ListConnectedSiteTagsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListConnectedSiteTagsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - FetchConnectedGa4PropertyRequest, FetchConnectedGa4PropertyResponse> - fetchConnectedGa4PropertyMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/FetchConnectedGa4Property") - .setRequestMarshaller( - ProtoUtils.marshaller(FetchConnectedGa4PropertyRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(FetchConnectedGa4PropertyResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getAdSenseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetAdSenseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(GetAdSenseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AdSenseLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createAdSenseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAdSenseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAdSenseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AdSenseLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteAdSenseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteAdSenseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteAdSenseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listAdSenseLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListAdSenseLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAdSenseLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAdSenseLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getEventCreateRuleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetEventCreateRule") - .setRequestMarshaller( - ProtoUtils.marshaller(GetEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EventCreateRule.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listEventCreateRulesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListEventCreateRules") - .setRequestMarshaller( - ProtoUtils.marshaller(ListEventCreateRulesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListEventCreateRulesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createEventCreateRuleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateEventCreateRule") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EventCreateRule.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateEventCreateRuleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateEventCreateRule") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EventCreateRule.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteEventCreateRuleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteEventCreateRule") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateDataRedactionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRedactionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDataRedactionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataRedactionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDataRedactionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRedactionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDataRedactionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataRedactionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createRollupPropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupProperty") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateRollupPropertyRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CreateRollupPropertyResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - GetRollupPropertySourceLinkRequest, RollupPropertySourceLink> - getRollupPropertySourceLinkMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/GetRollupPropertySourceLink") - .setRequestMarshaller( - ProtoUtils.marshaller(GetRollupPropertySourceLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RollupPropertySourceLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> - listRollupPropertySourceLinksMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/ListRollupPropertySourceLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListRollupPropertySourceLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListRollupPropertySourceLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CreateRollupPropertySourceLinkRequest, RollupPropertySourceLink> - createRollupPropertySourceLinkMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateRollupPropertySourceLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateRollupPropertySourceLinkRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RollupPropertySourceLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteRollupPropertySourceLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteRollupPropertySourceLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteRollupPropertySourceLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createSubpropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubproperty") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateSubpropertyRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(CreateSubpropertyResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteSubpropertyEventFilterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteSubpropertyEventFilter") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteSubpropertyEventFilterRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createSubpropertyEventFilterMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateSubpropertyEventFilter") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateSubpropertyEventFilterRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SubpropertyEventFilter.getDefaultInstance())) - .build(); - - private final UnaryCallable getAccountCallable; - private final UnaryCallable listAccountsCallable; - private final UnaryCallable - listAccountsPagedCallable; - private final UnaryCallable deleteAccountCallable; - private final UnaryCallable updateAccountCallable; - private final UnaryCallable - provisionAccountTicketCallable; - private final UnaryCallable - listAccountSummariesCallable; - private final UnaryCallable - listAccountSummariesPagedCallable; - private final UnaryCallable getPropertyCallable; - private final UnaryCallable listPropertiesCallable; - private final UnaryCallable - listPropertiesPagedCallable; - private final UnaryCallable createPropertyCallable; - private final UnaryCallable deletePropertyCallable; - private final UnaryCallable updatePropertyCallable; - private final UnaryCallable createFirebaseLinkCallable; - private final UnaryCallable deleteFirebaseLinkCallable; - private final UnaryCallable - listFirebaseLinksCallable; - private final UnaryCallable - listFirebaseLinksPagedCallable; - private final UnaryCallable getGlobalSiteTagCallable; - private final UnaryCallable - createGoogleAdsLinkCallable; - private final UnaryCallable - updateGoogleAdsLinkCallable; - private final UnaryCallable deleteGoogleAdsLinkCallable; - private final UnaryCallable - listGoogleAdsLinksCallable; - private final UnaryCallable - listGoogleAdsLinksPagedCallable; - private final UnaryCallable - getDataSharingSettingsCallable; - private final UnaryCallable - getMeasurementProtocolSecretCallable; - private final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable; - private final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable; - private final UnaryCallable - createMeasurementProtocolSecretCallable; - private final UnaryCallable - deleteMeasurementProtocolSecretCallable; - private final UnaryCallable - updateMeasurementProtocolSecretCallable; - private final UnaryCallable< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionCallable; - private final UnaryCallable< - GetSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - getSKAdNetworkConversionValueSchemaCallable; - private final UnaryCallable< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaCallable; - private final UnaryCallable - deleteSKAdNetworkConversionValueSchemaCallable; - private final UnaryCallable< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaCallable; - private final UnaryCallable< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse> - listSKAdNetworkConversionValueSchemasCallable; - private final UnaryCallable< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasPagedResponse> - listSKAdNetworkConversionValueSchemasPagedCallable; - private final UnaryCallable - searchChangeHistoryEventsCallable; - private final UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable; - private final UnaryCallable - getGoogleSignalsSettingsCallable; - private final UnaryCallable - updateGoogleSignalsSettingsCallable; - private final UnaryCallable - createConversionEventCallable; - private final UnaryCallable - updateConversionEventCallable; - private final UnaryCallable - getConversionEventCallable; - private final UnaryCallable deleteConversionEventCallable; - private final UnaryCallable - listConversionEventsCallable; - private final UnaryCallable - listConversionEventsPagedCallable; - private final UnaryCallable< - GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - getDisplayVideo360AdvertiserLinkCallable; - private final UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksCallable; - private final UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksPagedCallable; - private final UnaryCallable< - CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - createDisplayVideo360AdvertiserLinkCallable; - private final UnaryCallable - deleteDisplayVideo360AdvertiserLinkCallable; - private final UnaryCallable< - UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> - updateDisplayVideo360AdvertiserLinkCallable; - private final UnaryCallable< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalCallable; - private final UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsCallable; - private final UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsPagedCallable; - private final UnaryCallable< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalCallable; - private final UnaryCallable - deleteDisplayVideo360AdvertiserLinkProposalCallable; - private final UnaryCallable< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalCallable; - private final UnaryCallable< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalCallable; - private final UnaryCallable - createCustomDimensionCallable; - private final UnaryCallable - updateCustomDimensionCallable; - private final UnaryCallable - listCustomDimensionsCallable; - private final UnaryCallable - listCustomDimensionsPagedCallable; - private final UnaryCallable archiveCustomDimensionCallable; - private final UnaryCallable - getCustomDimensionCallable; - private final UnaryCallable createCustomMetricCallable; - private final UnaryCallable updateCustomMetricCallable; - private final UnaryCallable - listCustomMetricsCallable; - private final UnaryCallable - listCustomMetricsPagedCallable; - private final UnaryCallable archiveCustomMetricCallable; - private final UnaryCallable getCustomMetricCallable; - private final UnaryCallable - getDataRetentionSettingsCallable; - private final UnaryCallable - updateDataRetentionSettingsCallable; - private final UnaryCallable createDataStreamCallable; - private final UnaryCallable deleteDataStreamCallable; - private final UnaryCallable updateDataStreamCallable; - private final UnaryCallable - listDataStreamsCallable; - private final UnaryCallable - listDataStreamsPagedCallable; - private final UnaryCallable getDataStreamCallable; - private final UnaryCallable getAudienceCallable; - private final UnaryCallable listAudiencesCallable; - private final UnaryCallable - listAudiencesPagedCallable; - private final UnaryCallable createAudienceCallable; - private final UnaryCallable updateAudienceCallable; - private final UnaryCallable archiveAudienceCallable; - private final UnaryCallable - getSearchAds360LinkCallable; - private final UnaryCallable - listSearchAds360LinksCallable; - private final UnaryCallable - listSearchAds360LinksPagedCallable; - private final UnaryCallable - createSearchAds360LinkCallable; - private final UnaryCallable deleteSearchAds360LinkCallable; - private final UnaryCallable - updateSearchAds360LinkCallable; - private final UnaryCallable - getAttributionSettingsCallable; - private final UnaryCallable - updateAttributionSettingsCallable; - private final UnaryCallable - runAccessReportCallable; - private final UnaryCallable - createAccessBindingCallable; - private final UnaryCallable getAccessBindingCallable; - private final UnaryCallable - updateAccessBindingCallable; - private final UnaryCallable deleteAccessBindingCallable; - private final UnaryCallable - listAccessBindingsCallable; - private final UnaryCallable - listAccessBindingsPagedCallable; - private final UnaryCallable - batchCreateAccessBindingsCallable; - private final UnaryCallable - batchGetAccessBindingsCallable; - private final UnaryCallable - batchUpdateAccessBindingsCallable; - private final UnaryCallable - batchDeleteAccessBindingsCallable; - private final UnaryCallable - getExpandedDataSetCallable; - private final UnaryCallable - listExpandedDataSetsCallable; - private final UnaryCallable - listExpandedDataSetsPagedCallable; - private final UnaryCallable - createExpandedDataSetCallable; - private final UnaryCallable - updateExpandedDataSetCallable; - private final UnaryCallable deleteExpandedDataSetCallable; - private final UnaryCallable getChannelGroupCallable; - private final UnaryCallable - listChannelGroupsCallable; - private final UnaryCallable - listChannelGroupsPagedCallable; - private final UnaryCallable createChannelGroupCallable; - private final UnaryCallable updateChannelGroupCallable; - private final UnaryCallable deleteChannelGroupCallable; - private final UnaryCallable< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutCallable; - private final UnaryCallable< - FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutCallable; - private final UnaryCallable getBigQueryLinkCallable; - private final UnaryCallable - listBigQueryLinksCallable; - private final UnaryCallable - listBigQueryLinksPagedCallable; - private final UnaryCallable - getEnhancedMeasurementSettingsCallable; - private final UnaryCallable - updateEnhancedMeasurementSettingsCallable; - private final UnaryCallable - createConnectedSiteTagCallable; - private final UnaryCallable deleteConnectedSiteTagCallable; - private final UnaryCallable - listConnectedSiteTagsCallable; - private final UnaryCallable - fetchConnectedGa4PropertyCallable; - private final UnaryCallable getAdSenseLinkCallable; - private final UnaryCallable createAdSenseLinkCallable; - private final UnaryCallable deleteAdSenseLinkCallable; - private final UnaryCallable - listAdSenseLinksCallable; - private final UnaryCallable - listAdSenseLinksPagedCallable; - private final UnaryCallable - getEventCreateRuleCallable; - private final UnaryCallable - listEventCreateRulesCallable; - private final UnaryCallable - listEventCreateRulesPagedCallable; - private final UnaryCallable - createEventCreateRuleCallable; - private final UnaryCallable - updateEventCreateRuleCallable; - private final UnaryCallable deleteEventCreateRuleCallable; - private final UnaryCallable - updateDataRedactionSettingsCallable; - private final UnaryCallable - getDataRedactionSettingsCallable; - private final UnaryCallable - createRollupPropertyCallable; - private final UnaryCallable - getRollupPropertySourceLinkCallable; - private final UnaryCallable< - ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksResponse> - listRollupPropertySourceLinksCallable; - private final UnaryCallable< - ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> - listRollupPropertySourceLinksPagedCallable; - private final UnaryCallable - createRollupPropertySourceLinkCallable; - private final UnaryCallable - deleteRollupPropertySourceLinkCallable; - private final UnaryCallable - createSubpropertyCallable; - private final UnaryCallable - deleteSubpropertyEventFilterCallable; - private final UnaryCallable - createSubpropertyEventFilterCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcAnalyticsAdminServiceStub create( - AnalyticsAdminServiceStubSettings settings) throws IOException { - return new GrpcAnalyticsAdminServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcAnalyticsAdminServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcAnalyticsAdminServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcAnalyticsAdminServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings getAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAccountMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listAccountsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountsMethodDescriptor) - .build(); - GrpcCallSettings deleteAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAccountMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAccountMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("account.name", String.valueOf(request.getAccount().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - provisionAccountTicketTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(provisionAccountTicketMethodDescriptor) - .build(); - GrpcCallSettings - listAccountSummariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountSummariesMethodDescriptor) - .build(); - GrpcCallSettings getPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPropertyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listPropertiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listPropertiesMethodDescriptor) - .build(); - GrpcCallSettings createPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPropertyMethodDescriptor) - .build(); - GrpcCallSettings deletePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updatePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updatePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("property.name", String.valueOf(request.getProperty().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listFirebaseLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listFirebaseLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getGlobalSiteTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGlobalSiteTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "google_ads_link.name", - String.valueOf(request.getGoogleAdsLink().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listGoogleAdsLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getDataSharingSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listMeasurementProtocolSecretsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - deleteMeasurementProtocolSecretTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "measurement_protocol_secret.name", - String.valueOf(request.getMeasurementProtocolSecret().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - acknowledgeUserDataCollectionTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("property", String.valueOf(request.getProperty())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getSKAdNetworkConversionValueSchemaTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(getSKAdNetworkConversionValueSchemaMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(createSKAdNetworkConversionValueSchemaMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - deleteSKAdNetworkConversionValueSchemaTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteSKAdNetworkConversionValueSchemaMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(updateSKAdNetworkConversionValueSchemaMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "skadnetwork_conversion_value_schema.name", - String.valueOf(request.getSkadnetworkConversionValueSchema().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse> - listSKAdNetworkConversionValueSchemasTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listSKAdNetworkConversionValueSchemasMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - searchChangeHistoryEventsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("account", String.valueOf(request.getAccount())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getGoogleSignalsSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getGoogleSignalsSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateGoogleSignalsSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleSignalsSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "google_signals_settings.name", - String.valueOf(request.getGoogleSignalsSettings().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "conversion_event.name", - String.valueOf(request.getConversionEvent().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listConversionEventsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listConversionEventsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(getDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listDisplayVideo360AdvertiserLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(createDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - deleteDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateDisplayVideo360AdvertiserLinkTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(updateDisplayVideo360AdvertiserLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "display_video_360_advertiser_link.name", - String.valueOf(request.getDisplayVideo360AdvertiserLink().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(getDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - CreateDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(createDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - deleteDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - CancelDisplayVideo360AdvertiserLinkProposalRequest, - DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "custom_dimension.name", - String.valueOf(request.getCustomDimension().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listCustomDimensionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomDimensionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings archiveCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listCustomMetricsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomMetricsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings archiveCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "data_retention_settings.name", - String.valueOf(request.getDataRetentionSettings().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "data_stream.name", String.valueOf(request.getDataStream().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listDataStreamsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listDataStreamsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listAudiencesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAudiencesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("audience.name", String.valueOf(request.getAudience().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings archiveAudienceTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveAudienceMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getSearchAds360LinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getSearchAds360LinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listSearchAds360LinksTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listSearchAds360LinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createSearchAds360LinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createSearchAds360LinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteSearchAds360LinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteSearchAds360LinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateSearchAds360LinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateSearchAds360LinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "search_ads_360_link.name", - String.valueOf(request.getSearchAds360Link().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getAttributionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAttributionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateAttributionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAttributionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "attribution_settings.name", - String.valueOf(request.getAttributionSettings().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - runAccessReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runAccessReportMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("entity", String.valueOf(request.getEntity())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createAccessBindingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAccessBindingMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getAccessBindingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAccessBindingMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateAccessBindingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAccessBindingMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "access_binding.name", - String.valueOf(request.getAccessBinding().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteAccessBindingTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAccessBindingMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listAccessBindingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccessBindingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchCreateAccessBindingsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(batchCreateAccessBindingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchGetAccessBindingsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(batchGetAccessBindingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchUpdateAccessBindingsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(batchUpdateAccessBindingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - batchDeleteAccessBindingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchDeleteAccessBindingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getExpandedDataSetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getExpandedDataSetMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listExpandedDataSetsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listExpandedDataSetsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createExpandedDataSetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createExpandedDataSetMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateExpandedDataSetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateExpandedDataSetMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "expanded_data_set.name", - String.valueOf(request.getExpandedDataSet().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteExpandedDataSetTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteExpandedDataSetMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getChannelGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getChannelGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listChannelGroupsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listChannelGroupsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings createChannelGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createChannelGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateChannelGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateChannelGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "channel_group.name", String.valueOf(request.getChannelGroup().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteChannelGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteChannelGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(setAutomatedGa4ConfigurationOptOutMethodDescriptor) - .build(); - GrpcCallSettings< - FetchAutomatedGa4ConfigurationOptOutRequest, - FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(fetchAutomatedGa4ConfigurationOptOutMethodDescriptor) - .build(); - GrpcCallSettings getBigQueryLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getBigQueryLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listBigQueryLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listBigQueryLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getEnhancedMeasurementSettingsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getEnhancedMeasurementSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateEnhancedMeasurementSettingsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(updateEnhancedMeasurementSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "enhanced_measurement_settings.name", - String.valueOf(request.getEnhancedMeasurementSettings().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createConnectedSiteTagTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createConnectedSiteTagMethodDescriptor) - .build(); - GrpcCallSettings deleteConnectedSiteTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteConnectedSiteTagMethodDescriptor) - .build(); - GrpcCallSettings - listConnectedSiteTagsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listConnectedSiteTagsMethodDescriptor) - .build(); - GrpcCallSettings - fetchConnectedGa4PropertyTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(fetchConnectedGa4PropertyMethodDescriptor) - .build(); - GrpcCallSettings getAdSenseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAdSenseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createAdSenseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAdSenseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteAdSenseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAdSenseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listAdSenseLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAdSenseLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getEventCreateRuleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEventCreateRuleMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listEventCreateRulesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listEventCreateRulesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createEventCreateRuleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createEventCreateRuleMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateEventCreateRuleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateEventCreateRuleMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "event_create_rule.name", - String.valueOf(request.getEventCreateRule().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteEventCreateRuleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteEventCreateRuleMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateDataRedactionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataRedactionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "data_redaction_settings.name", - String.valueOf(request.getDataRedactionSettings().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getDataRedactionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataRedactionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createRollupPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createRollupPropertyMethodDescriptor) - .build(); - GrpcCallSettings - getRollupPropertySourceLinkTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getRollupPropertySourceLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listRollupPropertySourceLinksTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listRollupPropertySourceLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createRollupPropertySourceLinkTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createRollupPropertySourceLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - deleteRollupPropertySourceLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteRollupPropertySourceLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createSubpropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createSubpropertyMethodDescriptor) - .build(); - GrpcCallSettings - deleteSubpropertyEventFilterTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteSubpropertyEventFilterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createSubpropertyEventFilterTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createSubpropertyEventFilterMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - - this.getAccountCallable = - callableFactory.createUnaryCallable( - getAccountTransportSettings, settings.getAccountSettings(), clientContext); - this.listAccountsCallable = - callableFactory.createUnaryCallable( - listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); - this.listAccountsPagedCallable = - callableFactory.createPagedCallable( - listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); - this.deleteAccountCallable = - callableFactory.createUnaryCallable( - deleteAccountTransportSettings, settings.deleteAccountSettings(), clientContext); - this.updateAccountCallable = - callableFactory.createUnaryCallable( - updateAccountTransportSettings, settings.updateAccountSettings(), clientContext); - this.provisionAccountTicketCallable = - callableFactory.createUnaryCallable( - provisionAccountTicketTransportSettings, - settings.provisionAccountTicketSettings(), - clientContext); - this.listAccountSummariesCallable = - callableFactory.createUnaryCallable( - listAccountSummariesTransportSettings, - settings.listAccountSummariesSettings(), - clientContext); - this.listAccountSummariesPagedCallable = - callableFactory.createPagedCallable( - listAccountSummariesTransportSettings, - settings.listAccountSummariesSettings(), - clientContext); - this.getPropertyCallable = - callableFactory.createUnaryCallable( - getPropertyTransportSettings, settings.getPropertySettings(), clientContext); - this.listPropertiesCallable = - callableFactory.createUnaryCallable( - listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); - this.listPropertiesPagedCallable = - callableFactory.createPagedCallable( - listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); - this.createPropertyCallable = - callableFactory.createUnaryCallable( - createPropertyTransportSettings, settings.createPropertySettings(), clientContext); - this.deletePropertyCallable = - callableFactory.createUnaryCallable( - deletePropertyTransportSettings, settings.deletePropertySettings(), clientContext); - this.updatePropertyCallable = - callableFactory.createUnaryCallable( - updatePropertyTransportSettings, settings.updatePropertySettings(), clientContext); - this.createFirebaseLinkCallable = - callableFactory.createUnaryCallable( - createFirebaseLinkTransportSettings, - settings.createFirebaseLinkSettings(), - clientContext); - this.deleteFirebaseLinkCallable = - callableFactory.createUnaryCallable( - deleteFirebaseLinkTransportSettings, - settings.deleteFirebaseLinkSettings(), - clientContext); - this.listFirebaseLinksCallable = - callableFactory.createUnaryCallable( - listFirebaseLinksTransportSettings, - settings.listFirebaseLinksSettings(), - clientContext); - this.listFirebaseLinksPagedCallable = - callableFactory.createPagedCallable( - listFirebaseLinksTransportSettings, - settings.listFirebaseLinksSettings(), - clientContext); - this.getGlobalSiteTagCallable = - callableFactory.createUnaryCallable( - getGlobalSiteTagTransportSettings, settings.getGlobalSiteTagSettings(), clientContext); - this.createGoogleAdsLinkCallable = - callableFactory.createUnaryCallable( - createGoogleAdsLinkTransportSettings, - settings.createGoogleAdsLinkSettings(), - clientContext); - this.updateGoogleAdsLinkCallable = - callableFactory.createUnaryCallable( - updateGoogleAdsLinkTransportSettings, - settings.updateGoogleAdsLinkSettings(), - clientContext); - this.deleteGoogleAdsLinkCallable = - callableFactory.createUnaryCallable( - deleteGoogleAdsLinkTransportSettings, - settings.deleteGoogleAdsLinkSettings(), - clientContext); - this.listGoogleAdsLinksCallable = - callableFactory.createUnaryCallable( - listGoogleAdsLinksTransportSettings, - settings.listGoogleAdsLinksSettings(), - clientContext); - this.listGoogleAdsLinksPagedCallable = - callableFactory.createPagedCallable( - listGoogleAdsLinksTransportSettings, - settings.listGoogleAdsLinksSettings(), - clientContext); - this.getDataSharingSettingsCallable = - callableFactory.createUnaryCallable( - getDataSharingSettingsTransportSettings, - settings.getDataSharingSettingsSettings(), - clientContext); - this.getMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - getMeasurementProtocolSecretTransportSettings, - settings.getMeasurementProtocolSecretSettings(), - clientContext); - this.listMeasurementProtocolSecretsCallable = - callableFactory.createUnaryCallable( - listMeasurementProtocolSecretsTransportSettings, - settings.listMeasurementProtocolSecretsSettings(), - clientContext); - this.listMeasurementProtocolSecretsPagedCallable = - callableFactory.createPagedCallable( - listMeasurementProtocolSecretsTransportSettings, - settings.listMeasurementProtocolSecretsSettings(), - clientContext); - this.createMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - createMeasurementProtocolSecretTransportSettings, - settings.createMeasurementProtocolSecretSettings(), - clientContext); - this.deleteMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - deleteMeasurementProtocolSecretTransportSettings, - settings.deleteMeasurementProtocolSecretSettings(), - clientContext); - this.updateMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - updateMeasurementProtocolSecretTransportSettings, - settings.updateMeasurementProtocolSecretSettings(), - clientContext); - this.acknowledgeUserDataCollectionCallable = - callableFactory.createUnaryCallable( - acknowledgeUserDataCollectionTransportSettings, - settings.acknowledgeUserDataCollectionSettings(), - clientContext); - this.getSKAdNetworkConversionValueSchemaCallable = - callableFactory.createUnaryCallable( - getSKAdNetworkConversionValueSchemaTransportSettings, - settings.getSKAdNetworkConversionValueSchemaSettings(), - clientContext); - this.createSKAdNetworkConversionValueSchemaCallable = - callableFactory.createUnaryCallable( - createSKAdNetworkConversionValueSchemaTransportSettings, - settings.createSKAdNetworkConversionValueSchemaSettings(), - clientContext); - this.deleteSKAdNetworkConversionValueSchemaCallable = - callableFactory.createUnaryCallable( - deleteSKAdNetworkConversionValueSchemaTransportSettings, - settings.deleteSKAdNetworkConversionValueSchemaSettings(), - clientContext); - this.updateSKAdNetworkConversionValueSchemaCallable = - callableFactory.createUnaryCallable( - updateSKAdNetworkConversionValueSchemaTransportSettings, - settings.updateSKAdNetworkConversionValueSchemaSettings(), - clientContext); - this.listSKAdNetworkConversionValueSchemasCallable = - callableFactory.createUnaryCallable( - listSKAdNetworkConversionValueSchemasTransportSettings, - settings.listSKAdNetworkConversionValueSchemasSettings(), - clientContext); - this.listSKAdNetworkConversionValueSchemasPagedCallable = - callableFactory.createPagedCallable( - listSKAdNetworkConversionValueSchemasTransportSettings, - settings.listSKAdNetworkConversionValueSchemasSettings(), - clientContext); - this.searchChangeHistoryEventsCallable = - callableFactory.createUnaryCallable( - searchChangeHistoryEventsTransportSettings, - settings.searchChangeHistoryEventsSettings(), - clientContext); - this.searchChangeHistoryEventsPagedCallable = - callableFactory.createPagedCallable( - searchChangeHistoryEventsTransportSettings, - settings.searchChangeHistoryEventsSettings(), - clientContext); - this.getGoogleSignalsSettingsCallable = - callableFactory.createUnaryCallable( - getGoogleSignalsSettingsTransportSettings, - settings.getGoogleSignalsSettingsSettings(), - clientContext); - this.updateGoogleSignalsSettingsCallable = - callableFactory.createUnaryCallable( - updateGoogleSignalsSettingsTransportSettings, - settings.updateGoogleSignalsSettingsSettings(), - clientContext); - this.createConversionEventCallable = - callableFactory.createUnaryCallable( - createConversionEventTransportSettings, - settings.createConversionEventSettings(), - clientContext); - this.updateConversionEventCallable = - callableFactory.createUnaryCallable( - updateConversionEventTransportSettings, - settings.updateConversionEventSettings(), - clientContext); - this.getConversionEventCallable = - callableFactory.createUnaryCallable( - getConversionEventTransportSettings, - settings.getConversionEventSettings(), - clientContext); - this.deleteConversionEventCallable = - callableFactory.createUnaryCallable( - deleteConversionEventTransportSettings, - settings.deleteConversionEventSettings(), - clientContext); - this.listConversionEventsCallable = - callableFactory.createUnaryCallable( - listConversionEventsTransportSettings, - settings.listConversionEventsSettings(), - clientContext); - this.listConversionEventsPagedCallable = - callableFactory.createPagedCallable( - listConversionEventsTransportSettings, - settings.listConversionEventsSettings(), - clientContext); - this.getDisplayVideo360AdvertiserLinkCallable = - callableFactory.createUnaryCallable( - getDisplayVideo360AdvertiserLinkTransportSettings, - settings.getDisplayVideo360AdvertiserLinkSettings(), - clientContext); - this.listDisplayVideo360AdvertiserLinksCallable = - callableFactory.createUnaryCallable( - listDisplayVideo360AdvertiserLinksTransportSettings, - settings.listDisplayVideo360AdvertiserLinksSettings(), - clientContext); - this.listDisplayVideo360AdvertiserLinksPagedCallable = - callableFactory.createPagedCallable( - listDisplayVideo360AdvertiserLinksTransportSettings, - settings.listDisplayVideo360AdvertiserLinksSettings(), - clientContext); - this.createDisplayVideo360AdvertiserLinkCallable = - callableFactory.createUnaryCallable( - createDisplayVideo360AdvertiserLinkTransportSettings, - settings.createDisplayVideo360AdvertiserLinkSettings(), - clientContext); - this.deleteDisplayVideo360AdvertiserLinkCallable = - callableFactory.createUnaryCallable( - deleteDisplayVideo360AdvertiserLinkTransportSettings, - settings.deleteDisplayVideo360AdvertiserLinkSettings(), - clientContext); - this.updateDisplayVideo360AdvertiserLinkCallable = - callableFactory.createUnaryCallable( - updateDisplayVideo360AdvertiserLinkTransportSettings, - settings.updateDisplayVideo360AdvertiserLinkSettings(), - clientContext); - this.getDisplayVideo360AdvertiserLinkProposalCallable = - callableFactory.createUnaryCallable( - getDisplayVideo360AdvertiserLinkProposalTransportSettings, - settings.getDisplayVideo360AdvertiserLinkProposalSettings(), - clientContext); - this.listDisplayVideo360AdvertiserLinkProposalsCallable = - callableFactory.createUnaryCallable( - listDisplayVideo360AdvertiserLinkProposalsTransportSettings, - settings.listDisplayVideo360AdvertiserLinkProposalsSettings(), - clientContext); - this.listDisplayVideo360AdvertiserLinkProposalsPagedCallable = - callableFactory.createPagedCallable( - listDisplayVideo360AdvertiserLinkProposalsTransportSettings, - settings.listDisplayVideo360AdvertiserLinkProposalsSettings(), - clientContext); - this.createDisplayVideo360AdvertiserLinkProposalCallable = - callableFactory.createUnaryCallable( - createDisplayVideo360AdvertiserLinkProposalTransportSettings, - settings.createDisplayVideo360AdvertiserLinkProposalSettings(), - clientContext); - this.deleteDisplayVideo360AdvertiserLinkProposalCallable = - callableFactory.createUnaryCallable( - deleteDisplayVideo360AdvertiserLinkProposalTransportSettings, - settings.deleteDisplayVideo360AdvertiserLinkProposalSettings(), - clientContext); - this.approveDisplayVideo360AdvertiserLinkProposalCallable = - callableFactory.createUnaryCallable( - approveDisplayVideo360AdvertiserLinkProposalTransportSettings, - settings.approveDisplayVideo360AdvertiserLinkProposalSettings(), - clientContext); - this.cancelDisplayVideo360AdvertiserLinkProposalCallable = - callableFactory.createUnaryCallable( - cancelDisplayVideo360AdvertiserLinkProposalTransportSettings, - settings.cancelDisplayVideo360AdvertiserLinkProposalSettings(), - clientContext); - this.createCustomDimensionCallable = - callableFactory.createUnaryCallable( - createCustomDimensionTransportSettings, - settings.createCustomDimensionSettings(), - clientContext); - this.updateCustomDimensionCallable = - callableFactory.createUnaryCallable( - updateCustomDimensionTransportSettings, - settings.updateCustomDimensionSettings(), - clientContext); - this.listCustomDimensionsCallable = - callableFactory.createUnaryCallable( - listCustomDimensionsTransportSettings, - settings.listCustomDimensionsSettings(), - clientContext); - this.listCustomDimensionsPagedCallable = - callableFactory.createPagedCallable( - listCustomDimensionsTransportSettings, - settings.listCustomDimensionsSettings(), - clientContext); - this.archiveCustomDimensionCallable = - callableFactory.createUnaryCallable( - archiveCustomDimensionTransportSettings, - settings.archiveCustomDimensionSettings(), - clientContext); - this.getCustomDimensionCallable = - callableFactory.createUnaryCallable( - getCustomDimensionTransportSettings, - settings.getCustomDimensionSettings(), - clientContext); - this.createCustomMetricCallable = - callableFactory.createUnaryCallable( - createCustomMetricTransportSettings, - settings.createCustomMetricSettings(), - clientContext); - this.updateCustomMetricCallable = - callableFactory.createUnaryCallable( - updateCustomMetricTransportSettings, - settings.updateCustomMetricSettings(), - clientContext); - this.listCustomMetricsCallable = - callableFactory.createUnaryCallable( - listCustomMetricsTransportSettings, - settings.listCustomMetricsSettings(), - clientContext); - this.listCustomMetricsPagedCallable = - callableFactory.createPagedCallable( - listCustomMetricsTransportSettings, - settings.listCustomMetricsSettings(), - clientContext); - this.archiveCustomMetricCallable = - callableFactory.createUnaryCallable( - archiveCustomMetricTransportSettings, - settings.archiveCustomMetricSettings(), - clientContext); - this.getCustomMetricCallable = - callableFactory.createUnaryCallable( - getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext); - this.getDataRetentionSettingsCallable = - callableFactory.createUnaryCallable( - getDataRetentionSettingsTransportSettings, - settings.getDataRetentionSettingsSettings(), - clientContext); - this.updateDataRetentionSettingsCallable = - callableFactory.createUnaryCallable( - updateDataRetentionSettingsTransportSettings, - settings.updateDataRetentionSettingsSettings(), - clientContext); - this.createDataStreamCallable = - callableFactory.createUnaryCallable( - createDataStreamTransportSettings, settings.createDataStreamSettings(), clientContext); - this.deleteDataStreamCallable = - callableFactory.createUnaryCallable( - deleteDataStreamTransportSettings, settings.deleteDataStreamSettings(), clientContext); - this.updateDataStreamCallable = - callableFactory.createUnaryCallable( - updateDataStreamTransportSettings, settings.updateDataStreamSettings(), clientContext); - this.listDataStreamsCallable = - callableFactory.createUnaryCallable( - listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); - this.listDataStreamsPagedCallable = - callableFactory.createPagedCallable( - listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); - this.getDataStreamCallable = - callableFactory.createUnaryCallable( - getDataStreamTransportSettings, settings.getDataStreamSettings(), clientContext); - this.getAudienceCallable = - callableFactory.createUnaryCallable( - getAudienceTransportSettings, settings.getAudienceSettings(), clientContext); - this.listAudiencesCallable = - callableFactory.createUnaryCallable( - listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); - this.listAudiencesPagedCallable = - callableFactory.createPagedCallable( - listAudiencesTransportSettings, settings.listAudiencesSettings(), clientContext); - this.createAudienceCallable = - callableFactory.createUnaryCallable( - createAudienceTransportSettings, settings.createAudienceSettings(), clientContext); - this.updateAudienceCallable = - callableFactory.createUnaryCallable( - updateAudienceTransportSettings, settings.updateAudienceSettings(), clientContext); - this.archiveAudienceCallable = - callableFactory.createUnaryCallable( - archiveAudienceTransportSettings, settings.archiveAudienceSettings(), clientContext); - this.getSearchAds360LinkCallable = - callableFactory.createUnaryCallable( - getSearchAds360LinkTransportSettings, - settings.getSearchAds360LinkSettings(), - clientContext); - this.listSearchAds360LinksCallable = - callableFactory.createUnaryCallable( - listSearchAds360LinksTransportSettings, - settings.listSearchAds360LinksSettings(), - clientContext); - this.listSearchAds360LinksPagedCallable = - callableFactory.createPagedCallable( - listSearchAds360LinksTransportSettings, - settings.listSearchAds360LinksSettings(), - clientContext); - this.createSearchAds360LinkCallable = - callableFactory.createUnaryCallable( - createSearchAds360LinkTransportSettings, - settings.createSearchAds360LinkSettings(), - clientContext); - this.deleteSearchAds360LinkCallable = - callableFactory.createUnaryCallable( - deleteSearchAds360LinkTransportSettings, - settings.deleteSearchAds360LinkSettings(), - clientContext); - this.updateSearchAds360LinkCallable = - callableFactory.createUnaryCallable( - updateSearchAds360LinkTransportSettings, - settings.updateSearchAds360LinkSettings(), - clientContext); - this.getAttributionSettingsCallable = - callableFactory.createUnaryCallable( - getAttributionSettingsTransportSettings, - settings.getAttributionSettingsSettings(), - clientContext); - this.updateAttributionSettingsCallable = - callableFactory.createUnaryCallable( - updateAttributionSettingsTransportSettings, - settings.updateAttributionSettingsSettings(), - clientContext); - this.runAccessReportCallable = - callableFactory.createUnaryCallable( - runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); - this.createAccessBindingCallable = - callableFactory.createUnaryCallable( - createAccessBindingTransportSettings, - settings.createAccessBindingSettings(), - clientContext); - this.getAccessBindingCallable = - callableFactory.createUnaryCallable( - getAccessBindingTransportSettings, settings.getAccessBindingSettings(), clientContext); - this.updateAccessBindingCallable = - callableFactory.createUnaryCallable( - updateAccessBindingTransportSettings, - settings.updateAccessBindingSettings(), - clientContext); - this.deleteAccessBindingCallable = - callableFactory.createUnaryCallable( - deleteAccessBindingTransportSettings, - settings.deleteAccessBindingSettings(), - clientContext); - this.listAccessBindingsCallable = - callableFactory.createUnaryCallable( - listAccessBindingsTransportSettings, - settings.listAccessBindingsSettings(), - clientContext); - this.listAccessBindingsPagedCallable = - callableFactory.createPagedCallable( - listAccessBindingsTransportSettings, - settings.listAccessBindingsSettings(), - clientContext); - this.batchCreateAccessBindingsCallable = - callableFactory.createUnaryCallable( - batchCreateAccessBindingsTransportSettings, - settings.batchCreateAccessBindingsSettings(), - clientContext); - this.batchGetAccessBindingsCallable = - callableFactory.createUnaryCallable( - batchGetAccessBindingsTransportSettings, - settings.batchGetAccessBindingsSettings(), - clientContext); - this.batchUpdateAccessBindingsCallable = - callableFactory.createUnaryCallable( - batchUpdateAccessBindingsTransportSettings, - settings.batchUpdateAccessBindingsSettings(), - clientContext); - this.batchDeleteAccessBindingsCallable = - callableFactory.createUnaryCallable( - batchDeleteAccessBindingsTransportSettings, - settings.batchDeleteAccessBindingsSettings(), - clientContext); - this.getExpandedDataSetCallable = - callableFactory.createUnaryCallable( - getExpandedDataSetTransportSettings, - settings.getExpandedDataSetSettings(), - clientContext); - this.listExpandedDataSetsCallable = - callableFactory.createUnaryCallable( - listExpandedDataSetsTransportSettings, - settings.listExpandedDataSetsSettings(), - clientContext); - this.listExpandedDataSetsPagedCallable = - callableFactory.createPagedCallable( - listExpandedDataSetsTransportSettings, - settings.listExpandedDataSetsSettings(), - clientContext); - this.createExpandedDataSetCallable = - callableFactory.createUnaryCallable( - createExpandedDataSetTransportSettings, - settings.createExpandedDataSetSettings(), - clientContext); - this.updateExpandedDataSetCallable = - callableFactory.createUnaryCallable( - updateExpandedDataSetTransportSettings, - settings.updateExpandedDataSetSettings(), - clientContext); - this.deleteExpandedDataSetCallable = - callableFactory.createUnaryCallable( - deleteExpandedDataSetTransportSettings, - settings.deleteExpandedDataSetSettings(), - clientContext); - this.getChannelGroupCallable = - callableFactory.createUnaryCallable( - getChannelGroupTransportSettings, settings.getChannelGroupSettings(), clientContext); - this.listChannelGroupsCallable = - callableFactory.createUnaryCallable( - listChannelGroupsTransportSettings, - settings.listChannelGroupsSettings(), - clientContext); - this.listChannelGroupsPagedCallable = - callableFactory.createPagedCallable( - listChannelGroupsTransportSettings, - settings.listChannelGroupsSettings(), - clientContext); - this.createChannelGroupCallable = - callableFactory.createUnaryCallable( - createChannelGroupTransportSettings, - settings.createChannelGroupSettings(), - clientContext); - this.updateChannelGroupCallable = - callableFactory.createUnaryCallable( - updateChannelGroupTransportSettings, - settings.updateChannelGroupSettings(), - clientContext); - this.deleteChannelGroupCallable = - callableFactory.createUnaryCallable( - deleteChannelGroupTransportSettings, - settings.deleteChannelGroupSettings(), - clientContext); - this.setAutomatedGa4ConfigurationOptOutCallable = - callableFactory.createUnaryCallable( - setAutomatedGa4ConfigurationOptOutTransportSettings, - settings.setAutomatedGa4ConfigurationOptOutSettings(), - clientContext); - this.fetchAutomatedGa4ConfigurationOptOutCallable = - callableFactory.createUnaryCallable( - fetchAutomatedGa4ConfigurationOptOutTransportSettings, - settings.fetchAutomatedGa4ConfigurationOptOutSettings(), - clientContext); - this.getBigQueryLinkCallable = - callableFactory.createUnaryCallable( - getBigQueryLinkTransportSettings, settings.getBigQueryLinkSettings(), clientContext); - this.listBigQueryLinksCallable = - callableFactory.createUnaryCallable( - listBigQueryLinksTransportSettings, - settings.listBigQueryLinksSettings(), - clientContext); - this.listBigQueryLinksPagedCallable = - callableFactory.createPagedCallable( - listBigQueryLinksTransportSettings, - settings.listBigQueryLinksSettings(), - clientContext); - this.getEnhancedMeasurementSettingsCallable = - callableFactory.createUnaryCallable( - getEnhancedMeasurementSettingsTransportSettings, - settings.getEnhancedMeasurementSettingsSettings(), - clientContext); - this.updateEnhancedMeasurementSettingsCallable = - callableFactory.createUnaryCallable( - updateEnhancedMeasurementSettingsTransportSettings, - settings.updateEnhancedMeasurementSettingsSettings(), - clientContext); - this.createConnectedSiteTagCallable = - callableFactory.createUnaryCallable( - createConnectedSiteTagTransportSettings, - settings.createConnectedSiteTagSettings(), - clientContext); - this.deleteConnectedSiteTagCallable = - callableFactory.createUnaryCallable( - deleteConnectedSiteTagTransportSettings, - settings.deleteConnectedSiteTagSettings(), - clientContext); - this.listConnectedSiteTagsCallable = - callableFactory.createUnaryCallable( - listConnectedSiteTagsTransportSettings, - settings.listConnectedSiteTagsSettings(), - clientContext); - this.fetchConnectedGa4PropertyCallable = - callableFactory.createUnaryCallable( - fetchConnectedGa4PropertyTransportSettings, - settings.fetchConnectedGa4PropertySettings(), - clientContext); - this.getAdSenseLinkCallable = - callableFactory.createUnaryCallable( - getAdSenseLinkTransportSettings, settings.getAdSenseLinkSettings(), clientContext); - this.createAdSenseLinkCallable = - callableFactory.createUnaryCallable( - createAdSenseLinkTransportSettings, - settings.createAdSenseLinkSettings(), - clientContext); - this.deleteAdSenseLinkCallable = - callableFactory.createUnaryCallable( - deleteAdSenseLinkTransportSettings, - settings.deleteAdSenseLinkSettings(), - clientContext); - this.listAdSenseLinksCallable = - callableFactory.createUnaryCallable( - listAdSenseLinksTransportSettings, settings.listAdSenseLinksSettings(), clientContext); - this.listAdSenseLinksPagedCallable = - callableFactory.createPagedCallable( - listAdSenseLinksTransportSettings, settings.listAdSenseLinksSettings(), clientContext); - this.getEventCreateRuleCallable = - callableFactory.createUnaryCallable( - getEventCreateRuleTransportSettings, - settings.getEventCreateRuleSettings(), - clientContext); - this.listEventCreateRulesCallable = - callableFactory.createUnaryCallable( - listEventCreateRulesTransportSettings, - settings.listEventCreateRulesSettings(), - clientContext); - this.listEventCreateRulesPagedCallable = - callableFactory.createPagedCallable( - listEventCreateRulesTransportSettings, - settings.listEventCreateRulesSettings(), - clientContext); - this.createEventCreateRuleCallable = - callableFactory.createUnaryCallable( - createEventCreateRuleTransportSettings, - settings.createEventCreateRuleSettings(), - clientContext); - this.updateEventCreateRuleCallable = - callableFactory.createUnaryCallable( - updateEventCreateRuleTransportSettings, - settings.updateEventCreateRuleSettings(), - clientContext); - this.deleteEventCreateRuleCallable = - callableFactory.createUnaryCallable( - deleteEventCreateRuleTransportSettings, - settings.deleteEventCreateRuleSettings(), - clientContext); - this.updateDataRedactionSettingsCallable = - callableFactory.createUnaryCallable( - updateDataRedactionSettingsTransportSettings, - settings.updateDataRedactionSettingsSettings(), - clientContext); - this.getDataRedactionSettingsCallable = - callableFactory.createUnaryCallable( - getDataRedactionSettingsTransportSettings, - settings.getDataRedactionSettingsSettings(), - clientContext); - this.createRollupPropertyCallable = - callableFactory.createUnaryCallable( - createRollupPropertyTransportSettings, - settings.createRollupPropertySettings(), - clientContext); - this.getRollupPropertySourceLinkCallable = - callableFactory.createUnaryCallable( - getRollupPropertySourceLinkTransportSettings, - settings.getRollupPropertySourceLinkSettings(), - clientContext); - this.listRollupPropertySourceLinksCallable = - callableFactory.createUnaryCallable( - listRollupPropertySourceLinksTransportSettings, - settings.listRollupPropertySourceLinksSettings(), - clientContext); - this.listRollupPropertySourceLinksPagedCallable = - callableFactory.createPagedCallable( - listRollupPropertySourceLinksTransportSettings, - settings.listRollupPropertySourceLinksSettings(), - clientContext); - this.createRollupPropertySourceLinkCallable = - callableFactory.createUnaryCallable( - createRollupPropertySourceLinkTransportSettings, - settings.createRollupPropertySourceLinkSettings(), - clientContext); - this.deleteRollupPropertySourceLinkCallable = - callableFactory.createUnaryCallable( - deleteRollupPropertySourceLinkTransportSettings, - settings.deleteRollupPropertySourceLinkSettings(), - clientContext); - this.createSubpropertyCallable = - callableFactory.createUnaryCallable( - createSubpropertyTransportSettings, - settings.createSubpropertySettings(), - clientContext); - this.deleteSubpropertyEventFilterCallable = - callableFactory.createUnaryCallable( - deleteSubpropertyEventFilterTransportSettings, - settings.deleteSubpropertyEventFilterSettings(), - clientContext); - this.createSubpropertyEventFilterCallable = - callableFactory.createUnaryCallable( - createSubpropertyEventFilterTransportSettings, - settings.createSubpropertyEventFilterSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable getAccountCallable() { - return getAccountCallable; - } - - @Override - public UnaryCallable listAccountsCallable() { - return listAccountsCallable; - } - - @Override - public UnaryCallable listAccountsPagedCallable() { - return listAccountsPagedCallable; - } - - @Override - public UnaryCallable deleteAccountCallable() { - return deleteAccountCallable; - } - - @Override - public UnaryCallable updateAccountCallable() { - return updateAccountCallable; - } - - @Override - public UnaryCallable - provisionAccountTicketCallable() { - return provisionAccountTicketCallable; - } - - @Override - public UnaryCallable - listAccountSummariesCallable() { - return listAccountSummariesCallable; - } - - @Override - public UnaryCallable - listAccountSummariesPagedCallable() { - return listAccountSummariesPagedCallable; - } - - @Override - public UnaryCallable getPropertyCallable() { - return getPropertyCallable; - } - - @Override - public UnaryCallable listPropertiesCallable() { - return listPropertiesCallable; - } - - @Override - public UnaryCallable - listPropertiesPagedCallable() { - return listPropertiesPagedCallable; - } - - @Override - public UnaryCallable createPropertyCallable() { - return createPropertyCallable; - } - - @Override - public UnaryCallable deletePropertyCallable() { - return deletePropertyCallable; - } - - @Override - public UnaryCallable updatePropertyCallable() { - return updatePropertyCallable; - } - - @Override - public UnaryCallable createFirebaseLinkCallable() { - return createFirebaseLinkCallable; - } - - @Override - public UnaryCallable deleteFirebaseLinkCallable() { - return deleteFirebaseLinkCallable; - } - - @Override - public UnaryCallable - listFirebaseLinksCallable() { - return listFirebaseLinksCallable; - } - - @Override - public UnaryCallable - listFirebaseLinksPagedCallable() { - return listFirebaseLinksPagedCallable; - } - - @Override - public UnaryCallable getGlobalSiteTagCallable() { - return getGlobalSiteTagCallable; - } - - @Override - public UnaryCallable createGoogleAdsLinkCallable() { - return createGoogleAdsLinkCallable; - } - - @Override - public UnaryCallable updateGoogleAdsLinkCallable() { - return updateGoogleAdsLinkCallable; - } - - @Override - public UnaryCallable deleteGoogleAdsLinkCallable() { - return deleteGoogleAdsLinkCallable; - } - - @Override - public UnaryCallable - listGoogleAdsLinksCallable() { - return listGoogleAdsLinksCallable; - } - - @Override - public UnaryCallable - listGoogleAdsLinksPagedCallable() { - return listGoogleAdsLinksPagedCallable; - } - - @Override - public UnaryCallable - getDataSharingSettingsCallable() { - return getDataSharingSettingsCallable; - } - - @Override - public UnaryCallable - getMeasurementProtocolSecretCallable() { - return getMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable() { - return listMeasurementProtocolSecretsCallable; - } - - @Override - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable() { - return listMeasurementProtocolSecretsPagedCallable; - } - - @Override - public UnaryCallable - createMeasurementProtocolSecretCallable() { - return createMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable - deleteMeasurementProtocolSecretCallable() { - return deleteMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable - updateMeasurementProtocolSecretCallable() { - return updateMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable - acknowledgeUserDataCollectionCallable() { - return acknowledgeUserDataCollectionCallable; - } - - @Override - public UnaryCallable - getSKAdNetworkConversionValueSchemaCallable() { - return getSKAdNetworkConversionValueSchemaCallable; - } - - @Override - public UnaryCallable< - CreateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - createSKAdNetworkConversionValueSchemaCallable() { - return createSKAdNetworkConversionValueSchemaCallable; - } - - @Override - public UnaryCallable - deleteSKAdNetworkConversionValueSchemaCallable() { - return deleteSKAdNetworkConversionValueSchemaCallable; - } - - @Override - public UnaryCallable< - UpdateSKAdNetworkConversionValueSchemaRequest, SKAdNetworkConversionValueSchema> - updateSKAdNetworkConversionValueSchemaCallable() { - return updateSKAdNetworkConversionValueSchemaCallable; - } - - @Override - public UnaryCallable< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasResponse> - listSKAdNetworkConversionValueSchemasCallable() { - return listSKAdNetworkConversionValueSchemasCallable; - } - - @Override - public UnaryCallable< - ListSKAdNetworkConversionValueSchemasRequest, - ListSKAdNetworkConversionValueSchemasPagedResponse> - listSKAdNetworkConversionValueSchemasPagedCallable() { - return listSKAdNetworkConversionValueSchemasPagedCallable; - } - - @Override - public UnaryCallable - searchChangeHistoryEventsCallable() { - return searchChangeHistoryEventsCallable; - } - - @Override - public UnaryCallable - searchChangeHistoryEventsPagedCallable() { - return searchChangeHistoryEventsPagedCallable; - } - - @Override - public UnaryCallable - getGoogleSignalsSettingsCallable() { - return getGoogleSignalsSettingsCallable; - } - - @Override - public UnaryCallable - updateGoogleSignalsSettingsCallable() { - return updateGoogleSignalsSettingsCallable; - } - - @Override - public UnaryCallable - createConversionEventCallable() { - return createConversionEventCallable; - } - - @Override - public UnaryCallable - updateConversionEventCallable() { - return updateConversionEventCallable; - } - - @Override - public UnaryCallable getConversionEventCallable() { - return getConversionEventCallable; - } - - @Override - public UnaryCallable deleteConversionEventCallable() { - return deleteConversionEventCallable; - } - - @Override - public UnaryCallable - listConversionEventsCallable() { - return listConversionEventsCallable; - } - - @Override - public UnaryCallable - listConversionEventsPagedCallable() { - return listConversionEventsPagedCallable; - } - - @Override - public UnaryCallable - getDisplayVideo360AdvertiserLinkCallable() { - return getDisplayVideo360AdvertiserLinkCallable; - } - - @Override - public UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> - listDisplayVideo360AdvertiserLinksCallable() { - return listDisplayVideo360AdvertiserLinksCallable; - } - - @Override - public UnaryCallable< - ListDisplayVideo360AdvertiserLinksRequest, - ListDisplayVideo360AdvertiserLinksPagedResponse> - listDisplayVideo360AdvertiserLinksPagedCallable() { - return listDisplayVideo360AdvertiserLinksPagedCallable; - } - - @Override - public UnaryCallable - createDisplayVideo360AdvertiserLinkCallable() { - return createDisplayVideo360AdvertiserLinkCallable; - } - - @Override - public UnaryCallable - deleteDisplayVideo360AdvertiserLinkCallable() { - return deleteDisplayVideo360AdvertiserLinkCallable; - } - - @Override - public UnaryCallable - updateDisplayVideo360AdvertiserLinkCallable() { - return updateDisplayVideo360AdvertiserLinkCallable; - } - - @Override - public UnaryCallable< - GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - getDisplayVideo360AdvertiserLinkProposalCallable() { - return getDisplayVideo360AdvertiserLinkProposalCallable; - } - - @Override - public UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsResponse> - listDisplayVideo360AdvertiserLinkProposalsCallable() { - return listDisplayVideo360AdvertiserLinkProposalsCallable; - } - - @Override - public UnaryCallable< - ListDisplayVideo360AdvertiserLinkProposalsRequest, - ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> - listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { - return listDisplayVideo360AdvertiserLinkProposalsPagedCallable; - } - - @Override - public UnaryCallable< - CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - createDisplayVideo360AdvertiserLinkProposalCallable() { - return createDisplayVideo360AdvertiserLinkProposalCallable; - } - - @Override - public UnaryCallable - deleteDisplayVideo360AdvertiserLinkProposalCallable() { - return deleteDisplayVideo360AdvertiserLinkProposalCallable; - } - - @Override - public UnaryCallable< - ApproveDisplayVideo360AdvertiserLinkProposalRequest, - ApproveDisplayVideo360AdvertiserLinkProposalResponse> - approveDisplayVideo360AdvertiserLinkProposalCallable() { - return approveDisplayVideo360AdvertiserLinkProposalCallable; - } - - @Override - public UnaryCallable< - CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> - cancelDisplayVideo360AdvertiserLinkProposalCallable() { - return cancelDisplayVideo360AdvertiserLinkProposalCallable; - } - - @Override - public UnaryCallable - createCustomDimensionCallable() { - return createCustomDimensionCallable; - } - - @Override - public UnaryCallable - updateCustomDimensionCallable() { - return updateCustomDimensionCallable; - } - - @Override - public UnaryCallable - listCustomDimensionsCallable() { - return listCustomDimensionsCallable; - } - - @Override - public UnaryCallable - listCustomDimensionsPagedCallable() { - return listCustomDimensionsPagedCallable; - } - - @Override - public UnaryCallable archiveCustomDimensionCallable() { - return archiveCustomDimensionCallable; - } - - @Override - public UnaryCallable getCustomDimensionCallable() { - return getCustomDimensionCallable; - } - - @Override - public UnaryCallable createCustomMetricCallable() { - return createCustomMetricCallable; - } - - @Override - public UnaryCallable updateCustomMetricCallable() { - return updateCustomMetricCallable; - } - - @Override - public UnaryCallable - listCustomMetricsCallable() { - return listCustomMetricsCallable; - } - - @Override - public UnaryCallable - listCustomMetricsPagedCallable() { - return listCustomMetricsPagedCallable; - } - - @Override - public UnaryCallable archiveCustomMetricCallable() { - return archiveCustomMetricCallable; - } - - @Override - public UnaryCallable getCustomMetricCallable() { - return getCustomMetricCallable; - } - - @Override - public UnaryCallable - getDataRetentionSettingsCallable() { - return getDataRetentionSettingsCallable; - } - - @Override - public UnaryCallable - updateDataRetentionSettingsCallable() { - return updateDataRetentionSettingsCallable; - } - - @Override - public UnaryCallable createDataStreamCallable() { - return createDataStreamCallable; - } - - @Override - public UnaryCallable deleteDataStreamCallable() { - return deleteDataStreamCallable; - } - - @Override - public UnaryCallable updateDataStreamCallable() { - return updateDataStreamCallable; - } - - @Override - public UnaryCallable listDataStreamsCallable() { - return listDataStreamsCallable; - } - - @Override - public UnaryCallable - listDataStreamsPagedCallable() { - return listDataStreamsPagedCallable; - } - - @Override - public UnaryCallable getDataStreamCallable() { - return getDataStreamCallable; - } - - @Override - public UnaryCallable getAudienceCallable() { - return getAudienceCallable; - } - - @Override - public UnaryCallable listAudiencesCallable() { - return listAudiencesCallable; - } - - @Override - public UnaryCallable - listAudiencesPagedCallable() { - return listAudiencesPagedCallable; - } - - @Override - public UnaryCallable createAudienceCallable() { - return createAudienceCallable; - } - - @Override - public UnaryCallable updateAudienceCallable() { - return updateAudienceCallable; - } - - @Override - public UnaryCallable archiveAudienceCallable() { - return archiveAudienceCallable; - } - - @Override - public UnaryCallable getSearchAds360LinkCallable() { - return getSearchAds360LinkCallable; - } - - @Override - public UnaryCallable - listSearchAds360LinksCallable() { - return listSearchAds360LinksCallable; - } - - @Override - public UnaryCallable - listSearchAds360LinksPagedCallable() { - return listSearchAds360LinksPagedCallable; - } - - @Override - public UnaryCallable - createSearchAds360LinkCallable() { - return createSearchAds360LinkCallable; - } - - @Override - public UnaryCallable deleteSearchAds360LinkCallable() { - return deleteSearchAds360LinkCallable; - } - - @Override - public UnaryCallable - updateSearchAds360LinkCallable() { - return updateSearchAds360LinkCallable; - } - - @Override - public UnaryCallable - getAttributionSettingsCallable() { - return getAttributionSettingsCallable; - } - - @Override - public UnaryCallable - updateAttributionSettingsCallable() { - return updateAttributionSettingsCallable; - } - - @Override - public UnaryCallable runAccessReportCallable() { - return runAccessReportCallable; - } - - @Override - public UnaryCallable createAccessBindingCallable() { - return createAccessBindingCallable; - } - - @Override - public UnaryCallable getAccessBindingCallable() { - return getAccessBindingCallable; - } - - @Override - public UnaryCallable updateAccessBindingCallable() { - return updateAccessBindingCallable; - } - - @Override - public UnaryCallable deleteAccessBindingCallable() { - return deleteAccessBindingCallable; - } - - @Override - public UnaryCallable - listAccessBindingsCallable() { - return listAccessBindingsCallable; - } - - @Override - public UnaryCallable - listAccessBindingsPagedCallable() { - return listAccessBindingsPagedCallable; - } - - @Override - public UnaryCallable - batchCreateAccessBindingsCallable() { - return batchCreateAccessBindingsCallable; - } - - @Override - public UnaryCallable - batchGetAccessBindingsCallable() { - return batchGetAccessBindingsCallable; - } - - @Override - public UnaryCallable - batchUpdateAccessBindingsCallable() { - return batchUpdateAccessBindingsCallable; - } - - @Override - public UnaryCallable - batchDeleteAccessBindingsCallable() { - return batchDeleteAccessBindingsCallable; - } - - @Override - public UnaryCallable getExpandedDataSetCallable() { - return getExpandedDataSetCallable; - } - - @Override - public UnaryCallable - listExpandedDataSetsCallable() { - return listExpandedDataSetsCallable; - } - - @Override - public UnaryCallable - listExpandedDataSetsPagedCallable() { - return listExpandedDataSetsPagedCallable; - } - - @Override - public UnaryCallable - createExpandedDataSetCallable() { - return createExpandedDataSetCallable; - } - - @Override - public UnaryCallable - updateExpandedDataSetCallable() { - return updateExpandedDataSetCallable; - } - - @Override - public UnaryCallable deleteExpandedDataSetCallable() { - return deleteExpandedDataSetCallable; - } - - @Override - public UnaryCallable getChannelGroupCallable() { - return getChannelGroupCallable; - } - - @Override - public UnaryCallable - listChannelGroupsCallable() { - return listChannelGroupsCallable; - } - - @Override - public UnaryCallable - listChannelGroupsPagedCallable() { - return listChannelGroupsPagedCallable; - } - - @Override - public UnaryCallable createChannelGroupCallable() { - return createChannelGroupCallable; - } - - @Override - public UnaryCallable updateChannelGroupCallable() { - return updateChannelGroupCallable; - } - - @Override - public UnaryCallable deleteChannelGroupCallable() { - return deleteChannelGroupCallable; - } - - @Override - public UnaryCallable< - SetAutomatedGa4ConfigurationOptOutRequest, SetAutomatedGa4ConfigurationOptOutResponse> - setAutomatedGa4ConfigurationOptOutCallable() { - return setAutomatedGa4ConfigurationOptOutCallable; - } - - @Override - public UnaryCallable< - FetchAutomatedGa4ConfigurationOptOutRequest, FetchAutomatedGa4ConfigurationOptOutResponse> - fetchAutomatedGa4ConfigurationOptOutCallable() { - return fetchAutomatedGa4ConfigurationOptOutCallable; - } - - @Override - public UnaryCallable getBigQueryLinkCallable() { - return getBigQueryLinkCallable; - } - - @Override - public UnaryCallable - listBigQueryLinksCallable() { - return listBigQueryLinksCallable; - } - - @Override - public UnaryCallable - listBigQueryLinksPagedCallable() { - return listBigQueryLinksPagedCallable; - } - - @Override - public UnaryCallable - getEnhancedMeasurementSettingsCallable() { - return getEnhancedMeasurementSettingsCallable; - } - - @Override - public UnaryCallable - updateEnhancedMeasurementSettingsCallable() { - return updateEnhancedMeasurementSettingsCallable; - } - - @Override - public UnaryCallable - createConnectedSiteTagCallable() { - return createConnectedSiteTagCallable; - } - - @Override - public UnaryCallable deleteConnectedSiteTagCallable() { - return deleteConnectedSiteTagCallable; - } - - @Override - public UnaryCallable - listConnectedSiteTagsCallable() { - return listConnectedSiteTagsCallable; - } - - @Override - public UnaryCallable - fetchConnectedGa4PropertyCallable() { - return fetchConnectedGa4PropertyCallable; - } - - @Override - public UnaryCallable getAdSenseLinkCallable() { - return getAdSenseLinkCallable; - } - - @Override - public UnaryCallable createAdSenseLinkCallable() { - return createAdSenseLinkCallable; - } - - @Override - public UnaryCallable deleteAdSenseLinkCallable() { - return deleteAdSenseLinkCallable; - } - - @Override - public UnaryCallable - listAdSenseLinksCallable() { - return listAdSenseLinksCallable; - } - - @Override - public UnaryCallable - listAdSenseLinksPagedCallable() { - return listAdSenseLinksPagedCallable; - } - - @Override - public UnaryCallable getEventCreateRuleCallable() { - return getEventCreateRuleCallable; - } - - @Override - public UnaryCallable - listEventCreateRulesCallable() { - return listEventCreateRulesCallable; - } - - @Override - public UnaryCallable - listEventCreateRulesPagedCallable() { - return listEventCreateRulesPagedCallable; - } - - @Override - public UnaryCallable - createEventCreateRuleCallable() { - return createEventCreateRuleCallable; - } - - @Override - public UnaryCallable - updateEventCreateRuleCallable() { - return updateEventCreateRuleCallable; - } - - @Override - public UnaryCallable deleteEventCreateRuleCallable() { - return deleteEventCreateRuleCallable; - } - - @Override - public UnaryCallable - updateDataRedactionSettingsCallable() { - return updateDataRedactionSettingsCallable; - } - - @Override - public UnaryCallable - getDataRedactionSettingsCallable() { - return getDataRedactionSettingsCallable; - } - - @Override - public UnaryCallable - createRollupPropertyCallable() { - return createRollupPropertyCallable; - } - - @Override - public UnaryCallable - getRollupPropertySourceLinkCallable() { - return getRollupPropertySourceLinkCallable; - } - - @Override - public UnaryCallable - listRollupPropertySourceLinksCallable() { - return listRollupPropertySourceLinksCallable; - } - - @Override - public UnaryCallable< - ListRollupPropertySourceLinksRequest, ListRollupPropertySourceLinksPagedResponse> - listRollupPropertySourceLinksPagedCallable() { - return listRollupPropertySourceLinksPagedCallable; - } - - @Override - public UnaryCallable - createRollupPropertySourceLinkCallable() { - return createRollupPropertySourceLinkCallable; - } - - @Override - public UnaryCallable - deleteRollupPropertySourceLinkCallable() { - return deleteRollupPropertySourceLinkCallable; - } - - @Override - public UnaryCallable - createSubpropertyCallable() { - return createSubpropertyCallable; - } - - @Override - public UnaryCallable - deleteSubpropertyEventFilterCallable() { - return deleteSubpropertyEventFilterCallable; - } - - @Override - public UnaryCallable - createSubpropertyEventFilterCallable() { - return createSubpropertyEventFilterCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/owl-bot-staging/java-analytics-admin/v1alpha/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java deleted file mode 100644 index 3b08b2bb5eac..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ /dev/null @@ -1,11581 +0,0 @@ -package com.google.analytics.admin.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *

- * Service Interface for the Analytics Admin API (GA4).
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/admin/v1alpha/analytics_admin.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AnalyticsAdminServiceGrpc { - - private AnalyticsAdminServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.analytics.admin.v1alpha.AnalyticsAdminService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccount", - requestType = com.google.analytics.admin.v1alpha.GetAccountRequest.class, - responseType = com.google.analytics.admin.v1alpha.Account.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountMethod() { - io.grpc.MethodDescriptor getGetAccountMethod; - if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { - AnalyticsAdminServiceGrpc.getGetAccountMethod = getGetAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Account.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetAccount")) - .build(); - } - } - } - return getGetAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAccountsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAccounts", - requestType = com.google.analytics.admin.v1alpha.ListAccountsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListAccountsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAccountsMethod() { - io.grpc.MethodDescriptor getListAccountsMethod; - if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { - AnalyticsAdminServiceGrpc.getListAccountsMethod = getListAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAccountsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAccountsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccounts")) - .build(); - } - } - } - return getListAccountsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAccount", - requestType = com.google.analytics.admin.v1alpha.DeleteAccountRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAccountMethod() { - io.grpc.MethodDescriptor getDeleteAccountMethod; - if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteAccountMethod = getDeleteAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAccount")) - .build(); - } - } - } - return getDeleteAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAccount", - requestType = com.google.analytics.admin.v1alpha.UpdateAccountRequest.class, - responseType = com.google.analytics.admin.v1alpha.Account.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAccountMethod() { - io.grpc.MethodDescriptor getUpdateAccountMethod; - if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateAccountMethod = getUpdateAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Account.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAccount")) - .build(); - } - } - } - return getUpdateAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getProvisionAccountTicketMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ProvisionAccountTicket", - requestType = com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.class, - responseType = com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getProvisionAccountTicketMethod() { - io.grpc.MethodDescriptor getProvisionAccountTicketMethod; - if ((getProvisionAccountTicketMethod = AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getProvisionAccountTicketMethod = AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) == null) { - AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod = getProvisionAccountTicketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProvisionAccountTicket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ProvisionAccountTicket")) - .build(); - } - } - } - return getProvisionAccountTicketMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAccountSummariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAccountSummaries", - requestType = com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAccountSummariesMethod() { - io.grpc.MethodDescriptor getListAccountSummariesMethod; - if ((getListAccountSummariesMethod = AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAccountSummariesMethod = AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) == null) { - AnalyticsAdminServiceGrpc.getListAccountSummariesMethod = getListAccountSummariesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccountSummaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccountSummaries")) - .build(); - } - } - } - return getListAccountSummariesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProperty", - requestType = com.google.analytics.admin.v1alpha.GetPropertyRequest.class, - responseType = com.google.analytics.admin.v1alpha.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPropertyMethod() { - io.grpc.MethodDescriptor getGetPropertyMethod; - if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getGetPropertyMethod = getGetPropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetPropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetProperty")) - .build(); - } - } - } - return getGetPropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPropertiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListProperties", - requestType = com.google.analytics.admin.v1alpha.ListPropertiesRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListPropertiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPropertiesMethod() { - io.grpc.MethodDescriptor getListPropertiesMethod; - if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { - AnalyticsAdminServiceGrpc.getListPropertiesMethod = getListPropertiesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProperties")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListPropertiesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListPropertiesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListProperties")) - .build(); - } - } - } - return getListPropertiesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateProperty", - requestType = com.google.analytics.admin.v1alpha.CreatePropertyRequest.class, - responseType = com.google.analytics.admin.v1alpha.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePropertyMethod() { - io.grpc.MethodDescriptor getCreatePropertyMethod; - if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getCreatePropertyMethod = getCreatePropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateProperty")) - .build(); - } - } - } - return getCreatePropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteProperty", - requestType = com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, - responseType = com.google.analytics.admin.v1alpha.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePropertyMethod() { - io.grpc.MethodDescriptor getDeletePropertyMethod; - if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getDeletePropertyMethod = getDeletePropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeletePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteProperty")) - .build(); - } - } - } - return getDeletePropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateProperty", - requestType = com.google.analytics.admin.v1alpha.UpdatePropertyRequest.class, - responseType = com.google.analytics.admin.v1alpha.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePropertyMethod() { - io.grpc.MethodDescriptor getUpdatePropertyMethod; - if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdatePropertyMethod = getUpdatePropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateProperty")) - .build(); - } - } - } - return getUpdatePropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFirebaseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFirebaseLink", - requestType = com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.FirebaseLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFirebaseLinkMethod() { - io.grpc.MethodDescriptor getCreateFirebaseLinkMethod; - if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod = getCreateFirebaseLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFirebaseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateFirebaseLink")) - .build(); - } - } - } - return getCreateFirebaseLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFirebaseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFirebaseLink", - requestType = com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFirebaseLinkMethod() { - io.grpc.MethodDescriptor getDeleteFirebaseLinkMethod; - if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod = getDeleteFirebaseLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFirebaseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteFirebaseLink")) - .build(); - } - } - } - return getDeleteFirebaseLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFirebaseLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFirebaseLinks", - requestType = com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFirebaseLinksMethod() { - io.grpc.MethodDescriptor getListFirebaseLinksMethod; - if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod = getListFirebaseLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFirebaseLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListFirebaseLinks")) - .build(); - } - } - } - return getListFirebaseLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGlobalSiteTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGlobalSiteTag", - requestType = com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.class, - responseType = com.google.analytics.admin.v1alpha.GlobalSiteTag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGlobalSiteTagMethod() { - io.grpc.MethodDescriptor getGetGlobalSiteTagMethod; - if ((getGetGlobalSiteTagMethod = AnalyticsAdminServiceGrpc.getGetGlobalSiteTagMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetGlobalSiteTagMethod = AnalyticsAdminServiceGrpc.getGetGlobalSiteTagMethod) == null) { - AnalyticsAdminServiceGrpc.getGetGlobalSiteTagMethod = getGetGlobalSiteTagMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGlobalSiteTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GlobalSiteTag.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetGlobalSiteTag")) - .build(); - } - } - } - return getGetGlobalSiteTagMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateGoogleAdsLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGoogleAdsLink", - requestType = com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.GoogleAdsLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateGoogleAdsLinkMethod() { - io.grpc.MethodDescriptor getCreateGoogleAdsLinkMethod; - if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod = getCreateGoogleAdsLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGoogleAdsLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateGoogleAdsLink")) - .build(); - } - } - } - return getCreateGoogleAdsLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateGoogleAdsLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleAdsLink", - requestType = com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.GoogleAdsLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateGoogleAdsLinkMethod() { - io.grpc.MethodDescriptor getUpdateGoogleAdsLinkMethod; - if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod = getUpdateGoogleAdsLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGoogleAdsLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateGoogleAdsLink")) - .build(); - } - } - } - return getUpdateGoogleAdsLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteGoogleAdsLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGoogleAdsLink", - requestType = com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteGoogleAdsLinkMethod() { - io.grpc.MethodDescriptor getDeleteGoogleAdsLinkMethod; - if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod = getDeleteGoogleAdsLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGoogleAdsLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteGoogleAdsLink")) - .build(); - } - } - } - return getDeleteGoogleAdsLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListGoogleAdsLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGoogleAdsLinks", - requestType = com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListGoogleAdsLinksMethod() { - io.grpc.MethodDescriptor getListGoogleAdsLinksMethod; - if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod = getListGoogleAdsLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGoogleAdsLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListGoogleAdsLinks")) - .build(); - } - } - } - return getListGoogleAdsLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataSharingSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataSharingSettings", - requestType = com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataSharingSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataSharingSettingsMethod() { - io.grpc.MethodDescriptor getGetDataSharingSettingsMethod; - if ((getGetDataSharingSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDataSharingSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod = getGetDataSharingSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataSharingSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataSharingSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataSharingSettings")) - .build(); - } - } - } - return getGetDataSharingSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, - responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getGetMeasurementProtocolSecretMethod; - if ((getGetMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod = getGetMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetMeasurementProtocolSecret")) - .build(); - } - } - } - return getGetMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMeasurementProtocolSecretsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMeasurementProtocolSecrets", - requestType = com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMeasurementProtocolSecretsMethod() { - io.grpc.MethodDescriptor getListMeasurementProtocolSecretsMethod; - if ((getListMeasurementProtocolSecretsMethod = AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListMeasurementProtocolSecretsMethod = AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) == null) { - AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod = getListMeasurementProtocolSecretsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMeasurementProtocolSecrets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListMeasurementProtocolSecrets")) - .build(); - } - } - } - return getListMeasurementProtocolSecretsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, - responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getCreateMeasurementProtocolSecretMethod; - if ((getCreateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod = getCreateMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateMeasurementProtocolSecret")) - .build(); - } - } - } - return getCreateMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getDeleteMeasurementProtocolSecretMethod; - if ((getDeleteMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod = getDeleteMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteMeasurementProtocolSecret")) - .build(); - } - } - } - return getDeleteMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, - responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getUpdateMeasurementProtocolSecretMethod; - if ((getUpdateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod = getUpdateMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateMeasurementProtocolSecret")) - .build(); - } - } - } - return getUpdateMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getAcknowledgeUserDataCollectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AcknowledgeUserDataCollection", - requestType = com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, - responseType = com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAcknowledgeUserDataCollectionMethod() { - io.grpc.MethodDescriptor getAcknowledgeUserDataCollectionMethod; - if ((getAcknowledgeUserDataCollectionMethod = AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getAcknowledgeUserDataCollectionMethod = AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) == null) { - AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod = getAcknowledgeUserDataCollectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AcknowledgeUserDataCollection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("AcknowledgeUserDataCollection")) - .build(); - } - } - } - return getAcknowledgeUserDataCollectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSKAdNetworkConversionValueSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSKAdNetworkConversionValueSchema", - requestType = com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.class, - responseType = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSKAdNetworkConversionValueSchemaMethod() { - io.grpc.MethodDescriptor getGetSKAdNetworkConversionValueSchemaMethod; - if ((getGetSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getGetSKAdNetworkConversionValueSchemaMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getGetSKAdNetworkConversionValueSchemaMethod) == null) { - AnalyticsAdminServiceGrpc.getGetSKAdNetworkConversionValueSchemaMethod = getGetSKAdNetworkConversionValueSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSKAdNetworkConversionValueSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetSKAdNetworkConversionValueSchema")) - .build(); - } - } - } - return getGetSKAdNetworkConversionValueSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSKAdNetworkConversionValueSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSKAdNetworkConversionValueSchema", - requestType = com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.class, - responseType = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSKAdNetworkConversionValueSchemaMethod() { - io.grpc.MethodDescriptor getCreateSKAdNetworkConversionValueSchemaMethod; - if ((getCreateSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getCreateSKAdNetworkConversionValueSchemaMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getCreateSKAdNetworkConversionValueSchemaMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateSKAdNetworkConversionValueSchemaMethod = getCreateSKAdNetworkConversionValueSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSKAdNetworkConversionValueSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateSKAdNetworkConversionValueSchema")) - .build(); - } - } - } - return getCreateSKAdNetworkConversionValueSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSKAdNetworkConversionValueSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSKAdNetworkConversionValueSchema", - requestType = com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSKAdNetworkConversionValueSchemaMethod() { - io.grpc.MethodDescriptor getDeleteSKAdNetworkConversionValueSchemaMethod; - if ((getDeleteSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getDeleteSKAdNetworkConversionValueSchemaMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getDeleteSKAdNetworkConversionValueSchemaMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteSKAdNetworkConversionValueSchemaMethod = getDeleteSKAdNetworkConversionValueSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSKAdNetworkConversionValueSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteSKAdNetworkConversionValueSchema")) - .build(); - } - } - } - return getDeleteSKAdNetworkConversionValueSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSKAdNetworkConversionValueSchemaMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSKAdNetworkConversionValueSchema", - requestType = com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.class, - responseType = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSKAdNetworkConversionValueSchemaMethod() { - io.grpc.MethodDescriptor getUpdateSKAdNetworkConversionValueSchemaMethod; - if ((getUpdateSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getUpdateSKAdNetworkConversionValueSchemaMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateSKAdNetworkConversionValueSchemaMethod = AnalyticsAdminServiceGrpc.getUpdateSKAdNetworkConversionValueSchemaMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateSKAdNetworkConversionValueSchemaMethod = getUpdateSKAdNetworkConversionValueSchemaMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSKAdNetworkConversionValueSchema")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateSKAdNetworkConversionValueSchema")) - .build(); - } - } - } - return getUpdateSKAdNetworkConversionValueSchemaMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSKAdNetworkConversionValueSchemasMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSKAdNetworkConversionValueSchemas", - requestType = com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSKAdNetworkConversionValueSchemasMethod() { - io.grpc.MethodDescriptor getListSKAdNetworkConversionValueSchemasMethod; - if ((getListSKAdNetworkConversionValueSchemasMethod = AnalyticsAdminServiceGrpc.getListSKAdNetworkConversionValueSchemasMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListSKAdNetworkConversionValueSchemasMethod = AnalyticsAdminServiceGrpc.getListSKAdNetworkConversionValueSchemasMethod) == null) { - AnalyticsAdminServiceGrpc.getListSKAdNetworkConversionValueSchemasMethod = getListSKAdNetworkConversionValueSchemasMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSKAdNetworkConversionValueSchemas")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListSKAdNetworkConversionValueSchemas")) - .build(); - } - } - } - return getListSKAdNetworkConversionValueSchemasMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchChangeHistoryEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchChangeHistoryEvents", - requestType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, - responseType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchChangeHistoryEventsMethod() { - io.grpc.MethodDescriptor getSearchChangeHistoryEventsMethod; - if ((getSearchChangeHistoryEventsMethod = AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getSearchChangeHistoryEventsMethod = AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) == null) { - AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod = getSearchChangeHistoryEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchChangeHistoryEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("SearchChangeHistoryEvents")) - .build(); - } - } - } - return getSearchChangeHistoryEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetGoogleSignalsSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetGoogleSignalsSettings", - requestType = com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetGoogleSignalsSettingsMethod() { - io.grpc.MethodDescriptor getGetGoogleSignalsSettingsMethod; - if ((getGetGoogleSignalsSettingsMethod = AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetGoogleSignalsSettingsMethod = AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod = getGetGoogleSignalsSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetGoogleSignalsSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetGoogleSignalsSettings")) - .build(); - } - } - } - return getGetGoogleSignalsSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateGoogleSignalsSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleSignalsSettings", - requestType = com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateGoogleSignalsSettingsMethod() { - io.grpc.MethodDescriptor getUpdateGoogleSignalsSettingsMethod; - if ((getUpdateGoogleSignalsSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateGoogleSignalsSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod = getUpdateGoogleSignalsSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGoogleSignalsSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateGoogleSignalsSettings")) - .build(); - } - } - } - return getUpdateGoogleSignalsSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConversionEvent", - requestType = com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, - responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConversionEventMethod() { - io.grpc.MethodDescriptor getCreateConversionEventMethod; - if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateConversionEventMethod = getCreateConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateConversionEvent")) - .build(); - } - } - } - return getCreateConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConversionEvent", - requestType = com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.class, - responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConversionEventMethod() { - io.grpc.MethodDescriptor getUpdateConversionEventMethod; - if ((getUpdateConversionEventMethod = AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateConversionEventMethod = AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod = getUpdateConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateConversionEvent")) - .build(); - } - } - } - return getUpdateConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConversionEvent", - requestType = com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, - responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConversionEventMethod() { - io.grpc.MethodDescriptor getGetConversionEventMethod; - if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getGetConversionEventMethod = getGetConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetConversionEvent")) - .build(); - } - } - } - return getGetConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConversionEvent", - requestType = com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConversionEventMethod() { - io.grpc.MethodDescriptor getDeleteConversionEventMethod; - if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod = getDeleteConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteConversionEvent")) - .build(); - } - } - } - return getDeleteConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConversionEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConversionEvents", - requestType = com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConversionEventsMethod() { - io.grpc.MethodDescriptor getListConversionEventsMethod; - if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) == null) { - AnalyticsAdminServiceGrpc.getListConversionEventsMethod = getListConversionEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversionEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListConversionEvents")) - .build(); - } - } - } - return getListConversionEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDisplayVideo360AdvertiserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDisplayVideo360AdvertiserLink", - requestType = com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDisplayVideo360AdvertiserLinkMethod() { - io.grpc.MethodDescriptor getGetDisplayVideo360AdvertiserLinkMethod; - if ((getGetDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod = getGetDisplayVideo360AdvertiserLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDisplayVideo360AdvertiserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDisplayVideo360AdvertiserLink")) - .build(); - } - } - } - return getGetDisplayVideo360AdvertiserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDisplayVideo360AdvertiserLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDisplayVideo360AdvertiserLinks", - requestType = com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDisplayVideo360AdvertiserLinksMethod() { - io.grpc.MethodDescriptor getListDisplayVideo360AdvertiserLinksMethod; - if ((getListDisplayVideo360AdvertiserLinksMethod = AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListDisplayVideo360AdvertiserLinksMethod = AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod = getListDisplayVideo360AdvertiserLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDisplayVideo360AdvertiserLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListDisplayVideo360AdvertiserLinks")) - .build(); - } - } - } - return getListDisplayVideo360AdvertiserLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDisplayVideo360AdvertiserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDisplayVideo360AdvertiserLink", - requestType = com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDisplayVideo360AdvertiserLinkMethod() { - io.grpc.MethodDescriptor getCreateDisplayVideo360AdvertiserLinkMethod; - if ((getCreateDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod = getCreateDisplayVideo360AdvertiserLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDisplayVideo360AdvertiserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateDisplayVideo360AdvertiserLink")) - .build(); - } - } - } - return getCreateDisplayVideo360AdvertiserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDisplayVideo360AdvertiserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDisplayVideo360AdvertiserLink", - requestType = com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDisplayVideo360AdvertiserLinkMethod() { - io.grpc.MethodDescriptor getDeleteDisplayVideo360AdvertiserLinkMethod; - if ((getDeleteDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod = getDeleteDisplayVideo360AdvertiserLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDisplayVideo360AdvertiserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteDisplayVideo360AdvertiserLink")) - .build(); - } - } - } - return getDeleteDisplayVideo360AdvertiserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDisplayVideo360AdvertiserLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDisplayVideo360AdvertiserLink", - requestType = com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDisplayVideo360AdvertiserLinkMethod() { - io.grpc.MethodDescriptor getUpdateDisplayVideo360AdvertiserLinkMethod; - if ((getUpdateDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateDisplayVideo360AdvertiserLinkMethod = AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod = getUpdateDisplayVideo360AdvertiserLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDisplayVideo360AdvertiserLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDisplayVideo360AdvertiserLink")) - .build(); - } - } - } - return getUpdateDisplayVideo360AdvertiserLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDisplayVideo360AdvertiserLinkProposalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDisplayVideo360AdvertiserLinkProposal", - requestType = com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.class, - responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDisplayVideo360AdvertiserLinkProposalMethod() { - io.grpc.MethodDescriptor getGetDisplayVideo360AdvertiserLinkProposalMethod; - if ((getGetDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod = getGetDisplayVideo360AdvertiserLinkProposalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDisplayVideo360AdvertiserLinkProposal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDisplayVideo360AdvertiserLinkProposal")) - .build(); - } - } - } - return getGetDisplayVideo360AdvertiserLinkProposalMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDisplayVideo360AdvertiserLinkProposalsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDisplayVideo360AdvertiserLinkProposals", - requestType = com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDisplayVideo360AdvertiserLinkProposalsMethod() { - io.grpc.MethodDescriptor getListDisplayVideo360AdvertiserLinkProposalsMethod; - if ((getListDisplayVideo360AdvertiserLinkProposalsMethod = AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListDisplayVideo360AdvertiserLinkProposalsMethod = AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod) == null) { - AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod = getListDisplayVideo360AdvertiserLinkProposalsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDisplayVideo360AdvertiserLinkProposals")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListDisplayVideo360AdvertiserLinkProposals")) - .build(); - } - } - } - return getListDisplayVideo360AdvertiserLinkProposalsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDisplayVideo360AdvertiserLinkProposalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDisplayVideo360AdvertiserLinkProposal", - requestType = com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.class, - responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDisplayVideo360AdvertiserLinkProposalMethod() { - io.grpc.MethodDescriptor getCreateDisplayVideo360AdvertiserLinkProposalMethod; - if ((getCreateDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod = getCreateDisplayVideo360AdvertiserLinkProposalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDisplayVideo360AdvertiserLinkProposal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateDisplayVideo360AdvertiserLinkProposal")) - .build(); - } - } - } - return getCreateDisplayVideo360AdvertiserLinkProposalMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDisplayVideo360AdvertiserLinkProposalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDisplayVideo360AdvertiserLinkProposal", - requestType = com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDisplayVideo360AdvertiserLinkProposalMethod() { - io.grpc.MethodDescriptor getDeleteDisplayVideo360AdvertiserLinkProposalMethod; - if ((getDeleteDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod = getDeleteDisplayVideo360AdvertiserLinkProposalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDisplayVideo360AdvertiserLinkProposal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteDisplayVideo360AdvertiserLinkProposal")) - .build(); - } - } - } - return getDeleteDisplayVideo360AdvertiserLinkProposalMethod; - } - - private static volatile io.grpc.MethodDescriptor getApproveDisplayVideo360AdvertiserLinkProposalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ApproveDisplayVideo360AdvertiserLinkProposal", - requestType = com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.class, - responseType = com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getApproveDisplayVideo360AdvertiserLinkProposalMethod() { - io.grpc.MethodDescriptor getApproveDisplayVideo360AdvertiserLinkProposalMethod; - if ((getApproveDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getApproveDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod) == null) { - AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod = getApproveDisplayVideo360AdvertiserLinkProposalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ApproveDisplayVideo360AdvertiserLinkProposal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ApproveDisplayVideo360AdvertiserLinkProposal")) - .build(); - } - } - } - return getApproveDisplayVideo360AdvertiserLinkProposalMethod; - } - - private static volatile io.grpc.MethodDescriptor getCancelDisplayVideo360AdvertiserLinkProposalMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CancelDisplayVideo360AdvertiserLinkProposal", - requestType = com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.class, - responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCancelDisplayVideo360AdvertiserLinkProposalMethod() { - io.grpc.MethodDescriptor getCancelDisplayVideo360AdvertiserLinkProposalMethod; - if ((getCancelDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCancelDisplayVideo360AdvertiserLinkProposalMethod = AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod) == null) { - AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod = getCancelDisplayVideo360AdvertiserLinkProposalMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CancelDisplayVideo360AdvertiserLinkProposal")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CancelDisplayVideo360AdvertiserLinkProposal")) - .build(); - } - } - } - return getCancelDisplayVideo360AdvertiserLinkProposalMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomDimension", - requestType = com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomDimensionMethod() { - io.grpc.MethodDescriptor getCreateCustomDimensionMethod; - if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod = getCreateCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomDimension")) - .build(); - } - } - } - return getCreateCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomDimension", - requestType = com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomDimensionMethod() { - io.grpc.MethodDescriptor getUpdateCustomDimensionMethod; - if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod = getUpdateCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomDimension")) - .build(); - } - } - } - return getUpdateCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomDimensionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomDimensions", - requestType = com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomDimensionsMethod() { - io.grpc.MethodDescriptor getListCustomDimensionsMethod; - if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) == null) { - AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod = getListCustomDimensionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomDimensions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomDimensions")) - .build(); - } - } - } - return getListCustomDimensionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getArchiveCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomDimension", - requestType = com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getArchiveCustomDimensionMethod() { - io.grpc.MethodDescriptor getArchiveCustomDimensionMethod; - if ((getArchiveCustomDimensionMethod = AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getArchiveCustomDimensionMethod = AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod = getArchiveCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ArchiveCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomDimension")) - .build(); - } - } - } - return getArchiveCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomDimension", - requestType = com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomDimensionMethod() { - io.grpc.MethodDescriptor getGetCustomDimensionMethod; - if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod = getGetCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomDimension")) - .build(); - } - } - } - return getGetCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomMetric", - requestType = com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomMetricMethod() { - io.grpc.MethodDescriptor getCreateCustomMetricMethod; - if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod = getCreateCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomMetric")) - .build(); - } - } - } - return getCreateCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomMetric", - requestType = com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomMetricMethod() { - io.grpc.MethodDescriptor getUpdateCustomMetricMethod; - if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod = getUpdateCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomMetric")) - .build(); - } - } - } - return getUpdateCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomMetricsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomMetrics", - requestType = com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomMetricsMethod() { - io.grpc.MethodDescriptor getListCustomMetricsMethod; - if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) == null) { - AnalyticsAdminServiceGrpc.getListCustomMetricsMethod = getListCustomMetricsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomMetrics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomMetrics")) - .build(); - } - } - } - return getListCustomMetricsMethod; - } - - private static volatile io.grpc.MethodDescriptor getArchiveCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomMetric", - requestType = com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getArchiveCustomMetricMethod() { - io.grpc.MethodDescriptor getArchiveCustomMetricMethod; - if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod = getArchiveCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ArchiveCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomMetric")) - .build(); - } - } - } - return getArchiveCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomMetric", - requestType = com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomMetricMethod() { - io.grpc.MethodDescriptor getGetCustomMetricMethod; - if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getGetCustomMetricMethod = getGetCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomMetric")) - .build(); - } - } - } - return getGetCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataRetentionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataRetentionSettings", - requestType = com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataRetentionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataRetentionSettingsMethod() { - io.grpc.MethodDescriptor getGetDataRetentionSettingsMethod; - if ((getGetDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod = getGetDataRetentionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataRetentionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataRetentionSettings")) - .build(); - } - } - } - return getGetDataRetentionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDataRetentionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataRetentionSettings", - requestType = com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataRetentionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDataRetentionSettingsMethod() { - io.grpc.MethodDescriptor getUpdateDataRetentionSettingsMethod; - if ((getUpdateDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod = getUpdateDataRetentionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataRetentionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataRetentionSettings")) - .build(); - } - } - } - return getUpdateDataRetentionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataStream", - requestType = com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDataStreamMethod() { - io.grpc.MethodDescriptor getCreateDataStreamMethod; - if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateDataStreamMethod = getCreateDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateDataStream")) - .build(); - } - } - } - return getCreateDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataStream", - requestType = com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDataStreamMethod() { - io.grpc.MethodDescriptor getDeleteDataStreamMethod; - if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod = getDeleteDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteDataStream")) - .build(); - } - } - } - return getDeleteDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataStream", - requestType = com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDataStreamMethod() { - io.grpc.MethodDescriptor getUpdateDataStreamMethod; - if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod = getUpdateDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataStream")) - .build(); - } - } - } - return getUpdateDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDataStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataStreams", - requestType = com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDataStreamsMethod() { - io.grpc.MethodDescriptor getListDataStreamsMethod; - if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) == null) { - AnalyticsAdminServiceGrpc.getListDataStreamsMethod = getListDataStreamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListDataStreams")) - .build(); - } - } - } - return getListDataStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataStream", - requestType = com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataStreamMethod() { - io.grpc.MethodDescriptor getGetDataStreamMethod; - if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDataStreamMethod = getGetDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataStream")) - .build(); - } - } - } - return getGetDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAudienceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAudience", - requestType = com.google.analytics.admin.v1alpha.GetAudienceRequest.class, - responseType = com.google.analytics.admin.v1alpha.Audience.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAudienceMethod() { - io.grpc.MethodDescriptor getGetAudienceMethod; - if ((getGetAudienceMethod = AnalyticsAdminServiceGrpc.getGetAudienceMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetAudienceMethod = AnalyticsAdminServiceGrpc.getGetAudienceMethod) == null) { - AnalyticsAdminServiceGrpc.getGetAudienceMethod = getGetAudienceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAudience")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetAudience")) - .build(); - } - } - } - return getGetAudienceMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAudiencesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAudiences", - requestType = com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAudiencesMethod() { - io.grpc.MethodDescriptor getListAudiencesMethod; - if ((getListAudiencesMethod = AnalyticsAdminServiceGrpc.getListAudiencesMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAudiencesMethod = AnalyticsAdminServiceGrpc.getListAudiencesMethod) == null) { - AnalyticsAdminServiceGrpc.getListAudiencesMethod = getListAudiencesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAudiences")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAudiencesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAudiencesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListAudiences")) - .build(); - } - } - } - return getListAudiencesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateAudienceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAudience", - requestType = com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, - responseType = com.google.analytics.admin.v1alpha.Audience.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAudienceMethod() { - io.grpc.MethodDescriptor getCreateAudienceMethod; - if ((getCreateAudienceMethod = AnalyticsAdminServiceGrpc.getCreateAudienceMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateAudienceMethod = AnalyticsAdminServiceGrpc.getCreateAudienceMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateAudienceMethod = getCreateAudienceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAudience")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAudience")) - .build(); - } - } - } - return getCreateAudienceMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAudienceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAudience", - requestType = com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, - responseType = com.google.analytics.admin.v1alpha.Audience.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAudienceMethod() { - io.grpc.MethodDescriptor getUpdateAudienceMethod; - if ((getUpdateAudienceMethod = AnalyticsAdminServiceGrpc.getUpdateAudienceMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateAudienceMethod = AnalyticsAdminServiceGrpc.getUpdateAudienceMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateAudienceMethod = getUpdateAudienceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAudience")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.Audience.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAudience")) - .build(); - } - } - } - return getUpdateAudienceMethod; - } - - private static volatile io.grpc.MethodDescriptor getArchiveAudienceMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ArchiveAudience", - requestType = com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getArchiveAudienceMethod() { - io.grpc.MethodDescriptor getArchiveAudienceMethod; - if ((getArchiveAudienceMethod = AnalyticsAdminServiceGrpc.getArchiveAudienceMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getArchiveAudienceMethod = AnalyticsAdminServiceGrpc.getArchiveAudienceMethod) == null) { - AnalyticsAdminServiceGrpc.getArchiveAudienceMethod = getArchiveAudienceMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ArchiveAudience")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveAudience")) - .build(); - } - } - } - return getArchiveAudienceMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetSearchAds360LinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetSearchAds360Link", - requestType = com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.SearchAds360Link.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetSearchAds360LinkMethod() { - io.grpc.MethodDescriptor getGetSearchAds360LinkMethod; - if ((getGetSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getGetSearchAds360LinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getGetSearchAds360LinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetSearchAds360LinkMethod = getGetSearchAds360LinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSearchAds360Link")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetSearchAds360Link")) - .build(); - } - } - } - return getGetSearchAds360LinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListSearchAds360LinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListSearchAds360Links", - requestType = com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListSearchAds360LinksMethod() { - io.grpc.MethodDescriptor getListSearchAds360LinksMethod; - if ((getListSearchAds360LinksMethod = AnalyticsAdminServiceGrpc.getListSearchAds360LinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListSearchAds360LinksMethod = AnalyticsAdminServiceGrpc.getListSearchAds360LinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListSearchAds360LinksMethod = getListSearchAds360LinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListSearchAds360Links")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListSearchAds360Links")) - .build(); - } - } - } - return getListSearchAds360LinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSearchAds360LinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSearchAds360Link", - requestType = com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.SearchAds360Link.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSearchAds360LinkMethod() { - io.grpc.MethodDescriptor getCreateSearchAds360LinkMethod; - if ((getCreateSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getCreateSearchAds360LinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getCreateSearchAds360LinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateSearchAds360LinkMethod = getCreateSearchAds360LinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSearchAds360Link")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateSearchAds360Link")) - .build(); - } - } - } - return getCreateSearchAds360LinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSearchAds360LinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSearchAds360Link", - requestType = com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSearchAds360LinkMethod() { - io.grpc.MethodDescriptor getDeleteSearchAds360LinkMethod; - if ((getDeleteSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getDeleteSearchAds360LinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getDeleteSearchAds360LinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteSearchAds360LinkMethod = getDeleteSearchAds360LinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSearchAds360Link")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteSearchAds360Link")) - .build(); - } - } - } - return getDeleteSearchAds360LinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateSearchAds360LinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateSearchAds360Link", - requestType = com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.SearchAds360Link.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateSearchAds360LinkMethod() { - io.grpc.MethodDescriptor getUpdateSearchAds360LinkMethod; - if ((getUpdateSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getUpdateSearchAds360LinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateSearchAds360LinkMethod = AnalyticsAdminServiceGrpc.getUpdateSearchAds360LinkMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateSearchAds360LinkMethod = getUpdateSearchAds360LinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateSearchAds360Link")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateSearchAds360Link")) - .build(); - } - } - } - return getUpdateSearchAds360LinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAttributionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAttributionSettings", - requestType = com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.AttributionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAttributionSettingsMethod() { - io.grpc.MethodDescriptor getGetAttributionSettingsMethod; - if ((getGetAttributionSettingsMethod = AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetAttributionSettingsMethod = AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetAttributionSettingsMethod = getGetAttributionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAttributionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetAttributionSettings")) - .build(); - } - } - } - return getGetAttributionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAttributionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAttributionSettings", - requestType = com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.AttributionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAttributionSettingsMethod() { - io.grpc.MethodDescriptor getUpdateAttributionSettingsMethod; - if ((getUpdateAttributionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateAttributionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateAttributionSettingsMethod = getUpdateAttributionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAttributionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAttributionSettings")) - .build(); - } - } - } - return getUpdateAttributionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getRunAccessReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAccessReport", - requestType = com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, - responseType = com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRunAccessReportMethod() { - io.grpc.MethodDescriptor getRunAccessReportMethod; - if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) == null) { - AnalyticsAdminServiceGrpc.getRunAccessReportMethod = getRunAccessReportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAccessReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("RunAccessReport")) - .build(); - } - } - } - return getRunAccessReportMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateAccessBindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAccessBinding", - requestType = com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, - responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAccessBindingMethod() { - io.grpc.MethodDescriptor getCreateAccessBindingMethod; - if ((getCreateAccessBindingMethod = AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateAccessBindingMethod = AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateAccessBindingMethod = getCreateAccessBindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccessBinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAccessBinding")) - .build(); - } - } - } - return getCreateAccessBindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAccessBindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccessBinding", - requestType = com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, - responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccessBindingMethod() { - io.grpc.MethodDescriptor getGetAccessBindingMethod; - if ((getGetAccessBindingMethod = AnalyticsAdminServiceGrpc.getGetAccessBindingMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetAccessBindingMethod = AnalyticsAdminServiceGrpc.getGetAccessBindingMethod) == null) { - AnalyticsAdminServiceGrpc.getGetAccessBindingMethod = getGetAccessBindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessBinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetAccessBinding")) - .build(); - } - } - } - return getGetAccessBindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAccessBindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAccessBinding", - requestType = com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, - responseType = com.google.analytics.admin.v1alpha.AccessBinding.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAccessBindingMethod() { - io.grpc.MethodDescriptor getUpdateAccessBindingMethod; - if ((getUpdateAccessBindingMethod = AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateAccessBindingMethod = AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateAccessBindingMethod = getUpdateAccessBindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccessBinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAccessBinding")) - .build(); - } - } - } - return getUpdateAccessBindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAccessBindingMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAccessBinding", - requestType = com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAccessBindingMethod() { - io.grpc.MethodDescriptor getDeleteAccessBindingMethod; - if ((getDeleteAccessBindingMethod = AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteAccessBindingMethod = AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteAccessBindingMethod = getDeleteAccessBindingMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccessBinding")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAccessBinding")) - .build(); - } - } - } - return getDeleteAccessBindingMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAccessBindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAccessBindings", - requestType = com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAccessBindingsMethod() { - io.grpc.MethodDescriptor getListAccessBindingsMethod; - if ((getListAccessBindingsMethod = AnalyticsAdminServiceGrpc.getListAccessBindingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAccessBindingsMethod = AnalyticsAdminServiceGrpc.getListAccessBindingsMethod) == null) { - AnalyticsAdminServiceGrpc.getListAccessBindingsMethod = getListAccessBindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccessBindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccessBindings")) - .build(); - } - } - } - return getListAccessBindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchCreateAccessBindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchCreateAccessBindings", - requestType = com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchCreateAccessBindingsMethod() { - io.grpc.MethodDescriptor getBatchCreateAccessBindingsMethod; - if ((getBatchCreateAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchCreateAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod) == null) { - AnalyticsAdminServiceGrpc.getBatchCreateAccessBindingsMethod = getBatchCreateAccessBindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchCreateAccessBindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("BatchCreateAccessBindings")) - .build(); - } - } - } - return getBatchCreateAccessBindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchGetAccessBindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchGetAccessBindings", - requestType = com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchGetAccessBindingsMethod() { - io.grpc.MethodDescriptor getBatchGetAccessBindingsMethod; - if ((getBatchGetAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchGetAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod) == null) { - AnalyticsAdminServiceGrpc.getBatchGetAccessBindingsMethod = getBatchGetAccessBindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetAccessBindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("BatchGetAccessBindings")) - .build(); - } - } - } - return getBatchGetAccessBindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchUpdateAccessBindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchUpdateAccessBindings", - requestType = com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchUpdateAccessBindingsMethod() { - io.grpc.MethodDescriptor getBatchUpdateAccessBindingsMethod; - if ((getBatchUpdateAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchUpdateAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod) == null) { - AnalyticsAdminServiceGrpc.getBatchUpdateAccessBindingsMethod = getBatchUpdateAccessBindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchUpdateAccessBindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("BatchUpdateAccessBindings")) - .build(); - } - } - } - return getBatchUpdateAccessBindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getBatchDeleteAccessBindingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchDeleteAccessBindings", - requestType = com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getBatchDeleteAccessBindingsMethod() { - io.grpc.MethodDescriptor getBatchDeleteAccessBindingsMethod; - if ((getBatchDeleteAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getBatchDeleteAccessBindingsMethod = AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod) == null) { - AnalyticsAdminServiceGrpc.getBatchDeleteAccessBindingsMethod = getBatchDeleteAccessBindingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDeleteAccessBindings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("BatchDeleteAccessBindings")) - .build(); - } - } - } - return getBatchDeleteAccessBindingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetExpandedDataSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetExpandedDataSet", - requestType = com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, - responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetExpandedDataSetMethod() { - io.grpc.MethodDescriptor getGetExpandedDataSetMethod; - if ((getGetExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod) == null) { - AnalyticsAdminServiceGrpc.getGetExpandedDataSetMethod = getGetExpandedDataSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetExpandedDataSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetExpandedDataSet")) - .build(); - } - } - } - return getGetExpandedDataSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getListExpandedDataSetsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListExpandedDataSets", - requestType = com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListExpandedDataSetsMethod() { - io.grpc.MethodDescriptor getListExpandedDataSetsMethod; - if ((getListExpandedDataSetsMethod = AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListExpandedDataSetsMethod = AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod) == null) { - AnalyticsAdminServiceGrpc.getListExpandedDataSetsMethod = getListExpandedDataSetsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListExpandedDataSets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListExpandedDataSets")) - .build(); - } - } - } - return getListExpandedDataSetsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateExpandedDataSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateExpandedDataSet", - requestType = com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, - responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateExpandedDataSetMethod() { - io.grpc.MethodDescriptor getCreateExpandedDataSetMethod; - if ((getCreateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateExpandedDataSetMethod = getCreateExpandedDataSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateExpandedDataSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateExpandedDataSet")) - .build(); - } - } - } - return getCreateExpandedDataSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateExpandedDataSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateExpandedDataSet", - requestType = com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, - responseType = com.google.analytics.admin.v1alpha.ExpandedDataSet.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateExpandedDataSetMethod() { - io.grpc.MethodDescriptor getUpdateExpandedDataSetMethod; - if ((getUpdateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateExpandedDataSetMethod = getUpdateExpandedDataSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateExpandedDataSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateExpandedDataSet")) - .build(); - } - } - } - return getUpdateExpandedDataSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteExpandedDataSetMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteExpandedDataSet", - requestType = com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteExpandedDataSetMethod() { - io.grpc.MethodDescriptor getDeleteExpandedDataSetMethod; - if ((getDeleteExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteExpandedDataSetMethod = AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteExpandedDataSetMethod = getDeleteExpandedDataSetMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteExpandedDataSet")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteExpandedDataSet")) - .build(); - } - } - } - return getDeleteExpandedDataSetMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetChannelGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetChannelGroup", - requestType = com.google.analytics.admin.v1alpha.GetChannelGroupRequest.class, - responseType = com.google.analytics.admin.v1alpha.ChannelGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetChannelGroupMethod() { - io.grpc.MethodDescriptor getGetChannelGroupMethod; - if ((getGetChannelGroupMethod = AnalyticsAdminServiceGrpc.getGetChannelGroupMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetChannelGroupMethod = AnalyticsAdminServiceGrpc.getGetChannelGroupMethod) == null) { - AnalyticsAdminServiceGrpc.getGetChannelGroupMethod = getGetChannelGroupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetChannelGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetChannelGroup")) - .build(); - } - } - } - return getGetChannelGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor getListChannelGroupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListChannelGroups", - requestType = com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListChannelGroupsMethod() { - io.grpc.MethodDescriptor getListChannelGroupsMethod; - if ((getListChannelGroupsMethod = AnalyticsAdminServiceGrpc.getListChannelGroupsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListChannelGroupsMethod = AnalyticsAdminServiceGrpc.getListChannelGroupsMethod) == null) { - AnalyticsAdminServiceGrpc.getListChannelGroupsMethod = getListChannelGroupsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListChannelGroups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListChannelGroups")) - .build(); - } - } - } - return getListChannelGroupsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateChannelGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateChannelGroup", - requestType = com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.class, - responseType = com.google.analytics.admin.v1alpha.ChannelGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateChannelGroupMethod() { - io.grpc.MethodDescriptor getCreateChannelGroupMethod; - if ((getCreateChannelGroupMethod = AnalyticsAdminServiceGrpc.getCreateChannelGroupMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateChannelGroupMethod = AnalyticsAdminServiceGrpc.getCreateChannelGroupMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateChannelGroupMethod = getCreateChannelGroupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateChannelGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateChannelGroup")) - .build(); - } - } - } - return getCreateChannelGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateChannelGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateChannelGroup", - requestType = com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.class, - responseType = com.google.analytics.admin.v1alpha.ChannelGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateChannelGroupMethod() { - io.grpc.MethodDescriptor getUpdateChannelGroupMethod; - if ((getUpdateChannelGroupMethod = AnalyticsAdminServiceGrpc.getUpdateChannelGroupMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateChannelGroupMethod = AnalyticsAdminServiceGrpc.getUpdateChannelGroupMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateChannelGroupMethod = getUpdateChannelGroupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateChannelGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateChannelGroup")) - .build(); - } - } - } - return getUpdateChannelGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteChannelGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteChannelGroup", - requestType = com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteChannelGroupMethod() { - io.grpc.MethodDescriptor getDeleteChannelGroupMethod; - if ((getDeleteChannelGroupMethod = AnalyticsAdminServiceGrpc.getDeleteChannelGroupMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteChannelGroupMethod = AnalyticsAdminServiceGrpc.getDeleteChannelGroupMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteChannelGroupMethod = getDeleteChannelGroupMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteChannelGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteChannelGroup")) - .build(); - } - } - } - return getDeleteChannelGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetAutomatedGa4ConfigurationOptOutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetAutomatedGa4ConfigurationOptOut", - requestType = com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.class, - responseType = com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetAutomatedGa4ConfigurationOptOutMethod() { - io.grpc.MethodDescriptor getSetAutomatedGa4ConfigurationOptOutMethod; - if ((getSetAutomatedGa4ConfigurationOptOutMethod = AnalyticsAdminServiceGrpc.getSetAutomatedGa4ConfigurationOptOutMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getSetAutomatedGa4ConfigurationOptOutMethod = AnalyticsAdminServiceGrpc.getSetAutomatedGa4ConfigurationOptOutMethod) == null) { - AnalyticsAdminServiceGrpc.getSetAutomatedGa4ConfigurationOptOutMethod = getSetAutomatedGa4ConfigurationOptOutMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetAutomatedGa4ConfigurationOptOut")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("SetAutomatedGa4ConfigurationOptOut")) - .build(); - } - } - } - return getSetAutomatedGa4ConfigurationOptOutMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchAutomatedGa4ConfigurationOptOutMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchAutomatedGa4ConfigurationOptOut", - requestType = com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.class, - responseType = com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchAutomatedGa4ConfigurationOptOutMethod() { - io.grpc.MethodDescriptor getFetchAutomatedGa4ConfigurationOptOutMethod; - if ((getFetchAutomatedGa4ConfigurationOptOutMethod = AnalyticsAdminServiceGrpc.getFetchAutomatedGa4ConfigurationOptOutMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getFetchAutomatedGa4ConfigurationOptOutMethod = AnalyticsAdminServiceGrpc.getFetchAutomatedGa4ConfigurationOptOutMethod) == null) { - AnalyticsAdminServiceGrpc.getFetchAutomatedGa4ConfigurationOptOutMethod = getFetchAutomatedGa4ConfigurationOptOutMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchAutomatedGa4ConfigurationOptOut")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("FetchAutomatedGa4ConfigurationOptOut")) - .build(); - } - } - } - return getFetchAutomatedGa4ConfigurationOptOutMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetBigQueryLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetBigQueryLink", - requestType = com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.BigQueryLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetBigQueryLinkMethod() { - io.grpc.MethodDescriptor getGetBigQueryLinkMethod; - if ((getGetBigQueryLinkMethod = AnalyticsAdminServiceGrpc.getGetBigQueryLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetBigQueryLinkMethod = AnalyticsAdminServiceGrpc.getGetBigQueryLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetBigQueryLinkMethod = getGetBigQueryLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBigQueryLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetBigQueryLink")) - .build(); - } - } - } - return getGetBigQueryLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListBigQueryLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListBigQueryLinks", - requestType = com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListBigQueryLinksMethod() { - io.grpc.MethodDescriptor getListBigQueryLinksMethod; - if ((getListBigQueryLinksMethod = AnalyticsAdminServiceGrpc.getListBigQueryLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListBigQueryLinksMethod = AnalyticsAdminServiceGrpc.getListBigQueryLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListBigQueryLinksMethod = getListBigQueryLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListBigQueryLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListBigQueryLinks")) - .build(); - } - } - } - return getListBigQueryLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEnhancedMeasurementSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEnhancedMeasurementSettings", - requestType = com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEnhancedMeasurementSettingsMethod() { - io.grpc.MethodDescriptor getGetEnhancedMeasurementSettingsMethod; - if ((getGetEnhancedMeasurementSettingsMethod = AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetEnhancedMeasurementSettingsMethod = AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetEnhancedMeasurementSettingsMethod = getGetEnhancedMeasurementSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEnhancedMeasurementSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetEnhancedMeasurementSettings")) - .build(); - } - } - } - return getGetEnhancedMeasurementSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateEnhancedMeasurementSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEnhancedMeasurementSettings", - requestType = com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateEnhancedMeasurementSettingsMethod() { - io.grpc.MethodDescriptor getUpdateEnhancedMeasurementSettingsMethod; - if ((getUpdateEnhancedMeasurementSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateEnhancedMeasurementSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateEnhancedMeasurementSettingsMethod = getUpdateEnhancedMeasurementSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEnhancedMeasurementSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateEnhancedMeasurementSettings")) - .build(); - } - } - } - return getUpdateEnhancedMeasurementSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateConnectedSiteTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConnectedSiteTag", - requestType = com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.class, - responseType = com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConnectedSiteTagMethod() { - io.grpc.MethodDescriptor getCreateConnectedSiteTagMethod; - if ((getCreateConnectedSiteTagMethod = AnalyticsAdminServiceGrpc.getCreateConnectedSiteTagMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateConnectedSiteTagMethod = AnalyticsAdminServiceGrpc.getCreateConnectedSiteTagMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateConnectedSiteTagMethod = getCreateConnectedSiteTagMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConnectedSiteTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateConnectedSiteTag")) - .build(); - } - } - } - return getCreateConnectedSiteTagMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConnectedSiteTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConnectedSiteTag", - requestType = com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConnectedSiteTagMethod() { - io.grpc.MethodDescriptor getDeleteConnectedSiteTagMethod; - if ((getDeleteConnectedSiteTagMethod = AnalyticsAdminServiceGrpc.getDeleteConnectedSiteTagMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteConnectedSiteTagMethod = AnalyticsAdminServiceGrpc.getDeleteConnectedSiteTagMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteConnectedSiteTagMethod = getDeleteConnectedSiteTagMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConnectedSiteTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteConnectedSiteTag")) - .build(); - } - } - } - return getDeleteConnectedSiteTagMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConnectedSiteTagsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConnectedSiteTags", - requestType = com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectedSiteTagsMethod() { - io.grpc.MethodDescriptor getListConnectedSiteTagsMethod; - if ((getListConnectedSiteTagsMethod = AnalyticsAdminServiceGrpc.getListConnectedSiteTagsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListConnectedSiteTagsMethod = AnalyticsAdminServiceGrpc.getListConnectedSiteTagsMethod) == null) { - AnalyticsAdminServiceGrpc.getListConnectedSiteTagsMethod = getListConnectedSiteTagsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnectedSiteTags")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListConnectedSiteTags")) - .build(); - } - } - } - return getListConnectedSiteTagsMethod; - } - - private static volatile io.grpc.MethodDescriptor getFetchConnectedGa4PropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "FetchConnectedGa4Property", - requestType = com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.class, - responseType = com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getFetchConnectedGa4PropertyMethod() { - io.grpc.MethodDescriptor getFetchConnectedGa4PropertyMethod; - if ((getFetchConnectedGa4PropertyMethod = AnalyticsAdminServiceGrpc.getFetchConnectedGa4PropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getFetchConnectedGa4PropertyMethod = AnalyticsAdminServiceGrpc.getFetchConnectedGa4PropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getFetchConnectedGa4PropertyMethod = getFetchConnectedGa4PropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchConnectedGa4Property")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("FetchConnectedGa4Property")) - .build(); - } - } - } - return getFetchConnectedGa4PropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetAdSenseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAdSenseLink", - requestType = com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.AdSenseLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAdSenseLinkMethod() { - io.grpc.MethodDescriptor getGetAdSenseLinkMethod; - if ((getGetAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getGetAdSenseLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getGetAdSenseLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetAdSenseLinkMethod = getGetAdSenseLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAdSenseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetAdSenseLink")) - .build(); - } - } - } - return getGetAdSenseLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateAdSenseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAdSenseLink", - requestType = com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.AdSenseLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateAdSenseLinkMethod() { - io.grpc.MethodDescriptor getCreateAdSenseLinkMethod; - if ((getCreateAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getCreateAdSenseLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getCreateAdSenseLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateAdSenseLinkMethod = getCreateAdSenseLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAdSenseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateAdSenseLink")) - .build(); - } - } - } - return getCreateAdSenseLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAdSenseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAdSenseLink", - requestType = com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAdSenseLinkMethod() { - io.grpc.MethodDescriptor getDeleteAdSenseLinkMethod; - if ((getDeleteAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteAdSenseLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteAdSenseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteAdSenseLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteAdSenseLinkMethod = getDeleteAdSenseLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAdSenseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAdSenseLink")) - .build(); - } - } - } - return getDeleteAdSenseLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAdSenseLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAdSenseLinks", - requestType = com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAdSenseLinksMethod() { - io.grpc.MethodDescriptor getListAdSenseLinksMethod; - if ((getListAdSenseLinksMethod = AnalyticsAdminServiceGrpc.getListAdSenseLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAdSenseLinksMethod = AnalyticsAdminServiceGrpc.getListAdSenseLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListAdSenseLinksMethod = getListAdSenseLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAdSenseLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListAdSenseLinks")) - .build(); - } - } - } - return getListAdSenseLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetEventCreateRuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEventCreateRule", - requestType = com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.class, - responseType = com.google.analytics.admin.v1alpha.EventCreateRule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetEventCreateRuleMethod() { - io.grpc.MethodDescriptor getGetEventCreateRuleMethod; - if ((getGetEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getGetEventCreateRuleMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getGetEventCreateRuleMethod) == null) { - AnalyticsAdminServiceGrpc.getGetEventCreateRuleMethod = getGetEventCreateRuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEventCreateRule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetEventCreateRule")) - .build(); - } - } - } - return getGetEventCreateRuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getListEventCreateRulesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEventCreateRules", - requestType = com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListEventCreateRulesMethod() { - io.grpc.MethodDescriptor getListEventCreateRulesMethod; - if ((getListEventCreateRulesMethod = AnalyticsAdminServiceGrpc.getListEventCreateRulesMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListEventCreateRulesMethod = AnalyticsAdminServiceGrpc.getListEventCreateRulesMethod) == null) { - AnalyticsAdminServiceGrpc.getListEventCreateRulesMethod = getListEventCreateRulesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEventCreateRules")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListEventCreateRules")) - .build(); - } - } - } - return getListEventCreateRulesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateEventCreateRuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEventCreateRule", - requestType = com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.class, - responseType = com.google.analytics.admin.v1alpha.EventCreateRule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateEventCreateRuleMethod() { - io.grpc.MethodDescriptor getCreateEventCreateRuleMethod; - if ((getCreateEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getCreateEventCreateRuleMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getCreateEventCreateRuleMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateEventCreateRuleMethod = getCreateEventCreateRuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEventCreateRule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateEventCreateRule")) - .build(); - } - } - } - return getCreateEventCreateRuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateEventCreateRuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEventCreateRule", - requestType = com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.class, - responseType = com.google.analytics.admin.v1alpha.EventCreateRule.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateEventCreateRuleMethod() { - io.grpc.MethodDescriptor getUpdateEventCreateRuleMethod; - if ((getUpdateEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getUpdateEventCreateRuleMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getUpdateEventCreateRuleMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateEventCreateRuleMethod = getUpdateEventCreateRuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEventCreateRule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateEventCreateRule")) - .build(); - } - } - } - return getUpdateEventCreateRuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteEventCreateRuleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEventCreateRule", - requestType = com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteEventCreateRuleMethod() { - io.grpc.MethodDescriptor getDeleteEventCreateRuleMethod; - if ((getDeleteEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getDeleteEventCreateRuleMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteEventCreateRuleMethod = AnalyticsAdminServiceGrpc.getDeleteEventCreateRuleMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteEventCreateRuleMethod = getDeleteEventCreateRuleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEventCreateRule")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteEventCreateRule")) - .build(); - } - } - } - return getDeleteEventCreateRuleMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDataRedactionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataRedactionSettings", - requestType = com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataRedactionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDataRedactionSettingsMethod() { - io.grpc.MethodDescriptor getUpdateDataRedactionSettingsMethod; - if ((getUpdateDataRedactionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateDataRedactionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateDataRedactionSettingsMethod = getUpdateDataRedactionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataRedactionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataRedactionSettings")) - .build(); - } - } - } - return getUpdateDataRedactionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataRedactionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataRedactionSettings", - requestType = com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, - responseType = com.google.analytics.admin.v1alpha.DataRedactionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataRedactionSettingsMethod() { - io.grpc.MethodDescriptor getGetDataRedactionSettingsMethod; - if ((getGetDataRedactionSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDataRedactionSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDataRedactionSettingsMethod = getGetDataRedactionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataRedactionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataRedactionSettings")) - .build(); - } - } - } - return getGetDataRedactionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRollupPropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRollupProperty", - requestType = com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, - responseType = com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRollupPropertyMethod() { - io.grpc.MethodDescriptor getCreateRollupPropertyMethod; - if ((getCreateRollupPropertyMethod = AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateRollupPropertyMethod = AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateRollupPropertyMethod = getCreateRollupPropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRollupProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateRollupProperty")) - .build(); - } - } - } - return getCreateRollupPropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRollupPropertySourceLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRollupPropertySourceLink", - requestType = com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRollupPropertySourceLinkMethod() { - io.grpc.MethodDescriptor getGetRollupPropertySourceLinkMethod; - if ((getGetRollupPropertySourceLinkMethod = AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetRollupPropertySourceLinkMethod = AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetRollupPropertySourceLinkMethod = getGetRollupPropertySourceLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRollupPropertySourceLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetRollupPropertySourceLink")) - .build(); - } - } - } - return getGetRollupPropertySourceLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRollupPropertySourceLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRollupPropertySourceLinks", - requestType = com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRollupPropertySourceLinksMethod() { - io.grpc.MethodDescriptor getListRollupPropertySourceLinksMethod; - if ((getListRollupPropertySourceLinksMethod = AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListRollupPropertySourceLinksMethod = AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListRollupPropertySourceLinksMethod = getListRollupPropertySourceLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRollupPropertySourceLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListRollupPropertySourceLinks")) - .build(); - } - } - } - return getListRollupPropertySourceLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRollupPropertySourceLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRollupPropertySourceLink", - requestType = com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRollupPropertySourceLinkMethod() { - io.grpc.MethodDescriptor getCreateRollupPropertySourceLinkMethod; - if ((getCreateRollupPropertySourceLinkMethod = AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateRollupPropertySourceLinkMethod = AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateRollupPropertySourceLinkMethod = getCreateRollupPropertySourceLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRollupPropertySourceLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateRollupPropertySourceLink")) - .build(); - } - } - } - return getCreateRollupPropertySourceLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRollupPropertySourceLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRollupPropertySourceLink", - requestType = com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRollupPropertySourceLinkMethod() { - io.grpc.MethodDescriptor getDeleteRollupPropertySourceLinkMethod; - if ((getDeleteRollupPropertySourceLinkMethod = AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteRollupPropertySourceLinkMethod = AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteRollupPropertySourceLinkMethod = getDeleteRollupPropertySourceLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRollupPropertySourceLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteRollupPropertySourceLink")) - .build(); - } - } - } - return getDeleteRollupPropertySourceLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSubpropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSubproperty", - requestType = com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, - responseType = com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSubpropertyMethod() { - io.grpc.MethodDescriptor getCreateSubpropertyMethod; - if ((getCreateSubpropertyMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateSubpropertyMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateSubpropertyMethod = getCreateSubpropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubproperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateSubproperty")) - .build(); - } - } - } - return getCreateSubpropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteSubpropertyEventFilterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteSubpropertyEventFilter", - requestType = com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteSubpropertyEventFilterMethod() { - io.grpc.MethodDescriptor getDeleteSubpropertyEventFilterMethod; - if ((getDeleteSubpropertyEventFilterMethod = AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteSubpropertyEventFilterMethod = AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteSubpropertyEventFilterMethod = getDeleteSubpropertyEventFilterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteSubpropertyEventFilter")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteSubpropertyEventFilter")) - .build(); - } - } - } - return getDeleteSubpropertyEventFilterMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateSubpropertyEventFilterMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateSubpropertyEventFilter", - requestType = com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, - responseType = com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateSubpropertyEventFilterMethod() { - io.grpc.MethodDescriptor getCreateSubpropertyEventFilterMethod; - if ((getCreateSubpropertyEventFilterMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateSubpropertyEventFilterMethod = AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateSubpropertyEventFilterMethod = getCreateSubpropertyEventFilterMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateSubpropertyEventFilter")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateSubpropertyEventFilter")) - .build(); - } - } - } - return getCreateSubpropertyEventFilterMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnalyticsAdminServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AnalyticsAdminServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - default void getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - default void listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccountsMethod(), responseObserver); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * AccessBindings) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - default void deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAccountMethod(), responseObserver); - } - - /** - *
-     * Updates an account.
-     * 
- */ - default void updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccountMethod(), responseObserver); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - default void provisionAccountTicket(com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProvisionAccountTicketMethod(), responseObserver); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - default void listAccountSummaries(com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccountSummariesMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - default void getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPropertyMethod(), responseObserver); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - default void listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPropertiesMethod(), responseObserver); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - default void createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePropertyMethod(), responseObserver); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - default void deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePropertyMethod(), responseObserver); - } - - /** - *
-     * Updates a property.
-     * 
- */ - default void updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePropertyMethod(), responseObserver); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - default void createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFirebaseLinkMethod(), responseObserver); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - default void deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFirebaseLinkMethod(), responseObserver); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - default void listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFirebaseLinksMethod(), responseObserver); - } - - /** - *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
-     * 
- */ - default void getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGlobalSiteTagMethod(), responseObserver); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - default void createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGoogleAdsLinkMethod(), responseObserver); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - default void updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateGoogleAdsLinkMethod(), responseObserver); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - default void deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGoogleAdsLinkMethod(), responseObserver); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - default void listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGoogleAdsLinksMethod(), responseObserver); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - default void getDataSharingSettings(com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataSharingSettingsMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - default void getMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - default void listMeasurementProtocolSecrets(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMeasurementProtocolSecretsMethod(), responseObserver); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - default void createMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - default void deleteMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - default void updateMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - default void acknowledgeUserDataCollection(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAcknowledgeUserDataCollectionMethod(), responseObserver); - } - - /** - *
-     * Looks up a single SKAdNetworkConversionValueSchema.
-     * 
- */ - default void getSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSKAdNetworkConversionValueSchemaMethod(), responseObserver); - } - - /** - *
-     * Creates a SKAdNetworkConversionValueSchema.
-     * 
- */ - default void createSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSKAdNetworkConversionValueSchemaMethod(), responseObserver); - } - - /** - *
-     * Deletes target SKAdNetworkConversionValueSchema.
-     * 
- */ - default void deleteSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSKAdNetworkConversionValueSchemaMethod(), responseObserver); - } - - /** - *
-     * Updates a SKAdNetworkConversionValueSchema.
-     * 
- */ - default void updateSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSKAdNetworkConversionValueSchemaMethod(), responseObserver); - } - - /** - *
-     * Lists SKAdNetworkConversionValueSchema on a stream.
-     * Properties can have at most one SKAdNetworkConversionValueSchema.
-     * 
- */ - default void listSKAdNetworkConversionValueSchemas(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSKAdNetworkConversionValueSchemasMethod(), responseObserver); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - default void searchChangeHistoryEvents(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchChangeHistoryEventsMethod(), responseObserver); - } - - /** - *
-     * Lookup for Google Signals settings for a property.
-     * 
- */ - default void getGoogleSignalsSettings(com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetGoogleSignalsSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates Google Signals settings for a property.
-     * 
- */ - default void updateGoogleSignalsSettings(com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateGoogleSignalsSettingsMethod(), responseObserver); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - default void createConversionEvent(com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConversionEventMethod(), responseObserver); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - default void updateConversionEvent(com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConversionEventMethod(), responseObserver); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - default void getConversionEvent(com.google.analytics.admin.v1alpha.GetConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConversionEventMethod(), responseObserver); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - default void deleteConversionEvent(com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConversionEventMethod(), responseObserver); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - default void listConversionEvents(com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConversionEventsMethod(), responseObserver); - } - - /** - *
-     * Look up a single DisplayVideo360AdvertiserLink
-     * 
- */ - default void getDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDisplayVideo360AdvertiserLinkMethod(), responseObserver); - } - - /** - *
-     * Lists all DisplayVideo360AdvertiserLinks on a property.
-     * 
- */ - default void listDisplayVideo360AdvertiserLinks(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDisplayVideo360AdvertiserLinksMethod(), responseObserver); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLink.
-     * This can only be utilized by users who have proper authorization both on
-     * the Google Analytics property and on the Display & Video 360 advertiser.
-     * Users who do not have access to the Display & Video 360 advertiser should
-     * instead seek to create a DisplayVideo360LinkProposal.
-     * 
- */ - default void createDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDisplayVideo360AdvertiserLinkMethod(), responseObserver); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - default void deleteDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDisplayVideo360AdvertiserLinkMethod(), responseObserver); - } - - /** - *
-     * Updates a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - default void updateDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDisplayVideo360AdvertiserLinkMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - default void getDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); - } - - /** - *
-     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
-     * 
- */ - default void listDisplayVideo360AdvertiserLinkProposals(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDisplayVideo360AdvertiserLinkProposalsMethod(), responseObserver); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - default void createDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
-     * This can only be used on cancelled proposals.
-     * 
- */ - default void deleteDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); - } - - /** - *
-     * Approves a DisplayVideo360AdvertiserLinkProposal.
-     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
-     * DisplayVideo360AdvertiserLink will be created.
-     * 
- */ - default void approveDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getApproveDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); - } - - /** - *
-     * Cancels a DisplayVideo360AdvertiserLinkProposal.
-     * Cancelling can mean either:
-     * - Declining a proposal initiated from Display & Video 360
-     * - Withdrawing a proposal initiated from Google Analytics
-     * After being cancelled, a proposal will eventually be deleted automatically.
-     * 
- */ - default void cancelDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCancelDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - default void createCustomDimension(com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - default void updateCustomDimension(com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - default void listCustomDimensions(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomDimensionsMethod(), responseObserver); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - default void archiveCustomDimension(com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getArchiveCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - default void getCustomDimension(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - default void createCustomMetric(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - default void updateCustomMetric(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - default void listCustomMetrics(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomMetricsMethod(), responseObserver); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - default void archiveCustomMetric(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getArchiveCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - default void getCustomMetric(com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - default void getDataRetentionSettings(com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataRetentionSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - default void updateDataRetentionSettings(com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDataRetentionSettingsMethod(), responseObserver); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - default void createDataStream(com.google.analytics.admin.v1alpha.CreateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDataStreamMethod(), responseObserver); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - default void deleteDataStream(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDataStreamMethod(), responseObserver); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - default void updateDataStream(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDataStreamMethod(), responseObserver); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - default void listDataStreams(com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataStreamsMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - default void getDataStream(com.google.analytics.admin.v1alpha.GetDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataStreamMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single Audience.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - default void getAudience(com.google.analytics.admin.v1alpha.GetAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAudienceMethod(), responseObserver); - } - - /** - *
-     * Lists Audiences on a property.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - default void listAudiences(com.google.analytics.admin.v1alpha.ListAudiencesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAudiencesMethod(), responseObserver); - } - - /** - *
-     * Creates an Audience.
-     * 
- */ - default void createAudience(com.google.analytics.admin.v1alpha.CreateAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAudienceMethod(), responseObserver); - } - - /** - *
-     * Updates an Audience on a property.
-     * 
- */ - default void updateAudience(com.google.analytics.admin.v1alpha.UpdateAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAudienceMethod(), responseObserver); - } - - /** - *
-     * Archives an Audience on a property.
-     * 
- */ - default void archiveAudience(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getArchiveAudienceMethod(), responseObserver); - } - - /** - *
-     * Look up a single SearchAds360Link
-     * 
- */ - default void getSearchAds360Link(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSearchAds360LinkMethod(), responseObserver); - } - - /** - *
-     * Lists all SearchAds360Links on a property.
-     * 
- */ - default void listSearchAds360Links(com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListSearchAds360LinksMethod(), responseObserver); - } - - /** - *
-     * Creates a SearchAds360Link.
-     * 
- */ - default void createSearchAds360Link(com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSearchAds360LinkMethod(), responseObserver); - } - - /** - *
-     * Deletes a SearchAds360Link on a property.
-     * 
- */ - default void deleteSearchAds360Link(com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSearchAds360LinkMethod(), responseObserver); - } - - /** - *
-     * Updates a SearchAds360Link on a property.
-     * 
- */ - default void updateSearchAds360Link(com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateSearchAds360LinkMethod(), responseObserver); - } - - /** - *
-     * Lookup for a AttributionSettings singleton.
-     * 
- */ - default void getAttributionSettings(com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAttributionSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates attribution settings on a property.
-     * 
- */ - default void updateAttributionSettings(com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAttributionSettingsMethod(), responseObserver); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - default void runAccessReport(com.google.analytics.admin.v1alpha.RunAccessReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAccessReportMethod(), responseObserver); - } - - /** - *
-     * Creates an access binding on an account or property.
-     * 
- */ - default void createAccessBinding(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAccessBindingMethod(), responseObserver); - } - - /** - *
-     * Gets information about an access binding.
-     * 
- */ - default void getAccessBinding(com.google.analytics.admin.v1alpha.GetAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccessBindingMethod(), responseObserver); - } - - /** - *
-     * Updates an access binding on an account or property.
-     * 
- */ - default void updateAccessBinding(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccessBindingMethod(), responseObserver); - } - - /** - *
-     * Deletes an access binding on an account or property.
-     * 
- */ - default void deleteAccessBinding(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAccessBindingMethod(), responseObserver); - } - - /** - *
-     * Lists all access bindings on an account or property.
-     * 
- */ - default void listAccessBindings(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccessBindingsMethod(), responseObserver); - } - - /** - *
-     * Creates information about multiple access bindings to an account or
-     * property.
-     * This method is transactional. If any AccessBinding cannot be created, none
-     * of the AccessBindings will be created.
-     * 
- */ - default void batchCreateAccessBindings(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchCreateAccessBindingsMethod(), responseObserver); - } - - /** - *
-     * Gets information about multiple access bindings to an account or property.
-     * 
- */ - default void batchGetAccessBindings(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGetAccessBindingsMethod(), responseObserver); - } - - /** - *
-     * Updates information about multiple access bindings to an account or
-     * property.
-     * 
- */ - default void batchUpdateAccessBindings(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchUpdateAccessBindingsMethod(), responseObserver); - } - - /** - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - default void batchDeleteAccessBindings(com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchDeleteAccessBindingsMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single ExpandedDataSet.
-     * 
- */ - default void getExpandedDataSet(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetExpandedDataSetMethod(), responseObserver); - } - - /** - *
-     * Lists ExpandedDataSets on a property.
-     * 
- */ - default void listExpandedDataSets(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListExpandedDataSetsMethod(), responseObserver); - } - - /** - *
-     * Creates a ExpandedDataSet.
-     * 
- */ - default void createExpandedDataSet(com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateExpandedDataSetMethod(), responseObserver); - } - - /** - *
-     * Updates a ExpandedDataSet on a property.
-     * 
- */ - default void updateExpandedDataSet(com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateExpandedDataSetMethod(), responseObserver); - } - - /** - *
-     * Deletes a ExpandedDataSet on a property.
-     * 
- */ - default void deleteExpandedDataSet(com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteExpandedDataSetMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single ChannelGroup.
-     * 
- */ - default void getChannelGroup(com.google.analytics.admin.v1alpha.GetChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetChannelGroupMethod(), responseObserver); - } - - /** - *
-     * Lists ChannelGroups on a property.
-     * 
- */ - default void listChannelGroups(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListChannelGroupsMethod(), responseObserver); - } - - /** - *
-     * Creates a ChannelGroup.
-     * 
- */ - default void createChannelGroup(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateChannelGroupMethod(), responseObserver); - } - - /** - *
-     * Updates a ChannelGroup.
-     * 
- */ - default void updateChannelGroup(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateChannelGroupMethod(), responseObserver); - } - - /** - *
-     * Deletes a ChannelGroup on a property.
-     * 
- */ - default void deleteChannelGroup(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteChannelGroupMethod(), responseObserver); - } - - /** - *
-     * Sets the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - default void setAutomatedGa4ConfigurationOptOut(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetAutomatedGa4ConfigurationOptOutMethod(), responseObserver); - } - - /** - *
-     * Fetches the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - default void fetchAutomatedGa4ConfigurationOptOut(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchAutomatedGa4ConfigurationOptOutMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single BigQuery Link.
-     * 
- */ - default void getBigQueryLink(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetBigQueryLinkMethod(), responseObserver); - } - - /** - *
-     * Lists BigQuery Links on a property.
-     * 
- */ - default void listBigQueryLinks(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListBigQueryLinksMethod(), responseObserver); - } - - /** - *
-     * Returns the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - default void getEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEnhancedMeasurementSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - default void updateEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); - } - - /** - *
-     * Creates a connected site tag for a Universal Analytics property. You can
-     * create a maximum of 20 connected site tags per property.
-     * Note: This API cannot be used on GA4 properties.
-     * 
- */ - default void createConnectedSiteTag(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConnectedSiteTagMethod(), responseObserver); - } - - /** - *
-     * Deletes a connected site tag for a Universal Analytics property.
-     * Note: this has no effect on GA4 properties.
-     * 
- */ - default void deleteConnectedSiteTag(com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConnectedSiteTagMethod(), responseObserver); - } - - /** - *
-     * Lists the connected site tags for a Universal Analytics property. A maximum
-     * of 20 connected site tags will be returned. Note: this has no effect on GA4
-     * property.
-     * 
- */ - default void listConnectedSiteTags(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectedSiteTagsMethod(), responseObserver); - } - - /** - *
-     * Given a specified UA property, looks up the GA4 property connected to it.
-     * Note: this cannot be used with GA4 properties.
-     * 
- */ - default void fetchConnectedGa4Property(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchConnectedGa4PropertyMethod(), responseObserver); - } - - /** - *
-     * Looks up a single AdSenseLink.
-     * 
- */ - default void getAdSenseLink(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAdSenseLinkMethod(), responseObserver); - } - - /** - *
-     * Creates an AdSenseLink.
-     * 
- */ - default void createAdSenseLink(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAdSenseLinkMethod(), responseObserver); - } - - /** - *
-     * Deletes an AdSenseLink.
-     * 
- */ - default void deleteAdSenseLink(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAdSenseLinkMethod(), responseObserver); - } - - /** - *
-     * Lists AdSenseLinks on a property.
-     * 
- */ - default void listAdSenseLinks(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAdSenseLinksMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single EventCreateRule.
-     * 
- */ - default void getEventCreateRule(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEventCreateRuleMethod(), responseObserver); - } - - /** - *
-     * Lists EventCreateRules on a web data stream.
-     * 
- */ - default void listEventCreateRules(com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListEventCreateRulesMethod(), responseObserver); - } - - /** - *
-     * Creates an EventCreateRule.
-     * 
- */ - default void createEventCreateRule(com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateEventCreateRuleMethod(), responseObserver); - } - - /** - *
-     * Updates an EventCreateRule.
-     * 
- */ - default void updateEventCreateRule(com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEventCreateRuleMethod(), responseObserver); - } - - /** - *
-     * Deletes an EventCreateRule.
-     * 
- */ - default void deleteEventCreateRule(com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteEventCreateRuleMethod(), responseObserver); - } - - /** - *
-     * Updates a DataRedactionSettings on a property.
-     * 
- */ - default void updateDataRedactionSettings(com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDataRedactionSettingsMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single DataRedactionSettings.
-     * 
- */ - default void getDataRedactionSettings(com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataRedactionSettingsMethod(), responseObserver); - } - - /** - *
-     * Create a roll-up property and all roll-up property source links.
-     * 
- */ - default void createRollupProperty(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRollupPropertyMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single roll-up property source Link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - default void getRollupPropertySourceLink(com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRollupPropertySourceLinkMethod(), responseObserver); - } - - /** - *
-     * Lists roll-up property source Links on a property.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - default void listRollupPropertySourceLinks(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRollupPropertySourceLinksMethod(), responseObserver); - } - - /** - *
-     * Creates a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - default void createRollupPropertySourceLink(com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRollupPropertySourceLinkMethod(), responseObserver); - } - - /** - *
-     * Deletes a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - default void deleteRollupPropertySourceLink(com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRollupPropertySourceLinkMethod(), responseObserver); - } - - /** - *
-     * Create a subproperty and a subproperty event filter that applies to the
-     * created subproperty.
-     * 
- */ - default void createSubproperty(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubpropertyMethod(), responseObserver); - } - - /** - *
-     * Deletes a subproperty event filter.
-     * 
- */ - default void deleteSubpropertyEventFilter(com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteSubpropertyEventFilterMethod(), responseObserver); - } - - /** - *
-     * Creates a subproperty Event Filter.
-     * 
- */ - default void createSubpropertyEventFilter(com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateSubpropertyEventFilterMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static abstract class AnalyticsAdminServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return AnalyticsAdminServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AnalyticsAdminServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); - } - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - public void getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public void listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * AccessBindings) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public void deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an account.
-     * 
- */ - public void updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public void provisionAccountTicket(com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public void listAccountSummaries(com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public void getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public void listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public void createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - public void deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a property.
-     * 
- */ - public void updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public void createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public void deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public void listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
-     * 
- */ - public void getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public void createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public void updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public void deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - public void listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - public void getDataSharingSettings(com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - public void getMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - public void listMeasurementProtocolSecrets(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - public void createMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public void deleteMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - public void updateMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - public void acknowledgeUserDataCollection(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Looks up a single SKAdNetworkConversionValueSchema.
-     * 
- */ - public void getSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a SKAdNetworkConversionValueSchema.
-     * 
- */ - public void createSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes target SKAdNetworkConversionValueSchema.
-     * 
- */ - public void deleteSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a SKAdNetworkConversionValueSchema.
-     * 
- */ - public void updateSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists SKAdNetworkConversionValueSchema on a stream.
-     * Properties can have at most one SKAdNetworkConversionValueSchema.
-     * 
- */ - public void listSKAdNetworkConversionValueSchemas(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSKAdNetworkConversionValueSchemasMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - public void searchChangeHistoryEvents(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for Google Signals settings for a property.
-     * 
- */ - public void getGoogleSignalsSettings(com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates Google Signals settings for a property.
-     * 
- */ - public void updateGoogleSignalsSettings(com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - public void createConversionEvent(com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - public void updateConversionEvent(com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - public void getConversionEvent(com.google.analytics.admin.v1alpha.GetConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - public void deleteConversionEvent(com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - public void listConversionEvents(com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Look up a single DisplayVideo360AdvertiserLink
-     * 
- */ - public void getDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all DisplayVideo360AdvertiserLinks on a property.
-     * 
- */ - public void listDisplayVideo360AdvertiserLinks(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLink.
-     * This can only be utilized by users who have proper authorization both on
-     * the Google Analytics property and on the Display & Video 360 advertiser.
-     * Users who do not have access to the Display & Video 360 advertiser should
-     * instead seek to create a DisplayVideo360LinkProposal.
-     * 
- */ - public void createDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - public void deleteDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - public void updateDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - public void getDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
-     * 
- */ - public void listDisplayVideo360AdvertiserLinkProposals(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - public void createDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
-     * This can only be used on cancelled proposals.
-     * 
- */ - public void deleteDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Approves a DisplayVideo360AdvertiserLinkProposal.
-     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
-     * DisplayVideo360AdvertiserLink will be created.
-     * 
- */ - public void approveDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Cancels a DisplayVideo360AdvertiserLinkProposal.
-     * Cancelling can mean either:
-     * - Declining a proposal initiated from Display & Video 360
-     * - Withdrawing a proposal initiated from Google Analytics
-     * After being cancelled, a proposal will eventually be deleted automatically.
-     * 
- */ - public void cancelDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - public void createCustomDimension(com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - public void updateCustomDimension(com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - public void listCustomDimensions(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - public void archiveCustomDimension(com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - public void getCustomDimension(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - public void createCustomMetric(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - public void updateCustomMetric(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - public void listCustomMetrics(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - public void archiveCustomMetric(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - public void getCustomMetric(com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - public void getDataRetentionSettings(com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - public void updateDataRetentionSettings(com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - public void createDataStream(com.google.analytics.admin.v1alpha.CreateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - public void deleteDataStream(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - public void updateDataStream(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - public void listDataStreams(com.google.analytics.admin.v1alpha.ListDataStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - public void getDataStream(com.google.analytics.admin.v1alpha.GetDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single Audience.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - public void getAudience(com.google.analytics.admin.v1alpha.GetAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAudienceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists Audiences on a property.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - public void listAudiences(com.google.analytics.admin.v1alpha.ListAudiencesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAudiencesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an Audience.
-     * 
- */ - public void createAudience(com.google.analytics.admin.v1alpha.CreateAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAudienceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an Audience on a property.
-     * 
- */ - public void updateAudience(com.google.analytics.admin.v1alpha.UpdateAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAudienceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Archives an Audience on a property.
-     * 
- */ - public void archiveAudience(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Look up a single SearchAds360Link
-     * 
- */ - public void getSearchAds360Link(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetSearchAds360LinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all SearchAds360Links on a property.
-     * 
- */ - public void listSearchAds360Links(com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListSearchAds360LinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a SearchAds360Link.
-     * 
- */ - public void createSearchAds360Link(com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSearchAds360LinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a SearchAds360Link on a property.
-     * 
- */ - public void deleteSearchAds360Link(com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSearchAds360LinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a SearchAds360Link on a property.
-     * 
- */ - public void updateSearchAds360Link(com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateSearchAds360LinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a AttributionSettings singleton.
-     * 
- */ - public void getAttributionSettings(com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates attribution settings on a property.
-     * 
- */ - public void updateAttributionSettings(com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - public void runAccessReport(com.google.analytics.admin.v1alpha.RunAccessReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an access binding on an account or property.
-     * 
- */ - public void createAccessBinding(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAccessBindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets information about an access binding.
-     * 
- */ - public void getAccessBinding(com.google.analytics.admin.v1alpha.GetAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccessBindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an access binding on an account or property.
-     * 
- */ - public void updateAccessBinding(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAccessBindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an access binding on an account or property.
-     * 
- */ - public void deleteAccessBinding(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAccessBindingMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all access bindings on an account or property.
-     * 
- */ - public void listAccessBindings(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates information about multiple access bindings to an account or
-     * property.
-     * This method is transactional. If any AccessBinding cannot be created, none
-     * of the AccessBindings will be created.
-     * 
- */ - public void batchCreateAccessBindings(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateAccessBindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets information about multiple access bindings to an account or property.
-     * 
- */ - public void batchGetAccessBindings(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetAccessBindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates information about multiple access bindings to an account or
-     * property.
-     * 
- */ - public void batchUpdateAccessBindings(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateAccessBindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public void batchDeleteAccessBindings(com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteAccessBindingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single ExpandedDataSet.
-     * 
- */ - public void getExpandedDataSet(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetExpandedDataSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ExpandedDataSets on a property.
-     * 
- */ - public void listExpandedDataSets(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListExpandedDataSetsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a ExpandedDataSet.
-     * 
- */ - public void createExpandedDataSet(com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateExpandedDataSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a ExpandedDataSet on a property.
-     * 
- */ - public void updateExpandedDataSet(com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateExpandedDataSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a ExpandedDataSet on a property.
-     * 
- */ - public void deleteExpandedDataSet(com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteExpandedDataSetMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single ChannelGroup.
-     * 
- */ - public void getChannelGroup(com.google.analytics.admin.v1alpha.GetChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetChannelGroupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists ChannelGroups on a property.
-     * 
- */ - public void listChannelGroups(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListChannelGroupsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a ChannelGroup.
-     * 
- */ - public void createChannelGroup(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateChannelGroupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a ChannelGroup.
-     * 
- */ - public void updateChannelGroup(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateChannelGroupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a ChannelGroup on a property.
-     * 
- */ - public void deleteChannelGroup(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteChannelGroupMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Sets the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - public void setAutomatedGa4ConfigurationOptOut(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Fetches the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - public void fetchAutomatedGa4ConfigurationOptOut(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single BigQuery Link.
-     * 
- */ - public void getBigQueryLink(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetBigQueryLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists BigQuery Links on a property.
-     * 
- */ - public void listBigQueryLinks(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListBigQueryLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public void getEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public void updateEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a connected site tag for a Universal Analytics property. You can
-     * create a maximum of 20 connected site tags per property.
-     * Note: This API cannot be used on GA4 properties.
-     * 
- */ - public void createConnectedSiteTag(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConnectedSiteTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a connected site tag for a Universal Analytics property.
-     * Note: this has no effect on GA4 properties.
-     * 
- */ - public void deleteConnectedSiteTag(com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConnectedSiteTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the connected site tags for a Universal Analytics property. A maximum
-     * of 20 connected site tags will be returned. Note: this has no effect on GA4
-     * property.
-     * 
- */ - public void listConnectedSiteTags(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectedSiteTagsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Given a specified UA property, looks up the GA4 property connected to it.
-     * Note: this cannot be used with GA4 properties.
-     * 
- */ - public void fetchConnectedGa4Property(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getFetchConnectedGa4PropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Looks up a single AdSenseLink.
-     * 
- */ - public void getAdSenseLink(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAdSenseLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an AdSenseLink.
-     * 
- */ - public void createAdSenseLink(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAdSenseLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an AdSenseLink.
-     * 
- */ - public void deleteAdSenseLink(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAdSenseLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists AdSenseLinks on a property.
-     * 
- */ - public void listAdSenseLinks(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAdSenseLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single EventCreateRule.
-     * 
- */ - public void getEventCreateRule(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEventCreateRuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists EventCreateRules on a web data stream.
-     * 
- */ - public void listEventCreateRules(com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEventCreateRulesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an EventCreateRule.
-     * 
- */ - public void createEventCreateRule(com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEventCreateRuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an EventCreateRule.
-     * 
- */ - public void updateEventCreateRule(com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEventCreateRuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes an EventCreateRule.
-     * 
- */ - public void deleteEventCreateRule(com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEventCreateRuleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a DataRedactionSettings on a property.
-     * 
- */ - public void updateDataRedactionSettings(com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDataRedactionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single DataRedactionSettings.
-     * 
- */ - public void getDataRedactionSettings(com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataRedactionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a roll-up property and all roll-up property source links.
-     * 
- */ - public void createRollupProperty(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRollupPropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single roll-up property source Link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public void getRollupPropertySourceLink(com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRollupPropertySourceLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists roll-up property source Links on a property.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public void listRollupPropertySourceLinks(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRollupPropertySourceLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public void createRollupPropertySourceLink(com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRollupPropertySourceLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public void deleteRollupPropertySourceLink(com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRollupPropertySourceLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Create a subproperty and a subproperty event filter that applies to the
-     * created subproperty.
-     * 
- */ - public void createSubproperty(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubpropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a subproperty event filter.
-     * 
- */ - public void deleteSubpropertyEventFilter(com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteSubpropertyEventFilterMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a subproperty Event Filter.
-     * 
- */ - public void createSubpropertyEventFilter(com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AnalyticsAdminServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Account getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccountMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountsMethod(), getCallOptions(), request); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * AccessBindings) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public com.google.protobuf.Empty deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccountMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an account.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Account updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAccountMethod(), getCallOptions(), request); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket(com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries(com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPropertiesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Property updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public com.google.protobuf.Empty deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
-     * 
- */ - public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public com.google.protobuf.Empty deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings(com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse listMeasurementProtocolSecrets(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret createMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public com.google.protobuf.Empty deleteMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret updateMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Looks up a single SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema createSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes target SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.protobuf.Empty deleteSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema updateSKAdNetworkConversionValueSchema(com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSKAdNetworkConversionValueSchemaMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists SKAdNetworkConversionValueSchema on a stream.
-     * Properties can have at most one SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse listSKAdNetworkConversionValueSchemas(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSKAdNetworkConversionValueSchemasMethod(), getCallOptions(), request); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse searchChangeHistoryEvents(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for Google Signals settings for a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGoogleSignalsSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates Google Signals settings for a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSignalsSettings(com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGoogleSignalsSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent(com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ConversionEvent updateConversionEvent(com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - public com.google.protobuf.Empty deleteConversionEvent(com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConversionEvents(com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversionEventsMethod(), getCallOptions(), request); - } - - /** - *
-     * Look up a single DisplayVideo360AdvertiserLink
-     * 
- */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all DisplayVideo360AdvertiserLinks on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse listDisplayVideo360AdvertiserLinks(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLink.
-     * This can only be utilized by users who have proper authorization both on
-     * the Google Analytics property and on the Display & Video 360 advertiser.
-     * Users who do not have access to the Display & Video 360 advertiser should
-     * instead seek to create a DisplayVideo360LinkProposal.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse listDisplayVideo360AdvertiserLinkProposals(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
-     * This can only be used on cancelled proposals.
-     * 
- */ - public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), request); - } - - /** - *
-     * Approves a DisplayVideo360AdvertiserLinkProposal.
-     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
-     * DisplayVideo360AdvertiserLink will be created.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse approveDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), request); - } - - /** - *
-     * Cancels a DisplayVideo360AdvertiserLinkProposal.
-     * Cancelling can mean either:
-     * - Declining a proposal initiated from Display & Video 360
-     * - Withdrawing a proposal initiated from Google Analytics
-     * After being cancelled, a proposal will eventually be deleted automatically.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CustomDimension createCustomDimension(com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CustomDimension updateCustomDimension(com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse listCustomDimensions(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - public com.google.protobuf.Empty archiveCustomDimension(com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CustomMetric createCustomMetric(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CustomMetric updateCustomMetric(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse listCustomMetrics(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - public com.google.protobuf.Empty archiveCustomMetric(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings(com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataRetentionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataRetentionSettings updateDataRetentionSettings(com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataStream createDataStream(com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - public com.google.protobuf.Empty deleteDataStream(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataStream updateDataStream(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListDataStreamsResponse listDataStreams(com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataStreamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataStream getDataStream(com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single Audience.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Audience getAudience(com.google.analytics.admin.v1alpha.GetAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAudienceMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists Audiences on a property.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListAudiencesResponse listAudiences(com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAudiencesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an Audience.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Audience createAudience(com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAudienceMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an Audience on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.Audience updateAudience(com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAudienceMethod(), getCallOptions(), request); - } - - /** - *
-     * Archives an Audience on a property.
-     * 
- */ - public com.google.protobuf.Empty archiveAudience(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getArchiveAudienceMethod(), getCallOptions(), request); - } - - /** - *
-     * Look up a single SearchAds360Link
-     * 
- */ - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetSearchAds360LinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all SearchAds360Links on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse listSearchAds360Links(com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListSearchAds360LinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a SearchAds360Link.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SearchAds360Link createSearchAds360Link(com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSearchAds360LinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a SearchAds360Link on a property.
-     * 
- */ - public com.google.protobuf.Empty deleteSearchAds360Link(com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSearchAds360LinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a SearchAds360Link on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SearchAds360Link updateSearchAds360Link(com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateSearchAds360LinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a AttributionSettings singleton.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings(com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAttributionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates attribution settings on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AttributionSettings updateAttributionSettings(com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAttributionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - public com.google.analytics.admin.v1alpha.RunAccessReportResponse runAccessReport(com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAccessReportMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an access binding on an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AccessBinding createAccessBinding(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAccessBindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets information about an access binding.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding(com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccessBindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an access binding on an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AccessBinding updateAccessBinding(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAccessBindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an access binding on an account or property.
-     * 
- */ - public com.google.protobuf.Empty deleteAccessBinding(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccessBindingMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all access bindings on an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse listAccessBindings(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccessBindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates information about multiple access bindings to an account or
-     * property.
-     * This method is transactional. If any AccessBinding cannot be created, none
-     * of the AccessBindings will be created.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse batchCreateAccessBindings(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCreateAccessBindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets information about multiple access bindings to an account or property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse batchGetAccessBindings(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetAccessBindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates information about multiple access bindings to an account or
-     * property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse batchUpdateAccessBindings(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchUpdateAccessBindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public com.google.protobuf.Empty batchDeleteAccessBindings(com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchDeleteAccessBindingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single ExpandedDataSet.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetExpandedDataSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ExpandedDataSets on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse listExpandedDataSets(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListExpandedDataSetsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a ExpandedDataSet.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet createExpandedDataSet(com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateExpandedDataSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a ExpandedDataSet on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet updateExpandedDataSet(com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateExpandedDataSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a ExpandedDataSet on a property.
-     * 
- */ - public com.google.protobuf.Empty deleteExpandedDataSet(com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteExpandedDataSetMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single ChannelGroup.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup(com.google.analytics.admin.v1alpha.GetChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetChannelGroupMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists ChannelGroups on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse listChannelGroups(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListChannelGroupsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a ChannelGroup.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ChannelGroup createChannelGroup(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateChannelGroupMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a ChannelGroup.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ChannelGroup updateChannelGroup(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateChannelGroupMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a ChannelGroup on a property.
-     * 
- */ - public com.google.protobuf.Empty deleteChannelGroup(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteChannelGroupMethod(), getCallOptions(), request); - } - - /** - *
-     * Sets the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse setAutomatedGa4ConfigurationOptOut(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetAutomatedGa4ConfigurationOptOutMethod(), getCallOptions(), request); - } - - /** - *
-     * Fetches the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse fetchAutomatedGa4ConfigurationOptOut(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchAutomatedGa4ConfigurationOptOutMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single BigQuery Link.
-     * 
- */ - public com.google.analytics.admin.v1alpha.BigQueryLink getBigQueryLink(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetBigQueryLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists BigQuery Links on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse listBigQueryLinks(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListBigQueryLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings updateEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a connected site tag for a Universal Analytics property. You can
-     * create a maximum of 20 connected site tags per property.
-     * Note: This API cannot be used on GA4 properties.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse createConnectedSiteTag(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConnectedSiteTagMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a connected site tag for a Universal Analytics property.
-     * Note: this has no effect on GA4 properties.
-     * 
- */ - public com.google.protobuf.Empty deleteConnectedSiteTag(com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConnectedSiteTagMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the connected site tags for a Universal Analytics property. A maximum
-     * of 20 connected site tags will be returned. Note: this has no effect on GA4
-     * property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse listConnectedSiteTags(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConnectedSiteTagsMethod(), getCallOptions(), request); - } - - /** - *
-     * Given a specified UA property, looks up the GA4 property connected to it.
-     * Note: this cannot be used with GA4 properties.
-     * 
- */ - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse fetchConnectedGa4Property(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getFetchConnectedGa4PropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Looks up a single AdSenseLink.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AdSenseLink getAdSenseLink(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAdSenseLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an AdSenseLink.
-     * 
- */ - public com.google.analytics.admin.v1alpha.AdSenseLink createAdSenseLink(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAdSenseLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an AdSenseLink.
-     * 
- */ - public com.google.protobuf.Empty deleteAdSenseLink(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAdSenseLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists AdSenseLinks on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse listAdSenseLinks(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAdSenseLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single EventCreateRule.
-     * 
- */ - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEventCreateRuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists EventCreateRules on a web data stream.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse listEventCreateRules(com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEventCreateRulesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an EventCreateRule.
-     * 
- */ - public com.google.analytics.admin.v1alpha.EventCreateRule createEventCreateRule(com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEventCreateRuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an EventCreateRule.
-     * 
- */ - public com.google.analytics.admin.v1alpha.EventCreateRule updateEventCreateRule(com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEventCreateRuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes an EventCreateRule.
-     * 
- */ - public com.google.protobuf.Empty deleteEventCreateRule(com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEventCreateRuleMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a DataRedactionSettings on a property.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataRedactionSettings updateDataRedactionSettings(com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDataRedactionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single DataRedactionSettings.
-     * 
- */ - public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings(com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataRedactionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a roll-up property and all roll-up property source links.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse createRollupProperty(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRollupPropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single roll-up property source Link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink(com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRollupPropertySourceLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists roll-up property source Links on a property.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse listRollupPropertySourceLinks(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRollupPropertySourceLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink createRollupPropertySourceLink(com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRollupPropertySourceLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.protobuf.Empty deleteRollupPropertySourceLink(com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRollupPropertySourceLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Create a subproperty and a subproperty event filter that applies to the
-     * created subproperty.
-     * 
- */ - public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse createSubproperty(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSubpropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a subproperty event filter.
-     * 
- */ - public com.google.protobuf.Empty deleteSubpropertyEventFilter(com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteSubpropertyEventFilterMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a subproperty Event Filter.
-     * 
- */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter createSubpropertyEventFilter(com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateSubpropertyEventFilterMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AnalyticsAdminServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * AccessBindings) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, AccessBindings)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMeasurementProtocolSecrets( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture acknowledgeUserDataCollection( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Looks up a single SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSKAdNetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSKAdNetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes target SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSKAdNetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSKAdNetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSKAdNetworkConversionValueSchemaMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists SKAdNetworkConversionValueSchema on a stream.
-     * Properties can have at most one SKAdNetworkConversionValueSchema.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSKAdNetworkConversionValueSchemas( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSKAdNetworkConversionValueSchemasMethod(), getCallOptions()), request); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for Google Signals settings for a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates Google Signals settings for a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConversionEvent( - com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConversionEvent( - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConversionEvent( - com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConversionEvent( - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConversionEvents( - com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); - } - - /** - *
-     * Look up a single DisplayVideo360AdvertiserLink
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all DisplayVideo360AdvertiserLinks on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDisplayVideo360AdvertiserLinks( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLink.
-     * This can only be utilized by users who have proper authorization both on
-     * the Google Analytics property and on the Display & Video 360 advertiser.
-     * Users who do not have access to the Display & Video 360 advertiser should
-     * instead seek to create a DisplayVideo360LinkProposal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a DisplayVideo360AdvertiserLink on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDisplayVideo360AdvertiserLinkProposal( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDisplayVideo360AdvertiserLinkProposals( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a DisplayVideo360AdvertiserLinkProposal.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDisplayVideo360AdvertiserLinkProposal( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
-     * This can only be used on cancelled proposals.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDisplayVideo360AdvertiserLinkProposal( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request); - } - - /** - *
-     * Approves a DisplayVideo360AdvertiserLinkProposal.
-     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
-     * DisplayVideo360AdvertiserLink will be created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture approveDisplayVideo360AdvertiserLinkProposal( - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request); - } - - /** - *
-     * Cancels a DisplayVideo360AdvertiserLinkProposal.
-     * Cancelling can mean either:
-     * - Declining a proposal initiated from Display & Video 360
-     * - Withdrawing a proposal initiated from Google Analytics
-     * After being cancelled, a proposal will eventually be deleted automatically.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture cancelDisplayVideo360AdvertiserLinkProposal( - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomDimension( - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomDimension( - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomDimensions( - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture archiveCustomDimension( - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomDimension( - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomMetric( - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomMetric( - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomMetrics( - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture archiveCustomMetric( - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomMetric( - com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataRetentionSettings( - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataRetentionSettings( - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDataStream( - com.google.analytics.admin.v1alpha.CreateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDataStream( - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataStream( - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDataStreams( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataStream( - com.google.analytics.admin.v1alpha.GetDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single Audience.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAudience( - com.google.analytics.admin.v1alpha.GetAudienceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAudienceMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists Audiences on a property.
-     * Audiences created before 2020 may not be supported.
-     * Default audiences will not show filter definitions.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAudiences( - com.google.analytics.admin.v1alpha.ListAudiencesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAudiencesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an Audience.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAudience( - com.google.analytics.admin.v1alpha.CreateAudienceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAudienceMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an Audience on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAudience( - com.google.analytics.admin.v1alpha.UpdateAudienceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAudienceMethod(), getCallOptions()), request); - } - - /** - *
-     * Archives an Audience on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture archiveAudience( - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getArchiveAudienceMethod(), getCallOptions()), request); - } - - /** - *
-     * Look up a single SearchAds360Link
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getSearchAds360Link( - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetSearchAds360LinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all SearchAds360Links on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listSearchAds360Links( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListSearchAds360LinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a SearchAds360Link.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSearchAds360Link( - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSearchAds360LinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a SearchAds360Link on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSearchAds360Link( - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSearchAds360LinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a SearchAds360Link on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateSearchAds360Link( - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateSearchAds360LinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a AttributionSettings singleton.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAttributionSettings( - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAttributionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates attribution settings on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAttributionSettings( - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAttributionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture runAccessReport( - com.google.analytics.admin.v1alpha.RunAccessReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an access binding on an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAccessBinding( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAccessBindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets information about an access binding.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAccessBinding( - com.google.analytics.admin.v1alpha.GetAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccessBindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an access binding on an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAccessBinding( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAccessBindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an access binding on an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAccessBinding( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAccessBindingMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all access bindings on an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAccessBindings( - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccessBindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates information about multiple access bindings to an account or
-     * property.
-     * This method is transactional. If any AccessBinding cannot be created, none
-     * of the AccessBindings will be created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchCreateAccessBindings( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateAccessBindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets information about multiple access bindings to an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchGetAccessBindings( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetAccessBindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates information about multiple access bindings to an account or
-     * property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchUpdateAccessBindings( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchUpdateAccessBindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes information about multiple users' links to an account or property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture batchDeleteAccessBindings( - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchDeleteAccessBindingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single ExpandedDataSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getExpandedDataSet( - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetExpandedDataSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ExpandedDataSets on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listExpandedDataSets( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListExpandedDataSetsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a ExpandedDataSet.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createExpandedDataSet( - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateExpandedDataSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a ExpandedDataSet on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateExpandedDataSet( - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateExpandedDataSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a ExpandedDataSet on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteExpandedDataSet( - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteExpandedDataSetMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single ChannelGroup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getChannelGroup( - com.google.analytics.admin.v1alpha.GetChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetChannelGroupMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists ChannelGroups on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listChannelGroups( - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListChannelGroupsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a ChannelGroup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createChannelGroup( - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateChannelGroupMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a ChannelGroup.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateChannelGroup( - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateChannelGroupMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a ChannelGroup on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteChannelGroup( - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteChannelGroupMethod(), getCallOptions()), request); - } - - /** - *
-     * Sets the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture setAutomatedGa4ConfigurationOptOut( - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), request); - } - - /** - *
-     * Fetches the opt out status for the automated GA4 setup process for a UA
-     * property.
-     * Note: this has no effect on GA4 property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchAutomatedGa4ConfigurationOptOut( - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchAutomatedGa4ConfigurationOptOutMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single BigQuery Link.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getBigQueryLink( - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetBigQueryLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists BigQuery Links on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listBigQueryLinks( - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListBigQueryLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the enhanced measurement settings for this data stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a connected site tag for a Universal Analytics property. You can
-     * create a maximum of 20 connected site tags per property.
-     * Note: This API cannot be used on GA4 properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConnectedSiteTag( - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConnectedSiteTagMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a connected site tag for a Universal Analytics property.
-     * Note: this has no effect on GA4 properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConnectedSiteTag( - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConnectedSiteTagMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the connected site tags for a Universal Analytics property. A maximum
-     * of 20 connected site tags will be returned. Note: this has no effect on GA4
-     * property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConnectedSiteTags( - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConnectedSiteTagsMethod(), getCallOptions()), request); - } - - /** - *
-     * Given a specified UA property, looks up the GA4 property connected to it.
-     * Note: this cannot be used with GA4 properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture fetchConnectedGa4Property( - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getFetchConnectedGa4PropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Looks up a single AdSenseLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAdSenseLink( - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAdSenseLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an AdSenseLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createAdSenseLink( - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAdSenseLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an AdSenseLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAdSenseLink( - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAdSenseLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists AdSenseLinks on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAdSenseLinks( - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAdSenseLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single EventCreateRule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getEventCreateRule( - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEventCreateRuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists EventCreateRules on a web data stream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listEventCreateRules( - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEventCreateRulesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an EventCreateRule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createEventCreateRule( - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEventCreateRuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an EventCreateRule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateEventCreateRule( - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEventCreateRuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes an EventCreateRule.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteEventCreateRule( - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEventCreateRuleMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a DataRedactionSettings on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataRedactionSettings( - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDataRedactionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single DataRedactionSettings.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataRedactionSettings( - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataRedactionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a roll-up property and all roll-up property source links.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRollupProperty( - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRollupPropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single roll-up property source Link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getRollupPropertySourceLink( - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRollupPropertySourceLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists roll-up property source Links on a property.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listRollupPropertySourceLinks( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRollupPropertySourceLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createRollupPropertySourceLink( - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRollupPropertySourceLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a roll-up property source link.
-     * Only roll-up properties can have source links, so this method will throw an
-     * error if used on other types of properties.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteRollupPropertySourceLink( - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRollupPropertySourceLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Create a subproperty and a subproperty event filter that applies to the
-     * created subproperty.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSubproperty( - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSubpropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a subproperty event filter.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteSubpropertyEventFilterMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a subproperty Event Filter.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateSubpropertyEventFilterMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_ACCOUNT = 0; - private static final int METHODID_LIST_ACCOUNTS = 1; - private static final int METHODID_DELETE_ACCOUNT = 2; - private static final int METHODID_UPDATE_ACCOUNT = 3; - private static final int METHODID_PROVISION_ACCOUNT_TICKET = 4; - private static final int METHODID_LIST_ACCOUNT_SUMMARIES = 5; - private static final int METHODID_GET_PROPERTY = 6; - private static final int METHODID_LIST_PROPERTIES = 7; - private static final int METHODID_CREATE_PROPERTY = 8; - private static final int METHODID_DELETE_PROPERTY = 9; - private static final int METHODID_UPDATE_PROPERTY = 10; - private static final int METHODID_CREATE_FIREBASE_LINK = 11; - private static final int METHODID_DELETE_FIREBASE_LINK = 12; - private static final int METHODID_LIST_FIREBASE_LINKS = 13; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 14; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 15; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 16; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 17; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 18; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 19; - private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 20; - private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 21; - private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 22; - private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 23; - private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 24; - private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 25; - private static final int METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 26; - private static final int METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 27; - private static final int METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 28; - private static final int METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA = 29; - private static final int METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS = 30; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 31; - private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 32; - private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 33; - private static final int METHODID_CREATE_CONVERSION_EVENT = 34; - private static final int METHODID_UPDATE_CONVERSION_EVENT = 35; - private static final int METHODID_GET_CONVERSION_EVENT = 36; - private static final int METHODID_DELETE_CONVERSION_EVENT = 37; - private static final int METHODID_LIST_CONVERSION_EVENTS = 38; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 39; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 40; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 41; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 42; - private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 43; - private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 44; - private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 45; - private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 46; - private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 47; - private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 48; - private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 49; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 50; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 51; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 52; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 53; - private static final int METHODID_GET_CUSTOM_DIMENSION = 54; - private static final int METHODID_CREATE_CUSTOM_METRIC = 55; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 56; - private static final int METHODID_LIST_CUSTOM_METRICS = 57; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 58; - private static final int METHODID_GET_CUSTOM_METRIC = 59; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 60; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 61; - private static final int METHODID_CREATE_DATA_STREAM = 62; - private static final int METHODID_DELETE_DATA_STREAM = 63; - private static final int METHODID_UPDATE_DATA_STREAM = 64; - private static final int METHODID_LIST_DATA_STREAMS = 65; - private static final int METHODID_GET_DATA_STREAM = 66; - private static final int METHODID_GET_AUDIENCE = 67; - private static final int METHODID_LIST_AUDIENCES = 68; - private static final int METHODID_CREATE_AUDIENCE = 69; - private static final int METHODID_UPDATE_AUDIENCE = 70; - private static final int METHODID_ARCHIVE_AUDIENCE = 71; - private static final int METHODID_GET_SEARCH_ADS360LINK = 72; - private static final int METHODID_LIST_SEARCH_ADS360LINKS = 73; - private static final int METHODID_CREATE_SEARCH_ADS360LINK = 74; - private static final int METHODID_DELETE_SEARCH_ADS360LINK = 75; - private static final int METHODID_UPDATE_SEARCH_ADS360LINK = 76; - private static final int METHODID_GET_ATTRIBUTION_SETTINGS = 77; - private static final int METHODID_UPDATE_ATTRIBUTION_SETTINGS = 78; - private static final int METHODID_RUN_ACCESS_REPORT = 79; - private static final int METHODID_CREATE_ACCESS_BINDING = 80; - private static final int METHODID_GET_ACCESS_BINDING = 81; - private static final int METHODID_UPDATE_ACCESS_BINDING = 82; - private static final int METHODID_DELETE_ACCESS_BINDING = 83; - private static final int METHODID_LIST_ACCESS_BINDINGS = 84; - private static final int METHODID_BATCH_CREATE_ACCESS_BINDINGS = 85; - private static final int METHODID_BATCH_GET_ACCESS_BINDINGS = 86; - private static final int METHODID_BATCH_UPDATE_ACCESS_BINDINGS = 87; - private static final int METHODID_BATCH_DELETE_ACCESS_BINDINGS = 88; - private static final int METHODID_GET_EXPANDED_DATA_SET = 89; - private static final int METHODID_LIST_EXPANDED_DATA_SETS = 90; - private static final int METHODID_CREATE_EXPANDED_DATA_SET = 91; - private static final int METHODID_UPDATE_EXPANDED_DATA_SET = 92; - private static final int METHODID_DELETE_EXPANDED_DATA_SET = 93; - private static final int METHODID_GET_CHANNEL_GROUP = 94; - private static final int METHODID_LIST_CHANNEL_GROUPS = 95; - private static final int METHODID_CREATE_CHANNEL_GROUP = 96; - private static final int METHODID_UPDATE_CHANNEL_GROUP = 97; - private static final int METHODID_DELETE_CHANNEL_GROUP = 98; - private static final int METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 99; - private static final int METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT = 100; - private static final int METHODID_GET_BIG_QUERY_LINK = 101; - private static final int METHODID_LIST_BIG_QUERY_LINKS = 102; - private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 103; - private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 104; - private static final int METHODID_CREATE_CONNECTED_SITE_TAG = 105; - private static final int METHODID_DELETE_CONNECTED_SITE_TAG = 106; - private static final int METHODID_LIST_CONNECTED_SITE_TAGS = 107; - private static final int METHODID_FETCH_CONNECTED_GA4PROPERTY = 108; - private static final int METHODID_GET_AD_SENSE_LINK = 109; - private static final int METHODID_CREATE_AD_SENSE_LINK = 110; - private static final int METHODID_DELETE_AD_SENSE_LINK = 111; - private static final int METHODID_LIST_AD_SENSE_LINKS = 112; - private static final int METHODID_GET_EVENT_CREATE_RULE = 113; - private static final int METHODID_LIST_EVENT_CREATE_RULES = 114; - private static final int METHODID_CREATE_EVENT_CREATE_RULE = 115; - private static final int METHODID_UPDATE_EVENT_CREATE_RULE = 116; - private static final int METHODID_DELETE_EVENT_CREATE_RULE = 117; - private static final int METHODID_UPDATE_DATA_REDACTION_SETTINGS = 118; - private static final int METHODID_GET_DATA_REDACTION_SETTINGS = 119; - private static final int METHODID_CREATE_ROLLUP_PROPERTY = 120; - private static final int METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK = 121; - private static final int METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS = 122; - private static final int METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK = 123; - private static final int METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK = 124; - private static final int METHODID_CREATE_SUBPROPERTY = 125; - private static final int METHODID_DELETE_SUBPROPERTY_EVENT_FILTER = 126; - private static final int METHODID_CREATE_SUBPROPERTY_EVENT_FILTER = 127; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_ACCOUNT: - serviceImpl.getAccount((com.google.analytics.admin.v1alpha.GetAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCOUNTS: - serviceImpl.listAccounts((com.google.analytics.admin.v1alpha.ListAccountsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ACCOUNT: - serviceImpl.deleteAccount((com.google.analytics.admin.v1alpha.DeleteAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ACCOUNT: - serviceImpl.updateAccount((com.google.analytics.admin.v1alpha.UpdateAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROVISION_ACCOUNT_TICKET: - serviceImpl.provisionAccountTicket((com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCOUNT_SUMMARIES: - serviceImpl.listAccountSummaries((com.google.analytics.admin.v1alpha.ListAccountSummariesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PROPERTY: - serviceImpl.getProperty((com.google.analytics.admin.v1alpha.GetPropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PROPERTIES: - serviceImpl.listProperties((com.google.analytics.admin.v1alpha.ListPropertiesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PROPERTY: - serviceImpl.createProperty((com.google.analytics.admin.v1alpha.CreatePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PROPERTY: - serviceImpl.deleteProperty((com.google.analytics.admin.v1alpha.DeletePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PROPERTY: - serviceImpl.updateProperty((com.google.analytics.admin.v1alpha.UpdatePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FIREBASE_LINK: - serviceImpl.createFirebaseLink((com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FIREBASE_LINK: - serviceImpl.deleteFirebaseLink((com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FIREBASE_LINKS: - serviceImpl.listFirebaseLinks((com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GLOBAL_SITE_TAG: - serviceImpl.getGlobalSiteTag((com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GOOGLE_ADS_LINK: - serviceImpl.createGoogleAdsLink((com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_GOOGLE_ADS_LINK: - serviceImpl.updateGoogleAdsLink((com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GOOGLE_ADS_LINK: - serviceImpl.deleteGoogleAdsLink((com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GOOGLE_ADS_LINKS: - serviceImpl.listGoogleAdsLinks((com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_SHARING_SETTINGS: - serviceImpl.getDataSharingSettings((com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.getMeasurementProtocolSecret((com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS: - serviceImpl.listMeasurementProtocolSecrets((com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.createMeasurementProtocolSecret((com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.deleteMeasurementProtocolSecret((com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.updateMeasurementProtocolSecret((com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION: - serviceImpl.acknowledgeUserDataCollection((com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: - serviceImpl.getSKAdNetworkConversionValueSchema((com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: - serviceImpl.createSKAdNetworkConversionValueSchema((com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: - serviceImpl.deleteSKAdNetworkConversionValueSchema((com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA: - serviceImpl.updateSKAdNetworkConversionValueSchema((com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS: - serviceImpl.listSKAdNetworkConversionValueSchemas((com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: - serviceImpl.searchChangeHistoryEvents((com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_GOOGLE_SIGNALS_SETTINGS: - serviceImpl.getGoogleSignalsSettings((com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS: - serviceImpl.updateGoogleSignalsSettings((com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CONVERSION_EVENT: - serviceImpl.createConversionEvent((com.google.analytics.admin.v1alpha.CreateConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONVERSION_EVENT: - serviceImpl.updateConversionEvent((com.google.analytics.admin.v1alpha.UpdateConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONVERSION_EVENT: - serviceImpl.getConversionEvent((com.google.analytics.admin.v1alpha.GetConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONVERSION_EVENT: - serviceImpl.deleteConversionEvent((com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONVERSION_EVENTS: - serviceImpl.listConversionEvents((com.google.analytics.admin.v1alpha.ListConversionEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK: - serviceImpl.getDisplayVideo360AdvertiserLink((com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS: - serviceImpl.listDisplayVideo360AdvertiserLinks((com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK: - serviceImpl.createDisplayVideo360AdvertiserLink((com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK: - serviceImpl.deleteDisplayVideo360AdvertiserLink((com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK: - serviceImpl.updateDisplayVideo360AdvertiserLink((com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: - serviceImpl.getDisplayVideo360AdvertiserLinkProposal((com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS: - serviceImpl.listDisplayVideo360AdvertiserLinkProposals((com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: - serviceImpl.createDisplayVideo360AdvertiserLinkProposal((com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: - serviceImpl.deleteDisplayVideo360AdvertiserLinkProposal((com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: - serviceImpl.approveDisplayVideo360AdvertiserLinkProposal((com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: - serviceImpl.cancelDisplayVideo360AdvertiserLinkProposal((com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_DIMENSION: - serviceImpl.createCustomDimension((com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_DIMENSION: - serviceImpl.updateCustomDimension((com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_DIMENSIONS: - serviceImpl.listCustomDimensions((com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ARCHIVE_CUSTOM_DIMENSION: - serviceImpl.archiveCustomDimension((com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_DIMENSION: - serviceImpl.getCustomDimension((com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_METRIC: - serviceImpl.createCustomMetric((com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_METRIC: - serviceImpl.updateCustomMetric((com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_METRICS: - serviceImpl.listCustomMetrics((com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ARCHIVE_CUSTOM_METRIC: - serviceImpl.archiveCustomMetric((com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_METRIC: - serviceImpl.getCustomMetric((com.google.analytics.admin.v1alpha.GetCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_RETENTION_SETTINGS: - serviceImpl.getDataRetentionSettings((com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DATA_RETENTION_SETTINGS: - serviceImpl.updateDataRetentionSettings((com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_DATA_STREAM: - serviceImpl.createDataStream((com.google.analytics.admin.v1alpha.CreateDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DATA_STREAM: - serviceImpl.deleteDataStream((com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DATA_STREAM: - serviceImpl.updateDataStream((com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATA_STREAMS: - serviceImpl.listDataStreams((com.google.analytics.admin.v1alpha.ListDataStreamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_STREAM: - serviceImpl.getDataStream((com.google.analytics.admin.v1alpha.GetDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_AUDIENCE: - serviceImpl.getAudience((com.google.analytics.admin.v1alpha.GetAudienceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_AUDIENCES: - serviceImpl.listAudiences((com.google.analytics.admin.v1alpha.ListAudiencesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_AUDIENCE: - serviceImpl.createAudience((com.google.analytics.admin.v1alpha.CreateAudienceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_AUDIENCE: - serviceImpl.updateAudience((com.google.analytics.admin.v1alpha.UpdateAudienceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ARCHIVE_AUDIENCE: - serviceImpl.archiveAudience((com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SEARCH_ADS360LINK: - serviceImpl.getSearchAds360Link((com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SEARCH_ADS360LINKS: - serviceImpl.listSearchAds360Links((com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SEARCH_ADS360LINK: - serviceImpl.createSearchAds360Link((com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SEARCH_ADS360LINK: - serviceImpl.deleteSearchAds360Link((com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SEARCH_ADS360LINK: - serviceImpl.updateSearchAds360Link((com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ATTRIBUTION_SETTINGS: - serviceImpl.getAttributionSettings((com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ATTRIBUTION_SETTINGS: - serviceImpl.updateAttributionSettings((com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_ACCESS_REPORT: - serviceImpl.runAccessReport((com.google.analytics.admin.v1alpha.RunAccessReportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ACCESS_BINDING: - serviceImpl.createAccessBinding((com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ACCESS_BINDING: - serviceImpl.getAccessBinding((com.google.analytics.admin.v1alpha.GetAccessBindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ACCESS_BINDING: - serviceImpl.updateAccessBinding((com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ACCESS_BINDING: - serviceImpl.deleteAccessBinding((com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCESS_BINDINGS: - serviceImpl.listAccessBindings((com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_CREATE_ACCESS_BINDINGS: - serviceImpl.batchCreateAccessBindings((com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_GET_ACCESS_BINDINGS: - serviceImpl.batchGetAccessBindings((com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_UPDATE_ACCESS_BINDINGS: - serviceImpl.batchUpdateAccessBindings((com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_BATCH_DELETE_ACCESS_BINDINGS: - serviceImpl.batchDeleteAccessBindings((com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EXPANDED_DATA_SET: - serviceImpl.getExpandedDataSet((com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EXPANDED_DATA_SETS: - serviceImpl.listExpandedDataSets((com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EXPANDED_DATA_SET: - serviceImpl.createExpandedDataSet((com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_EXPANDED_DATA_SET: - serviceImpl.updateExpandedDataSet((com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EXPANDED_DATA_SET: - serviceImpl.deleteExpandedDataSet((com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CHANNEL_GROUP: - serviceImpl.getChannelGroup((com.google.analytics.admin.v1alpha.GetChannelGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CHANNEL_GROUPS: - serviceImpl.listChannelGroups((com.google.analytics.admin.v1alpha.ListChannelGroupsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CHANNEL_GROUP: - serviceImpl.createChannelGroup((com.google.analytics.admin.v1alpha.CreateChannelGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CHANNEL_GROUP: - serviceImpl.updateChannelGroup((com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CHANNEL_GROUP: - serviceImpl.deleteChannelGroup((com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT: - serviceImpl.setAutomatedGa4ConfigurationOptOut((com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT: - serviceImpl.fetchAutomatedGa4ConfigurationOptOut((com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_BIG_QUERY_LINK: - serviceImpl.getBigQueryLink((com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_BIG_QUERY_LINKS: - serviceImpl.listBigQueryLinks((com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS: - serviceImpl.getEnhancedMeasurementSettings((com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS: - serviceImpl.updateEnhancedMeasurementSettings((com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CONNECTED_SITE_TAG: - serviceImpl.createConnectedSiteTag((com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONNECTED_SITE_TAG: - serviceImpl.deleteConnectedSiteTag((com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONNECTED_SITE_TAGS: - serviceImpl.listConnectedSiteTags((com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_FETCH_CONNECTED_GA4PROPERTY: - serviceImpl.fetchConnectedGa4Property((com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_AD_SENSE_LINK: - serviceImpl.getAdSenseLink((com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_AD_SENSE_LINK: - serviceImpl.createAdSenseLink((com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_AD_SENSE_LINK: - serviceImpl.deleteAdSenseLink((com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_AD_SENSE_LINKS: - serviceImpl.listAdSenseLinks((com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_EVENT_CREATE_RULE: - serviceImpl.getEventCreateRule((com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_EVENT_CREATE_RULES: - serviceImpl.listEventCreateRules((com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_EVENT_CREATE_RULE: - serviceImpl.createEventCreateRule((com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_EVENT_CREATE_RULE: - serviceImpl.updateEventCreateRule((com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_EVENT_CREATE_RULE: - serviceImpl.deleteEventCreateRule((com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DATA_REDACTION_SETTINGS: - serviceImpl.updateDataRedactionSettings((com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_REDACTION_SETTINGS: - serviceImpl.getDataRedactionSettings((com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ROLLUP_PROPERTY: - serviceImpl.createRollupProperty((com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK: - serviceImpl.getRollupPropertySourceLink((com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS: - serviceImpl.listRollupPropertySourceLinks((com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK: - serviceImpl.createRollupPropertySourceLink((com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK: - serviceImpl.deleteRollupPropertySourceLink((com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SUBPROPERTY: - serviceImpl.createSubproperty((com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SUBPROPERTY_EVENT_FILTER: - serviceImpl.deleteSubpropertyEventFilter((com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SUBPROPERTY_EVENT_FILTER: - serviceImpl.createSubpropertyEventFilter((com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAccountRequest, - com.google.analytics.admin.v1alpha.Account>( - service, METHODID_GET_ACCOUNT))) - .addMethod( - getListAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccountsRequest, - com.google.analytics.admin.v1alpha.ListAccountsResponse>( - service, METHODID_LIST_ACCOUNTS))) - .addMethod( - getDeleteAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteAccountRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_ACCOUNT))) - .addMethod( - getUpdateAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAccountRequest, - com.google.analytics.admin.v1alpha.Account>( - service, METHODID_UPDATE_ACCOUNT))) - .addMethod( - getProvisionAccountTicketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( - service, METHODID_PROVISION_ACCOUNT_TICKET))) - .addMethod( - getListAccountSummariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>( - service, METHODID_LIST_ACCOUNT_SUMMARIES))) - .addMethod( - getGetPropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetPropertyRequest, - com.google.analytics.admin.v1alpha.Property>( - service, METHODID_GET_PROPERTY))) - .addMethod( - getListPropertiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListPropertiesRequest, - com.google.analytics.admin.v1alpha.ListPropertiesResponse>( - service, METHODID_LIST_PROPERTIES))) - .addMethod( - getCreatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>( - service, METHODID_CREATE_PROPERTY))) - .addMethod( - getDeletePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, - com.google.analytics.admin.v1alpha.Property>( - service, METHODID_DELETE_PROPERTY))) - .addMethod( - getUpdatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>( - service, METHODID_UPDATE_PROPERTY))) - .addMethod( - getCreateFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, - com.google.analytics.admin.v1alpha.FirebaseLink>( - service, METHODID_CREATE_FIREBASE_LINK))) - .addMethod( - getDeleteFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_FIREBASE_LINK))) - .addMethod( - getListFirebaseLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse>( - service, METHODID_LIST_FIREBASE_LINKS))) - .addMethod( - getGetGlobalSiteTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, - com.google.analytics.admin.v1alpha.GlobalSiteTag>( - service, METHODID_GET_GLOBAL_SITE_TAG))) - .addMethod( - getCreateGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, - com.google.analytics.admin.v1alpha.GoogleAdsLink>( - service, METHODID_CREATE_GOOGLE_ADS_LINK))) - .addMethod( - getUpdateGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, - com.google.analytics.admin.v1alpha.GoogleAdsLink>( - service, METHODID_UPDATE_GOOGLE_ADS_LINK))) - .addMethod( - getDeleteGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_GOOGLE_ADS_LINK))) - .addMethod( - getListGoogleAdsLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse>( - service, METHODID_LIST_GOOGLE_ADS_LINKS))) - .addMethod( - getGetDataSharingSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, - com.google.analytics.admin.v1alpha.DataSharingSettings>( - service, METHODID_GET_DATA_SHARING_SETTINGS))) - .addMethod( - getGetMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( - service, METHODID_GET_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getListMeasurementProtocolSecretsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse>( - service, METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS))) - .addMethod( - getCreateMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( - service, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getDeleteMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getUpdateMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( - service, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getAcknowledgeUserDataCollectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest, - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse>( - service, METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION))) - .addMethod( - getGetSKAdNetworkConversionValueSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest, - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>( - service, METHODID_GET_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) - .addMethod( - getCreateSKAdNetworkConversionValueSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest, - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>( - service, METHODID_CREATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) - .addMethod( - getDeleteSKAdNetworkConversionValueSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) - .addMethod( - getUpdateSKAdNetworkConversionValueSchemaMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest, - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema>( - service, METHODID_UPDATE_SKAD_NETWORK_CONVERSION_VALUE_SCHEMA))) - .addMethod( - getListSKAdNetworkConversionValueSchemasMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest, - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse>( - service, METHODID_LIST_SKAD_NETWORK_CONVERSION_VALUE_SCHEMAS))) - .addMethod( - getSearchChangeHistoryEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( - service, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) - .addMethod( - getGetGoogleSignalsSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, - com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( - service, METHODID_GET_GOOGLE_SIGNALS_SETTINGS))) - .addMethod( - getUpdateGoogleSignalsSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, - com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( - service, METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS))) - .addMethod( - getCreateConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateConversionEventRequest, - com.google.analytics.admin.v1alpha.ConversionEvent>( - service, METHODID_CREATE_CONVERSION_EVENT))) - .addMethod( - getUpdateConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest, - com.google.analytics.admin.v1alpha.ConversionEvent>( - service, METHODID_UPDATE_CONVERSION_EVENT))) - .addMethod( - getGetConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetConversionEventRequest, - com.google.analytics.admin.v1alpha.ConversionEvent>( - service, METHODID_GET_CONVERSION_EVENT))) - .addMethod( - getDeleteConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_CONVERSION_EVENT))) - .addMethod( - getListConversionEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListConversionEventsRequest, - com.google.analytics.admin.v1alpha.ListConversionEventsResponse>( - service, METHODID_LIST_CONVERSION_EVENTS))) - .addMethod( - getGetDisplayVideo360AdvertiserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( - service, METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK))) - .addMethod( - getListDisplayVideo360AdvertiserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse>( - service, METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS))) - .addMethod( - getCreateDisplayVideo360AdvertiserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( - service, METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK))) - .addMethod( - getDeleteDisplayVideo360AdvertiserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK))) - .addMethod( - getUpdateDisplayVideo360AdvertiserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( - service, METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK))) - .addMethod( - getGetDisplayVideo360AdvertiserLinkProposalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( - service, METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) - .addMethod( - getListDisplayVideo360AdvertiserLinkProposalsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse>( - service, METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS))) - .addMethod( - getCreateDisplayVideo360AdvertiserLinkProposalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( - service, METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) - .addMethod( - getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) - .addMethod( - getApproveDisplayVideo360AdvertiserLinkProposalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse>( - service, METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) - .addMethod( - getCancelDisplayVideo360AdvertiserLinkProposalMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( - service, METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) - .addMethod( - getCreateCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension>( - service, METHODID_CREATE_CUSTOM_DIMENSION))) - .addMethod( - getUpdateCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension>( - service, METHODID_UPDATE_CUSTOM_DIMENSION))) - .addMethod( - getListCustomDimensionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse>( - service, METHODID_LIST_CUSTOM_DIMENSIONS))) - .addMethod( - getArchiveCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, - com.google.protobuf.Empty>( - service, METHODID_ARCHIVE_CUSTOM_DIMENSION))) - .addMethod( - getGetCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension>( - service, METHODID_GET_CUSTOM_DIMENSION))) - .addMethod( - getCreateCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric>( - service, METHODID_CREATE_CUSTOM_METRIC))) - .addMethod( - getUpdateCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric>( - service, METHODID_UPDATE_CUSTOM_METRIC))) - .addMethod( - getListCustomMetricsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>( - service, METHODID_LIST_CUSTOM_METRICS))) - .addMethod( - getArchiveCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, - com.google.protobuf.Empty>( - service, METHODID_ARCHIVE_CUSTOM_METRIC))) - .addMethod( - getGetCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric>( - service, METHODID_GET_CUSTOM_METRIC))) - .addMethod( - getGetDataRetentionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, - com.google.analytics.admin.v1alpha.DataRetentionSettings>( - service, METHODID_GET_DATA_RETENTION_SETTINGS))) - .addMethod( - getUpdateDataRetentionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, - com.google.analytics.admin.v1alpha.DataRetentionSettings>( - service, METHODID_UPDATE_DATA_RETENTION_SETTINGS))) - .addMethod( - getCreateDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateDataStreamRequest, - com.google.analytics.admin.v1alpha.DataStream>( - service, METHODID_CREATE_DATA_STREAM))) - .addMethod( - getDeleteDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_DATA_STREAM))) - .addMethod( - getUpdateDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest, - com.google.analytics.admin.v1alpha.DataStream>( - service, METHODID_UPDATE_DATA_STREAM))) - .addMethod( - getListDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListDataStreamsResponse>( - service, METHODID_LIST_DATA_STREAMS))) - .addMethod( - getGetDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetDataStreamRequest, - com.google.analytics.admin.v1alpha.DataStream>( - service, METHODID_GET_DATA_STREAM))) - .addMethod( - getGetAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAudienceRequest, - com.google.analytics.admin.v1alpha.Audience>( - service, METHODID_GET_AUDIENCE))) - .addMethod( - getListAudiencesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAudiencesRequest, - com.google.analytics.admin.v1alpha.ListAudiencesResponse>( - service, METHODID_LIST_AUDIENCES))) - .addMethod( - getCreateAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateAudienceRequest, - com.google.analytics.admin.v1alpha.Audience>( - service, METHODID_CREATE_AUDIENCE))) - .addMethod( - getUpdateAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAudienceRequest, - com.google.analytics.admin.v1alpha.Audience>( - service, METHODID_UPDATE_AUDIENCE))) - .addMethod( - getArchiveAudienceMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest, - com.google.protobuf.Empty>( - service, METHODID_ARCHIVE_AUDIENCE))) - .addMethod( - getGetSearchAds360LinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest, - com.google.analytics.admin.v1alpha.SearchAds360Link>( - service, METHODID_GET_SEARCH_ADS360LINK))) - .addMethod( - getListSearchAds360LinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest, - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse>( - service, METHODID_LIST_SEARCH_ADS360LINKS))) - .addMethod( - getCreateSearchAds360LinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest, - com.google.analytics.admin.v1alpha.SearchAds360Link>( - service, METHODID_CREATE_SEARCH_ADS360LINK))) - .addMethod( - getDeleteSearchAds360LinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SEARCH_ADS360LINK))) - .addMethod( - getUpdateSearchAds360LinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest, - com.google.analytics.admin.v1alpha.SearchAds360Link>( - service, METHODID_UPDATE_SEARCH_ADS360LINK))) - .addMethod( - getGetAttributionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest, - com.google.analytics.admin.v1alpha.AttributionSettings>( - service, METHODID_GET_ATTRIBUTION_SETTINGS))) - .addMethod( - getUpdateAttributionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest, - com.google.analytics.admin.v1alpha.AttributionSettings>( - service, METHODID_UPDATE_ATTRIBUTION_SETTINGS))) - .addMethod( - getRunAccessReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.RunAccessReportRequest, - com.google.analytics.admin.v1alpha.RunAccessReportResponse>( - service, METHODID_RUN_ACCESS_REPORT))) - .addMethod( - getCreateAccessBindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, - com.google.analytics.admin.v1alpha.AccessBinding>( - service, METHODID_CREATE_ACCESS_BINDING))) - .addMethod( - getGetAccessBindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAccessBindingRequest, - com.google.analytics.admin.v1alpha.AccessBinding>( - service, METHODID_GET_ACCESS_BINDING))) - .addMethod( - getUpdateAccessBindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, - com.google.analytics.admin.v1alpha.AccessBinding>( - service, METHODID_UPDATE_ACCESS_BINDING))) - .addMethod( - getDeleteAccessBindingMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_ACCESS_BINDING))) - .addMethod( - getListAccessBindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest, - com.google.analytics.admin.v1alpha.ListAccessBindingsResponse>( - service, METHODID_LIST_ACCESS_BINDINGS))) - .addMethod( - getBatchCreateAccessBindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest, - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse>( - service, METHODID_BATCH_CREATE_ACCESS_BINDINGS))) - .addMethod( - getBatchGetAccessBindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest, - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse>( - service, METHODID_BATCH_GET_ACCESS_BINDINGS))) - .addMethod( - getBatchUpdateAccessBindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest, - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse>( - service, METHODID_BATCH_UPDATE_ACCESS_BINDINGS))) - .addMethod( - getBatchDeleteAccessBindingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest, - com.google.protobuf.Empty>( - service, METHODID_BATCH_DELETE_ACCESS_BINDINGS))) - .addMethod( - getGetExpandedDataSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest, - com.google.analytics.admin.v1alpha.ExpandedDataSet>( - service, METHODID_GET_EXPANDED_DATA_SET))) - .addMethod( - getListExpandedDataSetsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest, - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse>( - service, METHODID_LIST_EXPANDED_DATA_SETS))) - .addMethod( - getCreateExpandedDataSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest, - com.google.analytics.admin.v1alpha.ExpandedDataSet>( - service, METHODID_CREATE_EXPANDED_DATA_SET))) - .addMethod( - getUpdateExpandedDataSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest, - com.google.analytics.admin.v1alpha.ExpandedDataSet>( - service, METHODID_UPDATE_EXPANDED_DATA_SET))) - .addMethod( - getDeleteExpandedDataSetMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_EXPANDED_DATA_SET))) - .addMethod( - getGetChannelGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetChannelGroupRequest, - com.google.analytics.admin.v1alpha.ChannelGroup>( - service, METHODID_GET_CHANNEL_GROUP))) - .addMethod( - getListChannelGroupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest, - com.google.analytics.admin.v1alpha.ListChannelGroupsResponse>( - service, METHODID_LIST_CHANNEL_GROUPS))) - .addMethod( - getCreateChannelGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest, - com.google.analytics.admin.v1alpha.ChannelGroup>( - service, METHODID_CREATE_CHANNEL_GROUP))) - .addMethod( - getUpdateChannelGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest, - com.google.analytics.admin.v1alpha.ChannelGroup>( - service, METHODID_UPDATE_CHANNEL_GROUP))) - .addMethod( - getDeleteChannelGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_CHANNEL_GROUP))) - .addMethod( - getSetAutomatedGa4ConfigurationOptOutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest, - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse>( - service, METHODID_SET_AUTOMATED_GA4CONFIGURATION_OPT_OUT))) - .addMethod( - getFetchAutomatedGa4ConfigurationOptOutMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest, - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse>( - service, METHODID_FETCH_AUTOMATED_GA4CONFIGURATION_OPT_OUT))) - .addMethod( - getGetBigQueryLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest, - com.google.analytics.admin.v1alpha.BigQueryLink>( - service, METHODID_GET_BIG_QUERY_LINK))) - .addMethod( - getListBigQueryLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest, - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse>( - service, METHODID_LIST_BIG_QUERY_LINKS))) - .addMethod( - getGetEnhancedMeasurementSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( - service, METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS))) - .addMethod( - getUpdateEnhancedMeasurementSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( - service, METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS))) - .addMethod( - getCreateConnectedSiteTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest, - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse>( - service, METHODID_CREATE_CONNECTED_SITE_TAG))) - .addMethod( - getDeleteConnectedSiteTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_CONNECTED_SITE_TAG))) - .addMethod( - getListConnectedSiteTagsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest, - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse>( - service, METHODID_LIST_CONNECTED_SITE_TAGS))) - .addMethod( - getFetchConnectedGa4PropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest, - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse>( - service, METHODID_FETCH_CONNECTED_GA4PROPERTY))) - .addMethod( - getGetAdSenseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest, - com.google.analytics.admin.v1alpha.AdSenseLink>( - service, METHODID_GET_AD_SENSE_LINK))) - .addMethod( - getCreateAdSenseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest, - com.google.analytics.admin.v1alpha.AdSenseLink>( - service, METHODID_CREATE_AD_SENSE_LINK))) - .addMethod( - getDeleteAdSenseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_AD_SENSE_LINK))) - .addMethod( - getListAdSenseLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest, - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse>( - service, METHODID_LIST_AD_SENSE_LINKS))) - .addMethod( - getGetEventCreateRuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest, - com.google.analytics.admin.v1alpha.EventCreateRule>( - service, METHODID_GET_EVENT_CREATE_RULE))) - .addMethod( - getListEventCreateRulesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest, - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse>( - service, METHODID_LIST_EVENT_CREATE_RULES))) - .addMethod( - getCreateEventCreateRuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest, - com.google.analytics.admin.v1alpha.EventCreateRule>( - service, METHODID_CREATE_EVENT_CREATE_RULE))) - .addMethod( - getUpdateEventCreateRuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest, - com.google.analytics.admin.v1alpha.EventCreateRule>( - service, METHODID_UPDATE_EVENT_CREATE_RULE))) - .addMethod( - getDeleteEventCreateRuleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_EVENT_CREATE_RULE))) - .addMethod( - getUpdateDataRedactionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest, - com.google.analytics.admin.v1alpha.DataRedactionSettings>( - service, METHODID_UPDATE_DATA_REDACTION_SETTINGS))) - .addMethod( - getGetDataRedactionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest, - com.google.analytics.admin.v1alpha.DataRedactionSettings>( - service, METHODID_GET_DATA_REDACTION_SETTINGS))) - .addMethod( - getCreateRollupPropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest, - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse>( - service, METHODID_CREATE_ROLLUP_PROPERTY))) - .addMethod( - getGetRollupPropertySourceLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest, - com.google.analytics.admin.v1alpha.RollupPropertySourceLink>( - service, METHODID_GET_ROLLUP_PROPERTY_SOURCE_LINK))) - .addMethod( - getListRollupPropertySourceLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest, - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse>( - service, METHODID_LIST_ROLLUP_PROPERTY_SOURCE_LINKS))) - .addMethod( - getCreateRollupPropertySourceLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest, - com.google.analytics.admin.v1alpha.RollupPropertySourceLink>( - service, METHODID_CREATE_ROLLUP_PROPERTY_SOURCE_LINK))) - .addMethod( - getDeleteRollupPropertySourceLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_ROLLUP_PROPERTY_SOURCE_LINK))) - .addMethod( - getCreateSubpropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest, - com.google.analytics.admin.v1alpha.CreateSubpropertyResponse>( - service, METHODID_CREATE_SUBPROPERTY))) - .addMethod( - getDeleteSubpropertyEventFilterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_SUBPROPERTY_EVENT_FILTER))) - .addMethod( - getCreateSubpropertyEventFilterMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest, - com.google.analytics.admin.v1alpha.SubpropertyEventFilter>( - service, METHODID_CREATE_SUBPROPERTY_EVENT_FILTER))) - .build(); - } - - private static abstract class AnalyticsAdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AnalyticsAdminServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AnalyticsAdminService"); - } - } - - private static final class AnalyticsAdminServiceFileDescriptorSupplier - extends AnalyticsAdminServiceBaseDescriptorSupplier { - AnalyticsAdminServiceFileDescriptorSupplier() {} - } - - private static final class AnalyticsAdminServiceMethodDescriptorSupplier - extends AnalyticsAdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - AnalyticsAdminServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AnalyticsAdminServiceFileDescriptorSupplier()) - .addMethod(getGetAccountMethod()) - .addMethod(getListAccountsMethod()) - .addMethod(getDeleteAccountMethod()) - .addMethod(getUpdateAccountMethod()) - .addMethod(getProvisionAccountTicketMethod()) - .addMethod(getListAccountSummariesMethod()) - .addMethod(getGetPropertyMethod()) - .addMethod(getListPropertiesMethod()) - .addMethod(getCreatePropertyMethod()) - .addMethod(getDeletePropertyMethod()) - .addMethod(getUpdatePropertyMethod()) - .addMethod(getCreateFirebaseLinkMethod()) - .addMethod(getDeleteFirebaseLinkMethod()) - .addMethod(getListFirebaseLinksMethod()) - .addMethod(getGetGlobalSiteTagMethod()) - .addMethod(getCreateGoogleAdsLinkMethod()) - .addMethod(getUpdateGoogleAdsLinkMethod()) - .addMethod(getDeleteGoogleAdsLinkMethod()) - .addMethod(getListGoogleAdsLinksMethod()) - .addMethod(getGetDataSharingSettingsMethod()) - .addMethod(getGetMeasurementProtocolSecretMethod()) - .addMethod(getListMeasurementProtocolSecretsMethod()) - .addMethod(getCreateMeasurementProtocolSecretMethod()) - .addMethod(getDeleteMeasurementProtocolSecretMethod()) - .addMethod(getUpdateMeasurementProtocolSecretMethod()) - .addMethod(getAcknowledgeUserDataCollectionMethod()) - .addMethod(getGetSKAdNetworkConversionValueSchemaMethod()) - .addMethod(getCreateSKAdNetworkConversionValueSchemaMethod()) - .addMethod(getDeleteSKAdNetworkConversionValueSchemaMethod()) - .addMethod(getUpdateSKAdNetworkConversionValueSchemaMethod()) - .addMethod(getListSKAdNetworkConversionValueSchemasMethod()) - .addMethod(getSearchChangeHistoryEventsMethod()) - .addMethod(getGetGoogleSignalsSettingsMethod()) - .addMethod(getUpdateGoogleSignalsSettingsMethod()) - .addMethod(getCreateConversionEventMethod()) - .addMethod(getUpdateConversionEventMethod()) - .addMethod(getGetConversionEventMethod()) - .addMethod(getDeleteConversionEventMethod()) - .addMethod(getListConversionEventsMethod()) - .addMethod(getGetDisplayVideo360AdvertiserLinkMethod()) - .addMethod(getListDisplayVideo360AdvertiserLinksMethod()) - .addMethod(getCreateDisplayVideo360AdvertiserLinkMethod()) - .addMethod(getDeleteDisplayVideo360AdvertiserLinkMethod()) - .addMethod(getUpdateDisplayVideo360AdvertiserLinkMethod()) - .addMethod(getGetDisplayVideo360AdvertiserLinkProposalMethod()) - .addMethod(getListDisplayVideo360AdvertiserLinkProposalsMethod()) - .addMethod(getCreateDisplayVideo360AdvertiserLinkProposalMethod()) - .addMethod(getDeleteDisplayVideo360AdvertiserLinkProposalMethod()) - .addMethod(getApproveDisplayVideo360AdvertiserLinkProposalMethod()) - .addMethod(getCancelDisplayVideo360AdvertiserLinkProposalMethod()) - .addMethod(getCreateCustomDimensionMethod()) - .addMethod(getUpdateCustomDimensionMethod()) - .addMethod(getListCustomDimensionsMethod()) - .addMethod(getArchiveCustomDimensionMethod()) - .addMethod(getGetCustomDimensionMethod()) - .addMethod(getCreateCustomMetricMethod()) - .addMethod(getUpdateCustomMetricMethod()) - .addMethod(getListCustomMetricsMethod()) - .addMethod(getArchiveCustomMetricMethod()) - .addMethod(getGetCustomMetricMethod()) - .addMethod(getGetDataRetentionSettingsMethod()) - .addMethod(getUpdateDataRetentionSettingsMethod()) - .addMethod(getCreateDataStreamMethod()) - .addMethod(getDeleteDataStreamMethod()) - .addMethod(getUpdateDataStreamMethod()) - .addMethod(getListDataStreamsMethod()) - .addMethod(getGetDataStreamMethod()) - .addMethod(getGetAudienceMethod()) - .addMethod(getListAudiencesMethod()) - .addMethod(getCreateAudienceMethod()) - .addMethod(getUpdateAudienceMethod()) - .addMethod(getArchiveAudienceMethod()) - .addMethod(getGetSearchAds360LinkMethod()) - .addMethod(getListSearchAds360LinksMethod()) - .addMethod(getCreateSearchAds360LinkMethod()) - .addMethod(getDeleteSearchAds360LinkMethod()) - .addMethod(getUpdateSearchAds360LinkMethod()) - .addMethod(getGetAttributionSettingsMethod()) - .addMethod(getUpdateAttributionSettingsMethod()) - .addMethod(getRunAccessReportMethod()) - .addMethod(getCreateAccessBindingMethod()) - .addMethod(getGetAccessBindingMethod()) - .addMethod(getUpdateAccessBindingMethod()) - .addMethod(getDeleteAccessBindingMethod()) - .addMethod(getListAccessBindingsMethod()) - .addMethod(getBatchCreateAccessBindingsMethod()) - .addMethod(getBatchGetAccessBindingsMethod()) - .addMethod(getBatchUpdateAccessBindingsMethod()) - .addMethod(getBatchDeleteAccessBindingsMethod()) - .addMethod(getGetExpandedDataSetMethod()) - .addMethod(getListExpandedDataSetsMethod()) - .addMethod(getCreateExpandedDataSetMethod()) - .addMethod(getUpdateExpandedDataSetMethod()) - .addMethod(getDeleteExpandedDataSetMethod()) - .addMethod(getGetChannelGroupMethod()) - .addMethod(getListChannelGroupsMethod()) - .addMethod(getCreateChannelGroupMethod()) - .addMethod(getUpdateChannelGroupMethod()) - .addMethod(getDeleteChannelGroupMethod()) - .addMethod(getSetAutomatedGa4ConfigurationOptOutMethod()) - .addMethod(getFetchAutomatedGa4ConfigurationOptOutMethod()) - .addMethod(getGetBigQueryLinkMethod()) - .addMethod(getListBigQueryLinksMethod()) - .addMethod(getGetEnhancedMeasurementSettingsMethod()) - .addMethod(getUpdateEnhancedMeasurementSettingsMethod()) - .addMethod(getCreateConnectedSiteTagMethod()) - .addMethod(getDeleteConnectedSiteTagMethod()) - .addMethod(getListConnectedSiteTagsMethod()) - .addMethod(getFetchConnectedGa4PropertyMethod()) - .addMethod(getGetAdSenseLinkMethod()) - .addMethod(getCreateAdSenseLinkMethod()) - .addMethod(getDeleteAdSenseLinkMethod()) - .addMethod(getListAdSenseLinksMethod()) - .addMethod(getGetEventCreateRuleMethod()) - .addMethod(getListEventCreateRulesMethod()) - .addMethod(getCreateEventCreateRuleMethod()) - .addMethod(getUpdateEventCreateRuleMethod()) - .addMethod(getDeleteEventCreateRuleMethod()) - .addMethod(getUpdateDataRedactionSettingsMethod()) - .addMethod(getGetDataRedactionSettingsMethod()) - .addMethod(getCreateRollupPropertyMethod()) - .addMethod(getGetRollupPropertySourceLinkMethod()) - .addMethod(getListRollupPropertySourceLinksMethod()) - .addMethod(getCreateRollupPropertySourceLinkMethod()) - .addMethod(getDeleteRollupPropertySourceLinkMethod()) - .addMethod(getCreateSubpropertyMethod()) - .addMethod(getDeleteSubpropertyEventFilterMethod()) - .addMethod(getCreateSubpropertyEventFilterMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java deleted file mode 100644 index 73d92ca899c9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilter.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * To express that the result needs to be between two numbers (inclusive).
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessBetweenFilter} - */ -public final class AccessBetweenFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessBetweenFilter) - AccessBetweenFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessBetweenFilter.newBuilder() to construct. - private AccessBetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessBetweenFilter() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessBetweenFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessBetweenFilter.class, com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder.class); - } - - public static final int FROM_VALUE_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.NumericValue fromValue_; - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return Whether the fromValue field is set. - */ - @java.lang.Override - public boolean hasFromValue() { - return fromValue_ != null; - } - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return The fromValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { - return fromValue_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : fromValue_; - } - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - return fromValue_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : fromValue_; - } - - public static final int TO_VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.NumericValue toValue_; - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return Whether the toValue field is set. - */ - @java.lang.Override - public boolean hasToValue() { - return toValue_ != null; - } - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return The toValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getToValue() { - return toValue_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : toValue_; - } - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { - return toValue_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : toValue_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (fromValue_ != null) { - output.writeMessage(1, getFromValue()); - } - if (toValue_ != null) { - output.writeMessage(2, getToValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fromValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFromValue()); - } - if (toValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getToValue()); - } - size += 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.admin.v1alpha.AccessBetweenFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessBetweenFilter other = (com.google.analytics.admin.v1alpha.AccessBetweenFilter) obj; - - if (hasFromValue() != other.hasFromValue()) return false; - if (hasFromValue()) { - if (!getFromValue() - .equals(other.getFromValue())) return false; - } - if (hasToValue() != other.hasToValue()) return false; - if (hasToValue()) { - if (!getToValue() - .equals(other.getToValue())) return false; - } - if (!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 (hasFromValue()) { - hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getFromValue().hashCode(); - } - if (hasToValue()) { - hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getToValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessBetweenFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * To express that the result needs to be between two numbers (inclusive).
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessBetweenFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessBetweenFilter) - com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessBetweenFilter.class, com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fromValue_ = null; - if (fromValueBuilder_ != null) { - fromValueBuilder_.dispose(); - fromValueBuilder_ = null; - } - toValue_ = null; - if (toValueBuilder_ != null) { - toValueBuilder_.dispose(); - toValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter build() { - com.google.analytics.admin.v1alpha.AccessBetweenFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessBetweenFilter result = new com.google.analytics.admin.v1alpha.AccessBetweenFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessBetweenFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fromValue_ = fromValueBuilder_ == null - ? fromValue_ - : fromValueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.toValue_ = toValueBuilder_ == null - ? toValue_ - : toValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessBetweenFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessBetweenFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBetweenFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) return this; - if (other.hasFromValue()) { - mergeFromValue(other.getFromValue()); - } - if (other.hasToValue()) { - mergeToValue(other.getToValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getFromValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getToValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.NumericValue fromValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder> fromValueBuilder_; - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return Whether the fromValue field is set. - */ - public boolean hasFromValue() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return The fromValue. - */ - public com.google.analytics.admin.v1alpha.NumericValue getFromValue() { - if (fromValueBuilder_ == null) { - return fromValue_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : fromValue_; - } else { - return fromValueBuilder_.getMessage(); - } - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (fromValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fromValue_ = value; - } else { - fromValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue( - com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { - if (fromValueBuilder_ == null) { - fromValue_ = builderForValue.build(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder mergeFromValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (fromValueBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - fromValue_ != null && - fromValue_ != com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) { - getFromValueBuilder().mergeFrom(value); - } else { - fromValue_ = value; - } - } else { - fromValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public Builder clearFromValue() { - bitField0_ = (bitField0_ & ~0x00000001); - fromValue_ = null; - if (fromValueBuilder_ != null) { - fromValueBuilder_.dispose(); - fromValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.admin.v1alpha.NumericValue.Builder getFromValueBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getFromValueFieldBuilder().getBuilder(); - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - if (fromValueBuilder_ != null) { - return fromValueBuilder_.getMessageOrBuilder(); - } else { - return fromValue_ == null ? - com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : fromValue_; - } - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - getFromValueFieldBuilder() { - if (fromValueBuilder_ == null) { - fromValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( - getFromValue(), - getParentForChildren(), - isClean()); - fromValue_ = null; - } - return fromValueBuilder_; - } - - private com.google.analytics.admin.v1alpha.NumericValue toValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder> toValueBuilder_; - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return Whether the toValue field is set. - */ - public boolean hasToValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return The toValue. - */ - public com.google.analytics.admin.v1alpha.NumericValue getToValue() { - if (toValueBuilder_ == null) { - return toValue_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : toValue_; - } else { - return toValueBuilder_.getMessage(); - } - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (toValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - toValue_ = value; - } else { - toValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue( - com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { - if (toValueBuilder_ == null) { - toValue_ = builderForValue.build(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder mergeToValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (toValueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - toValue_ != null && - toValue_ != com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) { - getToValueBuilder().mergeFrom(value); - } else { - toValue_ = value; - } - } else { - toValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public Builder clearToValue() { - bitField0_ = (bitField0_ & ~0x00000002); - toValue_ = null; - if (toValueBuilder_ != null) { - toValueBuilder_.dispose(); - toValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValue.Builder getToValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getToValueFieldBuilder().getBuilder(); - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { - if (toValueBuilder_ != null) { - return toValueBuilder_.getMessageOrBuilder(); - } else { - return toValue_ == null ? - com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : toValue_; - } - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - getToValueFieldBuilder() { - if (toValueBuilder_ == null) { - toValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( - getToValue(), - getParentForChildren(), - isClean()); - toValue_ = null; - } - return toValueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessBetweenFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessBetweenFilter) - private static final com.google.analytics.admin.v1alpha.AccessBetweenFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessBetweenFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessBetweenFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java deleted file mode 100644 index be56ee6ee67f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBetweenFilterOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessBetweenFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessBetweenFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return Whether the fromValue field is set. - */ - boolean hasFromValue(); - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - * @return The fromValue. - */ - com.google.analytics.admin.v1alpha.NumericValue getFromValue(); - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue from_value = 1; - */ - com.google.analytics.admin.v1alpha.NumericValueOrBuilder getFromValueOrBuilder(); - - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return Whether the toValue field is set. - */ - boolean hasToValue(); - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - * @return The toValue. - */ - com.google.analytics.admin.v1alpha.NumericValue getToValue(); - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue to_value = 2; - */ - com.google.analytics.admin.v1alpha.NumericValueOrBuilder getToValueOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java deleted file mode 100644 index 9053c280902a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessBinding.java +++ /dev/null @@ -1,1296 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A binding of a user to a set of roles.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessBinding} - */ -public final class AccessBinding extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessBinding) - AccessBindingOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessBinding.newBuilder() to construct. - private AccessBinding(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessBinding() { - name_ = ""; - roles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessBinding(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessBinding.class, com.google.analytics.admin.v1alpha.AccessBinding.Builder.class); - } - - private int accessTargetCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object accessTarget_; - public enum AccessTargetCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - USER(2), - ACCESSTARGET_NOT_SET(0); - private final int value; - private AccessTargetCase(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 AccessTargetCase valueOf(int value) { - return forNumber(value); - } - - public static AccessTargetCase forNumber(int value) { - switch (value) { - case 2: return USER; - case 0: return ACCESSTARGET_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public AccessTargetCase - getAccessTargetCase() { - return AccessTargetCase.forNumber( - accessTargetCase_); - } - - public static final int USER_FIELD_NUMBER = 2; - /** - *
-   * If set, the email address of the user to set roles for.
-   * Format: "someuser@gmail.com"
-   * 
- * - * string user = 2; - * @return Whether the user field is set. - */ - public boolean hasUser() { - return accessTargetCase_ == 2; - } - /** - *
-   * If set, the email address of the user to set roles for.
-   * Format: "someuser@gmail.com"
-   * 
- * - * string user = 2; - * @return The user. - */ - public java.lang.String getUser() { - java.lang.Object ref = ""; - if (accessTargetCase_ == 2) { - ref = accessTarget_; - } - 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 (accessTargetCase_ == 2) { - accessTarget_ = s; - } - return s; - } - } - /** - *
-   * If set, the email address of the user to set roles for.
-   * Format: "someuser@gmail.com"
-   * 
- * - * string user = 2; - * @return The bytes for user. - */ - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = ""; - if (accessTargetCase_ == 2) { - ref = accessTarget_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (accessTargetCase_ == 2) { - accessTarget_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this binding.
-   *
-   * Format: accounts/{account}/accessBindings/{access_binding} or
-   * properties/{property}/accessBindings/{access_binding}
-   *
-   * Example:
-   * "accounts/100/accessBindings/200"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this binding.
-   *
-   * Format: accounts/{account}/accessBindings/{access_binding} or
-   * properties/{property}/accessBindings/{access_binding}
-   *
-   * Example:
-   * "accounts/100/accessBindings/200"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList roles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * A list of roles for to grant to the parent resource.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * For users, if an empty list of roles is set, this AccessBinding will be
-   * deleted.
-   * 
- * - * repeated string roles = 3; - * @return A list containing the roles. - */ - public com.google.protobuf.ProtocolStringList - getRolesList() { - return roles_; - } - /** - *
-   * A list of roles for to grant to the parent resource.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * For users, if an empty list of roles is set, this AccessBinding will be
-   * deleted.
-   * 
- * - * repeated string roles = 3; - * @return The count of roles. - */ - public int getRolesCount() { - return roles_.size(); - } - /** - *
-   * A list of roles for to grant to the parent resource.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * For users, if an empty list of roles is set, this AccessBinding will be
-   * deleted.
-   * 
- * - * repeated string roles = 3; - * @param index The index of the element to return. - * @return The roles at the given index. - */ - public java.lang.String getRoles(int index) { - return roles_.get(index); - } - /** - *
-   * A list of roles for to grant to the parent resource.
-   *
-   * Valid values:
-   * predefinedRoles/viewer
-   * predefinedRoles/analyst
-   * predefinedRoles/editor
-   * predefinedRoles/admin
-   * predefinedRoles/no-cost-data
-   * predefinedRoles/no-revenue-data
-   *
-   * For users, if an empty list of roles is set, this AccessBinding will be
-   * deleted.
-   * 
- * - * repeated string roles = 3; - * @param index The index of the value to return. - * @return The bytes of the roles at the given index. - */ - public com.google.protobuf.ByteString - getRolesBytes(int index) { - return roles_.getByteString(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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (accessTargetCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accessTarget_); - } - for (int i = 0; i < roles_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, roles_.getRaw(i)); - } - 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 (accessTargetCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accessTarget_); - } - { - int dataSize = 0; - for (int i = 0; i < roles_.size(); i++) { - dataSize += computeStringSizeNoTag(roles_.getRaw(i)); - } - size += dataSize; - size += 1 * getRolesList().size(); - } - 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.admin.v1alpha.AccessBinding)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessBinding other = (com.google.analytics.admin.v1alpha.AccessBinding) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getRolesList() - .equals(other.getRolesList())) return false; - if (!getAccessTargetCase().equals(other.getAccessTargetCase())) return false; - switch (accessTargetCase_) { - case 2: - if (!getUser() - .equals(other.getUser())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getRolesCount() > 0) { - hash = (37 * hash) + ROLES_FIELD_NUMBER; - hash = (53 * hash) + getRolesList().hashCode(); - } - switch (accessTargetCase_) { - case 2: - hash = (37 * hash) + USER_FIELD_NUMBER; - hash = (53 * hash) + getUser().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessBinding parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessBinding parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessBinding parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessBinding prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A binding of a user to a set of roles.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessBinding} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessBinding) - com.google.analytics.admin.v1alpha.AccessBindingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessBinding.class, com.google.analytics.admin.v1alpha.AccessBinding.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessBinding.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - roles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - accessTargetCase_ = 0; - accessTarget_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding build() { - com.google.analytics.admin.v1alpha.AccessBinding result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding buildPartial() { - com.google.analytics.admin.v1alpha.AccessBinding result = new com.google.analytics.admin.v1alpha.AccessBinding(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessBinding result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - roles_.makeImmutable(); - result.roles_ = roles_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessBinding result) { - result.accessTargetCase_ = accessTargetCase_; - result.accessTarget_ = this.accessTarget_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessBinding) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessBinding)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessBinding other) { - if (other == com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.roles_.isEmpty()) { - if (roles_.isEmpty()) { - roles_ = other.roles_; - bitField0_ |= 0x00000004; - } else { - ensureRolesIsMutable(); - roles_.addAll(other.roles_); - } - onChanged(); - } - switch (other.getAccessTargetCase()) { - case USER: { - accessTargetCase_ = 2; - accessTarget_ = other.accessTarget_; - onChanged(); - break; - } - case ACCESSTARGET_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - accessTargetCase_ = 2; - accessTarget_ = s; - break; - } // case 18 - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRolesIsMutable(); - roles_.add(s); - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int accessTargetCase_ = 0; - private java.lang.Object accessTarget_; - public AccessTargetCase - getAccessTargetCase() { - return AccessTargetCase.forNumber( - accessTargetCase_); - } - - public Builder clearAccessTarget() { - accessTargetCase_ = 0; - accessTarget_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-     * If set, the email address of the user to set roles for.
-     * Format: "someuser@gmail.com"
-     * 
- * - * string user = 2; - * @return Whether the user field is set. - */ - @java.lang.Override - public boolean hasUser() { - return accessTargetCase_ == 2; - } - /** - *
-     * If set, the email address of the user to set roles for.
-     * Format: "someuser@gmail.com"
-     * 
- * - * string user = 2; - * @return The user. - */ - @java.lang.Override - public java.lang.String getUser() { - java.lang.Object ref = ""; - if (accessTargetCase_ == 2) { - ref = accessTarget_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (accessTargetCase_ == 2) { - accessTarget_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * If set, the email address of the user to set roles for.
-     * Format: "someuser@gmail.com"
-     * 
- * - * string user = 2; - * @return The bytes for user. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserBytes() { - java.lang.Object ref = ""; - if (accessTargetCase_ == 2) { - ref = accessTarget_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - if (accessTargetCase_ == 2) { - accessTarget_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * If set, the email address of the user to set roles for.
-     * Format: "someuser@gmail.com"
-     * 
- * - * string user = 2; - * @param value The user to set. - * @return This builder for chaining. - */ - public Builder setUser( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - accessTargetCase_ = 2; - accessTarget_ = value; - onChanged(); - return this; - } - /** - *
-     * If set, the email address of the user to set roles for.
-     * Format: "someuser@gmail.com"
-     * 
- * - * string user = 2; - * @return This builder for chaining. - */ - public Builder clearUser() { - if (accessTargetCase_ == 2) { - accessTargetCase_ = 0; - accessTarget_ = null; - onChanged(); - } - return this; - } - /** - *
-     * If set, the email address of the user to set roles for.
-     * Format: "someuser@gmail.com"
-     * 
- * - * string user = 2; - * @param value The bytes for user to set. - * @return This builder for chaining. - */ - public Builder setUserBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - accessTargetCase_ = 2; - accessTarget_ = value; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this binding.
-     *
-     * Format: accounts/{account}/accessBindings/{access_binding} or
-     * properties/{property}/accessBindings/{access_binding}
-     *
-     * Example:
-     * "accounts/100/accessBindings/200"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this binding.
-     *
-     * Format: accounts/{account}/accessBindings/{access_binding} or
-     * properties/{property}/accessBindings/{access_binding}
-     *
-     * Example:
-     * "accounts/100/accessBindings/200"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this binding.
-     *
-     * Format: accounts/{account}/accessBindings/{access_binding} or
-     * properties/{property}/accessBindings/{access_binding}
-     *
-     * Example:
-     * "accounts/100/accessBindings/200"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this binding.
-     *
-     * Format: accounts/{account}/accessBindings/{access_binding} or
-     * properties/{property}/accessBindings/{access_binding}
-     *
-     * Example:
-     * "accounts/100/accessBindings/200"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this binding.
-     *
-     * Format: accounts/{account}/accessBindings/{access_binding} or
-     * properties/{property}/accessBindings/{access_binding}
-     *
-     * Example:
-     * "accounts/100/accessBindings/200"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList roles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureRolesIsMutable() { - if (!roles_.isModifiable()) { - roles_ = new com.google.protobuf.LazyStringArrayList(roles_); - } - bitField0_ |= 0x00000004; - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @return A list containing the roles. - */ - public com.google.protobuf.ProtocolStringList - getRolesList() { - roles_.makeImmutable(); - return roles_; - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @return The count of roles. - */ - public int getRolesCount() { - return roles_.size(); - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @param index The index of the element to return. - * @return The roles at the given index. - */ - public java.lang.String getRoles(int index) { - return roles_.get(index); - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @param index The index of the value to return. - * @return The bytes of the roles at the given index. - */ - public com.google.protobuf.ByteString - getRolesBytes(int index) { - return roles_.getByteString(index); - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @param index The index to set the value at. - * @param value The roles to set. - * @return This builder for chaining. - */ - public Builder setRoles( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureRolesIsMutable(); - roles_.set(index, value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @param value The roles to add. - * @return This builder for chaining. - */ - public Builder addRoles( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureRolesIsMutable(); - roles_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @param values The roles to add. - * @return This builder for chaining. - */ - public Builder addAllRoles( - java.lang.Iterable values) { - ensureRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, roles_); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @return This builder for chaining. - */ - public Builder clearRoles() { - roles_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; - onChanged(); - return this; - } - /** - *
-     * A list of roles for to grant to the parent resource.
-     *
-     * Valid values:
-     * predefinedRoles/viewer
-     * predefinedRoles/analyst
-     * predefinedRoles/editor
-     * predefinedRoles/admin
-     * predefinedRoles/no-cost-data
-     * predefinedRoles/no-revenue-data
-     *
-     * For users, if an empty list of roles is set, this AccessBinding will be
-     * deleted.
-     * 
- * - * repeated string roles = 3; - * @param value The bytes of the roles to add. - * @return This builder for chaining. - */ - public Builder addRolesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureRolesIsMutable(); - roles_.add(value); - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessBinding) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessBinding) - private static final com.google.analytics.admin.v1alpha.AccessBinding DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessBinding(); - } - - public static com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessBinding parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java deleted file mode 100644 index 4ebd611a593e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRange.java +++ /dev/null @@ -1,783 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A contiguous range of days: startDate, startDate + 1, ..., endDate.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDateRange} - */ -public final class AccessDateRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDateRange) - AccessDateRangeOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDateRange.newBuilder() to construct. - private AccessDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDateRange() { - startDate_ = ""; - endDate_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDateRange(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDateRange.class, com.google.analytics.admin.v1alpha.AccessDateRange.Builder.class); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object startDate_ = ""; - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The startDate. - */ - @java.lang.Override - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } - } - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The bytes for startDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int END_DATE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object endDate_ = ""; - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The endDate. - */ - @java.lang.Override - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } - } - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The bytes for endDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); - } - 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(startDate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); - } - size += 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.admin.v1alpha.AccessDateRange)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessDateRange other = (com.google.analytics.admin.v1alpha.AccessDateRange) obj; - - if (!getStartDate() - .equals(other.getStartDate())) return false; - if (!getEndDate() - .equals(other.getEndDate())) return false; - if (!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) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessDateRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessDateRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDateRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessDateRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A contiguous range of days: startDate, startDate + 1, ..., endDate.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDateRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDateRange) - com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDateRange.class, com.google.analytics.admin.v1alpha.AccessDateRange.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessDateRange.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - startDate_ = ""; - endDate_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange build() { - com.google.analytics.admin.v1alpha.AccessDateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange buildPartial() { - com.google.analytics.admin.v1alpha.AccessDateRange result = new com.google.analytics.admin.v1alpha.AccessDateRange(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDateRange result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDate_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDate_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDateRange) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDateRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDateRange other) { - if (other == com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()) return this; - if (!other.getStartDate().isEmpty()) { - startDate_ = other.startDate_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEndDate().isEmpty()) { - endDate_ = other.endDate_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - startDate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - endDate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object startDate_ = ""; - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @return The startDate. - */ - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @return The bytes for startDate. - */ - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @param value The startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startDate_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @return This builder for chaining. - */ - public Builder clearStartDate() { - startDate_ = getDefaultInstance().getStartDate(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @param value The bytes for startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - startDate_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object endDate_ = ""; - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @return The endDate. - */ - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @return The bytes for endDate. - */ - public com.google.protobuf.ByteString - getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @param value The endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - endDate_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @return This builder for chaining. - */ - public Builder clearEndDate() { - endDate_ = getDefaultInstance().getEndDate(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @param value The bytes for endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - endDate_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessDateRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDateRange) - private static final com.google.analytics.admin.v1alpha.AccessDateRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDateRange(); - } - - public static com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDateRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java deleted file mode 100644 index 608763ff4953..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDateRangeOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessDateRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDateRange) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The startDate. - */ - java.lang.String getStartDate(); - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The bytes for startDate. - */ - com.google.protobuf.ByteString - getStartDateBytes(); - - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The endDate. - */ - java.lang.String getEndDate(); - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The bytes for endDate. - */ - com.google.protobuf.ByteString - getEndDateBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java deleted file mode 100644 index 5089686e29d5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimension.java +++ /dev/null @@ -1,609 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Dimensions are attributes of your data. For example, the dimension
- * `userEmail` indicates the email of the user that accessed reporting data.
- * Dimension values in report responses are strings.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimension} - */ -public final class AccessDimension extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimension) - AccessDimensionOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDimension.newBuilder() to construct. - private AccessDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDimension() { - dimensionName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDimension(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimension.class, com.google.analytics.admin.v1alpha.AccessDimension.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object dimensionName_ = ""; - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - 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.admin.v1alpha.AccessDimension)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessDimension other = (com.google.analytics.admin.v1alpha.AccessDimension) obj; - - if (!getDimensionName() - .equals(other.getDimensionName())) return false; - if (!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.admin.v1alpha.AccessDimension parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessDimension parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessDimension parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDimension parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessDimension prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Dimensions are attributes of your data. For example, the dimension
-   * `userEmail` indicates the email of the user that accessed reporting data.
-   * Dimension values in report responses are strings.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimension} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimension) - com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimension.class, com.google.analytics.admin.v1alpha.AccessDimension.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessDimension.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dimensionName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension build() { - com.google.analytics.admin.v1alpha.AccessDimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension buildPartial() { - com.google.analytics.admin.v1alpha.AccessDimension result = new com.google.analytics.admin.v1alpha.AccessDimension(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDimension result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dimensionName_ = dimensionName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDimension) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimension)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimension other) { - if (other == com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - dimensionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object dimensionName_ = ""; - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - dimensionName_ = getDefaultInstance().getDimensionName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - dimensionName_ = value; - 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.admin.v1alpha.AccessDimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimension) - private static final com.google.analytics.admin.v1alpha.AccessDimension DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimension(); - } - - public static com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java deleted file mode 100644 index c0e83604976d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeader.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Describes a dimension column in the report. Dimensions requested in a report
- * produce column entries within rows and DimensionHeaders. However, dimensions
- * used exclusively within filters or expressions do not produce columns in a
- * report; correspondingly, those dimensions do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionHeader} - */ -public final class AccessDimensionHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionHeader) - AccessDimensionHeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDimensionHeader.newBuilder() to construct. - private AccessDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDimensionHeader() { - dimensionName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDimensionHeader(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimensionHeader.class, com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object dimensionName_ = ""; - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - 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.admin.v1alpha.AccessDimensionHeader)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessDimensionHeader other = (com.google.analytics.admin.v1alpha.AccessDimensionHeader) obj; - - if (!getDimensionName() - .equals(other.getDimensionName())) return false; - if (!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.admin.v1alpha.AccessDimensionHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessDimensionHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes a dimension column in the report. Dimensions requested in a report
-   * produce column entries within rows and DimensionHeaders. However, dimensions
-   * used exclusively within filters or expressions do not produce columns in a
-   * report; correspondingly, those dimensions do not produce headers.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimensionHeader) - com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimensionHeader.class, com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessDimensionHeader.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dimensionName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader build() { - com.google.analytics.admin.v1alpha.AccessDimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader buildPartial() { - com.google.analytics.admin.v1alpha.AccessDimensionHeader result = new com.google.analytics.admin.v1alpha.AccessDimensionHeader(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDimensionHeader result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dimensionName_ = dimensionName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionHeader) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionHeader other) { - if (other == com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - dimensionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object dimensionName_ = ""; - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - dimensionName_ = getDefaultInstance().getDimensionName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - dimensionName_ = value; - 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.admin.v1alpha.AccessDimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionHeader) - private static final com.google.analytics.admin.v1alpha.AccessDimensionHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionHeader(); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimensionHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java deleted file mode 100644 index 3140c9e04fcb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionHeaderOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessDimensionHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimensionHeader) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString - getDimensionNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java deleted file mode 100644 index 349fa19c56b7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessDimensionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimension) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString - getDimensionNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java deleted file mode 100644 index c93bae03c562..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValue.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The value of a dimension.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionValue} - */ -public final class AccessDimensionValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessDimensionValue) - AccessDimensionValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDimensionValue.newBuilder() to construct. - private AccessDimensionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDimensionValue() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDimensionValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimensionValue.class, com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - 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(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - 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.admin.v1alpha.AccessDimensionValue)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessDimensionValue other = (com.google.analytics.admin.v1alpha.AccessDimensionValue) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessDimensionValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessDimensionValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The value of a dimension.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessDimensionValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessDimensionValue) - com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessDimensionValue.class, com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessDimensionValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue build() { - com.google.analytics.admin.v1alpha.AccessDimensionValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue buildPartial() { - com.google.analytics.admin.v1alpha.AccessDimensionValue result = new com.google.analytics.admin.v1alpha.AccessDimensionValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessDimensionValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessDimensionValue) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessDimensionValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessDimensionValue other) { - if (other == com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object value_ = ""; - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - 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.admin.v1alpha.AccessDimensionValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessDimensionValue) - private static final com.google.analytics.admin.v1alpha.AccessDimensionValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessDimensionValue(); - } - - public static com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimensionValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java deleted file mode 100644 index a3b3700e8c8e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessDimensionValueOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessDimensionValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessDimensionValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java deleted file mode 100644 index 6e271b7ff98a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilter.java +++ /dev/null @@ -1,1676 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilter} - */ -public final class AccessFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilter) - AccessFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessFilter.newBuilder() to construct. - private AccessFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilter.class, com.google.analytics.admin.v1alpha.AccessFilter.Builder.class); - } - - private int oneFilterCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneFilter_; - public enum OneFilterCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STRING_FILTER(2), - IN_LIST_FILTER(3), - NUMERIC_FILTER(4), - BETWEEN_FILTER(5), - ONEFILTER_NOT_SET(0); - private final int value; - private OneFilterCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneFilterCase valueOf(int value) { - return forNumber(value); - } - - public static OneFilterCase forNumber(int value) { - switch (value) { - case 2: return STRING_FILTER; - case 3: return IN_LIST_FILTER; - case 4: return NUMERIC_FILTER; - case 5: return BETWEEN_FILTER; - case 0: return ONEFILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public static final int STRING_FILTER_FIELD_NUMBER = 2; - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); - } - 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(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_); - } - size += 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.admin.v1alpha.AccessFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessFilter other = (com.google.analytics.admin.v1alpha.AccessFilter) obj; - - if (!getFieldName() - .equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 2: - if (!getStringFilter() - .equals(other.getStringFilter())) return false; - break; - case 3: - if (!getInListFilter() - .equals(other.getInListFilter())) return false; - break; - case 4: - if (!getNumericFilter() - .equals(other.getNumericFilter())) return false; - break; - case 5: - if (!getBetweenFilter() - .equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!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) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (oneFilterCase_) { - case 2: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 4: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * An expression to filter dimension or metric values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilter) - com.google.analytics.admin.v1alpha.AccessFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilter.class, com.google.analytics.admin.v1alpha.AccessFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - fieldName_ = ""; - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilter build() { - com.google.analytics.admin.v1alpha.AccessFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessFilter result = new com.google.analytics.admin.v1alpha.AccessFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.fieldName_ = fieldName_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessFilter result) { - result.oneFilterCase_ = oneFilterCase_; - result.oneFilter_ = this.oneFilter_; - if (oneFilterCase_ == 2 && - stringFilterBuilder_ != null) { - result.oneFilter_ = stringFilterBuilder_.build(); - } - if (oneFilterCase_ == 3 && - inListFilterBuilder_ != null) { - result.oneFilter_ = inListFilterBuilder_.build(); - } - if (oneFilterCase_ == 4 && - numericFilterBuilder_ != null) { - result.oneFilter_ = numericFilterBuilder_.build(); - } - if (oneFilterCase_ == 5 && - betweenFilterBuilder_ != null) { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000010; - onChanged(); - } - switch (other.getOneFilterCase()) { - case STRING_FILTER: { - mergeStringFilter(other.getStringFilter()); - break; - } - case IN_LIST_FILTER: { - mergeInListFilter(other.getInListFilter()); - break; - } - case NUMERIC_FILTER: { - mergeNumericFilter(other.getNumericFilter()); - break; - } - case BETWEEN_FILTER: { - mergeBetweenFilter(other.getBetweenFilter()); - break; - } - case ONEFILTER_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - fieldName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 10 - case 18: { - input.readMessage( - getStringFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getInListFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getNumericFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getBetweenFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public Builder clearOneFilter() { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessStringFilter, com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> stringFilterBuilder_; - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 2) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder setStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder setStringFilter( - com.google.analytics.admin.v1alpha.AccessStringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.AccessStringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2 && - oneFilter_ != com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessStringFilter.newBuilder((com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 2) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - public com.google.analytics.admin.v1alpha.AccessStringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessStringFilter, com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 2)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessStringFilter, com.google.analytics.admin.v1alpha.AccessStringFilter.Builder, com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessStringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 2; - onChanged(); - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessInListFilter, com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> inListFilterBuilder_; - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder setInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder setInListFilter( - com.google.analytics.admin.v1alpha.AccessInListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder mergeInListFilter(com.google.analytics.admin.v1alpha.AccessInListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3 && - oneFilter_ != com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessInListFilter.newBuilder((com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - public com.google.analytics.admin.v1alpha.AccessInListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessInListFilter, com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessInListFilter, com.google.analytics.admin.v1alpha.AccessInListFilter.Builder, com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessInListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessNumericFilter, com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> numericFilterBuilder_; - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter(com.google.analytics.admin.v1alpha.AccessNumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter( - com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder mergeNumericFilter(com.google.analytics.admin.v1alpha.AccessNumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4 && - oneFilter_ != com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessNumericFilter.newBuilder((com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - public com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessNumericFilter, com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessNumericFilter, com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder, com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessNumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBetweenFilter, com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> betweenFilterBuilder_; - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter(com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter( - com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder mergeBetweenFilter(com.google.analytics.admin.v1alpha.AccessBetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5 && - oneFilter_ != com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessBetweenFilter.newBuilder((com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBetweenFilter, com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AccessBetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBetweenFilter, com.google.analytics.admin.v1alpha.AccessBetweenFilter.Builder, com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessBetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - return betweenFilterBuilder_; - } - - private java.lang.Object fieldName_ = ""; - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilter) - private static final com.google.analytics.admin.v1alpha.AccessFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java deleted file mode 100644 index 224d114fea35..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpression.java +++ /dev/null @@ -1,1526 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Expresses dimension or metric filters. The fields in the same expression need
- * to be either all dimensions or all metrics.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpression} - */ -public final class AccessFilterExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpression) - AccessFilterExpressionOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessFilterExpression.newBuilder() to construct. - private AccessFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessFilterExpression() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessFilterExpression(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilterExpression.class, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder.class); - } - - private int oneExpressionCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneExpression_; - public enum OneExpressionCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AND_GROUP(1), - OR_GROUP(2), - NOT_EXPRESSION(3), - ACCESS_FILTER(4), - ONEEXPRESSION_NOT_SET(0); - private final int value; - private OneExpressionCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneExpressionCase valueOf(int value) { - return forNumber(value); - } - - public static OneExpressionCase forNumber(int value) { - switch (value) { - case 1: return AND_GROUP; - case 2: return OR_GROUP; - case 3: return NOT_EXPRESSION; - case 4: return ACCESS_FILTER; - case 0: return ONEEXPRESSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneExpressionCase - getOneExpressionCase() { - return OneExpressionCase.forNumber( - oneExpressionCase_); - } - - public static final int AND_GROUP_FIELD_NUMBER = 1; - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return oneExpressionCase_ == 1; - } - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup() { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return oneExpressionCase_ == 2; - } - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup() { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return oneExpressionCase_ == 3; - } - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression() { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - - public static final int ACCESS_FILTER_FIELD_NUMBER = 4; - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return Whether the accessFilter field is set. - */ - @java.lang.Override - public boolean hasAccessFilter() { - return oneExpressionCase_ == 4; - } - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return The accessFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oneExpressionCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); - } - if (oneExpressionCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneExpressionCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_); - } - if (oneExpressionCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_); - } - size += 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.admin.v1alpha.AccessFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessFilterExpression other = (com.google.analytics.admin.v1alpha.AccessFilterExpression) obj; - - if (!getOneExpressionCase().equals(other.getOneExpressionCase())) return false; - switch (oneExpressionCase_) { - case 1: - if (!getAndGroup() - .equals(other.getAndGroup())) return false; - break; - case 2: - if (!getOrGroup() - .equals(other.getOrGroup())) return false; - break; - case 3: - if (!getNotExpression() - .equals(other.getNotExpression())) return false; - break; - case 4: - if (!getAccessFilter() - .equals(other.getAccessFilter())) return false; - break; - case 0: - default: - } - if (!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 (oneExpressionCase_) { - case 1: - hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getAndGroup().hashCode(); - break; - case 2: - hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getOrGroup().hashCode(); - break; - case 3: - hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getNotExpression().hashCode(); - break; - case 4: - hash = (37 * hash) + ACCESS_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getAccessFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Expresses dimension or metric filters. The fields in the same expression need
-   * to be either all dimensions or all metrics.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilterExpression) - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilterExpression.class, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (accessFilterBuilder_ != null) { - accessFilterBuilder_.clear(); - } - oneExpressionCase_ = 0; - oneExpression_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression build() { - com.google.analytics.admin.v1alpha.AccessFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression buildPartial() { - com.google.analytics.admin.v1alpha.AccessFilterExpression result = new com.google.analytics.admin.v1alpha.AccessFilterExpression(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessFilterExpression result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessFilterExpression result) { - result.oneExpressionCase_ = oneExpressionCase_; - result.oneExpression_ = this.oneExpression_; - if (oneExpressionCase_ == 1 && - andGroupBuilder_ != null) { - result.oneExpression_ = andGroupBuilder_.build(); - } - if (oneExpressionCase_ == 2 && - orGroupBuilder_ != null) { - result.oneExpression_ = orGroupBuilder_.build(); - } - if (oneExpressionCase_ == 3 && - notExpressionBuilder_ != null) { - result.oneExpression_ = notExpressionBuilder_.build(); - } - if (oneExpressionCase_ == 4 && - accessFilterBuilder_ != null) { - result.oneExpression_ = accessFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpression) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpression other) { - if (other == com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) return this; - switch (other.getOneExpressionCase()) { - case AND_GROUP: { - mergeAndGroup(other.getAndGroup()); - break; - } - case OR_GROUP: { - mergeOrGroup(other.getOrGroup()); - break; - } - case NOT_EXPRESSION: { - mergeNotExpression(other.getNotExpression()); - break; - } - case ACCESS_FILTER: { - mergeAccessFilter(other.getAccessFilter()); - break; - } - case ONEEXPRESSION_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAndGroupFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getOrGroupFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getNotExpressionFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getAccessFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneExpressionCase_ = 0; - private java.lang.Object oneExpression_; - public OneExpressionCase - getOneExpressionCase() { - return OneExpressionCase.forNumber( - oneExpressionCase_); - } - - public Builder clearOneExpression() { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpressionList, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> andGroupBuilder_; - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return oneExpressionCase_ == 1; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - oneExpressionCase_ = 1; - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 1; - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (oneExpressionCase_ == 1 && - oneExpression_ != com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 1; - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - public Builder clearAndGroup() { - if (andGroupBuilder_ == null) { - if (oneExpressionCase_ == 1) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 1) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - andGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((oneExpressionCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpressionList, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(oneExpressionCase_ == 1)) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpressionList, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 1; - onChanged(); - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpressionList, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> orGroupBuilder_; - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return oneExpressionCase_ == 2; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - oneExpressionCase_ = 2; - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 2; - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup(com.google.analytics.admin.v1alpha.AccessFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (oneExpressionCase_ == 2 && - oneExpression_ != com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 2; - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - public Builder clearOrGroup() { - if (orGroupBuilder_ == null) { - if (oneExpressionCase_ == 2) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 2) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - orGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((oneExpressionCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpressionList, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(oneExpressionCase_ == 2)) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpressionList, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 2; - onChanged(); - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> notExpressionBuilder_; - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return oneExpressionCase_ == 3; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - public Builder setNotExpression(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - oneExpressionCase_ = 3; - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 3; - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - public Builder mergeNotExpression(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (oneExpressionCase_ == 3 && - oneExpression_ != com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilterExpression.newBuilder((com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 3; - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - public Builder clearNotExpression() { - if (notExpressionBuilder_ == null) { - if (oneExpressionCase_ == 3) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 3) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - notExpressionBuilder_.clear(); - } - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((oneExpressionCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(oneExpressionCase_ == 3)) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessFilterExpression) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 3; - onChanged(); - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilter, com.google.analytics.admin.v1alpha.AccessFilter.Builder, com.google.analytics.admin.v1alpha.AccessFilterOrBuilder> accessFilterBuilder_; - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return Whether the accessFilter field is set. - */ - @java.lang.Override - public boolean hasAccessFilter() { - return oneExpressionCase_ == 4; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return The accessFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter() { - if (accessFilterBuilder_ == null) { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 4) { - return accessFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - public Builder setAccessFilter(com.google.analytics.admin.v1alpha.AccessFilter value) { - if (accessFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - accessFilterBuilder_.setMessage(value); - } - oneExpressionCase_ = 4; - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - public Builder setAccessFilter( - com.google.analytics.admin.v1alpha.AccessFilter.Builder builderForValue) { - if (accessFilterBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - accessFilterBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 4; - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - public Builder mergeAccessFilter(com.google.analytics.admin.v1alpha.AccessFilter value) { - if (accessFilterBuilder_ == null) { - if (oneExpressionCase_ == 4 && - oneExpression_ != com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilter.newBuilder((com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 4) { - accessFilterBuilder_.mergeFrom(value); - } else { - accessFilterBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 4; - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - public Builder clearAccessFilter() { - if (accessFilterBuilder_ == null) { - if (oneExpressionCase_ == 4) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 4) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - accessFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - public com.google.analytics.admin.v1alpha.AccessFilter.Builder getAccessFilterBuilder() { - return getAccessFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder() { - if ((oneExpressionCase_ == 4) && (accessFilterBuilder_ != null)) { - return accessFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilter, com.google.analytics.admin.v1alpha.AccessFilter.Builder, com.google.analytics.admin.v1alpha.AccessFilterOrBuilder> - getAccessFilterFieldBuilder() { - if (accessFilterBuilder_ == null) { - if (!(oneExpressionCase_ == 4)) { - oneExpression_ = com.google.analytics.admin.v1alpha.AccessFilter.getDefaultInstance(); - } - accessFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilter, com.google.analytics.admin.v1alpha.AccessFilter.Builder, com.google.analytics.admin.v1alpha.AccessFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessFilter) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 4; - onChanged(); - return accessFilterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilterExpression) - private static final com.google.analytics.admin.v1alpha.AccessFilterExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilterExpression(); - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java deleted file mode 100644 index 30134ee21877..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A list of filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpressionList} - */ -public final class AccessFilterExpressionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessFilterExpressionList) - AccessFilterExpressionListOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessFilterExpressionList.newBuilder() to construct. - private AccessFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessFilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessFilterExpressionList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilterExpressionList.class, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List expressions_; - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List getExpressionsList() { - return expressions_; - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsOrBuilderList() { - return expressions_; - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( - int index) { - return expressions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < expressions_.size(); i++) { - output.writeMessage(1, expressions_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < expressions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, expressions_.get(i)); - } - size += 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.admin.v1alpha.AccessFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessFilterExpressionList other = (com.google.analytics.admin.v1alpha.AccessFilterExpressionList) obj; - - if (!getExpressionsList() - .equals(other.getExpressionsList())) return false; - if (!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 (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessFilterExpressionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessFilterExpressionList) - com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessFilterExpressionList.class, com.google.analytics.admin.v1alpha.AccessFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessFilterExpressionList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList build() { - com.google.analytics.admin.v1alpha.AccessFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList buildPartial() { - com.google.analytics.admin.v1alpha.AccessFilterExpressionList result = new com.google.analytics.admin.v1alpha.AccessFilterExpressionList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.AccessFilterExpressionList result) { - if (expressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - expressions_ = java.util.Collections.unmodifiableList(expressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.expressions_ = expressions_; - } else { - result.expressions_ = expressionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessFilterExpressionList result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessFilterExpressionList) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessFilterExpressionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessFilterExpressionList other) { - if (other == com.google.analytics.admin.v1alpha.AccessFilterExpressionList.getDefaultInstance()) return this; - if (expressionsBuilder_ == null) { - if (!other.expressions_.isEmpty()) { - if (expressions_.isEmpty()) { - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExpressionsIsMutable(); - expressions_.addAll(other.expressions_); - } - onChanged(); - } - } else { - if (!other.expressions_.isEmpty()) { - if (expressionsBuilder_.isEmpty()) { - expressionsBuilder_.dispose(); - expressionsBuilder_ = null; - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - expressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExpressionsFieldBuilder() : null; - } else { - expressionsBuilder_.addAllMessages(other.expressions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccessFilterExpression m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessFilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List expressions_ = - java.util.Collections.emptyList(); - private void ensureExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - expressions_ = new java.util.ArrayList(expressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> expressionsBuilder_; - - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public java.util.List getExpressionsList() { - if (expressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expressions_); - } else { - return expressionsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public int getExpressionsCount() { - if (expressionsBuilder_ == null) { - return expressions_.size(); - } else { - return expressionsBuilder_.getCount(); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.set(index, value); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.set(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(value); - onChanged(); - } else { - expressionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(index, value); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions( - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder addAllExpressions( - java.lang.Iterable values) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, expressions_); - onChanged(); - } else { - expressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder clearExpressions() { - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expressionsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public Builder removeExpressions(int index) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.remove(index); - onChanged(); - } else { - expressionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder getExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( - int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); } else { - return expressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsOrBuilderList() { - if (expressionsBuilder_ != null) { - return expressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expressions_); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder addExpressionsBuilder() { - return getExpressionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder addExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( - expressions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - expressions_ = null; - } - return expressionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessFilterExpressionList) - private static final com.google.analytics.admin.v1alpha.AccessFilterExpressionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessFilterExpressionList(); - } - - public static com.google.analytics.admin.v1alpha.AccessFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java deleted file mode 100644 index 1884ca7aaaaf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessFilterExpressionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - java.util.List - getExpressionsList(); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpression getExpressions(int index); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - int getExpressionsCount(); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - java.util.List - getExpressionsOrBuilderList(); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessFilterExpression expressions = 1; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java deleted file mode 100644 index 21c5ac939ee1..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterExpressionOrBuilder.java +++ /dev/null @@ -1,122 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessFilterExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - * @return The andGroup. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionList getAndGroup(); - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList and_group = 1; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - * @return The orGroup. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionList getOrGroup(); - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpressionList or_group = 2; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - * @return The notExpression. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpression getNotExpression(); - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression not_expression = 3; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return Whether the accessFilter field is set. - */ - boolean hasAccessFilter(); - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - * @return The accessFilter. - */ - com.google.analytics.admin.v1alpha.AccessFilter getAccessFilter(); - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilter access_filter = 4; - */ - com.google.analytics.admin.v1alpha.AccessFilterOrBuilder getAccessFilterOrBuilder(); - - com.google.analytics.admin.v1alpha.AccessFilterExpression.OneExpressionCase getOneExpressionCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java deleted file mode 100644 index ffac2f94b9a4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessFilterOrBuilder.java +++ /dev/null @@ -1,139 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - * @return The stringFilter. - */ - com.google.analytics.admin.v1alpha.AccessStringFilter getStringFilter(); - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter string_filter = 2; - */ - com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder getStringFilterOrBuilder(); - - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - * @return The inListFilter. - */ - com.google.analytics.admin.v1alpha.AccessInListFilter getInListFilter(); - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessInListFilter in_list_filter = 3; - */ - com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder getInListFilterOrBuilder(); - - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - com.google.analytics.admin.v1alpha.AccessNumericFilter getNumericFilter(); - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter numeric_filter = 4; - */ - com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - com.google.analytics.admin.v1alpha.AccessBetweenFilter getBetweenFilter(); - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBetweenFilter between_filter = 5; - */ - com.google.analytics.admin.v1alpha.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - com.google.analytics.admin.v1alpha.AccessFilter.OneFilterCase getOneFilterCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java deleted file mode 100644 index 619acc2a6a7a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilter.java +++ /dev/null @@ -1,737 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The result needs to be in a list of string values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessInListFilter} - */ -public final class AccessInListFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessInListFilter) - AccessInListFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessInListFilter.newBuilder() to construct. - private AccessInListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessInListFilter() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessInListFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessInListFilter.class, com.google.analytics.admin.v1alpha.AccessInListFilter.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; - private boolean caseSensitive_ = false; - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 2; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - if (caseSensitive_ != false) { - output.writeBool(2, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, caseSensitive_); - } - size += 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.admin.v1alpha.AccessInListFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessInListFilter other = (com.google.analytics.admin.v1alpha.AccessInListFilter) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) return false; - if (!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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessInListFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessInListFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The result needs to be in a list of string values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessInListFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessInListFilter) - com.google.analytics.admin.v1alpha.AccessInListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessInListFilter.class, com.google.analytics.admin.v1alpha.AccessInListFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessInListFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter build() { - com.google.analytics.admin.v1alpha.AccessInListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessInListFilter result = new com.google.analytics.admin.v1alpha.AccessInListFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessInListFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessInListFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessInListFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessInListFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessInListFilter.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000001; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - case 16: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000001; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - values_.makeImmutable(); - return values_; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000002); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessInListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessInListFilter) - private static final com.google.analytics.admin.v1alpha.AccessInListFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessInListFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessInListFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessInListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java deleted file mode 100644 index 7bf9ab5ed1ba..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessInListFilterOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessInListFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessInListFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return A list containing the values. - */ - java.util.List - getValuesList(); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return The count of values. - */ - int getValuesCount(); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 2; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java deleted file mode 100644 index 8acee04c774c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetric.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The quantitative measurements of a report. For example, the metric
- * `accessCount` is the total number of data access records.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetric} - */ -public final class AccessMetric extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetric) - AccessMetricOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessMetric.newBuilder() to construct. - private AccessMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessMetric() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessMetric(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetric.class, com.google.analytics.admin.v1alpha.AccessMetric.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object metricName_ = ""; - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - 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(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - 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.admin.v1alpha.AccessMetric)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessMetric other = (com.google.analytics.admin.v1alpha.AccessMetric) obj; - - if (!getMetricName() - .equals(other.getMetricName())) return false; - if (!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) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessMetric parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessMetric parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessMetric parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessMetric prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The quantitative measurements of a report. For example, the metric
-   * `accessCount` is the total number of data access records.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetric} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetric) - com.google.analytics.admin.v1alpha.AccessMetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetric.class, com.google.analytics.admin.v1alpha.AccessMetric.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessMetric.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - metricName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric build() { - com.google.analytics.admin.v1alpha.AccessMetric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric buildPartial() { - com.google.analytics.admin.v1alpha.AccessMetric result = new com.google.analytics.admin.v1alpha.AccessMetric(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessMetric result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.metricName_ = metricName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessMetric) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetric)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetric other) { - if (other == com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()) return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - metricName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @return This builder for chaining. - */ - public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - metricName_ = value; - 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.admin.v1alpha.AccessMetric) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetric) - private static final com.google.analytics.admin.v1alpha.AccessMetric DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetric(); - } - - public static com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java deleted file mode 100644 index e524b28fff8e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeader.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Describes a metric column in the report. Visible metrics requested in a
- * report produce column entries within rows and MetricHeaders. However,
- * metrics used exclusively within filters or expressions do not produce columns
- * in a report; correspondingly, those metrics do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricHeader} - */ -public final class AccessMetricHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricHeader) - AccessMetricHeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessMetricHeader.newBuilder() to construct. - private AccessMetricHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessMetricHeader() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessMetricHeader(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetricHeader.class, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object metricName_ = ""; - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - 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(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - 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.admin.v1alpha.AccessMetricHeader)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessMetricHeader other = (com.google.analytics.admin.v1alpha.AccessMetricHeader) obj; - - if (!getMetricName() - .equals(other.getMetricName())) return false; - if (!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) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessMetricHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessMetricHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes a metric column in the report. Visible metrics requested in a
-   * report produce column entries within rows and MetricHeaders. However,
-   * metrics used exclusively within filters or expressions do not produce columns
-   * in a report; correspondingly, those metrics do not produce headers.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetricHeader) - com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetricHeader.class, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessMetricHeader.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - metricName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader build() { - com.google.analytics.admin.v1alpha.AccessMetricHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader buildPartial() { - com.google.analytics.admin.v1alpha.AccessMetricHeader result = new com.google.analytics.admin.v1alpha.AccessMetricHeader(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessMetricHeader result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.metricName_ = metricName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricHeader) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricHeader other) { - if (other == com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()) return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - metricName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @return This builder for chaining. - */ - public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - metricName_ = value; - 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.admin.v1alpha.AccessMetricHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricHeader) - private static final com.google.analytics.admin.v1alpha.AccessMetricHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricHeader(); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetricHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java deleted file mode 100644 index 662526fc300a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricHeaderOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessMetricHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetricHeader) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java deleted file mode 100644 index d0ba2d021706..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessMetricOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetric) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java deleted file mode 100644 index a3fa68120acb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValue.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The value of a metric.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricValue} - */ -public final class AccessMetricValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessMetricValue) - AccessMetricValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessMetricValue.newBuilder() to construct. - private AccessMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessMetricValue() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessMetricValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetricValue.class, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - 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(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - 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.admin.v1alpha.AccessMetricValue)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessMetricValue other = (com.google.analytics.admin.v1alpha.AccessMetricValue) obj; - - if (!getValue() - .equals(other.getValue())) return false; - if (!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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessMetricValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessMetricValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The value of a metric.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessMetricValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessMetricValue) - com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessMetricValue.class, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessMetricValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue build() { - com.google.analytics.admin.v1alpha.AccessMetricValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue buildPartial() { - com.google.analytics.admin.v1alpha.AccessMetricValue result = new com.google.analytics.admin.v1alpha.AccessMetricValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessMetricValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessMetricValue) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessMetricValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessMetricValue other) { - if (other == com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object value_ = ""; - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - 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.admin.v1alpha.AccessMetricValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessMetricValue) - private static final com.google.analytics.admin.v1alpha.AccessMetricValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessMetricValue(); - } - - public static com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetricValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java deleted file mode 100644 index cbb334eee0fb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessMetricValueOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessMetricValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessMetricValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java deleted file mode 100644 index d06c01a3cc82..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilter.java +++ /dev/null @@ -1,960 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Filters for numeric or date values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessNumericFilter} - */ -public final class AccessNumericFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessNumericFilter) - AccessNumericFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessNumericFilter.newBuilder() to construct. - private AccessNumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessNumericFilter() { - operation_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessNumericFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessNumericFilter.class, com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder.class); - } - - /** - *
-   * The operation applied to a numeric filter.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AccessNumericFilter.Operation} - */ - public enum Operation - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unspecified.
-     * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - OPERATION_UNSPECIFIED(0), - /** - *
-     * Equal
-     * 
- * - * EQUAL = 1; - */ - EQUAL(1), - /** - *
-     * Less than
-     * 
- * - * LESS_THAN = 2; - */ - LESS_THAN(2), - /** - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - LESS_THAN_OR_EQUAL(3), - /** - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 4; - */ - GREATER_THAN(4), - /** - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - GREATER_THAN_OR_EQUAL(5), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unspecified.
-     * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - public static final int OPERATION_UNSPECIFIED_VALUE = 0; - /** - *
-     * Equal
-     * 
- * - * EQUAL = 1; - */ - public static final int EQUAL_VALUE = 1; - /** - *
-     * Less than
-     * 
- * - * LESS_THAN = 2; - */ - public static final int LESS_THAN_VALUE = 2; - /** - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - public static final int LESS_THAN_OR_EQUAL_VALUE = 3; - /** - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 4; - */ - public static final int GREATER_THAN_VALUE = 4; - /** - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operation valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Operation forNumber(int value) { - switch (value) { - case 0: return OPERATION_UNSPECIFIED; - case 1: return EQUAL; - case 2: return LESS_THAN; - case 3: return LESS_THAN_OR_EQUAL; - case 4: return GREATER_THAN; - case 5: return GREATER_THAN_OR_EQUAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Operation> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operation findValueByNumber(int number) { - return Operation.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final Operation[] VALUES = values(); - - public static Operation valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessNumericFilter.Operation) - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private int operation_ = 0; - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override public int getOperationValue() { - return operation_; - } - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return The operation. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.forNumber(operation_); - return result == null ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.NumericValue value_; - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return value_ != null; - } - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return The value. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getValue() { - return value_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : value_; - } - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (operation_ != com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED.getNumber()) { - output.writeEnum(1, operation_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operation_ != com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operation_); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - size += 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.admin.v1alpha.AccessNumericFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessNumericFilter other = (com.google.analytics.admin.v1alpha.AccessNumericFilter) obj; - - if (operation_ != other.operation_) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) return false; - } - if (!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) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + operation_; - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessNumericFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessNumericFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Filters for numeric or date values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessNumericFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessNumericFilter) - com.google.analytics.admin.v1alpha.AccessNumericFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessNumericFilter.class, com.google.analytics.admin.v1alpha.AccessNumericFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessNumericFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - operation_ = 0; - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter build() { - com.google.analytics.admin.v1alpha.AccessNumericFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessNumericFilter result = new com.google.analytics.admin.v1alpha.AccessNumericFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessNumericFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.operation_ = operation_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessNumericFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessNumericFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessNumericFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessNumericFilter.getDefaultInstance()) return this; - if (other.operation_ != 0) { - setOperationValue(other.getOperationValue()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - operation_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int operation_ = 0; - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override public int getOperationValue() { - return operation_; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @param value The enum numeric value on the wire for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationValue(int value) { - operation_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation() { - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation result = com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.forNumber(operation_); - return result == null ? com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation.UNRECOGNIZED : result; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - operation_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return This builder for chaining. - */ - public Builder clearOperation() { - bitField0_ = (bitField0_ & ~0x00000001); - operation_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.NumericValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder> valueBuilder_; - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return Whether the value field is set. - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return The value. - */ - public com.google.analytics.admin.v1alpha.NumericValue getValue() { - if (valueBuilder_ == null) { - return value_ == null ? com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder setValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - } else { - valueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder setValue( - com.google.analytics.admin.v1alpha.NumericValue.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder mergeValue(com.google.analytics.admin.v1alpha.NumericValue value) { - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) { - getValueBuilder().mergeFrom(value); - } else { - value_ = value; - } - } else { - valueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValue.Builder getValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance() : value_; - } - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.NumericValue, com.google.analytics.admin.v1alpha.NumericValue.Builder, com.google.analytics.admin.v1alpha.NumericValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessNumericFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessNumericFilter) - private static final com.google.analytics.admin.v1alpha.AccessNumericFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessNumericFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessNumericFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessNumericFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java deleted file mode 100644 index f58677ada113..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessNumericFilterOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessNumericFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessNumericFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return The enum numeric value on the wire for operation. - */ - int getOperationValue(); - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessNumericFilter.Operation operation = 1; - * @return The operation. - */ - com.google.analytics.admin.v1alpha.AccessNumericFilter.Operation getOperation(); - - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - * @return The value. - */ - com.google.analytics.admin.v1alpha.NumericValue getValue(); - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1alpha.NumericValue value = 2; - */ - com.google.analytics.admin.v1alpha.NumericValueOrBuilder getValueOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java deleted file mode 100644 index f3b73e33e88a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderBy.java +++ /dev/null @@ -1,2596 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Order bys define how rows will be sorted in the response. For example,
- * ordering rows by descending access count is one ordering, and ordering rows
- * by the country string is a different ordering.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy} - */ -public final class AccessOrderBy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy) - AccessOrderByOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessOrderBy.newBuilder() to construct. - private AccessOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessOrderBy() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessOrderBy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.class, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder.class); - } - - public interface MetricOrderByOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); - } - /** - *
-   * Sorts by metric values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} - */ - public static final class MetricOrderBy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - MetricOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricOrderBy.newBuilder() to construct. - private MetricOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetricOrderBy() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MetricOrderBy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.class, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object metricName_ = ""; - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - 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(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - 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.admin.v1alpha.AccessOrderBy.MetricOrderBy)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy other = (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) obj; - - if (!getMetricName() - .equals(other.getMetricName())) return false; - if (!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) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Sorts by metric values.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.class, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - metricName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy build() { - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy buildPartial() { - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result = new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.metricName_ = metricName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy other) { - if (other == com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance()) return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - metricName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @return This builder for chaining. - */ - public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - metricName_ = value; - 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.admin.v1alpha.AccessOrderBy.MetricOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) - private static final com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy(); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DimensionOrderByOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString - getDimensionNameBytes(); - - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The enum numeric value on the wire for orderType. - */ - int getOrderTypeValue(); - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The orderType. - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType getOrderType(); - } - /** - *
-   * Sorts by dimension values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} - */ - public static final class DimensionOrderBy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - DimensionOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionOrderBy.newBuilder() to construct. - private DimensionOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DimensionOrderBy() { - dimensionName_ = ""; - orderType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DimensionOrderBy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.class, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder.class); - } - - /** - *
-     * Rule to order the string dimension values by.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType} - */ - public enum OrderType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - ORDER_TYPE_UNSPECIFIED(0), - /** - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - ALPHANUMERIC(1), - /** - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - CASE_INSENSITIVE_ALPHANUMERIC(2), - /** - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - NUMERIC(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - public static final int ORDER_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - public static final int ALPHANUMERIC_VALUE = 1; - /** - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - public static final int CASE_INSENSITIVE_ALPHANUMERIC_VALUE = 2; - /** - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - public static final int NUMERIC_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OrderType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static OrderType forNumber(int value) { - switch (value) { - case 0: return ORDER_TYPE_UNSPECIFIED; - case 1: return ALPHANUMERIC; - case 2: return CASE_INSENSITIVE_ALPHANUMERIC; - case 3: return NUMERIC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OrderType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OrderType findValueByNumber(int number) { - return OrderType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDescriptor().getEnumTypes().get(0); - } - - private static final OrderType[] VALUES = values(); - - public static OrderType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OrderType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType) - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object dimensionName_ = ""; - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_TYPE_FIELD_NUMBER = 2; - private int orderType_ = 0; - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override public int getOrderTypeValue() { - return orderType_; - } - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The orderType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType getOrderType() { - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.forNumber(orderType_); - return result == null ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - if (orderType_ != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, orderType_); - } - 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_); - } - if (orderType_ != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, orderType_); - } - 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.admin.v1alpha.AccessOrderBy.DimensionOrderBy)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy other = (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) obj; - - if (!getDimensionName() - .equals(other.getDimensionName())) return false; - if (orderType_ != other.orderType_) return false; - if (!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 = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + orderType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Sorts by dimension values.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.class, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dimensionName_ = ""; - orderType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy build() { - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy buildPartial() { - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result = new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dimensionName_ = dimensionName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.orderType_ = orderType_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy other) { - if (other == com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.orderType_ != 0) { - setOrderTypeValue(other.getOrderTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - dimensionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - orderType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object dimensionName_ = ""; - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - dimensionName_ = getDefaultInstance().getDimensionName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int orderType_ = 0; - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override public int getOrderTypeValue() { - return orderType_; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param value The enum numeric value on the wire for orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderTypeValue(int value) { - orderType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType getOrderType() { - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType result = com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.forNumber(orderType_); - return result == null ? com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED : result; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param value The orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderType(com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - orderType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return This builder for chaining. - */ - public Builder clearOrderType() { - bitField0_ = (bitField0_ & ~0x00000002); - orderType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) - private static final com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy(); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int oneOrderByCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneOrderBy_; - public enum OneOrderByCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - METRIC(1), - DIMENSION(2), - ONEORDERBY_NOT_SET(0); - private final int value; - private OneOrderByCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneOrderByCase valueOf(int value) { - return forNumber(value); - } - - public static OneOrderByCase forNumber(int value) { - switch (value) { - case 1: return METRIC; - case 2: return DIMENSION; - case 0: return ONEORDERBY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneOrderByCase - getOneOrderByCase() { - return OneOrderByCase.forNumber( - oneOrderByCase_); - } - - public static final int METRIC_FIELD_NUMBER = 1; - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - - public static final int DIMENSION_FIELD_NUMBER = 2; - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - - public static final int DESC_FIELD_NUMBER = 3; - private boolean desc_ = false; - /** - *
-   * If true, sorts by descending order. If false or unspecified, sorts in
-   * ascending order.
-   * 
- * - * bool desc = 3; - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oneOrderByCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_); - } - if (desc_ != false) { - output.writeBool(3, desc_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneOrderByCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_); - } - if (desc_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, desc_); - } - size += 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.admin.v1alpha.AccessOrderBy)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessOrderBy other = (com.google.analytics.admin.v1alpha.AccessOrderBy) obj; - - if (getDesc() - != other.getDesc()) return false; - if (!getOneOrderByCase().equals(other.getOneOrderByCase())) return false; - switch (oneOrderByCase_) { - case 1: - if (!getMetric() - .equals(other.getMetric())) return false; - break; - case 2: - if (!getDimension() - .equals(other.getDimension())) return false; - break; - case 0: - default: - } - if (!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) + DESC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDesc()); - switch (oneOrderByCase_) { - case 1: - hash = (37 * hash) + METRIC_FIELD_NUMBER; - hash = (53 * hash) + getMetric().hashCode(); - break; - case 2: - hash = (37 * hash) + DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getDimension().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Order bys define how rows will be sorted in the response. For example,
-   * ordering rows by descending access count is one ordering, and ordering rows
-   * by the country string is a different ordering.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessOrderBy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessOrderBy) - com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessOrderBy.class, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessOrderBy.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (metricBuilder_ != null) { - metricBuilder_.clear(); - } - if (dimensionBuilder_ != null) { - dimensionBuilder_.clear(); - } - desc_ = false; - oneOrderByCase_ = 0; - oneOrderBy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy build() { - com.google.analytics.admin.v1alpha.AccessOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy buildPartial() { - com.google.analytics.admin.v1alpha.AccessOrderBy result = new com.google.analytics.admin.v1alpha.AccessOrderBy(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessOrderBy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.desc_ = desc_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AccessOrderBy result) { - result.oneOrderByCase_ = oneOrderByCase_; - result.oneOrderBy_ = this.oneOrderBy_; - if (oneOrderByCase_ == 1 && - metricBuilder_ != null) { - result.oneOrderBy_ = metricBuilder_.build(); - } - if (oneOrderByCase_ == 2 && - dimensionBuilder_ != null) { - result.oneOrderBy_ = dimensionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessOrderBy) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessOrderBy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessOrderBy other) { - if (other == com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()) return this; - if (other.getDesc() != false) { - setDesc(other.getDesc()); - } - switch (other.getOneOrderByCase()) { - case METRIC: { - mergeMetric(other.getMetric()); - break; - } - case DIMENSION: { - mergeDimension(other.getDimension()); - break; - } - case ONEORDERBY_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getMetricFieldBuilder().getBuilder(), - extensionRegistry); - oneOrderByCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getDimensionFieldBuilder().getBuilder(), - extensionRegistry); - oneOrderByCase_ = 2; - break; - } // case 18 - case 24: { - desc_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneOrderByCase_ = 0; - private java.lang.Object oneOrderBy_; - public OneOrderByCase - getOneOrderByCase() { - return OneOrderByCase.forNumber( - oneOrderByCase_); - } - - public Builder clearOneOrderBy() { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> metricBuilder_; - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 1) { - return metricBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - metricBuilder_.setMessage(value); - } - oneOrderByCase_ = 1; - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric( - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder builderForValue) { - if (metricBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - metricBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 1; - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder mergeMetric(com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1 && - oneOrderBy_ != com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance()) { - oneOrderBy_ = com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.newBuilder((com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_) - .mergeFrom(value).buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 1) { - metricBuilder_.mergeFrom(value); - } else { - metricBuilder_.setMessage(value); - } - } - oneOrderByCase_ = 1; - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder clearMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - metricBuilder_.clear(); - } - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder getMetricBuilder() { - return getMetricFieldBuilder().getBuilder(); - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { - return metricBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder> - getMetricFieldBuilder() { - if (metricBuilder_ == null) { - if (!(oneOrderByCase_ == 1)) { - oneOrderBy_ = com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 1; - onChanged(); - return metricBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> dimensionBuilder_; - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 2) { - return dimensionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension(com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - dimensionBuilder_.setMessage(value); - } - oneOrderByCase_ = 2; - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension( - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder builderForValue) { - if (dimensionBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - dimensionBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 2; - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder mergeDimension(com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2 && - oneOrderBy_ != com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance()) { - oneOrderBy_ = com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.newBuilder((com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_) - .mergeFrom(value).buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 2) { - dimensionBuilder_.mergeFrom(value); - } else { - dimensionBuilder_.setMessage(value); - } - } - oneOrderByCase_ = 2; - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder clearDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - dimensionBuilder_.clear(); - } - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder getDimensionBuilder() { - return getDimensionFieldBuilder().getBuilder(); - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder() { - if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { - return dimensionBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder> - getDimensionFieldBuilder() { - if (dimensionBuilder_ == null) { - if (!(oneOrderByCase_ == 2)) { - oneOrderBy_ = com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - dimensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder>( - (com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 2; - onChanged(); - return dimensionBuilder_; - } - - private boolean desc_ ; - /** - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - /** - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * @param value The desc to set. - * @return This builder for chaining. - */ - public Builder setDesc(boolean value) { - - desc_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * @return This builder for chaining. - */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000004); - desc_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessOrderBy) - private static final com.google.analytics.admin.v1alpha.AccessOrderBy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessOrderBy(); - } - - public static com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java deleted file mode 100644 index 35b0c173949f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessOrderByOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessOrderByOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return Whether the metric field is set. - */ - boolean hasMetric(); - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - * @return The metric. - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy getMetric(); - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderBy metric = 1; - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); - - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return Whether the dimension field is set. - */ - boolean hasDimension(); - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return The dimension. - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy getDimension(); - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - com.google.analytics.admin.v1alpha.AccessOrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder(); - - /** - *
-   * If true, sorts by descending order. If false or unspecified, sorts in
-   * ascending order.
-   * 
- * - * bool desc = 3; - * @return The desc. - */ - boolean getDesc(); - - com.google.analytics.admin.v1alpha.AccessOrderBy.OneOrderByCase getOneOrderByCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java deleted file mode 100644 index 157d2ac4bd31..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuota.java +++ /dev/null @@ -1,1646 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Current state of all quotas for this Analytics property. If any quota for a
- * property is exhausted, all requests to that property will return Resource
- * Exhausted errors.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuota} - */ -public final class AccessQuota extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuota) - AccessQuotaOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessQuota.newBuilder() to construct. - private AccessQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessQuota() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessQuota(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessQuota.class, com.google.analytics.admin.v1alpha.AccessQuota.Builder.class); - } - - public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return Whether the tokensPerDay field is set. - */ - @java.lang.Override - public boolean hasTokensPerDay() { - return tokensPerDay_ != null; - } - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return The tokensPerDay. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { - return tokensPerDay_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { - return tokensPerDay_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } - - public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return Whether the tokensPerHour field is set. - */ - @java.lang.Override - public boolean hasTokensPerHour() { - return tokensPerHour_ != null; - } - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return The tokensPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { - return tokensPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { - return tokensPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } - - public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return Whether the concurrentRequests field is set. - */ - @java.lang.Override - public boolean hasConcurrentRequests() { - return concurrentRequests_ != null; - } - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return The concurrentRequests. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { - return concurrentRequests_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - return concurrentRequests_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } - - public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - @java.lang.Override - public boolean hasServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ != null; - } - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return The serverErrorsPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getServerErrorsPerProjectPerHourOrBuilder() { - return serverErrorsPerProjectPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } - - public static final int TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerProjectPerHour_; - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return Whether the tokensPerProjectPerHour field is set. - */ - @java.lang.Override - public boolean hasTokensPerProjectPerHour() { - return tokensPerProjectPerHour_ != null; - } - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return The tokensPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerProjectPerHour() { - return tokensPerProjectPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder() { - return tokensPerProjectPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tokensPerDay_ != null) { - output.writeMessage(1, getTokensPerDay()); - } - if (tokensPerHour_ != null) { - output.writeMessage(2, getTokensPerHour()); - } - if (concurrentRequests_ != null) { - output.writeMessage(3, getConcurrentRequests()); - } - if (serverErrorsPerProjectPerHour_ != null) { - output.writeMessage(4, getServerErrorsPerProjectPerHour()); - } - if (tokensPerProjectPerHour_ != null) { - output.writeMessage(5, getTokensPerProjectPerHour()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tokensPerDay_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTokensPerDay()); - } - if (tokensPerHour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTokensPerHour()); - } - if (concurrentRequests_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConcurrentRequests()); - } - if (serverErrorsPerProjectPerHour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getServerErrorsPerProjectPerHour()); - } - if (tokensPerProjectPerHour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTokensPerProjectPerHour()); - } - 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.admin.v1alpha.AccessQuota)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessQuota other = (com.google.analytics.admin.v1alpha.AccessQuota) obj; - - if (hasTokensPerDay() != other.hasTokensPerDay()) return false; - if (hasTokensPerDay()) { - if (!getTokensPerDay() - .equals(other.getTokensPerDay())) return false; - } - if (hasTokensPerHour() != other.hasTokensPerHour()) return false; - if (hasTokensPerHour()) { - if (!getTokensPerHour() - .equals(other.getTokensPerHour())) return false; - } - if (hasConcurrentRequests() != other.hasConcurrentRequests()) return false; - if (hasConcurrentRequests()) { - if (!getConcurrentRequests() - .equals(other.getConcurrentRequests())) return false; - } - if (hasServerErrorsPerProjectPerHour() != other.hasServerErrorsPerProjectPerHour()) return false; - if (hasServerErrorsPerProjectPerHour()) { - if (!getServerErrorsPerProjectPerHour() - .equals(other.getServerErrorsPerProjectPerHour())) return false; - } - if (hasTokensPerProjectPerHour() != other.hasTokensPerProjectPerHour()) return false; - if (hasTokensPerProjectPerHour()) { - if (!getTokensPerProjectPerHour() - .equals(other.getTokensPerProjectPerHour())) 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 (hasTokensPerDay()) { - hash = (37 * hash) + TOKENS_PER_DAY_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerDay().hashCode(); - } - if (hasTokensPerHour()) { - hash = (37 * hash) + TOKENS_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerHour().hashCode(); - } - if (hasConcurrentRequests()) { - hash = (37 * hash) + CONCURRENT_REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getConcurrentRequests().hashCode(); - } - if (hasServerErrorsPerProjectPerHour()) { - hash = (37 * hash) + SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getServerErrorsPerProjectPerHour().hashCode(); - } - if (hasTokensPerProjectPerHour()) { - hash = (37 * hash) + TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerProjectPerHour().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessQuota parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessQuota parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessQuota parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessQuota prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Current state of all quotas for this Analytics property. If any quota for a
-   * property is exhausted, all requests to that property will return Resource
-   * Exhausted errors.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuota} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessQuota) - com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessQuota.class, com.google.analytics.admin.v1alpha.AccessQuota.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessQuota.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tokensPerDay_ = null; - if (tokensPerDayBuilder_ != null) { - tokensPerDayBuilder_.dispose(); - tokensPerDayBuilder_ = null; - } - tokensPerHour_ = null; - if (tokensPerHourBuilder_ != null) { - tokensPerHourBuilder_.dispose(); - tokensPerHourBuilder_ = null; - } - concurrentRequests_ = null; - if (concurrentRequestsBuilder_ != null) { - concurrentRequestsBuilder_.dispose(); - concurrentRequestsBuilder_ = null; - } - serverErrorsPerProjectPerHour_ = null; - if (serverErrorsPerProjectPerHourBuilder_ != null) { - serverErrorsPerProjectPerHourBuilder_.dispose(); - serverErrorsPerProjectPerHourBuilder_ = null; - } - tokensPerProjectPerHour_ = null; - if (tokensPerProjectPerHourBuilder_ != null) { - tokensPerProjectPerHourBuilder_.dispose(); - tokensPerProjectPerHourBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota build() { - com.google.analytics.admin.v1alpha.AccessQuota result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota buildPartial() { - com.google.analytics.admin.v1alpha.AccessQuota result = new com.google.analytics.admin.v1alpha.AccessQuota(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessQuota result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tokensPerDay_ = tokensPerDayBuilder_ == null - ? tokensPerDay_ - : tokensPerDayBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tokensPerHour_ = tokensPerHourBuilder_ == null - ? tokensPerHour_ - : tokensPerHourBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.concurrentRequests_ = concurrentRequestsBuilder_ == null - ? concurrentRequests_ - : concurrentRequestsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHourBuilder_ == null - ? serverErrorsPerProjectPerHour_ - : serverErrorsPerProjectPerHourBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.tokensPerProjectPerHour_ = tokensPerProjectPerHourBuilder_ == null - ? tokensPerProjectPerHour_ - : tokensPerProjectPerHourBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessQuota) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuota)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuota other) { - if (other == com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance()) return this; - if (other.hasTokensPerDay()) { - mergeTokensPerDay(other.getTokensPerDay()); - } - if (other.hasTokensPerHour()) { - mergeTokensPerHour(other.getTokensPerHour()); - } - if (other.hasConcurrentRequests()) { - mergeConcurrentRequests(other.getConcurrentRequests()); - } - if (other.hasServerErrorsPerProjectPerHour()) { - mergeServerErrorsPerProjectPerHour(other.getServerErrorsPerProjectPerHour()); - } - if (other.hasTokensPerProjectPerHour()) { - mergeTokensPerProjectPerHour(other.getTokensPerProjectPerHour()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getTokensPerDayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getTokensPerHourFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getConcurrentRequestsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getTokensPerProjectPerHourFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerDay_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> tokensPerDayBuilder_; - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return Whether the tokensPerDay field is set. - */ - public boolean hasTokensPerDay() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return The tokensPerDay. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - return tokensPerDay_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } else { - return tokensPerDayBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerDay_ = value; - } else { - tokensPerDayBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = builderForValue.build(); - } else { - tokensPerDayBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder mergeTokensPerDay(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - tokensPerDay_ != null && - tokensPerDay_ != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { - getTokensPerDayBuilder().mergeFrom(value); - } else { - tokensPerDay_ = value; - } - } else { - tokensPerDayBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder clearTokensPerDay() { - bitField0_ = (bitField0_ & ~0x00000001); - tokensPerDay_ = null; - if (tokensPerDayBuilder_ != null) { - tokensPerDayBuilder_.dispose(); - tokensPerDayBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerDayBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTokensPerDayFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { - if (tokensPerDayBuilder_ != null) { - return tokensPerDayBuilder_.getMessageOrBuilder(); - } else { - return tokensPerDay_ == null ? - com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getTokensPerDayFieldBuilder() { - if (tokensPerDayBuilder_ == null) { - tokensPerDayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getTokensPerDay(), - getParentForChildren(), - isClean()); - tokensPerDay_ = null; - } - return tokensPerDayBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> tokensPerHourBuilder_; - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return Whether the tokensPerHour field is set. - */ - public boolean hasTokensPerHour() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return The tokensPerHour. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - return tokensPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } else { - return tokensPerHourBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerHour_ = value; - } else { - tokensPerHourBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = builderForValue.build(); - } else { - tokensPerHourBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder mergeTokensPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - tokensPerHour_ != null && - tokensPerHour_ != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { - getTokensPerHourBuilder().mergeFrom(value); - } else { - tokensPerHour_ = value; - } - } else { - tokensPerHourBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder clearTokensPerHour() { - bitField0_ = (bitField0_ & ~0x00000002); - tokensPerHour_ = null; - if (tokensPerHourBuilder_ != null) { - tokensPerHourBuilder_.dispose(); - tokensPerHourBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerHourBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTokensPerHourFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { - if (tokensPerHourBuilder_ != null) { - return tokensPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerHour_ == null ? - com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getTokensPerHourFieldBuilder() { - if (tokensPerHourBuilder_ == null) { - tokensPerHourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getTokensPerHour(), - getParentForChildren(), - isClean()); - tokensPerHour_ = null; - } - return tokensPerHourBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus concurrentRequests_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> concurrentRequestsBuilder_; - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return Whether the concurrentRequests field is set. - */ - public boolean hasConcurrentRequests() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return The concurrentRequests. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - return concurrentRequests_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } else { - return concurrentRequestsBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - concurrentRequests_ = value; - } else { - concurrentRequestsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = builderForValue.build(); - } else { - concurrentRequestsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder mergeConcurrentRequests(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - concurrentRequests_ != null && - concurrentRequests_ != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { - getConcurrentRequestsBuilder().mergeFrom(value); - } else { - concurrentRequests_ = value; - } - } else { - concurrentRequestsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder clearConcurrentRequests() { - bitField0_ = (bitField0_ & ~0x00000004); - concurrentRequests_ = null; - if (concurrentRequestsBuilder_ != null) { - concurrentRequestsBuilder_.dispose(); - concurrentRequestsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getConcurrentRequestsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getConcurrentRequestsFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - if (concurrentRequestsBuilder_ != null) { - return concurrentRequestsBuilder_.getMessageOrBuilder(); - } else { - return concurrentRequests_ == null ? - com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getConcurrentRequestsFieldBuilder() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequestsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getConcurrentRequests(), - getParentForChildren(), - isClean()); - concurrentRequests_ = null; - } - return concurrentRequestsBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus serverErrorsPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> serverErrorsPerProjectPerHourBuilder_; - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - public boolean hasServerErrorsPerProjectPerHour() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return The serverErrorsPerProjectPerHour. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - return serverErrorsPerProjectPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } else { - return serverErrorsPerProjectPerHourBuilder_.getMessage(); - } - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder setServerErrorsPerProjectPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serverErrorsPerProjectPerHour_ = value; - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = builderForValue.build(); - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder mergeServerErrorsPerProjectPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - serverErrorsPerProjectPerHour_ != null && - serverErrorsPerProjectPerHour_ != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { - getServerErrorsPerProjectPerHourBuilder().mergeFrom(value); - } else { - serverErrorsPerProjectPerHour_ = value; - } - } else { - serverErrorsPerProjectPerHourBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder clearServerErrorsPerProjectPerHour() { - bitField0_ = (bitField0_ & ~0x00000008); - serverErrorsPerProjectPerHour_ = null; - if (serverErrorsPerProjectPerHourBuilder_ != null) { - serverErrorsPerProjectPerHourBuilder_.dispose(); - serverErrorsPerProjectPerHourBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getServerErrorsPerProjectPerHourBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(); - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getServerErrorsPerProjectPerHourOrBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ != null) { - return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return serverErrorsPerProjectPerHour_ == null ? - com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getServerErrorsPerProjectPerHourFieldBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getServerErrorsPerProjectPerHour(), - getParentForChildren(), - isClean()); - serverErrorsPerProjectPerHour_ = null; - } - return serverErrorsPerProjectPerHourBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessQuotaStatus tokensPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> tokensPerProjectPerHourBuilder_; - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return Whether the tokensPerProjectPerHour field is set. - */ - public boolean hasTokensPerProjectPerHour() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return The tokensPerProjectPerHour. - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerProjectPerHour() { - if (tokensPerProjectPerHourBuilder_ == null) { - return tokensPerProjectPerHour_ == null ? com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } else { - return tokensPerProjectPerHourBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder setTokensPerProjectPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerProjectPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerProjectPerHour_ = value; - } else { - tokensPerProjectPerHourBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder setTokensPerProjectPerHour( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHour_ = builderForValue.build(); - } else { - tokensPerProjectPerHourBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder mergeTokensPerProjectPerHour(com.google.analytics.admin.v1alpha.AccessQuotaStatus value) { - if (tokensPerProjectPerHourBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - tokensPerProjectPerHour_ != null && - tokensPerProjectPerHour_ != com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) { - getTokensPerProjectPerHourBuilder().mergeFrom(value); - } else { - tokensPerProjectPerHour_ = value; - } - } else { - tokensPerProjectPerHourBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder clearTokensPerProjectPerHour() { - bitField0_ = (bitField0_ & ~0x00000010); - tokensPerProjectPerHour_ = null; - if (tokensPerProjectPerHourBuilder_ != null) { - tokensPerProjectPerHourBuilder_.dispose(); - tokensPerProjectPerHourBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder getTokensPerProjectPerHourBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getTokensPerProjectPerHourFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder() { - if (tokensPerProjectPerHourBuilder_ != null) { - return tokensPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerProjectPerHour_ == null ? - com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder> - getTokensPerProjectPerHourFieldBuilder() { - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuotaStatus, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder, com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder>( - getTokensPerProjectPerHour(), - getParentForChildren(), - isClean()); - tokensPerProjectPerHour_ = null; - } - return tokensPerProjectPerHourBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessQuota) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuota) - private static final com.google.analytics.admin.v1alpha.AccessQuota DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuota(); - } - - public static com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessQuota parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java deleted file mode 100644 index 76682a8534e8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaOrBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessQuotaOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessQuota) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return Whether the tokensPerDay field is set. - */ - boolean hasTokensPerDay(); - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - * @return The tokensPerDay. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerDay(); - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_day = 1; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder(); - - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return Whether the tokensPerHour field is set. - */ - boolean hasTokensPerHour(); - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - * @return The tokensPerHour. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerHour(); - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_hour = 2; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder(); - - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return Whether the concurrentRequests field is set. - */ - boolean hasConcurrentRequests(); - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - * @return The concurrentRequests. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getConcurrentRequests(); - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus concurrent_requests = 3; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder(); - - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - boolean hasServerErrorsPerProjectPerHour(); - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return The serverErrorsPerProjectPerHour. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getServerErrorsPerProjectPerHour(); - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getServerErrorsPerProjectPerHourOrBuilder(); - - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return Whether the tokensPerProjectPerHour field is set. - */ - boolean hasTokensPerProjectPerHour(); - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return The tokensPerProjectPerHour. - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatus getTokensPerProjectPerHour(); - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java deleted file mode 100644 index 7b74b576b638..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatus.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Current state for a particular quota group.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuotaStatus} - */ -public final class AccessQuotaStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessQuotaStatus) - AccessQuotaStatusOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessQuotaStatus.newBuilder() to construct. - private AccessQuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessQuotaStatus() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessQuotaStatus(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.class, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder.class); - } - - public static final int CONSUMED_FIELD_NUMBER = 1; - private int consumed_ = 0; - /** - *
-   * Quota consumed by this request.
-   * 
- * - * int32 consumed = 1; - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - - public static final int REMAINING_FIELD_NUMBER = 2; - private int remaining_ = 0; - /** - *
-   * Quota remaining after this request.
-   * 
- * - * int32 remaining = 2; - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consumed_ != 0) { - output.writeInt32(1, consumed_); - } - if (remaining_ != 0) { - output.writeInt32(2, remaining_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consumed_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, consumed_); - } - if (remaining_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, remaining_); - } - size += 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.admin.v1alpha.AccessQuotaStatus)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessQuotaStatus other = (com.google.analytics.admin.v1alpha.AccessQuotaStatus) obj; - - if (getConsumed() - != other.getConsumed()) return false; - if (getRemaining() - != other.getRemaining()) return false; - if (!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) + CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + getConsumed(); - hash = (37 * hash) + REMAINING_FIELD_NUMBER; - hash = (53 * hash) + getRemaining(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessQuotaStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Current state for a particular quota group.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessQuotaStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessQuotaStatus) - com.google.analytics.admin.v1alpha.AccessQuotaStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessQuotaStatus.class, com.google.analytics.admin.v1alpha.AccessQuotaStatus.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessQuotaStatus.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - consumed_ = 0; - remaining_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus build() { - com.google.analytics.admin.v1alpha.AccessQuotaStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus buildPartial() { - com.google.analytics.admin.v1alpha.AccessQuotaStatus result = new com.google.analytics.admin.v1alpha.AccessQuotaStatus(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessQuotaStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.consumed_ = consumed_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.remaining_ = remaining_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessQuotaStatus) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessQuotaStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessQuotaStatus other) { - if (other == com.google.analytics.admin.v1alpha.AccessQuotaStatus.getDefaultInstance()) return this; - if (other.getConsumed() != 0) { - setConsumed(other.getConsumed()); - } - if (other.getRemaining() != 0) { - setRemaining(other.getRemaining()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - consumed_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - remaining_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int consumed_ ; - /** - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - /** - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * @param value The consumed to set. - * @return This builder for chaining. - */ - public Builder setConsumed(int value) { - - consumed_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * @return This builder for chaining. - */ - public Builder clearConsumed() { - bitField0_ = (bitField0_ & ~0x00000001); - consumed_ = 0; - onChanged(); - return this; - } - - private int remaining_ ; - /** - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - /** - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * @param value The remaining to set. - * @return This builder for chaining. - */ - public Builder setRemaining(int value) { - - remaining_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * @return This builder for chaining. - */ - public Builder clearRemaining() { - bitField0_ = (bitField0_ & ~0x00000002); - remaining_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessQuotaStatus) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessQuotaStatus) - private static final com.google.analytics.admin.v1alpha.AccessQuotaStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessQuotaStatus(); - } - - public static com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessQuotaStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java deleted file mode 100644 index 529e856779b8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessQuotaStatusOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessQuotaStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessQuotaStatus) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Quota consumed by this request.
-   * 
- * - * int32 consumed = 1; - * @return The consumed. - */ - int getConsumed(); - - /** - *
-   * Quota remaining after this request.
-   * 
- * - * int32 remaining = 2; - * @return The remaining. - */ - int getRemaining(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java deleted file mode 100644 index b9834f1cfb9f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessReportProto.java +++ /dev/null @@ -1,350 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public final class AccessReportProto { - private AccessReportProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/analytics/admin/v1alpha/access_" + - "report.proto\022\036google.analytics.admin.v1a" + - "lpha\")\n\017AccessDimension\022\026\n\016dimension_nam" + - "e\030\001 \001(\t\"#\n\014AccessMetric\022\023\n\013metric_name\030\001" + - " \001(\t\"7\n\017AccessDateRange\022\022\n\nstart_date\030\001 " + - "\001(\t\022\020\n\010end_date\030\002 \001(\t\"\344\002\n\026AccessFilterEx" + - "pression\022O\n\tand_group\030\001 \001(\0132:.google.ana" + - "lytics.admin.v1alpha.AccessFilterExpress" + - "ionListH\000\022N\n\010or_group\030\002 \001(\0132:.google.ana" + - "lytics.admin.v1alpha.AccessFilterExpress" + - "ionListH\000\022P\n\016not_expression\030\003 \001(\01326.goog" + - "le.analytics.admin.v1alpha.AccessFilterE" + - "xpressionH\000\022E\n\raccess_filter\030\004 \001(\0132,.goo" + - "gle.analytics.admin.v1alpha.AccessFilter" + - "H\000B\020\n\016one_expression\"i\n\032AccessFilterExpr" + - "essionList\022K\n\013expressions\030\001 \003(\01326.google" + - ".analytics.admin.v1alpha.AccessFilterExp" + - "ression\"\351\002\n\014AccessFilter\022K\n\rstring_filte" + - "r\030\002 \001(\01322.google.analytics.admin.v1alpha" + - ".AccessStringFilterH\000\022L\n\016in_list_filter\030" + - "\003 \001(\01322.google.analytics.admin.v1alpha.A" + - "ccessInListFilterH\000\022M\n\016numeric_filter\030\004 " + - "\001(\01323.google.analytics.admin.v1alpha.Acc" + - "essNumericFilterH\000\022M\n\016between_filter\030\005 \001" + - "(\01323.google.analytics.admin.v1alpha.Acce" + - "ssBetweenFilterH\000\022\022\n\nfield_name\030\001 \001(\tB\014\n" + - "\none_filter\"\225\002\n\022AccessStringFilter\022P\n\nma" + - "tch_type\030\001 \001(\0162<.google.analytics.admin." + - "v1alpha.AccessStringFilter.MatchType\022\r\n\005" + - "value\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n\t" + - "MatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n" + - "\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003" + - "\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTI" + - "AL_REGEXP\020\006\"<\n\022AccessInListFilter\022\016\n\006val" + - "ues\030\001 \003(\t\022\026\n\016case_sensitive\030\002 \001(\010\"\254\002\n\023Ac" + - "cessNumericFilter\022P\n\toperation\030\001 \001(\0162=.g" + - "oogle.analytics.admin.v1alpha.AccessNume" + - "ricFilter.Operation\022;\n\005value\030\002 \001(\0132,.goo" + - "gle.analytics.admin.v1alpha.NumericValue" + - "\"\205\001\n\tOperation\022\031\n\025OPERATION_UNSPECIFIED\020" + - "\000\022\t\n\005EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN" + - "_OR_EQUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025GREATER" + - "_THAN_OR_EQUAL\020\005\"\227\001\n\023AccessBetweenFilter" + - "\022@\n\nfrom_value\030\001 \001(\0132,.google.analytics." + - "admin.v1alpha.NumericValue\022>\n\010to_value\030\002" + - " \001(\0132,.google.analytics.admin.v1alpha.Nu" + - "mericValue\"J\n\014NumericValue\022\025\n\013int64_valu" + - "e\030\001 \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone" + - "_value\"\355\003\n\rAccessOrderBy\022M\n\006metric\030\001 \001(\013" + - "2;.google.analytics.admin.v1alpha.Access" + - "OrderBy.MetricOrderByH\000\022S\n\tdimension\030\002 \001" + - "(\0132>.google.analytics.admin.v1alpha.Acce" + - "ssOrderBy.DimensionOrderByH\000\022\014\n\004desc\030\003 \001" + - "(\010\032$\n\rMetricOrderBy\022\023\n\013metric_name\030\001 \001(\t" + - "\032\363\001\n\020DimensionOrderBy\022\026\n\016dimension_name\030" + - "\001 \001(\t\022\\\n\norder_type\030\002 \001(\0162H.google.analy" + - "tics.admin.v1alpha.AccessOrderBy.Dimensi" + - "onOrderBy.OrderType\"i\n\tOrderType\022\032\n\026ORDE" + - "R_TYPE_UNSPECIFIED\020\000\022\020\n\014ALPHANUMERIC\020\001\022!" + - "\n\035CASE_INSENSITIVE_ALPHANUMERIC\020\002\022\013\n\007NUM" + - "ERIC\020\003B\016\n\014one_order_by\"/\n\025AccessDimensio" + - "nHeader\022\026\n\016dimension_name\030\001 \001(\t\")\n\022Acces" + - "sMetricHeader\022\023\n\013metric_name\030\001 \001(\t\"\245\001\n\tA" + - "ccessRow\022N\n\020dimension_values\030\001 \003(\01324.goo" + - "gle.analytics.admin.v1alpha.AccessDimens" + - "ionValue\022H\n\rmetric_values\030\002 \003(\01321.google" + - ".analytics.admin.v1alpha.AccessMetricVal" + - "ue\"%\n\024AccessDimensionValue\022\r\n\005value\030\001 \001(" + - "\t\"\"\n\021AccessMetricValue\022\r\n\005value\030\001 \001(\t\"\253\003" + - "\n\013AccessQuota\022I\n\016tokens_per_day\030\001 \001(\01321." + - "google.analytics.admin.v1alpha.AccessQuo" + - "taStatus\022J\n\017tokens_per_hour\030\002 \001(\01321.goog" + - "le.analytics.admin.v1alpha.AccessQuotaSt" + - "atus\022N\n\023concurrent_requests\030\003 \001(\01321.goog" + - "le.analytics.admin.v1alpha.AccessQuotaSt" + - "atus\022]\n\"server_errors_per_project_per_ho" + - "ur\030\004 \001(\01321.google.analytics.admin.v1alph" + - "a.AccessQuotaStatus\022V\n\033tokens_per_projec" + - "t_per_hour\030\005 \001(\01321.google.analytics.admi" + - "n.v1alpha.AccessQuotaStatus\"8\n\021AccessQuo" + - "taStatus\022\020\n\010consumed\030\001 \001(\005\022\021\n\tremaining\030" + - "\002 \001(\005By\n\"com.google.analytics.admin.v1al" + - "phaB\021AccessReportProtoP\001Z>cloud.google.c" + - "om/go/analytics/admin/apiv1alpha/adminpb" + - ";adminpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_AccessDimension_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDimension_descriptor, - new java.lang.String[] { "DimensionName", }); - internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_AccessMetric_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessMetric_descriptor, - new java.lang.String[] { "MetricName", }); - internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_AccessDateRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDateRange_descriptor, - new java.lang.String[] { "StartDate", "EndDate", }); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessFilterExpression_descriptor, - new java.lang.String[] { "AndGroup", "OrGroup", "NotExpression", "AccessFilter", "OneExpression", }); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessFilterExpressionList_descriptor, - new java.lang.String[] { "Expressions", }); - internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1alpha_AccessFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessFilter_descriptor, - new java.lang.String[] { "StringFilter", "InListFilter", "NumericFilter", "BetweenFilter", "FieldName", "OneFilter", }); - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor, - new java.lang.String[] { "MatchType", "Value", "CaseSensitive", }); - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessInListFilter_descriptor, - new java.lang.String[] { "Values", "CaseSensitive", }); - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessNumericFilter_descriptor, - new java.lang.String[] { "Operation", "Value", }); - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessBetweenFilter_descriptor, - new java.lang.String[] { "FromValue", "ToValue", }); - internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor, - new java.lang.String[] { "Int64Value", "DoubleValue", "OneValue", }); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor, - new java.lang.String[] { "Metric", "Dimension", "Desc", "OneOrderBy", }); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor = - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_MetricOrderBy_descriptor, - new java.lang.String[] { "MetricName", }); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor = - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessOrderBy_DimensionOrderBy_descriptor, - new java.lang.String[] { "DimensionName", "OrderType", }); - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDimensionHeader_descriptor, - new java.lang.String[] { "DimensionName", }); - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessMetricHeader_descriptor, - new java.lang.String[] { "MetricName", }); - internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor, - new java.lang.String[] { "DimensionValues", "MetricValues", }); - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessDimensionValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessMetricValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1alpha_AccessQuota_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessQuota_descriptor, - new java.lang.String[] { "TokensPerDay", "TokensPerHour", "ConcurrentRequests", "ServerErrorsPerProjectPerHour", "TokensPerProjectPerHour", }); - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessQuotaStatus_descriptor, - new java.lang.String[] { "Consumed", "Remaining", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java deleted file mode 100644 index 89e62ec96e4f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRow.java +++ /dev/null @@ -1,1347 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Access report data for each row.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessRow} - */ -public final class AccessRow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessRow) - AccessRowOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessRow.newBuilder() to construct. - private AccessRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessRow() { - dimensionValues_ = java.util.Collections.emptyList(); - metricValues_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessRow(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessRow.class, com.google.analytics.admin.v1alpha.AccessRow.Builder.class); - } - - public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List dimensionValues_; - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List getDimensionValuesList() { - return dimensionValues_; - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List - getDimensionValuesOrBuilderList() { - return dimensionValues_; - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public int getDimensionValuesCount() { - return dimensionValues_.size(); - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index) { - return dimensionValues_.get(index); - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - return dimensionValues_.get(index); - } - - public static final int METRIC_VALUES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List metricValues_; - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List getMetricValuesList() { - return metricValues_; - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List - getMetricValuesOrBuilderList() { - return metricValues_; - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public int getMetricValuesCount() { - return metricValues_.size(); - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index) { - return metricValues_.get(index); - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( - int index) { - return metricValues_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < dimensionValues_.size(); i++) { - output.writeMessage(1, dimensionValues_.get(i)); - } - for (int i = 0; i < metricValues_.size(); i++) { - output.writeMessage(2, metricValues_.get(i)); - } - 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)); - } - for (int i = 0; i < metricValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metricValues_.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.admin.v1alpha.AccessRow)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessRow other = (com.google.analytics.admin.v1alpha.AccessRow) obj; - - if (!getDimensionValuesList() - .equals(other.getDimensionValuesList())) return false; - if (!getMetricValuesList() - .equals(other.getMetricValuesList())) return false; - if (!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(); - } - if (getMetricValuesCount() > 0) { - hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getMetricValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessRow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessRow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessRow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessRow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Access report data for each row.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessRow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessRow) - com.google.analytics.admin.v1alpha.AccessRowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessRow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessRow.class, com.google.analytics.admin.v1alpha.AccessRow.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessRow.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - } else { - dimensionValues_ = null; - dimensionValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - } else { - metricValues_ = null; - metricValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessRow_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRow getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRow build() { - com.google.analytics.admin.v1alpha.AccessRow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRow buildPartial() { - com.google.analytics.admin.v1alpha.AccessRow result = new com.google.analytics.admin.v1alpha.AccessRow(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.AccessRow result) { - if (dimensionValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionValues_ = dimensionValues_; - } else { - result.dimensionValues_ = dimensionValuesBuilder_.build(); - } - if (metricValuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricValues_ = java.util.Collections.unmodifiableList(metricValues_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricValues_ = metricValues_; - } else { - result.metricValues_ = metricValuesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessRow result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessRow) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessRow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessRow other) { - if (other == com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()) return this; - if (dimensionValuesBuilder_ == null) { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValues_.isEmpty()) { - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionValuesIsMutable(); - dimensionValues_.addAll(other.dimensionValues_); - } - onChanged(); - } - } else { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValuesBuilder_.isEmpty()) { - dimensionValuesBuilder_.dispose(); - dimensionValuesBuilder_ = null; - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDimensionValuesFieldBuilder() : null; - } else { - dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); - } - } - } - if (metricValuesBuilder_ == null) { - if (!other.metricValues_.isEmpty()) { - if (metricValues_.isEmpty()) { - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricValuesIsMutable(); - metricValues_.addAll(other.metricValues_); - } - onChanged(); - } - } else { - if (!other.metricValues_.isEmpty()) { - if (metricValuesBuilder_.isEmpty()) { - metricValuesBuilder_.dispose(); - metricValuesBuilder_ = null; - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - metricValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricValuesFieldBuilder() : null; - } else { - metricValuesBuilder_.addAllMessages(other.metricValues_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccessDimensionValue m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessDimensionValue.parser(), - extensionRegistry); - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(m); - } else { - dimensionValuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1alpha.AccessMetricValue m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessMetricValue.parser(), - extensionRegistry); - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(m); - } else { - metricValuesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List dimensionValues_ = - java.util.Collections.emptyList(); - private void ensureDimensionValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = new java.util.ArrayList(dimensionValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimensionValue, com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> dimensionValuesBuilder_; - - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public java.util.List getDimensionValuesList() { - if (dimensionValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionValues_); - } else { - return dimensionValuesBuilder_.getMessageList(); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public int getDimensionValuesCount() { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.size(); - } else { - return dimensionValuesBuilder_.getCount(); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessage(index); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.admin.v1alpha.AccessDimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues(com.google.analytics.admin.v1alpha.AccessDimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.admin.v1alpha.AccessDimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder addAllDimensionValues( - java.lang.Iterable values) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dimensionValues_); - onChanged(); - } else { - dimensionValuesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder clearDimensionValues() { - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionValuesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public Builder removeDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.remove(index); - onChanged(); - } else { - dimensionValuesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder getDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); } else { - return dimensionValuesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesOrBuilderList() { - if (dimensionValuesBuilder_ != null) { - return dimensionValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionValues_); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()); - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessDimensionValue.getDefaultInstance()); - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimensionValue, com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimensionValue, com.google.analytics.admin.v1alpha.AccessDimensionValue.Builder, com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder>( - dimensionValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionValues_ = null; - } - return dimensionValuesBuilder_; - } - - private java.util.List metricValues_ = - java.util.Collections.emptyList(); - private void ensureMetricValuesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricValues_ = new java.util.ArrayList(metricValues_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetricValue, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder> metricValuesBuilder_; - - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public java.util.List getMetricValuesList() { - if (metricValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricValues_); - } else { - return metricValuesBuilder_.getMessageList(); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public int getMetricValuesCount() { - if (metricValuesBuilder_ == null) { - return metricValues_.size(); - } else { - return metricValuesBuilder_.getCount(); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index) { - if (metricValuesBuilder_ == null) { - return metricValues_.get(index); - } else { - return metricValuesBuilder_.getMessage(index); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder setMetricValues( - int index, com.google.analytics.admin.v1alpha.AccessMetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.set(index, value); - onChanged(); - } else { - metricValuesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder setMetricValues( - int index, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.set(index, builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues(com.google.analytics.admin.v1alpha.AccessMetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.add(value); - onChanged(); - } else { - metricValuesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues( - int index, com.google.analytics.admin.v1alpha.AccessMetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.add(index, value); - onChanged(); - } else { - metricValuesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues( - com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues( - int index, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(index, builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder addAllMetricValues( - java.lang.Iterable values) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricValues_); - onChanged(); - } else { - metricValuesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder clearMetricValues() { - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricValuesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public Builder removeMetricValues(int index) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.remove(index); - onChanged(); - } else { - metricValuesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder getMetricValuesBuilder( - int index) { - return getMetricValuesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( - int index) { - if (metricValuesBuilder_ == null) { - return metricValues_.get(index); } else { - return metricValuesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesOrBuilderList() { - if (metricValuesBuilder_ != null) { - return metricValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricValues_); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder addMetricValuesBuilder() { - return getMetricValuesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()); - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricValue.Builder addMetricValuesBuilder( - int index) { - return getMetricValuesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessMetricValue.getDefaultInstance()); - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesBuilderList() { - return getMetricValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetricValue, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder> - getMetricValuesFieldBuilder() { - if (metricValuesBuilder_ == null) { - metricValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetricValue, com.google.analytics.admin.v1alpha.AccessMetricValue.Builder, com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder>( - metricValues_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricValues_ = null; - } - return metricValuesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessRow) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessRow) - private static final com.google.analytics.admin.v1alpha.AccessRow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessRow(); - } - - public static com.google.analytics.admin.v1alpha.AccessRow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessRow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java deleted file mode 100644 index b67313fba599..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessRowOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessRowOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessRow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - java.util.List - getDimensionValuesList(); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - com.google.analytics.admin.v1alpha.AccessDimensionValue getDimensionValues(int index); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - int getDimensionValuesCount(); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - java.util.List - getDimensionValuesOrBuilderList(); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionValue dimension_values = 1; - */ - com.google.analytics.admin.v1alpha.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( - int index); - - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - java.util.List - getMetricValuesList(); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - com.google.analytics.admin.v1alpha.AccessMetricValue getMetricValues(int index); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - int getMetricValuesCount(); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - java.util.List - getMetricValuesOrBuilderList(); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricValue metric_values = 2; - */ - com.google.analytics.admin.v1alpha.AccessMetricValueOrBuilder getMetricValuesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java deleted file mode 100644 index 1921c31d0bf3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilter.java +++ /dev/null @@ -1,995 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The filter for strings.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessStringFilter} - */ -public final class AccessStringFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccessStringFilter) - AccessStringFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessStringFilter.newBuilder() to construct. - private AccessStringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessStringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessStringFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessStringFilter.class, com.google.analytics.admin.v1alpha.AccessStringFilter.Builder.class); - } - - /** - *
-   * The match type of a string filter.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AccessStringFilter.MatchType} - */ - public enum MatchType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unspecified
-     * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - *
-     * Exact match of the string value.
-     * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - *
-     * Begins with the string value.
-     * 
- * - * BEGINS_WITH = 2; - */ - BEGINS_WITH(2), - /** - *
-     * Ends with the string value.
-     * 
- * - * ENDS_WITH = 3; - */ - ENDS_WITH(3), - /** - *
-     * Contains the string value.
-     * 
- * - * CONTAINS = 4; - */ - CONTAINS(4), - /** - *
-     * Full match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - *
-     * Partial match for the regular expression with the string value.
-     * 
- * - * PARTIAL_REGEXP = 6; - */ - PARTIAL_REGEXP(6), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unspecified
-     * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Exact match of the string value.
-     * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - *
-     * Begins with the string value.
-     * 
- * - * BEGINS_WITH = 2; - */ - public static final int BEGINS_WITH_VALUE = 2; - /** - *
-     * Ends with the string value.
-     * 
- * - * ENDS_WITH = 3; - */ - public static final int ENDS_WITH_VALUE = 3; - /** - *
-     * Contains the string value.
-     * 
- * - * CONTAINS = 4; - */ - public static final int CONTAINS_VALUE = 4; - /** - *
-     * Full match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - *
-     * Partial match for the regular expression with the string value.
-     * 
- * - * PARTIAL_REGEXP = 6; - */ - public static final int PARTIAL_REGEXP_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: return MATCH_TYPE_UNSPECIFIED; - case 1: return EXACT; - case 2: return BEGINS_WITH; - case 3: return ENDS_WITH; - case 4: return CONTAINS; - case 5: return FULL_REGEXP; - case 6: return PARTIAL_REGEXP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AccessStringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_ = 0; - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return The matchType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; - private boolean caseSensitive_ = false; - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 3; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (matchType_ != com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (caseSensitive_ != false) { - output.writeBool(3, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ != com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); - } - size += 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.admin.v1alpha.AccessStringFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccessStringFilter other = (com.google.analytics.admin.v1alpha.AccessStringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) return false; - if (!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) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccessStringFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccessStringFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The filter for strings.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccessStringFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccessStringFilter) - com.google.analytics.admin.v1alpha.AccessStringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessStringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccessStringFilter.class, com.google.analytics.admin.v1alpha.AccessStringFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccessStringFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - matchType_ = 0; - value_ = ""; - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_AccessStringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter build() { - com.google.analytics.admin.v1alpha.AccessStringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter buildPartial() { - com.google.analytics.admin.v1alpha.AccessStringFilter result = new com.google.analytics.admin.v1alpha.AccessStringFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccessStringFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.matchType_ = matchType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccessStringFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccessStringFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccessStringFilter other) { - if (other == com.google.analytics.admin.v1alpha.AccessStringFilter.getDefaultInstance()) return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - matchType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int matchType_ = 0; - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - matchType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType result = com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType.UNRECOGNIZED : result; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType(com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return This builder for chaining. - */ - public Builder clearMatchType() { - bitField0_ = (bitField0_ & ~0x00000001); - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000004); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccessStringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccessStringFilter) - private static final com.google.analytics.admin.v1alpha.AccessStringFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccessStringFilter(); - } - - public static com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessStringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessStringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java deleted file mode 100644 index 22033296b3a4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccessStringFilterOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccessStringFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccessStringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return The enum numeric value on the wire for matchType. - */ - int getMatchTypeValue(); - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessStringFilter.MatchType match_type = 1; - * @return The matchType. - */ - com.google.analytics.admin.v1alpha.AccessStringFilter.MatchType getMatchType(); - - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 3; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java deleted file mode 100644 index a790842cfde2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java +++ /dev/null @@ -1,1464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing a Google Analytics account.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.Account} - */ -public final class Account extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.Account) - AccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use Account.newBuilder() to construct. - private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Account() { - name_ = ""; - displayName_ = ""; - regionCode_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Account(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Account_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.Account.class, com.google.analytics.admin.v1alpha.Account.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object regionCode_ = ""; - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The regionCode. - */ - @java.lang.Override - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - 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(); - regionCode_ = s; - return s; - } - } - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The bytes for regionCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELETED_FIELD_NUMBER = 6; - private boolean deleted_ = false; - /** - *
-   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-   * accounts are excluded from List results unless specifically requested.
-   * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleted. - */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; - } - - 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 (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionCode_); - } - if (deleted_ != false) { - output.writeBool(6, deleted_); - } - 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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionCode_); - } - if (deleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, deleted_); - } - 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.admin.v1alpha.Account)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.Account other = (com.google.analytics.admin.v1alpha.Account) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; - if (getDeleted() - != other.getDeleted()) 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(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getRegionCode().hashCode(); - hash = (37 * hash) + DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeleted()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.Account parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.Account parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.Account parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.Account parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.Account prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a Google Analytics account.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.Account} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.Account) - com.google.analytics.admin.v1alpha.AccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Account_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.Account.class, com.google.analytics.admin.v1alpha.Account.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.Account.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - displayName_ = ""; - regionCode_ = ""; - deleted_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Account_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account build() { - com.google.analytics.admin.v1alpha.Account result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account buildPartial() { - com.google.analytics.admin.v1alpha.Account result = new com.google.analytics.admin.v1alpha.Account(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.Account result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.regionCode_ = regionCode_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.deleted_ = deleted_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.Account) { - return mergeFrom((com.google.analytics.admin.v1alpha.Account)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.Account other) { - if (other == com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getRegionCode().isEmpty()) { - regionCode_ = other.regionCode_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getDeleted() != false) { - setDeleted(other.getDeleted()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - deleted_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.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. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object regionCode_ = ""; - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @return The regionCode. - */ - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regionCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @return The bytes for regionCode. - */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @param value The regionCode to set. - * @return This builder for chaining. - */ - public Builder setRegionCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - regionCode_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @return This builder for chaining. - */ - public Builder clearRegionCode() { - regionCode_ = getDefaultInstance().getRegionCode(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @param value The bytes for regionCode to set. - * @return This builder for chaining. - */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - regionCode_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean deleted_ ; - /** - *
-     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-     * accounts are excluded from List results unless specifically requested.
-     * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleted. - */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; - } - /** - *
-     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-     * accounts are excluded from List results unless specifically requested.
-     * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The deleted to set. - * @return This builder for chaining. - */ - public Builder setDeleted(boolean value) { - - deleted_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-     * accounts are excluded from List results unless specifically requested.
-     * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearDeleted() { - bitField0_ = (bitField0_ & ~0x00000020); - deleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.Account) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.Account) - private static final com.google.analytics.admin.v1alpha.Account DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.Account(); - } - - public static com.google.analytics.admin.v1alpha.Account getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Account parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java deleted file mode 100644 index 9f1c370c1261..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.Account) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The regionCode. - */ - java.lang.String getRegionCode(); - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The bytes for regionCode. - */ - com.google.protobuf.ByteString - getRegionCodeBytes(); - - /** - *
-   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-   * accounts are excluded from List results unless specifically requested.
-   * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleted. - */ - boolean getDeleted(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java deleted file mode 100644 index f055482b4222..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java +++ /dev/null @@ -1,1381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A virtual resource representing an overview of an account and
- * all its child GA4 properties.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccountSummary} - */ -public final class AccountSummary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AccountSummary) - AccountSummaryOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccountSummary.newBuilder() to construct. - private AccountSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccountSummary() { - name_ = ""; - account_ = ""; - displayName_ = ""; - propertySummaries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccountSummary(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccountSummary.class, com.google.analytics.admin.v1alpha.AccountSummary.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @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; - } - } - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @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 ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object account_ = ""; - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_SUMMARIES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List propertySummaries_; - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public java.util.List getPropertySummariesList() { - return propertySummaries_; - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public java.util.List - getPropertySummariesOrBuilderList() { - return propertySummaries_; - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public int getPropertySummariesCount() { - return propertySummaries_.size(); - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertySummary getPropertySummaries(int index) { - return propertySummaries_.get(index); - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder getPropertySummariesOrBuilder( - int index) { - return propertySummaries_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - for (int i = 0; i < propertySummaries_.size(); i++) { - output.writeMessage(4, propertySummaries_.get(i)); - } - 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(account_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - for (int i = 0; i < propertySummaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, propertySummaries_.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.admin.v1alpha.AccountSummary)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AccountSummary other = (com.google.analytics.admin.v1alpha.AccountSummary) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAccount() - .equals(other.getAccount())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getPropertySummariesList() - .equals(other.getPropertySummariesList())) 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) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (getPropertySummariesCount() > 0) { - hash = (37 * hash) + PROPERTY_SUMMARIES_FIELD_NUMBER; - hash = (53 * hash) + getPropertySummariesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AccountSummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AccountSummary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AccountSummary parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AccountSummary prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A virtual resource representing an overview of an account and
-   * all its child GA4 properties.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AccountSummary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AccountSummary) - com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AccountSummary.class, com.google.analytics.admin.v1alpha.AccountSummary.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AccountSummary.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - account_ = ""; - displayName_ = ""; - if (propertySummariesBuilder_ == null) { - propertySummaries_ = java.util.Collections.emptyList(); - } else { - propertySummaries_ = null; - propertySummariesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountSummary getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountSummary build() { - com.google.analytics.admin.v1alpha.AccountSummary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountSummary buildPartial() { - com.google.analytics.admin.v1alpha.AccountSummary result = new com.google.analytics.admin.v1alpha.AccountSummary(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.AccountSummary result) { - if (propertySummariesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - propertySummaries_ = java.util.Collections.unmodifiableList(propertySummaries_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.propertySummaries_ = propertySummaries_; - } else { - result.propertySummaries_ = propertySummariesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AccountSummary result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.account_ = account_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AccountSummary) { - return mergeFrom((com.google.analytics.admin.v1alpha.AccountSummary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AccountSummary other) { - if (other == com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (propertySummariesBuilder_ == null) { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummaries_.isEmpty()) { - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePropertySummariesIsMutable(); - propertySummaries_.addAll(other.propertySummaries_); - } - onChanged(); - } - } else { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummariesBuilder_.isEmpty()) { - propertySummariesBuilder_.dispose(); - propertySummariesBuilder_ = null; - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000008); - propertySummariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertySummariesFieldBuilder() : null; - } else { - propertySummariesBuilder_.addAllMessages(other.propertySummaries_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - account_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.analytics.admin.v1alpha.PropertySummary m = - input.readMessage( - com.google.analytics.admin.v1alpha.PropertySummary.parser(), - extensionRegistry); - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.add(m); - } else { - propertySummariesBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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; - } - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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; - } - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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; - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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 account_ = ""; - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The account. - */ - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @param value The account to set. - * @return This builder for chaining. - */ - public Builder setAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - account_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearAccount() { - account_ = getDefaultInstance().getAccount(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - account_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List propertySummaries_ = - java.util.Collections.emptyList(); - private void ensurePropertySummariesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - propertySummaries_ = new java.util.ArrayList(propertySummaries_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.PropertySummary, com.google.analytics.admin.v1alpha.PropertySummary.Builder, com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder> propertySummariesBuilder_; - - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public java.util.List getPropertySummariesList() { - if (propertySummariesBuilder_ == null) { - return java.util.Collections.unmodifiableList(propertySummaries_); - } else { - return propertySummariesBuilder_.getMessageList(); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public int getPropertySummariesCount() { - if (propertySummariesBuilder_ == null) { - return propertySummaries_.size(); - } else { - return propertySummariesBuilder_.getCount(); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1alpha.PropertySummary getPropertySummaries(int index) { - if (propertySummariesBuilder_ == null) { - return propertySummaries_.get(index); - } else { - return propertySummariesBuilder_.getMessage(index); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder setPropertySummaries( - int index, com.google.analytics.admin.v1alpha.PropertySummary value) { - if (propertySummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertySummariesIsMutable(); - propertySummaries_.set(index, value); - onChanged(); - } else { - propertySummariesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder setPropertySummaries( - int index, com.google.analytics.admin.v1alpha.PropertySummary.Builder builderForValue) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.set(index, builderForValue.build()); - onChanged(); - } else { - propertySummariesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries(com.google.analytics.admin.v1alpha.PropertySummary value) { - if (propertySummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertySummariesIsMutable(); - propertySummaries_.add(value); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries( - int index, com.google.analytics.admin.v1alpha.PropertySummary value) { - if (propertySummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertySummariesIsMutable(); - propertySummaries_.add(index, value); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries( - com.google.analytics.admin.v1alpha.PropertySummary.Builder builderForValue) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.add(builderForValue.build()); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries( - int index, com.google.analytics.admin.v1alpha.PropertySummary.Builder builderForValue) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.add(index, builderForValue.build()); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder addAllPropertySummaries( - java.lang.Iterable values) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propertySummaries_); - onChanged(); - } else { - propertySummariesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder clearPropertySummaries() { - if (propertySummariesBuilder_ == null) { - propertySummaries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - propertySummariesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public Builder removePropertySummaries(int index) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.remove(index); - onChanged(); - } else { - propertySummariesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1alpha.PropertySummary.Builder getPropertySummariesBuilder( - int index) { - return getPropertySummariesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder getPropertySummariesOrBuilder( - int index) { - if (propertySummariesBuilder_ == null) { - return propertySummaries_.get(index); } else { - return propertySummariesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public java.util.List - getPropertySummariesOrBuilderList() { - if (propertySummariesBuilder_ != null) { - return propertySummariesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(propertySummaries_); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1alpha.PropertySummary.Builder addPropertySummariesBuilder() { - return getPropertySummariesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance()); - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1alpha.PropertySummary.Builder addPropertySummariesBuilder( - int index) { - return getPropertySummariesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance()); - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - public java.util.List - getPropertySummariesBuilderList() { - return getPropertySummariesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.PropertySummary, com.google.analytics.admin.v1alpha.PropertySummary.Builder, com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder> - getPropertySummariesFieldBuilder() { - if (propertySummariesBuilder_ == null) { - propertySummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.PropertySummary, com.google.analytics.admin.v1alpha.PropertySummary.Builder, com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder>( - propertySummaries_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - propertySummaries_ = null; - } - return propertySummariesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AccountSummary) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AccountSummary) - private static final com.google.analytics.admin.v1alpha.AccountSummary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AccountSummary(); - } - - public static com.google.analytics.admin.v1alpha.AccountSummary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountSummary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java deleted file mode 100644 index 7e3379d5b602..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface AccountSummaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AccountSummary) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The account. - */ - java.lang.String getAccount(); - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - com.google.protobuf.ByteString - getAccountBytes(); - - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - java.util.List - getPropertySummariesList(); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - com.google.analytics.admin.v1alpha.PropertySummary getPropertySummaries(int index); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - int getPropertySummariesCount(); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - java.util.List - getPropertySummariesOrBuilderList(); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.PropertySummary property_summaries = 4; - */ - com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder getPropertySummariesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java deleted file mode 100644 index ff3b41b21de5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequest.java +++ /dev/null @@ -1,790 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for AcknowledgeUserDataCollection RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} - */ -public final class AcknowledgeUserDataCollectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - AcknowledgeUserDataCollectionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use AcknowledgeUserDataCollectionRequest.newBuilder() to construct. - private AcknowledgeUserDataCollectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AcknowledgeUserDataCollectionRequest() { - property_ = ""; - acknowledgement_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AcknowledgeUserDataCollectionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object acknowledgement_ = ""; - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acknowledgement. - */ - @java.lang.Override - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } - } - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for acknowledgement. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgement_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acknowledgement_); - } - size += 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.admin.v1alpha.AcknowledgeUserDataCollectionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest other = (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) return false; - if (!getAcknowledgement() - .equals(other.getAcknowledgement())) return false; - if (!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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getAcknowledgement().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for AcknowledgeUserDataCollection RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.class, com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - acknowledgement_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest build() { - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest buildPartial() { - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result = new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.acknowledgement_ = acknowledgement_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest other) { - if (other == com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAcknowledgement().isEmpty()) { - acknowledgement_ = other.acknowledgement_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - acknowledgement_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object acknowledgement_ = ""; - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acknowledgement. - */ - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for acknowledgement. - */ - public com.google.protobuf.ByteString - getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgement( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - acknowledgement_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearAcknowledgement() { - acknowledgement_ = getDefaultInstance().getAcknowledgement(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgementBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - acknowledgement_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - private static final com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest(); - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeUserDataCollectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java deleted file mode 100644 index 6bdd382231e6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionRequestOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface AcknowledgeUserDataCollectionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acknowledgement. - */ - java.lang.String getAcknowledgement(); - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for acknowledgement. - */ - com.google.protobuf.ByteString - getAcknowledgementBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java deleted file mode 100644 index f6593ebcd78f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponse.java +++ /dev/null @@ -1,406 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for AcknowledgeUserDataCollection RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} - */ -public final class AcknowledgeUserDataCollectionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) - AcknowledgeUserDataCollectionResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use AcknowledgeUserDataCollectionResponse.newBuilder() to construct. - private AcknowledgeUserDataCollectionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AcknowledgeUserDataCollectionResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AcknowledgeUserDataCollectionResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - 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.admin.v1alpha.AcknowledgeUserDataCollectionResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse other = (com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) 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.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for AcknowledgeUserDataCollection RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.class, com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse build() { - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse buildPartial() { - com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse result = new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse other) { - if (other == com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) - private static final com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse(); - } - - public static com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeUserDataCollectionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java deleted file mode 100644 index 6c0aab20c0c3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AcknowledgeUserDataCollectionResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface AcknowledgeUserDataCollectionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AcknowledgeUserDataCollectionResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java deleted file mode 100644 index 833f11734574..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Types of actions that may change a resource.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.ActionType} - */ -public enum ActionType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Action type unknown or not specified.
-   * 
- * - * ACTION_TYPE_UNSPECIFIED = 0; - */ - ACTION_TYPE_UNSPECIFIED(0), - /** - *
-   * Resource was created in this change.
-   * 
- * - * CREATED = 1; - */ - CREATED(1), - /** - *
-   * Resource was updated in this change.
-   * 
- * - * UPDATED = 2; - */ - UPDATED(2), - /** - *
-   * Resource was deleted in this change.
-   * 
- * - * DELETED = 3; - */ - DELETED(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Action type unknown or not specified.
-   * 
- * - * ACTION_TYPE_UNSPECIFIED = 0; - */ - public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Resource was created in this change.
-   * 
- * - * CREATED = 1; - */ - public static final int CREATED_VALUE = 1; - /** - *
-   * Resource was updated in this change.
-   * 
- * - * UPDATED = 2; - */ - public static final int UPDATED_VALUE = 2; - /** - *
-   * Resource was deleted in this change.
-   * 
- * - * DELETED = 3; - */ - public static final int DELETED_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 ActionType 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 ActionType forNumber(int value) { - switch (value) { - case 0: return ACTION_TYPE_UNSPECIFIED; - case 1: return CREATED; - case 2: return UPDATED; - case 3: return DELETED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ActionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ActionType findValueByNumber(int number) { - return ActionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(3); - } - - private static final ActionType[] VALUES = values(); - - public static ActionType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ActionType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActionType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java deleted file mode 100644 index 3ec53b37e2b0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java +++ /dev/null @@ -1,168 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Different kinds of actors that can make changes to Google Analytics
- * resources.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.ActorType} - */ -public enum ActorType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Unknown or unspecified actor type.
-   * 
- * - * ACTOR_TYPE_UNSPECIFIED = 0; - */ - ACTOR_TYPE_UNSPECIFIED(0), - /** - *
-   * Changes made by the user specified in actor_email.
-   * 
- * - * USER = 1; - */ - USER(1), - /** - *
-   * Changes made by the Google Analytics system.
-   * 
- * - * SYSTEM = 2; - */ - SYSTEM(2), - /** - *
-   * Changes made by Google Analytics support team staff.
-   * 
- * - * SUPPORT = 3; - */ - SUPPORT(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Unknown or unspecified actor type.
-   * 
- * - * ACTOR_TYPE_UNSPECIFIED = 0; - */ - public static final int ACTOR_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Changes made by the user specified in actor_email.
-   * 
- * - * USER = 1; - */ - public static final int USER_VALUE = 1; - /** - *
-   * Changes made by the Google Analytics system.
-   * 
- * - * SYSTEM = 2; - */ - public static final int SYSTEM_VALUE = 2; - /** - *
-   * Changes made by Google Analytics support team staff.
-   * 
- * - * SUPPORT = 3; - */ - public static final int SUPPORT_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 ActorType 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 ActorType forNumber(int value) { - switch (value) { - case 0: return ACTOR_TYPE_UNSPECIFIED; - case 1: return USER; - case 2: return SYSTEM; - case 3: return SUPPORT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ActorType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ActorType findValueByNumber(int number) { - return ActorType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(2); - } - - private static final ActorType[] VALUES = values(); - - public static ActorType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ActorType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActorType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLink.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLink.java deleted file mode 100644 index e537829af819..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLink.java +++ /dev/null @@ -1,762 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A link between a GA4 Property and an AdSense for Content ad client.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AdSenseLink} - */ -public final class AdSenseLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AdSenseLink) - AdSenseLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use AdSenseLink.newBuilder() to construct. - private AdSenseLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AdSenseLink() { - name_ = ""; - adClientCode_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AdSenseLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AdSenseLink.class, com.google.analytics.admin.v1alpha.AdSenseLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. The resource name for this AdSense Link resource.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/6789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name for this AdSense Link resource.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/6789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AD_CLIENT_CODE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object adClientCode_ = ""; - /** - *
-   * Immutable. The AdSense ad client code that the GA4 property is linked to.
-   * Example format: "ca-pub-1234567890"
-   * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The adClientCode. - */ - @java.lang.Override - public java.lang.String getAdClientCode() { - java.lang.Object ref = adClientCode_; - 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(); - adClientCode_ = s; - return s; - } - } - /** - *
-   * Immutable. The AdSense ad client code that the GA4 property is linked to.
-   * Example format: "ca-pub-1234567890"
-   * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for adClientCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAdClientCodeBytes() { - java.lang.Object ref = adClientCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - adClientCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(adClientCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, adClientCode_); - } - 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(adClientCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, adClientCode_); - } - 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.admin.v1alpha.AdSenseLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AdSenseLink other = (com.google.analytics.admin.v1alpha.AdSenseLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAdClientCode() - .equals(other.getAdClientCode())) 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) + AD_CLIENT_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAdClientCode().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AdSenseLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AdSenseLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AdSenseLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AdSenseLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 Property and an AdSense for Content ad client.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AdSenseLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AdSenseLink) - com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AdSenseLink.class, com.google.analytics.admin.v1alpha.AdSenseLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AdSenseLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - adClientCode_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink build() { - com.google.analytics.admin.v1alpha.AdSenseLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink buildPartial() { - com.google.analytics.admin.v1alpha.AdSenseLink result = new com.google.analytics.admin.v1alpha.AdSenseLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AdSenseLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.adClientCode_ = adClientCode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AdSenseLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.AdSenseLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AdSenseLink other) { - if (other == com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAdClientCode().isEmpty()) { - adClientCode_ = other.adClientCode_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - adClientCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. The resource name for this AdSense Link resource.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/6789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name for this AdSense Link resource.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/6789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name for this AdSense Link resource.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/6789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name for this AdSense Link resource.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/6789
-     * 
- * - * string name = 1 [(.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. The resource name for this AdSense Link resource.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/6789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object adClientCode_ = ""; - /** - *
-     * Immutable. The AdSense ad client code that the GA4 property is linked to.
-     * Example format: "ca-pub-1234567890"
-     * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The adClientCode. - */ - public java.lang.String getAdClientCode() { - java.lang.Object ref = adClientCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - adClientCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The AdSense ad client code that the GA4 property is linked to.
-     * Example format: "ca-pub-1234567890"
-     * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for adClientCode. - */ - public com.google.protobuf.ByteString - getAdClientCodeBytes() { - java.lang.Object ref = adClientCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - adClientCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The AdSense ad client code that the GA4 property is linked to.
-     * Example format: "ca-pub-1234567890"
-     * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The adClientCode to set. - * @return This builder for chaining. - */ - public Builder setAdClientCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - adClientCode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The AdSense ad client code that the GA4 property is linked to.
-     * Example format: "ca-pub-1234567890"
-     * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearAdClientCode() { - adClientCode_ = getDefaultInstance().getAdClientCode(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. The AdSense ad client code that the GA4 property is linked to.
-     * Example format: "ca-pub-1234567890"
-     * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for adClientCode to set. - * @return This builder for chaining. - */ - public Builder setAdClientCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - adClientCode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AdSenseLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AdSenseLink) - private static final com.google.analytics.admin.v1alpha.AdSenseLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AdSenseLink(); - } - - public static com.google.analytics.admin.v1alpha.AdSenseLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AdSenseLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkOrBuilder.java deleted file mode 100644 index 42257b3917b5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AdSenseLinkOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface AdSenseLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AdSenseLink) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The resource name for this AdSense Link resource.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/6789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. The resource name for this AdSense Link resource.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/6789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. The AdSense ad client code that the GA4 property is linked to.
-   * Example format: "ca-pub-1234567890"
-   * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The adClientCode. - */ - java.lang.String getAdClientCode(); - /** - *
-   * Immutable. The AdSense ad client code that the GA4 property is linked to.
-   * Example format: "ca-pub-1234567890"
-   * 
- * - * string ad_client_code = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for adClientCode. - */ - com.google.protobuf.ByteString - getAdClientCodeBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java deleted file mode 100644 index 60b08c4a9b98..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ /dev/null @@ -1,3303 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public final class AnalyticsAdminProto { - private AnalyticsAdminProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n4google/analytics/admin/v1alpha/analyti" + - "cs_admin.proto\022\036google.analytics.admin.v" + - "1alpha\0322google/analytics/admin/v1alpha/a" + - "ccess_report.proto\032-google/analytics/adm" + - "in/v1alpha/audience.proto\0322google/analyt" + - "ics/admin/v1alpha/channel_group.proto\032:g" + - "oogle/analytics/admin/v1alpha/event_crea" + - "te_and_edit.proto\0326google/analytics/admi" + - "n/v1alpha/expanded_data_set.proto\032.googl" + - "e/analytics/admin/v1alpha/resources.prot" + - "o\032=google/analytics/admin/v1alpha/subpro" + - "perty_event_filter.proto\032\034google/api/ann" + - "otations.proto\032\027google/api/client.proto\032" + - "\037google/api/field_behavior.proto\032\031google" + - "/api/resource.proto\032\033google/protobuf/emp" + - "ty.proto\032 google/protobuf/field_mask.pro" + - "to\032\037google/protobuf/timestamp.proto\"\342\004\n\026" + - "RunAccessReportRequest\022\016\n\006entity\030\001 \001(\t\022C" + - "\n\ndimensions\030\002 \003(\0132/.google.analytics.ad" + - "min.v1alpha.AccessDimension\022=\n\007metrics\030\003" + - " \003(\0132,.google.analytics.admin.v1alpha.Ac" + - "cessMetric\022D\n\013date_ranges\030\004 \003(\0132/.google" + - ".analytics.admin.v1alpha.AccessDateRange" + - "\022P\n\020dimension_filter\030\005 \001(\01326.google.anal" + - "ytics.admin.v1alpha.AccessFilterExpressi" + - "on\022M\n\rmetric_filter\030\006 \001(\01326.google.analy" + - "tics.admin.v1alpha.AccessFilterExpressio" + - "n\022\016\n\006offset\030\007 \001(\003\022\r\n\005limit\030\010 \001(\003\022\021\n\ttime" + - "_zone\030\t \001(\t\022@\n\torder_bys\030\n \003(\0132-.google." + - "analytics.admin.v1alpha.AccessOrderBy\022\033\n" + - "\023return_entity_quota\030\013 \001(\010\022\037\n\021include_al" + - "l_users\030\014 \001(\010B\004\342A\001\001\022\033\n\rexpand_groups\030\r \001" + - "(\010B\004\342A\001\001\"\277\002\n\027RunAccessReportResponse\022P\n\021" + - "dimension_headers\030\001 \003(\01325.google.analyti" + - "cs.admin.v1alpha.AccessDimensionHeader\022J" + - "\n\016metric_headers\030\002 \003(\01322.google.analytic" + - "s.admin.v1alpha.AccessMetricHeader\0227\n\004ro" + - "ws\030\003 \003(\0132).google.analytics.admin.v1alph" + - "a.AccessRow\022\021\n\trow_count\030\004 \001(\005\022:\n\005quota\030" + - "\005 \001(\0132+.google.analytics.admin.v1alpha.A" + - "ccessQuota\"Q\n\021GetAccountRequest\022<\n\004name\030" + - "\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.googleapi" + - "s.com/Account\"R\n\023ListAccountsRequest\022\021\n\t" + - "page_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\022\024\n\014s" + - "how_deleted\030\003 \001(\010\"j\n\024ListAccountsRespons" + - "e\0229\n\010accounts\030\001 \003(\0132\'.google.analytics.a" + - "dmin.v1alpha.Account\022\027\n\017next_page_token\030" + - "\002 \001(\t\"T\n\024DeleteAccountRequest\022<\n\004name\030\001 " + - "\001(\tB.\342A\001\002\372A\'\n%analyticsadmin.googleapis." + - "com/Account\"\215\001\n\024UpdateAccountRequest\022>\n\007" + - "account\030\001 \001(\0132\'.google.analytics.admin.v" + - "1alpha.AccountB\004\342A\001\002\0225\n\013update_mask\030\002 \001(" + - "\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"o\n\035P" + - "rovisionAccountTicketRequest\0228\n\007account\030" + - "\001 \001(\0132\'.google.analytics.admin.v1alpha.A" + - "ccount\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Provisio" + - "nAccountTicketResponse\022\031\n\021account_ticket" + - "_id\030\001 \001(\t\"S\n\022GetPropertyRequest\022=\n\004name\030" + - "\001 \001(\tB/\342A\001\002\372A(\n&analyticsadmin.googleapi" + - "s.com/Property\"j\n\025ListPropertiesRequest\022" + - "\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 \001(\005" + - "\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030\004 \001" + - "(\010\"o\n\026ListPropertiesResponse\022<\n\nproperti" + - "es\030\001 \003(\0132(.google.analytics.admin.v1alph" + - "a.Property\022\027\n\017next_page_token\030\002 \001(\t\"\220\001\n\025" + - "UpdatePropertyRequest\022@\n\010property\030\001 \001(\0132" + - "(.google.analytics.admin.v1alpha.Propert" + - "yB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + - "otobuf.FieldMaskB\004\342A\001\002\"Y\n\025CreateProperty" + - "Request\022@\n\010property\030\001 \001(\0132(.google.analy" + - "tics.admin.v1alpha.PropertyB\004\342A\001\002\"V\n\025Del" + - "etePropertyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A" + - "(\n&analyticsadmin.googleapis.com/Propert" + - "y\"\253\001\n\031CreateFirebaseLinkRequest\022C\n\006paren" + - "t\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googlea" + - "pis.com/FirebaseLink\022I\n\rfirebase_link\030\002 " + - "\001(\0132,.google.analytics.admin.v1alpha.Fir" + - "ebaseLinkB\004\342A\001\002\"^\n\031DeleteFirebaseLinkReq" + - "uest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsad" + - "min.googleapis.com/FirebaseLink\"\206\001\n\030List" + - "FirebaseLinksRequest\022C\n\006parent\030\001 \001(\tB3\342A" + - "\001\002\372A,\022*analyticsadmin.googleapis.com/Fir" + - "ebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_tok" + - "en\030\003 \001(\t\"z\n\031ListFirebaseLinksResponse\022D\n" + - "\016firebase_links\030\001 \003(\0132,.google.analytics" + - ".admin.v1alpha.FirebaseLink\022\027\n\017next_page" + - "_token\030\002 \001(\t\"]\n\027GetGlobalSiteTagRequest\022" + - "B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.g" + - "oogleapis.com/GlobalSiteTag\"\260\001\n\032CreateGo" + - "ogleAdsLinkRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" + - "\372A-\022+analyticsadmin.googleapis.com/Googl" + - "eAdsLink\022L\n\017google_ads_link\030\002 \001(\0132-.goog" + - "le.analytics.admin.v1alpha.GoogleAdsLink" + - "B\004\342A\001\002\"\233\001\n\032UpdateGoogleAdsLinkRequest\022F\n" + - "\017google_ads_link\030\001 \001(\0132-.google.analytic" + - "s.admin.v1alpha.GoogleAdsLink\0225\n\013update_" + - "mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004" + - "\342A\001\002\"`\n\032DeleteGoogleAdsLinkRequest\022B\n\004na" + - "me\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.google" + - "apis.com/GoogleAdsLink\"\210\001\n\031ListGoogleAds" + - "LinksRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+a" + - "nalyticsadmin.googleapis.com/GoogleAdsLi" + - "nk\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + - "\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020googl" + - "e_ads_links\030\001 \003(\0132-.google.analytics.adm" + - "in.v1alpha.GoogleAdsLink\022\027\n\017next_page_to" + - "ken\030\002 \001(\t\"i\n\035GetDataSharingSettingsReque" + - "st\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1analyticsadmi" + - "n.googleapis.com/DataSharingSettings\"D\n\033" + - "ListAccountSummariesRequest\022\021\n\tpage_size" + - "\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccou" + - "ntSummariesResponse\022I\n\021account_summaries" + - "\030\001 \003(\0132..google.analytics.admin.v1alpha." + - "AccountSummary\022\027\n\017next_page_token\030\002 \001(\t\"" + - "\210\001\n$AcknowledgeUserDataCollectionRequest" + - "\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(\n&analyticsad" + - "min.googleapis.com/Property\022\035\n\017acknowled" + - "gement\030\002 \001(\tB\004\342A\001\002\"\'\n%AcknowledgeUserDat" + - "aCollectionResponse\"\214\004\n SearchChangeHist" + - "oryEventsRequest\022?\n\007account\030\001 \001(\tB.\342A\001\002\372" + - "A\'\n%analyticsadmin.googleapis.com/Accoun" + - "t\022A\n\010property\030\002 \001(\tB/\342A\001\001\372A(\n&analyticsa" + - "dmin.googleapis.com/Property\022V\n\rresource" + - "_type\030\003 \003(\01629.google.analytics.admin.v1a" + - "lpha.ChangeHistoryResourceTypeB\004\342A\001\001\022@\n\006" + - "action\030\004 \003(\0162*.google.analytics.admin.v1" + - "alpha.ActionTypeB\004\342A\001\001\022\031\n\013actor_email\030\005 " + - "\003(\tB\004\342A\001\001\022>\n\024earliest_change_time\030\006 \001(\0132" + - "\032.google.protobuf.TimestampB\004\342A\001\001\022<\n\022lat" + - "est_change_time\030\007 \001(\0132\032.google.protobuf." + - "TimestampB\004\342A\001\001\022\027\n\tpage_size\030\010 \001(\005B\004\342A\001\001" + - "\022\030\n\npage_token\030\t \001(\tB\004\342A\001\001\"\217\001\n!SearchCha" + - "ngeHistoryEventsResponse\022Q\n\025change_histo" + - "ry_events\030\001 \003(\01322.google.analytics.admin" + - ".v1alpha.ChangeHistoryEvent\022\027\n\017next_page" + - "_token\030\002 \001(\t\"u\n#GetMeasurementProtocolSe" + - "cretRequest\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7anal" + - "yticsadmin.googleapis.com/MeasurementPro" + - "tocolSecret\"\340\001\n&CreateMeasurementProtoco" + - "lSecretRequest\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A9\022" + - "7analyticsadmin.googleapis.com/Measureme" + - "ntProtocolSecret\022d\n\033measurement_protocol" + - "_secret\030\002 \001(\01329.google.analytics.admin.v" + - "1alpha.MeasurementProtocolSecretB\004\342A\001\002\"x" + - "\n&DeleteMeasurementProtocolSecretRequest" + - "\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7analyticsadmin." + - "googleapis.com/MeasurementProtocolSecret" + - "\"\305\001\n&UpdateMeasurementProtocolSecretRequ" + - "est\022d\n\033measurement_protocol_secret\030\001 \001(\013" + - "29.google.analytics.admin.v1alpha.Measur" + - "ementProtocolSecretB\004\342A\001\002\0225\n\013update_mask" + - "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002" + - "\"\240\001\n%ListMeasurementProtocolSecretsReque" + - "st\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A9\0227analyticsad" + - "min.googleapis.com/MeasurementProtocolSe" + - "cret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + - "\001(\t\"\242\001\n&ListMeasurementProtocolSecretsRe" + - "sponse\022_\n\034measurement_protocol_secrets\030\001" + - " \003(\01329.google.analytics.admin.v1alpha.Me" + - "asurementProtocolSecret\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\"\203\001\n*GetSKAdNetworkConversionVal" + - "ueSchemaRequest\022U\n\004name\030\001 \001(\tBG\342A\001\002\372A@\n>" + - "analyticsadmin.googleapis.com/SKAdNetwor" + - "kConversionValueSchema\"\375\001\n-CreateSKAdNet" + - "workConversionValueSchemaRequest\022W\n\006pare" + - "nt\030\001 \001(\tBG\342A\001\002\372A@\022>analyticsadmin.google" + - "apis.com/SKAdNetworkConversionValueSchem" + - "a\022s\n#skadnetwork_conversion_value_schema" + - "\030\002 \001(\0132@.google.analytics.admin.v1alpha." + - "SKAdNetworkConversionValueSchemaB\004\342A\001\002\"\206" + - "\001\n-DeleteSKAdNetworkConversionValueSchem" + - "aRequest\022U\n\004name\030\001 \001(\tBG\342A\001\002\372A@\n>analyti" + - "csadmin.googleapis.com/SKAdNetworkConver" + - "sionValueSchema\"\333\001\n-UpdateSKAdNetworkCon" + - "versionValueSchemaRequest\022s\n#skadnetwork" + - "_conversion_value_schema\030\001 \001(\0132@.google." + - "analytics.admin.v1alpha.SKAdNetworkConve" + - "rsionValueSchemaB\004\342A\001\002\0225\n\013update_mask\030\002 " + - "\001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"\256\001" + - "\n,ListSKAdNetworkConversionValueSchemasR" + - "equest\022W\n\006parent\030\001 \001(\tBG\342A\001\002\372A@\022>analyti" + - "csadmin.googleapis.com/SKAdNetworkConver" + - "sionValueSchema\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + - "ge_token\030\003 \001(\t\"\270\001\n-ListSKAdNetworkConver" + - "sionValueSchemasResponse\022n\n$skadnetwork_" + - "conversion_value_schemas\030\001 \003(\0132@.google." + - "analytics.admin.v1alpha.SKAdNetworkConve" + - "rsionValueSchema\022\027\n\017next_page_token\030\002 \001(" + - "\t\"m\n\037GetGoogleSignalsSettingsRequest\022J\n\004" + - "name\030\001 \001(\tB<\342A\001\002\372A5\n3analyticsadmin.goog" + - "leapis.com/GoogleSignalsSettings\"\271\001\n\"Upd" + - "ateGoogleSignalsSettingsRequest\022\\\n\027googl" + - "e_signals_settings\030\001 \001(\01325.google.analyt" + - "ics.admin.v1alpha.GoogleSignalsSettingsB" + - "\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.prot" + - "obuf.FieldMaskB\004\342A\001\002\"\267\001\n\034CreateConversio" + - "nEventRequest\022O\n\020conversion_event\030\001 \001(\0132" + - "/.google.analytics.admin.v1alpha.Convers" + - "ionEventB\004\342A\001\002\022F\n\006parent\030\002 \001(\tB6\342A\001\002\372A/\022" + - "-analyticsadmin.googleapis.com/Conversio" + - "nEvent\"\246\001\n\034UpdateConversionEventRequest\022" + - "O\n\020conversion_event\030\001 \001(\0132/.google.analy" + - "tics.admin.v1alpha.ConversionEventB\004\342A\001\002" + - "\0225\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + - "FieldMaskB\004\342A\001\002\"a\n\031GetConversionEventReq" + - "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsad" + - "min.googleapis.com/ConversionEvent\"d\n\034De" + - "leteConversionEventRequest\022D\n\004name\030\001 \001(\t" + - "B6\342A\001\002\372A/\n-analyticsadmin.googleapis.com" + - "/ConversionEvent\"\214\001\n\033ListConversionEvent" + - "sRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analy" + - "ticsadmin.googleapis.com/ConversionEvent" + - "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + - "\203\001\n\034ListConversionEventsResponse\022J\n\021conv" + - "ersion_events\030\001 \003(\0132/.google.analytics.a" + - "dmin.v1alpha.ConversionEvent\022\027\n\017next_pag" + - "e_token\030\002 \001(\t\"}\n\'GetDisplayVideo360Adver" + - "tiserLinkRequest\022R\n\004name\030\001 \001(\tBD\342A\001\002\372A=\n" + - ";analyticsadmin.googleapis.com/DisplayVi" + - "deo360AdvertiserLink\"\250\001\n)ListDisplayVide" + - "o360AdvertiserLinksRequest\022T\n\006parent\030\001 \001" + - "(\tBD\342A\001\002\372A=\022;analyticsadmin.googleapis.c" + - "om/DisplayVideo360AdvertiserLink\022\021\n\tpage" + - "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\260\001\n*List" + - "DisplayVideo360AdvertiserLinksResponse\022i" + - "\n\"display_video_360_advertiser_links\030\001 \003" + - "(\0132=.google.analytics.admin.v1alpha.Disp" + - "layVideo360AdvertiserLink\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"\362\001\n*CreateDisplayVideo360Adve" + - "rtiserLinkRequest\022T\n\006parent\030\001 \001(\tBD\342A\001\002\372" + - "A=\022;analyticsadmin.googleapis.com/Displa" + - "yVideo360AdvertiserLink\022n\n!display_video" + - "_360_advertiser_link\030\002 \001(\0132=.google.anal" + - "ytics.admin.v1alpha.DisplayVideo360Adver" + - "tiserLinkB\004\342A\001\002\"\200\001\n*DeleteDisplayVideo36" + - "0AdvertiserLinkRequest\022R\n\004name\030\001 \001(\tBD\342A" + - "\001\002\372A=\n;analyticsadmin.googleapis.com/Dis" + - "playVideo360AdvertiserLink\"\315\001\n*UpdateDis" + - "playVideo360AdvertiserLinkRequest\022h\n!dis" + - "play_video_360_advertiser_link\030\001 \001(\0132=.g" + - "oogle.analytics.admin.v1alpha.DisplayVid" + - "eo360AdvertiserLink\0225\n\013update_mask\030\002 \001(\013" + - "2\032.google.protobuf.FieldMaskB\004\342A\001\002\"\215\001\n/G" + - "etDisplayVideo360AdvertiserLinkProposalR" + - "equest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanalytics" + - "admin.googleapis.com/DisplayVideo360Adve" + - "rtiserLinkProposal\"\270\001\n1ListDisplayVideo3" + - "60AdvertiserLinkProposalsRequest\022\\\n\006pare" + - "nt\030\001 \001(\tBL\342A\001\002\372AE\022Canalyticsadmin.google" + - "apis.com/DisplayVideo360AdvertiserLinkPr" + - "oposal\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + - "\003 \001(\t\"\311\001\n2ListDisplayVideo360AdvertiserL" + - "inkProposalsResponse\022z\n+display_video_36" + - "0_advertiser_link_proposals\030\001 \003(\0132E.goog" + - "le.analytics.admin.v1alpha.DisplayVideo3" + - "60AdvertiserLinkProposal\022\027\n\017next_page_to" + - "ken\030\002 \001(\t\"\223\002\n2CreateDisplayVideo360Adver" + - "tiserLinkProposalRequest\022\\\n\006parent\030\001 \001(\t" + - "BL\342A\001\002\372AE\022Canalyticsadmin.googleapis.com" + - "/DisplayVideo360AdvertiserLinkProposal\022\177" + - "\n*display_video_360_advertiser_link_prop" + - "osal\030\002 \001(\0132E.google.analytics.admin.v1al" + - "pha.DisplayVideo360AdvertiserLinkProposa" + - "lB\004\342A\001\002\"\220\001\n2DeleteDisplayVideo360Adverti" + - "serLinkProposalRequest\022Z\n\004name\030\001 \001(\tBL\342A" + - "\001\002\372AE\nCanalyticsadmin.googleapis.com/Dis" + - "playVideo360AdvertiserLinkProposal\"\221\001\n3A" + - "pproveDisplayVideo360AdvertiserLinkPropo" + - "salRequest\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanaly" + - "ticsadmin.googleapis.com/DisplayVideo360" + - "AdvertiserLinkProposal\"\240\001\n4ApproveDispla" + - "yVideo360AdvertiserLinkProposalResponse\022" + - "h\n!display_video_360_advertiser_link\030\001 \001" + - "(\0132=.google.analytics.admin.v1alpha.Disp" + - "layVideo360AdvertiserLink\"\220\001\n2CancelDisp" + - "layVideo360AdvertiserLinkProposalRequest" + - "\022Z\n\004name\030\001 \001(\tBL\342A\001\002\372AE\nCanalyticsadmin." + - "googleapis.com/DisplayVideo360Advertiser" + - "LinkProposal\"c\n\032GetSearchAds360LinkReque" + - "st\022E\n\004name\030\001 \001(\tB7\342A\001\002\372A0\n.analyticsadmi" + - "n.googleapis.com/SearchAds360Link\"\216\001\n\034Li" + - "stSearchAds360LinksRequest\022G\n\006parent\030\001 \001" + - "(\tB7\342A\001\002\372A0\022.analyticsadmin.googleapis.c" + - "om/SearchAds360Link\022\021\n\tpage_size\030\002 \001(\005\022\022" + - "\n\npage_token\030\003 \001(\t\"\210\001\n\035ListSearchAds360L" + - "inksResponse\022N\n\024search_ads_360_links\030\001 \003" + - "(\01320.google.analytics.admin.v1alpha.Sear" + - "chAds360Link\022\027\n\017next_page_token\030\002 \001(\t\"\275\001" + - "\n\035CreateSearchAds360LinkRequest\022G\n\006paren" + - "t\030\001 \001(\tB7\342A\001\002\372A0\022.analyticsadmin.googlea" + - "pis.com/SearchAds360Link\022S\n\023search_ads_3" + - "60_link\030\002 \001(\01320.google.analytics.admin.v" + - "1alpha.SearchAds360LinkB\004\342A\001\002\"f\n\035DeleteS" + - "earchAds360LinkRequest\022E\n\004name\030\001 \001(\tB7\342A" + - "\001\002\372A0\n.analyticsadmin.googleapis.com/Sea" + - "rchAds360Link\"\245\001\n\035UpdateSearchAds360Link" + - "Request\022M\n\023search_ads_360_link\030\001 \001(\01320.g" + - "oogle.analytics.admin.v1alpha.SearchAds3" + - "60Link\0225\n\013update_mask\030\002 \001(\0132\032.google.pro" + - "tobuf.FieldMaskB\004\342A\001\002\"\267\001\n\034CreateCustomDi" + - "mensionRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022" + - "-analyticsadmin.googleapis.com/CustomDim" + - "ension\022O\n\020custom_dimension\030\002 \001(\0132/.googl" + - "e.analytics.admin.v1alpha.CustomDimensio" + - "nB\004\342A\001\002\"\240\001\n\034UpdateCustomDimensionRequest" + - "\022I\n\020custom_dimension\030\001 \001(\0132/.google.anal" + - "ytics.admin.v1alpha.CustomDimension\0225\n\013u" + - "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" + - "MaskB\004\342A\001\002\"\214\001\n\033ListCustomDimensionsReque" + - "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsad" + - "min.googleapis.com/CustomDimension\022\021\n\tpa" + - "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034Li" + - "stCustomDimensionsResponse\022J\n\021custom_dim" + - "ensions\030\001 \003(\0132/.google.analytics.admin.v" + - "1alpha.CustomDimension\022\027\n\017next_page_toke" + - "n\030\002 \001(\t\"e\n\035ArchiveCustomDimensionRequest" + - "\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin." + - "googleapis.com/CustomDimension\"a\n\031GetCus" + - "tomDimensionRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372" + - "A/\n-analyticsadmin.googleapis.com/Custom" + - "Dimension\"\253\001\n\031CreateCustomMetricRequest\022" + - "C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin" + - ".googleapis.com/CustomMetric\022I\n\rcustom_m" + - "etric\030\002 \001(\0132,.google.analytics.admin.v1a" + - "lpha.CustomMetricB\004\342A\001\002\"\227\001\n\031UpdateCustom" + - "MetricRequest\022C\n\rcustom_metric\030\001 \001(\0132,.g" + - "oogle.analytics.admin.v1alpha.CustomMetr" + - "ic\0225\n\013update_mask\030\002 \001(\0132\032.google.protobu" + - "f.FieldMaskB\004\342A\001\002\"\206\001\n\030ListCustomMetricsR" + - "equest\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyti" + - "csadmin.googleapis.com/CustomMetric\022\021\n\tp" + - "age_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031Li" + - "stCustomMetricsResponse\022D\n\016custom_metric" + - "s\030\001 \003(\0132,.google.analytics.admin.v1alpha" + - ".CustomMetric\022\027\n\017next_page_token\030\002 \001(\t\"_" + - "\n\032ArchiveCustomMetricRequest\022A\n\004name\030\001 \001" + - "(\tB3\342A\001\002\372A,\n*analyticsadmin.googleapis.c" + - "om/CustomMetric\"[\n\026GetCustomMetricReques" + - "t\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsadmin" + - ".googleapis.com/CustomMetric\"m\n\037GetDataR" + - "etentionSettingsRequest\022J\n\004name\030\001 \001(\tB<\342" + - "A\001\002\372A5\n3analyticsadmin.googleapis.com/Da" + - "taRetentionSettings\"\271\001\n\"UpdateDataRetent" + - "ionSettingsRequest\022\\\n\027data_retention_set" + - "tings\030\001 \001(\01325.google.analytics.admin.v1a" + - "lpha.DataRetentionSettingsB\004\342A\001\002\0225\n\013upda" + - "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + - "kB\004\342A\001\002\"\243\001\n\027CreateDataStreamRequest\022A\n\006p" + - "arent\030\001 \001(\tB1\342A\001\002\372A*\022(analyticsadmin.goo" + - "gleapis.com/DataStream\022E\n\013data_stream\030\002 " + - "\001(\0132*.google.analytics.admin.v1alpha.Dat" + - "aStreamB\004\342A\001\002\"Z\n\027DeleteDataStreamRequest" + - "\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(analyticsadmin." + - "googleapis.com/DataStream\"\221\001\n\027UpdateData" + - "StreamRequest\022?\n\013data_stream\030\001 \001(\0132*.goo" + - "gle.analytics.admin.v1alpha.DataStream\0225" + - "\n\013update_mask\030\002 \001(\0132\032.google.protobuf.Fi" + - "eldMaskB\004\342A\001\002\"\202\001\n\026ListDataStreamsRequest" + - "\022A\n\006parent\030\001 \001(\tB1\342A\001\002\372A*\022(analyticsadmi" + - "n.googleapis.com/DataStream\022\021\n\tpage_size" + - "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListDataSt" + - "reamsResponse\022@\n\014data_streams\030\001 \003(\0132*.go" + - "ogle.analytics.admin.v1alpha.DataStream\022" + - "\027\n\017next_page_token\030\002 \001(\t\"W\n\024GetDataStrea" + - "mRequest\022?\n\004name\030\001 \001(\tB1\342A\001\002\372A*\n(analyti" + - "csadmin.googleapis.com/DataStream\"S\n\022Get" + - "AudienceRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\n&" + - "analyticsadmin.googleapis.com/Audience\"~" + - "\n\024ListAudiencesRequest\022?\n\006parent\030\001 \001(\tB/" + - "\342A\001\002\372A(\022&analyticsadmin.googleapis.com/A" + - "udience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token" + - "\030\003 \001(\t\"m\n\025ListAudiencesResponse\022;\n\taudie" + - "nces\030\001 \003(\0132(.google.analytics.admin.v1al" + - "pha.Audience\022\027\n\017next_page_token\030\002 \001(\t\"\232\001" + - "\n\025CreateAudienceRequest\022?\n\006parent\030\001 \001(\tB" + - "/\342A\001\002\372A(\022&analyticsadmin.googleapis.com/" + - "Audience\022@\n\010audience\030\002 \001(\0132(.google.anal" + - "ytics.admin.v1alpha.AudienceB\004\342A\001\002\"\220\001\n\025U" + - "pdateAudienceRequest\022@\n\010audience\030\001 \001(\0132(" + - ".google.analytics.admin.v1alpha.Audience" + - "B\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pro" + - "tobuf.FieldMaskB\004\342A\001\002\"W\n\026ArchiveAudience" + - "Request\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A(\022&analytic" + - "sadmin.googleapis.com/Audience\"i\n\035GetAtt" + - "ributionSettingsRequest\022H\n\004name\030\001 \001(\tB:\342" + - "A\001\002\372A3\n1analyticsadmin.googleapis.com/At" + - "tributionSettings\"\262\001\n UpdateAttributionS" + - "ettingsRequest\022W\n\024attribution_settings\030\001" + - " \001(\01323.google.analytics.admin.v1alpha.At" + - "tributionSettingsB\004\342A\001\002\0225\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"]" + - "\n\027GetAccessBindingRequest\022B\n\004name\030\001 \001(\tB" + - "4\342A\001\002\372A-\n+analyticsadmin.googleapis.com/" + - "AccessBinding\"\252\001\n\035BatchGetAccessBindings" + - "Request\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyt" + - "icsadmin.googleapis.com/AccessBinding\022C\n" + - "\005names\030\002 \003(\tB4\342A\001\002\372A-\n+analyticsadmin.go" + - "ogleapis.com/AccessBinding\"h\n\036BatchGetAc" + - "cessBindingsResponse\022F\n\017access_bindings\030" + - "\001 \003(\0132-.google.analytics.admin.v1alpha.A", - "ccessBinding\"\210\001\n\031ListAccessBindingsReque" + - "st\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsad" + - "min.googleapis.com/AccessBinding\022\021\n\tpage" + - "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"}\n\032ListA" + - "ccessBindingsResponse\022F\n\017access_bindings" + - "\030\001 \003(\0132-.google.analytics.admin.v1alpha." + - "AccessBinding\022\027\n\017next_page_token\030\002 \001(\t\"\257" + - "\001\n\032CreateAccessBindingRequest\022D\n\006parent\030" + - "\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googleapi" + - "s.com/AccessBinding\022K\n\016access_binding\030\002 " + - "\001(\0132-.google.analytics.admin.v1alpha.Acc" + - "essBindingB\004\342A\001\002\"\274\001\n BatchCreateAccessBi" + - "ndingsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+" + - "analyticsadmin.googleapis.com/AccessBind" + - "ing\022R\n\010requests\030\003 \003(\0132:.google.analytics" + - ".admin.v1alpha.CreateAccessBindingReques" + - "tB\004\342A\001\002\"k\n!BatchCreateAccessBindingsResp" + - "onse\022F\n\017access_bindings\030\001 \003(\0132-.google.a" + - "nalytics.admin.v1alpha.AccessBinding\"i\n\032" + - "UpdateAccessBindingRequest\022K\n\016access_bin" + - "ding\030\001 \001(\0132-.google.analytics.admin.v1al" + - "pha.AccessBindingB\004\342A\001\002\"\274\001\n BatchUpdateA" + - "ccessBindingsRequest\022D\n\006parent\030\001 \001(\tB4\342A" + - "\001\002\372A-\022+analyticsadmin.googleapis.com/Acc" + - "essBinding\022R\n\010requests\030\002 \003(\0132:.google.an" + - "alytics.admin.v1alpha.UpdateAccessBindin" + - "gRequestB\004\342A\001\002\"k\n!BatchUpdateAccessBindi" + - "ngsResponse\022F\n\017access_bindings\030\001 \003(\0132-.g" + - "oogle.analytics.admin.v1alpha.AccessBind" + - "ing\"`\n\032DeleteAccessBindingRequest\022B\n\004nam" + - "e\030\001 \001(\tB4\342A\001\002\372A-\n+analyticsadmin.googlea" + - "pis.com/AccessBinding\"\274\001\n BatchDeleteAcc" + - "essBindingsRequest\022D\n\006parent\030\001 \001(\tB4\342A\001\002" + - "\372A-\022+analyticsadmin.googleapis.com/Acces" + - "sBinding\022R\n\010requests\030\002 \003(\0132:.google.anal" + - "ytics.admin.v1alpha.DeleteAccessBindingR" + - "equestB\004\342A\001\002\"\270\001\n\034CreateExpandedDataSetRe" + - "quest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytic" + - "sadmin.googleapis.com/ExpandedDataSet\022P\n" + - "\021expanded_data_set\030\002 \001(\0132/.google.analyt" + - "ics.admin.v1alpha.ExpandedDataSetB\004\342A\001\002\"" + - "\247\001\n\034UpdateExpandedDataSetRequest\022P\n\021expa" + - "nded_data_set\030\001 \001(\0132/.google.analytics.a" + - "dmin.v1alpha.ExpandedDataSetB\004\342A\001\002\0225\n\013up" + - "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + - "askB\004\342A\001\002\"d\n\034DeleteExpandedDataSetReques" + - "t\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadmin" + - ".googleapis.com/ExpandedDataSet\"a\n\031GetEx" + - "pandedDataSetRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002" + - "\372A/\n-analyticsadmin.googleapis.com/Expan" + - "dedDataSet\"\214\001\n\033ListExpandedDataSetsReque" + - "st\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsad" + - "min.googleapis.com/ExpandedDataSet\022\021\n\tpa" + - "ge_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n\034Li" + - "stExpandedDataSetsResponse\022K\n\022expanded_d" + - "ata_sets\030\001 \003(\0132/.google.analytics.admin." + - "v1alpha.ExpandedDataSet\022\027\n\017next_page_tok" + - "en\030\002 \001(\t\"\253\001\n\031CreateChannelGroupRequest\022C" + - "\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin." + - "googleapis.com/ChannelGroup\022I\n\rchannel_g" + - "roup\030\002 \001(\0132,.google.analytics.admin.v1al" + - "pha.ChannelGroupB\004\342A\001\002\"\235\001\n\031UpdateChannel" + - "GroupRequest\022I\n\rchannel_group\030\001 \001(\0132,.go" + - "ogle.analytics.admin.v1alpha.ChannelGrou" + - "pB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.pr" + - "otobuf.FieldMaskB\004\342A\001\002\"^\n\031DeleteChannelG" + - "roupRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*anal" + - "yticsadmin.googleapis.com/ChannelGroup\"[" + - "\n\026GetChannelGroupRequest\022A\n\004name\030\001 \001(\tB3" + - "\342A\001\002\372A,\n*analyticsadmin.googleapis.com/C" + - "hannelGroup\"\206\001\n\030ListChannelGroupsRequest" + - "\022C\n\006parent\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmi" + - "n.googleapis.com/ChannelGroup\022\021\n\tpage_si" + - "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListChan" + - "nelGroupsResponse\022D\n\016channel_groups\030\001 \003(" + - "\0132,.google.analytics.admin.v1alpha.Chann" + - "elGroup\022\027\n\017next_page_token\030\002 \001(\t\"T\n)SetA" + - "utomatedGa4ConfigurationOptOutRequest\022\026\n" + - "\010property\030\001 \001(\tB\004\342A\001\002\022\017\n\007opt_out\030\002 \001(\010\"," + - "\n*SetAutomatedGa4ConfigurationOptOutResp" + - "onse\"E\n+FetchAutomatedGa4ConfigurationOp" + - "tOutRequest\022\026\n\010property\030\001 \001(\tB\004\342A\001\002\"?\n,F" + - "etchAutomatedGa4ConfigurationOptOutRespo" + - "nse\022\017\n\007opt_out\030\001 \001(\010\"[\n\026GetBigQueryLinkR" + - "equest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analytics" + - "admin.googleapis.com/BigQueryLink\"\206\001\n\030Li" + - "stBigQueryLinksRequest\022C\n\006parent\030\001 \001(\tB3" + - "\342A\001\002\372A,\022*analyticsadmin.googleapis.com/B" + - "igQueryLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" + - "oken\030\003 \001(\t\"z\n\031ListBigQueryLinksResponse\022" + - "D\n\016bigquery_links\030\001 \003(\0132,.google.analyti" + - "cs.admin.v1alpha.BigQueryLink\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\"y\n%GetEnhancedMeasurement" + - "SettingsRequest\022P\n\004name\030\001 \001(\tBB\342A\001\002\372A;\n9" + - "analyticsadmin.googleapis.com/EnhancedMe" + - "asurementSettings\"\313\001\n(UpdateEnhancedMeas" + - "urementSettingsRequest\022h\n\035enhanced_measu" + - "rement_settings\030\001 \001(\0132;.google.analytics" + - ".admin.v1alpha.EnhancedMeasurementSettin" + - "gsB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.p" + - "rotobuf.FieldMaskB\004\342A\001\002\"m\n\037GetDataRedact" + - "ionSettingsRequest\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A" + - "5\n3analyticsadmin.googleapis.com/DataRed" + - "actionSettings\"\271\001\n\"UpdateDataRedactionSe" + - "ttingsRequest\022\\\n\027data_redaction_settings" + - "\030\001 \001(\01325.google.analytics.admin.v1alpha." + - "DataRedactionSettingsB\004\342A\001\002\0225\n\013update_ma" + - "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + - "\001\002\"\205\001\n\035CreateConnectedSiteTagRequest\022\020\n\010" + - "property\030\001 \001(\t\022R\n\022connected_site_tag\030\002 \001" + - "(\01320.google.analytics.admin.v1alpha.Conn" + - "ectedSiteTagB\004\342A\001\002\" \n\036CreateConnectedSit" + - "eTagResponse\"A\n\035DeleteConnectedSiteTagRe" + - "quest\022\020\n\010property\030\001 \001(\t\022\016\n\006tag_id\030\002 \001(\t\"" + - "0\n\034ListConnectedSiteTagsRequest\022\020\n\010prope" + - "rty\030\001 \001(\t\"n\n\035ListConnectedSiteTagsRespon" + - "se\022M\n\023connected_site_tags\030\001 \003(\01320.google" + - ".analytics.admin.v1alpha.ConnectedSiteTa" + - "g\"\247\001\n\030CreateAdSenseLinkRequest\022B\n\006parent" + - "\030\001 \001(\tB2\342A\001\002\372A+\022)analyticsadmin.googleap" + - "is.com/AdSenseLink\022G\n\014adsense_link\030\002 \001(\013" + - "2+.google.analytics.admin.v1alpha.AdSens" + - "eLinkB\004\342A\001\002\"Y\n\025GetAdSenseLinkRequest\022@\n\004" + - "name\030\001 \001(\tB2\342A\001\002\372A+\n)analyticsadmin.goog" + - "leapis.com/AdSenseLink\"\\\n\030DeleteAdSenseL" + - "inkRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)analy" + - "ticsadmin.googleapis.com/AdSenseLink\"\204\001\n" + - "\027ListAdSenseLinksRequest\022B\n\006parent\030\001 \001(\t" + - "B2\342A\001\002\372A+\022)analyticsadmin.googleapis.com" + - "/AdSenseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + - "token\030\003 \001(\t\"w\n\030ListAdSenseLinksResponse\022" + - "B\n\radsense_links\030\001 \003(\0132+.google.analytic" + - "s.admin.v1alpha.AdSenseLink\022\027\n\017next_page" + - "_token\030\002 \001(\t\"e\n FetchConnectedGa4Propert" + - "yRequest\022A\n\010property\030\001 \001(\tB/\342A\001\002\372A(\n&ana" + - "lyticsadmin.googleapis.com/Property\"b\n!F" + - "etchConnectedGa4PropertyResponse\022=\n\010prop" + - "erty\030\001 \001(\tB+\372A(\n&analyticsadmin.googleap" + - "is.com/Property\"\270\001\n\034CreateEventCreateRul" + - "eRequest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analy" + - "ticsadmin.googleapis.com/EventCreateRule" + - "\022P\n\021event_create_rule\030\002 \001(\0132/.google.ana" + - "lytics.admin.v1alpha.EventCreateRuleB\004\342A" + - "\001\002\"\247\001\n\034UpdateEventCreateRuleRequest\022P\n\021e" + - "vent_create_rule\030\001 \001(\0132/.google.analytic" + - "s.admin.v1alpha.EventCreateRuleB\004\342A\001\002\0225\n" + - "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + - "ldMaskB\004\342A\001\002\"d\n\034DeleteEventCreateRuleReq" + - "uest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsad" + - "min.googleapis.com/EventCreateRule\"a\n\031Ge" + - "tEventCreateRuleRequest\022D\n\004name\030\001 \001(\tB6\342" + - "A\001\002\372A/\n-analyticsadmin.googleapis.com/Ev" + - "entCreateRule\"\214\001\n\033ListEventCreateRulesRe" + - "quest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytic" + - "sadmin.googleapis.com/EventCreateRule\022\021\n" + - "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\204\001\n" + - "\034ListEventCreateRulesResponse\022K\n\022event_c" + - "reate_rules\030\001 \003(\0132/.google.analytics.adm" + - "in.v1alpha.EventCreateRule\022\027\n\017next_page_" + - "token\030\002 \001(\t\"\207\001\n\033CreateRollupPropertyRequ" + - "est\022G\n\017rollup_property\030\001 \001(\0132(.google.an" + - "alytics.admin.v1alpha.PropertyB\004\342A\001\002\022\037\n\021" + - "source_properties\030\002 \003(\tB\004\342A\001\001\"\301\001\n\034Create" + - "RollupPropertyResponse\022A\n\017rollup_propert" + - "y\030\001 \001(\0132(.google.analytics.admin.v1alpha" + - ".Property\022^\n\034rollup_property_source_link" + - "s\030\002 \003(\01328.google.analytics.admin.v1alpha" + - ".RollupPropertySourceLink\"s\n\"GetRollupPr" + - "opertySourceLinkRequest\022M\n\004name\030\001 \001(\tB?\342" + - "A\001\002\372A8\n6analyticsadmin.googleapis.com/Ro" + - "llupPropertySourceLink\"\252\001\n$ListRollupPro" + - "pertySourceLinksRequest\022O\n\006parent\030\001 \001(\tB" + - "?\342A\001\002\372A8\0226analyticsadmin.googleapis.com/" + - "RollupPropertySourceLink\022\027\n\tpage_size\030\002 " + - "\001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001\001\"\240\001\n%" + - "ListRollupPropertySourceLinksResponse\022^\n" + - "\034rollup_property_source_links\030\001 \003(\01328.go" + - "ogle.analytics.admin.v1alpha.RollupPrope" + - "rtySourceLink\022\027\n\017next_page_token\030\002 \001(\t\"\335" + - "\001\n%CreateRollupPropertySourceLinkRequest" + - "\022O\n\006parent\030\001 \001(\tB?\342A\001\002\372A8\0226analyticsadmi" + - "n.googleapis.com/RollupPropertySourceLin" + - "k\022c\n\033rollup_property_source_link\030\002 \001(\01328" + - ".google.analytics.admin.v1alpha.RollupPr" + - "opertySourceLinkB\004\342A\001\002\"v\n%DeleteRollupPr" + - "opertySourceLinkRequest\022M\n\004name\030\001 \001(\tB?\342" + - "A\001\002\372A8\n6analyticsadmin.googleapis.com/Ro" + - "llupPropertySourceLink\"\200\002\n\030CreateSubprop" + - "ertyRequest\022?\n\006parent\030\001 \001(\tB/\342A\001\002\372A(\n&an" + - "alyticsadmin.googleapis.com/Property\022C\n\013" + - "subproperty\030\002 \001(\0132(.google.analytics.adm" + - "in.v1alpha.PropertyB\004\342A\001\002\022^\n\030subproperty" + - "_event_filter\030\003 \001(\01326.google.analytics.a" + - "dmin.v1alpha.SubpropertyEventFilterB\004\342A\001" + - "\001\"\264\001\n\031CreateSubpropertyResponse\022=\n\013subpr" + - "operty\030\001 \001(\0132(.google.analytics.admin.v1" + - "alpha.Property\022X\n\030subproperty_event_filt" + - "er\030\002 \001(\01326.google.analytics.admin.v1alph" + - "a.SubpropertyEventFilter\"\324\001\n#CreateSubpr" + - "opertyEventFilterRequest\022M\n\006parent\030\001 \001(\t" + - "B=\342A\001\002\372A6\0224analyticsadmin.googleapis.com" + - "/SubpropertyEventFilter\022^\n\030subproperty_e" + - "vent_filter\030\002 \001(\01326.google.analytics.adm" + - "in.v1alpha.SubpropertyEventFilterB\004\342A\001\002\"" + - "o\n GetSubpropertyEventFilterRequest\022K\n\004n" + - "ame\030\001 \001(\tB=\342A\001\002\372A6\n4analyticsadmin.googl" + - "eapis.com/SubpropertyEventFilter\"\246\001\n\"Lis" + - "tSubpropertyEventFiltersRequest\022M\n\006paren" + - "t\030\001 \001(\tB=\342A\001\002\372A6\0224analyticsadmin.googlea" + - "pis.com/SubpropertyEventFilter\022\027\n\tpage_s" + - "ize\030\002 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\003 \001(\tB\004\342A\001" + - "\001\"\231\001\n#ListSubpropertyEventFiltersRespons" + - "e\022Y\n\031subproperty_event_filters\030\001 \003(\01326.g" + - "oogle.analytics.admin.v1alpha.Subpropert" + - "yEventFilter\022\027\n\017next_page_token\030\002 \001(\t\"\274\001" + - "\n#UpdateSubpropertyEventFilterRequest\022^\n" + - "\030subproperty_event_filter\030\001 \001(\01326.google" + - ".analytics.admin.v1alpha.SubpropertyEven" + - "tFilterB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.goo" + - "gle.protobuf.FieldMaskB\004\342A\001\002\"r\n#DeleteSu" + - "bpropertyEventFilterRequest\022K\n\004name\030\001 \001(" + - "\tB=\342A\001\002\372A6\n4analyticsadmin.googleapis.co" + - "m/SubpropertyEventFilter2\361\350\001\n\025AnalyticsA" + - "dminService\022\223\001\n\nGetAccount\0221.google.anal" + - "ytics.admin.v1alpha.GetAccountRequest\032\'." + - "google.analytics.admin.v1alpha.Account\")" + - "\332A\004name\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*" + - "}\022\224\001\n\014ListAccounts\0223.google.analytics.ad" + - "min.v1alpha.ListAccountsRequest\0324.google" + - ".analytics.admin.v1alpha.ListAccountsRes" + - "ponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDel" + - "eteAccount\0224.google.analytics.admin.v1al" + - "pha.DeleteAccountRequest\032\026.google.protob" + - "uf.Empty\")\332A\004name\202\323\344\223\002\034*\032/v1alpha/{name=" + - "accounts/*}\022\271\001\n\rUpdateAccount\0224.google.a" + - "nalytics.admin.v1alpha.UpdateAccountRequ" + - "est\032\'.google.analytics.admin.v1alpha.Acc" + - "ount\"I\332A\023account,update_mask\202\323\344\223\002-2\"/v1a" + - "lpha/{account.name=accounts/*}:\007account\022" + - "\314\001\n\026ProvisionAccountTicket\022=.google.anal" + - "ytics.admin.v1alpha.ProvisionAccountTick" + - "etRequest\032>.google.analytics.admin.v1alp" + - "ha.ProvisionAccountTicketResponse\"3\202\323\344\223\002" + - "-\"(/v1alpha/accounts:provisionAccountTic" + - "ket:\001*\022\264\001\n\024ListAccountSummaries\022;.google" + - ".analytics.admin.v1alpha.ListAccountSumm" + - "ariesRequest\032<.google.analytics.admin.v1" + - "alpha.ListAccountSummariesResponse\"!\202\323\344\223" + - "\002\033\022\031/v1alpha/accountSummaries\022\230\001\n\013GetPro" + - "perty\0222.google.analytics.admin.v1alpha.G" + - "etPropertyRequest\032(.google.analytics.adm" + - "in.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036\022\034/v1a" + - "lpha/{name=properties/*}\022\234\001\n\016ListPropert" + - "ies\0225.google.analytics.admin.v1alpha.Lis" + - "tPropertiesRequest\0326.google.analytics.ad" + - "min.v1alpha.ListPropertiesResponse\"\033\202\323\344\223" + - "\002\025\022\023/v1alpha/properties\022\243\001\n\016CreateProper" + - "ty\0225.google.analytics.admin.v1alpha.Crea" + - "tePropertyRequest\032(.google.analytics.adm" + - "in.v1alpha.Property\"0\332A\010property\202\323\344\223\002\037\"\023" + - "/v1alpha/properties:\010property\022\236\001\n\016Delete" + - "Property\0225.google.analytics.admin.v1alph" + - "a.DeletePropertyRequest\032(.google.analyti" + - "cs.admin.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036" + - "*\034/v1alpha/{name=properties/*}\022\301\001\n\016Updat" + - "eProperty\0225.google.analytics.admin.v1alp" + - "ha.UpdatePropertyRequest\032(.google.analyt" + - "ics.admin.v1alpha.Property\"N\332A\024property," + - "update_mask\202\323\344\223\00212%/v1alpha/{property.na" + - "me=properties/*}:\010property\022\331\001\n\022CreateFir" + - "ebaseLink\0229.google.analytics.admin.v1alp" + - "ha.CreateFirebaseLinkRequest\032,.google.an" + - "alytics.admin.v1alpha.FirebaseLink\"Z\332A\024p" + - "arent,firebase_link\202\323\344\223\002=\",/v1alpha/{par" + - "ent=properties/*}/firebaseLinks:\rfirebas" + - "e_link\022\244\001\n\022DeleteFirebaseLink\0229.google.a" + - "nalytics.admin.v1alpha.DeleteFirebaseLin" + - "kRequest\032\026.google.protobuf.Empty\";\332A\004nam" + - "e\202\323\344\223\002.*,/v1alpha/{name=properties/*/fir" + - "ebaseLinks/*}\022\307\001\n\021ListFirebaseLinks\0228.go" + - "ogle.analytics.admin.v1alpha.ListFirebas" + - "eLinksRequest\0329.google.analytics.admin.v" + - "1alpha.ListFirebaseLinksResponse\"=\332A\006par" + - "ent\202\323\344\223\002.\022,/v1alpha/{parent=properties/*" + - "}/firebaseLinks\022\303\001\n\020GetGlobalSiteTag\0227.g" + - "oogle.analytics.admin.v1alpha.GetGlobalS" + - "iteTagRequest\032-.google.analytics.admin.v" + - "1alpha.GlobalSiteTag\"G\332A\004name\202\323\344\223\002:\0228/v1" + - "alpha/{name=properties/*/dataStreams/*/g" + - "lobalSiteTag}\022\341\001\n\023CreateGoogleAdsLink\022:." + - "google.analytics.admin.v1alpha.CreateGoo" + - "gleAdsLinkRequest\032-.google.analytics.adm" + - "in.v1alpha.GoogleAdsLink\"_\332A\026parent,goog" + - "le_ads_link\202\323\344\223\002@\"-/v1alpha/{parent=prop" + - "erties/*}/googleAdsLinks:\017google_ads_lin" + - "k\022\366\001\n\023UpdateGoogleAdsLink\022:.google.analy" + - "tics.admin.v1alpha.UpdateGoogleAdsLinkRe" + - "quest\032-.google.analytics.admin.v1alpha.G" + - "oogleAdsLink\"t\332A\033google_ads_link,update_" + - "mask\202\323\344\223\002P2=/v1alpha/{google_ads_link.na" + - "me=properties/*/googleAdsLinks/*}:\017googl" + - "e_ads_link\022\247\001\n\023DeleteGoogleAdsLink\022:.goo" + - "gle.analytics.admin.v1alpha.DeleteGoogle" + - "AdsLinkRequest\032\026.google.protobuf.Empty\"<" + - "\332A\004name\202\323\344\223\002/*-/v1alpha/{name=properties" + - "/*/googleAdsLinks/*}\022\313\001\n\022ListGoogleAdsLi" + - "nks\0229.google.analytics.admin.v1alpha.Lis" + - "tGoogleAdsLinksRequest\032:.google.analytic" + - "s.admin.v1alpha.ListGoogleAdsLinksRespon" + - "se\">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{parent=pr" + - "operties/*}/googleAdsLinks\022\313\001\n\026GetDataSh" + - "aringSettings\022=.google.analytics.admin.v" + - "1alpha.GetDataSharingSettingsRequest\0323.g" + - "oogle.analytics.admin.v1alpha.DataSharin" + - "gSettings\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{name" + - "=accounts/*/dataSharingSettings}\022\366\001\n\034Get" + - "MeasurementProtocolSecret\022C.google.analy" + - "tics.admin.v1alpha.GetMeasurementProtoco" + - "lSecretRequest\0329.google.analytics.admin." + - "v1alpha.MeasurementProtocolSecret\"V\332A\004na" + - "me\202\323\344\223\002I\022G/v1alpha/{name=properties/*/da" + - "taStreams/*/measurementProtocolSecrets/*" + - "}\022\211\002\n\036ListMeasurementProtocolSecrets\022E.g" + - "oogle.analytics.admin.v1alpha.ListMeasur" + - "ementProtocolSecretsRequest\032F.google.ana" + - "lytics.admin.v1alpha.ListMeasurementProt" + - "ocolSecretsResponse\"X\332A\006parent\202\323\344\223\002I\022G/v" + - "1alpha/{parent=properties/*/dataStreams/" + - "*}/measurementProtocolSecrets\022\270\002\n\037Create" + - "MeasurementProtocolSecret\022F.google.analy" + - "tics.admin.v1alpha.CreateMeasurementProt" + - "ocolSecretRequest\0329.google.analytics.adm" + - "in.v1alpha.MeasurementProtocolSecret\"\221\001\332" + - "A\"parent,measurement_protocol_secret\202\323\344\223" + - "\002f\"G/v1alpha/{parent=properties/*/dataSt" + - "reams/*}/measurementProtocolSecrets:\033mea" + - "surement_protocol_secret\022\331\001\n\037DeleteMeasu" + - "rementProtocolSecret\022F.google.analytics." + - "admin.v1alpha.DeleteMeasurementProtocolS" + - "ecretRequest\032\026.google.protobuf.Empty\"V\332A" + - "\004name\202\323\344\223\002I*G/v1alpha/{name=properties/*" + - "/dataStreams/*/measurementProtocolSecret" + - "s/*}\022\332\002\n\037UpdateMeasurementProtocolSecret" + - "\022F.google.analytics.admin.v1alpha.Update" + - "MeasurementProtocolSecretRequest\0329.googl" + - "e.analytics.admin.v1alpha.MeasurementPro" + - "tocolSecret\"\263\001\332A\'measurement_protocol_se" + - "cret,update_mask\202\323\344\223\002\202\0012c/v1alpha/{measu" + - "rement_protocol_secret.name=properties/*" + - "/dataStreams/*/measurementProtocolSecret" + - "s/*}:\033measurement_protocol_secret\022\367\001\n\035Ac" + - "knowledgeUserDataCollection\022D.google.ana" + - "lytics.admin.v1alpha.AcknowledgeUserData" + - "CollectionRequest\032E.google.analytics.adm" + - "in.v1alpha.AcknowledgeUserDataCollection" + - "Response\"I\202\323\344\223\002C\">/v1alpha/{property=pro" + - "perties/*}:acknowledgeUserDataCollection" + - ":\001*\022\221\002\n#GetSKAdNetworkConversionValueSch" + - "ema\022J.google.analytics.admin.v1alpha.Get" + - "SKAdNetworkConversionValueSchemaRequest\032" + - "@.google.analytics.admin.v1alpha.SKAdNet" + - "workConversionValueSchema\"\\\332A\004name\202\323\344\223\002O" + - "\022M/v1alpha/{name=properties/*/dataStream" + - "s/*/sKAdNetworkConversionValueSchema/*}\022" + - "\343\002\n&CreateSKAdNetworkConversionValueSche" + - "ma\022M.google.analytics.admin.v1alpha.Crea" + - "teSKAdNetworkConversionValueSchemaReques" + - "t\032@.google.analytics.admin.v1alpha.SKAdN" + - "etworkConversionValueSchema\"\247\001\332A*parent," + - "skadnetwork_conversion_value_schema\202\323\344\223\002" + - "t\"M/v1alpha/{parent=properties/*/dataStr" + - "eams/*}/sKAdNetworkConversionValueSchema" + - ":#skadnetwork_conversion_value_schema\022\355\001" + - "\n&DeleteSKAdNetworkConversionValueSchema" + - "\022M.google.analytics.admin.v1alpha.Delete" + - "SKAdNetworkConversionValueSchemaRequest\032" + - "\026.google.protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*M" + - "/v1alpha/{name=properties/*/dataStreams/" + - "*/sKAdNetworkConversionValueSchema/*}\022\215\003" + - "\n&UpdateSKAdNetworkConversionValueSchema" + - "\022M.google.analytics.admin.v1alpha.Update" + - "SKAdNetworkConversionValueSchemaRequest\032" + - "@.google.analytics.admin.v1alpha.SKAdNet" + - "workConversionValueSchema\"\321\001\332A/skadnetwo" + - "rk_conversion_value_schema,update_mask\202\323" + - "\344\223\002\230\0012q/v1alpha/{skadnetwork_conversion_" + - "value_schema.name=properties/*/dataStrea" + - "ms/*/sKAdNetworkConversionValueSchema/*}" + - ":#skadnetwork_conversion_value_schema\022\244\002" + - "\n%ListSKAdNetworkConversionValueSchemas\022" + - "L.google.analytics.admin.v1alpha.ListSKA" + - "dNetworkConversionValueSchemasRequest\032M." + - "google.analytics.admin.v1alpha.ListSKAdN" + - "etworkConversionValueSchemasResponse\"^\332A" + - "\006parent\202\323\344\223\002O\022M/v1alpha/{parent=properti" + - "es/*/dataStreams/*}/sKAdNetworkConversio" + - "nValueSchema\022\344\001\n\031SearchChangeHistoryEven" + - "ts\022@.google.analytics.admin.v1alpha.Sear" + - "chChangeHistoryEventsRequest\032A.google.an" + - "alytics.admin.v1alpha.SearchChangeHistor", - "yEventsResponse\"B\202\323\344\223\002<\"7/v1alpha/{accou" + - "nt=accounts/*}:searchChangeHistoryEvents" + - ":\001*\022\325\001\n\030GetGoogleSignalsSettings\022?.googl" + - "e.analytics.admin.v1alpha.GetGoogleSigna" + - "lsSettingsRequest\0325.google.analytics.adm" + - "in.v1alpha.GoogleSignalsSettings\"A\332A\004nam" + - "e\202\323\344\223\0024\0222/v1alpha/{name=properties/*/goo" + - "gleSignalsSettings}\022\254\002\n\033UpdateGoogleSign" + - "alsSettings\022B.google.analytics.admin.v1a" + - "lpha.UpdateGoogleSignalsSettingsRequest\032" + - "5.google.analytics.admin.v1alpha.GoogleS" + - "ignalsSettings\"\221\001\332A#google_signals_setti" + - "ngs,update_mask\202\323\344\223\002e2J/v1alpha/{google_" + - "signals_settings.name=properties/*/googl" + - "eSignalsSettings}:\027google_signals_settin" + - "gs\022\353\001\n\025CreateConversionEvent\022<.google.an" + - "alytics.admin.v1alpha.CreateConversionEv" + - "entRequest\032/.google.analytics.admin.v1al" + - "pha.ConversionEvent\"c\332A\027parent,conversio" + - "n_event\202\323\344\223\002C\"//v1alpha/{parent=properti" + - "es/*}/conversionEvents:\020conversion_event" + - "\022\201\002\n\025UpdateConversionEvent\022<.google.anal" + - "ytics.admin.v1alpha.UpdateConversionEven" + - "tRequest\032/.google.analytics.admin.v1alph" + - "a.ConversionEvent\"y\332A\034conversion_event,u" + - "pdate_mask\202\323\344\223\002T2@/v1alpha/{conversion_e" + - "vent.name=properties/*/conversionEvents/" + - "*}:\020conversion_event\022\300\001\n\022GetConversionEv" + - "ent\0229.google.analytics.admin.v1alpha.Get" + - "ConversionEventRequest\032/.google.analytic" + - "s.admin.v1alpha.ConversionEvent\">\332A\004name" + - "\202\323\344\223\0021\022//v1alpha/{name=properties/*/conv" + - "ersionEvents/*}\022\255\001\n\025DeleteConversionEven" + - "t\022<.google.analytics.admin.v1alpha.Delet" + - "eConversionEventRequest\032\026.google.protobu" + - "f.Empty\">\332A\004name\202\323\344\223\0021*//v1alpha/{name=p" + - "roperties/*/conversionEvents/*}\022\323\001\n\024List" + - "ConversionEvents\022;.google.analytics.admi" + - "n.v1alpha.ListConversionEventsRequest\032<." + - "google.analytics.admin.v1alpha.ListConve" + - "rsionEventsResponse\"@\332A\006parent\202\323\344\223\0021\022//v" + - "1alpha/{parent=properties/*}/conversionE" + - "vents\022\370\001\n GetDisplayVideo360AdvertiserLi" + - "nk\022G.google.analytics.admin.v1alpha.GetD" + - "isplayVideo360AdvertiserLinkRequest\032=.go" + - "ogle.analytics.admin.v1alpha.DisplayVide" + - "o360AdvertiserLink\"L\332A\004name\202\323\344\223\002?\022=/v1al" + - "pha/{name=properties/*/displayVideo360Ad" + - "vertiserLinks/*}\022\213\002\n\"ListDisplayVideo360" + - "AdvertiserLinks\022I.google.analytics.admin" + - ".v1alpha.ListDisplayVideo360AdvertiserLi" + - "nksRequest\032J.google.analytics.admin.v1al" + - "pha.ListDisplayVideo360AdvertiserLinksRe" + - "sponse\"N\332A\006parent\202\323\344\223\002?\022=/v1alpha/{paren" + - "t=properties/*}/displayVideo360Advertise" + - "rLinks\022\306\002\n#CreateDisplayVideo360Advertis" + - "erLink\022J.google.analytics.admin.v1alpha." + - "CreateDisplayVideo360AdvertiserLinkReque" + - "st\032=.google.analytics.admin.v1alpha.Disp" + - "layVideo360AdvertiserLink\"\223\001\332A(parent,di" + - "splay_video_360_advertiser_link\202\323\344\223\002b\"=/" + - "v1alpha/{parent=properties/*}/displayVid" + - "eo360AdvertiserLinks:!display_video_360_" + - "advertiser_link\022\327\001\n#DeleteDisplayVideo36" + - "0AdvertiserLink\022J.google.analytics.admin" + - ".v1alpha.DeleteDisplayVideo360Advertiser" + - "LinkRequest\032\026.google.protobuf.Empty\"L\332A\004" + - "name\202\323\344\223\002?*=/v1alpha/{name=properties/*/" + - "displayVideo360AdvertiserLinks/*}\022\356\002\n#Up" + - "dateDisplayVideo360AdvertiserLink\022J.goog" + - "le.analytics.admin.v1alpha.UpdateDisplay" + - "Video360AdvertiserLinkRequest\032=.google.a" + - "nalytics.admin.v1alpha.DisplayVideo360Ad" + - "vertiserLink\"\273\001\332A-display_video_360_adve" + - "rtiser_link,update_mask\202\323\344\223\002\204\0012_/v1alpha" + - "/{display_video_360_advertiser_link.name" + - "=properties/*/displayVideo360AdvertiserL" + - "inks/*}:!display_video_360_advertiser_li" + - "nk\022\230\002\n(GetDisplayVideo360AdvertiserLinkP" + - "roposal\022O.google.analytics.admin.v1alpha" + - ".GetDisplayVideo360AdvertiserLinkProposa" + - "lRequest\032E.google.analytics.admin.v1alph" + - "a.DisplayVideo360AdvertiserLinkProposal\"" + - "T\332A\004name\202\323\344\223\002G\022E/v1alpha/{name=propertie" + - "s/*/displayVideo360AdvertiserLinkProposa" + - "ls/*}\022\253\002\n*ListDisplayVideo360AdvertiserL" + - "inkProposals\022Q.google.analytics.admin.v1" + - "alpha.ListDisplayVideo360AdvertiserLinkP" + - "roposalsRequest\032R.google.analytics.admin" + - ".v1alpha.ListDisplayVideo360AdvertiserLi" + - "nkProposalsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v" + - "1alpha/{parent=properties/*}/displayVide" + - "o360AdvertiserLinkProposals\022\370\002\n+CreateDi" + - "splayVideo360AdvertiserLinkProposal\022R.go" + - "ogle.analytics.admin.v1alpha.CreateDispl" + - "ayVideo360AdvertiserLinkProposalRequest\032" + - "E.google.analytics.admin.v1alpha.Display" + - "Video360AdvertiserLinkProposal\"\255\001\332A1pare" + - "nt,display_video_360_advertiser_link_pro" + - "posal\202\323\344\223\002s\"E/v1alpha/{parent=properties" + - "/*}/displayVideo360AdvertiserLinkProposa" + - "ls:*display_video_360_advertiser_link_pr" + - "oposal\022\357\001\n+DeleteDisplayVideo360Advertis" + - "erLinkProposal\022R.google.analytics.admin." + - "v1alpha.DeleteDisplayVideo360AdvertiserL" + - "inkProposalRequest\032\026.google.protobuf.Emp" + - "ty\"T\332A\004name\202\323\344\223\002G*E/v1alpha/{name=proper" + - "ties/*/displayVideo360AdvertiserLinkProp" + - "osals/*}\022\263\002\n,ApproveDisplayVideo360Adver" + - "tiserLinkProposal\022S.google.analytics.adm" + - "in.v1alpha.ApproveDisplayVideo360Adverti" + - "serLinkProposalRequest\032T.google.analytic" + - "s.admin.v1alpha.ApproveDisplayVideo360Ad" + - "vertiserLinkProposalResponse\"X\202\323\344\223\002R\"M/v" + - "1alpha/{name=properties/*/displayVideo36" + - "0AdvertiserLinkProposals/*}:approve:\001*\022\241" + - "\002\n+CancelDisplayVideo360AdvertiserLinkPr" + - "oposal\022R.google.analytics.admin.v1alpha." + - "CancelDisplayVideo360AdvertiserLinkPropo" + - "salRequest\032E.google.analytics.admin.v1al" + - "pha.DisplayVideo360AdvertiserLinkProposa" + - "l\"W\202\323\344\223\002Q\"L/v1alpha/{name=properties/*/d" + - "isplayVideo360AdvertiserLinkProposals/*}" + - ":cancel:\001*\022\353\001\n\025CreateCustomDimension\022<.g" + - "oogle.analytics.admin.v1alpha.CreateCust" + - "omDimensionRequest\032/.google.analytics.ad" + - "min.v1alpha.CustomDimension\"c\332A\027parent,c" + - "ustom_dimension\202\323\344\223\002C\"//v1alpha/{parent=" + - "properties/*}/customDimensions:\020custom_d" + - "imension\022\201\002\n\025UpdateCustomDimension\022<.goo" + - "gle.analytics.admin.v1alpha.UpdateCustom" + - "DimensionRequest\032/.google.analytics.admi" + - "n.v1alpha.CustomDimension\"y\332A\034custom_dim" + - "ension,update_mask\202\323\344\223\002T2@/v1alpha/{cust" + - "om_dimension.name=properties/*/customDim" + - "ensions/*}:\020custom_dimension\022\323\001\n\024ListCus" + - "tomDimensions\022;.google.analytics.admin.v" + - "1alpha.ListCustomDimensionsRequest\032<.goo" + - "gle.analytics.admin.v1alpha.ListCustomDi" + - "mensionsResponse\"@\332A\006parent\202\323\344\223\0021\022//v1al" + - "pha/{parent=properties/*}/customDimensio" + - "ns\022\272\001\n\026ArchiveCustomDimension\022=.google.a" + - "nalytics.admin.v1alpha.ArchiveCustomDime" + - "nsionRequest\032\026.google.protobuf.Empty\"I\332A" + - "\004name\202\323\344\223\002<\"7/v1alpha/{name=properties/*" + - "/customDimensions/*}:archive:\001*\022\300\001\n\022GetC" + - "ustomDimension\0229.google.analytics.admin." + - "v1alpha.GetCustomDimensionRequest\032/.goog" + - "le.analytics.admin.v1alpha.CustomDimensi" + - "on\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name=proper" + - "ties/*/customDimensions/*}\022\331\001\n\022CreateCus" + - "tomMetric\0229.google.analytics.admin.v1alp" + - "ha.CreateCustomMetricRequest\032,.google.an" + - "alytics.admin.v1alpha.CustomMetric\"Z\332A\024p" + - "arent,custom_metric\202\323\344\223\002=\",/v1alpha/{par" + - "ent=properties/*}/customMetrics:\rcustom_" + - "metric\022\354\001\n\022UpdateCustomMetric\0229.google.a" + - "nalytics.admin.v1alpha.UpdateCustomMetri" + - "cRequest\032,.google.analytics.admin.v1alph" + - "a.CustomMetric\"m\332A\031custom_metric,update_" + - "mask\202\323\344\223\002K2:/v1alpha/{custom_metric.name" + - "=properties/*/customMetrics/*}:\rcustom_m" + - "etric\022\307\001\n\021ListCustomMetrics\0228.google.ana" + - "lytics.admin.v1alpha.ListCustomMetricsRe" + - "quest\0329.google.analytics.admin.v1alpha.L" + - "istCustomMetricsResponse\"=\332A\006parent\202\323\344\223\002" + - ".\022,/v1alpha/{parent=properties/*}/custom" + - "Metrics\022\261\001\n\023ArchiveCustomMetric\022:.google" + - ".analytics.admin.v1alpha.ArchiveCustomMe" + - "tricRequest\032\026.google.protobuf.Empty\"F\332A\004" + - "name\202\323\344\223\0029\"4/v1alpha/{name=properties/*/" + - "customMetrics/*}:archive:\001*\022\264\001\n\017GetCusto" + - "mMetric\0226.google.analytics.admin.v1alpha" + - ".GetCustomMetricRequest\032,.google.analyti" + - "cs.admin.v1alpha.CustomMetric\";\332A\004name\202\323" + - "\344\223\002.\022,/v1alpha/{name=properties/*/custom" + - "Metrics/*}\022\325\001\n\030GetDataRetentionSettings\022" + - "?.google.analytics.admin.v1alpha.GetData" + - "RetentionSettingsRequest\0325.google.analyt" + - "ics.admin.v1alpha.DataRetentionSettings\"" + - "A\332A\004name\202\323\344\223\0024\0222/v1alpha/{name=propertie" + - "s/*/dataRetentionSettings}\022\254\002\n\033UpdateDat" + - "aRetentionSettings\022B.google.analytics.ad" + - "min.v1alpha.UpdateDataRetentionSettingsR" + - "equest\0325.google.analytics.admin.v1alpha." + - "DataRetentionSettings\"\221\001\332A#data_retentio" + - "n_settings,update_mask\202\323\344\223\002e2J/v1alpha/{" + - "data_retention_settings.name=properties/" + - "*/dataRetentionSettings}:\027data_retention" + - "_settings\022\315\001\n\020CreateDataStream\0227.google." + - "analytics.admin.v1alpha.CreateDataStream" + - "Request\032*.google.analytics.admin.v1alpha" + - ".DataStream\"T\332A\022parent,data_stream\202\323\344\223\0029" + - "\"*/v1alpha/{parent=properties/*}/dataStr" + - "eams:\013data_stream\022\236\001\n\020DeleteDataStream\0227" + - ".google.analytics.admin.v1alpha.DeleteDa" + - "taStreamRequest\032\026.google.protobuf.Empty\"" + - "9\332A\004name\202\323\344\223\002,**/v1alpha/{name=propertie" + - "s/*/dataStreams/*}\022\336\001\n\020UpdateDataStream\022" + - "7.google.analytics.admin.v1alpha.UpdateD" + - "ataStreamRequest\032*.google.analytics.admi" + - "n.v1alpha.DataStream\"e\332A\027data_stream,upd" + - "ate_mask\202\323\344\223\002E26/v1alpha/{data_stream.na" + - "me=properties/*/dataStreams/*}:\013data_str" + - "eam\022\277\001\n\017ListDataStreams\0226.google.analyti" + - "cs.admin.v1alpha.ListDataStreamsRequest\032" + - "7.google.analytics.admin.v1alpha.ListDat" + - "aStreamsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1al" + - "pha/{parent=properties/*}/dataStreams\022\254\001" + - "\n\rGetDataStream\0224.google.analytics.admin" + - ".v1alpha.GetDataStreamRequest\032*.google.a" + - "nalytics.admin.v1alpha.DataStream\"9\332A\004na" + - "me\202\323\344\223\002,\022*/v1alpha/{name=properties/*/da" + - "taStreams/*}\022\244\001\n\013GetAudience\0222.google.an" + - "alytics.admin.v1alpha.GetAudienceRequest" + - "\032(.google.analytics.admin.v1alpha.Audien" + - "ce\"7\332A\004name\202\323\344\223\002*\022(/v1alpha/{name=proper" + - "ties/*/audiences/*}\022\267\001\n\rListAudiences\0224." + - "google.analytics.admin.v1alpha.ListAudie" + - "ncesRequest\0325.google.analytics.admin.v1a" + - "lpha.ListAudiencesResponse\"9\332A\006parent\202\323\344" + - "\223\002*\022(/v1alpha/{parent=properties/*}/audi" + - "ences\022\277\001\n\016CreateAudience\0225.google.analyt" + - "ics.admin.v1alpha.CreateAudienceRequest\032" + - "(.google.analytics.admin.v1alpha.Audienc" + - "e\"L\332A\017parent,audience\202\323\344\223\0024\"(/v1alpha/{p" + - "arent=properties/*}/audiences:\010audience\022" + - "\315\001\n\016UpdateAudience\0225.google.analytics.ad" + - "min.v1alpha.UpdateAudienceRequest\032(.goog" + - "le.analytics.admin.v1alpha.Audience\"Z\332A\024" + - "audience,update_mask\202\323\344\223\002=21/v1alpha/{au" + - "dience.name=properties/*/audiences/*}:\010a" + - "udience\022\236\001\n\017ArchiveAudience\0226.google.ana" + - "lytics.admin.v1alpha.ArchiveAudienceRequ" + - "est\032\026.google.protobuf.Empty\";\202\323\344\223\0025\"0/v1" + - "alpha/{name=properties/*/audiences/*}:ar" + - "chive:\001*\022\304\001\n\023GetSearchAds360Link\022:.googl" + - "e.analytics.admin.v1alpha.GetSearchAds36" + - "0LinkRequest\0320.google.analytics.admin.v1" + - "alpha.SearchAds360Link\"?\332A\004name\202\323\344\223\0022\0220/" + - "v1alpha/{name=properties/*/searchAds360L" + - "inks/*}\022\327\001\n\025ListSearchAds360Links\022<.goog" + - "le.analytics.admin.v1alpha.ListSearchAds" + - "360LinksRequest\032=.google.analytics.admin" + - ".v1alpha.ListSearchAds360LinksResponse\"A" + - "\332A\006parent\202\323\344\223\0022\0220/v1alpha/{parent=proper" + - "ties/*}/searchAds360Links\022\365\001\n\026CreateSear" + - "chAds360Link\022=.google.analytics.admin.v1" + - "alpha.CreateSearchAds360LinkRequest\0320.go" + - "ogle.analytics.admin.v1alpha.SearchAds36" + - "0Link\"j\332A\032parent,search_ads_360_link\202\323\344\223" + - "\002G\"0/v1alpha/{parent=properties/*}/searc" + - "hAds360Links:\023search_ads_360_link\022\260\001\n\026De" + - "leteSearchAds360Link\022=.google.analytics." + - "admin.v1alpha.DeleteSearchAds360LinkRequ" + - "est\032\026.google.protobuf.Empty\"?\332A\004name\202\323\344\223" + - "\0022*0/v1alpha/{name=properties/*/searchAd" + - "s360Links/*}\022\217\002\n\026UpdateSearchAds360Link\022" + - "=.google.analytics.admin.v1alpha.UpdateS" + - "earchAds360LinkRequest\0320.google.analytic" + - "s.admin.v1alpha.SearchAds360Link\"\203\001\332A\037se" + - "arch_ads_360_link,update_mask\202\323\344\223\002[2D/v1" + - "alpha/{search_ads_360_link.name=properti" + - "es/*/searchAds360Links/*}:\023search_ads_36" + - "0_link\022\315\001\n\026GetAttributionSettings\022=.goog" + - "le.analytics.admin.v1alpha.GetAttributio" + - "nSettingsRequest\0323.google.analytics.admi" + - "n.v1alpha.AttributionSettings\"?\332A\004name\202\323" + - "\344\223\0022\0220/v1alpha/{name=properties/*/attrib" + - "utionSettings}\022\233\002\n\031UpdateAttributionSett" + - "ings\022@.google.analytics.admin.v1alpha.Up" + - "dateAttributionSettingsRequest\0323.google." + - "analytics.admin.v1alpha.AttributionSetti" + - "ngs\"\206\001\332A attribution_settings,update_mas" + - "k\202\323\344\223\002]2E/v1alpha/{attribution_settings." + - "name=properties/*/attributionSettings}:\024" + - "attribution_settings\022\360\001\n\017RunAccessReport" + - "\0226.google.analytics.admin.v1alpha.RunAcc" + - "essReportRequest\0327.google.analytics.admi" + - "n.v1alpha.RunAccessReportResponse\"l\202\323\344\223\002" + - "f\"./v1alpha/{entity=properties/*}:runAcc" + - "essReport:\001*Z1\",/v1alpha/{entity=account" + - "s/*}:runAccessReport:\001*\022\237\002\n\023CreateAccess" + - "Binding\022:.google.analytics.admin.v1alpha" + - ".CreateAccessBindingRequest\032-.google.ana" + - "lytics.admin.v1alpha.AccessBinding\"\234\001\332A\025" + - "parent,access_binding\202\323\344\223\002~\"+/v1alpha/{p" + - "arent=accounts/*}/accessBindings:\016access" + - "_bindingZ?\"-/v1alpha/{parent=properties/" + - "*}/accessBindings:\016access_binding\022\347\001\n\020Ge" + - "tAccessBinding\0227.google.analytics.admin." + - "v1alpha.GetAccessBindingRequest\032-.google" + - ".analytics.admin.v1alpha.AccessBinding\"k" + - "\332A\004name\202\323\344\223\002^\022+/v1alpha/{name=accounts/*" + - "/accessBindings/*}Z/\022-/v1alpha/{name=pro" + - "perties/*/accessBindings/*}\022\267\002\n\023UpdateAc" + - "cessBinding\022:.google.analytics.admin.v1a" + - "lpha.UpdateAccessBindingRequest\032-.google" + - ".analytics.admin.v1alpha.AccessBinding\"\264" + - "\001\332A\016access_binding\202\323\344\223\002\234\0012:/v1alpha/{acc" + - "ess_binding.name=accounts/*/accessBindin" + - "gs/*}:\016access_bindingZN2\"9/v1alpha/{parent=properties/*}/ac" + - "cessBindings:batchCreate:\001*\022\217\002\n\026BatchGet" + - "AccessBindings\022=.google.analytics.admin." + - "v1alpha.BatchGetAccessBindingsRequest\032>." + - "google.analytics.admin.v1alpha.BatchGetA" + - "ccessBindingsResponse\"v\202\323\344\223\002p\0224/v1alpha/" + - "{parent=accounts/*}/accessBindings:batch" + - "GetZ8\0226/v1alpha/{parent=properties/*}/ac" + - "cessBindings:batchGet\022\245\002\n\031BatchUpdateAcc" + - "essBindings\022@.google.analytics.admin.v1a" + - "lpha.BatchUpdateAccessBindingsRequest\032A." + - "google.analytics.admin.v1alpha.BatchUpda" + - "teAccessBindingsResponse\"\202\001\202\323\344\223\002|\"7/v1al" + - "pha/{parent=accounts/*}/accessBindings:b" + - "atchUpdate:\001*Z>\"9/v1alpha/{parent=proper" + - "ties/*}/accessBindings:batchUpdate:\001*\022\372\001" + - "\n\031BatchDeleteAccessBindings\022@.google.ana" + - "lytics.admin.v1alpha.BatchDeleteAccessBi" + - "ndingsRequest\032\026.google.protobuf.Empty\"\202\001" + - "\202\323\344\223\002|\"7/v1alpha/{parent=accounts/*}/acc" + - "essBindings:batchDelete:\001*Z>\"9/v1alpha/{" + - "parent=properties/*}/accessBindings:batc" + - "hDelete:\001*\022\300\001\n\022GetExpandedDataSet\0229.goog" + - "le.analytics.admin.v1alpha.GetExpandedDa" + - "taSetRequest\032/.google.analytics.admin.v1" + - "alpha.ExpandedDataSet\">\332A\004name\202\323\344\223\0021\022//v" + - "1alpha/{name=properties/*/expandedDataSe" + - "ts/*}\022\323\001\n\024ListExpandedDataSets\022;.google." + - "analytics.admin.v1alpha.ListExpandedData" + - "SetsRequest\032<.google.analytics.admin.v1a" + - "lpha.ListExpandedDataSetsResponse\"@\332A\006pa" + - "rent\202\323\344\223\0021\022//v1alpha/{parent=properties/" + - "*}/expandedDataSets\022\355\001\n\025CreateExpandedDa" + - "taSet\022<.google.analytics.admin.v1alpha.C" + - "reateExpandedDataSetRequest\032/.google.ana" + - "lytics.admin.v1alpha.ExpandedDataSet\"e\332A" + - "\030parent,expanded_data_set\202\323\344\223\002D\"//v1alph" + - "a/{parent=properties/*}/expandedDataSets" + - ":\021expanded_data_set\022\204\002\n\025UpdateExpandedDa" + - "taSet\022<.google.analytics.admin.v1alpha.U" + - "pdateExpandedDataSetRequest\032/.google.ana" + - "lytics.admin.v1alpha.ExpandedDataSet\"|\332A" + - "\035expanded_data_set,update_mask\202\323\344\223\002V2A/v" + - "1alpha/{expanded_data_set.name=propertie" + - "s/*/expandedDataSets/*}:\021expanded_data_s" + - "et\022\255\001\n\025DeleteExpandedDataSet\022<.google.an" + - "alytics.admin.v1alpha.DeleteExpandedData" + - "SetRequest\032\026.google.protobuf.Empty\">\332A\004n" + - "ame\202\323\344\223\0021*//v1alpha/{name=properties/*/e" + - "xpandedDataSets/*}\022\264\001\n\017GetChannelGroup\0226" + - ".google.analytics.admin.v1alpha.GetChann" + - "elGroupRequest\032,.google.analytics.admin." + - "v1alpha.ChannelGroup\";\332A\004name\202\323\344\223\002.\022,/v1" + - "alpha/{name=properties/*/channelGroups/*" + - "}\022\307\001\n\021ListChannelGroups\0228.google.analyti" + - "cs.admin.v1alpha.ListChannelGroupsReques" + - "t\0329.google.analytics.admin.v1alpha.ListC" + - "hannelGroupsResponse\"=\332A\006parent\202\323\344\223\002.\022,/" + - "v1alpha/{parent=properties/*}/channelGro" + - "ups\022\331\001\n\022CreateChannelGroup\0229.google.anal" + - "ytics.admin.v1alpha.CreateChannelGroupRe" + - "quest\032,.google.analytics.admin.v1alpha.C" + - "hannelGroup\"Z\332A\024parent,channel_group\202\323\344\223" + - "\002=\",/v1alpha/{parent=properties/*}/chann" + - "elGroups:\rchannel_group\022\354\001\n\022UpdateChanne" + - "lGroup\0229.google.analytics.admin.v1alpha." + - "UpdateChannelGroupRequest\032,.google.analy" + - "tics.admin.v1alpha.ChannelGroup\"m\332A\031chan" + - "nel_group,update_mask\202\323\344\223\002K2:/v1alpha/{c" + - "hannel_group.name=properties/*/channelGr" + - "oups/*}:\rchannel_group\022\244\001\n\022DeleteChannel" + - "Group\0229.google.analytics.admin.v1alpha.D" + - "eleteChannelGroupRequest\032\026.google.protob" + - "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" + - "properties/*/channelGroups/*}\022\376\001\n\"SetAut" + - "omatedGa4ConfigurationOptOut\022I.google.an" + - "alytics.admin.v1alpha.SetAutomatedGa4Con" + - "figurationOptOutRequest\032J.google.analyti" + - "cs.admin.v1alpha.SetAutomatedGa4Configur", - "ationOptOutResponse\"A\202\323\344\223\002;\"6/v1alpha/pr" + - "operties:setAutomatedGa4ConfigurationOpt" + - "Out:\001*\022\206\002\n$FetchAutomatedGa4Configuratio" + - "nOptOut\022K.google.analytics.admin.v1alpha" + - ".FetchAutomatedGa4ConfigurationOptOutReq" + - "uest\032L.google.analytics.admin.v1alpha.Fe" + - "tchAutomatedGa4ConfigurationOptOutRespon" + - "se\"C\202\323\344\223\002=\"8/v1alpha/properties:fetchAut" + - "omatedGa4ConfigurationOptOut:\001*\022\264\001\n\017GetB" + - "igQueryLink\0226.google.analytics.admin.v1a" + - "lpha.GetBigQueryLinkRequest\032,.google.ana" + - "lytics.admin.v1alpha.BigQueryLink\";\332A\004na" + - "me\202\323\344\223\002.\022,/v1alpha/{name=properties/*/bi" + - "gQueryLinks/*}\022\307\001\n\021ListBigQueryLinks\0228.g" + - "oogle.analytics.admin.v1alpha.ListBigQue" + - "ryLinksRequest\0329.google.analytics.admin." + - "v1alpha.ListBigQueryLinksResponse\"=\332A\006pa" + - "rent\202\323\344\223\002.\022,/v1alpha/{parent=properties/" + - "*}/bigQueryLinks\022\373\001\n\036GetEnhancedMeasurem" + - "entSettings\022E.google.analytics.admin.v1a" + - "lpha.GetEnhancedMeasurementSettingsReque" + - "st\032;.google.analytics.admin.v1alpha.Enha" + - "ncedMeasurementSettings\"U\332A\004name\202\323\344\223\002H\022F" + - "/v1alpha/{name=properties/*/dataStreams/" + - "*/enhancedMeasurementSettings}\022\345\002\n!Updat" + - "eEnhancedMeasurementSettings\022H.google.an" + - "alytics.admin.v1alpha.UpdateEnhancedMeas" + - "urementSettingsRequest\032;.google.analytic" + - "s.admin.v1alpha.EnhancedMeasurementSetti" + - "ngs\"\270\001\332A)enhanced_measurement_settings,u" + - "pdate_mask\202\323\344\223\002\205\0012d/v1alpha/{enhanced_me" + - "asurement_settings.name=properties/*/dat" + - "aStreams/*/enhancedMeasurementSettings}:" + - "\035enhanced_measurement_settings\022\316\001\n\026Creat" + - "eConnectedSiteTag\022=.google.analytics.adm" + - "in.v1alpha.CreateConnectedSiteTagRequest" + - "\032>.google.analytics.admin.v1alpha.Create" + - "ConnectedSiteTagResponse\"5\202\323\344\223\002/\"*/v1alp" + - "ha/properties:createConnectedSiteTag:\001*\022" + - "\246\001\n\026DeleteConnectedSiteTag\022=.google.anal" + - "ytics.admin.v1alpha.DeleteConnectedSiteT" + - "agRequest\032\026.google.protobuf.Empty\"5\202\323\344\223\002" + - "/\"*/v1alpha/properties:deleteConnectedSi" + - "teTag:\001*\022\312\001\n\025ListConnectedSiteTags\022<.goo" + - "gle.analytics.admin.v1alpha.ListConnecte" + - "dSiteTagsRequest\032=.google.analytics.admi" + - "n.v1alpha.ListConnectedSiteTagsResponse\"" + - "4\202\323\344\223\002.\")/v1alpha/properties:listConnect" + - "edSiteTags:\001*\022\327\001\n\031FetchConnectedGa4Prope" + - "rty\022@.google.analytics.admin.v1alpha.Fet" + - "chConnectedGa4PropertyRequest\032A.google.a" + - "nalytics.admin.v1alpha.FetchConnectedGa4" + - "PropertyResponse\"5\202\323\344\223\002/\022-/v1alpha/prope" + - "rties:fetchConnectedGa4Property\022\260\001\n\016GetA" + - "dSenseLink\0225.google.analytics.admin.v1al" + - "pha.GetAdSenseLinkRequest\032+.google.analy" + - "tics.admin.v1alpha.AdSenseLink\":\332A\004name\202" + - "\323\344\223\002-\022+/v1alpha/{name=properties/*/adSen" + - "seLinks/*}\022\323\001\n\021CreateAdSenseLink\0228.googl" + - "e.analytics.admin.v1alpha.CreateAdSenseL" + - "inkRequest\032+.google.analytics.admin.v1al" + - "pha.AdSenseLink\"W\332A\023parent,adsense_link\202" + - "\323\344\223\002;\"+/v1alpha/{parent=properties/*}/ad" + - "SenseLinks:\014adsense_link\022\241\001\n\021DeleteAdSen" + - "seLink\0228.google.analytics.admin.v1alpha." + - "DeleteAdSenseLinkRequest\032\026.google.protob" + - "uf.Empty\":\332A\004name\202\323\344\223\002-*+/v1alpha/{name=" + - "properties/*/adSenseLinks/*}\022\303\001\n\020ListAdS" + - "enseLinks\0227.google.analytics.admin.v1alp" + - "ha.ListAdSenseLinksRequest\0328.google.anal" + - "ytics.admin.v1alpha.ListAdSenseLinksResp" + - "onse\"<\332A\006parent\202\323\344\223\002-\022+/v1alpha/{parent=" + - "properties/*}/adSenseLinks\022\316\001\n\022GetEventC" + - "reateRule\0229.google.analytics.admin.v1alp" + - "ha.GetEventCreateRuleRequest\032/.google.an" + - "alytics.admin.v1alpha.EventCreateRule\"L\332" + - "A\004name\202\323\344\223\002?\022=/v1alpha/{name=properties/" + - "*/dataStreams/*/eventCreateRules/*}\022\341\001\n\024" + - "ListEventCreateRules\022;.google.analytics." + - "admin.v1alpha.ListEventCreateRulesReques" + - "t\032<.google.analytics.admin.v1alpha.ListE" + - "ventCreateRulesResponse\"N\332A\006parent\202\323\344\223\002?" + - "\022=/v1alpha/{parent=properties/*/dataStre" + - "ams/*}/eventCreateRules\022\373\001\n\025CreateEventC" + - "reateRule\022<.google.analytics.admin.v1alp" + - "ha.CreateEventCreateRuleRequest\032/.google" + - ".analytics.admin.v1alpha.EventCreateRule" + - "\"s\332A\030parent,event_create_rule\202\323\344\223\002R\"=/v1" + - "alpha/{parent=properties/*/dataStreams/*" + - "}/eventCreateRules:\021event_create_rule\022\223\002" + - "\n\025UpdateEventCreateRule\022<.google.analyti" + - "cs.admin.v1alpha.UpdateEventCreateRuleRe" + - "quest\032/.google.analytics.admin.v1alpha.E" + - "ventCreateRule\"\212\001\332A\035event_create_rule,up" + - "date_mask\202\323\344\223\002d2O/v1alpha/{event_create_" + - "rule.name=properties/*/dataStreams/*/eve" + - "ntCreateRules/*}:\021event_create_rule\022\273\001\n\025" + - "DeleteEventCreateRule\022<.google.analytics" + - ".admin.v1alpha.DeleteEventCreateRuleRequ" + - "est\032\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223" + - "\002?*=/v1alpha/{name=properties/*/dataStre" + - "ams/*/eventCreateRules/*}\022\272\002\n\033UpdateData" + - "RedactionSettings\022B.google.analytics.adm" + - "in.v1alpha.UpdateDataRedactionSettingsRe" + - "quest\0325.google.analytics.admin.v1alpha.D" + - "ataRedactionSettings\"\237\001\332A#data_redaction" + - "_settings,update_mask\202\323\344\223\002s2X/v1alpha/{d" + - "ata_redaction_settings.name=properties/*" + - "/dataStreams/*/dataRedactionSettings}:\027d" + - "ata_redaction_settings\022\343\001\n\030GetDataRedact" + - "ionSettings\022?.google.analytics.admin.v1a" + - "lpha.GetDataRedactionSettingsRequest\0325.g" + - "oogle.analytics.admin.v1alpha.DataRedact" + - "ionSettings\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{na" + - "me=properties/*/dataStreams/*/dataRedact" + - "ionSettings}\022\306\001\n\024CreateRollupProperty\022;." + - "google.analytics.admin.v1alpha.CreateRol" + - "lupPropertyRequest\032<.google.analytics.ad" + - "min.v1alpha.CreateRollupPropertyResponse" + - "\"3\202\323\344\223\002-\"(/v1alpha/properties:createRoll" + - "upProperty:\001*\022\344\001\n\033GetRollupPropertySourc" + - "eLink\022B.google.analytics.admin.v1alpha.G" + - "etRollupPropertySourceLinkRequest\0328.goog" + - "le.analytics.admin.v1alpha.RollupPropert" + - "ySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{na" + - "me=properties/*/rollupPropertySourceLink" + - "s/*}\022\367\001\n\035ListRollupPropertySourceLinks\022D" + - ".google.analytics.admin.v1alpha.ListRoll" + - "upPropertySourceLinksRequest\032E.google.an" + - "alytics.admin.v1alpha.ListRollupProperty" + - "SourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228/v" + - "1alpha/{parent=properties/*}/rollupPrope" + - "rtySourceLinks\022\246\002\n\036CreateRollupPropertyS" + - "ourceLink\022E.google.analytics.admin.v1alp" + - "ha.CreateRollupPropertySourceLinkRequest" + - "\0328.google.analytics.admin.v1alpha.Rollup" + - "PropertySourceLink\"\202\001\332A\"parent,rollup_pr" + - "operty_source_link\202\323\344\223\002W\"8/v1alpha/{pare" + - "nt=properties/*}/rollupPropertySourceLin" + - "ks:\033rollup_property_source_link\022\310\001\n\036Dele" + - "teRollupPropertySourceLink\022E.google.anal" + - "ytics.admin.v1alpha.DeleteRollupProperty" + - "SourceLinkRequest\032\026.google.protobuf.Empt" + - "y\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=propert" + - "ies/*/rollupPropertySourceLinks/*}\022\272\001\n\021C" + - "reateSubproperty\0228.google.analytics.admi" + - "n.v1alpha.CreateSubpropertyRequest\0329.goo" + - "gle.analytics.admin.v1alpha.CreateSubpro" + - "pertyResponse\"0\202\323\344\223\002*\"%/v1alpha/properti" + - "es:createSubproperty:\001*\022\302\001\n\034DeleteSubpro" + - "pertyEventFilter\022C.google.analytics.admi" + - "n.v1alpha.DeleteSubpropertyEventFilterRe" + - "quest\032\026.google.protobuf.Empty\"E\332A\004name\202\323" + - "\344\223\0028*6/v1alpha/{name=properties/*/subpro" + - "pertyEventFilters/*}\022\227\002\n\034CreateSubproper" + - "tyEventFilter\022C.google.analytics.admin.v" + - "1alpha.CreateSubpropertyEventFilterReque" + - "st\0326.google.analytics.admin.v1alpha.Subp" + - "ropertyEventFilter\"z\332A\037parent,subpropert" + - "y_event_filter\202\323\344\223\002R\"6/v1alpha/{parent=p" + - "roperties/*}/subpropertyEventFilters:\030su" + - "bproperty_event_filter\032\374\001\312A\035analyticsadm" + - "in.googleapis.com\322A\330\001https://www.googlea" + - "pis.com/auth/analytics.edit,https://www." + - "googleapis.com/auth/analytics.manage.use" + - "rs,https://www.googleapis.com/auth/analy" + - "tics.manage.users.readonly,https://www.g" + - "oogleapis.com/auth/analytics.readonlyB{\n" + - "\"com.google.analytics.admin.v1alphaB\023Ana" + - "lyticsAdminProtoP\001Z>cloud.google.com/go/" + - "analytics/admin/apiv1alpha/adminpb;admin" + - "pbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(), - com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), - com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(), - com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(), - com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(), - com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(), - com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor, - new java.lang.String[] { "Entity", "Dimensions", "Metrics", "DateRanges", "DimensionFilter", "MetricFilter", "Offset", "Limit", "TimeZone", "OrderBys", "ReturnEntityQuota", "IncludeAllUsers", "ExpandGroups", }); - internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor, - new java.lang.String[] { "DimensionHeaders", "MetricHeaders", "Rows", "RowCount", "Quota", }); - internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor, - new java.lang.String[] { "Accounts", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor, - new java.lang.String[] { "Account", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor, - new java.lang.String[] { "Account", "RedirectUri", }); - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor, - new java.lang.String[] { "AccountTicketId", }); - internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor, - new java.lang.String[] { "Filter", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor, - new java.lang.String[] { "Properties", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor, - new java.lang.String[] { "Property", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor, - new java.lang.String[] { "Property", }); - internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, - new java.lang.String[] { "Parent", "FirebaseLink", }); - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, - new java.lang.String[] { "FirebaseLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { "Parent", "GoogleAdsLink", }); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { "GoogleAdsLink", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, - new java.lang.String[] { "GoogleAdsLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, - new java.lang.String[] { "AccountSummaries", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionRequest_descriptor, - new java.lang.String[] { "Property", "Acknowledgement", }); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AcknowledgeUserDataCollectionResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, - new java.lang.String[] { "Account", "Property", "ResourceType", "Action", "ActorEmail", "EarliestChangeTime", "LatestChangeTime", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, - new java.lang.String[] { "ChangeHistoryEvents", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "Parent", "MeasurementProtocolSecret", }); - internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "MeasurementProtocolSecret", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, - new java.lang.String[] { "MeasurementProtocolSecrets", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor, - new java.lang.String[] { "Parent", "SkadnetworkConversionValueSchema", }); - internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor, - new java.lang.String[] { "SkadnetworkConversionValueSchema", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor, - new java.lang.String[] { "SkadnetworkConversionValueSchemas", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, - new java.lang.String[] { "GoogleSignalsSettings", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, - new java.lang.String[] { "ConversionEvent", "Parent", }); - internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor, - new java.lang.String[] { "ConversionEvent", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, - new java.lang.String[] { "ConversionEvents", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor, - new java.lang.String[] { "DisplayVideo360AdvertiserLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayVideo360AdvertiserLink", }); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor, - new java.lang.String[] { "DisplayVideo360AdvertiserLink", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor, - new java.lang.String[] { "DisplayVideo360AdvertiserLinkProposals", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { "Parent", "DisplayVideo360AdvertiserLinkProposal", }); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(63); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor = - getDescriptor().getMessageTypes().get(64); - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor, - new java.lang.String[] { "DisplayVideo360AdvertiserLink", }); - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor = - getDescriptor().getMessageTypes().get(65); - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(66); - internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor = - getDescriptor().getMessageTypes().get(67); - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor = - getDescriptor().getMessageTypes().get(68); - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor, - new java.lang.String[] { "SearchAds360Links", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(69); - internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor, - new java.lang.String[] { "Parent", "SearchAds360Link", }); - internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(70); - internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor = - getDescriptor().getMessageTypes().get(71); - internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor, - new java.lang.String[] { "SearchAds360Link", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(72); - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, - new java.lang.String[] { "Parent", "CustomDimension", }); - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(73); - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, - new java.lang.String[] { "CustomDimension", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(74); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(75); - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, - new java.lang.String[] { "CustomDimensions", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(76); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(77); - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(78); - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, - new java.lang.String[] { "Parent", "CustomMetric", }); - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(79); - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, - new java.lang.String[] { "CustomMetric", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(80); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(81); - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, - new java.lang.String[] { "CustomMetrics", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(82); - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(83); - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(84); - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(85); - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor, - new java.lang.String[] { "DataRetentionSettings", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(86); - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor, - new java.lang.String[] { "Parent", "DataStream", }); - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(87); - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(88); - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor, - new java.lang.String[] { "DataStream", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(89); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(90); - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor, - new java.lang.String[] { "DataStreams", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(91); - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(92); - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor = - getDescriptor().getMessageTypes().get(93); - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor = - getDescriptor().getMessageTypes().get(94); - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor, - new java.lang.String[] { "Audiences", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(95); - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor, - new java.lang.String[] { "Parent", "Audience", }); - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(96); - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor, - new java.lang.String[] { "Audience", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor = - getDescriptor().getMessageTypes().get(97); - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(98); - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(99); - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor, - new java.lang.String[] { "AttributionSettings", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(100); - internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(101); - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Names", }); - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(102); - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor, - new java.lang.String[] { "AccessBindings", }); - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(103); - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(104); - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor, - new java.lang.String[] { "AccessBindings", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(105); - internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor, - new java.lang.String[] { "Parent", "AccessBinding", }); - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(106); - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Requests", }); - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(107); - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor, - new java.lang.String[] { "AccessBindings", }); - internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(108); - internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor, - new java.lang.String[] { "AccessBinding", }); - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(109); - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Requests", }); - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor = - getDescriptor().getMessageTypes().get(110); - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor, - new java.lang.String[] { "AccessBindings", }); - internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor = - getDescriptor().getMessageTypes().get(111); - internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor = - getDescriptor().getMessageTypes().get(112); - internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor, - new java.lang.String[] { "Parent", "Requests", }); - internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(113); - internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor, - new java.lang.String[] { "Parent", "ExpandedDataSet", }); - internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(114); - internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor, - new java.lang.String[] { "ExpandedDataSet", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(115); - internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor = - getDescriptor().getMessageTypes().get(116); - internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor = - getDescriptor().getMessageTypes().get(117); - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor = - getDescriptor().getMessageTypes().get(118); - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor, - new java.lang.String[] { "ExpandedDataSets", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(119); - internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor, - new java.lang.String[] { "Parent", "ChannelGroup", }); - internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(120); - internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor, - new java.lang.String[] { "ChannelGroup", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(121); - internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor = - getDescriptor().getMessageTypes().get(122); - internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor = - getDescriptor().getMessageTypes().get(123); - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor = - getDescriptor().getMessageTypes().get(124); - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor, - new java.lang.String[] { "ChannelGroups", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor = - getDescriptor().getMessageTypes().get(125); - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor, - new java.lang.String[] { "Property", "OptOut", }); - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor = - getDescriptor().getMessageTypes().get(126); - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor = - getDescriptor().getMessageTypes().get(127); - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor, - new java.lang.String[] { "Property", }); - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor = - getDescriptor().getMessageTypes().get(128); - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor, - new java.lang.String[] { "OptOut", }); - internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(129); - internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(130); - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(131); - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor, - new java.lang.String[] { "BigqueryLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(132); - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(133); - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor, - new java.lang.String[] { "EnhancedMeasurementSettings", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(134); - internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(135); - internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor, - new java.lang.String[] { "DataRedactionSettings", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(136); - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor, - new java.lang.String[] { "Property", "ConnectedSiteTag", }); - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor = - getDescriptor().getMessageTypes().get(137); - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(138); - internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor, - new java.lang.String[] { "Property", "TagId", }); - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor = - getDescriptor().getMessageTypes().get(139); - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor, - new java.lang.String[] { "Property", }); - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor = - getDescriptor().getMessageTypes().get(140); - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor, - new java.lang.String[] { "ConnectedSiteTags", }); - internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(141); - internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor, - new java.lang.String[] { "Parent", "AdsenseLink", }); - internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(142); - internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(143); - internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(144); - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(145); - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor, - new java.lang.String[] { "AdsenseLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(146); - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor, - new java.lang.String[] { "Property", }); - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor = - getDescriptor().getMessageTypes().get(147); - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor, - new java.lang.String[] { "Property", }); - internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(148); - internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor, - new java.lang.String[] { "Parent", "EventCreateRule", }); - internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(149); - internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor, - new java.lang.String[] { "EventCreateRule", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(150); - internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor = - getDescriptor().getMessageTypes().get(151); - internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor = - getDescriptor().getMessageTypes().get(152); - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor = - getDescriptor().getMessageTypes().get(153); - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor, - new java.lang.String[] { "EventCreateRules", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(154); - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor, - new java.lang.String[] { "RollupProperty", "SourceProperties", }); - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor = - getDescriptor().getMessageTypes().get(155); - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor, - new java.lang.String[] { "RollupProperty", "RollupPropertySourceLinks", }); - internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(156); - internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(157); - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(158); - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor, - new java.lang.String[] { "RollupPropertySourceLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(159); - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor, - new java.lang.String[] { "Parent", "RollupPropertySourceLink", }); - internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(160); - internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(161); - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor, - new java.lang.String[] { "Parent", "Subproperty", "SubpropertyEventFilter", }); - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor = - getDescriptor().getMessageTypes().get(162); - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor, - new java.lang.String[] { "Subproperty", "SubpropertyEventFilter", }); - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor = - getDescriptor().getMessageTypes().get(163); - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor, - new java.lang.String[] { "Parent", "SubpropertyEventFilter", }); - internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor = - getDescriptor().getMessageTypes().get(164); - internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor = - getDescriptor().getMessageTypes().get(165); - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor = - getDescriptor().getMessageTypes().get(166); - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor, - new java.lang.String[] { "SubpropertyEventFilters", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor = - getDescriptor().getMessageTypes().get(167); - internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor, - new java.lang.String[] { "SubpropertyEventFilter", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor = - getDescriptor().getMessageTypes().get(168); - internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(); - com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); - com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(); - com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(); - com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(); - com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor(); - com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index 370dfde7c16b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} - */ -public final class ApproveDisplayVideo360AdvertiserLinkProposalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) - ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. - private ApproveDisplayVideo360AdvertiserLinkProposalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ApproveDisplayVideo360AdvertiserLinkProposalRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest other = (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest build() { - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest buildPartial() { - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest result = new com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest other) { - if (other == com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) - private static final com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index 75c6a0099dd2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java deleted file mode 100644 index f9f7f7a69aa4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java +++ /dev/null @@ -1,654 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} - */ -public final class ApproveDisplayVideo360AdvertiserLinkProposalResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) - ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() to construct. - private ApproveDisplayVideo360AdvertiserLinkProposalResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ApproveDisplayVideo360AdvertiserLinkProposalResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.class, com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.Builder.class); - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink_; - /** - *
-   * The DisplayVideo360AdvertiserLink created as a result of approving the
-   * proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink_ != null; - } - /** - *
-   * The DisplayVideo360AdvertiserLink created as a result of approving the
-   * proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return The displayVideo360AdvertiserLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - /** - *
-   * The DisplayVideo360AdvertiserLink created as a result of approving the
-   * proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - - 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 (displayVideo360AdvertiserLink_ != null) { - output.writeMessage(1, getDisplayVideo360AdvertiserLink()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (displayVideo360AdvertiserLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDisplayVideo360AdvertiserLink()); - } - 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse other = (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) obj; - - if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) return false; - if (hasDisplayVideo360AdvertiserLink()) { - if (!getDisplayVideo360AdvertiserLink() - .equals(other.getDisplayVideo360AdvertiserLink())) 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 (hasDisplayVideo360AdvertiserLink()) { - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.class, com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayVideo360AdvertiserLink_ = null; - if (displayVideo360AdvertiserLinkBuilder_ != null) { - displayVideo360AdvertiserLinkBuilder_.dispose(); - displayVideo360AdvertiserLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse build() { - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse buildPartial() { - com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse result = new com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_ == null - ? displayVideo360AdvertiserLink_ - : displayVideo360AdvertiserLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse other) { - if (other == com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance()) return this; - if (other.hasDisplayVideo360AdvertiserLink()) { - mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> displayVideo360AdvertiserLinkBuilder_; - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - public boolean hasDisplayVideo360AdvertiserLink() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return The displayVideo360AdvertiserLink. - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } else { - return displayVideo360AdvertiserLinkBuilder_.getMessage(); - } - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder setDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - displayVideo360AdvertiserLink_ = value; - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder setDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = builderForValue.build(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder mergeDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - displayVideo360AdvertiserLink_ != null && - displayVideo360AdvertiserLink_ != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()) { - getDisplayVideo360AdvertiserLinkBuilder().mergeFrom(value); - } else { - displayVideo360AdvertiserLink_ = value; - } - } else { - displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder clearDisplayVideo360AdvertiserLink() { - bitField0_ = (bitField0_ & ~0x00000001); - displayVideo360AdvertiserLink_ = null; - if (displayVideo360AdvertiserLinkBuilder_ != null) { - displayVideo360AdvertiserLinkBuilder_.dispose(); - displayVideo360AdvertiserLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder getDisplayVideo360AdvertiserLinkBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - if (displayVideo360AdvertiserLinkBuilder_ != null) { - return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); - } else { - return displayVideo360AdvertiserLink_ == null ? - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - } - /** - *
-     * The DisplayVideo360AdvertiserLink created as a result of approving the
-     * proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> - getDisplayVideo360AdvertiserLinkFieldBuilder() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( - getDisplayVideo360AdvertiserLink(), - getParentForChildren(), - isClean()); - displayVideo360AdvertiserLink_ = null; - } - return displayVideo360AdvertiserLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) - private static final com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse(); - } - - public static com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ApproveDisplayVideo360AdvertiserLinkProposalResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java deleted file mode 100644 index c2df993259b9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The DisplayVideo360AdvertiserLink created as a result of approving the
-   * proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - boolean hasDisplayVideo360AdvertiserLink(); - /** - *
-   * The DisplayVideo360AdvertiserLink created as a result of approving the
-   * proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return The displayVideo360AdvertiserLink. - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(); - /** - *
-   * The DisplayVideo360AdvertiserLink created as a result of approving the
-   * proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java deleted file mode 100644 index 73d51641328f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequest.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ArchiveAudience RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveAudienceRequest} - */ -public final class ArchiveAudienceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveAudienceRequest) - ArchiveAudienceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ArchiveAudienceRequest.newBuilder() to construct. - private ArchiveAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArchiveAudienceRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ArchiveAudienceRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.ArchiveAudienceRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest other = (com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ArchiveAudience RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveAudienceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveAudienceRequest) - com.google.analytics.admin.v1alpha.ArchiveAudienceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.class, com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveAudienceRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest build() { - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest buildPartial() { - com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result = new com.google.analytics.admin.v1alpha.ArchiveAudienceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ArchiveAudienceRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveAudienceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveAudienceRequest other) { - if (other == com.google.analytics.admin.v1alpha.ArchiveAudienceRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.ArchiveAudienceRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveAudienceRequest) - private static final com.google.analytics.admin.v1alpha.ArchiveAudienceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveAudienceRequest(); - } - - public static com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArchiveAudienceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveAudienceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java deleted file mode 100644 index 3db08fadde13..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveAudienceRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ArchiveAudienceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveAudienceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java deleted file mode 100644 index 7ce2046ce7bd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ArchiveCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} - */ -public final class ArchiveCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) - ArchiveCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ArchiveCustomDimensionRequest.newBuilder() to construct. - private ArchiveCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArchiveCustomDimensionRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ArchiveCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.ArchiveCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other = (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ArchiveCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest build() { - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.ArchiveCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) - private static final com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArchiveCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java deleted file mode 100644 index eb9284a542f2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ArchiveCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java deleted file mode 100644 index 659da7418f90..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ArchiveCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} - */ -public final class ArchiveCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) - ArchiveCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ArchiveCustomMetricRequest.newBuilder() to construct. - private ArchiveCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArchiveCustomMetricRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ArchiveCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.ArchiveCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other = (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ArchiveCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest build() { - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.ArchiveCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) - private static final com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArchiveCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java deleted file mode 100644 index 412f11e61dec..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ArchiveCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java deleted file mode 100644 index cb70e0c4327d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettings.java +++ /dev/null @@ -1,1943 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The attribution settings used for a given property. This is a singleton
- * resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AttributionSettings} - */ -public final class AttributionSettings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AttributionSettings) - AttributionSettingsOrBuilder { -private static final long serialVersionUID = 0L; - // Use AttributionSettings.newBuilder() to construct. - private AttributionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AttributionSettings() { - name_ = ""; - acquisitionConversionEventLookbackWindow_ = 0; - otherConversionEventLookbackWindow_ = 0; - reportingAttributionModel_ = 0; - adsWebConversionDataExportScope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AttributionSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AttributionSettings.class, com.google.analytics.admin.v1alpha.AttributionSettings.Builder.class); - } - - /** - *
-   * How far back in time events should be considered for inclusion in a
-   * converting path which leads to the first install of an app or the first
-   * visit to a site.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow} - */ - public enum AcquisitionConversionEventLookbackWindow - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Lookback window size unspecified.
-     * 
- * - * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED(0), - /** - *
-     * 7-day lookback window.
-     * 
- * - * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; - */ - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS(1), - /** - *
-     * 30-day lookback window.
-     * 
- * - * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; - */ - ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Lookback window size unspecified.
-     * 
- * - * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED_VALUE = 0; - /** - *
-     * 7-day lookback window.
-     * 
- * - * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS = 1; - */ - public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS_VALUE = 1; - /** - *
-     * 30-day lookback window.
-     * 
- * - * ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 2; - */ - public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AcquisitionConversionEventLookbackWindow 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 AcquisitionConversionEventLookbackWindow forNumber(int value) { - switch (value) { - case 0: return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - case 1: return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS; - case 2: return ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AcquisitionConversionEventLookbackWindow> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AcquisitionConversionEventLookbackWindow findValueByNumber(int number) { - return AcquisitionConversionEventLookbackWindow.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor().getEnumTypes().get(0); - } - - private static final AcquisitionConversionEventLookbackWindow[] VALUES = values(); - - public static AcquisitionConversionEventLookbackWindow valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AcquisitionConversionEventLookbackWindow(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow) - } - - /** - *
-   * How far back in time events should be considered for inclusion in a
-   * converting path for all conversions other than first app install/first site
-   * visit.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow} - */ - public enum OtherConversionEventLookbackWindow - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Lookback window size unspecified.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED(0), - /** - *
-     * 30-day lookback window.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; - */ - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS(1), - /** - *
-     * 60-day lookback window.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; - */ - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS(2), - /** - *
-     * 90-day lookback window.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; - */ - OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Lookback window size unspecified.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED = 0; - */ - public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED_VALUE = 0; - /** - *
-     * 30-day lookback window.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS = 1; - */ - public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS_VALUE = 1; - /** - *
-     * 60-day lookback window.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS = 2; - */ - public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS_VALUE = 2; - /** - *
-     * 90-day lookback window.
-     * 
- * - * OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS = 3; - */ - public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS_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 OtherConversionEventLookbackWindow 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 OtherConversionEventLookbackWindow forNumber(int value) { - switch (value) { - case 0: return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED; - case 1: return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_30_DAYS; - case 2: return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_60_DAYS; - case 3: return OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_DAYS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OtherConversionEventLookbackWindow> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OtherConversionEventLookbackWindow findValueByNumber(int number) { - return OtherConversionEventLookbackWindow.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor().getEnumTypes().get(1); - } - - private static final OtherConversionEventLookbackWindow[] VALUES = values(); - - public static OtherConversionEventLookbackWindow valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OtherConversionEventLookbackWindow(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow) - } - - /** - *
-   * The reporting attribution model used to calculate conversion credit in this
-   * property's reports.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel} - */ - public enum ReportingAttributionModel - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Reporting attribution model unspecified.
-     * 
- * - * REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; - */ - REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED(0), - /** - *
-     * Data-driven attribution distributes credit for the conversion based on
-     * data for each conversion event. Each Data-driven model is specific to
-     * each advertiser and each conversion event.
-     * Previously CROSS_CHANNEL_DATA_DRIVEN
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; - */ - PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN(1), - /** - *
-     * Ignores direct traffic and attributes 100% of the conversion value to the
-     * last channel that the customer clicked through (or engaged view through
-     * for YouTube) before converting.
-     * Previously CROSS_CHANNEL_LAST_CLICK
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; - */ - PAID_AND_ORGANIC_CHANNELS_LAST_CLICK(2), - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives all credit for the conversion to the first channel that a customer
-     * clicked (or engaged view through for YouTube) before converting.
-     * Previously CROSS_CHANNEL_FIRST_CLICK
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; - */ - PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK(3), - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Distributes the credit for the conversion equally across all the channels
-     * a customer clicked (or engaged view through for YouTube) before
-     * converting.
-     * Previously CROSS_CHANNEL_LINEAR
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; - */ - PAID_AND_ORGANIC_CHANNELS_LINEAR(4), - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Attributes 40% credit to the first and last interaction, and the
-     * remaining 20% credit is distributed evenly to the middle interactions.
-     * Previously CROSS_CHANNEL_POSITION_BASED
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; - */ - PAID_AND_ORGANIC_CHANNELS_POSITION_BASED(5), - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives more credit to the touchpoints that happened closer in time to
-     * the conversion.
-     * Previously CROSS_CHANNEL_TIME_DECAY
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; - */ - PAID_AND_ORGANIC_CHANNELS_TIME_DECAY(6), - /** - *
-     * Attributes 100% of the conversion value to the last Google Paid channel
-     * that the customer clicked through before converting.
-     * Previously ADS_PREFERRED_LAST_CLICK
-     * 
- * - * GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; - */ - GOOGLE_PAID_CHANNELS_LAST_CLICK(7), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Reporting attribution model unspecified.
-     * 
- * - * REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED = 0; - */ - public static final int REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED_VALUE = 0; - /** - *
-     * Data-driven attribution distributes credit for the conversion based on
-     * data for each conversion event. Each Data-driven model is specific to
-     * each advertiser and each conversion event.
-     * Previously CROSS_CHANNEL_DATA_DRIVEN
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN = 1; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN_VALUE = 1; - /** - *
-     * Ignores direct traffic and attributes 100% of the conversion value to the
-     * last channel that the customer clicked through (or engaged view through
-     * for YouTube) before converting.
-     * Previously CROSS_CHANNEL_LAST_CLICK
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_LAST_CLICK = 2; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_LAST_CLICK_VALUE = 2; - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives all credit for the conversion to the first channel that a customer
-     * clicked (or engaged view through for YouTube) before converting.
-     * Previously CROSS_CHANNEL_FIRST_CLICK
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK = 3; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK_VALUE = 3; - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Distributes the credit for the conversion equally across all the channels
-     * a customer clicked (or engaged view through for YouTube) before
-     * converting.
-     * Previously CROSS_CHANNEL_LINEAR
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_LINEAR = 4; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_LINEAR_VALUE = 4; - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Attributes 40% credit to the first and last interaction, and the
-     * remaining 20% credit is distributed evenly to the middle interactions.
-     * Previously CROSS_CHANNEL_POSITION_BASED
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_POSITION_BASED = 5; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_POSITION_BASED_VALUE = 5; - /** - *
-     * Starting in June 2023, new properties can no longer use this model.
-     * See
-     * [Analytics
-     * Help](https://support.google.com/analytics/answer/9164320#040623)
-     * for more details.
-     * Starting in September 2023, we will sunset this model for all properties.
-     *
-     * Gives more credit to the touchpoints that happened closer in time to
-     * the conversion.
-     * Previously CROSS_CHANNEL_TIME_DECAY
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS_TIME_DECAY = 6; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_TIME_DECAY_VALUE = 6; - /** - *
-     * Attributes 100% of the conversion value to the last Google Paid channel
-     * that the customer clicked through before converting.
-     * Previously ADS_PREFERRED_LAST_CLICK
-     * 
- * - * GOOGLE_PAID_CHANNELS_LAST_CLICK = 7; - */ - public static final int GOOGLE_PAID_CHANNELS_LAST_CLICK_VALUE = 7; - - - 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 ReportingAttributionModel 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 ReportingAttributionModel forNumber(int value) { - switch (value) { - case 0: return REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED; - case 1: return PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN; - case 2: return PAID_AND_ORGANIC_CHANNELS_LAST_CLICK; - case 3: return PAID_AND_ORGANIC_CHANNELS_FIRST_CLICK; - case 4: return PAID_AND_ORGANIC_CHANNELS_LINEAR; - case 5: return PAID_AND_ORGANIC_CHANNELS_POSITION_BASED; - case 6: return PAID_AND_ORGANIC_CHANNELS_TIME_DECAY; - case 7: return GOOGLE_PAID_CHANNELS_LAST_CLICK; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ReportingAttributionModel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ReportingAttributionModel findValueByNumber(int number) { - return ReportingAttributionModel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor().getEnumTypes().get(2); - } - - private static final ReportingAttributionModel[] VALUES = values(); - - public static ReportingAttributionModel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ReportingAttributionModel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel) - } - - /** - *
-   * The Conversion Export Scope for data exported to linked Ads Accounts.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope} - */ - public enum AdsWebConversionDataExportScope - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Default value. This value is unused.
-     * 
- * - * ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; - */ - ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED(0), - /** - *
-     * No data export scope selected yet.
-     * Export scope can never be changed back to this value.
-     * 
- * - * NOT_SELECTED_YET = 1; - */ - NOT_SELECTED_YET(1), - /** - *
-     * Paid and organic channels are eligible to receive conversion credit, but
-     * only credit assigned to Google Ads channels will appear in your Ads
-     * accounts. To learn more, see [Paid and Organic
-     * channels](https://support.google.com/analytics/answer/10632359).
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS = 2; - */ - PAID_AND_ORGANIC_CHANNELS(2), - /** - *
-     * Only Google Ads paid channels are eligible to receive conversion credit.
-     * To learn more, see [Google Paid
-     * channels](https://support.google.com/analytics/answer/10632359).
-     * 
- * - * GOOGLE_PAID_CHANNELS = 3; - */ - GOOGLE_PAID_CHANNELS(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Default value. This value is unused.
-     * 
- * - * ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED = 0; - */ - public static final int ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * No data export scope selected yet.
-     * Export scope can never be changed back to this value.
-     * 
- * - * NOT_SELECTED_YET = 1; - */ - public static final int NOT_SELECTED_YET_VALUE = 1; - /** - *
-     * Paid and organic channels are eligible to receive conversion credit, but
-     * only credit assigned to Google Ads channels will appear in your Ads
-     * accounts. To learn more, see [Paid and Organic
-     * channels](https://support.google.com/analytics/answer/10632359).
-     * 
- * - * PAID_AND_ORGANIC_CHANNELS = 2; - */ - public static final int PAID_AND_ORGANIC_CHANNELS_VALUE = 2; - /** - *
-     * Only Google Ads paid channels are eligible to receive conversion credit.
-     * To learn more, see [Google Paid
-     * channels](https://support.google.com/analytics/answer/10632359).
-     * 
- * - * GOOGLE_PAID_CHANNELS = 3; - */ - public static final int GOOGLE_PAID_CHANNELS_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 AdsWebConversionDataExportScope 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 AdsWebConversionDataExportScope forNumber(int value) { - switch (value) { - case 0: return ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED; - case 1: return NOT_SELECTED_YET; - case 2: return PAID_AND_ORGANIC_CHANNELS; - case 3: return GOOGLE_PAID_CHANNELS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AdsWebConversionDataExportScope> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AdsWebConversionDataExportScope findValueByNumber(int number) { - return AdsWebConversionDataExportScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AttributionSettings.getDescriptor().getEnumTypes().get(3); - } - - private static final AdsWebConversionDataExportScope[] VALUES = values(); - - public static AdsWebConversionDataExportScope valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AdsWebConversionDataExportScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this attribution settings resource.
-   * Format: properties/{property_id}/attributionSettings
-   * Example: "properties/1000/attributionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this attribution settings resource.
-   * Format: properties/{property_id}/attributionSettings
-   * Example: "properties/1000/attributionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER = 2; - private int acquisitionConversionEventLookbackWindow_ = 0; - /** - *
-   * Required. The lookback window configuration for acquisition conversion
-   * events. The default window size is 30 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. - */ - @java.lang.Override public int getAcquisitionConversionEventLookbackWindowValue() { - return acquisitionConversionEventLookbackWindow_; - } - /** - *
-   * Required. The lookback window configuration for acquisition conversion
-   * events. The default window size is 30 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acquisitionConversionEventLookbackWindow. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow getAcquisitionConversionEventLookbackWindow() { - com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow result = com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow.forNumber(acquisitionConversionEventLookbackWindow_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow.UNRECOGNIZED : result; - } - - public static final int OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER = 3; - private int otherConversionEventLookbackWindow_ = 0; - /** - *
-   * Required. The lookback window for all other, non-acquisition conversion
-   * events. The default window size is 90 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. - */ - @java.lang.Override public int getOtherConversionEventLookbackWindowValue() { - return otherConversionEventLookbackWindow_; - } - /** - *
-   * Required. The lookback window for all other, non-acquisition conversion
-   * events. The default window size is 90 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The otherConversionEventLookbackWindow. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow getOtherConversionEventLookbackWindow() { - com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow result = com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow.forNumber(otherConversionEventLookbackWindow_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow.UNRECOGNIZED : result; - } - - public static final int REPORTING_ATTRIBUTION_MODEL_FIELD_NUMBER = 4; - private int reportingAttributionModel_ = 0; - /** - *
-   * Required. The reporting attribution model used to calculate conversion
-   * credit in this property's reports.
-   *
-   * Changing the attribution model will apply to both historical and future
-   * data. These changes will be reflected in reports with conversion and
-   * revenue data. User and session data will be unaffected.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for reportingAttributionModel. - */ - @java.lang.Override public int getReportingAttributionModelValue() { - return reportingAttributionModel_; - } - /** - *
-   * Required. The reporting attribution model used to calculate conversion
-   * credit in this property's reports.
-   *
-   * Changing the attribution model will apply to both historical and future
-   * data. These changes will be reflected in reports with conversion and
-   * revenue data. User and session data will be unaffected.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The reportingAttributionModel. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel getReportingAttributionModel() { - com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.forNumber(reportingAttributionModel_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.UNRECOGNIZED : result; - } - - public static final int ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_FIELD_NUMBER = 5; - private int adsWebConversionDataExportScope_ = 0; - /** - *
-   * Required. The Conversion Export Scope for data exported to linked Ads
-   * Accounts.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for adsWebConversionDataExportScope. - */ - @java.lang.Override public int getAdsWebConversionDataExportScopeValue() { - return adsWebConversionDataExportScope_; - } - /** - *
-   * Required. The Conversion Export Scope for data exported to linked Ads
-   * Accounts.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The adsWebConversionDataExportScope. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope getAdsWebConversionDataExportScope() { - com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope result = com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope.forNumber(adsWebConversionDataExportScope_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (acquisitionConversionEventLookbackWindow_ != com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow.ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED.getNumber()) { - output.writeEnum(2, acquisitionConversionEventLookbackWindow_); - } - if (otherConversionEventLookbackWindow_ != com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED.getNumber()) { - output.writeEnum(3, otherConversionEventLookbackWindow_); - } - if (reportingAttributionModel_ != com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED.getNumber()) { - output.writeEnum(4, reportingAttributionModel_); - } - if (adsWebConversionDataExportScope_ != com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope.ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, adsWebConversionDataExportScope_); - } - 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 (acquisitionConversionEventLookbackWindow_ != com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow.ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, acquisitionConversionEventLookbackWindow_); - } - if (otherConversionEventLookbackWindow_ != com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow.OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, otherConversionEventLookbackWindow_); - } - if (reportingAttributionModel_ != com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, reportingAttributionModel_); - } - if (adsWebConversionDataExportScope_ != com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope.ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, adsWebConversionDataExportScope_); - } - 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.admin.v1alpha.AttributionSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AttributionSettings other = (com.google.analytics.admin.v1alpha.AttributionSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (acquisitionConversionEventLookbackWindow_ != other.acquisitionConversionEventLookbackWindow_) return false; - if (otherConversionEventLookbackWindow_ != other.otherConversionEventLookbackWindow_) return false; - if (reportingAttributionModel_ != other.reportingAttributionModel_) return false; - if (adsWebConversionDataExportScope_ != other.adsWebConversionDataExportScope_) 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) + ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + acquisitionConversionEventLookbackWindow_; - hash = (37 * hash) + OTHER_CONVERSION_EVENT_LOOKBACK_WINDOW_FIELD_NUMBER; - hash = (53 * hash) + otherConversionEventLookbackWindow_; - hash = (37 * hash) + REPORTING_ATTRIBUTION_MODEL_FIELD_NUMBER; - hash = (53 * hash) + reportingAttributionModel_; - hash = (37 * hash) + ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_FIELD_NUMBER; - hash = (53 * hash) + adsWebConversionDataExportScope_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AttributionSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AttributionSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AttributionSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AttributionSettings 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 attribution settings used for a given property. This is a singleton
-   * resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AttributionSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AttributionSettings) - com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AttributionSettings.class, com.google.analytics.admin.v1alpha.AttributionSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AttributionSettings.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - acquisitionConversionEventLookbackWindow_ = 0; - otherConversionEventLookbackWindow_ = 0; - reportingAttributionModel_ = 0; - adsWebConversionDataExportScope_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings build() { - com.google.analytics.admin.v1alpha.AttributionSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings buildPartial() { - com.google.analytics.admin.v1alpha.AttributionSettings result = new com.google.analytics.admin.v1alpha.AttributionSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AttributionSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.acquisitionConversionEventLookbackWindow_ = acquisitionConversionEventLookbackWindow_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.otherConversionEventLookbackWindow_ = otherConversionEventLookbackWindow_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.reportingAttributionModel_ = reportingAttributionModel_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.adsWebConversionDataExportScope_ = adsWebConversionDataExportScope_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AttributionSettings) { - return mergeFrom((com.google.analytics.admin.v1alpha.AttributionSettings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AttributionSettings other) { - if (other == com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.acquisitionConversionEventLookbackWindow_ != 0) { - setAcquisitionConversionEventLookbackWindowValue(other.getAcquisitionConversionEventLookbackWindowValue()); - } - if (other.otherConversionEventLookbackWindow_ != 0) { - setOtherConversionEventLookbackWindowValue(other.getOtherConversionEventLookbackWindowValue()); - } - if (other.reportingAttributionModel_ != 0) { - setReportingAttributionModelValue(other.getReportingAttributionModelValue()); - } - if (other.adsWebConversionDataExportScope_ != 0) { - setAdsWebConversionDataExportScopeValue(other.getAdsWebConversionDataExportScopeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - acquisitionConversionEventLookbackWindow_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - otherConversionEventLookbackWindow_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - reportingAttributionModel_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - adsWebConversionDataExportScope_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this attribution settings resource.
-     * Format: properties/{property_id}/attributionSettings
-     * Example: "properties/1000/attributionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this attribution settings resource.
-     * Format: properties/{property_id}/attributionSettings
-     * Example: "properties/1000/attributionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this attribution settings resource.
-     * Format: properties/{property_id}/attributionSettings
-     * Example: "properties/1000/attributionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this attribution settings resource.
-     * Format: properties/{property_id}/attributionSettings
-     * Example: "properties/1000/attributionSettings"
-     * 
- * - * string name = 1 [(.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. Resource name of this attribution settings resource.
-     * Format: properties/{property_id}/attributionSettings
-     * Example: "properties/1000/attributionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int acquisitionConversionEventLookbackWindow_ = 0; - /** - *
-     * Required. The lookback window configuration for acquisition conversion
-     * events. The default window size is 30 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. - */ - @java.lang.Override public int getAcquisitionConversionEventLookbackWindowValue() { - return acquisitionConversionEventLookbackWindow_; - } - /** - *
-     * Required. The lookback window configuration for acquisition conversion
-     * events. The default window size is 30 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for acquisitionConversionEventLookbackWindow to set. - * @return This builder for chaining. - */ - public Builder setAcquisitionConversionEventLookbackWindowValue(int value) { - acquisitionConversionEventLookbackWindow_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The lookback window configuration for acquisition conversion
-     * events. The default window size is 30 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acquisitionConversionEventLookbackWindow. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow getAcquisitionConversionEventLookbackWindow() { - com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow result = com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow.forNumber(acquisitionConversionEventLookbackWindow_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow.UNRECOGNIZED : result; - } - /** - *
-     * Required. The lookback window configuration for acquisition conversion
-     * events. The default window size is 30 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The acquisitionConversionEventLookbackWindow to set. - * @return This builder for chaining. - */ - public Builder setAcquisitionConversionEventLookbackWindow(com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - acquisitionConversionEventLookbackWindow_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The lookback window configuration for acquisition conversion
-     * events. The default window size is 30 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearAcquisitionConversionEventLookbackWindow() { - bitField0_ = (bitField0_ & ~0x00000002); - acquisitionConversionEventLookbackWindow_ = 0; - onChanged(); - return this; - } - - private int otherConversionEventLookbackWindow_ = 0; - /** - *
-     * Required. The lookback window for all other, non-acquisition conversion
-     * events. The default window size is 90 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. - */ - @java.lang.Override public int getOtherConversionEventLookbackWindowValue() { - return otherConversionEventLookbackWindow_; - } - /** - *
-     * Required. The lookback window for all other, non-acquisition conversion
-     * events. The default window size is 90 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for otherConversionEventLookbackWindow to set. - * @return This builder for chaining. - */ - public Builder setOtherConversionEventLookbackWindowValue(int value) { - otherConversionEventLookbackWindow_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. The lookback window for all other, non-acquisition conversion
-     * events. The default window size is 90 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The otherConversionEventLookbackWindow. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow getOtherConversionEventLookbackWindow() { - com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow result = com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow.forNumber(otherConversionEventLookbackWindow_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow.UNRECOGNIZED : result; - } - /** - *
-     * Required. The lookback window for all other, non-acquisition conversion
-     * events. The default window size is 90 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The otherConversionEventLookbackWindow to set. - * @return This builder for chaining. - */ - public Builder setOtherConversionEventLookbackWindow(com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - otherConversionEventLookbackWindow_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The lookback window for all other, non-acquisition conversion
-     * events. The default window size is 90 days.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearOtherConversionEventLookbackWindow() { - bitField0_ = (bitField0_ & ~0x00000004); - otherConversionEventLookbackWindow_ = 0; - onChanged(); - return this; - } - - private int reportingAttributionModel_ = 0; - /** - *
-     * Required. The reporting attribution model used to calculate conversion
-     * credit in this property's reports.
-     *
-     * Changing the attribution model will apply to both historical and future
-     * data. These changes will be reflected in reports with conversion and
-     * revenue data. User and session data will be unaffected.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for reportingAttributionModel. - */ - @java.lang.Override public int getReportingAttributionModelValue() { - return reportingAttributionModel_; - } - /** - *
-     * Required. The reporting attribution model used to calculate conversion
-     * credit in this property's reports.
-     *
-     * Changing the attribution model will apply to both historical and future
-     * data. These changes will be reflected in reports with conversion and
-     * revenue data. User and session data will be unaffected.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for reportingAttributionModel to set. - * @return This builder for chaining. - */ - public Builder setReportingAttributionModelValue(int value) { - reportingAttributionModel_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Required. The reporting attribution model used to calculate conversion
-     * credit in this property's reports.
-     *
-     * Changing the attribution model will apply to both historical and future
-     * data. These changes will be reflected in reports with conversion and
-     * revenue data. User and session data will be unaffected.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The reportingAttributionModel. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel getReportingAttributionModel() { - com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel result = com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.forNumber(reportingAttributionModel_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel.UNRECOGNIZED : result; - } - /** - *
-     * Required. The reporting attribution model used to calculate conversion
-     * credit in this property's reports.
-     *
-     * Changing the attribution model will apply to both historical and future
-     * data. These changes will be reflected in reports with conversion and
-     * revenue data. User and session data will be unaffected.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The reportingAttributionModel to set. - * @return This builder for chaining. - */ - public Builder setReportingAttributionModel(com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - reportingAttributionModel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The reporting attribution model used to calculate conversion
-     * credit in this property's reports.
-     *
-     * Changing the attribution model will apply to both historical and future
-     * data. These changes will be reflected in reports with conversion and
-     * revenue data. User and session data will be unaffected.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearReportingAttributionModel() { - bitField0_ = (bitField0_ & ~0x00000008); - reportingAttributionModel_ = 0; - onChanged(); - return this; - } - - private int adsWebConversionDataExportScope_ = 0; - /** - *
-     * Required. The Conversion Export Scope for data exported to linked Ads
-     * Accounts.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for adsWebConversionDataExportScope. - */ - @java.lang.Override public int getAdsWebConversionDataExportScopeValue() { - return adsWebConversionDataExportScope_; - } - /** - *
-     * Required. The Conversion Export Scope for data exported to linked Ads
-     * Accounts.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for adsWebConversionDataExportScope to set. - * @return This builder for chaining. - */ - public Builder setAdsWebConversionDataExportScopeValue(int value) { - adsWebConversionDataExportScope_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. The Conversion Export Scope for data exported to linked Ads
-     * Accounts.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The adsWebConversionDataExportScope. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope getAdsWebConversionDataExportScope() { - com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope result = com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope.forNumber(adsWebConversionDataExportScope_); - return result == null ? com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope.UNRECOGNIZED : result; - } - /** - *
-     * Required. The Conversion Export Scope for data exported to linked Ads
-     * Accounts.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The adsWebConversionDataExportScope to set. - * @return This builder for chaining. - */ - public Builder setAdsWebConversionDataExportScope(com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - adsWebConversionDataExportScope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The Conversion Export Scope for data exported to linked Ads
-     * Accounts.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearAdsWebConversionDataExportScope() { - bitField0_ = (bitField0_ & ~0x00000010); - adsWebConversionDataExportScope_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AttributionSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AttributionSettings) - private static final com.google.analytics.admin.v1alpha.AttributionSettings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AttributionSettings(); - } - - public static com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AttributionSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java deleted file mode 100644 index 19a5b4ded93b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AttributionSettingsOrBuilder.java +++ /dev/null @@ -1,125 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface AttributionSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AttributionSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this attribution settings resource.
-   * Format: properties/{property_id}/attributionSettings
-   * Example: "properties/1000/attributionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this attribution settings resource.
-   * Format: properties/{property_id}/attributionSettings
-   * Example: "properties/1000/attributionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The lookback window configuration for acquisition conversion
-   * events. The default window size is 30 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for acquisitionConversionEventLookbackWindow. - */ - int getAcquisitionConversionEventLookbackWindowValue(); - /** - *
-   * Required. The lookback window configuration for acquisition conversion
-   * events. The default window size is 30 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow acquisition_conversion_event_lookback_window = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acquisitionConversionEventLookbackWindow. - */ - com.google.analytics.admin.v1alpha.AttributionSettings.AcquisitionConversionEventLookbackWindow getAcquisitionConversionEventLookbackWindow(); - - /** - *
-   * Required. The lookback window for all other, non-acquisition conversion
-   * events. The default window size is 90 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for otherConversionEventLookbackWindow. - */ - int getOtherConversionEventLookbackWindowValue(); - /** - *
-   * Required. The lookback window for all other, non-acquisition conversion
-   * events. The default window size is 90 days.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow other_conversion_event_lookback_window = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The otherConversionEventLookbackWindow. - */ - com.google.analytics.admin.v1alpha.AttributionSettings.OtherConversionEventLookbackWindow getOtherConversionEventLookbackWindow(); - - /** - *
-   * Required. The reporting attribution model used to calculate conversion
-   * credit in this property's reports.
-   *
-   * Changing the attribution model will apply to both historical and future
-   * data. These changes will be reflected in reports with conversion and
-   * revenue data. User and session data will be unaffected.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for reportingAttributionModel. - */ - int getReportingAttributionModelValue(); - /** - *
-   * Required. The reporting attribution model used to calculate conversion
-   * credit in this property's reports.
-   *
-   * Changing the attribution model will apply to both historical and future
-   * data. These changes will be reflected in reports with conversion and
-   * revenue data. User and session data will be unaffected.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel reporting_attribution_model = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The reportingAttributionModel. - */ - com.google.analytics.admin.v1alpha.AttributionSettings.ReportingAttributionModel getReportingAttributionModel(); - - /** - *
-   * Required. The Conversion Export Scope for data exported to linked Ads
-   * Accounts.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for adsWebConversionDataExportScope. - */ - int getAdsWebConversionDataExportScopeValue(); - /** - *
-   * Required. The Conversion Export Scope for data exported to linked Ads
-   * Accounts.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope ads_web_conversion_data_export_scope = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The adsWebConversionDataExportScope. - */ - com.google.analytics.admin.v1alpha.AttributionSettings.AdsWebConversionDataExportScope getAdsWebConversionDataExportScope(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java deleted file mode 100644 index 3578d7a7a3c9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Audience.java +++ /dev/null @@ -1,2079 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing a GA4 Audience.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.Audience} - */ -public final class Audience extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.Audience) - AudienceOrBuilder { -private static final long serialVersionUID = 0L; - // Use Audience.newBuilder() to construct. - private Audience(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Audience() { - name_ = ""; - displayName_ = ""; - description_ = ""; - exclusionDurationMode_ = 0; - filterClauses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Audience(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_Audience_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.Audience.class, com.google.analytics.admin.v1alpha.Audience.Builder.class); - } - - /** - *
-   * Specifies how long an exclusion lasts for users that meet the exclusion
-   * filter.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode} - */ - public enum AudienceExclusionDurationMode - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Not specified.
-     * 
- * - * AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; - */ - AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED(0), - /** - *
-     * Exclude users from the Audience during periods when they meet the
-     * filter clause.
-     * 
- * - * EXCLUDE_TEMPORARILY = 1; - */ - EXCLUDE_TEMPORARILY(1), - /** - *
-     * Exclude users from the Audience if they've ever met the filter clause.
-     * 
- * - * EXCLUDE_PERMANENTLY = 2; - */ - EXCLUDE_PERMANENTLY(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Not specified.
-     * 
- * - * AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED = 0; - */ - public static final int AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Exclude users from the Audience during periods when they meet the
-     * filter clause.
-     * 
- * - * EXCLUDE_TEMPORARILY = 1; - */ - public static final int EXCLUDE_TEMPORARILY_VALUE = 1; - /** - *
-     * Exclude users from the Audience if they've ever met the filter clause.
-     * 
- * - * EXCLUDE_PERMANENTLY = 2; - */ - public static final int EXCLUDE_PERMANENTLY_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AudienceExclusionDurationMode 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 AudienceExclusionDurationMode forNumber(int value) { - switch (value) { - case 0: return AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED; - case 1: return EXCLUDE_TEMPORARILY; - case 2: return EXCLUDE_PERMANENTLY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AudienceExclusionDurationMode> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AudienceExclusionDurationMode findValueByNumber(int number) { - return AudienceExclusionDurationMode.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.Audience.getDescriptor().getEnumTypes().get(0); - } - - private static final AudienceExclusionDurationMode[] VALUES = values(); - - public static AudienceExclusionDurationMode valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AudienceExclusionDurationMode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. The resource name for this Audience resource.
-   * Format: properties/{propertyId}/audiences/{audienceId}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name for this Audience resource.
-   * Format: properties/{propertyId}/audiences/{audienceId}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. The display name of the Audience.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. The display name of the Audience.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * Required. The description of the Audience.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-   * Required. The description of the Audience.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEMBERSHIP_DURATION_DAYS_FIELD_NUMBER = 4; - private int membershipDurationDays_ = 0; - /** - *
-   * Required. Immutable. The duration a user should stay in an Audience. It
-   * cannot be set to more than 540 days.
-   * 
- * - * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The membershipDurationDays. - */ - @java.lang.Override - public int getMembershipDurationDays() { - return membershipDurationDays_; - } - - public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 5; - private boolean adsPersonalizationEnabled_ = false; - /** - *
-   * Output only. It is automatically set by GA to false if this is an NPA
-   * Audience and is excluded from ads personalization.
-   * 
- * - * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The adsPersonalizationEnabled. - */ - @java.lang.Override - public boolean getAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_; - } - - public static final int EVENT_TRIGGER_FIELD_NUMBER = 6; - private com.google.analytics.admin.v1alpha.AudienceEventTrigger eventTrigger_; - /** - *
-   * Optional. Specifies an event to log when a user joins the Audience. If not
-   * set, no event is logged when a user joins the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the eventTrigger field is set. - */ - @java.lang.Override - public boolean hasEventTrigger() { - return eventTrigger_ != null; - } - /** - *
-   * Optional. Specifies an event to log when a user joins the Audience. If not
-   * set, no event is logged when a user joins the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The eventTrigger. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger() { - return eventTrigger_ == null ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() : eventTrigger_; - } - /** - *
-   * Optional. Specifies an event to log when a user joins the Audience. If not
-   * set, no event is logged when a user joins the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder getEventTriggerOrBuilder() { - return eventTrigger_ == null ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() : eventTrigger_; - } - - public static final int EXCLUSION_DURATION_MODE_FIELD_NUMBER = 7; - private int exclusionDurationMode_ = 0; - /** - *
-   * Immutable. Specifies how long an exclusion lasts for users that meet the
-   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-   * ignored when there is no EXCLUDE filter clause in the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for exclusionDurationMode. - */ - @java.lang.Override public int getExclusionDurationModeValue() { - return exclusionDurationMode_; - } - /** - *
-   * Immutable. Specifies how long an exclusion lasts for users that meet the
-   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-   * ignored when there is no EXCLUDE filter clause in the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The exclusionDurationMode. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode getExclusionDurationMode() { - com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.forNumber(exclusionDurationMode_); - return result == null ? com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.UNRECOGNIZED : result; - } - - public static final int FILTER_CLAUSES_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List filterClauses_; - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public java.util.List getFilterClausesList() { - return filterClauses_; - } - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public java.util.List - getFilterClausesOrBuilderList() { - return filterClauses_; - } - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public int getFilterClausesCount() { - return filterClauses_.size(); - } - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index) { - return filterClauses_.get(index); - } - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder getFilterClausesOrBuilder( - int index) { - return filterClauses_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (membershipDurationDays_ != 0) { - output.writeInt32(4, membershipDurationDays_); - } - if (adsPersonalizationEnabled_ != false) { - output.writeBool(5, adsPersonalizationEnabled_); - } - if (eventTrigger_ != null) { - output.writeMessage(6, getEventTrigger()); - } - if (exclusionDurationMode_ != com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED.getNumber()) { - output.writeEnum(7, exclusionDurationMode_); - } - for (int i = 0; i < filterClauses_.size(); i++) { - output.writeMessage(8, filterClauses_.get(i)); - } - 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(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (membershipDurationDays_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, membershipDurationDays_); - } - if (adsPersonalizationEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, adsPersonalizationEnabled_); - } - if (eventTrigger_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getEventTrigger()); - } - if (exclusionDurationMode_ != com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.AUDIENCE_EXCLUSION_DURATION_MODE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(7, exclusionDurationMode_); - } - for (int i = 0; i < filterClauses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, filterClauses_.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.admin.v1alpha.Audience)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.Audience other = (com.google.analytics.admin.v1alpha.Audience) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getMembershipDurationDays() - != other.getMembershipDurationDays()) return false; - if (getAdsPersonalizationEnabled() - != other.getAdsPersonalizationEnabled()) return false; - if (hasEventTrigger() != other.hasEventTrigger()) return false; - if (hasEventTrigger()) { - if (!getEventTrigger() - .equals(other.getEventTrigger())) return false; - } - if (exclusionDurationMode_ != other.exclusionDurationMode_) return false; - if (!getFilterClausesList() - .equals(other.getFilterClausesList())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + MEMBERSHIP_DURATION_DAYS_FIELD_NUMBER; - hash = (53 * hash) + getMembershipDurationDays(); - hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAdsPersonalizationEnabled()); - if (hasEventTrigger()) { - hash = (37 * hash) + EVENT_TRIGGER_FIELD_NUMBER; - hash = (53 * hash) + getEventTrigger().hashCode(); - } - hash = (37 * hash) + EXCLUSION_DURATION_MODE_FIELD_NUMBER; - hash = (53 * hash) + exclusionDurationMode_; - if (getFilterClausesCount() > 0) { - hash = (37 * hash) + FILTER_CLAUSES_FIELD_NUMBER; - hash = (53 * hash) + getFilterClausesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.Audience parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.Audience parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.Audience parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.Audience prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a GA4 Audience.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.Audience} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.Audience) - com.google.analytics.admin.v1alpha.AudienceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_Audience_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.Audience.class, com.google.analytics.admin.v1alpha.Audience.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.Audience.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - membershipDurationDays_ = 0; - adsPersonalizationEnabled_ = false; - eventTrigger_ = null; - if (eventTriggerBuilder_ != null) { - eventTriggerBuilder_.dispose(); - eventTriggerBuilder_ = null; - } - exclusionDurationMode_ = 0; - if (filterClausesBuilder_ == null) { - filterClauses_ = java.util.Collections.emptyList(); - } else { - filterClauses_ = null; - filterClausesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_Audience_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience build() { - com.google.analytics.admin.v1alpha.Audience result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience buildPartial() { - com.google.analytics.admin.v1alpha.Audience result = new com.google.analytics.admin.v1alpha.Audience(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.Audience result) { - if (filterClausesBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.filterClauses_ = filterClauses_; - } else { - result.filterClauses_ = filterClausesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.Audience result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.membershipDurationDays_ = membershipDurationDays_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.eventTrigger_ = eventTriggerBuilder_ == null - ? eventTrigger_ - : eventTriggerBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.exclusionDurationMode_ = exclusionDurationMode_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.Audience) { - return mergeFrom((com.google.analytics.admin.v1alpha.Audience)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.Audience other) { - if (other == com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getMembershipDurationDays() != 0) { - setMembershipDurationDays(other.getMembershipDurationDays()); - } - if (other.getAdsPersonalizationEnabled() != false) { - setAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); - } - if (other.hasEventTrigger()) { - mergeEventTrigger(other.getEventTrigger()); - } - if (other.exclusionDurationMode_ != 0) { - setExclusionDurationModeValue(other.getExclusionDurationModeValue()); - } - if (filterClausesBuilder_ == null) { - if (!other.filterClauses_.isEmpty()) { - if (filterClauses_.isEmpty()) { - filterClauses_ = other.filterClauses_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureFilterClausesIsMutable(); - filterClauses_.addAll(other.filterClauses_); - } - onChanged(); - } - } else { - if (!other.filterClauses_.isEmpty()) { - if (filterClausesBuilder_.isEmpty()) { - filterClausesBuilder_.dispose(); - filterClausesBuilder_ = null; - filterClauses_ = other.filterClauses_; - bitField0_ = (bitField0_ & ~0x00000080); - filterClausesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFilterClausesFieldBuilder() : null; - } else { - filterClausesBuilder_.addAllMessages(other.filterClauses_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - membershipDurationDays_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - adsPersonalizationEnabled_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - input.readMessage( - getEventTriggerFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - exclusionDurationMode_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 66: { - com.google.analytics.admin.v1alpha.AudienceFilterClause m = - input.readMessage( - com.google.analytics.admin.v1alpha.AudienceFilterClause.parser(), - extensionRegistry); - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.add(m); - } else { - filterClausesBuilder_.addMessage(m); - } - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. The resource name for this Audience resource.
-     * Format: properties/{propertyId}/audiences/{audienceId}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name for this Audience resource.
-     * Format: properties/{propertyId}/audiences/{audienceId}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name for this Audience resource.
-     * Format: properties/{propertyId}/audiences/{audienceId}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name for this Audience resource.
-     * Format: properties/{propertyId}/audiences/{audienceId}
-     * 
- * - * string name = 1 [(.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. The resource name for this Audience resource.
-     * Format: properties/{propertyId}/audiences/{audienceId}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. The display name of the Audience.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The display name of the Audience.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The display name of the Audience.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The display name of the Audience.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. The display name of the Audience.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Required. The description of the Audience.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The description of the Audience.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The description of the Audience.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. The description of the Audience.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. The description of the Audience.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int membershipDurationDays_ ; - /** - *
-     * Required. Immutable. The duration a user should stay in an Audience. It
-     * cannot be set to more than 540 days.
-     * 
- * - * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The membershipDurationDays. - */ - @java.lang.Override - public int getMembershipDurationDays() { - return membershipDurationDays_; - } - /** - *
-     * Required. Immutable. The duration a user should stay in an Audience. It
-     * cannot be set to more than 540 days.
-     * 
- * - * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The membershipDurationDays to set. - * @return This builder for chaining. - */ - public Builder setMembershipDurationDays(int value) { - - membershipDurationDays_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The duration a user should stay in an Audience. It
-     * cannot be set to more than 540 days.
-     * 
- * - * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearMembershipDurationDays() { - bitField0_ = (bitField0_ & ~0x00000008); - membershipDurationDays_ = 0; - onChanged(); - return this; - } - - private boolean adsPersonalizationEnabled_ ; - /** - *
-     * Output only. It is automatically set by GA to false if this is an NPA
-     * Audience and is excluded from ads personalization.
-     * 
- * - * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The adsPersonalizationEnabled. - */ - @java.lang.Override - public boolean getAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_; - } - /** - *
-     * Output only. It is automatically set by GA to false if this is an NPA
-     * Audience and is excluded from ads personalization.
-     * 
- * - * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The adsPersonalizationEnabled to set. - * @return This builder for chaining. - */ - public Builder setAdsPersonalizationEnabled(boolean value) { - - adsPersonalizationEnabled_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. It is automatically set by GA to false if this is an NPA
-     * Audience and is excluded from ads personalization.
-     * 
- * - * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearAdsPersonalizationEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - adsPersonalizationEnabled_ = false; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AudienceEventTrigger eventTrigger_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceEventTrigger, com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder> eventTriggerBuilder_; - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the eventTrigger field is set. - */ - public boolean hasEventTrigger() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The eventTrigger. - */ - public com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger() { - if (eventTriggerBuilder_ == null) { - return eventTrigger_ == null ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() : eventTrigger_; - } else { - return eventTriggerBuilder_.getMessage(); - } - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEventTrigger(com.google.analytics.admin.v1alpha.AudienceEventTrigger value) { - if (eventTriggerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eventTrigger_ = value; - } else { - eventTriggerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEventTrigger( - com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder builderForValue) { - if (eventTriggerBuilder_ == null) { - eventTrigger_ = builderForValue.build(); - } else { - eventTriggerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeEventTrigger(com.google.analytics.admin.v1alpha.AudienceEventTrigger value) { - if (eventTriggerBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - eventTrigger_ != null && - eventTrigger_ != com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance()) { - getEventTriggerBuilder().mergeFrom(value); - } else { - eventTrigger_ = value; - } - } else { - eventTriggerBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearEventTrigger() { - bitField0_ = (bitField0_ & ~0x00000020); - eventTrigger_ = null; - if (eventTriggerBuilder_ != null) { - eventTriggerBuilder_.dispose(); - eventTriggerBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder getEventTriggerBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEventTriggerFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder getEventTriggerOrBuilder() { - if (eventTriggerBuilder_ != null) { - return eventTriggerBuilder_.getMessageOrBuilder(); - } else { - return eventTrigger_ == null ? - com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance() : eventTrigger_; - } - } - /** - *
-     * Optional. Specifies an event to log when a user joins the Audience. If not
-     * set, no event is logged when a user joins the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceEventTrigger, com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder> - getEventTriggerFieldBuilder() { - if (eventTriggerBuilder_ == null) { - eventTriggerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceEventTrigger, com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder, com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder>( - getEventTrigger(), - getParentForChildren(), - isClean()); - eventTrigger_ = null; - } - return eventTriggerBuilder_; - } - - private int exclusionDurationMode_ = 0; - /** - *
-     * Immutable. Specifies how long an exclusion lasts for users that meet the
-     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-     * ignored when there is no EXCLUDE filter clause in the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for exclusionDurationMode. - */ - @java.lang.Override public int getExclusionDurationModeValue() { - return exclusionDurationMode_; - } - /** - *
-     * Immutable. Specifies how long an exclusion lasts for users that meet the
-     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-     * ignored when there is no EXCLUDE filter clause in the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for exclusionDurationMode to set. - * @return This builder for chaining. - */ - public Builder setExclusionDurationModeValue(int value) { - exclusionDurationMode_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Immutable. Specifies how long an exclusion lasts for users that meet the
-     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-     * ignored when there is no EXCLUDE filter clause in the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The exclusionDurationMode. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode getExclusionDurationMode() { - com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode result = com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.forNumber(exclusionDurationMode_); - return result == null ? com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode.UNRECOGNIZED : result; - } - /** - *
-     * Immutable. Specifies how long an exclusion lasts for users that meet the
-     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-     * ignored when there is no EXCLUDE filter clause in the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The exclusionDurationMode to set. - * @return This builder for chaining. - */ - public Builder setExclusionDurationMode(com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - exclusionDurationMode_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Immutable. Specifies how long an exclusion lasts for users that meet the
-     * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-     * ignored when there is no EXCLUDE filter clause in the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearExclusionDurationMode() { - bitField0_ = (bitField0_ & ~0x00000040); - exclusionDurationMode_ = 0; - onChanged(); - return this; - } - - private java.util.List filterClauses_ = - java.util.Collections.emptyList(); - private void ensureFilterClausesIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - filterClauses_ = new java.util.ArrayList(filterClauses_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterClause, com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> filterClausesBuilder_; - - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List getFilterClausesList() { - if (filterClausesBuilder_ == null) { - return java.util.Collections.unmodifiableList(filterClauses_); - } else { - return filterClausesBuilder_.getMessageList(); - } - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public int getFilterClausesCount() { - if (filterClausesBuilder_ == null) { - return filterClauses_.size(); - } else { - return filterClausesBuilder_.getCount(); - } - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index) { - if (filterClausesBuilder_ == null) { - return filterClauses_.get(index); - } else { - return filterClausesBuilder_.getMessage(index); - } - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder setFilterClauses( - int index, com.google.analytics.admin.v1alpha.AudienceFilterClause value) { - if (filterClausesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterClausesIsMutable(); - filterClauses_.set(index, value); - onChanged(); - } else { - filterClausesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder setFilterClauses( - int index, com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.set(index, builderForValue.build()); - onChanged(); - } else { - filterClausesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses(com.google.analytics.admin.v1alpha.AudienceFilterClause value) { - if (filterClausesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterClausesIsMutable(); - filterClauses_.add(value); - onChanged(); - } else { - filterClausesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses( - int index, com.google.analytics.admin.v1alpha.AudienceFilterClause value) { - if (filterClausesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterClausesIsMutable(); - filterClauses_.add(index, value); - onChanged(); - } else { - filterClausesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses( - com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.add(builderForValue.build()); - onChanged(); - } else { - filterClausesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses( - int index, com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder builderForValue) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.add(index, builderForValue.build()); - onChanged(); - } else { - filterClausesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addAllFilterClauses( - java.lang.Iterable values) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filterClauses_); - onChanged(); - } else { - filterClausesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder clearFilterClauses() { - if (filterClausesBuilder_ == null) { - filterClauses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - filterClausesBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder removeFilterClauses(int index) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.remove(index); - onChanged(); - } else { - filterClausesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder getFilterClausesBuilder( - int index) { - return getFilterClausesFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder getFilterClausesOrBuilder( - int index) { - if (filterClausesBuilder_ == null) { - return filterClauses_.get(index); } else { - return filterClausesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List - getFilterClausesOrBuilderList() { - if (filterClausesBuilder_ != null) { - return filterClausesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filterClauses_); - } - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder addFilterClausesBuilder() { - return getFilterClausesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()); - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder addFilterClausesBuilder( - int index) { - return getFilterClausesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()); - } - /** - *
-     * Required. Immutable. Unordered list. Filter clauses that define the
-     * Audience. All clauses will be AND’ed together.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List - getFilterClausesBuilderList() { - return getFilterClausesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterClause, com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder> - getFilterClausesFieldBuilder() { - if (filterClausesBuilder_ == null) { - filterClausesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterClause, com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder, com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder>( - filterClauses_, - ((bitField0_ & 0x00000080) != 0), - getParentForChildren(), - isClean()); - filterClauses_ = null; - } - return filterClausesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.Audience) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.Audience) - private static final com.google.analytics.admin.v1alpha.Audience DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.Audience(); - } - - public static com.google.analytics.admin.v1alpha.Audience getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Audience parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java deleted file mode 100644 index f9fb090fb000..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilter.java +++ /dev/null @@ -1,6457 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A specific filter for a single dimension or metric.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} - */ -public final class AudienceDimensionOrMetricFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) - AudienceDimensionOrMetricFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceDimensionOrMetricFilter.newBuilder() to construct. - private AudienceDimensionOrMetricFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceDimensionOrMetricFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceDimensionOrMetricFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder.class); - } - - public interface StringFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - int getMatchTypeValue(); - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType getMatchType(); - - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} - */ - public static final class StringFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) - StringFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use StringFilter.newBuilder() to construct. - private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder.class); - } - - /** - *
-     * The match type for the string filter.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType} - */ - public enum MatchType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Unspecified
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - BEGINS_WITH(2), - /** - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - ENDS_WITH(3), - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - CONTAINS(4), - /** - *
-       * Full regular expression matches with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Unspecified
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - public static final int BEGINS_WITH_VALUE = 2; - /** - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - public static final int ENDS_WITH_VALUE = 3; - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - public static final int CONTAINS_VALUE = 4; - /** - *
-       * Full regular expression matches with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: return MATCH_TYPE_UNSPECIFIED; - case 1: return EXACT; - case 2: return BEGINS_WITH; - case 3: return ENDS_WITH; - case 4: return CONTAINS; - case 5: return FULL_REGEXP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_ = 0; - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; - private boolean caseSensitive_ = false; - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (matchType_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (caseSensitive_ != false) { - output.writeBool(3, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); - } - size += 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.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter other = (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - matchType_ = 0; - value_ = ""; - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter build() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.matchType_ = matchType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance()) return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - matchType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int matchType_ = 0; - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - matchType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType.UNRECOGNIZED : result; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMatchType() { - bitField0_ = (bitField0_ & ~0x00000001); - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000004); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) - private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface InListFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - java.util.List - getValuesList(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - int getValuesCount(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); - } - /** - *
-   * A filter for a string dimension that matches a particular list of options.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} - */ - public static final class InListFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) - InListFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use InListFilter.newBuilder() to construct. - private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InListFilter() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InListFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; - private boolean caseSensitive_ = false; - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - if (caseSensitive_ != false) { - output.writeBool(2, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, caseSensitive_); - } - size += 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.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter other = (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for a string dimension that matches a particular list of options.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter build() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000001; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - case 16: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000001; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - values_.makeImmutable(); - return values_; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000002); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) - private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InListFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NumericValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Integer value.
-     * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - boolean hasInt64Value(); - /** - *
-     * Integer value.
-     * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - long getInt64Value(); - - /** - *
-     * Double value.
-     * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - /** - *
-     * Double value.
-     * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - double getDoubleValue(); - - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.OneValueCase getOneValueCase(); - } - /** - *
-   * To represent a number.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} - */ - public static final class NumericValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) - NumericValueOrBuilder { - private static final long serialVersionUID = 0L; - // Use NumericValue.newBuilder() to construct. - private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NumericValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NumericValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.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 { - INT64_VALUE(1), - DOUBLE_VALUE(2), - ONEVALUE_NOT_SET(0); - private final int value; - private OneValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneValueCase valueOf(int value) { - return forNumber(value); - } - - public static OneValueCase forNumber(int value) { - switch (value) { - case 1: return INT64_VALUE; - case 2: return DOUBLE_VALUE; - case 0: return ONEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneValueCase - getOneValueCase() { - return OneValueCase.forNumber( - oneValueCase_); - } - - public static final int INT64_VALUE_FIELD_NUMBER = 1; - /** - *
-     * Integer value.
-     * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - @java.lang.Override - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - *
-     * Integer value.
-     * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - @java.lang.Override - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; - /** - *
-     * Double value.
-     * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - *
-     * Double value.
-     * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oneValueCase_ == 1) { - output.writeInt64( - 1, (long)((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) oneValue_)); - } - 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.CodedOutputStream - .computeInt64Size( - 1, (long)((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) 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.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue other = (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) obj; - - if (!getOneValueCase().equals(other.getOneValueCase())) return false; - switch (oneValueCase_) { - case 1: - if (getInt64Value() - != other.getInt64Value()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; - break; - case 0: - default: - } - if (!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) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); - break; - case 2: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * To represent a number.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oneValueCase_ = 0; - oneValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue build() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue buildPartial() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue result) { - result.oneValueCase_ = oneValueCase_; - result.oneValue_ = this.oneValue_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue other) { - if (other == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance()) return this; - switch (other.getOneValueCase()) { - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case ONEVALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - oneValue_ = input.readInt64(); - oneValueCase_ = 1; - break; - } // case 8 - case 17: { - oneValue_ = input.readDouble(); - oneValueCase_ = 2; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - public OneValueCase - getOneValueCase() { - return OneValueCase.forNumber( - oneValueCase_); - } - - public Builder clearOneValue() { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-       * Integer value.
-       * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - *
-       * Integer value.
-       * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - /** - *
-       * Integer value.
-       * 
- * - * int64 int64_value = 1; - * @param value The int64Value to set. - * @return This builder for chaining. - */ - public Builder setInt64Value(long value) { - - oneValueCase_ = 1; - oneValue_ = value; - onChanged(); - return this; - } - /** - *
-       * Integer value.
-       * 
- * - * int64 int64_value = 1; - * @return This builder for chaining. - */ - public Builder clearInt64Value() { - if (oneValueCase_ == 1) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - - /** - *
-       * Double value.
-       * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - *
-       * Double value.
-       * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - /** - *
-       * Double value.
-       * 
- * - * double double_value = 2; - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - - oneValueCase_ = 2; - oneValue_ = value; - onChanged(); - return this; - } - /** - *
-       * Double value.
-       * 
- * - * double double_value = 2; - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (oneValueCase_ == 2) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue) - private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue(); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface NumericFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The operation applied to a numeric filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for operation. - */ - int getOperationValue(); - /** - *
-     * Required. The operation applied to a numeric filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The operation. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation getOperation(); - - /** - *
-     * Required. The numeric or date value to match against.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - *
-     * Required. The numeric or date value to match against.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getValue(); - /** - *
-     * Required. The numeric or date value to match against.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getValueOrBuilder(); - } - /** - *
-   * A filter for numeric or date values on a dimension or metric.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} - */ - public static final class NumericFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) - NumericFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use NumericFilter.newBuilder() to construct. - private NumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NumericFilter() { - operation_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NumericFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder.class); - } - - /** - *
-     * The operation applied to a numeric filter.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation} - */ - public enum Operation - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Unspecified.
-       * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - OPERATION_UNSPECIFIED(0), - /** - *
-       * Equal.
-       * 
- * - * EQUAL = 1; - */ - EQUAL(1), - /** - *
-       * Less than.
-       * 
- * - * LESS_THAN = 2; - */ - LESS_THAN(2), - /** - *
-       * Greater than.
-       * 
- * - * GREATER_THAN = 4; - */ - GREATER_THAN(4), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Unspecified.
-       * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - public static final int OPERATION_UNSPECIFIED_VALUE = 0; - /** - *
-       * Equal.
-       * 
- * - * EQUAL = 1; - */ - public static final int EQUAL_VALUE = 1; - /** - *
-       * Less than.
-       * 
- * - * LESS_THAN = 2; - */ - public static final int LESS_THAN_VALUE = 2; - /** - *
-       * Greater than.
-       * 
- * - * GREATER_THAN = 4; - */ - public static final int GREATER_THAN_VALUE = 4; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operation valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Operation forNumber(int value) { - switch (value) { - case 0: return OPERATION_UNSPECIFIED; - case 1: return EQUAL; - case 2: return LESS_THAN; - case 4: return GREATER_THAN; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Operation> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operation findValueByNumber(int number) { - return Operation.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final Operation[] VALUES = values(); - - public static Operation valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation) - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private int operation_ = 0; - /** - *
-     * Required. The operation applied to a numeric filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override public int getOperationValue() { - return operation_; - } - /** - *
-     * Required. The operation applied to a numeric filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The operation. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation getOperation() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation result = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation.forNumber(operation_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value_; - /** - *
-     * Required. The numeric or date value to match against.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return value_ != null; - } - /** - *
-     * Required. The numeric or date value to match against.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getValue() { - return value_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : value_; - } - /** - *
-     * Required. The numeric or date value to match against.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (operation_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation.OPERATION_UNSPECIFIED.getNumber()) { - output.writeEnum(1, operation_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operation_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation.OPERATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operation_); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - 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.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter other = (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) obj; - - if (operation_ != other.operation_) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) 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) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + operation_; - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - operation_ = 0; - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter build() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.operation_ = operation_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance()) return this; - if (other.operation_ != 0) { - setOperationValue(other.getOperationValue()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - operation_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int operation_ = 0; - /** - *
-       * Required. The operation applied to a numeric filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override public int getOperationValue() { - return operation_; - } - /** - *
-       * Required. The operation applied to a numeric filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationValue(int value) { - operation_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The operation applied to a numeric filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation getOperation() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation result = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation.forNumber(operation_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation.UNRECOGNIZED : result; - } - /** - *
-       * Required. The operation applied to a numeric filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - operation_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Required. The operation applied to a numeric filter.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Operation operation = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearOperation() { - bitField0_ = (bitField0_ & ~0x00000001); - operation_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder> valueBuilder_; - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the value field is set. - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getValue() { - if (valueBuilder_ == null) { - return value_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setValue(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - } else { - valueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setValue( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeValue(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance()) { - getValueBuilder().mergeFrom(value); - } else { - value_ = value; - } - } else { - valueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder getValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : value_; - } - } - /** - *
-       * Required. The numeric or date value to match against.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) - private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface BetweenFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. Begins with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the fromValue field is set. - */ - boolean hasFromValue(); - /** - *
-     * Required. Begins with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fromValue. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getFromValue(); - /** - *
-     * Required. Begins with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getFromValueOrBuilder(); - - /** - *
-     * Required. Ends with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the toValue field is set. - */ - boolean hasToValue(); - /** - *
-     * Required. Ends with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The toValue. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getToValue(); - /** - *
-     * Required. Ends with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getToValueOrBuilder(); - } - /** - *
-   * A filter for numeric or date values between certain values on a dimension
-   * or metric.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} - */ - public static final class BetweenFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) - BetweenFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use BetweenFilter.newBuilder() to construct. - private BetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BetweenFilter() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BetweenFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder.class); - } - - public static final int FROM_VALUE_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue fromValue_; - /** - *
-     * Required. Begins with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the fromValue field is set. - */ - @java.lang.Override - public boolean hasFromValue() { - return fromValue_ != null; - } - /** - *
-     * Required. Begins with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fromValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getFromValue() { - return fromValue_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : fromValue_; - } - /** - *
-     * Required. Begins with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getFromValueOrBuilder() { - return fromValue_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : fromValue_; - } - - public static final int TO_VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue toValue_; - /** - *
-     * Required. Ends with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the toValue field is set. - */ - @java.lang.Override - public boolean hasToValue() { - return toValue_ != null; - } - /** - *
-     * Required. Ends with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The toValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getToValue() { - return toValue_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : toValue_; - } - /** - *
-     * Required. Ends with this number, inclusive.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getToValueOrBuilder() { - return toValue_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : toValue_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (fromValue_ != null) { - output.writeMessage(1, getFromValue()); - } - if (toValue_ != null) { - output.writeMessage(2, getToValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fromValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFromValue()); - } - if (toValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getToValue()); - } - size += 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.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter other = (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) obj; - - if (hasFromValue() != other.hasFromValue()) return false; - if (hasFromValue()) { - if (!getFromValue() - .equals(other.getFromValue())) return false; - } - if (hasToValue() != other.hasToValue()) return false; - if (hasToValue()) { - if (!getToValue() - .equals(other.getToValue())) return false; - } - if (!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 (hasFromValue()) { - hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getFromValue().hashCode(); - } - if (hasToValue()) { - hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getToValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fromValue_ = null; - if (fromValueBuilder_ != null) { - fromValueBuilder_.dispose(); - fromValueBuilder_ = null; - } - toValue_ = null; - if (toValueBuilder_ != null) { - toValueBuilder_.dispose(); - toValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter build() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fromValue_ = fromValueBuilder_ == null - ? fromValue_ - : fromValueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.toValue_ = toValueBuilder_ == null - ? toValue_ - : toValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance()) return this; - if (other.hasFromValue()) { - mergeFromValue(other.getFromValue()); - } - if (other.hasToValue()) { - mergeToValue(other.getToValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getFromValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getToValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue fromValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder> fromValueBuilder_; - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the fromValue field is set. - */ - public boolean hasFromValue() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fromValue. - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getFromValue() { - if (fromValueBuilder_ == null) { - return fromValue_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : fromValue_; - } else { - return fromValueBuilder_.getMessage(); - } - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFromValue(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { - if (fromValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fromValue_ = value; - } else { - fromValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFromValue( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder builderForValue) { - if (fromValueBuilder_ == null) { - fromValue_ = builderForValue.build(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeFromValue(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { - if (fromValueBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - fromValue_ != null && - fromValue_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance()) { - getFromValueBuilder().mergeFrom(value); - } else { - fromValue_ = value; - } - } else { - fromValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearFromValue() { - bitField0_ = (bitField0_ & ~0x00000001); - fromValue_ = null; - if (fromValueBuilder_ != null) { - fromValueBuilder_.dispose(); - fromValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder getFromValueBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getFromValueFieldBuilder().getBuilder(); - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getFromValueOrBuilder() { - if (fromValueBuilder_ != null) { - return fromValueBuilder_.getMessageOrBuilder(); - } else { - return fromValue_ == null ? - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : fromValue_; - } - } - /** - *
-       * Required. Begins with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue from_value = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder> - getFromValueFieldBuilder() { - if (fromValueBuilder_ == null) { - fromValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder>( - getFromValue(), - getParentForChildren(), - isClean()); - fromValue_ = null; - } - return fromValueBuilder_; - } - - private com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue toValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder> toValueBuilder_; - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the toValue field is set. - */ - public boolean hasToValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The toValue. - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue getToValue() { - if (toValueBuilder_ == null) { - return toValue_ == null ? com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : toValue_; - } else { - return toValueBuilder_.getMessage(); - } - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setToValue(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { - if (toValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - toValue_ = value; - } else { - toValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setToValue( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder builderForValue) { - if (toValueBuilder_ == null) { - toValue_ = builderForValue.build(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeToValue(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue value) { - if (toValueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - toValue_ != null && - toValue_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance()) { - getToValueBuilder().mergeFrom(value); - } else { - toValue_ = value; - } - } else { - toValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearToValue() { - bitField0_ = (bitField0_ & ~0x00000002); - toValue_ = null; - if (toValueBuilder_ != null) { - toValueBuilder_.dispose(); - toValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder getToValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getToValueFieldBuilder().getBuilder(); - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder getToValueOrBuilder() { - if (toValueBuilder_ != null) { - return toValueBuilder_.getMessageOrBuilder(); - } else { - return toValue_ == null ? - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.getDefaultInstance() : toValue_; - } - } - /** - *
-       * Required. Ends with this number, inclusive.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue to_value = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder> - getToValueFieldBuilder() { - if (toValueBuilder_ == null) { - toValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValue.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericValueOrBuilder>( - getToValue(), - getParentForChildren(), - isClean()); - toValue_ = null; - } - return toValueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) - private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BetweenFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int oneFilterCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneFilter_; - public enum OneFilterCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STRING_FILTER(2), - IN_LIST_FILTER(3), - NUMERIC_FILTER(4), - BETWEEN_FILTER(5), - ONEFILTER_NOT_SET(0); - private final int value; - private OneFilterCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneFilterCase valueOf(int value) { - return forNumber(value); - } - - public static OneFilterCase forNumber(int value) { - switch (value) { - case 2: return STRING_FILTER; - case 3: return IN_LIST_FILTER; - case 4: return NUMERIC_FILTER; - case 5: return BETWEEN_FILTER; - case 0: return ONEFILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public static final int STRING_FILTER_FIELD_NUMBER = 2; - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getStringFilter() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance(); - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getInListFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance(); - } - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; - /** - *
-   * A filter for numeric or date values on a dimension or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - *
-   * A filter for numeric or date values on a dimension or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance(); - } - /** - *
-   * A filter for numeric or date values on a dimension or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; - /** - *
-   * A filter for numeric or date values between certain values on a dimension
-   * or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - *
-   * A filter for numeric or date values between certain values on a dimension
-   * or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance(); - } - /** - *
-   * A filter for numeric or date values between certain values on a dimension
-   * or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance(); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; - /** - *
-   * Required. Immutable. The dimension name or metric name to filter. If the
-   * field name refers to a custom dimension or metric, a scope prefix will be
-   * added to the front of the custom dimensions or metric name. For more on
-   * scope prefixes or custom dimensions/metrics, reference the [Google
-   * Analytics Data API documentation]
-   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - *
-   * Required. Immutable. The dimension name or metric name to filter. If the
-   * field name refers to a custom dimension or metric, a scope prefix will be
-   * added to the front of the custom dimensions or metric name. For more on
-   * scope prefixes or custom dimensions/metrics, reference the [Google
-   * Analytics Data API documentation]
-   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AT_ANY_POINT_IN_TIME_FIELD_NUMBER = 6; - private boolean atAnyPointInTime_ = false; - /** - *
-   * Optional. Indicates whether this filter needs dynamic evaluation or not. If
-   * set to true, users join the Audience if they ever met the condition (static
-   * evaluation). If unset or set to false, user evaluation for an Audience is
-   * dynamic; users are added to an Audience when they meet the conditions and
-   * then removed when they no longer meet them.
-   *
-   * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
-   * 
- * - * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The atAnyPointInTime. - */ - @java.lang.Override - public boolean getAtAnyPointInTime() { - return atAnyPointInTime_; - } - - public static final int IN_ANY_N_DAY_PERIOD_FIELD_NUMBER = 7; - private int inAnyNDayPeriod_ = 0; - /** - *
-   * Optional. If set, specifies the time window for which to evaluate data in
-   * number of days. If not set, then audience data is evaluated against
-   * lifetime data (For example, infinite time window).
-   *
-   * For example, if set to 1 day, only the current day's data is evaluated. The
-   * reference point is the current day when at_any_point_in_time is unset or
-   * false.
-   *
-   * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
-   * greater than 60 days.
-   * 
- * - * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The inAnyNDayPeriod. - */ - @java.lang.Override - public int getInAnyNDayPeriod() { - return inAnyNDayPeriod_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_); - } - if (atAnyPointInTime_ != false) { - output.writeBool(6, atAnyPointInTime_); - } - if (inAnyNDayPeriod_ != 0) { - output.writeInt32(7, inAnyNDayPeriod_); - } - 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(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_); - } - if (atAnyPointInTime_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, atAnyPointInTime_); - } - if (inAnyNDayPeriod_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(7, inAnyNDayPeriod_); - } - 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.admin.v1alpha.AudienceDimensionOrMetricFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter other = (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) obj; - - if (!getFieldName() - .equals(other.getFieldName())) return false; - if (getAtAnyPointInTime() - != other.getAtAnyPointInTime()) return false; - if (getInAnyNDayPeriod() - != other.getInAnyNDayPeriod()) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 2: - if (!getStringFilter() - .equals(other.getStringFilter())) return false; - break; - case 3: - if (!getInListFilter() - .equals(other.getInListFilter())) return false; - break; - case 4: - if (!getNumericFilter() - .equals(other.getNumericFilter())) return false; - break; - case 5: - if (!getBetweenFilter() - .equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!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) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - hash = (37 * hash) + AT_ANY_POINT_IN_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getAtAnyPointInTime()); - hash = (37 * hash) + IN_ANY_N_DAY_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + getInAnyNDayPeriod(); - switch (oneFilterCase_) { - case 2: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 4: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A specific filter for a single dimension or metric.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.class, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - fieldName_ = ""; - atAnyPointInTime_ = false; - inAnyNDayPeriod_ = 0; - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter build() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.fieldName_ = fieldName_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.atAnyPointInTime_ = atAnyPointInTime_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.inAnyNDayPeriod_ = inAnyNDayPeriod_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter result) { - result.oneFilterCase_ = oneFilterCase_; - result.oneFilter_ = this.oneFilter_; - if (oneFilterCase_ == 2 && - stringFilterBuilder_ != null) { - result.oneFilter_ = stringFilterBuilder_.build(); - } - if (oneFilterCase_ == 3 && - inListFilterBuilder_ != null) { - result.oneFilter_ = inListFilterBuilder_.build(); - } - if (oneFilterCase_ == 4 && - numericFilterBuilder_ != null) { - result.oneFilter_ = numericFilterBuilder_.build(); - } - if (oneFilterCase_ == 5 && - betweenFilterBuilder_ != null) { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getAtAnyPointInTime() != false) { - setAtAnyPointInTime(other.getAtAnyPointInTime()); - } - if (other.getInAnyNDayPeriod() != 0) { - setInAnyNDayPeriod(other.getInAnyNDayPeriod()); - } - switch (other.getOneFilterCase()) { - case STRING_FILTER: { - mergeStringFilter(other.getStringFilter()); - break; - } - case IN_LIST_FILTER: { - mergeInListFilter(other.getInListFilter()); - break; - } - case NUMERIC_FILTER: { - mergeNumericFilter(other.getNumericFilter()); - break; - } - case BETWEEN_FILTER: { - mergeBetweenFilter(other.getBetweenFilter()); - break; - } - case ONEFILTER_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - fieldName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 10 - case 18: { - input.readMessage( - getStringFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getInListFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getNumericFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getBetweenFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - case 48: { - atAnyPointInTime_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 56: { - inAnyNDayPeriod_ = input.readInt32(); - bitField0_ |= 0x00000040; - break; - } // case 56 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public Builder clearOneFilter() { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder> stringFilterBuilder_; - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 2) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - public Builder setStringFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - public Builder setStringFilter( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2 && - oneFilter_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 2) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 2)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 2; - onChanged(); - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder> inListFilterBuilder_; - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - public Builder mergeInListFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3 && - oneFilter_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder> numericFilterBuilder_; - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - public Builder mergeNumericFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4 && - oneFilter_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values on a dimension or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder> betweenFilterBuilder_; - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - public Builder mergeBetweenFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5 && - oneFilter_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values between certain values on a dimension
-     * or metric.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - return betweenFilterBuilder_; - } - - private java.lang.Object fieldName_ = ""; - /** - *
-     * Required. Immutable. The dimension name or metric name to filter. If the
-     * field name refers to a custom dimension or metric, a scope prefix will be
-     * added to the front of the custom dimensions or metric name. For more on
-     * scope prefixes or custom dimensions/metrics, reference the [Google
-     * Analytics Data API documentation]
-     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Immutable. The dimension name or metric name to filter. If the
-     * field name refers to a custom dimension or metric, a scope prefix will be
-     * added to the front of the custom dimensions or metric name. For more on
-     * scope prefixes or custom dimensions/metrics, reference the [Google
-     * Analytics Data API documentation]
-     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Immutable. The dimension name or metric name to filter. If the
-     * field name refers to a custom dimension or metric, a scope prefix will be
-     * added to the front of the custom dimensions or metric name. For more on
-     * scope prefixes or custom dimensions/metrics, reference the [Google
-     * Analytics Data API documentation]
-     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The dimension name or metric name to filter. If the
-     * field name refers to a custom dimension or metric, a scope prefix will be
-     * added to the front of the custom dimensions or metric name. For more on
-     * scope prefixes or custom dimensions/metrics, reference the [Google
-     * Analytics Data API documentation]
-     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The dimension name or metric name to filter. If the
-     * field name refers to a custom dimension or metric, a scope prefix will be
-     * added to the front of the custom dimensions or metric name. For more on
-     * scope prefixes or custom dimensions/metrics, reference the [Google
-     * Analytics Data API documentation]
-     * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean atAnyPointInTime_ ; - /** - *
-     * Optional. Indicates whether this filter needs dynamic evaluation or not. If
-     * set to true, users join the Audience if they ever met the condition (static
-     * evaluation). If unset or set to false, user evaluation for an Audience is
-     * dynamic; users are added to an Audience when they meet the conditions and
-     * then removed when they no longer meet them.
-     *
-     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
-     * 
- * - * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The atAnyPointInTime. - */ - @java.lang.Override - public boolean getAtAnyPointInTime() { - return atAnyPointInTime_; - } - /** - *
-     * Optional. Indicates whether this filter needs dynamic evaluation or not. If
-     * set to true, users join the Audience if they ever met the condition (static
-     * evaluation). If unset or set to false, user evaluation for an Audience is
-     * dynamic; users are added to an Audience when they meet the conditions and
-     * then removed when they no longer meet them.
-     *
-     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
-     * 
- * - * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The atAnyPointInTime to set. - * @return This builder for chaining. - */ - public Builder setAtAnyPointInTime(boolean value) { - - atAnyPointInTime_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. Indicates whether this filter needs dynamic evaluation or not. If
-     * set to true, users join the Audience if they ever met the condition (static
-     * evaluation). If unset or set to false, user evaluation for an Audience is
-     * dynamic; users are added to an Audience when they meet the conditions and
-     * then removed when they no longer meet them.
-     *
-     * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
-     * 
- * - * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAtAnyPointInTime() { - bitField0_ = (bitField0_ & ~0x00000020); - atAnyPointInTime_ = false; - onChanged(); - return this; - } - - private int inAnyNDayPeriod_ ; - /** - *
-     * Optional. If set, specifies the time window for which to evaluate data in
-     * number of days. If not set, then audience data is evaluated against
-     * lifetime data (For example, infinite time window).
-     *
-     * For example, if set to 1 day, only the current day's data is evaluated. The
-     * reference point is the current day when at_any_point_in_time is unset or
-     * false.
-     *
-     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
-     * greater than 60 days.
-     * 
- * - * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The inAnyNDayPeriod. - */ - @java.lang.Override - public int getInAnyNDayPeriod() { - return inAnyNDayPeriod_; - } - /** - *
-     * Optional. If set, specifies the time window for which to evaluate data in
-     * number of days. If not set, then audience data is evaluated against
-     * lifetime data (For example, infinite time window).
-     *
-     * For example, if set to 1 day, only the current day's data is evaluated. The
-     * reference point is the current day when at_any_point_in_time is unset or
-     * false.
-     *
-     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
-     * greater than 60 days.
-     * 
- * - * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The inAnyNDayPeriod to set. - * @return This builder for chaining. - */ - public Builder setInAnyNDayPeriod(int value) { - - inAnyNDayPeriod_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, specifies the time window for which to evaluate data in
-     * number of days. If not set, then audience data is evaluated against
-     * lifetime data (For example, infinite time window).
-     *
-     * For example, if set to 1 day, only the current day's data is evaluated. The
-     * reference point is the current day when at_any_point_in_time is unset or
-     * false.
-     *
-     * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
-     * greater than 60 days.
-     * 
- * - * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearInAnyNDayPeriod() { - bitField0_ = (bitField0_ & ~0x00000040); - inAnyNDayPeriod_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) - private static final com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceDimensionOrMetricFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java deleted file mode 100644 index 9c2887c2a4ef..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceDimensionOrMetricFilterOrBuilder.java +++ /dev/null @@ -1,190 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceDimensionOrMetricFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter getStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilter string_filter = 2; - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter getInListFilter(); - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilter in_list_filter = 3; - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - *
-   * A filter for numeric or date values on a dimension or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - *
-   * A filter for numeric or date values on a dimension or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter getNumericFilter(); - /** - *
-   * A filter for numeric or date values on a dimension or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilter numeric_filter = 4; - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - *
-   * A filter for numeric or date values between certain values on a dimension
-   * or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - *
-   * A filter for numeric or date values between certain values on a dimension
-   * or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter getBetweenFilter(); - /** - *
-   * A filter for numeric or date values between certain values on a dimension
-   * or metric.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilter between_filter = 5; - */ - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - /** - *
-   * Required. Immutable. The dimension name or metric name to filter. If the
-   * field name refers to a custom dimension or metric, a scope prefix will be
-   * added to the front of the custom dimensions or metric name. For more on
-   * scope prefixes or custom dimensions/metrics, reference the [Google
-   * Analytics Data API documentation]
-   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
-   * Required. Immutable. The dimension name or metric name to filter. If the
-   * field name refers to a custom dimension or metric, a scope prefix will be
-   * added to the front of the custom dimensions or metric name. For more on
-   * scope prefixes or custom dimensions/metrics, reference the [Google
-   * Analytics Data API documentation]
-   * (https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#custom_dimensions).
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - /** - *
-   * Optional. Indicates whether this filter needs dynamic evaluation or not. If
-   * set to true, users join the Audience if they ever met the condition (static
-   * evaluation). If unset or set to false, user evaluation for an Audience is
-   * dynamic; users are added to an Audience when they meet the conditions and
-   * then removed when they no longer meet them.
-   *
-   * This can only be set when Audience scope is ACROSS_ALL_SESSIONS.
-   * 
- * - * bool at_any_point_in_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The atAnyPointInTime. - */ - boolean getAtAnyPointInTime(); - - /** - *
-   * Optional. If set, specifies the time window for which to evaluate data in
-   * number of days. If not set, then audience data is evaluated against
-   * lifetime data (For example, infinite time window).
-   *
-   * For example, if set to 1 day, only the current day's data is evaluated. The
-   * reference point is the current day when at_any_point_in_time is unset or
-   * false.
-   *
-   * It can only be set when Audience scope is ACROSS_ALL_SESSIONS and cannot be
-   * greater than 60 days.
-   * 
- * - * int32 in_any_n_day_period = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The inAnyNDayPeriod. - */ - int getInAnyNDayPeriod(); - - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.OneFilterCase getOneFilterCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java deleted file mode 100644 index b0aa9a0e5c7d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilter.java +++ /dev/null @@ -1,882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A filter that matches events of a single event name. If an event parameter
- * is specified, only the subset of events that match both the single event name
- * and the parameter filter expressions match this event filter.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventFilter} - */ -public final class AudienceEventFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceEventFilter) - AudienceEventFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceEventFilter.newBuilder() to construct. - private AudienceEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceEventFilter() { - eventName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceEventFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceEventFilter.class, com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder.class); - } - - public static final int EVENT_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object eventName_ = ""; - /** - *
-   * Required. Immutable. The name of the event to match against.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - 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(); - eventName_ = s; - return s; - } - } - /** - *
-   * Required. Immutable. The name of the event to match against.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AudienceFilterExpression eventParameterFilterExpression_; - /** - *
-   * Optional. If specified, this filter matches events that match both the
-   * single event name and the parameter filter expressions. AudienceEventFilter
-   * inside the parameter filter expression cannot be set (For example, nested
-   * event filters are not supported). This should be a single and_group of
-   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-   * supported. Also, if it includes a filter for "eventCount", only that one
-   * will be considered; all the other filters will be ignored.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the eventParameterFilterExpression field is set. - */ - @java.lang.Override - public boolean hasEventParameterFilterExpression() { - return eventParameterFilterExpression_ != null; - } - /** - *
-   * Optional. If specified, this filter matches events that match both the
-   * single event name and the parameter filter expressions. AudienceEventFilter
-   * inside the parameter filter expression cannot be set (For example, nested
-   * event filters are not supported). This should be a single and_group of
-   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-   * supported. Also, if it includes a filter for "eventCount", only that one
-   * will be considered; all the other filters will be ignored.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The eventParameterFilterExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getEventParameterFilterExpression() { - return eventParameterFilterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : eventParameterFilterExpression_; - } - /** - *
-   * Optional. If specified, this filter matches events that match both the
-   * single event name and the parameter filter expressions. AudienceEventFilter
-   * inside the parameter filter expression cannot be set (For example, nested
-   * event filters are not supported). This should be a single and_group of
-   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-   * supported. Also, if it includes a filter for "eventCount", only that one
-   * will be considered; all the other filters will be ignored.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getEventParameterFilterExpressionOrBuilder() { - return eventParameterFilterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : eventParameterFilterExpression_; - } - - 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(eventName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); - } - if (eventParameterFilterExpression_ != null) { - output.writeMessage(2, getEventParameterFilterExpression()); - } - 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(eventName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); - } - if (eventParameterFilterExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEventParameterFilterExpression()); - } - 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.admin.v1alpha.AudienceEventFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceEventFilter other = (com.google.analytics.admin.v1alpha.AudienceEventFilter) obj; - - if (!getEventName() - .equals(other.getEventName())) return false; - if (hasEventParameterFilterExpression() != other.hasEventParameterFilterExpression()) return false; - if (hasEventParameterFilterExpression()) { - if (!getEventParameterFilterExpression() - .equals(other.getEventParameterFilterExpression())) 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) + EVENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - if (hasEventParameterFilterExpression()) { - hash = (37 * hash) + EVENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getEventParameterFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceEventFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceEventFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A filter that matches events of a single event name. If an event parameter
-   * is specified, only the subset of events that match both the single event name
-   * and the parameter filter expressions match this event filter.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceEventFilter) - com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceEventFilter.class, com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceEventFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - eventName_ = ""; - eventParameterFilterExpression_ = null; - if (eventParameterFilterExpressionBuilder_ != null) { - eventParameterFilterExpressionBuilder_.dispose(); - eventParameterFilterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilter build() { - com.google.analytics.admin.v1alpha.AudienceEventFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceEventFilter result = new com.google.analytics.admin.v1alpha.AudienceEventFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceEventFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.eventName_ = eventName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventParameterFilterExpression_ = eventParameterFilterExpressionBuilder_ == null - ? eventParameterFilterExpression_ - : eventParameterFilterExpressionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceEventFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceEventFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceEventFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance()) return this; - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasEventParameterFilterExpression()) { - mergeEventParameterFilterExpression(other.getEventParameterFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEventParameterFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object eventName_ = ""; - /** - *
-     * Required. Immutable. The name of the event to match against.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Immutable. The name of the event to match against.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Immutable. The name of the event to match against.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - eventName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The name of the event to match against.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearEventName() { - eventName_ = getDefaultInstance().getEventName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The name of the event to match against.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - eventName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AudienceFilterExpression eventParameterFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> eventParameterFilterExpressionBuilder_; - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the eventParameterFilterExpression field is set. - */ - public boolean hasEventParameterFilterExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The eventParameterFilterExpression. - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getEventParameterFilterExpression() { - if (eventParameterFilterExpressionBuilder_ == null) { - return eventParameterFilterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : eventParameterFilterExpression_; - } else { - return eventParameterFilterExpressionBuilder_.getMessage(); - } - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEventParameterFilterExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (eventParameterFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eventParameterFilterExpression_ = value; - } else { - eventParameterFilterExpressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEventParameterFilterExpression( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { - if (eventParameterFilterExpressionBuilder_ == null) { - eventParameterFilterExpression_ = builderForValue.build(); - } else { - eventParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeEventParameterFilterExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (eventParameterFilterExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - eventParameterFilterExpression_ != null && - eventParameterFilterExpression_ != com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()) { - getEventParameterFilterExpressionBuilder().mergeFrom(value); - } else { - eventParameterFilterExpression_ = value; - } - } else { - eventParameterFilterExpressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearEventParameterFilterExpression() { - bitField0_ = (bitField0_ & ~0x00000002); - eventParameterFilterExpression_ = null; - if (eventParameterFilterExpressionBuilder_ != null) { - eventParameterFilterExpressionBuilder_.dispose(); - eventParameterFilterExpressionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder getEventParameterFilterExpressionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getEventParameterFilterExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getEventParameterFilterExpressionOrBuilder() { - if (eventParameterFilterExpressionBuilder_ != null) { - return eventParameterFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return eventParameterFilterExpression_ == null ? - com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : eventParameterFilterExpression_; - } - } - /** - *
-     * Optional. If specified, this filter matches events that match both the
-     * single event name and the parameter filter expressions. AudienceEventFilter
-     * inside the parameter filter expression cannot be set (For example, nested
-     * event filters are not supported). This should be a single and_group of
-     * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-     * supported. Also, if it includes a filter for "eventCount", only that one
-     * will be considered; all the other filters will be ignored.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> - getEventParameterFilterExpressionFieldBuilder() { - if (eventParameterFilterExpressionBuilder_ == null) { - eventParameterFilterExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( - getEventParameterFilterExpression(), - getParentForChildren(), - isClean()); - eventParameterFilterExpression_ = null; - } - return eventParameterFilterExpressionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceEventFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceEventFilter) - private static final com.google.analytics.admin.v1alpha.AudienceEventFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceEventFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceEventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java deleted file mode 100644 index 796b80f14561..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventFilterOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceEventFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceEventFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Immutable. The name of the event to match against.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - java.lang.String getEventName(); - /** - *
-   * Required. Immutable. The name of the event to match against.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - com.google.protobuf.ByteString - getEventNameBytes(); - - /** - *
-   * Optional. If specified, this filter matches events that match both the
-   * single event name and the parameter filter expressions. AudienceEventFilter
-   * inside the parameter filter expression cannot be set (For example, nested
-   * event filters are not supported). This should be a single and_group of
-   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-   * supported. Also, if it includes a filter for "eventCount", only that one
-   * will be considered; all the other filters will be ignored.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the eventParameterFilterExpression field is set. - */ - boolean hasEventParameterFilterExpression(); - /** - *
-   * Optional. If specified, this filter matches events that match both the
-   * single event name and the parameter filter expressions. AudienceEventFilter
-   * inside the parameter filter expression cannot be set (For example, nested
-   * event filters are not supported). This should be a single and_group of
-   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-   * supported. Also, if it includes a filter for "eventCount", only that one
-   * will be considered; all the other filters will be ignored.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The eventParameterFilterExpression. - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpression getEventParameterFilterExpression(); - /** - *
-   * Optional. If specified, this filter matches events that match both the
-   * single event name and the parameter filter expressions. AudienceEventFilter
-   * inside the parameter filter expression cannot be set (For example, nested
-   * event filters are not supported). This should be a single and_group of
-   * dimension_or_metric_filter or not_expression; ANDs of ORs are not
-   * supported. Also, if it includes a filter for "eventCount", only that one
-   * will be considered; all the other filters will be ignored.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression event_parameter_filter_expression = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getEventParameterFilterExpressionOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java deleted file mode 100644 index fd5b884a11db..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTrigger.java +++ /dev/null @@ -1,846 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Specifies an event to log when a user joins the Audience.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventTrigger} - */ -public final class AudienceEventTrigger extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceEventTrigger) - AudienceEventTriggerOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceEventTrigger.newBuilder() to construct. - private AudienceEventTrigger(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceEventTrigger() { - eventName_ = ""; - logCondition_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceEventTrigger(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceEventTrigger.class, com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder.class); - } - - /** - *
-   * Determines when to log the event.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition} - */ - public enum LogCondition - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Log condition is not specified.
-     * 
- * - * LOG_CONDITION_UNSPECIFIED = 0; - */ - LOG_CONDITION_UNSPECIFIED(0), - /** - *
-     * The event should be logged only when a user is joined.
-     * 
- * - * AUDIENCE_JOINED = 1; - */ - AUDIENCE_JOINED(1), - /** - *
-     * The event should be logged whenever the Audience condition is met, even
-     * if the user is already a member of the Audience.
-     * 
- * - * AUDIENCE_MEMBERSHIP_RENEWED = 2; - */ - AUDIENCE_MEMBERSHIP_RENEWED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Log condition is not specified.
-     * 
- * - * LOG_CONDITION_UNSPECIFIED = 0; - */ - public static final int LOG_CONDITION_UNSPECIFIED_VALUE = 0; - /** - *
-     * The event should be logged only when a user is joined.
-     * 
- * - * AUDIENCE_JOINED = 1; - */ - public static final int AUDIENCE_JOINED_VALUE = 1; - /** - *
-     * The event should be logged whenever the Audience condition is met, even
-     * if the user is already a member of the Audience.
-     * 
- * - * AUDIENCE_MEMBERSHIP_RENEWED = 2; - */ - public static final int AUDIENCE_MEMBERSHIP_RENEWED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LogCondition 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 LogCondition forNumber(int value) { - switch (value) { - case 0: return LOG_CONDITION_UNSPECIFIED; - case 1: return AUDIENCE_JOINED; - case 2: return AUDIENCE_MEMBERSHIP_RENEWED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LogCondition> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LogCondition findValueByNumber(int number) { - return LogCondition.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDescriptor().getEnumTypes().get(0); - } - - private static final LogCondition[] VALUES = values(); - - public static LogCondition valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LogCondition(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition) - } - - public static final int EVENT_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object eventName_ = ""; - /** - *
-   * Required. The event name that will be logged.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - 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(); - eventName_ = s; - return s; - } - } - /** - *
-   * Required. The event name that will be logged.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOG_CONDITION_FIELD_NUMBER = 2; - private int logCondition_ = 0; - /** - *
-   * Required. When to log the event.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for logCondition. - */ - @java.lang.Override public int getLogConditionValue() { - return logCondition_; - } - /** - *
-   * Required. When to log the event.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The logCondition. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition() { - com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.forNumber(logCondition_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); - } - if (logCondition_ != com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.LOG_CONDITION_UNSPECIFIED.getNumber()) { - output.writeEnum(2, logCondition_); - } - 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(eventName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); - } - if (logCondition_ != com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.LOG_CONDITION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, logCondition_); - } - 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.admin.v1alpha.AudienceEventTrigger)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceEventTrigger other = (com.google.analytics.admin.v1alpha.AudienceEventTrigger) obj; - - if (!getEventName() - .equals(other.getEventName())) return false; - if (logCondition_ != other.logCondition_) 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) + EVENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - hash = (37 * hash) + LOG_CONDITION_FIELD_NUMBER; - hash = (53 * hash) + logCondition_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceEventTrigger 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; - } - /** - *
-   * Specifies an event to log when a user joins the Audience.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceEventTrigger} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceEventTrigger) - com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceEventTrigger.class, com.google.analytics.admin.v1alpha.AudienceEventTrigger.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceEventTrigger.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - eventName_ = ""; - logCondition_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventTrigger build() { - com.google.analytics.admin.v1alpha.AudienceEventTrigger result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventTrigger buildPartial() { - com.google.analytics.admin.v1alpha.AudienceEventTrigger result = new com.google.analytics.admin.v1alpha.AudienceEventTrigger(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceEventTrigger result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.eventName_ = eventName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.logCondition_ = logCondition_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceEventTrigger) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceEventTrigger)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceEventTrigger other) { - if (other == com.google.analytics.admin.v1alpha.AudienceEventTrigger.getDefaultInstance()) return this; - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.logCondition_ != 0) { - setLogConditionValue(other.getLogConditionValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - logCondition_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object eventName_ = ""; - /** - *
-     * Required. The event name that will be logged.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The event name that will be logged.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The event name that will be logged.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - eventName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The event name that will be logged.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearEventName() { - eventName_ = getDefaultInstance().getEventName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The event name that will be logged.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - eventName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int logCondition_ = 0; - /** - *
-     * Required. When to log the event.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for logCondition. - */ - @java.lang.Override public int getLogConditionValue() { - return logCondition_; - } - /** - *
-     * Required. When to log the event.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for logCondition to set. - * @return This builder for chaining. - */ - public Builder setLogConditionValue(int value) { - logCondition_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. When to log the event.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The logCondition. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition() { - com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition result = com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.forNumber(logCondition_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition.UNRECOGNIZED : result; - } - /** - *
-     * Required. When to log the event.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The logCondition to set. - * @return This builder for chaining. - */ - public Builder setLogCondition(com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - logCondition_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. When to log the event.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearLogCondition() { - bitField0_ = (bitField0_ & ~0x00000002); - logCondition_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceEventTrigger) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceEventTrigger) - private static final com.google.analytics.admin.v1alpha.AudienceEventTrigger DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceEventTrigger(); - } - - public static com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceEventTrigger parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventTrigger getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java deleted file mode 100644 index 53e85714200a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceEventTriggerOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceEventTriggerOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceEventTrigger) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The event name that will be logged.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventName. - */ - java.lang.String getEventName(); - /** - *
-   * Required. The event name that will be logged.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for eventName. - */ - com.google.protobuf.ByteString - getEventNameBytes(); - - /** - *
-   * Required. When to log the event.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for logCondition. - */ - int getLogConditionValue(); - /** - *
-   * Required. When to log the event.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition log_condition = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The logCondition. - */ - com.google.analytics.admin.v1alpha.AudienceEventTrigger.LogCondition getLogCondition(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java deleted file mode 100644 index cbf255dbcee3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClause.java +++ /dev/null @@ -1,1285 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A clause for defining either a simple or sequence filter. A filter can be
- * inclusive (For example, users satisfying the filter clause are included in
- * the Audience) or exclusive (For example, users satisfying the filter clause
- * are excluded from the Audience).
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterClause} - */ -public final class AudienceFilterClause extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterClause) - AudienceFilterClauseOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceFilterClause.newBuilder() to construct. - private AudienceFilterClause(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceFilterClause() { - clauseType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceFilterClause(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceFilterClause.class, com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder.class); - } - - /** - *
-   * Specifies whether this is an include or exclude filter clause.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType} - */ - public enum AudienceClauseType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unspecified clause type.
-     * 
- * - * AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; - */ - AUDIENCE_CLAUSE_TYPE_UNSPECIFIED(0), - /** - *
-     * Users will be included in the Audience if the filter clause is met.
-     * 
- * - * INCLUDE = 1; - */ - INCLUDE(1), - /** - *
-     * Users will be excluded from the Audience if the filter clause is met.
-     * 
- * - * EXCLUDE = 2; - */ - EXCLUDE(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unspecified clause type.
-     * 
- * - * AUDIENCE_CLAUSE_TYPE_UNSPECIFIED = 0; - */ - public static final int AUDIENCE_CLAUSE_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Users will be included in the Audience if the filter clause is met.
-     * 
- * - * INCLUDE = 1; - */ - public static final int INCLUDE_VALUE = 1; - /** - *
-     * Users will be excluded from the Audience if the filter clause is met.
-     * 
- * - * EXCLUDE = 2; - */ - public static final int EXCLUDE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static AudienceClauseType 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 AudienceClauseType forNumber(int value) { - switch (value) { - case 0: return AUDIENCE_CLAUSE_TYPE_UNSPECIFIED; - case 1: return INCLUDE; - case 2: return EXCLUDE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AudienceClauseType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AudienceClauseType findValueByNumber(int number) { - return AudienceClauseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceFilterClause.getDescriptor().getEnumTypes().get(0); - } - - private static final AudienceClauseType[] VALUES = values(); - - public static AudienceClauseType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AudienceClauseType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType) - } - - private int filterCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object filter_; - public enum FilterCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SIMPLE_FILTER(2), - SEQUENCE_FILTER(3), - FILTER_NOT_SET(0); - private final int value; - private FilterCase(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 FilterCase valueOf(int value) { - return forNumber(value); - } - - public static FilterCase forNumber(int value) { - switch (value) { - case 2: return SIMPLE_FILTER; - case 3: return SEQUENCE_FILTER; - case 0: return FILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); - } - - public static final int SIMPLE_FILTER_FIELD_NUMBER = 2; - /** - *
-   * A simple filter that a user must satisfy to be a member of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return Whether the simpleFilter field is set. - */ - @java.lang.Override - public boolean hasSimpleFilter() { - return filterCase_ == 2; - } - /** - *
-   * A simple filter that a user must satisfy to be a member of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return The simpleFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter() { - if (filterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); - } - /** - *
-   * A simple filter that a user must satisfy to be a member of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder getSimpleFilterOrBuilder() { - if (filterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); - } - - public static final int SEQUENCE_FILTER_FIELD_NUMBER = 3; - /** - *
-   * Filters that must occur in a specific order for the user to be a member
-   * of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return Whether the sequenceFilter field is set. - */ - @java.lang.Override - public boolean hasSequenceFilter() { - return filterCase_ == 3; - } - /** - *
-   * Filters that must occur in a specific order for the user to be a member
-   * of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return The sequenceFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter() { - if (filterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); - } - /** - *
-   * Filters that must occur in a specific order for the user to be a member
-   * of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder getSequenceFilterOrBuilder() { - if (filterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); - } - - public static final int CLAUSE_TYPE_FIELD_NUMBER = 1; - private int clauseType_ = 0; - /** - *
-   * Required. Specifies whether this is an include or exclude filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for clauseType. - */ - @java.lang.Override public int getClauseTypeValue() { - return clauseType_; - } - /** - *
-   * Required. Specifies whether this is an include or exclude filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The clauseType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType getClauseType() { - com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.forNumber(clauseType_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (clauseType_ != com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.AUDIENCE_CLAUSE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, clauseType_); - } - if (filterCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_); - } - if (filterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (clauseType_ != com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.AUDIENCE_CLAUSE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, clauseType_); - } - if (filterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_); - } - if (filterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_); - } - 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.admin.v1alpha.AudienceFilterClause)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceFilterClause other = (com.google.analytics.admin.v1alpha.AudienceFilterClause) obj; - - if (clauseType_ != other.clauseType_) return false; - if (!getFilterCase().equals(other.getFilterCase())) return false; - switch (filterCase_) { - case 2: - if (!getSimpleFilter() - .equals(other.getSimpleFilter())) return false; - break; - case 3: - if (!getSequenceFilter() - .equals(other.getSequenceFilter())) 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(); - hash = (37 * hash) + CLAUSE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + clauseType_; - switch (filterCase_) { - case 2: - hash = (37 * hash) + SIMPLE_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSimpleFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + SEQUENCE_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSequenceFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterClause parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceFilterClause prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A clause for defining either a simple or sequence filter. A filter can be
-   * inclusive (For example, users satisfying the filter clause are included in
-   * the Audience) or exclusive (For example, users satisfying the filter clause
-   * are excluded from the Audience).
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterClause} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterClause) - com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceFilterClause.class, com.google.analytics.admin.v1alpha.AudienceFilterClause.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceFilterClause.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (simpleFilterBuilder_ != null) { - simpleFilterBuilder_.clear(); - } - if (sequenceFilterBuilder_ != null) { - sequenceFilterBuilder_.clear(); - } - clauseType_ = 0; - filterCase_ = 0; - filter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterClause build() { - com.google.analytics.admin.v1alpha.AudienceFilterClause result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterClause buildPartial() { - com.google.analytics.admin.v1alpha.AudienceFilterClause result = new com.google.analytics.admin.v1alpha.AudienceFilterClause(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceFilterClause result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.clauseType_ = clauseType_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AudienceFilterClause result) { - result.filterCase_ = filterCase_; - result.filter_ = this.filter_; - if (filterCase_ == 2 && - simpleFilterBuilder_ != null) { - result.filter_ = simpleFilterBuilder_.build(); - } - if (filterCase_ == 3 && - sequenceFilterBuilder_ != null) { - result.filter_ = sequenceFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceFilterClause) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterClause)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceFilterClause other) { - if (other == com.google.analytics.admin.v1alpha.AudienceFilterClause.getDefaultInstance()) return this; - if (other.clauseType_ != 0) { - setClauseTypeValue(other.getClauseTypeValue()); - } - switch (other.getFilterCase()) { - case SIMPLE_FILTER: { - mergeSimpleFilter(other.getSimpleFilter()); - break; - } - case SEQUENCE_FILTER: { - mergeSequenceFilter(other.getSequenceFilter()); - break; - } - case FILTER_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - clauseType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 8 - case 18: { - input.readMessage( - getSimpleFilterFieldBuilder().getBuilder(), - extensionRegistry); - filterCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getSequenceFilterFieldBuilder().getBuilder(), - extensionRegistry); - filterCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int filterCase_ = 0; - private java.lang.Object filter_; - public FilterCase - getFilterCase() { - return FilterCase.forNumber( - filterCase_); - } - - public Builder clearFilter() { - filterCase_ = 0; - filter_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSimpleFilter, com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder> simpleFilterBuilder_; - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return Whether the simpleFilter field is set. - */ - @java.lang.Override - public boolean hasSimpleFilter() { - return filterCase_ == 2; - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return The simpleFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter() { - if (simpleFilterBuilder_ == null) { - if (filterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); - } else { - if (filterCase_ == 2) { - return simpleFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); - } - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - public Builder setSimpleFilter(com.google.analytics.admin.v1alpha.AudienceSimpleFilter value) { - if (simpleFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - simpleFilterBuilder_.setMessage(value); - } - filterCase_ = 2; - return this; - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - public Builder setSimpleFilter( - com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder builderForValue) { - if (simpleFilterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - simpleFilterBuilder_.setMessage(builderForValue.build()); - } - filterCase_ = 2; - return this; - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - public Builder mergeSimpleFilter(com.google.analytics.admin.v1alpha.AudienceSimpleFilter value) { - if (simpleFilterBuilder_ == null) { - if (filterCase_ == 2 && - filter_ != com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance()) { - filter_ = com.google.analytics.admin.v1alpha.AudienceSimpleFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_) - .mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - if (filterCase_ == 2) { - simpleFilterBuilder_.mergeFrom(value); - } else { - simpleFilterBuilder_.setMessage(value); - } - } - filterCase_ = 2; - return this; - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - public Builder clearSimpleFilter() { - if (simpleFilterBuilder_ == null) { - if (filterCase_ == 2) { - filterCase_ = 0; - filter_ = null; - onChanged(); - } - } else { - if (filterCase_ == 2) { - filterCase_ = 0; - filter_ = null; - } - simpleFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - public com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder getSimpleFilterBuilder() { - return getSimpleFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder getSimpleFilterOrBuilder() { - if ((filterCase_ == 2) && (simpleFilterBuilder_ != null)) { - return simpleFilterBuilder_.getMessageOrBuilder(); - } else { - if (filterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); - } - } - /** - *
-     * A simple filter that a user must satisfy to be a member of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSimpleFilter, com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder> - getSimpleFilterFieldBuilder() { - if (simpleFilterBuilder_ == null) { - if (!(filterCase_ == 2)) { - filter_ = com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); - } - simpleFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSimpleFilter, com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder, com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) filter_, - getParentForChildren(), - isClean()); - filter_ = null; - } - filterCase_ = 2; - onChanged(); - return simpleFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSequenceFilter, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder> sequenceFilterBuilder_; - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return Whether the sequenceFilter field is set. - */ - @java.lang.Override - public boolean hasSequenceFilter() { - return filterCase_ == 3; - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return The sequenceFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter() { - if (sequenceFilterBuilder_ == null) { - if (filterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); - } else { - if (filterCase_ == 3) { - return sequenceFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); - } - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - public Builder setSequenceFilter(com.google.analytics.admin.v1alpha.AudienceSequenceFilter value) { - if (sequenceFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - onChanged(); - } else { - sequenceFilterBuilder_.setMessage(value); - } - filterCase_ = 3; - return this; - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - public Builder setSequenceFilter( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder builderForValue) { - if (sequenceFilterBuilder_ == null) { - filter_ = builderForValue.build(); - onChanged(); - } else { - sequenceFilterBuilder_.setMessage(builderForValue.build()); - } - filterCase_ = 3; - return this; - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - public Builder mergeSequenceFilter(com.google.analytics.admin.v1alpha.AudienceSequenceFilter value) { - if (sequenceFilterBuilder_ == null) { - if (filterCase_ == 3 && - filter_ != com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance()) { - filter_ = com.google.analytics.admin.v1alpha.AudienceSequenceFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_) - .mergeFrom(value).buildPartial(); - } else { - filter_ = value; - } - onChanged(); - } else { - if (filterCase_ == 3) { - sequenceFilterBuilder_.mergeFrom(value); - } else { - sequenceFilterBuilder_.setMessage(value); - } - } - filterCase_ = 3; - return this; - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - public Builder clearSequenceFilter() { - if (sequenceFilterBuilder_ == null) { - if (filterCase_ == 3) { - filterCase_ = 0; - filter_ = null; - onChanged(); - } - } else { - if (filterCase_ == 3) { - filterCase_ = 0; - filter_ = null; - } - sequenceFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder getSequenceFilterBuilder() { - return getSequenceFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder getSequenceFilterOrBuilder() { - if ((filterCase_ == 3) && (sequenceFilterBuilder_ != null)) { - return sequenceFilterBuilder_.getMessageOrBuilder(); - } else { - if (filterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_; - } - return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); - } - } - /** - *
-     * Filters that must occur in a specific order for the user to be a member
-     * of the Audience.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSequenceFilter, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder> - getSequenceFilterFieldBuilder() { - if (sequenceFilterBuilder_ == null) { - if (!(filterCase_ == 3)) { - filter_ = com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); - } - sequenceFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSequenceFilter, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder, com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) filter_, - getParentForChildren(), - isClean()); - filter_ = null; - } - filterCase_ = 3; - onChanged(); - return sequenceFilterBuilder_; - } - - private int clauseType_ = 0; - /** - *
-     * Required. Specifies whether this is an include or exclude filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for clauseType. - */ - @java.lang.Override public int getClauseTypeValue() { - return clauseType_; - } - /** - *
-     * Required. Specifies whether this is an include or exclude filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for clauseType to set. - * @return This builder for chaining. - */ - public Builder setClauseTypeValue(int value) { - clauseType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. Specifies whether this is an include or exclude filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The clauseType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType getClauseType() { - com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType result = com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.forNumber(clauseType_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType.UNRECOGNIZED : result; - } - /** - *
-     * Required. Specifies whether this is an include or exclude filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The clauseType to set. - * @return This builder for chaining. - */ - public Builder setClauseType(com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - clauseType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Specifies whether this is an include or exclude filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearClauseType() { - bitField0_ = (bitField0_ & ~0x00000004); - clauseType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceFilterClause) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterClause) - private static final com.google.analytics.admin.v1alpha.AudienceFilterClause DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterClause(); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceFilterClause parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterClause getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java deleted file mode 100644 index a97d4d7e3491..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterClauseOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceFilterClauseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterClause) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A simple filter that a user must satisfy to be a member of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return Whether the simpleFilter field is set. - */ - boolean hasSimpleFilter(); - /** - *
-   * A simple filter that a user must satisfy to be a member of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - * @return The simpleFilter. - */ - com.google.analytics.admin.v1alpha.AudienceSimpleFilter getSimpleFilter(); - /** - *
-   * A simple filter that a user must satisfy to be a member of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSimpleFilter simple_filter = 2; - */ - com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder getSimpleFilterOrBuilder(); - - /** - *
-   * Filters that must occur in a specific order for the user to be a member
-   * of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return Whether the sequenceFilter field is set. - */ - boolean hasSequenceFilter(); - /** - *
-   * Filters that must occur in a specific order for the user to be a member
-   * of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - * @return The sequenceFilter. - */ - com.google.analytics.admin.v1alpha.AudienceSequenceFilter getSequenceFilter(); - /** - *
-   * Filters that must occur in a specific order for the user to be a member
-   * of the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceSequenceFilter sequence_filter = 3; - */ - com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder getSequenceFilterOrBuilder(); - - /** - *
-   * Required. Specifies whether this is an include or exclude filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for clauseType. - */ - int getClauseTypeValue(); - /** - *
-   * Required. Specifies whether this is an include or exclude filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The clauseType. - */ - com.google.analytics.admin.v1alpha.AudienceFilterClause.AudienceClauseType getClauseType(); - - com.google.analytics.admin.v1alpha.AudienceFilterClause.FilterCase getFilterCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java deleted file mode 100644 index 1d4bf33e1944..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpression.java +++ /dev/null @@ -1,1852 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A logical expression of Audience dimension, metric, or event filters.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpression} - */ -public final class AudienceFilterExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterExpression) - AudienceFilterExpressionOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceFilterExpression.newBuilder() to construct. - private AudienceFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceFilterExpression() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceFilterExpression(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.class, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder.class); - } - - private int exprCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object expr_; - public enum ExprCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AND_GROUP(1), - OR_GROUP(2), - NOT_EXPRESSION(3), - DIMENSION_OR_METRIC_FILTER(4), - EVENT_FILTER(5), - EXPR_NOT_SET(0); - private final int value; - private ExprCase(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 ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: return AND_GROUP; - case 2: return OR_GROUP; - case 3: return NOT_EXPRESSION; - case 4: return DIMENSION_OR_METRIC_FILTER; - case 5: return EVENT_FILTER; - case 0: return EXPR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public static final int AND_GROUP_FIELD_NUMBER = 1; - /** - *
-   * A list of expressions to be AND’ed together. It can only contain
-   * AudienceFilterExpressions with or_group. This must be set for the top
-   * level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - *
-   * A list of expressions to be AND’ed together. It can only contain
-   * AudienceFilterExpressions with or_group. This must be set for the top
-   * level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * A list of expressions to be AND’ed together. It can only contain
-   * AudienceFilterExpressions with or_group. This must be set for the top
-   * level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - *
-   * A list of expressions to OR’ed together. It cannot contain
-   * AudienceFilterExpressions with and_group or or_group.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - *
-   * A list of expressions to OR’ed together. It cannot contain
-   * AudienceFilterExpressions with and_group or or_group.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * A list of expressions to OR’ed together. It cannot contain
-   * AudienceFilterExpressions with and_group or or_group.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - *
-   * A filter expression to be NOT'ed (For example, inverted, complemented).
-   * It can only include a dimension_or_metric_filter. This cannot be set on
-   * the top level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - *
-   * A filter expression to be NOT'ed (For example, inverted, complemented).
-   * It can only include a dimension_or_metric_filter. This cannot be set on
-   * the top level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); - } - /** - *
-   * A filter expression to be NOT'ed (For example, inverted, complemented).
-   * It can only include a dimension_or_metric_filter. This cannot be set on
-   * the top level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); - } - - public static final int DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER = 4; - /** - *
-   * A filter on a single dimension or metric. This cannot be set on the top
-   * level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @return Whether the dimensionOrMetricFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionOrMetricFilter() { - return exprCase_ == 4; - } - /** - *
-   * A filter on a single dimension or metric. This cannot be set on the top
-   * level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @return The dimensionOrMetricFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter getDimensionOrMetricFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); - } - /** - *
-   * A filter on a single dimension or metric. This cannot be set on the top
-   * level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder getDimensionOrMetricFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); - } - - public static final int EVENT_FILTER_FIELD_NUMBER = 5; - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @return Whether the eventFilter field is set. - */ - @java.lang.Override - public boolean hasEventFilter() { - return exprCase_ == 5; - } - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @return The eventFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter() { - if (exprCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); - } - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level AudienceFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder getEventFilterOrBuilder() { - if (exprCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (exprCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_); - } - if (exprCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_); - } - if (exprCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_); - } - if (exprCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_); - } - 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.admin.v1alpha.AudienceFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceFilterExpression other = (com.google.analytics.admin.v1alpha.AudienceFilterExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getAndGroup() - .equals(other.getAndGroup())) return false; - break; - case 2: - if (!getOrGroup() - .equals(other.getOrGroup())) return false; - break; - case 3: - if (!getNotExpression() - .equals(other.getNotExpression())) return false; - break; - case 4: - if (!getDimensionOrMetricFilter() - .equals(other.getDimensionOrMetricFilter())) return false; - break; - case 5: - if (!getEventFilter() - .equals(other.getEventFilter())) 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 (exprCase_) { - case 1: - hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getAndGroup().hashCode(); - break; - case 2: - hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getOrGroup().hashCode(); - break; - case 3: - hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getNotExpression().hashCode(); - break; - case 4: - hash = (37 * hash) + DIMENSION_OR_METRIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionOrMetricFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + EVENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getEventFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A logical expression of Audience dimension, metric, or event filters.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterExpression) - com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.class, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (dimensionOrMetricFilterBuilder_ != null) { - dimensionOrMetricFilterBuilder_.clear(); - } - if (eventFilterBuilder_ != null) { - eventFilterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression build() { - com.google.analytics.admin.v1alpha.AudienceFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression buildPartial() { - com.google.analytics.admin.v1alpha.AudienceFilterExpression result = new com.google.analytics.admin.v1alpha.AudienceFilterExpression(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceFilterExpression result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.AudienceFilterExpression result) { - result.exprCase_ = exprCase_; - result.expr_ = this.expr_; - if (exprCase_ == 1 && - andGroupBuilder_ != null) { - result.expr_ = andGroupBuilder_.build(); - } - if (exprCase_ == 2 && - orGroupBuilder_ != null) { - result.expr_ = orGroupBuilder_.build(); - } - if (exprCase_ == 3 && - notExpressionBuilder_ != null) { - result.expr_ = notExpressionBuilder_.build(); - } - if (exprCase_ == 4 && - dimensionOrMetricFilterBuilder_ != null) { - result.expr_ = dimensionOrMetricFilterBuilder_.build(); - } - if (exprCase_ == 5 && - eventFilterBuilder_ != null) { - result.expr_ = eventFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceFilterExpression) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceFilterExpression other) { - if (other == com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()) return this; - switch (other.getExprCase()) { - case AND_GROUP: { - mergeAndGroup(other.getAndGroup()); - break; - } - case OR_GROUP: { - mergeOrGroup(other.getOrGroup()); - break; - } - case NOT_EXPRESSION: { - mergeNotExpression(other.getNotExpression()); - break; - } - case DIMENSION_OR_METRIC_FILTER: { - mergeDimensionOrMetricFilter(other.getDimensionOrMetricFilter()); - break; - } - case EVENT_FILTER: { - mergeEventFilter(other.getEventFilter()); - break; - } - case EXPR_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAndGroupFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getOrGroupFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getNotExpressionFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getDimensionOrMetricFilterFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getEventFilterFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int exprCase_ = 0; - private java.lang.Object expr_; - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> andGroupBuilder_; - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 && - expr_ != com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - public Builder clearAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - andGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * AudienceFilterExpressions with or_group. This must be set for the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> orGroupBuilder_; - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 && - expr_ != com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - public Builder clearOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - orGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * AudienceFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> notExpressionBuilder_; - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - public Builder setNotExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - public Builder mergeNotExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 && - expr_ != com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpression.newBuilder((com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - public Builder clearNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - } - notExpressionBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (For example, inverted, complemented).
-     * It can only include a dimension_or_metric_filter. This cannot be set on
-     * the top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder> dimensionOrMetricFilterBuilder_; - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @return Whether the dimensionOrMetricFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionOrMetricFilter() { - return exprCase_ == 4; - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - * @return The dimensionOrMetricFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter getDimensionOrMetricFilter() { - if (dimensionOrMetricFilterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return dimensionOrMetricFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - public Builder setDimensionOrMetricFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter value) { - if (dimensionOrMetricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - dimensionOrMetricFilterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - public Builder setDimensionOrMetricFilter( - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder builderForValue) { - if (dimensionOrMetricFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - dimensionOrMetricFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - public Builder mergeDimensionOrMetricFilter(com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter value) { - if (dimensionOrMetricFilterBuilder_ == null) { - if (exprCase_ == 4 && - expr_ != com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - dimensionOrMetricFilterBuilder_.mergeFrom(value); - } else { - dimensionOrMetricFilterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - public Builder clearDimensionOrMetricFilter() { - if (dimensionOrMetricFilterBuilder_ == null) { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - } - dimensionOrMetricFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder getDimensionOrMetricFilterBuilder() { - return getDimensionOrMetricFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder getDimensionOrMetricFilterOrBuilder() { - if ((exprCase_ == 4) && (dimensionOrMetricFilterBuilder_ != null)) { - return dimensionOrMetricFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter on a single dimension or metric. This cannot be set on the top
-     * level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter dimension_or_metric_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder> - getDimensionOrMetricFilterFieldBuilder() { - if (dimensionOrMetricFilterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.getDefaultInstance(); - } - dimensionOrMetricFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter.Builder, com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceDimensionOrMetricFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 4; - onChanged(); - return dimensionOrMetricFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceEventFilter, com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder> eventFilterBuilder_; - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @return Whether the eventFilter field is set. - */ - @java.lang.Override - public boolean hasEventFilter() { - return exprCase_ == 5; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - * @return The eventFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilter getEventFilter() { - if (eventFilterBuilder_ == null) { - if (exprCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); - } else { - if (exprCase_ == 5) { - return eventFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); - } - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - public Builder setEventFilter(com.google.analytics.admin.v1alpha.AudienceEventFilter value) { - if (eventFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - eventFilterBuilder_.setMessage(value); - } - exprCase_ = 5; - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - public Builder setEventFilter( - com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder builderForValue) { - if (eventFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - eventFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 5; - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - public Builder mergeEventFilter(com.google.analytics.admin.v1alpha.AudienceEventFilter value) { - if (eventFilterBuilder_ == null) { - if (exprCase_ == 5 && - expr_ != com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.AudienceEventFilter.newBuilder((com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 5) { - eventFilterBuilder_.mergeFrom(value); - } else { - eventFilterBuilder_.setMessage(value); - } - } - exprCase_ = 5; - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - public Builder clearEventFilter() { - if (eventFilterBuilder_ == null) { - if (exprCase_ == 5) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 5) { - exprCase_ = 0; - expr_ = null; - } - eventFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder getEventFilterBuilder() { - return getEventFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder getEventFilterOrBuilder() { - if ((exprCase_ == 5) && (eventFilterBuilder_ != null)) { - return eventFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 5) { - return (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_; - } - return com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); - } - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level AudienceFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceEventFilter event_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceEventFilter, com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder> - getEventFilterFieldBuilder() { - if (eventFilterBuilder_ == null) { - if (!(exprCase_ == 5)) { - expr_ = com.google.analytics.admin.v1alpha.AudienceEventFilter.getDefaultInstance(); - } - eventFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceEventFilter, com.google.analytics.admin.v1alpha.AudienceEventFilter.Builder, com.google.analytics.admin.v1alpha.AudienceEventFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.AudienceEventFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 5; - onChanged(); - return eventFilterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterExpression) - private static final com.google.analytics.admin.v1alpha.AudienceFilterExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterExpression(); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java deleted file mode 100644 index 0b84b411697a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A list of Audience filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpressionList} - */ -public final class AudienceFilterExpressionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceFilterExpressionList) - AudienceFilterExpressionListOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceFilterExpressionList.newBuilder() to construct. - private AudienceFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceFilterExpressionList() { - filterExpressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceFilterExpressionList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.class, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder.class); - } - - public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List filterExpressions_; - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public java.util.List getFilterExpressionsList() { - return filterExpressions_; - } - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public java.util.List - getFilterExpressionsOrBuilderList() { - return filterExpressions_; - } - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public int getFilterExpressionsCount() { - return filterExpressions_.size(); - } - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions(int index) { - return filterExpressions_.get(index); - } - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - return filterExpressions_.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 < filterExpressions_.size(); i++) { - output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, filterExpressions_.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.admin.v1alpha.AudienceFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList other = (com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) obj; - - if (!getFilterExpressionsList() - .equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { - hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceFilterExpressionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceFilterExpressionList) - com.google.analytics.admin.v1alpha.AudienceFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.class, com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - } else { - filterExpressions_ = null; - filterExpressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList build() { - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList buildPartial() { - com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result = new com.google.analytics.admin.v1alpha.AudienceFilterExpressionList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result) { - if (filterExpressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filterExpressions_ = filterExpressions_; - } else { - result.filterExpressions_ = filterExpressionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceFilterExpressionList) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceFilterExpressionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceFilterExpressionList other) { - if (other == com.google.analytics.admin.v1alpha.AudienceFilterExpressionList.getDefaultInstance()) return this; - if (filterExpressionsBuilder_ == null) { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressions_.isEmpty()) { - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFilterExpressionsIsMutable(); - filterExpressions_.addAll(other.filterExpressions_); - } - onChanged(); - } - } else { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressionsBuilder_.isEmpty()) { - filterExpressionsBuilder_.dispose(); - filterExpressionsBuilder_ = null; - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - filterExpressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFilterExpressionsFieldBuilder() : null; - } else { - filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AudienceFilterExpression m = - input.readMessage( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.parser(), - extensionRegistry); - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(m); - } else { - filterExpressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List filterExpressions_ = - java.util.Collections.emptyList(); - private void ensureFilterExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = new java.util.ArrayList(filterExpressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> filterExpressionsBuilder_; - - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public java.util.List getFilterExpressionsList() { - if (filterExpressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(filterExpressions_); - } else { - return filterExpressionsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public int getFilterExpressionsCount() { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.size(); - } else { - return filterExpressionsBuilder_.getCount(); - } - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); - } else { - return filterExpressionsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder addAllFilterExpressions( - java.lang.Iterable values) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filterExpressions_); - onChanged(); - } else { - filterExpressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder clearFilterExpressions() { - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filterExpressionsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public Builder removeFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.remove(index); - onChanged(); - } else { - filterExpressionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder getFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); } else { - return filterExpressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public java.util.List - getFilterExpressionsOrBuilderList() { - if (filterExpressionsBuilder_ != null) { - return filterExpressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filterExpressions_); - } - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder addFilterExpressionsBuilder() { - return getFilterExpressionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder addFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of Audience filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - public java.util.List - getFilterExpressionsBuilderList() { - return getFilterExpressionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> - getFilterExpressionsFieldBuilder() { - if (filterExpressionsBuilder_ == null) { - filterExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( - filterExpressions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - filterExpressions_ = null; - } - return filterExpressionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceFilterExpressionList) - private static final com.google.analytics.admin.v1alpha.AudienceFilterExpressionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceFilterExpressionList(); - } - - public static com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java deleted file mode 100644 index 842dfaee86c9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceFilterExpressionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - java.util.List - getFilterExpressionsList(); - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpressions(int index); - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - int getFilterExpressionsCount(); - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - java.util.List - getFilterExpressionsOrBuilderList(); - /** - *
-   * A list of Audience filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expressions = 1; - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java deleted file mode 100644 index ef99706fe160..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceFilterScope.java +++ /dev/null @@ -1,173 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Specifies how to evaluate users for joining an Audience.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.AudienceFilterScope} - */ -public enum AudienceFilterScope - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Scope is not specified.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; - */ - AUDIENCE_FILTER_SCOPE_UNSPECIFIED(0), - /** - *
-   * User joins the Audience if the filter condition is met within one
-   * event.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; - */ - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT(1), - /** - *
-   * User joins the Audience if the filter condition is met within one
-   * session.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; - */ - AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION(2), - /** - *
-   * User joins the Audience if the filter condition is met by any event
-   * across any session.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; - */ - AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Scope is not specified.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_UNSPECIFIED = 0; - */ - public static final int AUDIENCE_FILTER_SCOPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * User joins the Audience if the filter condition is met within one
-   * event.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT = 1; - */ - public static final int AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT_VALUE = 1; - /** - *
-   * User joins the Audience if the filter condition is met within one
-   * session.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION = 2; - */ - public static final int AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION_VALUE = 2; - /** - *
-   * User joins the Audience if the filter condition is met by any event
-   * across any session.
-   * 
- * - * AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS = 3; - */ - public static final int AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS_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 AudienceFilterScope 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 AudienceFilterScope forNumber(int value) { - switch (value) { - case 0: return AUDIENCE_FILTER_SCOPE_UNSPECIFIED; - case 1: return AUDIENCE_FILTER_SCOPE_WITHIN_SAME_EVENT; - case 2: return AUDIENCE_FILTER_SCOPE_WITHIN_SAME_SESSION; - case 3: return AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIONS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - AudienceFilterScope> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public AudienceFilterScope findValueByNumber(int number) { - return AudienceFilterScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor().getEnumTypes().get(0); - } - - private static final AudienceFilterScope[] VALUES = values(); - - public static AudienceFilterScope valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private AudienceFilterScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.AudienceFilterScope) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java deleted file mode 100644 index efb648f5e050..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceOrBuilder.java +++ /dev/null @@ -1,195 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.Audience) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The resource name for this Audience resource.
-   * Format: properties/{propertyId}/audiences/{audienceId}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. The resource name for this Audience resource.
-   * Format: properties/{propertyId}/audiences/{audienceId}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The display name of the Audience.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. The display name of the Audience.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Required. The description of the Audience.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Required. The description of the Audience.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Required. Immutable. The duration a user should stay in an Audience. It
-   * cannot be set to more than 540 days.
-   * 
- * - * int32 membership_duration_days = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The membershipDurationDays. - */ - int getMembershipDurationDays(); - - /** - *
-   * Output only. It is automatically set by GA to false if this is an NPA
-   * Audience and is excluded from ads personalization.
-   * 
- * - * bool ads_personalization_enabled = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The adsPersonalizationEnabled. - */ - boolean getAdsPersonalizationEnabled(); - - /** - *
-   * Optional. Specifies an event to log when a user joins the Audience. If not
-   * set, no event is logged when a user joins the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the eventTrigger field is set. - */ - boolean hasEventTrigger(); - /** - *
-   * Optional. Specifies an event to log when a user joins the Audience. If not
-   * set, no event is logged when a user joins the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The eventTrigger. - */ - com.google.analytics.admin.v1alpha.AudienceEventTrigger getEventTrigger(); - /** - *
-   * Optional. Specifies an event to log when a user joins the Audience. If not
-   * set, no event is logged when a user joins the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceEventTrigger event_trigger = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.analytics.admin.v1alpha.AudienceEventTriggerOrBuilder getEventTriggerOrBuilder(); - - /** - *
-   * Immutable. Specifies how long an exclusion lasts for users that meet the
-   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-   * ignored when there is no EXCLUDE filter clause in the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for exclusionDurationMode. - */ - int getExclusionDurationModeValue(); - /** - *
-   * Immutable. Specifies how long an exclusion lasts for users that meet the
-   * exclusion filter. It is applied to all EXCLUDE filter clauses and is
-   * ignored when there is no EXCLUDE filter clause in the Audience.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode exclusion_duration_mode = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The exclusionDurationMode. - */ - com.google.analytics.admin.v1alpha.Audience.AudienceExclusionDurationMode getExclusionDurationMode(); - - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - java.util.List - getFilterClausesList(); - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - com.google.analytics.admin.v1alpha.AudienceFilterClause getFilterClauses(int index); - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - int getFilterClausesCount(); - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - java.util.List - getFilterClausesOrBuilderList(); - /** - *
-   * Required. Immutable. Unordered list. Filter clauses that define the
-   * Audience. All clauses will be AND’ed together.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceFilterClause filter_clauses = 8 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - com.google.analytics.admin.v1alpha.AudienceFilterClauseOrBuilder getFilterClausesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java deleted file mode 100644 index 88d7e20818de..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceProto.java +++ /dev/null @@ -1,333 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public final class AudienceProto { - private AudienceProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_Audience_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/analytics/admin/v1alpha/audienc" + - "e.proto\022\036google.analytics.admin.v1alpha\032" + - "\037google/api/field_behavior.proto\032\031google" + - "/api/resource.proto\032\036google/protobuf/dur" + - "ation.proto\"\206\014\n\037AudienceDimensionOrMetri" + - "cFilter\022e\n\rstring_filter\030\002 \001(\0132L.google." + - "analytics.admin.v1alpha.AudienceDimensio" + - "nOrMetricFilter.StringFilterH\000\022f\n\016in_lis" + - "t_filter\030\003 \001(\0132L.google.analytics.admin." + - "v1alpha.AudienceDimensionOrMetricFilter." + - "InListFilterH\000\022g\n\016numeric_filter\030\004 \001(\0132M" + - ".google.analytics.admin.v1alpha.Audience" + - "DimensionOrMetricFilter.NumericFilterH\000\022" + - "g\n\016between_filter\030\005 \001(\0132M.google.analyti" + - "cs.admin.v1alpha.AudienceDimensionOrMetr" + - "icFilter.BetweenFilterH\000\022\031\n\nfield_name\030\001" + - " \001(\tB\005\342A\002\002\005\022\"\n\024at_any_point_in_time\030\006 \001(" + - "\010B\004\342A\001\001\022!\n\023in_any_n_day_period\030\007 \001(\005B\004\342A" + - "\001\001\032\246\002\n\014StringFilter\022p\n\nmatch_type\030\001 \001(\0162" + - "V.google.analytics.admin.v1alpha.Audienc" + - "eDimensionOrMetricFilter.StringFilter.Ma" + - "tchTypeB\004\342A\001\002\022\023\n\005value\030\002 \001(\tB\004\342A\001\002\022\034\n\016ca" + - "se_sensitive\030\003 \001(\010B\004\342A\001\001\"q\n\tMatchType\022\032\n" + - "\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013" + - "BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS" + - "\020\004\022\017\n\013FULL_REGEXP\020\005\032B\n\014InListFilter\022\024\n\006v" + - "alues\030\001 \003(\tB\004\342A\001\002\022\034\n\016case_sensitive\030\002 \001(" + - "\010B\004\342A\001\001\032J\n\014NumericValue\022\025\n\013int64_value\030\001" + - " \001(\003H\000\022\026\n\014double_value\030\002 \001(\001H\000B\013\n\tone_va" + - "lue\032\270\002\n\rNumericFilter\022p\n\toperation\030\001 \001(\016" + - "2W.google.analytics.admin.v1alpha.Audien" + - "ceDimensionOrMetricFilter.NumericFilter." + - "OperationB\004\342A\001\002\022a\n\005value\030\002 \001(\0132L.google." + - "analytics.admin.v1alpha.AudienceDimensio" + - "nOrMetricFilter.NumericValueB\004\342A\001\002\"R\n\tOp" + - "eration\022\031\n\025OPERATION_UNSPECIFIED\020\000\022\t\n\005EQ" + - "UAL\020\001\022\r\n\tLESS_THAN\020\002\022\020\n\014GREATER_THAN\020\004\032\335" + - "\001\n\rBetweenFilter\022f\n\nfrom_value\030\001 \001(\0132L.g" + - "oogle.analytics.admin.v1alpha.AudienceDi" + - "mensionOrMetricFilter.NumericValueB\004\342A\001\002" + - "\022d\n\010to_value\030\002 \001(\0132L.google.analytics.ad" + - "min.v1alpha.AudienceDimensionOrMetricFil" + - "ter.NumericValueB\004\342A\001\002B\014\n\none_filter\"\233\001\n" + - "\023AudienceEventFilter\022\031\n\nevent_name\030\001 \001(\t" + - "B\005\342A\002\002\005\022i\n!event_parameter_filter_expres" + - "sion\030\002 \001(\01328.google.analytics.admin.v1al" + - "pha.AudienceFilterExpressionB\004\342A\001\001\"\317\003\n\030A" + - "udienceFilterExpression\022Q\n\tand_group\030\001 \001" + - "(\0132<.google.analytics.admin.v1alpha.Audi" + - "enceFilterExpressionListH\000\022P\n\010or_group\030\002" + - " \001(\0132<.google.analytics.admin.v1alpha.Au" + - "dienceFilterExpressionListH\000\022R\n\016not_expr" + - "ession\030\003 \001(\01328.google.analytics.admin.v1" + - "alpha.AudienceFilterExpressionH\000\022e\n\032dime" + - "nsion_or_metric_filter\030\004 \001(\0132?.google.an" + - "alytics.admin.v1alpha.AudienceDimensionO" + - "rMetricFilterH\000\022K\n\014event_filter\030\005 \001(\01323." + - "google.analytics.admin.v1alpha.AudienceE" + - "ventFilterH\000B\006\n\004expr\"t\n\034AudienceFilterEx" + - "pressionList\022T\n\022filter_expressions\030\001 \003(\013" + - "28.google.analytics.admin.v1alpha.Audien" + - "ceFilterExpression\"\275\001\n\024AudienceSimpleFil" + - "ter\022I\n\005scope\030\001 \001(\01623.google.analytics.ad" + - "min.v1alpha.AudienceFilterScopeB\005\342A\002\002\005\022Z" + - "\n\021filter_expression\030\002 \001(\01328.google.analy" + - "tics.admin.v1alpha.AudienceFilterExpress" + - "ionB\005\342A\002\002\005\"\263\004\n\026AudienceSequenceFilter\022I\n" + - "\005scope\030\001 \001(\01623.google.analytics.admin.v1" + - "alpha.AudienceFilterScopeB\005\342A\002\002\005\022B\n\031sequ" + - "ence_maximum_duration\030\002 \001(\0132\031.google.pro" + - "tobuf.DurationB\004\342A\001\001\022i\n\016sequence_steps\030\003" + - " \003(\0132K.google.analytics.admin.v1alpha.Au" + - "dienceSequenceFilter.AudienceSequenceSte" + - "pB\004\342A\001\002\032\236\002\n\024AudienceSequenceStep\022I\n\005scop" + - "e\030\001 \001(\01623.google.analytics.admin.v1alpha" + - ".AudienceFilterScopeB\005\342A\002\002\005\022!\n\023immediate" + - "ly_follows\030\002 \001(\010B\004\342A\001\001\022<\n\023constraint_dur" + - "ation\030\003 \001(\0132\031.google.protobuf.DurationB\004" + - "\342A\001\001\022Z\n\021filter_expression\030\004 \001(\01328.google" + - ".analytics.admin.v1alpha.AudienceFilterE" + - "xpressionB\005\342A\002\002\005\"\374\002\n\024AudienceFilterClaus" + - "e\022M\n\rsimple_filter\030\002 \001(\01324.google.analyt" + - "ics.admin.v1alpha.AudienceSimpleFilterH\000" + - "\022Q\n\017sequence_filter\030\003 \001(\01326.google.analy" + - "tics.admin.v1alpha.AudienceSequenceFilte" + - "rH\000\022b\n\013clause_type\030\001 \001(\0162G.google.analyt" + - "ics.admin.v1alpha.AudienceFilterClause.A" + - "udienceClauseTypeB\004\342A\001\002\"T\n\022AudienceClaus" + - "eType\022$\n AUDIENCE_CLAUSE_TYPE_UNSPECIFIE" + - "D\020\000\022\013\n\007INCLUDE\020\001\022\013\n\007EXCLUDE\020\002B\010\n\006filter\"" + - "\365\001\n\024AudienceEventTrigger\022\030\n\nevent_name\030\001" + - " \001(\tB\004\342A\001\002\022^\n\rlog_condition\030\002 \001(\0162A.goog" + - "le.analytics.admin.v1alpha.AudienceEvent" + - "Trigger.LogConditionB\004\342A\001\002\"c\n\014LogConditi" + - "on\022\035\n\031LOG_CONDITION_UNSPECIFIED\020\000\022\023\n\017AUD" + - "IENCE_JOINED\020\001\022\037\n\033AUDIENCE_MEMBERSHIP_RE" + - "NEWED\020\002\"\240\005\n\010Audience\022\022\n\004name\030\001 \001(\tB\004\342A\001\003" + - "\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n\013descript" + - "ion\030\003 \001(\tB\004\342A\001\002\022\'\n\030membership_duration_d" + - "ays\030\004 \001(\005B\005\342A\002\002\005\022)\n\033ads_personalization_" + - "enabled\030\005 \001(\010B\004\342A\001\003\022Q\n\revent_trigger\030\006 \001" + - "(\01324.google.analytics.admin.v1alpha.Audi" + - "enceEventTriggerB\004\342A\001\001\022m\n\027exclusion_dura" + - "tion_mode\030\007 \001(\0162F.google.analytics.admin" + - ".v1alpha.Audience.AudienceExclusionDurat" + - "ionModeB\004\342A\001\005\022T\n\016filter_clauses\030\010 \003(\01324." + - "google.analytics.admin.v1alpha.AudienceF" + - "ilterClauseB\006\342A\003\005\002\006\"\203\001\n\035AudienceExclusio" + - "nDurationMode\0220\n,AUDIENCE_EXCLUSION_DURA" + - "TION_MODE_UNSPECIFIED\020\000\022\027\n\023EXCLUDE_TEMPO" + - "RARILY\020\001\022\027\n\023EXCLUDE_PERMANENTLY\020\002:W\352AT\n&" + - "analyticsadmin.googleapis.com/Audience\022*" + - "properties/{property}/audiences/{audienc" + - "e}*\307\001\n\023AudienceFilterScope\022%\n!AUDIENCE_F" + - "ILTER_SCOPE_UNSPECIFIED\020\000\022+\n\'AUDIENCE_FI" + - "LTER_SCOPE_WITHIN_SAME_EVENT\020\001\022-\n)AUDIEN" + - "CE_FILTER_SCOPE_WITHIN_SAME_SESSION\020\002\022-\n" + - ")AUDIENCE_FILTER_SCOPE_ACROSS_ALL_SESSIO" + - "NS\020\003Bu\n\"com.google.analytics.admin.v1alp" + - "haB\rAudienceProtoP\001Z>cloud.google.com/go" + - "/analytics/admin/apiv1alpha/adminpb;admi" + - "npbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor, - new java.lang.String[] { "StringFilter", "InListFilter", "NumericFilter", "BetweenFilter", "FieldName", "AtAnyPointInTime", "InAnyNDayPeriod", "OneFilter", }); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_StringFilter_descriptor, - new java.lang.String[] { "MatchType", "Value", "CaseSensitive", }); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_InListFilter_descriptor, - new java.lang.String[] { "Values", "CaseSensitive", }); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor = - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor.getNestedTypes().get(2); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericValue_descriptor, - new java.lang.String[] { "Int64Value", "DoubleValue", "OneValue", }); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor.getNestedTypes().get(3); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_NumericFilter_descriptor, - new java.lang.String[] { "Operation", "Value", }); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_descriptor.getNestedTypes().get(4); - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceDimensionOrMetricFilter_BetweenFilter_descriptor, - new java.lang.String[] { "FromValue", "ToValue", }); - internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceEventFilter_descriptor, - new java.lang.String[] { "EventName", "EventParameterFilterExpression", }); - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpression_descriptor, - new java.lang.String[] { "AndGroup", "OrGroup", "NotExpression", "DimensionOrMetricFilter", "EventFilter", "Expr", }); - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceFilterExpressionList_descriptor, - new java.lang.String[] { "FilterExpressions", }); - internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor, - new java.lang.String[] { "Scope", "FilterExpression", }); - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor, - new java.lang.String[] { "Scope", "SequenceMaximumDuration", "SequenceSteps", }); - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor = - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor, - new java.lang.String[] { "Scope", "ImmediatelyFollows", "ConstraintDuration", "FilterExpression", }); - internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceFilterClause_descriptor, - new java.lang.String[] { "SimpleFilter", "SequenceFilter", "ClauseType", "Filter", }); - internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AudienceEventTrigger_descriptor, - new java.lang.String[] { "EventName", "LogCondition", }); - internal_static_google_analytics_admin_v1alpha_Audience_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1alpha_Audience_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_Audience_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "MembershipDurationDays", "AdsPersonalizationEnabled", "EventTrigger", "ExclusionDurationMode", "FilterClauses", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java deleted file mode 100644 index 13b1bd973650..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilter.java +++ /dev/null @@ -1,2475 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Defines filters that must occur in a specific order for the user to be a
- * member of the Audience.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter} - */ -public final class AudienceSequenceFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter) - AudienceSequenceFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceSequenceFilter.newBuilder() to construct. - private AudienceSequenceFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceSequenceFilter() { - scope_ = 0; - sequenceSteps_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceSequenceFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.class, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder.class); - } - - public interface AudienceSequenceStepOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. Immutable. Specifies the scope for this step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-     * Required. Immutable. Specifies the scope for this step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); - - /** - *
-     * Optional. If true, the event satisfying this step must be the very next
-     * event after the event satisfying the last step. If unset or false, this
-     * step indirectly follows the prior step; for example, there may be
-     * events between the prior step and this step. It is ignored for the
-     * first step.
-     * 
- * - * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The immediatelyFollows. - */ - boolean getImmediatelyFollows(); - - /** - *
-     * Optional. When set, this step must be satisfied within the
-     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-     * constraint_duration). If not set, there is no duration requirement (the
-     * duration is effectively unlimited). It is ignored for the first step.
-     * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the constraintDuration field is set. - */ - boolean hasConstraintDuration(); - /** - *
-     * Optional. When set, this step must be satisfied within the
-     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-     * constraint_duration). If not set, there is no duration requirement (the
-     * duration is effectively unlimited). It is ignored for the first step.
-     * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The constraintDuration. - */ - com.google.protobuf.Duration getConstraintDuration(); - /** - *
-     * Optional. When set, this step must be satisfied within the
-     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-     * constraint_duration). If not set, there is no duration requirement (the
-     * duration is effectively unlimited). It is ignored for the first step.
-     * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder(); - - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric,
-     * or event filters in each step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the filterExpression field is set. - */ - boolean hasFilterExpression(); - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric,
-     * or event filters in each step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The filterExpression. - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression(); - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric,
-     * or event filters in each step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionOrBuilder(); - } - /** - *
-   * A condition that must occur in the specified step order for this user
-   * to match the sequence.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} - */ - public static final class AudienceSequenceStep extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) - AudienceSequenceStepOrBuilder { - private static final long serialVersionUID = 0L; - // Use AudienceSequenceStep.newBuilder() to construct. - private AudienceSequenceStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceSequenceStep() { - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceSequenceStep(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.class, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder.class); - } - - public static final int SCOPE_FIELD_NUMBER = 1; - private int scope_ = 0; - /** - *
-     * Required. Immutable. Specifies the scope for this step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Required. Immutable. Specifies the scope for this step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { - com.google.analytics.admin.v1alpha.AudienceFilterScope result = com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED : result; - } - - public static final int IMMEDIATELY_FOLLOWS_FIELD_NUMBER = 2; - private boolean immediatelyFollows_ = false; - /** - *
-     * Optional. If true, the event satisfying this step must be the very next
-     * event after the event satisfying the last step. If unset or false, this
-     * step indirectly follows the prior step; for example, there may be
-     * events between the prior step and this step. It is ignored for the
-     * first step.
-     * 
- * - * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The immediatelyFollows. - */ - @java.lang.Override - public boolean getImmediatelyFollows() { - return immediatelyFollows_; - } - - public static final int CONSTRAINT_DURATION_FIELD_NUMBER = 3; - private com.google.protobuf.Duration constraintDuration_; - /** - *
-     * Optional. When set, this step must be satisfied within the
-     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-     * constraint_duration). If not set, there is no duration requirement (the
-     * duration is effectively unlimited). It is ignored for the first step.
-     * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the constraintDuration field is set. - */ - @java.lang.Override - public boolean hasConstraintDuration() { - return constraintDuration_ != null; - } - /** - *
-     * Optional. When set, this step must be satisfied within the
-     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-     * constraint_duration). If not set, there is no duration requirement (the
-     * duration is effectively unlimited). It is ignored for the first step.
-     * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The constraintDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getConstraintDuration() { - return constraintDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : constraintDuration_; - } - /** - *
-     * Optional. When set, this step must be satisfied within the
-     * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-     * constraint_duration). If not set, there is no duration requirement (the
-     * duration is effectively unlimited). It is ignored for the first step.
-     * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder() { - return constraintDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : constraintDuration_; - } - - public static final int FILTER_EXPRESSION_FIELD_NUMBER = 4; - private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric,
-     * or event filters in each step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the filterExpression field is set. - */ - @java.lang.Override - public boolean hasFilterExpression() { - return filterExpression_ != null; - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric,
-     * or event filters in each step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The filterExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric,
-     * or event filters in each step.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionOrBuilder() { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } - - 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 (scope_ != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, scope_); - } - if (immediatelyFollows_ != false) { - output.writeBool(2, immediatelyFollows_); - } - if (constraintDuration_ != null) { - output.writeMessage(3, getConstraintDuration()); - } - if (filterExpression_ != null) { - output.writeMessage(4, getFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scope_ != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, scope_); - } - if (immediatelyFollows_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, immediatelyFollows_); - } - if (constraintDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConstraintDuration()); - } - if (filterExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getFilterExpression()); - } - 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.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep other = (com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) obj; - - if (scope_ != other.scope_) return false; - if (getImmediatelyFollows() - != other.getImmediatelyFollows()) return false; - if (hasConstraintDuration() != other.hasConstraintDuration()) return false; - if (hasConstraintDuration()) { - if (!getConstraintDuration() - .equals(other.getConstraintDuration())) return false; - } - if (hasFilterExpression() != other.hasFilterExpression()) return false; - if (hasFilterExpression()) { - if (!getFilterExpression() - .equals(other.getFilterExpression())) 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) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - hash = (37 * hash) + IMMEDIATELY_FOLLOWS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getImmediatelyFollows()); - if (hasConstraintDuration()) { - hash = (37 * hash) + CONSTRAINT_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getConstraintDuration().hashCode(); - } - if (hasFilterExpression()) { - hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A condition that must occur in the specified step order for this user
-     * to match the sequence.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.class, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = 0; - immediatelyFollows_ = false; - constraintDuration_ = null; - if (constraintDurationBuilder_ != null) { - constraintDurationBuilder_.dispose(); - constraintDurationBuilder_ = null; - } - filterExpression_ = null; - if (filterExpressionBuilder_ != null) { - filterExpressionBuilder_.dispose(); - filterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_AudienceSequenceStep_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep build() { - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep buildPartial() { - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result = new com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scope_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.immediatelyFollows_ = immediatelyFollows_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.constraintDuration_ = constraintDurationBuilder_ == null - ? constraintDuration_ - : constraintDurationBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.filterExpression_ = filterExpressionBuilder_ == null - ? filterExpression_ - : filterExpressionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep other) { - if (other == com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.getDefaultInstance()) return this; - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - if (other.getImmediatelyFollows() != false) { - setImmediatelyFollows(other.getImmediatelyFollows()); - } - if (other.hasConstraintDuration()) { - mergeConstraintDuration(other.getConstraintDuration()); - } - if (other.hasFilterExpression()) { - mergeFilterExpression(other.getFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - scope_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - immediatelyFollows_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getConstraintDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int scope_ = 0; - /** - *
-       * Required. Immutable. Specifies the scope for this step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-       * Required. Immutable. Specifies the scope for this step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. Specifies the scope for this step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { - com.google.analytics.admin.v1alpha.AudienceFilterScope result = com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED : result; - } - /** - *
-       * Required. Immutable. Specifies the scope for this step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.analytics.admin.v1alpha.AudienceFilterScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. Specifies the scope for this step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000001); - scope_ = 0; - onChanged(); - return this; - } - - private boolean immediatelyFollows_ ; - /** - *
-       * Optional. If true, the event satisfying this step must be the very next
-       * event after the event satisfying the last step. If unset or false, this
-       * step indirectly follows the prior step; for example, there may be
-       * events between the prior step and this step. It is ignored for the
-       * first step.
-       * 
- * - * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The immediatelyFollows. - */ - @java.lang.Override - public boolean getImmediatelyFollows() { - return immediatelyFollows_; - } - /** - *
-       * Optional. If true, the event satisfying this step must be the very next
-       * event after the event satisfying the last step. If unset or false, this
-       * step indirectly follows the prior step; for example, there may be
-       * events between the prior step and this step. It is ignored for the
-       * first step.
-       * 
- * - * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The immediatelyFollows to set. - * @return This builder for chaining. - */ - public Builder setImmediatelyFollows(boolean value) { - - immediatelyFollows_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Optional. If true, the event satisfying this step must be the very next
-       * event after the event satisfying the last step. If unset or false, this
-       * step indirectly follows the prior step; for example, there may be
-       * events between the prior step and this step. It is ignored for the
-       * first step.
-       * 
- * - * bool immediately_follows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearImmediatelyFollows() { - bitField0_ = (bitField0_ & ~0x00000002); - immediatelyFollows_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Duration constraintDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> constraintDurationBuilder_; - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the constraintDuration field is set. - */ - public boolean hasConstraintDuration() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The constraintDuration. - */ - public com.google.protobuf.Duration getConstraintDuration() { - if (constraintDurationBuilder_ == null) { - return constraintDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : constraintDuration_; - } else { - return constraintDurationBuilder_.getMessage(); - } - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setConstraintDuration(com.google.protobuf.Duration value) { - if (constraintDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - constraintDuration_ = value; - } else { - constraintDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setConstraintDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (constraintDurationBuilder_ == null) { - constraintDuration_ = builderForValue.build(); - } else { - constraintDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeConstraintDuration(com.google.protobuf.Duration value) { - if (constraintDurationBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - constraintDuration_ != null && - constraintDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getConstraintDurationBuilder().mergeFrom(value); - } else { - constraintDuration_ = value; - } - } else { - constraintDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearConstraintDuration() { - bitField0_ = (bitField0_ & ~0x00000004); - constraintDuration_ = null; - if (constraintDurationBuilder_ != null) { - constraintDurationBuilder_.dispose(); - constraintDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Duration.Builder getConstraintDurationBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getConstraintDurationFieldBuilder().getBuilder(); - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.DurationOrBuilder getConstraintDurationOrBuilder() { - if (constraintDurationBuilder_ != null) { - return constraintDurationBuilder_.getMessageOrBuilder(); - } else { - return constraintDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : constraintDuration_; - } - } - /** - *
-       * Optional. When set, this step must be satisfied within the
-       * constraint_duration of the previous step (For example,  t[i] - t[i-1] <=
-       * constraint_duration). If not set, there is no duration requirement (the
-       * duration is effectively unlimited). It is ignored for the first step.
-       * 
- * - * .google.protobuf.Duration constraint_duration = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getConstraintDurationFieldBuilder() { - if (constraintDurationBuilder_ == null) { - constraintDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getConstraintDuration(), - getParentForChildren(), - isClean()); - constraintDuration_ = null; - } - return constraintDurationBuilder_; - } - - private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> filterExpressionBuilder_; - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the filterExpression field is set. - */ - public boolean hasFilterExpression() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The filterExpression. - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { - if (filterExpressionBuilder_ == null) { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } else { - return filterExpressionBuilder_.getMessage(); - } - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setFilterExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterExpression_ = value; - } else { - filterExpressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setFilterExpression( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { - if (filterExpressionBuilder_ == null) { - filterExpression_ = builderForValue.build(); - } else { - filterExpressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeFilterExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - filterExpression_ != null && - filterExpression_ != com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()) { - getFilterExpressionBuilder().mergeFrom(value); - } else { - filterExpression_ = value; - } - } else { - filterExpressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearFilterExpression() { - bitField0_ = (bitField0_ & ~0x00000008); - filterExpression_ = null; - if (filterExpressionBuilder_ != null) { - filterExpressionBuilder_.dispose(); - filterExpressionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder getFilterExpressionBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getFilterExpressionFieldBuilder().getBuilder(); - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionOrBuilder() { - if (filterExpressionBuilder_ != null) { - return filterExpressionBuilder_.getMessageOrBuilder(); - } else { - return filterExpression_ == null ? - com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } - } - /** - *
-       * Required. Immutable. A logical expression of Audience dimension, metric,
-       * or event filters in each step.
-       * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> - getFilterExpressionFieldBuilder() { - if (filterExpressionBuilder_ == null) { - filterExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( - getFilterExpression(), - getParentForChildren(), - isClean()); - filterExpression_ = null; - } - return filterExpressionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep) - private static final com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep(); - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceSequenceStep parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int SCOPE_FIELD_NUMBER = 1; - private int scope_ = 0; - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { - com.google.analytics.admin.v1alpha.AudienceFilterScope result = com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED : result; - } - - public static final int SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration sequenceMaximumDuration_; - /** - *
-   * Optional. Defines the time period in which the whole sequence must occur.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the sequenceMaximumDuration field is set. - */ - @java.lang.Override - public boolean hasSequenceMaximumDuration() { - return sequenceMaximumDuration_ != null; - } - /** - *
-   * Optional. Defines the time period in which the whole sequence must occur.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The sequenceMaximumDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getSequenceMaximumDuration() { - return sequenceMaximumDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sequenceMaximumDuration_; - } - /** - *
-   * Optional. Defines the time period in which the whole sequence must occur.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { - return sequenceMaximumDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sequenceMaximumDuration_; - } - - public static final int SEQUENCE_STEPS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List sequenceSteps_; - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List getSequenceStepsList() { - return sequenceSteps_; - } - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List - getSequenceStepsOrBuilderList() { - return sequenceSteps_; - } - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public int getSequenceStepsCount() { - return sequenceSteps_.size(); - } - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getSequenceSteps(int index) { - return sequenceSteps_.get(index); - } - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder getSequenceStepsOrBuilder( - int index) { - return sequenceSteps_.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 { - if (scope_ != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, scope_); - } - if (sequenceMaximumDuration_ != null) { - output.writeMessage(2, getSequenceMaximumDuration()); - } - for (int i = 0; i < sequenceSteps_.size(); i++) { - output.writeMessage(3, sequenceSteps_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scope_ != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, scope_); - } - if (sequenceMaximumDuration_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSequenceMaximumDuration()); - } - for (int i = 0; i < sequenceSteps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, sequenceSteps_.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.admin.v1alpha.AudienceSequenceFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceSequenceFilter other = (com.google.analytics.admin.v1alpha.AudienceSequenceFilter) obj; - - if (scope_ != other.scope_) return false; - if (hasSequenceMaximumDuration() != other.hasSequenceMaximumDuration()) return false; - if (hasSequenceMaximumDuration()) { - if (!getSequenceMaximumDuration() - .equals(other.getSequenceMaximumDuration())) return false; - } - if (!getSequenceStepsList() - .equals(other.getSequenceStepsList())) 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) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - if (hasSequenceMaximumDuration()) { - hash = (37 * hash) + SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getSequenceMaximumDuration().hashCode(); - } - if (getSequenceStepsCount() > 0) { - hash = (37 * hash) + SEQUENCE_STEPS_FIELD_NUMBER; - hash = (53 * hash) + getSequenceStepsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceSequenceFilter 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; - } - /** - *
-   * Defines filters that must occur in a specific order for the user to be a
-   * member of the Audience.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSequenceFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSequenceFilter) - com.google.analytics.admin.v1alpha.AudienceSequenceFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.class, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceSequenceFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = 0; - sequenceMaximumDuration_ = null; - if (sequenceMaximumDurationBuilder_ != null) { - sequenceMaximumDurationBuilder_.dispose(); - sequenceMaximumDurationBuilder_ = null; - } - if (sequenceStepsBuilder_ == null) { - sequenceSteps_ = java.util.Collections.emptyList(); - } else { - sequenceSteps_ = null; - sequenceStepsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSequenceFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter build() { - com.google.analytics.admin.v1alpha.AudienceSequenceFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceSequenceFilter result = new com.google.analytics.admin.v1alpha.AudienceSequenceFilter(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.AudienceSequenceFilter result) { - if (sequenceStepsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - sequenceSteps_ = java.util.Collections.unmodifiableList(sequenceSteps_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.sequenceSteps_ = sequenceSteps_; - } else { - result.sequenceSteps_ = sequenceStepsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceSequenceFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scope_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.sequenceMaximumDuration_ = sequenceMaximumDurationBuilder_ == null - ? sequenceMaximumDuration_ - : sequenceMaximumDurationBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceSequenceFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceSequenceFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceSequenceFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceSequenceFilter.getDefaultInstance()) return this; - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - if (other.hasSequenceMaximumDuration()) { - mergeSequenceMaximumDuration(other.getSequenceMaximumDuration()); - } - if (sequenceStepsBuilder_ == null) { - if (!other.sequenceSteps_.isEmpty()) { - if (sequenceSteps_.isEmpty()) { - sequenceSteps_ = other.sequenceSteps_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureSequenceStepsIsMutable(); - sequenceSteps_.addAll(other.sequenceSteps_); - } - onChanged(); - } - } else { - if (!other.sequenceSteps_.isEmpty()) { - if (sequenceStepsBuilder_.isEmpty()) { - sequenceStepsBuilder_.dispose(); - sequenceStepsBuilder_ = null; - sequenceSteps_ = other.sequenceSteps_; - bitField0_ = (bitField0_ & ~0x00000004); - sequenceStepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSequenceStepsFieldBuilder() : null; - } else { - sequenceStepsBuilder_.addAllMessages(other.sequenceSteps_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - scope_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getSequenceMaximumDurationFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep m = - input.readMessage( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.parser(), - extensionRegistry); - if (sequenceStepsBuilder_ == null) { - ensureSequenceStepsIsMutable(); - sequenceSteps_.add(m); - } else { - sequenceStepsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int scope_ = 0; - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { - com.google.analytics.admin.v1alpha.AudienceFilterScope result = com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.analytics.admin.v1alpha.AudienceFilterScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000001); - scope_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration sequenceMaximumDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> sequenceMaximumDurationBuilder_; - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the sequenceMaximumDuration field is set. - */ - public boolean hasSequenceMaximumDuration() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The sequenceMaximumDuration. - */ - public com.google.protobuf.Duration getSequenceMaximumDuration() { - if (sequenceMaximumDurationBuilder_ == null) { - return sequenceMaximumDuration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : sequenceMaximumDuration_; - } else { - return sequenceMaximumDurationBuilder_.getMessage(); - } - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setSequenceMaximumDuration(com.google.protobuf.Duration value) { - if (sequenceMaximumDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sequenceMaximumDuration_ = value; - } else { - sequenceMaximumDurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setSequenceMaximumDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDuration_ = builderForValue.build(); - } else { - sequenceMaximumDurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeSequenceMaximumDuration(com.google.protobuf.Duration value) { - if (sequenceMaximumDurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - sequenceMaximumDuration_ != null && - sequenceMaximumDuration_ != com.google.protobuf.Duration.getDefaultInstance()) { - getSequenceMaximumDurationBuilder().mergeFrom(value); - } else { - sequenceMaximumDuration_ = value; - } - } else { - sequenceMaximumDurationBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearSequenceMaximumDuration() { - bitField0_ = (bitField0_ & ~0x00000002); - sequenceMaximumDuration_ = null; - if (sequenceMaximumDurationBuilder_ != null) { - sequenceMaximumDurationBuilder_.dispose(); - sequenceMaximumDurationBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Duration.Builder getSequenceMaximumDurationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSequenceMaximumDurationFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { - if (sequenceMaximumDurationBuilder_ != null) { - return sequenceMaximumDurationBuilder_.getMessageOrBuilder(); - } else { - return sequenceMaximumDuration_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : sequenceMaximumDuration_; - } - } - /** - *
-     * Optional. Defines the time period in which the whole sequence must occur.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> - getSequenceMaximumDurationFieldBuilder() { - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getSequenceMaximumDuration(), - getParentForChildren(), - isClean()); - sequenceMaximumDuration_ = null; - } - return sequenceMaximumDurationBuilder_; - } - - private java.util.List sequenceSteps_ = - java.util.Collections.emptyList(); - private void ensureSequenceStepsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - sequenceSteps_ = new java.util.ArrayList(sequenceSteps_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder> sequenceStepsBuilder_; - - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List getSequenceStepsList() { - if (sequenceStepsBuilder_ == null) { - return java.util.Collections.unmodifiableList(sequenceSteps_); - } else { - return sequenceStepsBuilder_.getMessageList(); - } - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public int getSequenceStepsCount() { - if (sequenceStepsBuilder_ == null) { - return sequenceSteps_.size(); - } else { - return sequenceStepsBuilder_.getCount(); - } - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getSequenceSteps(int index) { - if (sequenceStepsBuilder_ == null) { - return sequenceSteps_.get(index); - } else { - return sequenceStepsBuilder_.getMessage(index); - } - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSequenceSteps( - int index, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { - if (sequenceStepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSequenceStepsIsMutable(); - sequenceSteps_.set(index, value); - onChanged(); - } else { - sequenceStepsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSequenceSteps( - int index, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder builderForValue) { - if (sequenceStepsBuilder_ == null) { - ensureSequenceStepsIsMutable(); - sequenceSteps_.set(index, builderForValue.build()); - onChanged(); - } else { - sequenceStepsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addSequenceSteps(com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { - if (sequenceStepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSequenceStepsIsMutable(); - sequenceSteps_.add(value); - onChanged(); - } else { - sequenceStepsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addSequenceSteps( - int index, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep value) { - if (sequenceStepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSequenceStepsIsMutable(); - sequenceSteps_.add(index, value); - onChanged(); - } else { - sequenceStepsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addSequenceSteps( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder builderForValue) { - if (sequenceStepsBuilder_ == null) { - ensureSequenceStepsIsMutable(); - sequenceSteps_.add(builderForValue.build()); - onChanged(); - } else { - sequenceStepsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addSequenceSteps( - int index, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder builderForValue) { - if (sequenceStepsBuilder_ == null) { - ensureSequenceStepsIsMutable(); - sequenceSteps_.add(index, builderForValue.build()); - onChanged(); - } else { - sequenceStepsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addAllSequenceSteps( - java.lang.Iterable values) { - if (sequenceStepsBuilder_ == null) { - ensureSequenceStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sequenceSteps_); - onChanged(); - } else { - sequenceStepsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSequenceSteps() { - if (sequenceStepsBuilder_ == null) { - sequenceSteps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - sequenceStepsBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder removeSequenceSteps(int index) { - if (sequenceStepsBuilder_ == null) { - ensureSequenceStepsIsMutable(); - sequenceSteps_.remove(index); - onChanged(); - } else { - sequenceStepsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder getSequenceStepsBuilder( - int index) { - return getSequenceStepsFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder getSequenceStepsOrBuilder( - int index) { - if (sequenceStepsBuilder_ == null) { - return sequenceSteps_.get(index); } else { - return sequenceStepsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getSequenceStepsOrBuilderList() { - if (sequenceStepsBuilder_ != null) { - return sequenceStepsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sequenceSteps_); - } - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder addSequenceStepsBuilder() { - return getSequenceStepsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.getDefaultInstance()); - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder addSequenceStepsBuilder( - int index) { - return getSequenceStepsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.getDefaultInstance()); - } - /** - *
-     * Required. An ordered sequence of steps. A user must complete each step in
-     * order to join the sequence filter.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getSequenceStepsBuilderList() { - return getSequenceStepsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder> - getSequenceStepsFieldBuilder() { - if (sequenceStepsBuilder_ == null) { - sequenceStepsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep.Builder, com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder>( - sequenceSteps_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - sequenceSteps_ = null; - } - return sequenceStepsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSequenceFilter) - private static final com.google.analytics.admin.v1alpha.AudienceSequenceFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceSequenceFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceSequenceFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSequenceFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java deleted file mode 100644 index 19c072b5a1c5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSequenceFilterOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceSequenceFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSequenceFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); - - /** - *
-   * Optional. Defines the time period in which the whole sequence must occur.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the sequenceMaximumDuration field is set. - */ - boolean hasSequenceMaximumDuration(); - /** - *
-   * Optional. Defines the time period in which the whole sequence must occur.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The sequenceMaximumDuration. - */ - com.google.protobuf.Duration getSequenceMaximumDuration(); - /** - *
-   * Optional. Defines the time period in which the whole sequence must occur.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder(); - - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getSequenceStepsList(); - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep getSequenceSteps(int index); - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - int getSequenceStepsCount(); - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getSequenceStepsOrBuilderList(); - /** - *
-   * Required. An ordered sequence of steps. A user must complete each step in
-   * order to join the sequence filter.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStep sequence_steps = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AudienceSequenceFilter.AudienceSequenceStepOrBuilder getSequenceStepsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java deleted file mode 100644 index 081ab92fdd0f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilter.java +++ /dev/null @@ -1,778 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Defines a simple filter that a user must satisfy to be a member of the
- * Audience.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSimpleFilter} - */ -public final class AudienceSimpleFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.AudienceSimpleFilter) - AudienceSimpleFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AudienceSimpleFilter.newBuilder() to construct. - private AudienceSimpleFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AudienceSimpleFilter() { - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AudienceSimpleFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceSimpleFilter.class, com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder.class); - } - - public static final int SCOPE_FIELD_NUMBER = 1; - private int scope_ = 0; - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { - com.google.analytics.admin.v1alpha.AudienceFilterScope result = com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED : result; - } - - public static final int FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; - /** - *
-   * Required. Immutable. A logical expression of Audience dimension, metric, or
-   * event filters.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the filterExpression field is set. - */ - @java.lang.Override - public boolean hasFilterExpression() { - return filterExpression_ != null; - } - /** - *
-   * Required. Immutable. A logical expression of Audience dimension, metric, or
-   * event filters.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The filterExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } - /** - *
-   * Required. Immutable. A logical expression of Audience dimension, metric, or
-   * event filters.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionOrBuilder() { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } - - 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 (scope_ != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, scope_); - } - if (filterExpression_ != null) { - output.writeMessage(2, getFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (scope_ != com.google.analytics.admin.v1alpha.AudienceFilterScope.AUDIENCE_FILTER_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, scope_); - } - if (filterExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilterExpression()); - } - 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.admin.v1alpha.AudienceSimpleFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.AudienceSimpleFilter other = (com.google.analytics.admin.v1alpha.AudienceSimpleFilter) obj; - - if (scope_ != other.scope_) return false; - if (hasFilterExpression() != other.hasFilterExpression()) return false; - if (hasFilterExpression()) { - if (!getFilterExpression() - .equals(other.getFilterExpression())) 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) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - if (hasFilterExpression()) { - hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.AudienceSimpleFilter 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; - } - /** - *
-   * Defines a simple filter that a user must satisfy to be a member of the
-   * Audience.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.AudienceSimpleFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.AudienceSimpleFilter) - com.google.analytics.admin.v1alpha.AudienceSimpleFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.AudienceSimpleFilter.class, com.google.analytics.admin.v1alpha.AudienceSimpleFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.AudienceSimpleFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = 0; - filterExpression_ = null; - if (filterExpressionBuilder_ != null) { - filterExpressionBuilder_.dispose(); - filterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AudienceProto.internal_static_google_analytics_admin_v1alpha_AudienceSimpleFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilter build() { - com.google.analytics.admin.v1alpha.AudienceSimpleFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilter buildPartial() { - com.google.analytics.admin.v1alpha.AudienceSimpleFilter result = new com.google.analytics.admin.v1alpha.AudienceSimpleFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.AudienceSimpleFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scope_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filterExpression_ = filterExpressionBuilder_ == null - ? filterExpression_ - : filterExpressionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.AudienceSimpleFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.AudienceSimpleFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.AudienceSimpleFilter other) { - if (other == com.google.analytics.admin.v1alpha.AudienceSimpleFilter.getDefaultInstance()) return this; - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - if (other.hasFilterExpression()) { - mergeFilterExpression(other.getFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - scope_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int scope_ = 0; - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceFilterScope getScope() { - com.google.analytics.admin.v1alpha.AudienceFilterScope result = com.google.analytics.admin.v1alpha.AudienceFilterScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.AudienceFilterScope.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.analytics.admin.v1alpha.AudienceFilterScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Specifies the scope for this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000001); - scope_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AudienceFilterExpression filterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> filterExpressionBuilder_; - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the filterExpression field is set. - */ - public boolean hasFilterExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The filterExpression. - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression() { - if (filterExpressionBuilder_ == null) { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } else { - return filterExpressionBuilder_.getMessage(); - } - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setFilterExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterExpression_ = value; - } else { - filterExpressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setFilterExpression( - com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder builderForValue) { - if (filterExpressionBuilder_ == null) { - filterExpression_ = builderForValue.build(); - } else { - filterExpressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeFilterExpression(com.google.analytics.admin.v1alpha.AudienceFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - filterExpression_ != null && - filterExpression_ != com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance()) { - getFilterExpressionBuilder().mergeFrom(value); - } else { - filterExpression_ = value; - } - } else { - filterExpressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearFilterExpression() { - bitField0_ = (bitField0_ & ~0x00000002); - filterExpression_ = null; - if (filterExpressionBuilder_ != null) { - filterExpressionBuilder_.dispose(); - filterExpressionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder getFilterExpressionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFilterExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionOrBuilder() { - if (filterExpressionBuilder_ != null) { - return filterExpressionBuilder_.getMessageOrBuilder(); - } else { - return filterExpression_ == null ? - com.google.analytics.admin.v1alpha.AudienceFilterExpression.getDefaultInstance() : filterExpression_; - } - } - /** - *
-     * Required. Immutable. A logical expression of Audience dimension, metric, or
-     * event filters.
-     * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder> - getFilterExpressionFieldBuilder() { - if (filterExpressionBuilder_ == null) { - filterExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AudienceFilterExpression, com.google.analytics.admin.v1alpha.AudienceFilterExpression.Builder, com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder>( - getFilterExpression(), - getParentForChildren(), - isClean()); - filterExpression_ = null; - } - return filterExpressionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.AudienceSimpleFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.AudienceSimpleFilter) - private static final com.google.analytics.admin.v1alpha.AudienceSimpleFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.AudienceSimpleFilter(); - } - - public static com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AudienceSimpleFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceSimpleFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java deleted file mode 100644 index 5b6fed000a65..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AudienceSimpleFilterOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/audience.proto - -package com.google.analytics.admin.v1alpha; - -public interface AudienceSimpleFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.AudienceSimpleFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Required. Immutable. Specifies the scope for this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterScope scope = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - com.google.analytics.admin.v1alpha.AudienceFilterScope getScope(); - - /** - *
-   * Required. Immutable. A logical expression of Audience dimension, metric, or
-   * event filters.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the filterExpression field is set. - */ - boolean hasFilterExpression(); - /** - *
-   * Required. Immutable. A logical expression of Audience dimension, metric, or
-   * event filters.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The filterExpression. - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpression getFilterExpression(); - /** - *
-   * Required. Immutable. A logical expression of Audience dimension, metric, or
-   * event filters.
-   * 
- * - * .google.analytics.admin.v1alpha.AudienceFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - */ - com.google.analytics.admin.v1alpha.AudienceFilterExpressionOrBuilder getFilterExpressionOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java deleted file mode 100644 index 4c27a7c23715..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequest.java +++ /dev/null @@ -1,1074 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for BatchCreateAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest} - */ -public final class BatchCreateAccessBindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) - BatchCreateAccessBindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchCreateAccessBindingsRequest.newBuilder() to construct. - private BatchCreateAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchCreateAccessBindingsRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchCreateAccessBindingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * field in the CreateAccessBindingRequest messages must either be empty or
-   * match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * field in the CreateAccessBindingRequest messages must either be empty or
-   * match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(3, requests_.get(i)); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, requests_.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.admin.v1alpha.BatchCreateAccessBindingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest other = (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getRequestsList() - .equals(other.getRequestsList())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for BatchCreateAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest build() { - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * field in the CreateAccessBindingRequest messages must either be empty or
-     * match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * field in the CreateAccessBindingRequest messages must either be empty or
-     * match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * field in the CreateAccessBindingRequest messages must either be empty or
-     * match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * field in the CreateAccessBindingRequest messages must either be empty or
-     * match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * field in the CreateAccessBindingRequest messages must either be empty or
-     * match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> requestsBuilder_; - - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()); - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()); - } - /** - *
-     * Required. The requests specifying the access bindings to create.
-     * A maximum of 1000 access bindings can be created in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) - private static final com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateAccessBindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java deleted file mode 100644 index 2e1adc5bbb02..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsRequestOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchCreateAccessBindingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateAccessBindingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * field in the CreateAccessBindingRequest messages must either be empty or
-   * match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * field in the CreateAccessBindingRequest messages must either be empty or
-   * match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getRequests(int index); - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. The requests specifying the access bindings to create.
-   * A maximum of 1000 access bindings can be created in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CreateAccessBindingRequest requests = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java deleted file mode 100644 index e8ad69ad8890..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponse.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for BatchCreateAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse} - */ -public final class BatchCreateAccessBindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) - BatchCreateAccessBindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchCreateAccessBindingsResponse.newBuilder() to construct. - private BatchCreateAccessBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchCreateAccessBindingsResponse() { - accessBindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchCreateAccessBindingsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.Builder.class); - } - - public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accessBindings_; - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List getAccessBindingsList() { - return accessBindings_; - } - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List - getAccessBindingsOrBuilderList() { - return accessBindings_; - } - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public int getAccessBindingsCount() { - return accessBindings_.size(); - } - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - return accessBindings_.get(index); - } - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - return accessBindings_.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 < accessBindings_.size(); i++) { - output.writeMessage(1, accessBindings_.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 < accessBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accessBindings_.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.admin.v1alpha.BatchCreateAccessBindingsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse other = (com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) obj; - - if (!getAccessBindingsList() - .equals(other.getAccessBindingsList())) 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 (getAccessBindingsCount() > 0) { - hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getAccessBindingsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for BatchCreateAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - } else { - accessBindings_ = null; - accessBindingsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchCreateAccessBindingsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse build() { - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result) { - if (accessBindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accessBindings_ = accessBindings_; - } else { - result.accessBindings_ = accessBindingsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse other) { - if (other == com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse.getDefaultInstance()) return this; - if (accessBindingsBuilder_ == null) { - if (!other.accessBindings_.isEmpty()) { - if (accessBindings_.isEmpty()) { - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccessBindingsIsMutable(); - accessBindings_.addAll(other.accessBindings_); - } - onChanged(); - } - } else { - if (!other.accessBindings_.isEmpty()) { - if (accessBindingsBuilder_.isEmpty()) { - accessBindingsBuilder_.dispose(); - accessBindingsBuilder_ = null; - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - accessBindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccessBindingsFieldBuilder() : null; - } else { - accessBindingsBuilder_.addAllMessages(other.accessBindings_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccessBinding m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessBinding.parser(), - extensionRegistry); - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(m); - } else { - accessBindingsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accessBindings_ = - java.util.Collections.emptyList(); - private void ensureAccessBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = new java.util.ArrayList(accessBindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> accessBindingsBuilder_; - - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List getAccessBindingsList() { - if (accessBindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accessBindings_); - } else { - return accessBindingsBuilder_.getMessageList(); - } - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public int getAccessBindingsCount() { - if (accessBindingsBuilder_ == null) { - return accessBindings_.size(); - } else { - return accessBindingsBuilder_.getCount(); - } - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); - } else { - return accessBindingsBuilder_.getMessage(index); - } - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, value); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAllAccessBindings( - java.lang.Iterable values) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accessBindings_); - onChanged(); - } else { - accessBindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder clearAccessBindings() { - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accessBindingsBuilder_.clear(); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder removeAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.remove(index); - onChanged(); - } else { - accessBindingsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().getBuilder(index); - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); } else { - return accessBindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsOrBuilderList() { - if (accessBindingsBuilder_ != null) { - return accessBindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accessBindings_); - } - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { - return getAccessBindingsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * The access bindings created.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsBuilderList() { - return getAccessBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> - getAccessBindingsFieldBuilder() { - if (accessBindingsBuilder_ == null) { - accessBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( - accessBindings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accessBindings_ = null; - } - return accessBindingsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) - private static final com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchCreateAccessBindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java deleted file mode 100644 index 5e12e2505d1a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateAccessBindingsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchCreateAccessBindingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchCreateAccessBindingsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsList(); - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - int getAccessBindingsCount(); - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsOrBuilderList(); - /** - *
-   * The access bindings created.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java deleted file mode 100644 index 669fbd384b5a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequest.java +++ /dev/null @@ -1,1074 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for BatchDeleteAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest} - */ -public final class BatchDeleteAccessBindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) - BatchDeleteAccessBindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchDeleteAccessBindingsRequest.newBuilder() to construct. - private BatchDeleteAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchDeleteAccessBindingsRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchDeleteAccessBindingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field in DeleteAccessBindingRequest
-   * messages must match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field in DeleteAccessBindingRequest
-   * messages must match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(2, requests_.get(i)); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, requests_.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.admin.v1alpha.BatchDeleteAccessBindingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest other = (com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getRequestsList() - .equals(other.getRequestsList())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for BatchDeleteAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchDeleteAccessBindingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest build() { - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result = new com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field in DeleteAccessBindingRequest
-     * messages must match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field in DeleteAccessBindingRequest
-     * messages must match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field in DeleteAccessBindingRequest
-     * messages must match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field in DeleteAccessBindingRequest
-     * messages must match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field in DeleteAccessBindingRequest
-     * messages must match this field. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> requestsBuilder_; - - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()); - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()); - } - /** - *
-     * Required. The requests specifying the access bindings to delete.
-     * A maximum of 1000 access bindings can be deleted in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) - private static final com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchDeleteAccessBindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java deleted file mode 100644 index f3e4108334de..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteAccessBindingsRequestOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchDeleteAccessBindingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchDeleteAccessBindingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field in DeleteAccessBindingRequest
-   * messages must match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field in DeleteAccessBindingRequest
-   * messages must match this field. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getRequests(int index); - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. The requests specifying the access bindings to delete.
-   * A maximum of 1000 access bindings can be deleted in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DeleteAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java deleted file mode 100644 index 116737fa26bf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequest.java +++ /dev/null @@ -1,898 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for BatchGetAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest} - */ -public final class BatchGetAccessBindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) - BatchGetAccessBindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchGetAccessBindingsRequest.newBuilder() to construct. - private BatchGetAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchGetAccessBindingsRequest() { - parent_ = ""; - names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchGetAccessBindingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field must match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field must match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAMES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return A list containing the names. - */ - public com.google.protobuf.ProtocolStringList - getNamesList() { - return names_; - } - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The count of names. - */ - public int getNamesCount() { - return names_.size(); - } - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param index The index of the element to return. - * @return The names at the given index. - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param index The index of the value to return. - * @return The bytes of the names at the given index. - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < names_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, names_.getRaw(i)); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - { - int dataSize = 0; - for (int i = 0; i < names_.size(); i++) { - dataSize += computeStringSizeNoTag(names_.getRaw(i)); - } - size += dataSize; - size += 1 * getNamesList().size(); - } - 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.admin.v1alpha.BatchGetAccessBindingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest other = (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getNamesList() - .equals(other.getNamesList())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (getNamesCount() > 0) { - hash = (37 * hash) + NAMES_FIELD_NUMBER; - hash = (53 * hash) + getNamesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for BatchGetAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest build() { - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - names_.makeImmutable(); - result.names_ = names_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.names_.isEmpty()) { - if (names_.isEmpty()) { - names_ = other.names_; - bitField0_ |= 0x00000002; - } else { - ensureNamesIsMutable(); - names_.addAll(other.names_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureNamesIsMutable(); - names_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field must match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field must match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field must match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field must match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided values for the 'names' field must match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureNamesIsMutable() { - if (!names_.isModifiable()) { - names_ = new com.google.protobuf.LazyStringArrayList(names_); - } - bitField0_ |= 0x00000002; - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return A list containing the names. - */ - public com.google.protobuf.ProtocolStringList - getNamesList() { - names_.makeImmutable(); - return names_; - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The count of names. - */ - public int getNamesCount() { - return names_.size(); - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param index The index of the element to return. - * @return The names at the given index. - */ - public java.lang.String getNames(int index) { - return names_.get(index); - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param index The index of the value to return. - * @return The bytes of the names at the given index. - */ - public com.google.protobuf.ByteString - getNamesBytes(int index) { - return names_.getByteString(index); - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param index The index to set the value at. - * @param value The names to set. - * @return This builder for chaining. - */ - public Builder setNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNamesIsMutable(); - names_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The names to add. - * @return This builder for chaining. - */ - public Builder addNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureNamesIsMutable(); - names_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param values The names to add. - * @return This builder for chaining. - */ - public Builder addAllNames( - java.lang.Iterable values) { - ensureNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, names_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearNames() { - names_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; - onChanged(); - return this; - } - /** - *
-     * Required. The names of the access bindings to retrieve.
-     * A maximum of 1000 access bindings can be retrieved in a batch.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes of the names to add. - * @return This builder for chaining. - */ - public Builder addNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureNamesIsMutable(); - names_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) - private static final com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetAccessBindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java deleted file mode 100644 index 73ecd4cfc1a7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsRequestOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchGetAccessBindingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetAccessBindingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field must match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided values for the 'names' field must match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return A list containing the names. - */ - java.util.List - getNamesList(); - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The count of names. - */ - int getNamesCount(); - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param index The index of the element to return. - * @return The names at the given index. - */ - java.lang.String getNames(int index); - /** - *
-   * Required. The names of the access bindings to retrieve.
-   * A maximum of 1000 access bindings can be retrieved in a batch.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param index The index of the value to return. - * @return The bytes of the names at the given index. - */ - com.google.protobuf.ByteString - getNamesBytes(int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java deleted file mode 100644 index c176179bed34..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponse.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for BatchGetAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse} - */ -public final class BatchGetAccessBindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) - BatchGetAccessBindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchGetAccessBindingsResponse.newBuilder() to construct. - private BatchGetAccessBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchGetAccessBindingsResponse() { - accessBindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchGetAccessBindingsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.Builder.class); - } - - public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accessBindings_; - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List getAccessBindingsList() { - return accessBindings_; - } - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List - getAccessBindingsOrBuilderList() { - return accessBindings_; - } - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public int getAccessBindingsCount() { - return accessBindings_.size(); - } - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - return accessBindings_.get(index); - } - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - return accessBindings_.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 < accessBindings_.size(); i++) { - output.writeMessage(1, accessBindings_.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 < accessBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accessBindings_.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.admin.v1alpha.BatchGetAccessBindingsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse other = (com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) obj; - - if (!getAccessBindingsList() - .equals(other.getAccessBindingsList())) 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 (getAccessBindingsCount() > 0) { - hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getAccessBindingsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for BatchGetAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - } else { - accessBindings_ = null; - accessBindingsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchGetAccessBindingsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse build() { - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result) { - if (accessBindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accessBindings_ = accessBindings_; - } else { - result.accessBindings_ = accessBindingsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse other) { - if (other == com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse.getDefaultInstance()) return this; - if (accessBindingsBuilder_ == null) { - if (!other.accessBindings_.isEmpty()) { - if (accessBindings_.isEmpty()) { - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccessBindingsIsMutable(); - accessBindings_.addAll(other.accessBindings_); - } - onChanged(); - } - } else { - if (!other.accessBindings_.isEmpty()) { - if (accessBindingsBuilder_.isEmpty()) { - accessBindingsBuilder_.dispose(); - accessBindingsBuilder_ = null; - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - accessBindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccessBindingsFieldBuilder() : null; - } else { - accessBindingsBuilder_.addAllMessages(other.accessBindings_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccessBinding m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessBinding.parser(), - extensionRegistry); - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(m); - } else { - accessBindingsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accessBindings_ = - java.util.Collections.emptyList(); - private void ensureAccessBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = new java.util.ArrayList(accessBindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> accessBindingsBuilder_; - - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List getAccessBindingsList() { - if (accessBindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accessBindings_); - } else { - return accessBindingsBuilder_.getMessageList(); - } - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public int getAccessBindingsCount() { - if (accessBindingsBuilder_ == null) { - return accessBindings_.size(); - } else { - return accessBindingsBuilder_.getCount(); - } - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); - } else { - return accessBindingsBuilder_.getMessage(index); - } - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, value); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAllAccessBindings( - java.lang.Iterable values) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accessBindings_); - onChanged(); - } else { - accessBindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder clearAccessBindings() { - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accessBindingsBuilder_.clear(); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder removeAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.remove(index); - onChanged(); - } else { - accessBindingsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().getBuilder(index); - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); } else { - return accessBindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsOrBuilderList() { - if (accessBindingsBuilder_ != null) { - return accessBindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accessBindings_); - } - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { - return getAccessBindingsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * The requested access bindings.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsBuilderList() { - return getAccessBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> - getAccessBindingsFieldBuilder() { - if (accessBindingsBuilder_ == null) { - accessBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( - accessBindings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accessBindings_ = null; - } - return accessBindingsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) - private static final com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchGetAccessBindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java deleted file mode 100644 index fa04044afddc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetAccessBindingsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchGetAccessBindingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchGetAccessBindingsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsList(); - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - int getAccessBindingsCount(); - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsOrBuilderList(); - /** - *
-   * The requested access bindings.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java deleted file mode 100644 index a4526650ab06..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequest.java +++ /dev/null @@ -1,1081 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for BatchUpdateAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest} - */ -public final class BatchUpdateAccessBindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) - BatchUpdateAccessBindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchUpdateAccessBindingsRequest.newBuilder() to construct. - private BatchUpdateAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchUpdateAccessBindingsRequest() { - parent_ = ""; - requests_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchUpdateAccessBindingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-   * match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-   * match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REQUESTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List requests_; - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List getRequestsList() { - return requests_; - } - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List - getRequestsOrBuilderList() { - return requests_; - } - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public int getRequestsCount() { - return requests_.size(); - } - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index) { - return requests_.get(index); - } - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index) { - return requests_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - output.writeMessage(2, requests_.get(i)); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - for (int i = 0; i < requests_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, requests_.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.admin.v1alpha.BatchUpdateAccessBindingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest other = (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getRequestsList() - .equals(other.getRequestsList())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (getRequestsCount() > 0) { - hash = (37 * hash) + REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getRequestsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for BatchUpdateAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest build() { - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result) { - if (requestsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - requests_ = java.util.Collections.unmodifiableList(requests_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.requests_ = requests_; - } else { - result.requests_ = requestsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (requestsBuilder_ == null) { - if (!other.requests_.isEmpty()) { - if (requests_.isEmpty()) { - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRequestsIsMutable(); - requests_.addAll(other.requests_); - } - onChanged(); - } - } else { - if (!other.requests_.isEmpty()) { - if (requestsBuilder_.isEmpty()) { - requestsBuilder_.dispose(); - requestsBuilder_ = null; - requests_ = other.requests_; - bitField0_ = (bitField0_ & ~0x00000002); - requestsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRequestsFieldBuilder() : null; - } else { - requestsBuilder_.addAllMessages(other.requests_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest m = - input.readMessage( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-     * match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-     * match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-     * match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-     * match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The account or property that owns the access bindings. The parent
-     * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-     * match this field.
-     * Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List requests_ = - java.util.Collections.emptyList(); - private void ensureRequestsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - requests_ = new java.util.ArrayList(requests_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> requestsBuilder_; - - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List getRequestsList() { - if (requestsBuilder_ == null) { - return java.util.Collections.unmodifiableList(requests_); - } else { - return requestsBuilder_.getMessageList(); - } - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public int getRequestsCount() { - if (requestsBuilder_ == null) { - return requests_.size(); - } else { - return requestsBuilder_.getCount(); - } - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); - } else { - return requestsBuilder_.getMessage(index); - } - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.set(index, value); - onChanged(); - } else { - requestsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRequests( - int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.set(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(value); - onChanged(); - } else { - requestsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest value) { - if (requestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRequestsIsMutable(); - requests_.add(index, value); - onChanged(); - } else { - requestsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addRequests( - int index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder builderForValue) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(index, builderForValue.build()); - onChanged(); - } else { - requestsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addAllRequests( - java.lang.Iterable values) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, requests_); - onChanged(); - } else { - requestsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearRequests() { - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - requestsBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder removeRequests(int index) { - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.remove(index); - onChanged(); - } else { - requestsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder getRequestsBuilder( - int index) { - return getRequestsFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index) { - if (requestsBuilder_ == null) { - return requests_.get(index); } else { - return requestsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getRequestsOrBuilderList() { - if (requestsBuilder_ != null) { - return requestsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(requests_); - } - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()); - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()); - } - /** - *
-     * Required. The requests specifying the access bindings to update.
-     * A maximum of 1000 access bindings can be updated in a batch.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder>( - requests_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - requests_ = null; - } - return requestsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) - private static final com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateAccessBindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java deleted file mode 100644 index 132c65f27ec0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsRequestOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchUpdateAccessBindingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-   * match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The account or property that owns the access bindings. The parent
-   * of all provided AccessBinding in UpdateAccessBindingRequest messages must
-   * match this field.
-   * Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsList(); - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getRequests(int index); - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - int getRequestsCount(); - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getRequestsOrBuilderList(); - /** - *
-   * Required. The requests specifying the access bindings to update.
-   * A maximum of 1000 access bindings can be updated in a batch.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.UpdateAccessBindingRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder getRequestsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java deleted file mode 100644 index 7ade3334e588..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponse.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for BatchUpdateAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse} - */ -public final class BatchUpdateAccessBindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) - BatchUpdateAccessBindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use BatchUpdateAccessBindingsResponse.newBuilder() to construct. - private BatchUpdateAccessBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BatchUpdateAccessBindingsResponse() { - accessBindings_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BatchUpdateAccessBindingsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.Builder.class); - } - - public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accessBindings_; - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List getAccessBindingsList() { - return accessBindings_; - } - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List - getAccessBindingsOrBuilderList() { - return accessBindings_; - } - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public int getAccessBindingsCount() { - return accessBindings_.size(); - } - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - return accessBindings_.get(index); - } - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - return accessBindings_.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 < accessBindings_.size(); i++) { - output.writeMessage(1, accessBindings_.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 < accessBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accessBindings_.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.admin.v1alpha.BatchUpdateAccessBindingsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse other = (com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) obj; - - if (!getAccessBindingsList() - .equals(other.getAccessBindingsList())) 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 (getAccessBindingsCount() > 0) { - hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getAccessBindingsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for BatchUpdateAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - } else { - accessBindings_ = null; - accessBindingsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_BatchUpdateAccessBindingsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse build() { - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse buildPartial() { - com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result) { - if (accessBindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accessBindings_ = accessBindings_; - } else { - result.accessBindings_ = accessBindingsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse other) { - if (other == com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse.getDefaultInstance()) return this; - if (accessBindingsBuilder_ == null) { - if (!other.accessBindings_.isEmpty()) { - if (accessBindings_.isEmpty()) { - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccessBindingsIsMutable(); - accessBindings_.addAll(other.accessBindings_); - } - onChanged(); - } - } else { - if (!other.accessBindings_.isEmpty()) { - if (accessBindingsBuilder_.isEmpty()) { - accessBindingsBuilder_.dispose(); - accessBindingsBuilder_ = null; - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - accessBindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccessBindingsFieldBuilder() : null; - } else { - accessBindingsBuilder_.addAllMessages(other.accessBindings_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccessBinding m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessBinding.parser(), - extensionRegistry); - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(m); - } else { - accessBindingsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accessBindings_ = - java.util.Collections.emptyList(); - private void ensureAccessBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = new java.util.ArrayList(accessBindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> accessBindingsBuilder_; - - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List getAccessBindingsList() { - if (accessBindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accessBindings_); - } else { - return accessBindingsBuilder_.getMessageList(); - } - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public int getAccessBindingsCount() { - if (accessBindingsBuilder_ == null) { - return accessBindings_.size(); - } else { - return accessBindingsBuilder_.getCount(); - } - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); - } else { - return accessBindingsBuilder_.getMessage(index); - } - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, value); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAllAccessBindings( - java.lang.Iterable values) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accessBindings_); - onChanged(); - } else { - accessBindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder clearAccessBindings() { - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accessBindingsBuilder_.clear(); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder removeAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.remove(index); - onChanged(); - } else { - accessBindingsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().getBuilder(index); - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); } else { - return accessBindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsOrBuilderList() { - if (accessBindingsBuilder_ != null) { - return accessBindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accessBindings_); - } - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { - return getAccessBindingsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * The access bindings updated.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsBuilderList() { - return getAccessBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> - getAccessBindingsFieldBuilder() { - if (accessBindingsBuilder_ == null) { - accessBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( - accessBindings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accessBindings_ = null; - } - return accessBindingsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) - private static final com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse(); - } - - public static com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BatchUpdateAccessBindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java deleted file mode 100644 index 4ccd80eb3ddd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateAccessBindingsResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface BatchUpdateAccessBindingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.BatchUpdateAccessBindingsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsList(); - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - int getAccessBindingsCount(); - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsOrBuilderList(); - /** - *
-   * The access bindings updated.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLink.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLink.java deleted file mode 100644 index 299d9cf7ab13..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BigQueryLink.java +++ /dev/null @@ -1,1876 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A link between a GA4 Property and BigQuery project.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BigQueryLink} - */ -public final class BigQueryLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.BigQueryLink) - BigQueryLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use BigQueryLink.newBuilder() to construct. - private BigQueryLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private BigQueryLink() { - name_ = ""; - project_ = ""; - exportStreams_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - excludedEvents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new BigQueryLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BigQueryLink.class, com.google.analytics.admin.v1alpha.BigQueryLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this BigQuery link.
-   * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
-   * Format: 'properties/1234/bigQueryLinks/abc567'
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this BigQuery link.
-   * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
-   * Format: 'properties/1234/bigQueryLinks/abc567'
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object project_ = ""; - /** - *
-   * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, the returned project will always
-   * have a project that contains a project number.
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - @java.lang.Override - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-   * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, the returned project will always
-   * have a project that contains a project number.
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when the link was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when the link was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when the link was created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int DAILY_EXPORT_ENABLED_FIELD_NUMBER = 4; - private boolean dailyExportEnabled_ = false; - /** - *
-   * If set true, enables daily data export to the linked Google Cloud project.
-   * 
- * - * bool daily_export_enabled = 4; - * @return The dailyExportEnabled. - */ - @java.lang.Override - public boolean getDailyExportEnabled() { - return dailyExportEnabled_; - } - - public static final int STREAMING_EXPORT_ENABLED_FIELD_NUMBER = 5; - private boolean streamingExportEnabled_ = false; - /** - *
-   * If set true, enables streaming export to the linked Google Cloud project.
-   * 
- * - * bool streaming_export_enabled = 5; - * @return The streamingExportEnabled. - */ - @java.lang.Override - public boolean getStreamingExportEnabled() { - return streamingExportEnabled_; - } - - public static final int FRESH_DAILY_EXPORT_ENABLED_FIELD_NUMBER = 9; - private boolean freshDailyExportEnabled_ = false; - /** - *
-   * If set true, enables fresh daily export to the linked Google Cloud project.
-   * 
- * - * bool fresh_daily_export_enabled = 9; - * @return The freshDailyExportEnabled. - */ - @java.lang.Override - public boolean getFreshDailyExportEnabled() { - return freshDailyExportEnabled_; - } - - public static final int INCLUDE_ADVERTISING_ID_FIELD_NUMBER = 6; - private boolean includeAdvertisingId_ = false; - /** - *
-   * If set true, exported data will include advertising identifiers for mobile
-   * app streams.
-   * 
- * - * bool include_advertising_id = 6; - * @return The includeAdvertisingId. - */ - @java.lang.Override - public boolean getIncludeAdvertisingId() { - return includeAdvertisingId_; - } - - public static final int EXPORT_STREAMS_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList exportStreams_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * The list of streams under the parent property for which data will be
-   * exported.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: ['properties/1000/dataStreams/2000']
-   * 
- * - * repeated string export_streams = 7; - * @return A list containing the exportStreams. - */ - public com.google.protobuf.ProtocolStringList - getExportStreamsList() { - return exportStreams_; - } - /** - *
-   * The list of streams under the parent property for which data will be
-   * exported.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: ['properties/1000/dataStreams/2000']
-   * 
- * - * repeated string export_streams = 7; - * @return The count of exportStreams. - */ - public int getExportStreamsCount() { - return exportStreams_.size(); - } - /** - *
-   * The list of streams under the parent property for which data will be
-   * exported.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: ['properties/1000/dataStreams/2000']
-   * 
- * - * repeated string export_streams = 7; - * @param index The index of the element to return. - * @return The exportStreams at the given index. - */ - public java.lang.String getExportStreams(int index) { - return exportStreams_.get(index); - } - /** - *
-   * The list of streams under the parent property for which data will be
-   * exported.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: ['properties/1000/dataStreams/2000']
-   * 
- * - * repeated string export_streams = 7; - * @param index The index of the value to return. - * @return The bytes of the exportStreams at the given index. - */ - public com.google.protobuf.ByteString - getExportStreamsBytes(int index) { - return exportStreams_.getByteString(index); - } - - public static final int EXCLUDED_EVENTS_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList excludedEvents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * The list of event names that will be excluded from exports.
-   * 
- * - * repeated string excluded_events = 8; - * @return A list containing the excludedEvents. - */ - public com.google.protobuf.ProtocolStringList - getExcludedEventsList() { - return excludedEvents_; - } - /** - *
-   * The list of event names that will be excluded from exports.
-   * 
- * - * repeated string excluded_events = 8; - * @return The count of excludedEvents. - */ - public int getExcludedEventsCount() { - return excludedEvents_.size(); - } - /** - *
-   * The list of event names that will be excluded from exports.
-   * 
- * - * repeated string excluded_events = 8; - * @param index The index of the element to return. - * @return The excludedEvents at the given index. - */ - public java.lang.String getExcludedEvents(int index) { - return excludedEvents_.get(index); - } - /** - *
-   * The list of event names that will be excluded from exports.
-   * 
- * - * repeated string excluded_events = 8; - * @param index The index of the value to return. - * @return The bytes of the excludedEvents at the given index. - */ - public com.google.protobuf.ByteString - getExcludedEventsBytes(int index) { - return excludedEvents_.getByteString(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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (dailyExportEnabled_ != false) { - output.writeBool(4, dailyExportEnabled_); - } - if (streamingExportEnabled_ != false) { - output.writeBool(5, streamingExportEnabled_); - } - if (includeAdvertisingId_ != false) { - output.writeBool(6, includeAdvertisingId_); - } - for (int i = 0; i < exportStreams_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, exportStreams_.getRaw(i)); - } - for (int i = 0; i < excludedEvents_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, excludedEvents_.getRaw(i)); - } - if (freshDailyExportEnabled_ != false) { - output.writeBool(9, freshDailyExportEnabled_); - } - 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(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - if (dailyExportEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, dailyExportEnabled_); - } - if (streamingExportEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, streamingExportEnabled_); - } - if (includeAdvertisingId_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, includeAdvertisingId_); - } - { - int dataSize = 0; - for (int i = 0; i < exportStreams_.size(); i++) { - dataSize += computeStringSizeNoTag(exportStreams_.getRaw(i)); - } - size += dataSize; - size += 1 * getExportStreamsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < excludedEvents_.size(); i++) { - dataSize += computeStringSizeNoTag(excludedEvents_.getRaw(i)); - } - size += dataSize; - size += 1 * getExcludedEventsList().size(); - } - if (freshDailyExportEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(9, freshDailyExportEnabled_); - } - 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.admin.v1alpha.BigQueryLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.BigQueryLink other = (com.google.analytics.admin.v1alpha.BigQueryLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (getDailyExportEnabled() - != other.getDailyExportEnabled()) return false; - if (getStreamingExportEnabled() - != other.getStreamingExportEnabled()) return false; - if (getFreshDailyExportEnabled() - != other.getFreshDailyExportEnabled()) return false; - if (getIncludeAdvertisingId() - != other.getIncludeAdvertisingId()) return false; - if (!getExportStreamsList() - .equals(other.getExportStreamsList())) return false; - if (!getExcludedEventsList() - .equals(other.getExcludedEventsList())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - hash = (37 * hash) + DAILY_EXPORT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDailyExportEnabled()); - hash = (37 * hash) + STREAMING_EXPORT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getStreamingExportEnabled()); - hash = (37 * hash) + FRESH_DAILY_EXPORT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getFreshDailyExportEnabled()); - hash = (37 * hash) + INCLUDE_ADVERTISING_ID_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeAdvertisingId()); - if (getExportStreamsCount() > 0) { - hash = (37 * hash) + EXPORT_STREAMS_FIELD_NUMBER; - hash = (53 * hash) + getExportStreamsList().hashCode(); - } - if (getExcludedEventsCount() > 0) { - hash = (37 * hash) + EXCLUDED_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getExcludedEventsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.BigQueryLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.BigQueryLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.BigQueryLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.BigQueryLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 Property and BigQuery project.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.BigQueryLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.BigQueryLink) - com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.BigQueryLink.class, com.google.analytics.admin.v1alpha.BigQueryLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.BigQueryLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - project_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - dailyExportEnabled_ = false; - streamingExportEnabled_ = false; - freshDailyExportEnabled_ = false; - includeAdvertisingId_ = false; - exportStreams_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - excludedEvents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLink build() { - com.google.analytics.admin.v1alpha.BigQueryLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLink buildPartial() { - com.google.analytics.admin.v1alpha.BigQueryLink result = new com.google.analytics.admin.v1alpha.BigQueryLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.BigQueryLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.project_ = project_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.dailyExportEnabled_ = dailyExportEnabled_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.streamingExportEnabled_ = streamingExportEnabled_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.freshDailyExportEnabled_ = freshDailyExportEnabled_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.includeAdvertisingId_ = includeAdvertisingId_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - exportStreams_.makeImmutable(); - result.exportStreams_ = exportStreams_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - excludedEvents_.makeImmutable(); - result.excludedEvents_ = excludedEvents_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.BigQueryLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.BigQueryLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.BigQueryLink other) { - if (other == com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.getDailyExportEnabled() != false) { - setDailyExportEnabled(other.getDailyExportEnabled()); - } - if (other.getStreamingExportEnabled() != false) { - setStreamingExportEnabled(other.getStreamingExportEnabled()); - } - if (other.getFreshDailyExportEnabled() != false) { - setFreshDailyExportEnabled(other.getFreshDailyExportEnabled()); - } - if (other.getIncludeAdvertisingId() != false) { - setIncludeAdvertisingId(other.getIncludeAdvertisingId()); - } - if (!other.exportStreams_.isEmpty()) { - if (exportStreams_.isEmpty()) { - exportStreams_ = other.exportStreams_; - bitField0_ |= 0x00000080; - } else { - ensureExportStreamsIsMutable(); - exportStreams_.addAll(other.exportStreams_); - } - onChanged(); - } - if (!other.excludedEvents_.isEmpty()) { - if (excludedEvents_.isEmpty()) { - excludedEvents_ = other.excludedEvents_; - bitField0_ |= 0x00000100; - } else { - ensureExcludedEventsIsMutable(); - excludedEvents_.addAll(other.excludedEvents_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - dailyExportEnabled_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - streamingExportEnabled_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - includeAdvertisingId_ = input.readBool(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - ensureExportStreamsIsMutable(); - exportStreams_.add(s); - break; - } // case 58 - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - ensureExcludedEventsIsMutable(); - excludedEvents_.add(s); - break; - } // case 66 - case 72: { - freshDailyExportEnabled_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 72 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this BigQuery link.
-     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
-     * Format: 'properties/1234/bigQueryLinks/abc567'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this BigQuery link.
-     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
-     * Format: 'properties/1234/bigQueryLinks/abc567'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this BigQuery link.
-     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
-     * Format: 'properties/1234/bigQueryLinks/abc567'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this BigQuery link.
-     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
-     * Format: 'properties/1234/bigQueryLinks/abc567'
-     * 
- * - * string name = 1 [(.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. Resource name of this BigQuery link.
-     * Format: 'properties/{property_id}/bigQueryLinks/{bigquery_link_id}'
-     * Format: 'properties/1234/bigQueryLinks/abc567'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, the returned project will always
-     * have a project that contains a project number.
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, the returned project will always
-     * have a project that contains a project number.
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, the returned project will always
-     * have a project that contains a project number.
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The project to set. - * @return This builder for chaining. - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - project_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, the returned project will always
-     * have a project that contains a project number.
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearProject() { - project_ = getDefaultInstance().getProject(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. The linked Google Cloud project. When creating a BigQueryLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, the returned project will always
-     * have a project that contains a project number.
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for project to set. - * @return This builder for chaining. - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - project_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when the link was created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private boolean dailyExportEnabled_ ; - /** - *
-     * If set true, enables daily data export to the linked Google Cloud project.
-     * 
- * - * bool daily_export_enabled = 4; - * @return The dailyExportEnabled. - */ - @java.lang.Override - public boolean getDailyExportEnabled() { - return dailyExportEnabled_; - } - /** - *
-     * If set true, enables daily data export to the linked Google Cloud project.
-     * 
- * - * bool daily_export_enabled = 4; - * @param value The dailyExportEnabled to set. - * @return This builder for chaining. - */ - public Builder setDailyExportEnabled(boolean value) { - - dailyExportEnabled_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * If set true, enables daily data export to the linked Google Cloud project.
-     * 
- * - * bool daily_export_enabled = 4; - * @return This builder for chaining. - */ - public Builder clearDailyExportEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - dailyExportEnabled_ = false; - onChanged(); - return this; - } - - private boolean streamingExportEnabled_ ; - /** - *
-     * If set true, enables streaming export to the linked Google Cloud project.
-     * 
- * - * bool streaming_export_enabled = 5; - * @return The streamingExportEnabled. - */ - @java.lang.Override - public boolean getStreamingExportEnabled() { - return streamingExportEnabled_; - } - /** - *
-     * If set true, enables streaming export to the linked Google Cloud project.
-     * 
- * - * bool streaming_export_enabled = 5; - * @param value The streamingExportEnabled to set. - * @return This builder for chaining. - */ - public Builder setStreamingExportEnabled(boolean value) { - - streamingExportEnabled_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * If set true, enables streaming export to the linked Google Cloud project.
-     * 
- * - * bool streaming_export_enabled = 5; - * @return This builder for chaining. - */ - public Builder clearStreamingExportEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - streamingExportEnabled_ = false; - onChanged(); - return this; - } - - private boolean freshDailyExportEnabled_ ; - /** - *
-     * If set true, enables fresh daily export to the linked Google Cloud project.
-     * 
- * - * bool fresh_daily_export_enabled = 9; - * @return The freshDailyExportEnabled. - */ - @java.lang.Override - public boolean getFreshDailyExportEnabled() { - return freshDailyExportEnabled_; - } - /** - *
-     * If set true, enables fresh daily export to the linked Google Cloud project.
-     * 
- * - * bool fresh_daily_export_enabled = 9; - * @param value The freshDailyExportEnabled to set. - * @return This builder for chaining. - */ - public Builder setFreshDailyExportEnabled(boolean value) { - - freshDailyExportEnabled_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * If set true, enables fresh daily export to the linked Google Cloud project.
-     * 
- * - * bool fresh_daily_export_enabled = 9; - * @return This builder for chaining. - */ - public Builder clearFreshDailyExportEnabled() { - bitField0_ = (bitField0_ & ~0x00000020); - freshDailyExportEnabled_ = false; - onChanged(); - return this; - } - - private boolean includeAdvertisingId_ ; - /** - *
-     * If set true, exported data will include advertising identifiers for mobile
-     * app streams.
-     * 
- * - * bool include_advertising_id = 6; - * @return The includeAdvertisingId. - */ - @java.lang.Override - public boolean getIncludeAdvertisingId() { - return includeAdvertisingId_; - } - /** - *
-     * If set true, exported data will include advertising identifiers for mobile
-     * app streams.
-     * 
- * - * bool include_advertising_id = 6; - * @param value The includeAdvertisingId to set. - * @return This builder for chaining. - */ - public Builder setIncludeAdvertisingId(boolean value) { - - includeAdvertisingId_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * If set true, exported data will include advertising identifiers for mobile
-     * app streams.
-     * 
- * - * bool include_advertising_id = 6; - * @return This builder for chaining. - */ - public Builder clearIncludeAdvertisingId() { - bitField0_ = (bitField0_ & ~0x00000040); - includeAdvertisingId_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList exportStreams_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureExportStreamsIsMutable() { - if (!exportStreams_.isModifiable()) { - exportStreams_ = new com.google.protobuf.LazyStringArrayList(exportStreams_); - } - bitField0_ |= 0x00000080; - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @return A list containing the exportStreams. - */ - public com.google.protobuf.ProtocolStringList - getExportStreamsList() { - exportStreams_.makeImmutable(); - return exportStreams_; - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @return The count of exportStreams. - */ - public int getExportStreamsCount() { - return exportStreams_.size(); - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @param index The index of the element to return. - * @return The exportStreams at the given index. - */ - public java.lang.String getExportStreams(int index) { - return exportStreams_.get(index); - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @param index The index of the value to return. - * @return The bytes of the exportStreams at the given index. - */ - public com.google.protobuf.ByteString - getExportStreamsBytes(int index) { - return exportStreams_.getByteString(index); - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @param index The index to set the value at. - * @param value The exportStreams to set. - * @return This builder for chaining. - */ - public Builder setExportStreams( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureExportStreamsIsMutable(); - exportStreams_.set(index, value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @param value The exportStreams to add. - * @return This builder for chaining. - */ - public Builder addExportStreams( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureExportStreamsIsMutable(); - exportStreams_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @param values The exportStreams to add. - * @return This builder for chaining. - */ - public Builder addAllExportStreams( - java.lang.Iterable values) { - ensureExportStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, exportStreams_); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @return This builder for chaining. - */ - public Builder clearExportStreams() { - exportStreams_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080);; - onChanged(); - return this; - } - /** - *
-     * The list of streams under the parent property for which data will be
-     * exported.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: ['properties/1000/dataStreams/2000']
-     * 
- * - * repeated string export_streams = 7; - * @param value The bytes of the exportStreams to add. - * @return This builder for chaining. - */ - public Builder addExportStreamsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureExportStreamsIsMutable(); - exportStreams_.add(value); - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList excludedEvents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureExcludedEventsIsMutable() { - if (!excludedEvents_.isModifiable()) { - excludedEvents_ = new com.google.protobuf.LazyStringArrayList(excludedEvents_); - } - bitField0_ |= 0x00000100; - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @return A list containing the excludedEvents. - */ - public com.google.protobuf.ProtocolStringList - getExcludedEventsList() { - excludedEvents_.makeImmutable(); - return excludedEvents_; - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @return The count of excludedEvents. - */ - public int getExcludedEventsCount() { - return excludedEvents_.size(); - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @param index The index of the element to return. - * @return The excludedEvents at the given index. - */ - public java.lang.String getExcludedEvents(int index) { - return excludedEvents_.get(index); - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @param index The index of the value to return. - * @return The bytes of the excludedEvents at the given index. - */ - public com.google.protobuf.ByteString - getExcludedEventsBytes(int index) { - return excludedEvents_.getByteString(index); - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @param index The index to set the value at. - * @param value The excludedEvents to set. - * @return This builder for chaining. - */ - public Builder setExcludedEvents( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureExcludedEventsIsMutable(); - excludedEvents_.set(index, value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @param value The excludedEvents to add. - * @return This builder for chaining. - */ - public Builder addExcludedEvents( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureExcludedEventsIsMutable(); - excludedEvents_.add(value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @param values The excludedEvents to add. - * @return This builder for chaining. - */ - public Builder addAllExcludedEvents( - java.lang.Iterable values) { - ensureExcludedEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, excludedEvents_); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @return This builder for chaining. - */ - public Builder clearExcludedEvents() { - excludedEvents_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; - onChanged(); - return this; - } - /** - *
-     * The list of event names that will be excluded from exports.
-     * 
- * - * repeated string excluded_events = 8; - * @param value The bytes of the excludedEvents to add. - * @return This builder for chaining. - */ - public Builder addExcludedEventsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureExcludedEventsIsMutable(); - excludedEvents_.add(value); - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.BigQueryLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.BigQueryLink) - private static final com.google.analytics.admin.v1alpha.BigQueryLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.BigQueryLink(); - } - - public static com.google.analytics.admin.v1alpha.BigQueryLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index 5b8d8eb3363b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} - */ -public final class CancelDisplayVideo360AdvertiserLinkProposalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) - CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. - private CancelDisplayVideo360AdvertiserLinkProposalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CancelDisplayVideo360AdvertiserLinkProposalRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CancelDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest other = (com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest build() { - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest buildPartial() { - com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest result = new com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest other) { - if (other == com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) - private static final com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CancelDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index ce3f4889e237..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java deleted file mode 100644 index 56a3b864d7c8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ /dev/null @@ -1,8509 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A description of a change to a single Google Analytics resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} - */ -public final class ChangeHistoryChange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) - ChangeHistoryChangeOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChangeHistoryChange.newBuilder() to construct. - private ChangeHistoryChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChangeHistoryChange() { - resource_ = ""; - action_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeHistoryChange(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); - } - - public interface ChangeHistoryResourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return The account. - */ - com.google.analytics.admin.v1alpha.Account getAccount(); - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); - - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * @return Whether the property field is set. - */ - boolean hasProperty(); - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * @return The property. - */ - com.google.analytics.admin.v1alpha.Property getProperty(); - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); - - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return Whether the firebaseLink field is set. - */ - boolean hasFirebaseLink(); - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return The firebaseLink. - */ - com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); - - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return Whether the googleAdsLink field is set. - */ - boolean hasGoogleAdsLink(); - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return The googleAdsLink. - */ - com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); - - /** - *
-     * A snapshot of a GoogleSignalsSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return Whether the googleSignalsSettings field is set. - */ - boolean hasGoogleSignalsSettings(); - /** - *
-     * A snapshot of a GoogleSignalsSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return The googleSignalsSettings. - */ - com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); - /** - *
-     * A snapshot of a GoogleSignalsSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder getGoogleSignalsSettingsOrBuilder(); - - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - boolean hasDisplayVideo360AdvertiserLink(); - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return The displayVideo360AdvertiserLink. - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(); - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder(); - - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-     * change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return Whether the displayVideo360AdvertiserLinkProposal field is set. - */ - boolean hasDisplayVideo360AdvertiserLinkProposal(); - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-     * change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return The displayVideo360AdvertiserLinkProposal. - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(); - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-     * change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalOrBuilder(); - - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return Whether the conversionEvent field is set. - */ - boolean hasConversionEvent(); - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return The conversionEvent. - */ - com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); - - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return Whether the measurementProtocolSecret field is set. - */ - boolean hasMeasurementProtocolSecret(); - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return The measurementProtocolSecret. - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder(); - - /** - *
-     * A snapshot of a CustomDimension resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return Whether the customDimension field is set. - */ - boolean hasCustomDimension(); - /** - *
-     * A snapshot of a CustomDimension resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return The customDimension. - */ - com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); - /** - *
-     * A snapshot of a CustomDimension resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); - - /** - *
-     * A snapshot of a CustomMetric resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return Whether the customMetric field is set. - */ - boolean hasCustomMetric(); - /** - *
-     * A snapshot of a CustomMetric resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return The customMetric. - */ - com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); - /** - *
-     * A snapshot of a CustomMetric resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); - - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return Whether the dataRetentionSettings field is set. - */ - boolean hasDataRetentionSettings(); - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return The dataRetentionSettings. - */ - com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings(); - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder(); - - /** - *
-     * A snapshot of a SearchAds360Link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return Whether the searchAds360Link field is set. - */ - boolean hasSearchAds360Link(); - /** - *
-     * A snapshot of a SearchAds360Link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return The searchAds360Link. - */ - com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link(); - /** - *
-     * A snapshot of a SearchAds360Link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder(); - - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return The dataStream. - */ - com.google.analytics.admin.v1alpha.DataStream getDataStream(); - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); - - /** - *
-     * A snapshot of AttributionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return Whether the attributionSettings field is set. - */ - boolean hasAttributionSettings(); - /** - *
-     * A snapshot of AttributionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return The attributionSettings. - */ - com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings(); - /** - *
-     * A snapshot of AttributionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder(); - - /** - *
-     * A snapshot of an ExpandedDataSet resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return Whether the expandedDataSet field is set. - */ - boolean hasExpandedDataSet(); - /** - *
-     * A snapshot of an ExpandedDataSet resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return The expandedDataSet. - */ - com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); - /** - *
-     * A snapshot of an ExpandedDataSet resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); - - /** - *
-     * A snapshot of a ChannelGroup resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return Whether the channelGroup field is set. - */ - boolean hasChannelGroup(); - /** - *
-     * A snapshot of a ChannelGroup resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return The channelGroup. - */ - com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup(); - /** - *
-     * A snapshot of a ChannelGroup resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder(); - - /** - *
-     * A snapshot of a BigQuery link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return Whether the bigqueryLink field is set. - */ - boolean hasBigqueryLink(); - /** - *
-     * A snapshot of a BigQuery link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return The bigqueryLink. - */ - com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLink(); - /** - *
-     * A snapshot of a BigQuery link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinkOrBuilder(); - - /** - *
-     * A snapshot of EnhancedMeasurementSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return Whether the enhancedMeasurementSettings field is set. - */ - boolean hasEnhancedMeasurementSettings(); - /** - *
-     * A snapshot of EnhancedMeasurementSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return The enhancedMeasurementSettings. - */ - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings(); - /** - *
-     * A snapshot of EnhancedMeasurementSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder getEnhancedMeasurementSettingsOrBuilder(); - - /** - *
-     * A snapshot of DataRedactionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return Whether the dataRedactionSettings field is set. - */ - boolean hasDataRedactionSettings(); - /** - *
-     * A snapshot of DataRedactionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return The dataRedactionSettings. - */ - com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings(); - /** - *
-     * A snapshot of DataRedactionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder getDataRedactionSettingsOrBuilder(); - - /** - *
-     * A snapshot of SKAdNetworkConversionValueSchema resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - boolean hasSkadnetworkConversionValueSchema(); - /** - *
-     * A snapshot of SKAdNetworkConversionValueSchema resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return The skadnetworkConversionValueSchema. - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema(); - /** - *
-     * A snapshot of SKAdNetworkConversionValueSchema resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder(); - - /** - *
-     * A snapshot of an AdSenseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return Whether the adsenseLink field is set. - */ - boolean hasAdsenseLink(); - /** - *
-     * A snapshot of an AdSenseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return The adsenseLink. - */ - com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink(); - /** - *
-     * A snapshot of an AdSenseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder(); - - /** - *
-     * A snapshot of an Audience resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - * @return Whether the audience field is set. - */ - boolean hasAudience(); - /** - *
-     * A snapshot of an Audience resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - * @return The audience. - */ - com.google.analytics.admin.v1alpha.Audience getAudience(); - /** - *
-     * A snapshot of an Audience resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); - - /** - *
-     * A snapshot of an EventCreateRule resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return Whether the eventCreateRule field is set. - */ - boolean hasEventCreateRule(); - /** - *
-     * A snapshot of an EventCreateRule resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return The eventCreateRule. - */ - com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule(); - /** - *
-     * A snapshot of an EventCreateRule resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder(); - - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); - } - /** - *
-   * A snapshot of a resource as before or after the result of a change in
-   * change history.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} - */ - public static final class ChangeHistoryResource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) - ChangeHistoryResourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeHistoryResource.newBuilder() to construct. - private ChangeHistoryResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChangeHistoryResource() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeHistoryResource(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder.class); - } - - private int resourceCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object resource_; - public enum ResourceCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ACCOUNT(1), - PROPERTY(2), - FIREBASE_LINK(6), - GOOGLE_ADS_LINK(7), - GOOGLE_SIGNALS_SETTINGS(8), - DISPLAY_VIDEO_360_ADVERTISER_LINK(9), - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(10), - CONVERSION_EVENT(11), - MEASUREMENT_PROTOCOL_SECRET(12), - CUSTOM_DIMENSION(13), - CUSTOM_METRIC(14), - DATA_RETENTION_SETTINGS(15), - SEARCH_ADS_360_LINK(16), - DATA_STREAM(18), - ATTRIBUTION_SETTINGS(20), - EXPANDED_DATA_SET(21), - CHANNEL_GROUP(22), - BIGQUERY_LINK(23), - ENHANCED_MEASUREMENT_SETTINGS(24), - DATA_REDACTION_SETTINGS(25), - SKADNETWORK_CONVERSION_VALUE_SCHEMA(26), - ADSENSE_LINK(27), - AUDIENCE(28), - EVENT_CREATE_RULE(29), - RESOURCE_NOT_SET(0); - private final int value; - private ResourceCase(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 ResourceCase valueOf(int value) { - return forNumber(value); - } - - public static ResourceCase forNumber(int value) { - switch (value) { - case 1: return ACCOUNT; - case 2: return PROPERTY; - case 6: return FIREBASE_LINK; - case 7: return GOOGLE_ADS_LINK; - case 8: return GOOGLE_SIGNALS_SETTINGS; - case 9: return DISPLAY_VIDEO_360_ADVERTISER_LINK; - case 10: return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; - case 11: return CONVERSION_EVENT; - case 12: return MEASUREMENT_PROTOCOL_SECRET; - case 13: return CUSTOM_DIMENSION; - case 14: return CUSTOM_METRIC; - case 15: return DATA_RETENTION_SETTINGS; - case 16: return SEARCH_ADS_360_LINK; - case 18: return DATA_STREAM; - case 20: return ATTRIBUTION_SETTINGS; - case 21: return EXPANDED_DATA_SET; - case 22: return CHANNEL_GROUP; - case 23: return BIGQUERY_LINK; - case 24: return ENHANCED_MEASUREMENT_SETTINGS; - case 25: return DATA_REDACTION_SETTINGS; - case 26: return SKADNETWORK_CONVERSION_VALUE_SCHEMA; - case 27: return ADSENSE_LINK; - case 28: return AUDIENCE; - case 29: return EVENT_CREATE_RULE; - case 0: return RESOURCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResourceCase - getResourceCase() { - return ResourceCase.forNumber( - resourceCase_); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return resourceCase_ == 1; - } - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account getAccount() { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1alpha.Account) resource_; - } - return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1alpha.Account) resource_; - } - return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - - public static final int PROPERTY_FIELD_NUMBER = 2; - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return resourceCase_ == 2; - } - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getProperty() { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1alpha.Property) resource_; - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1alpha.Property) resource_; - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - - public static final int FIREBASE_LINK_FIELD_NUMBER = 6; - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return Whether the firebaseLink field is set. - */ - @java.lang.Override - public boolean hasFirebaseLink() { - return resourceCase_ == 6; - } - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return The firebaseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); - } - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); - } - - public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 7; - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return resourceCase_ == 7; - } - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); - } - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); - } - - public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 8; - /** - *
-     * A snapshot of a GoogleSignalsSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return Whether the googleSignalsSettings field is set. - */ - @java.lang.Override - public boolean hasGoogleSignalsSettings() { - return resourceCase_ == 8; - } - /** - *
-     * A snapshot of a GoogleSignalsSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return The googleSignalsSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { - if (resourceCase_ == 8) { - return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); - } - /** - *
-     * A snapshot of a GoogleSignalsSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder getGoogleSignalsSettingsOrBuilder() { - if (resourceCase_ == 8) { - return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 9; - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLink() { - return resourceCase_ == 9; - } - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return The displayVideo360AdvertiserLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - if (resourceCase_ == 9) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); - } - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - if (resourceCase_ == 9) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER = 10; - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-     * change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return Whether the displayVideo360AdvertiserLinkProposal field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLinkProposal() { - return resourceCase_ == 10; - } - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-     * change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return The displayVideo360AdvertiserLinkProposal. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal() { - if (resourceCase_ == 10) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance(); - } - /** - *
-     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-     * change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalOrBuilder() { - if (resourceCase_ == 10) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance(); - } - - public static final int CONVERSION_EVENT_FIELD_NUMBER = 11; - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return resourceCase_ == 11; - } - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); - } - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); - } - - public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 12; - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return resourceCase_ == 12; - } - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); - } - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); - } - - public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 13; - /** - *
-     * A snapshot of a CustomDimension resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return Whether the customDimension field is set. - */ - @java.lang.Override - public boolean hasCustomDimension() { - return resourceCase_ == 13; - } - /** - *
-     * A snapshot of a CustomDimension resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return The customDimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { - if (resourceCase_ == 13) { - return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; - } - return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); - } - /** - *
-     * A snapshot of a CustomDimension resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - if (resourceCase_ == 13) { - return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; - } - return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); - } - - public static final int CUSTOM_METRIC_FIELD_NUMBER = 14; - /** - *
-     * A snapshot of a CustomMetric resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return Whether the customMetric field is set. - */ - @java.lang.Override - public boolean hasCustomMetric() { - return resourceCase_ == 14; - } - /** - *
-     * A snapshot of a CustomMetric resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return The customMetric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { - if (resourceCase_ == 14) { - return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; - } - return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); - } - /** - *
-     * A snapshot of a CustomMetric resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { - if (resourceCase_ == 14) { - return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; - } - return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); - } - - public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 15; - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return Whether the dataRetentionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRetentionSettings() { - return resourceCase_ == 15; - } - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return The dataRetentionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); - } - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); - } - - public static final int SEARCH_ADS_360_LINK_FIELD_NUMBER = 16; - /** - *
-     * A snapshot of a SearchAds360Link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return Whether the searchAds360Link field is set. - */ - @java.lang.Override - public boolean hasSearchAds360Link() { - return resourceCase_ == 16; - } - /** - *
-     * A snapshot of a SearchAds360Link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return The searchAds360Link. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { - if (resourceCase_ == 16) { - return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; - } - return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); - } - /** - *
-     * A snapshot of a SearchAds360Link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder() { - if (resourceCase_ == 16) { - return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; - } - return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); - } - - public static final int DATA_STREAM_FIELD_NUMBER = 18; - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return resourceCase_ == 18; - } - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1alpha.DataStream) resource_; - } - return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1alpha.DataStream) resource_; - } - return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } - - public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER = 20; - /** - *
-     * A snapshot of AttributionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return Whether the attributionSettings field is set. - */ - @java.lang.Override - public boolean hasAttributionSettings() { - return resourceCase_ == 20; - } - /** - *
-     * A snapshot of AttributionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return The attributionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { - if (resourceCase_ == 20) { - return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); - } - /** - *
-     * A snapshot of AttributionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder() { - if (resourceCase_ == 20) { - return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); - } - - public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 21; - /** - *
-     * A snapshot of an ExpandedDataSet resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return Whether the expandedDataSet field is set. - */ - @java.lang.Override - public boolean hasExpandedDataSet() { - return resourceCase_ == 21; - } - /** - *
-     * A snapshot of an ExpandedDataSet resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return The expandedDataSet. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { - if (resourceCase_ == 21) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); - } - /** - *
-     * A snapshot of an ExpandedDataSet resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { - if (resourceCase_ == 21) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); - } - - public static final int CHANNEL_GROUP_FIELD_NUMBER = 22; - /** - *
-     * A snapshot of a ChannelGroup resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return Whether the channelGroup field is set. - */ - @java.lang.Override - public boolean hasChannelGroup() { - return resourceCase_ == 22; - } - /** - *
-     * A snapshot of a ChannelGroup resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return The channelGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { - if (resourceCase_ == 22) { - return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; - } - return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); - } - /** - *
-     * A snapshot of a ChannelGroup resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { - if (resourceCase_ == 22) { - return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; - } - return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); - } - - public static final int BIGQUERY_LINK_FIELD_NUMBER = 23; - /** - *
-     * A snapshot of a BigQuery link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return Whether the bigqueryLink field is set. - */ - @java.lang.Override - public boolean hasBigqueryLink() { - return resourceCase_ == 23; - } - /** - *
-     * A snapshot of a BigQuery link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return The bigqueryLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLink() { - if (resourceCase_ == 23) { - return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; - } - return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); - } - /** - *
-     * A snapshot of a BigQuery link resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinkOrBuilder() { - if (resourceCase_ == 23) { - return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; - } - return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); - } - - public static final int ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER = 24; - /** - *
-     * A snapshot of EnhancedMeasurementSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return Whether the enhancedMeasurementSettings field is set. - */ - @java.lang.Override - public boolean hasEnhancedMeasurementSettings() { - return resourceCase_ == 24; - } - /** - *
-     * A snapshot of EnhancedMeasurementSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return The enhancedMeasurementSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings() { - if (resourceCase_ == 24) { - return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; - } - return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); - } - /** - *
-     * A snapshot of EnhancedMeasurementSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder getEnhancedMeasurementSettingsOrBuilder() { - if (resourceCase_ == 24) { - return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; - } - return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); - } - - public static final int DATA_REDACTION_SETTINGS_FIELD_NUMBER = 25; - /** - *
-     * A snapshot of DataRedactionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return Whether the dataRedactionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRedactionSettings() { - return resourceCase_ == 25; - } - /** - *
-     * A snapshot of DataRedactionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return The dataRedactionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { - if (resourceCase_ == 25) { - return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); - } - /** - *
-     * A snapshot of DataRedactionSettings resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder getDataRedactionSettingsOrBuilder() { - if (resourceCase_ == 25) { - return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); - } - - public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER = 26; - /** - *
-     * A snapshot of SKAdNetworkConversionValueSchema resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - @java.lang.Override - public boolean hasSkadnetworkConversionValueSchema() { - return resourceCase_ == 26; - } - /** - *
-     * A snapshot of SKAdNetworkConversionValueSchema resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return The skadnetworkConversionValueSchema. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema() { - if (resourceCase_ == 26) { - return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; - } - return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance(); - } - /** - *
-     * A snapshot of SKAdNetworkConversionValueSchema resource in change
-     * history.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder() { - if (resourceCase_ == 26) { - return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; - } - return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance(); - } - - public static final int ADSENSE_LINK_FIELD_NUMBER = 27; - /** - *
-     * A snapshot of an AdSenseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return Whether the adsenseLink field is set. - */ - @java.lang.Override - public boolean hasAdsenseLink() { - return resourceCase_ == 27; - } - /** - *
-     * A snapshot of an AdSenseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return The adsenseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { - if (resourceCase_ == 27) { - return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; - } - return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); - } - /** - *
-     * A snapshot of an AdSenseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { - if (resourceCase_ == 27) { - return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; - } - return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); - } - - public static final int AUDIENCE_FIELD_NUMBER = 28; - /** - *
-     * A snapshot of an Audience resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - * @return Whether the audience field is set. - */ - @java.lang.Override - public boolean hasAudience() { - return resourceCase_ == 28; - } - /** - *
-     * A snapshot of an Audience resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - * @return The audience. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience getAudience() { - if (resourceCase_ == 28) { - return (com.google.analytics.admin.v1alpha.Audience) resource_; - } - return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); - } - /** - *
-     * A snapshot of an Audience resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { - if (resourceCase_ == 28) { - return (com.google.analytics.admin.v1alpha.Audience) resource_; - } - return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); - } - - public static final int EVENT_CREATE_RULE_FIELD_NUMBER = 29; - /** - *
-     * A snapshot of an EventCreateRule resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return Whether the eventCreateRule field is set. - */ - @java.lang.Override - public boolean hasEventCreateRule() { - return resourceCase_ == 29; - } - /** - *
-     * A snapshot of an EventCreateRule resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return The eventCreateRule. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { - if (resourceCase_ == 29) { - return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; - } - return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); - } - /** - *
-     * A snapshot of an EventCreateRule resource in change history.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { - if (resourceCase_ == 29) { - return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; - } - return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (resourceCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); - } - if (resourceCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); - } - if (resourceCase_ == 6) { - output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); - } - if (resourceCase_ == 7) { - output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); - } - if (resourceCase_ == 8) { - output.writeMessage(8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); - } - if (resourceCase_ == 9) { - output.writeMessage(9, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_); - } - if (resourceCase_ == 10) { - output.writeMessage(10, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_); - } - if (resourceCase_ == 11) { - output.writeMessage(11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); - } - if (resourceCase_ == 12) { - output.writeMessage(12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); - } - if (resourceCase_ == 13) { - output.writeMessage(13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); - } - if (resourceCase_ == 14) { - output.writeMessage(14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); - } - if (resourceCase_ == 15) { - output.writeMessage(15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); - } - if (resourceCase_ == 16) { - output.writeMessage(16, (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_); - } - if (resourceCase_ == 18) { - output.writeMessage(18, (com.google.analytics.admin.v1alpha.DataStream) resource_); - } - if (resourceCase_ == 20) { - output.writeMessage(20, (com.google.analytics.admin.v1alpha.AttributionSettings) resource_); - } - if (resourceCase_ == 21) { - output.writeMessage(21, (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_); - } - if (resourceCase_ == 22) { - output.writeMessage(22, (com.google.analytics.admin.v1alpha.ChannelGroup) resource_); - } - if (resourceCase_ == 23) { - output.writeMessage(23, (com.google.analytics.admin.v1alpha.BigQueryLink) resource_); - } - if (resourceCase_ == 24) { - output.writeMessage(24, (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_); - } - if (resourceCase_ == 25) { - output.writeMessage(25, (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_); - } - if (resourceCase_ == 26) { - output.writeMessage(26, (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_); - } - if (resourceCase_ == 27) { - output.writeMessage(27, (com.google.analytics.admin.v1alpha.AdSenseLink) resource_); - } - if (resourceCase_ == 28) { - output.writeMessage(28, (com.google.analytics.admin.v1alpha.Audience) resource_); - } - if (resourceCase_ == 29) { - output.writeMessage(29, (com.google.analytics.admin.v1alpha.EventCreateRule) resource_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1alpha.Account) resource_); - } - if (resourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.Property) resource_); - } - if (resourceCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); - } - if (resourceCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); - } - if (resourceCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); - } - if (resourceCase_ == 9) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(9, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_); - } - if (resourceCase_ == 10) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_); - } - if (resourceCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); - } - if (resourceCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); - } - if (resourceCase_ == 13) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); - } - if (resourceCase_ == 14) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); - } - if (resourceCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); - } - if (resourceCase_ == 16) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(16, (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_); - } - if (resourceCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (com.google.analytics.admin.v1alpha.DataStream) resource_); - } - if (resourceCase_ == 20) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(20, (com.google.analytics.admin.v1alpha.AttributionSettings) resource_); - } - if (resourceCase_ == 21) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(21, (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_); - } - if (resourceCase_ == 22) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(22, (com.google.analytics.admin.v1alpha.ChannelGroup) resource_); - } - if (resourceCase_ == 23) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(23, (com.google.analytics.admin.v1alpha.BigQueryLink) resource_); - } - if (resourceCase_ == 24) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(24, (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_); - } - if (resourceCase_ == 25) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(25, (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_); - } - if (resourceCase_ == 26) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(26, (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_); - } - if (resourceCase_ == 27) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(27, (com.google.analytics.admin.v1alpha.AdSenseLink) resource_); - } - if (resourceCase_ == 28) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(28, (com.google.analytics.admin.v1alpha.Audience) resource_); - } - if (resourceCase_ == 29) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(29, (com.google.analytics.admin.v1alpha.EventCreateRule) resource_); - } - 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.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other = (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) obj; - - if (!getResourceCase().equals(other.getResourceCase())) return false; - switch (resourceCase_) { - case 1: - if (!getAccount() - .equals(other.getAccount())) return false; - break; - case 2: - if (!getProperty() - .equals(other.getProperty())) return false; - break; - case 6: - if (!getFirebaseLink() - .equals(other.getFirebaseLink())) return false; - break; - case 7: - if (!getGoogleAdsLink() - .equals(other.getGoogleAdsLink())) return false; - break; - case 8: - if (!getGoogleSignalsSettings() - .equals(other.getGoogleSignalsSettings())) return false; - break; - case 9: - if (!getDisplayVideo360AdvertiserLink() - .equals(other.getDisplayVideo360AdvertiserLink())) return false; - break; - case 10: - if (!getDisplayVideo360AdvertiserLinkProposal() - .equals(other.getDisplayVideo360AdvertiserLinkProposal())) return false; - break; - case 11: - if (!getConversionEvent() - .equals(other.getConversionEvent())) return false; - break; - case 12: - if (!getMeasurementProtocolSecret() - .equals(other.getMeasurementProtocolSecret())) return false; - break; - case 13: - if (!getCustomDimension() - .equals(other.getCustomDimension())) return false; - break; - case 14: - if (!getCustomMetric() - .equals(other.getCustomMetric())) return false; - break; - case 15: - if (!getDataRetentionSettings() - .equals(other.getDataRetentionSettings())) return false; - break; - case 16: - if (!getSearchAds360Link() - .equals(other.getSearchAds360Link())) return false; - break; - case 18: - if (!getDataStream() - .equals(other.getDataStream())) return false; - break; - case 20: - if (!getAttributionSettings() - .equals(other.getAttributionSettings())) return false; - break; - case 21: - if (!getExpandedDataSet() - .equals(other.getExpandedDataSet())) return false; - break; - case 22: - if (!getChannelGroup() - .equals(other.getChannelGroup())) return false; - break; - case 23: - if (!getBigqueryLink() - .equals(other.getBigqueryLink())) return false; - break; - case 24: - if (!getEnhancedMeasurementSettings() - .equals(other.getEnhancedMeasurementSettings())) return false; - break; - case 25: - if (!getDataRedactionSettings() - .equals(other.getDataRedactionSettings())) return false; - break; - case 26: - if (!getSkadnetworkConversionValueSchema() - .equals(other.getSkadnetworkConversionValueSchema())) return false; - break; - case 27: - if (!getAdsenseLink() - .equals(other.getAdsenseLink())) return false; - break; - case 28: - if (!getAudience() - .equals(other.getAudience())) return false; - break; - case 29: - if (!getEventCreateRule() - .equals(other.getEventCreateRule())) 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 (resourceCase_) { - case 1: - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - break; - case 2: - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - break; - case 6: - hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseLink().hashCode(); - break; - case 7: - hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLink().hashCode(); - break; - case 8: - hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); - break; - case 9: - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); - break; - case 10: - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposal().hashCode(); - break; - case 11: - hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getConversionEvent().hashCode(); - break; - case 12: - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); - break; - case 13: - hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getCustomDimension().hashCode(); - break; - case 14: - hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; - hash = (53 * hash) + getCustomMetric().hashCode(); - break; - case 15: - hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDataRetentionSettings().hashCode(); - break; - case 16: - hash = (37 * hash) + SEARCH_ADS_360_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSearchAds360Link().hashCode(); - break; - case 18: - hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getDataStream().hashCode(); - break; - case 20: - hash = (37 * hash) + ATTRIBUTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getAttributionSettings().hashCode(); - break; - case 21: - hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; - hash = (53 * hash) + getExpandedDataSet().hashCode(); - break; - case 22: - hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getChannelGroup().hashCode(); - break; - case 23: - hash = (37 * hash) + BIGQUERY_LINK_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryLink().hashCode(); - break; - case 24: - hash = (37 * hash) + ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getEnhancedMeasurementSettings().hashCode(); - break; - case 25: - hash = (37 * hash) + DATA_REDACTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDataRedactionSettings().hashCode(); - break; - case 26: - hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSkadnetworkConversionValueSchema().hashCode(); - break; - case 27: - hash = (37 * hash) + ADSENSE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getAdsenseLink().hashCode(); - break; - case 28: - hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; - hash = (53 * hash) + getAudience().hashCode(); - break; - case 29: - hash = (37 * hash) + EVENT_CREATE_RULE_FIELD_NUMBER; - hash = (53 * hash) + getEventCreateRule().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A snapshot of a resource as before or after the result of a change in
-     * change history.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accountBuilder_ != null) { - accountBuilder_.clear(); - } - if (propertyBuilder_ != null) { - propertyBuilder_.clear(); - } - if (firebaseLinkBuilder_ != null) { - firebaseLinkBuilder_.clear(); - } - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.clear(); - } - if (googleSignalsSettingsBuilder_ != null) { - googleSignalsSettingsBuilder_.clear(); - } - if (displayVideo360AdvertiserLinkBuilder_ != null) { - displayVideo360AdvertiserLinkBuilder_.clear(); - } - if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { - displayVideo360AdvertiserLinkProposalBuilder_.clear(); - } - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.clear(); - } - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.clear(); - } - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.clear(); - } - if (customMetricBuilder_ != null) { - customMetricBuilder_.clear(); - } - if (dataRetentionSettingsBuilder_ != null) { - dataRetentionSettingsBuilder_.clear(); - } - if (searchAds360LinkBuilder_ != null) { - searchAds360LinkBuilder_.clear(); - } - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.clear(); - } - if (attributionSettingsBuilder_ != null) { - attributionSettingsBuilder_.clear(); - } - if (expandedDataSetBuilder_ != null) { - expandedDataSetBuilder_.clear(); - } - if (channelGroupBuilder_ != null) { - channelGroupBuilder_.clear(); - } - if (bigqueryLinkBuilder_ != null) { - bigqueryLinkBuilder_.clear(); - } - if (enhancedMeasurementSettingsBuilder_ != null) { - enhancedMeasurementSettingsBuilder_.clear(); - } - if (dataRedactionSettingsBuilder_ != null) { - dataRedactionSettingsBuilder_.clear(); - } - if (skadnetworkConversionValueSchemaBuilder_ != null) { - skadnetworkConversionValueSchemaBuilder_.clear(); - } - if (adsenseLinkBuilder_ != null) { - adsenseLinkBuilder_.clear(); - } - if (audienceBuilder_ != null) { - audienceBuilder_.clear(); - } - if (eventCreateRuleBuilder_ != null) { - eventCreateRuleBuilder_.clear(); - } - resourceCase_ = 0; - resource_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource build() { - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource buildPartial() { - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result) { - result.resourceCase_ = resourceCase_; - result.resource_ = this.resource_; - if (resourceCase_ == 1 && - accountBuilder_ != null) { - result.resource_ = accountBuilder_.build(); - } - if (resourceCase_ == 2 && - propertyBuilder_ != null) { - result.resource_ = propertyBuilder_.build(); - } - if (resourceCase_ == 6 && - firebaseLinkBuilder_ != null) { - result.resource_ = firebaseLinkBuilder_.build(); - } - if (resourceCase_ == 7 && - googleAdsLinkBuilder_ != null) { - result.resource_ = googleAdsLinkBuilder_.build(); - } - if (resourceCase_ == 8 && - googleSignalsSettingsBuilder_ != null) { - result.resource_ = googleSignalsSettingsBuilder_.build(); - } - if (resourceCase_ == 9 && - displayVideo360AdvertiserLinkBuilder_ != null) { - result.resource_ = displayVideo360AdvertiserLinkBuilder_.build(); - } - if (resourceCase_ == 10 && - displayVideo360AdvertiserLinkProposalBuilder_ != null) { - result.resource_ = displayVideo360AdvertiserLinkProposalBuilder_.build(); - } - if (resourceCase_ == 11 && - conversionEventBuilder_ != null) { - result.resource_ = conversionEventBuilder_.build(); - } - if (resourceCase_ == 12 && - measurementProtocolSecretBuilder_ != null) { - result.resource_ = measurementProtocolSecretBuilder_.build(); - } - if (resourceCase_ == 13 && - customDimensionBuilder_ != null) { - result.resource_ = customDimensionBuilder_.build(); - } - if (resourceCase_ == 14 && - customMetricBuilder_ != null) { - result.resource_ = customMetricBuilder_.build(); - } - if (resourceCase_ == 15 && - dataRetentionSettingsBuilder_ != null) { - result.resource_ = dataRetentionSettingsBuilder_.build(); - } - if (resourceCase_ == 16 && - searchAds360LinkBuilder_ != null) { - result.resource_ = searchAds360LinkBuilder_.build(); - } - if (resourceCase_ == 18 && - dataStreamBuilder_ != null) { - result.resource_ = dataStreamBuilder_.build(); - } - if (resourceCase_ == 20 && - attributionSettingsBuilder_ != null) { - result.resource_ = attributionSettingsBuilder_.build(); - } - if (resourceCase_ == 21 && - expandedDataSetBuilder_ != null) { - result.resource_ = expandedDataSetBuilder_.build(); - } - if (resourceCase_ == 22 && - channelGroupBuilder_ != null) { - result.resource_ = channelGroupBuilder_.build(); - } - if (resourceCase_ == 23 && - bigqueryLinkBuilder_ != null) { - result.resource_ = bigqueryLinkBuilder_.build(); - } - if (resourceCase_ == 24 && - enhancedMeasurementSettingsBuilder_ != null) { - result.resource_ = enhancedMeasurementSettingsBuilder_.build(); - } - if (resourceCase_ == 25 && - dataRedactionSettingsBuilder_ != null) { - result.resource_ = dataRedactionSettingsBuilder_.build(); - } - if (resourceCase_ == 26 && - skadnetworkConversionValueSchemaBuilder_ != null) { - result.resource_ = skadnetworkConversionValueSchemaBuilder_.build(); - } - if (resourceCase_ == 27 && - adsenseLinkBuilder_ != null) { - result.resource_ = adsenseLinkBuilder_.build(); - } - if (resourceCase_ == 28 && - audienceBuilder_ != null) { - result.resource_ = audienceBuilder_.build(); - } - if (resourceCase_ == 29 && - eventCreateRuleBuilder_ != null) { - result.resource_ = eventCreateRuleBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other) { - if (other == com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance()) return this; - switch (other.getResourceCase()) { - case ACCOUNT: { - mergeAccount(other.getAccount()); - break; - } - case PROPERTY: { - mergeProperty(other.getProperty()); - break; - } - case FIREBASE_LINK: { - mergeFirebaseLink(other.getFirebaseLink()); - break; - } - case GOOGLE_ADS_LINK: { - mergeGoogleAdsLink(other.getGoogleAdsLink()); - break; - } - case GOOGLE_SIGNALS_SETTINGS: { - mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); - break; - } - case DISPLAY_VIDEO_360_ADVERTISER_LINK: { - mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); - break; - } - case DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL: { - mergeDisplayVideo360AdvertiserLinkProposal(other.getDisplayVideo360AdvertiserLinkProposal()); - break; - } - case CONVERSION_EVENT: { - mergeConversionEvent(other.getConversionEvent()); - break; - } - case MEASUREMENT_PROTOCOL_SECRET: { - mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); - break; - } - case CUSTOM_DIMENSION: { - mergeCustomDimension(other.getCustomDimension()); - break; - } - case CUSTOM_METRIC: { - mergeCustomMetric(other.getCustomMetric()); - break; - } - case DATA_RETENTION_SETTINGS: { - mergeDataRetentionSettings(other.getDataRetentionSettings()); - break; - } - case SEARCH_ADS_360_LINK: { - mergeSearchAds360Link(other.getSearchAds360Link()); - break; - } - case DATA_STREAM: { - mergeDataStream(other.getDataStream()); - break; - } - case ATTRIBUTION_SETTINGS: { - mergeAttributionSettings(other.getAttributionSettings()); - break; - } - case EXPANDED_DATA_SET: { - mergeExpandedDataSet(other.getExpandedDataSet()); - break; - } - case CHANNEL_GROUP: { - mergeChannelGroup(other.getChannelGroup()); - break; - } - case BIGQUERY_LINK: { - mergeBigqueryLink(other.getBigqueryLink()); - break; - } - case ENHANCED_MEASUREMENT_SETTINGS: { - mergeEnhancedMeasurementSettings(other.getEnhancedMeasurementSettings()); - break; - } - case DATA_REDACTION_SETTINGS: { - mergeDataRedactionSettings(other.getDataRedactionSettings()); - break; - } - case SKADNETWORK_CONVERSION_VALUE_SCHEMA: { - mergeSkadnetworkConversionValueSchema(other.getSkadnetworkConversionValueSchema()); - break; - } - case ADSENSE_LINK: { - mergeAdsenseLink(other.getAdsenseLink()); - break; - } - case AUDIENCE: { - mergeAudience(other.getAudience()); - break; - } - case EVENT_CREATE_RULE: { - mergeEventCreateRule(other.getEventCreateRule()); - break; - } - case RESOURCE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAccountFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getPropertyFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 2; - break; - } // case 18 - case 50: { - input.readMessage( - getFirebaseLinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getGoogleAdsLinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getGoogleSignalsSettingsFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 8; - break; - } // case 66 - case 74: { - input.readMessage( - getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 9; - break; - } // case 74 - case 82: { - input.readMessage( - getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 10; - break; - } // case 82 - case 90: { - input.readMessage( - getConversionEventFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 11; - break; - } // case 90 - case 98: { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 12; - break; - } // case 98 - case 106: { - input.readMessage( - getCustomDimensionFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 13; - break; - } // case 106 - case 114: { - input.readMessage( - getCustomMetricFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 14; - break; - } // case 114 - case 122: { - input.readMessage( - getDataRetentionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 15; - break; - } // case 122 - case 130: { - input.readMessage( - getSearchAds360LinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 16; - break; - } // case 130 - case 146: { - input.readMessage( - getDataStreamFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 18; - break; - } // case 146 - case 162: { - input.readMessage( - getAttributionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 20; - break; - } // case 162 - case 170: { - input.readMessage( - getExpandedDataSetFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 21; - break; - } // case 170 - case 178: { - input.readMessage( - getChannelGroupFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 22; - break; - } // case 178 - case 186: { - input.readMessage( - getBigqueryLinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 23; - break; - } // case 186 - case 194: { - input.readMessage( - getEnhancedMeasurementSettingsFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 24; - break; - } // case 194 - case 202: { - input.readMessage( - getDataRedactionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 25; - break; - } // case 202 - case 210: { - input.readMessage( - getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 26; - break; - } // case 210 - case 218: { - input.readMessage( - getAdsenseLinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 27; - break; - } // case 218 - case 226: { - input.readMessage( - getAudienceFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 28; - break; - } // case 226 - case 234: { - input.readMessage( - getEventCreateRuleFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 29; - break; - } // case 234 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int resourceCase_ = 0; - private java.lang.Object resource_; - public ResourceCase - getResourceCase() { - return ResourceCase.forNumber( - resourceCase_); - } - - public Builder clearResource() { - resourceCase_ = 0; - resource_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> accountBuilder_; - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return resourceCase_ == 1; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account getAccount() { - if (accountBuilder_ == null) { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1alpha.Account) resource_; - } - return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } else { - if (resourceCase_ == 1) { - return accountBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - resourceCase_ = 1; - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder setAccount( - com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 1; - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { - if (accountBuilder_ == null) { - if (resourceCase_ == 1 && - resource_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.Account.newBuilder((com.google.analytics.admin.v1alpha.Account) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 1) { - accountBuilder_.mergeFrom(value); - } else { - accountBuilder_.setMessage(value); - } - } - resourceCase_ = 1; - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - if (resourceCase_ == 1) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 1) { - resourceCase_ = 0; - resource_ = null; - } - accountBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { - return getAccountFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { - if ((resourceCase_ == 1) && (accountBuilder_ != null)) { - return accountBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1alpha.Account) resource_; - } - return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - if (!(resourceCase_ == 1)) { - resource_ = com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); - } - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder>( - (com.google.analytics.admin.v1alpha.Account) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 1; - onChanged(); - return accountBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> propertyBuilder_; - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return resourceCase_ == 2; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getProperty() { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1alpha.Property) resource_; - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } else { - if (resourceCase_ == 2) { - return propertyBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - propertyBuilder_.setMessage(value); - } - resourceCase_ = 2; - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder setProperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (propertyBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 2; - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2 && - resource_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.Property.newBuilder((com.google.analytics.admin.v1alpha.Property) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 2) { - propertyBuilder_.mergeFrom(value); - } else { - propertyBuilder_.setMessage(value); - } - } - resourceCase_ = 2; - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public Builder clearProperty() { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 2) { - resourceCase_ = 0; - resource_ = null; - } - propertyBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { - return getPropertyFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { - if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { - return propertyBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1alpha.Property) resource_; - } - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Property property = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getPropertyFieldBuilder() { - if (propertyBuilder_ == null) { - if (!(resourceCase_ == 2)) { - resource_ = com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - (com.google.analytics.admin.v1alpha.Property) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 2; - onChanged(); - return propertyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> firebaseLinkBuilder_; - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return Whether the firebaseLink field is set. - */ - @java.lang.Override - public boolean hasFirebaseLink() { - return resourceCase_ == 6; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - * @return The firebaseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); - } else { - if (resourceCase_ == 6) { - return firebaseLinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(value); - } - resourceCase_ = 6; - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - public Builder setFirebaseLink( - com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { - if (firebaseLinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 6; - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (resourceCase_ == 6 && - resource_ != com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder((com.google.analytics.admin.v1alpha.FirebaseLink) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 6) { - firebaseLinkBuilder_.mergeFrom(value); - } else { - firebaseLinkBuilder_.setMessage(value); - } - } - resourceCase_ = 6; - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - public Builder clearFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - if (resourceCase_ == 6) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 6) { - resourceCase_ = 0; - resource_ = null; - } - firebaseLinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { - return getFirebaseLinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - if ((resourceCase_ == 6) && (firebaseLinkBuilder_ != null)) { - return firebaseLinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> - getFirebaseLinkFieldBuilder() { - if (firebaseLinkBuilder_ == null) { - if (!(resourceCase_ == 6)) { - resource_ = com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); - } - firebaseLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( - (com.google.analytics.admin.v1alpha.FirebaseLink) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 6; - onChanged(); - return firebaseLinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> googleAdsLinkBuilder_; - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return resourceCase_ == 7; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); - } else { - if (resourceCase_ == 7) { - return googleAdsLinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - resourceCase_ = 7; - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - public Builder setGoogleAdsLink( - com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 7; - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (resourceCase_ == 7 && - resource_ != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder((com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 7) { - googleAdsLinkBuilder_.mergeFrom(value); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - } - resourceCase_ = 7; - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - public Builder clearGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - if (resourceCase_ == 7) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 7) { - resourceCase_ = 0; - resource_ = null; - } - googleAdsLinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - return getGoogleAdsLinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if ((resourceCase_ == 7) && (googleAdsLinkBuilder_ != null)) { - return googleAdsLinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> - getGoogleAdsLinkFieldBuilder() { - if (googleAdsLinkBuilder_ == null) { - if (!(resourceCase_ == 7)) { - resource_ = com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); - } - googleAdsLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( - (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 7; - onChanged(); - return googleAdsLinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleSignalsSettings, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> googleSignalsSettingsBuilder_; - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return Whether the googleSignalsSettings field is set. - */ - @java.lang.Override - public boolean hasGoogleSignalsSettings() { - return resourceCase_ == 8; - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - * @return The googleSignalsSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { - if (googleSignalsSettingsBuilder_ == null) { - if (resourceCase_ == 8) { - return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); - } else { - if (resourceCase_ == 8) { - return googleSignalsSettingsBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - public Builder setGoogleSignalsSettings(com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { - if (googleSignalsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - googleSignalsSettingsBuilder_.setMessage(value); - } - resourceCase_ = 8; - return this; - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - public Builder setGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { - if (googleSignalsSettingsBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 8; - return this; - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - public Builder mergeGoogleSignalsSettings(com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { - if (googleSignalsSettingsBuilder_ == null) { - if (resourceCase_ == 8 && - resource_ != com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder((com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 8) { - googleSignalsSettingsBuilder_.mergeFrom(value); - } else { - googleSignalsSettingsBuilder_.setMessage(value); - } - } - resourceCase_ = 8; - return this; - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - public Builder clearGoogleSignalsSettings() { - if (googleSignalsSettingsBuilder_ == null) { - if (resourceCase_ == 8) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 8) { - resourceCase_ = 0; - resource_ = null; - } - googleSignalsSettingsBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder getGoogleSignalsSettingsBuilder() { - return getGoogleSignalsSettingsFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder getGoogleSignalsSettingsOrBuilder() { - if ((resourceCase_ == 8) && (googleSignalsSettingsBuilder_ != null)) { - return googleSignalsSettingsBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 8) { - return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; - } - return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a GoogleSignalsSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleSignalsSettings, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> - getGoogleSignalsSettingsFieldBuilder() { - if (googleSignalsSettingsBuilder_ == null) { - if (!(resourceCase_ == 8)) { - resource_ = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); - } - googleSignalsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleSignalsSettings, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( - (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 8; - onChanged(); - return googleSignalsSettingsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> displayVideo360AdvertiserLinkBuilder_; - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLink() { - return resourceCase_ == 9; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - * @return The displayVideo360AdvertiserLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (resourceCase_ == 9) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); - } else { - if (resourceCase_ == 9) { - return displayVideo360AdvertiserLinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - public Builder setDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - resourceCase_ = 9; - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - public Builder setDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 9; - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - public Builder mergeDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (resourceCase_ == 9 && - resource_ != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 9) { - displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - } - resourceCase_ = 9; - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - public Builder clearDisplayVideo360AdvertiserLink() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (resourceCase_ == 9) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 9) { - resourceCase_ = 0; - resource_ = null; - } - displayVideo360AdvertiserLinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder getDisplayVideo360AdvertiserLinkBuilder() { - return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - if ((resourceCase_ == 9) && (displayVideo360AdvertiserLinkBuilder_ != null)) { - return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 9) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> - getDisplayVideo360AdvertiserLinkFieldBuilder() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (!(resourceCase_ == 9)) { - resource_ = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); - } - displayVideo360AdvertiserLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( - (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 9; - onChanged(); - return displayVideo360AdvertiserLinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> displayVideo360AdvertiserLinkProposalBuilder_; - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return Whether the displayVideo360AdvertiserLinkProposal field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLinkProposal() { - return resourceCase_ == 10; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - * @return The displayVideo360AdvertiserLinkProposal. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal() { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - if (resourceCase_ == 10) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance(); - } else { - if (resourceCase_ == 10) { - return displayVideo360AdvertiserLinkProposalBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - public Builder setDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); - } - resourceCase_ = 10; - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - public Builder setDisplayVideo360AdvertiserLinkProposal( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder builderForValue) { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 10; - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - public Builder mergeDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - if (resourceCase_ == 10 && - resource_ != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 10) { - displayVideo360AdvertiserLinkProposalBuilder_.mergeFrom(value); - } else { - displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); - } - } - resourceCase_ = 10; - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - public Builder clearDisplayVideo360AdvertiserLinkProposal() { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - if (resourceCase_ == 10) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 10) { - resourceCase_ = 0; - resource_ = null; - } - displayVideo360AdvertiserLinkProposalBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder getDisplayVideo360AdvertiserLinkProposalBuilder() { - return getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalOrBuilder() { - if ((resourceCase_ == 10) && (displayVideo360AdvertiserLinkProposalBuilder_ != null)) { - return displayVideo360AdvertiserLinkProposalBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 10) { - return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; - } - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
-       * change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> - getDisplayVideo360AdvertiserLinkProposalFieldBuilder() { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - if (!(resourceCase_ == 10)) { - resource_ = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance(); - } - displayVideo360AdvertiserLinkProposalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder>( - (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 10; - onChanged(); - return displayVideo360AdvertiserLinkProposalBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> conversionEventBuilder_; - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return resourceCase_ == 11; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { - if (conversionEventBuilder_ == null) { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); - } else { - if (resourceCase_ == 11) { - return conversionEventBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - conversionEventBuilder_.setMessage(value); - } - resourceCase_ = 11; - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - public Builder setConversionEvent( - com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { - if (conversionEventBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 11; - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - public Builder mergeConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (resourceCase_ == 11 && - resource_ != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder((com.google.analytics.admin.v1alpha.ConversionEvent) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 11) { - conversionEventBuilder_.mergeFrom(value); - } else { - conversionEventBuilder_.setMessage(value); - } - } - resourceCase_ = 11; - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - public Builder clearConversionEvent() { - if (conversionEventBuilder_ == null) { - if (resourceCase_ == 11) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 11) { - resourceCase_ = 0; - resource_ = null; - } - conversionEventBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventBuilder() { - return getConversionEventFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { - if ((resourceCase_ == 11) && (conversionEventBuilder_ != null)) { - return conversionEventBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> - getConversionEventFieldBuilder() { - if (conversionEventBuilder_ == null) { - if (!(resourceCase_ == 11)) { - resource_ = com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); - } - conversionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( - (com.google.analytics.admin.v1alpha.ConversionEvent) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 11; - onChanged(); - return conversionEventBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretBuilder_; - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return resourceCase_ == 12; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); - } else { - if (resourceCase_ == 12) { - return measurementProtocolSecretBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder setMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - resourceCase_ = 12; - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder setMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 12; - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder mergeMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (resourceCase_ == 12 && - resource_ != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder((com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 12) { - measurementProtocolSecretBuilder_.mergeFrom(value); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - } - resourceCase_ = 12; - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder clearMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - if (resourceCase_ == 12) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 12) { - resourceCase_ = 0; - resource_ = null; - } - measurementProtocolSecretBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder() { - return getMeasurementProtocolSecretFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if ((resourceCase_ == 12) && (measurementProtocolSecretBuilder_ != null)) { - return measurementProtocolSecretBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretFieldBuilder() { - if (measurementProtocolSecretBuilder_ == null) { - if (!(resourceCase_ == 12)) { - resource_ = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); - } - measurementProtocolSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( - (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 12; - onChanged(); - return measurementProtocolSecretBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> customDimensionBuilder_; - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return Whether the customDimension field is set. - */ - @java.lang.Override - public boolean hasCustomDimension() { - return resourceCase_ == 13; - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - * @return The customDimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { - if (customDimensionBuilder_ == null) { - if (resourceCase_ == 13) { - return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; - } - return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); - } else { - if (resourceCase_ == 13) { - return customDimensionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - customDimensionBuilder_.setMessage(value); - } - resourceCase_ = 13; - return this; - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - public Builder setCustomDimension( - com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { - if (customDimensionBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 13; - return this; - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (resourceCase_ == 13 && - resource_ != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.CustomDimension.newBuilder((com.google.analytics.admin.v1alpha.CustomDimension) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 13) { - customDimensionBuilder_.mergeFrom(value); - } else { - customDimensionBuilder_.setMessage(value); - } - } - resourceCase_ = 13; - return this; - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - public Builder clearCustomDimension() { - if (customDimensionBuilder_ == null) { - if (resourceCase_ == 13) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 13) { - resourceCase_ = 0; - resource_ = null; - } - customDimensionBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { - return getCustomDimensionFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - if ((resourceCase_ == 13) && (customDimensionBuilder_ != null)) { - return customDimensionBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 13) { - return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; - } - return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a CustomDimension resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> - getCustomDimensionFieldBuilder() { - if (customDimensionBuilder_ == null) { - if (!(resourceCase_ == 13)) { - resource_ = com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); - } - customDimensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( - (com.google.analytics.admin.v1alpha.CustomDimension) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 13; - onChanged(); - return customDimensionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> customMetricBuilder_; - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return Whether the customMetric field is set. - */ - @java.lang.Override - public boolean hasCustomMetric() { - return resourceCase_ == 14; - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - * @return The customMetric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { - if (customMetricBuilder_ == null) { - if (resourceCase_ == 14) { - return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; - } - return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); - } else { - if (resourceCase_ == 14) { - return customMetricBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - customMetricBuilder_.setMessage(value); - } - resourceCase_ = 14; - return this; - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - public Builder setCustomMetric( - com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { - if (customMetricBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 14; - return this; - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (resourceCase_ == 14 && - resource_ != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.CustomMetric.newBuilder((com.google.analytics.admin.v1alpha.CustomMetric) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 14) { - customMetricBuilder_.mergeFrom(value); - } else { - customMetricBuilder_.setMessage(value); - } - } - resourceCase_ = 14; - return this; - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - public Builder clearCustomMetric() { - if (customMetricBuilder_ == null) { - if (resourceCase_ == 14) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 14) { - resourceCase_ = 0; - resource_ = null; - } - customMetricBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { - return getCustomMetricFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { - if ((resourceCase_ == 14) && (customMetricBuilder_ != null)) { - return customMetricBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 14) { - return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; - } - return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a CustomMetric resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> - getCustomMetricFieldBuilder() { - if (customMetricBuilder_ == null) { - if (!(resourceCase_ == 14)) { - resource_ = com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); - } - customMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( - (com.google.analytics.admin.v1alpha.CustomMetric) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 14; - onChanged(); - return customMetricBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRetentionSettings, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> dataRetentionSettingsBuilder_; - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return Whether the dataRetentionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRetentionSettings() { - return resourceCase_ == 15; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - * @return The dataRetentionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { - if (dataRetentionSettingsBuilder_ == null) { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); - } else { - if (resourceCase_ == 15) { - return dataRetentionSettingsBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - public Builder setDataRetentionSettings(com.google.analytics.admin.v1alpha.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - resourceCase_ = 15; - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - public Builder setDataRetentionSettings( - com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder builderForValue) { - if (dataRetentionSettingsBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 15; - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - public Builder mergeDataRetentionSettings(com.google.analytics.admin.v1alpha.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (resourceCase_ == 15 && - resource_ != com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder((com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 15) { - dataRetentionSettingsBuilder_.mergeFrom(value); - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - } - resourceCase_ = 15; - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - public Builder clearDataRetentionSettings() { - if (dataRetentionSettingsBuilder_ == null) { - if (resourceCase_ == 15) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 15) { - resourceCase_ = 0; - resource_ = null; - } - dataRetentionSettingsBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - public com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder getDataRetentionSettingsBuilder() { - return getDataRetentionSettingsFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - if ((resourceCase_ == 15) && (dataRetentionSettingsBuilder_ != null)) { - return dataRetentionSettingsBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRetentionSettings, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> - getDataRetentionSettingsFieldBuilder() { - if (dataRetentionSettingsBuilder_ == null) { - if (!(resourceCase_ == 15)) { - resource_ = com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); - } - dataRetentionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRetentionSettings, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder>( - (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 15; - onChanged(); - return dataRetentionSettingsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> searchAds360LinkBuilder_; - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return Whether the searchAds360Link field is set. - */ - @java.lang.Override - public boolean hasSearchAds360Link() { - return resourceCase_ == 16; - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - * @return The searchAds360Link. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { - if (searchAds360LinkBuilder_ == null) { - if (resourceCase_ == 16) { - return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; - } - return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); - } else { - if (resourceCase_ == 16) { - return searchAds360LinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - public Builder setSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - searchAds360LinkBuilder_.setMessage(value); - } - resourceCase_ = 16; - return this; - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - public Builder setSearchAds360Link( - com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { - if (searchAds360LinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - searchAds360LinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 16; - return this; - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - public Builder mergeSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinkBuilder_ == null) { - if (resourceCase_ == 16 && - resource_ != com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.SearchAds360Link.newBuilder((com.google.analytics.admin.v1alpha.SearchAds360Link) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 16) { - searchAds360LinkBuilder_.mergeFrom(value); - } else { - searchAds360LinkBuilder_.setMessage(value); - } - } - resourceCase_ = 16; - return this; - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - public Builder clearSearchAds360Link() { - if (searchAds360LinkBuilder_ == null) { - if (resourceCase_ == 16) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 16) { - resourceCase_ = 0; - resource_ = null; - } - searchAds360LinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder getSearchAds360LinkBuilder() { - return getSearchAds360LinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder() { - if ((resourceCase_ == 16) && (searchAds360LinkBuilder_ != null)) { - return searchAds360LinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 16) { - return (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_; - } - return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a SearchAds360Link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 16; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> - getSearchAds360LinkFieldBuilder() { - if (searchAds360LinkBuilder_ == null) { - if (!(resourceCase_ == 16)) { - resource_ = com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); - } - searchAds360LinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( - (com.google.analytics.admin.v1alpha.SearchAds360Link) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 16; - onChanged(); - return searchAds360LinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> dataStreamBuilder_; - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return resourceCase_ == 18; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1alpha.DataStream) resource_; - } - return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } else { - if (resourceCase_ == 18) { - return dataStreamBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - dataStreamBuilder_.setMessage(value); - } - resourceCase_ = 18; - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - public Builder setDataStream( - com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 18; - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (resourceCase_ == 18 && - resource_ != com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.DataStream.newBuilder((com.google.analytics.admin.v1alpha.DataStream) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 18) { - dataStreamBuilder_.mergeFrom(value); - } else { - dataStreamBuilder_.setMessage(value); - } - } - resourceCase_ = 18; - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - public Builder clearDataStream() { - if (dataStreamBuilder_ == null) { - if (resourceCase_ == 18) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 18) { - resourceCase_ = 0; - resource_ = null; - } - dataStreamBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { - return getDataStreamFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - if ((resourceCase_ == 18) && (dataStreamBuilder_ != null)) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1alpha.DataStream) resource_; - } - return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - if (!(resourceCase_ == 18)) { - resource_ = com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } - dataStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( - (com.google.analytics.admin.v1alpha.DataStream) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 18; - onChanged(); - return dataStreamBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AttributionSettings, com.google.analytics.admin.v1alpha.AttributionSettings.Builder, com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> attributionSettingsBuilder_; - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return Whether the attributionSettings field is set. - */ - @java.lang.Override - public boolean hasAttributionSettings() { - return resourceCase_ == 20; - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - * @return The attributionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { - if (attributionSettingsBuilder_ == null) { - if (resourceCase_ == 20) { - return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); - } else { - if (resourceCase_ == 20) { - return attributionSettingsBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - public Builder setAttributionSettings(com.google.analytics.admin.v1alpha.AttributionSettings value) { - if (attributionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - attributionSettingsBuilder_.setMessage(value); - } - resourceCase_ = 20; - return this; - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - public Builder setAttributionSettings( - com.google.analytics.admin.v1alpha.AttributionSettings.Builder builderForValue) { - if (attributionSettingsBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - attributionSettingsBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 20; - return this; - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - public Builder mergeAttributionSettings(com.google.analytics.admin.v1alpha.AttributionSettings value) { - if (attributionSettingsBuilder_ == null) { - if (resourceCase_ == 20 && - resource_ != com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.AttributionSettings.newBuilder((com.google.analytics.admin.v1alpha.AttributionSettings) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 20) { - attributionSettingsBuilder_.mergeFrom(value); - } else { - attributionSettingsBuilder_.setMessage(value); - } - } - resourceCase_ = 20; - return this; - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - public Builder clearAttributionSettings() { - if (attributionSettingsBuilder_ == null) { - if (resourceCase_ == 20) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 20) { - resourceCase_ = 0; - resource_ = null; - } - attributionSettingsBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - public com.google.analytics.admin.v1alpha.AttributionSettings.Builder getAttributionSettingsBuilder() { - return getAttributionSettingsFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder() { - if ((resourceCase_ == 20) && (attributionSettingsBuilder_ != null)) { - return attributionSettingsBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 20) { - return (com.google.analytics.admin.v1alpha.AttributionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of AttributionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 20; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AttributionSettings, com.google.analytics.admin.v1alpha.AttributionSettings.Builder, com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> - getAttributionSettingsFieldBuilder() { - if (attributionSettingsBuilder_ == null) { - if (!(resourceCase_ == 20)) { - resource_ = com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance(); - } - attributionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AttributionSettings, com.google.analytics.admin.v1alpha.AttributionSettings.Builder, com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder>( - (com.google.analytics.admin.v1alpha.AttributionSettings) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 20; - onChanged(); - return attributionSettingsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> expandedDataSetBuilder_; - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return Whether the expandedDataSet field is set. - */ - @java.lang.Override - public boolean hasExpandedDataSet() { - return resourceCase_ == 21; - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - * @return The expandedDataSet. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { - if (expandedDataSetBuilder_ == null) { - if (resourceCase_ == 21) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); - } else { - if (resourceCase_ == 21) { - return expandedDataSetBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - expandedDataSetBuilder_.setMessage(value); - } - resourceCase_ = 21; - return this; - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - public Builder setExpandedDataSet( - com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { - if (expandedDataSetBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - expandedDataSetBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 21; - return this; - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - public Builder mergeExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetBuilder_ == null) { - if (resourceCase_ == 21 && - resource_ != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.ExpandedDataSet.newBuilder((com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 21) { - expandedDataSetBuilder_.mergeFrom(value); - } else { - expandedDataSetBuilder_.setMessage(value); - } - } - resourceCase_ = 21; - return this; - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - public Builder clearExpandedDataSet() { - if (expandedDataSetBuilder_ == null) { - if (resourceCase_ == 21) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 21) { - resourceCase_ = 0; - resource_ = null; - } - expandedDataSetBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetBuilder() { - return getExpandedDataSetFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { - if ((resourceCase_ == 21) && (expandedDataSetBuilder_ != null)) { - return expandedDataSetBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 21) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an ExpandedDataSet resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 21; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> - getExpandedDataSetFieldBuilder() { - if (expandedDataSetBuilder_ == null) { - if (!(resourceCase_ == 21)) { - resource_ = com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); - } - expandedDataSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( - (com.google.analytics.admin.v1alpha.ExpandedDataSet) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 21; - onChanged(); - return expandedDataSetBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> channelGroupBuilder_; - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return Whether the channelGroup field is set. - */ - @java.lang.Override - public boolean hasChannelGroup() { - return resourceCase_ == 22; - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - * @return The channelGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { - if (channelGroupBuilder_ == null) { - if (resourceCase_ == 22) { - return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; - } - return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); - } else { - if (resourceCase_ == 22) { - return channelGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - public Builder setChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - channelGroupBuilder_.setMessage(value); - } - resourceCase_ = 22; - return this; - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - public Builder setChannelGroup( - com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { - if (channelGroupBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - channelGroupBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 22; - return this; - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - public Builder mergeChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupBuilder_ == null) { - if (resourceCase_ == 22 && - resource_ != com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.ChannelGroup.newBuilder((com.google.analytics.admin.v1alpha.ChannelGroup) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 22) { - channelGroupBuilder_.mergeFrom(value); - } else { - channelGroupBuilder_.setMessage(value); - } - } - resourceCase_ = 22; - return this; - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - public Builder clearChannelGroup() { - if (channelGroupBuilder_ == null) { - if (resourceCase_ == 22) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 22) { - resourceCase_ = 0; - resource_ = null; - } - channelGroupBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupBuilder() { - return getChannelGroupFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { - if ((resourceCase_ == 22) && (channelGroupBuilder_ != null)) { - return channelGroupBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 22) { - return (com.google.analytics.admin.v1alpha.ChannelGroup) resource_; - } - return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a ChannelGroup resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 22; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> - getChannelGroupFieldBuilder() { - if (channelGroupBuilder_ == null) { - if (!(resourceCase_ == 22)) { - resource_ = com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); - } - channelGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( - (com.google.analytics.admin.v1alpha.ChannelGroup) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 22; - onChanged(); - return channelGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.BigQueryLink, com.google.analytics.admin.v1alpha.BigQueryLink.Builder, com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> bigqueryLinkBuilder_; - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return Whether the bigqueryLink field is set. - */ - @java.lang.Override - public boolean hasBigqueryLink() { - return resourceCase_ == 23; - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - * @return The bigqueryLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLink() { - if (bigqueryLinkBuilder_ == null) { - if (resourceCase_ == 23) { - return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; - } - return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); - } else { - if (resourceCase_ == 23) { - return bigqueryLinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - public Builder setBigqueryLink(com.google.analytics.admin.v1alpha.BigQueryLink value) { - if (bigqueryLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - bigqueryLinkBuilder_.setMessage(value); - } - resourceCase_ = 23; - return this; - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - public Builder setBigqueryLink( - com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { - if (bigqueryLinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - bigqueryLinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 23; - return this; - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - public Builder mergeBigqueryLink(com.google.analytics.admin.v1alpha.BigQueryLink value) { - if (bigqueryLinkBuilder_ == null) { - if (resourceCase_ == 23 && - resource_ != com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.BigQueryLink.newBuilder((com.google.analytics.admin.v1alpha.BigQueryLink) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 23) { - bigqueryLinkBuilder_.mergeFrom(value); - } else { - bigqueryLinkBuilder_.setMessage(value); - } - } - resourceCase_ = 23; - return this; - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - public Builder clearBigqueryLink() { - if (bigqueryLinkBuilder_ == null) { - if (resourceCase_ == 23) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 23) { - resourceCase_ = 0; - resource_ = null; - } - bigqueryLinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - public com.google.analytics.admin.v1alpha.BigQueryLink.Builder getBigqueryLinkBuilder() { - return getBigqueryLinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinkOrBuilder() { - if ((resourceCase_ == 23) && (bigqueryLinkBuilder_ != null)) { - return bigqueryLinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 23) { - return (com.google.analytics.admin.v1alpha.BigQueryLink) resource_; - } - return com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a BigQuery link resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.BigQueryLink bigquery_link = 23; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.BigQueryLink, com.google.analytics.admin.v1alpha.BigQueryLink.Builder, com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> - getBigqueryLinkFieldBuilder() { - if (bigqueryLinkBuilder_ == null) { - if (!(resourceCase_ == 23)) { - resource_ = com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance(); - } - bigqueryLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.BigQueryLink, com.google.analytics.admin.v1alpha.BigQueryLink.Builder, com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder>( - (com.google.analytics.admin.v1alpha.BigQueryLink) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 23; - onChanged(); - return bigqueryLinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> enhancedMeasurementSettingsBuilder_; - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return Whether the enhancedMeasurementSettings field is set. - */ - @java.lang.Override - public boolean hasEnhancedMeasurementSettings() { - return resourceCase_ == 24; - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - * @return The enhancedMeasurementSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings() { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (resourceCase_ == 24) { - return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; - } - return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); - } else { - if (resourceCase_ == 24) { - return enhancedMeasurementSettingsBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - public Builder setEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - enhancedMeasurementSettingsBuilder_.setMessage(value); - } - resourceCase_ = 24; - return this; - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - public Builder setEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder builderForValue) { - if (enhancedMeasurementSettingsBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - enhancedMeasurementSettingsBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 24; - return this; - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - public Builder mergeEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (resourceCase_ == 24 && - resource_ != com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.newBuilder((com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 24) { - enhancedMeasurementSettingsBuilder_.mergeFrom(value); - } else { - enhancedMeasurementSettingsBuilder_.setMessage(value); - } - } - resourceCase_ = 24; - return this; - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - public Builder clearEnhancedMeasurementSettings() { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (resourceCase_ == 24) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 24) { - resourceCase_ = 0; - resource_ = null; - } - enhancedMeasurementSettingsBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder getEnhancedMeasurementSettingsBuilder() { - return getEnhancedMeasurementSettingsFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder getEnhancedMeasurementSettingsOrBuilder() { - if ((resourceCase_ == 24) && (enhancedMeasurementSettingsBuilder_ != null)) { - return enhancedMeasurementSettingsBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 24) { - return (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_; - } - return com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of EnhancedMeasurementSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 24; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> - getEnhancedMeasurementSettingsFieldBuilder() { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (!(resourceCase_ == 24)) { - resource_ = com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance(); - } - enhancedMeasurementSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder>( - (com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 24; - onChanged(); - return enhancedMeasurementSettingsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRedactionSettings, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> dataRedactionSettingsBuilder_; - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return Whether the dataRedactionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRedactionSettings() { - return resourceCase_ == 25; - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - * @return The dataRedactionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { - if (dataRedactionSettingsBuilder_ == null) { - if (resourceCase_ == 25) { - return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); - } else { - if (resourceCase_ == 25) { - return dataRedactionSettingsBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - public Builder setDataRedactionSettings(com.google.analytics.admin.v1alpha.DataRedactionSettings value) { - if (dataRedactionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - dataRedactionSettingsBuilder_.setMessage(value); - } - resourceCase_ = 25; - return this; - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - public Builder setDataRedactionSettings( - com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder builderForValue) { - if (dataRedactionSettingsBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - dataRedactionSettingsBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 25; - return this; - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - public Builder mergeDataRedactionSettings(com.google.analytics.admin.v1alpha.DataRedactionSettings value) { - if (dataRedactionSettingsBuilder_ == null) { - if (resourceCase_ == 25 && - resource_ != com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.DataRedactionSettings.newBuilder((com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 25) { - dataRedactionSettingsBuilder_.mergeFrom(value); - } else { - dataRedactionSettingsBuilder_.setMessage(value); - } - } - resourceCase_ = 25; - return this; - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - public Builder clearDataRedactionSettings() { - if (dataRedactionSettingsBuilder_ == null) { - if (resourceCase_ == 25) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 25) { - resourceCase_ = 0; - resource_ = null; - } - dataRedactionSettingsBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - public com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder getDataRedactionSettingsBuilder() { - return getDataRedactionSettingsFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder getDataRedactionSettingsOrBuilder() { - if ((resourceCase_ == 25) && (dataRedactionSettingsBuilder_ != null)) { - return dataRedactionSettingsBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 25) { - return (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_; - } - return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of DataRedactionSettings resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 25; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRedactionSettings, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> - getDataRedactionSettingsFieldBuilder() { - if (dataRedactionSettingsBuilder_ == null) { - if (!(resourceCase_ == 25)) { - resource_ = com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); - } - dataRedactionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRedactionSettings, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder>( - (com.google.analytics.admin.v1alpha.DataRedactionSettings) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 25; - onChanged(); - return dataRedactionSettingsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> skadnetworkConversionValueSchemaBuilder_; - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - @java.lang.Override - public boolean hasSkadnetworkConversionValueSchema() { - return resourceCase_ == 26; - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - * @return The skadnetworkConversionValueSchema. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema() { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (resourceCase_ == 26) { - return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; - } - return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance(); - } else { - if (resourceCase_ == 26) { - return skadnetworkConversionValueSchemaBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - public Builder setSkadnetworkConversionValueSchema(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - skadnetworkConversionValueSchemaBuilder_.setMessage(value); - } - resourceCase_ = 26; - return this; - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - public Builder setSkadnetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder builderForValue) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - skadnetworkConversionValueSchemaBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 26; - return this; - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - public Builder mergeSkadnetworkConversionValueSchema(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (resourceCase_ == 26 && - resource_ != com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.newBuilder((com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 26) { - skadnetworkConversionValueSchemaBuilder_.mergeFrom(value); - } else { - skadnetworkConversionValueSchemaBuilder_.setMessage(value); - } - } - resourceCase_ = 26; - return this; - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - public Builder clearSkadnetworkConversionValueSchema() { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (resourceCase_ == 26) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 26) { - resourceCase_ = 0; - resource_ = null; - } - skadnetworkConversionValueSchemaBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder getSkadnetworkConversionValueSchemaBuilder() { - return getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder() { - if ((resourceCase_ == 26) && (skadnetworkConversionValueSchemaBuilder_ != null)) { - return skadnetworkConversionValueSchemaBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 26) { - return (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_; - } - return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of SKAdNetworkConversionValueSchema resource in change
-       * history.
-       * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 26; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> - getSkadnetworkConversionValueSchemaFieldBuilder() { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (!(resourceCase_ == 26)) { - resource_ = com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance(); - } - skadnetworkConversionValueSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( - (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 26; - onChanged(); - return skadnetworkConversionValueSchemaBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> adsenseLinkBuilder_; - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return Whether the adsenseLink field is set. - */ - @java.lang.Override - public boolean hasAdsenseLink() { - return resourceCase_ == 27; - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - * @return The adsenseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { - if (adsenseLinkBuilder_ == null) { - if (resourceCase_ == 27) { - return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; - } - return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); - } else { - if (resourceCase_ == 27) { - return adsenseLinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - public Builder setAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { - if (adsenseLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - adsenseLinkBuilder_.setMessage(value); - } - resourceCase_ = 27; - return this; - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - public Builder setAdsenseLink( - com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { - if (adsenseLinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - adsenseLinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 27; - return this; - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - public Builder mergeAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { - if (adsenseLinkBuilder_ == null) { - if (resourceCase_ == 27 && - resource_ != com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.AdSenseLink.newBuilder((com.google.analytics.admin.v1alpha.AdSenseLink) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 27) { - adsenseLinkBuilder_.mergeFrom(value); - } else { - adsenseLinkBuilder_.setMessage(value); - } - } - resourceCase_ = 27; - return this; - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - public Builder clearAdsenseLink() { - if (adsenseLinkBuilder_ == null) { - if (resourceCase_ == 27) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 27) { - resourceCase_ = 0; - resource_ = null; - } - adsenseLinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - public com.google.analytics.admin.v1alpha.AdSenseLink.Builder getAdsenseLinkBuilder() { - return getAdsenseLinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { - if ((resourceCase_ == 27) && (adsenseLinkBuilder_ != null)) { - return adsenseLinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 27) { - return (com.google.analytics.admin.v1alpha.AdSenseLink) resource_; - } - return com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an AdSenseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 27; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> - getAdsenseLinkFieldBuilder() { - if (adsenseLinkBuilder_ == null) { - if (!(resourceCase_ == 27)) { - resource_ = com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance(); - } - adsenseLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder>( - (com.google.analytics.admin.v1alpha.AdSenseLink) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 27; - onChanged(); - return adsenseLinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> audienceBuilder_; - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - * @return Whether the audience field is set. - */ - @java.lang.Override - public boolean hasAudience() { - return resourceCase_ == 28; - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - * @return The audience. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience getAudience() { - if (audienceBuilder_ == null) { - if (resourceCase_ == 28) { - return (com.google.analytics.admin.v1alpha.Audience) resource_; - } - return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); - } else { - if (resourceCase_ == 28) { - return audienceBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { - if (audienceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - audienceBuilder_.setMessage(value); - } - resourceCase_ = 28; - return this; - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - public Builder setAudience( - com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { - if (audienceBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - audienceBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 28; - return this; - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { - if (audienceBuilder_ == null) { - if (resourceCase_ == 28 && - resource_ != com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.Audience.newBuilder((com.google.analytics.admin.v1alpha.Audience) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 28) { - audienceBuilder_.mergeFrom(value); - } else { - audienceBuilder_.setMessage(value); - } - } - resourceCase_ = 28; - return this; - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - public Builder clearAudience() { - if (audienceBuilder_ == null) { - if (resourceCase_ == 28) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 28) { - resourceCase_ = 0; - resource_ = null; - } - audienceBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { - return getAudienceFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { - if ((resourceCase_ == 28) && (audienceBuilder_ != null)) { - return audienceBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 28) { - return (com.google.analytics.admin.v1alpha.Audience) resource_; - } - return com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an Audience resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 28; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> - getAudienceFieldBuilder() { - if (audienceBuilder_ == null) { - if (!(resourceCase_ == 28)) { - resource_ = com.google.analytics.admin.v1alpha.Audience.getDefaultInstance(); - } - audienceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder>( - (com.google.analytics.admin.v1alpha.Audience) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 28; - onChanged(); - return audienceBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> eventCreateRuleBuilder_; - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return Whether the eventCreateRule field is set. - */ - @java.lang.Override - public boolean hasEventCreateRule() { - return resourceCase_ == 29; - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - * @return The eventCreateRule. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { - if (eventCreateRuleBuilder_ == null) { - if (resourceCase_ == 29) { - return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; - } - return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); - } else { - if (resourceCase_ == 29) { - return eventCreateRuleBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - public Builder setEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - eventCreateRuleBuilder_.setMessage(value); - } - resourceCase_ = 29; - return this; - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - public Builder setEventCreateRule( - com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { - if (eventCreateRuleBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - eventCreateRuleBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 29; - return this; - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - public Builder mergeEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRuleBuilder_ == null) { - if (resourceCase_ == 29 && - resource_ != com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1alpha.EventCreateRule.newBuilder((com.google.analytics.admin.v1alpha.EventCreateRule) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 29) { - eventCreateRuleBuilder_.mergeFrom(value); - } else { - eventCreateRuleBuilder_.setMessage(value); - } - } - resourceCase_ = 29; - return this; - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - public Builder clearEventCreateRule() { - if (eventCreateRuleBuilder_ == null) { - if (resourceCase_ == 29) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 29) { - resourceCase_ = 0; - resource_ = null; - } - eventCreateRuleBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - public com.google.analytics.admin.v1alpha.EventCreateRule.Builder getEventCreateRuleBuilder() { - return getEventCreateRuleFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { - if ((resourceCase_ == 29) && (eventCreateRuleBuilder_ != null)) { - return eventCreateRuleBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 29) { - return (com.google.analytics.admin.v1alpha.EventCreateRule) resource_; - } - return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an EventCreateRule resource in change history.
-       * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 29; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> - getEventCreateRuleFieldBuilder() { - if (eventCreateRuleBuilder_ == null) { - if (!(resourceCase_ == 29)) { - resource_ = com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); - } - eventCreateRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( - (com.google.analytics.admin.v1alpha.EventCreateRule) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 29; - onChanged(); - return eventCreateRuleBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) - private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChangeHistoryResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int RESOURCE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object resource_ = ""; - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - 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(); - resource_ = s; - return s; - } - } - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTION_FIELD_NUMBER = 2; - private int action_ = 0; - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override public int getActionValue() { - return action_; - } - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @return The action. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.ActionType getAction() { - com.google.analytics.admin.v1alpha.ActionType result = com.google.analytics.admin.v1alpha.ActionType.forNumber(action_); - return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; - } - - public static final int RESOURCE_BEFORE_CHANGE_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resourceBeforeChange_; - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return Whether the resourceBeforeChange field is set. - */ - @java.lang.Override - public boolean hasResourceBeforeChange() { - return resourceBeforeChange_ != null; - } - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return The resourceBeforeChange. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getResourceBeforeChange() { - return resourceBeforeChange_ == null ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceBeforeChangeOrBuilder() { - return resourceBeforeChange_ == null ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } - - public static final int RESOURCE_AFTER_CHANGE_FIELD_NUMBER = 4; - private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resourceAfterChange_; - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return Whether the resourceAfterChange field is set. - */ - @java.lang.Override - public boolean hasResourceAfterChange() { - return resourceAfterChange_ != null; - } - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return The resourceAfterChange. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getResourceAfterChange() { - return resourceAfterChange_ == null ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceAfterChangeOrBuilder() { - return resourceAfterChange_ == null ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } - - 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(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); - } - if (action_ != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, action_); - } - if (resourceBeforeChange_ != null) { - output.writeMessage(3, getResourceBeforeChange()); - } - if (resourceAfterChange_ != null) { - output.writeMessage(4, getResourceAfterChange()); - } - 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(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); - } - if (action_ != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, action_); - } - if (resourceBeforeChange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResourceBeforeChange()); - } - if (resourceAfterChange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceAfterChange()); - } - 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.admin.v1alpha.ChangeHistoryChange)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChangeHistoryChange other = (com.google.analytics.admin.v1alpha.ChangeHistoryChange) obj; - - if (!getResource() - .equals(other.getResource())) return false; - if (action_ != other.action_) return false; - if (hasResourceBeforeChange() != other.hasResourceBeforeChange()) return false; - if (hasResourceBeforeChange()) { - if (!getResourceBeforeChange() - .equals(other.getResourceBeforeChange())) return false; - } - if (hasResourceAfterChange() != other.hasResourceAfterChange()) return false; - if (hasResourceAfterChange()) { - if (!getResourceAfterChange() - .equals(other.getResourceAfterChange())) 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) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + action_; - if (hasResourceBeforeChange()) { - hash = (37 * hash) + RESOURCE_BEFORE_CHANGE_FIELD_NUMBER; - hash = (53 * hash) + getResourceBeforeChange().hashCode(); - } - if (hasResourceAfterChange()) { - hash = (37 * hash) + RESOURCE_AFTER_CHANGE_FIELD_NUMBER; - hash = (53 * hash) + getResourceAfterChange().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryChange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A description of a change to a single Google Analytics resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) - com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryChange.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resource_ = ""; - action_ = 0; - resourceBeforeChange_ = null; - if (resourceBeforeChangeBuilder_ != null) { - resourceBeforeChangeBuilder_.dispose(); - resourceBeforeChangeBuilder_ = null; - } - resourceAfterChange_ = null; - if (resourceAfterChangeBuilder_ != null) { - resourceAfterChangeBuilder_.dispose(); - resourceAfterChangeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange build() { - com.google.analytics.admin.v1alpha.ChangeHistoryChange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange buildPartial() { - com.google.analytics.admin.v1alpha.ChangeHistoryChange result = new com.google.analytics.admin.v1alpha.ChangeHistoryChange(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChangeHistoryChange result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resource_ = resource_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.action_ = action_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.resourceBeforeChange_ = resourceBeforeChangeBuilder_ == null - ? resourceBeforeChange_ - : resourceBeforeChangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.resourceAfterChange_ = resourceAfterChangeBuilder_ == null - ? resourceAfterChange_ - : resourceAfterChangeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChangeHistoryChange) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryChange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryChange other) { - if (other == com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()) return this; - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.action_ != 0) { - setActionValue(other.getActionValue()); - } - if (other.hasResourceBeforeChange()) { - mergeResourceBeforeChange(other.getResourceBeforeChange()); - } - if (other.hasResourceAfterChange()) { - mergeResourceAfterChange(other.getResourceAfterChange()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - action_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getResourceBeforeChangeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getResourceAfterChangeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object resource_ = ""; - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - resource_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @return This builder for chaining. - */ - public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - resource_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int action_ = 0; - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override public int getActionValue() { - return action_; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue(int value) { - action_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @return The action. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ActionType getAction() { - com.google.analytics.admin.v1alpha.ActionType result = com.google.analytics.admin.v1alpha.ActionType.forNumber(action_); - return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction(com.google.analytics.admin.v1alpha.ActionType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - action_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @return This builder for chaining. - */ - public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000002); - action_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resourceBeforeChange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> resourceBeforeChangeBuilder_; - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return Whether the resourceBeforeChange field is set. - */ - public boolean hasResourceBeforeChange() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return The resourceBeforeChange. - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getResourceBeforeChange() { - if (resourceBeforeChangeBuilder_ == null) { - return resourceBeforeChange_ == null ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } else { - return resourceBeforeChangeBuilder_.getMessage(); - } - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder setResourceBeforeChange(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceBeforeChangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceBeforeChange_ = value; - } else { - resourceBeforeChangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder setResourceBeforeChange( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue) { - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChange_ = builderForValue.build(); - } else { - resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder mergeResourceBeforeChange(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceBeforeChangeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - resourceBeforeChange_ != null && - resourceBeforeChange_ != com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance()) { - getResourceBeforeChangeBuilder().mergeFrom(value); - } else { - resourceBeforeChange_ = value; - } - } else { - resourceBeforeChangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder clearResourceBeforeChange() { - bitField0_ = (bitField0_ & ~0x00000004); - resourceBeforeChange_ = null; - if (resourceBeforeChangeBuilder_ != null) { - resourceBeforeChangeBuilder_.dispose(); - resourceBeforeChangeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder getResourceBeforeChangeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getResourceBeforeChangeFieldBuilder().getBuilder(); - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceBeforeChangeOrBuilder() { - if (resourceBeforeChangeBuilder_ != null) { - return resourceBeforeChangeBuilder_.getMessageOrBuilder(); - } else { - return resourceBeforeChange_ == null ? - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> - getResourceBeforeChangeFieldBuilder() { - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>( - getResourceBeforeChange(), - getParentForChildren(), - isClean()); - resourceBeforeChange_ = null; - } - return resourceBeforeChangeBuilder_; - } - - private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resourceAfterChange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> resourceAfterChangeBuilder_; - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return Whether the resourceAfterChange field is set. - */ - public boolean hasResourceAfterChange() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return The resourceAfterChange. - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getResourceAfterChange() { - if (resourceAfterChangeBuilder_ == null) { - return resourceAfterChange_ == null ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } else { - return resourceAfterChangeBuilder_.getMessage(); - } - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder setResourceAfterChange(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceAfterChangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceAfterChange_ = value; - } else { - resourceAfterChangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder setResourceAfterChange( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue) { - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChange_ = builderForValue.build(); - } else { - resourceAfterChangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder mergeResourceAfterChange(com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceAfterChangeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - resourceAfterChange_ != null && - resourceAfterChange_ != com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance()) { - getResourceAfterChangeBuilder().mergeFrom(value); - } else { - resourceAfterChange_ = value; - } - } else { - resourceAfterChangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder clearResourceAfterChange() { - bitField0_ = (bitField0_ & ~0x00000008); - resourceAfterChange_ = null; - if (resourceAfterChangeBuilder_ != null) { - resourceAfterChangeBuilder_.dispose(); - resourceAfterChangeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder getResourceAfterChangeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getResourceAfterChangeFieldBuilder().getBuilder(); - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceAfterChangeOrBuilder() { - if (resourceAfterChangeBuilder_ != null) { - return resourceAfterChangeBuilder_.getMessageOrBuilder(); - } else { - return resourceAfterChange_ == null ? - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> - getResourceAfterChangeFieldBuilder() { - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>( - getResourceAfterChange(), - getParentForChildren(), - isClean()); - resourceAfterChange_ = null; - } - return resourceAfterChangeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryChange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange) - private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryChange(); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChangeHistoryChange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java deleted file mode 100644 index 48e0e49d6f61..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface ChangeHistoryChangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The resource. - */ - java.lang.String getResource(); - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The bytes for resource. - */ - com.google.protobuf.ByteString - getResourceBytes(); - - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @return The enum numeric value on the wire for action. - */ - int getActionValue(); - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1alpha.ActionType action = 2; - * @return The action. - */ - com.google.analytics.admin.v1alpha.ActionType getAction(); - - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return Whether the resourceBeforeChange field is set. - */ - boolean hasResourceBeforeChange(); - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return The resourceBeforeChange. - */ - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getResourceBeforeChange(); - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceBeforeChangeOrBuilder(); - - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return Whether the resourceAfterChange field is set. - */ - boolean hasResourceAfterChange(); - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return The resourceAfterChange. - */ - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource getResourceAfterChange(); - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceAfterChangeOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java deleted file mode 100644 index 44b2d93af6ad..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java +++ /dev/null @@ -1,1668 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A set of changes within a Google Analytics account or its child properties
- * that resulted from the same cause. Common causes would be updates made in the
- * Google Analytics UI, changes from customer support, or automatic Google
- * Analytics system changes.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} - */ -public final class ChangeHistoryEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) - ChangeHistoryEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChangeHistoryEvent.newBuilder() to construct. - private ChangeHistoryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChangeHistoryEvent() { - id_ = ""; - actorType_ = 0; - userActorEmail_ = ""; - changes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeHistoryEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - 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(); - id_ = s; - return s; - } - } - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANGE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp changeTime_; - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return Whether the changeTime field is set. - */ - @java.lang.Override - public boolean hasChangeTime() { - return changeTime_ != null; - } - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return The changeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getChangeTime() { - return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { - return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } - - public static final int ACTOR_TYPE_FIELD_NUMBER = 3; - private int actorType_ = 0; - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return The enum numeric value on the wire for actorType. - */ - @java.lang.Override public int getActorTypeValue() { - return actorType_; - } - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return The actorType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.ActorType getActorType() { - com.google.analytics.admin.v1alpha.ActorType result = com.google.analytics.admin.v1alpha.ActorType.forNumber(actorType_); - return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; - } - - public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object userActorEmail_ = ""; - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The userActorEmail. - */ - @java.lang.Override - public java.lang.String getUserActorEmail() { - java.lang.Object ref = userActorEmail_; - 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(); - userActorEmail_ = s; - return s; - } - } - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The bytes for userActorEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserActorEmailBytes() { - java.lang.Object ref = userActorEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userActorEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANGES_FILTERED_FIELD_NUMBER = 5; - private boolean changesFiltered_ = false; - /** - *
-   * If true, then the list of changes returned was filtered, and does not
-   * represent all changes that occurred in this event.
-   * 
- * - * bool changes_filtered = 5; - * @return The changesFiltered. - */ - @java.lang.Override - public boolean getChangesFiltered() { - return changesFiltered_; - } - - public static final int CHANGES_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private java.util.List changes_; - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public java.util.List getChangesList() { - return changes_; - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public java.util.List - getChangesOrBuilderList() { - return changes_; - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public int getChangesCount() { - return changes_.size(); - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { - return changes_.get(index); - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( - int index) { - return changes_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (changeTime_ != null) { - output.writeMessage(2, getChangeTime()); - } - if (actorType_ != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, actorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_); - } - if (changesFiltered_ != false) { - output.writeBool(5, changesFiltered_); - } - for (int i = 0; i < changes_.size(); i++) { - output.writeMessage(6, changes_.get(i)); - } - 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(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (changeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChangeTime()); - } - if (actorType_ != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, actorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_); - } - if (changesFiltered_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, changesFiltered_); - } - for (int i = 0; i < changes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, changes_.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.admin.v1alpha.ChangeHistoryEvent)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChangeHistoryEvent other = (com.google.analytics.admin.v1alpha.ChangeHistoryEvent) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasChangeTime() != other.hasChangeTime()) return false; - if (hasChangeTime()) { - if (!getChangeTime() - .equals(other.getChangeTime())) return false; - } - if (actorType_ != other.actorType_) return false; - if (!getUserActorEmail() - .equals(other.getUserActorEmail())) return false; - if (getChangesFiltered() - != other.getChangesFiltered()) return false; - if (!getChangesList() - .equals(other.getChangesList())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasChangeTime()) { - hash = (37 * hash) + CHANGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getChangeTime().hashCode(); - } - hash = (37 * hash) + ACTOR_TYPE_FIELD_NUMBER; - hash = (53 * hash) + actorType_; - hash = (37 * hash) + USER_ACTOR_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getUserActorEmail().hashCode(); - hash = (37 * hash) + CHANGES_FILTERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getChangesFiltered()); - if (getChangesCount() > 0) { - hash = (37 * hash) + CHANGES_FIELD_NUMBER; - hash = (53 * hash) + getChangesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A set of changes within a Google Analytics account or its child properties
-   * that resulted from the same cause. Common causes would be updates made in the
-   * Google Analytics UI, changes from customer support, or automatic Google
-   * Analytics system changes.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) - com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryEvent.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - changeTime_ = null; - if (changeTimeBuilder_ != null) { - changeTimeBuilder_.dispose(); - changeTimeBuilder_ = null; - } - actorType_ = 0; - userActorEmail_ = ""; - changesFiltered_ = false; - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - } else { - changes_ = null; - changesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent build() { - com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent buildPartial() { - com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ChangeHistoryEvent result) { - if (changesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - changes_ = java.util.Collections.unmodifiableList(changes_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.changes_ = changes_; - } else { - result.changes_ = changesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChangeHistoryEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.changeTime_ = changeTimeBuilder_ == null - ? changeTime_ - : changeTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.actorType_ = actorType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.userActorEmail_ = userActorEmail_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.changesFiltered_ = changesFiltered_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChangeHistoryEvent) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryEvent other) { - if (other == com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasChangeTime()) { - mergeChangeTime(other.getChangeTime()); - } - if (other.actorType_ != 0) { - setActorTypeValue(other.getActorTypeValue()); - } - if (!other.getUserActorEmail().isEmpty()) { - userActorEmail_ = other.userActorEmail_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getChangesFiltered() != false) { - setChangesFiltered(other.getChangesFiltered()); - } - if (changesBuilder_ == null) { - if (!other.changes_.isEmpty()) { - if (changes_.isEmpty()) { - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureChangesIsMutable(); - changes_.addAll(other.changes_); - } - onChanged(); - } - } else { - if (!other.changes_.isEmpty()) { - if (changesBuilder_.isEmpty()) { - changesBuilder_.dispose(); - changesBuilder_ = null; - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000020); - changesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangesFieldBuilder() : null; - } else { - changesBuilder_.addAllMessages(other.changes_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getChangeTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - actorType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - userActorEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - changesFiltered_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - com.google.analytics.admin.v1alpha.ChangeHistoryChange m = - input.readMessage( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.parser(), - extensionRegistry); - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(m); - } else { - changesBuilder_.addMessage(m); - } - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp changeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> changeTimeBuilder_; - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return Whether the changeTime field is set. - */ - public boolean hasChangeTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return The changeTime. - */ - public com.google.protobuf.Timestamp getChangeTime() { - if (changeTimeBuilder_ == null) { - return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } else { - return changeTimeBuilder_.getMessage(); - } - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder setChangeTime(com.google.protobuf.Timestamp value) { - if (changeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - changeTime_ = value; - } else { - changeTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder setChangeTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (changeTimeBuilder_ == null) { - changeTime_ = builderForValue.build(); - } else { - changeTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder mergeChangeTime(com.google.protobuf.Timestamp value) { - if (changeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - changeTime_ != null && - changeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getChangeTimeBuilder().mergeFrom(value); - } else { - changeTime_ = value; - } - } else { - changeTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder clearChangeTime() { - bitField0_ = (bitField0_ & ~0x00000002); - changeTime_ = null; - if (changeTimeBuilder_ != null) { - changeTimeBuilder_.dispose(); - changeTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getChangeTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { - if (changeTimeBuilder_ != null) { - return changeTimeBuilder_.getMessageOrBuilder(); - } else { - return changeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getChangeTimeFieldBuilder() { - if (changeTimeBuilder_ == null) { - changeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getChangeTime(), - getParentForChildren(), - isClean()); - changeTime_ = null; - } - return changeTimeBuilder_; - } - - private int actorType_ = 0; - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return The enum numeric value on the wire for actorType. - */ - @java.lang.Override public int getActorTypeValue() { - return actorType_; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @param value The enum numeric value on the wire for actorType to set. - * @return This builder for chaining. - */ - public Builder setActorTypeValue(int value) { - actorType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return The actorType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ActorType getActorType() { - com.google.analytics.admin.v1alpha.ActorType result = com.google.analytics.admin.v1alpha.ActorType.forNumber(actorType_); - return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @param value The actorType to set. - * @return This builder for chaining. - */ - public Builder setActorType(com.google.analytics.admin.v1alpha.ActorType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - actorType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return This builder for chaining. - */ - public Builder clearActorType() { - bitField0_ = (bitField0_ & ~0x00000004); - actorType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object userActorEmail_ = ""; - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @return The userActorEmail. - */ - public java.lang.String getUserActorEmail() { - java.lang.Object ref = userActorEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userActorEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @return The bytes for userActorEmail. - */ - public com.google.protobuf.ByteString - getUserActorEmailBytes() { - java.lang.Object ref = userActorEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userActorEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @param value The userActorEmail to set. - * @return This builder for chaining. - */ - public Builder setUserActorEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - userActorEmail_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @return This builder for chaining. - */ - public Builder clearUserActorEmail() { - userActorEmail_ = getDefaultInstance().getUserActorEmail(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @param value The bytes for userActorEmail to set. - * @return This builder for chaining. - */ - public Builder setUserActorEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - userActorEmail_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private boolean changesFiltered_ ; - /** - *
-     * If true, then the list of changes returned was filtered, and does not
-     * represent all changes that occurred in this event.
-     * 
- * - * bool changes_filtered = 5; - * @return The changesFiltered. - */ - @java.lang.Override - public boolean getChangesFiltered() { - return changesFiltered_; - } - /** - *
-     * If true, then the list of changes returned was filtered, and does not
-     * represent all changes that occurred in this event.
-     * 
- * - * bool changes_filtered = 5; - * @param value The changesFiltered to set. - * @return This builder for chaining. - */ - public Builder setChangesFiltered(boolean value) { - - changesFiltered_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * If true, then the list of changes returned was filtered, and does not
-     * represent all changes that occurred in this event.
-     * 
- * - * bool changes_filtered = 5; - * @return This builder for chaining. - */ - public Builder clearChangesFiltered() { - bitField0_ = (bitField0_ & ~0x00000010); - changesFiltered_ = false; - onChanged(); - return this; - } - - private java.util.List changes_ = - java.util.Collections.emptyList(); - private void ensureChangesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - changes_ = new java.util.ArrayList(changes_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> changesBuilder_; - - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public java.util.List getChangesList() { - if (changesBuilder_ == null) { - return java.util.Collections.unmodifiableList(changes_); - } else { - return changesBuilder_.getMessageList(); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public int getChangesCount() { - if (changesBuilder_ == null) { - return changes_.size(); - } else { - return changesBuilder_.getCount(); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { - if (changesBuilder_ == null) { - return changes_.get(index); - } else { - return changesBuilder_.getMessage(index); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder setChanges( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.set(index, value); - onChanged(); - } else { - changesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder setChanges( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.set(index, builderForValue.build()); - onChanged(); - } else { - changesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder addChanges(com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.add(value); - onChanged(); - } else { - changesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder addChanges( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.add(index, value); - onChanged(); - } else { - changesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder addChanges( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(builderForValue.build()); - onChanged(); - } else { - changesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder addChanges( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(index, builderForValue.build()); - onChanged(); - } else { - changesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder addAllChanges( - java.lang.Iterable values) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changes_); - onChanged(); - } else { - changesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder clearChanges() { - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - changesBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public Builder removeChanges(int index) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.remove(index); - onChanged(); - } else { - changesBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder getChangesBuilder( - int index) { - return getChangesFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( - int index) { - if (changesBuilder_ == null) { - return changes_.get(index); } else { - return changesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public java.util.List - getChangesOrBuilderList() { - if (changesBuilder_ != null) { - return changesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(changes_); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder() { - return getChangesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder( - int index) { - return getChangesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - public java.util.List - getChangesBuilderList() { - return getChangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> - getChangesFieldBuilder() { - if (changesBuilder_ == null) { - changesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryChange, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>( - changes_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - changes_ = null; - } - return changesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryEvent) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryEvent) - private static final com.google.analytics.admin.v1alpha.ChangeHistoryEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(); - } - - public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChangeHistoryEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java deleted file mode 100644 index 5556422b64a7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java +++ /dev/null @@ -1,159 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface ChangeHistoryEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return Whether the changeTime field is set. - */ - boolean hasChangeTime(); - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return The changeTime. - */ - com.google.protobuf.Timestamp getChangeTime(); - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder(); - - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return The enum numeric value on the wire for actorType. - */ - int getActorTypeValue(); - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1alpha.ActorType actor_type = 3; - * @return The actorType. - */ - com.google.analytics.admin.v1alpha.ActorType getActorType(); - - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The userActorEmail. - */ - java.lang.String getUserActorEmail(); - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The bytes for userActorEmail. - */ - com.google.protobuf.ByteString - getUserActorEmailBytes(); - - /** - *
-   * If true, then the list of changes returned was filtered, and does not
-   * represent all changes that occurred in this event.
-   * 
- * - * bool changes_filtered = 5; - * @return The changesFiltered. - */ - boolean getChangesFiltered(); - - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - java.util.List - getChangesList(); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - int getChangesCount(); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - java.util.List - getChangesOrBuilderList(); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; - */ - com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java deleted file mode 100644 index 767600822003..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ /dev/null @@ -1,507 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Types of resources whose changes may be returned from change history.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.ChangeHistoryResourceType} - */ -public enum ChangeHistoryResourceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Resource type unknown or not specified.
-   * 
- * - * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED(0), - /** - *
-   * Account resource
-   * 
- * - * ACCOUNT = 1; - */ - ACCOUNT(1), - /** - *
-   * Property resource
-   * 
- * - * PROPERTY = 2; - */ - PROPERTY(2), - /** - *
-   * FirebaseLink resource
-   * 
- * - * FIREBASE_LINK = 6; - */ - FIREBASE_LINK(6), - /** - *
-   * GoogleAdsLink resource
-   * 
- * - * GOOGLE_ADS_LINK = 7; - */ - GOOGLE_ADS_LINK(7), - /** - *
-   * GoogleSignalsSettings resource
-   * 
- * - * GOOGLE_SIGNALS_SETTINGS = 8; - */ - GOOGLE_SIGNALS_SETTINGS(8), - /** - *
-   * ConversionEvent resource
-   * 
- * - * CONVERSION_EVENT = 9; - */ - CONVERSION_EVENT(9), - /** - *
-   * MeasurementProtocolSecret resource
-   * 
- * - * MEASUREMENT_PROTOCOL_SECRET = 10; - */ - MEASUREMENT_PROTOCOL_SECRET(10), - /** - *
-   * CustomDimension resource
-   * 
- * - * CUSTOM_DIMENSION = 11; - */ - CUSTOM_DIMENSION(11), - /** - *
-   * CustomMetric resource
-   * 
- * - * CUSTOM_METRIC = 12; - */ - CUSTOM_METRIC(12), - /** - *
-   * DataRetentionSettings resource
-   * 
- * - * DATA_RETENTION_SETTINGS = 13; - */ - DATA_RETENTION_SETTINGS(13), - /** - *
-   * DisplayVideo360AdvertiserLink resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - DISPLAY_VIDEO_360_ADVERTISER_LINK(14), - /** - *
-   * DisplayVideo360AdvertiserLinkProposal resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(15), - /** - *
-   * SearchAds360Link resource
-   * 
- * - * SEARCH_ADS_360_LINK = 16; - */ - SEARCH_ADS_360_LINK(16), - /** - *
-   * DataStream resource
-   * 
- * - * DATA_STREAM = 18; - */ - DATA_STREAM(18), - /** - *
-   * AttributionSettings resource
-   * 
- * - * ATTRIBUTION_SETTINGS = 20; - */ - ATTRIBUTION_SETTINGS(20), - /** - *
-   * ExpandedDataSet resource
-   * 
- * - * EXPANDED_DATA_SET = 21; - */ - EXPANDED_DATA_SET(21), - /** - *
-   * ChannelGroup resource
-   * 
- * - * CHANNEL_GROUP = 22; - */ - CHANNEL_GROUP(22), - /** - *
-   * EnhancedMeasurementSettings resource
-   * 
- * - * ENHANCED_MEASUREMENT_SETTINGS = 24; - */ - ENHANCED_MEASUREMENT_SETTINGS(24), - /** - *
-   * DataRedactionSettings resource
-   * 
- * - * DATA_REDACTION_SETTINGS = 25; - */ - DATA_REDACTION_SETTINGS(25), - /** - *
-   * SKAdNetworkConversionValueSchema resource
-   * 
- * - * SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; - */ - SKADNETWORK_CONVERSION_VALUE_SCHEMA(26), - /** - *
-   * AdSenseLink resource
-   * 
- * - * ADSENSE_LINK = 27; - */ - ADSENSE_LINK(27), - /** - *
-   * Audience resource
-   * 
- * - * AUDIENCE = 28; - */ - AUDIENCE(28), - /** - *
-   * EventCreateRule resource
-   * 
- * - * EVENT_CREATE_RULE = 29; - */ - EVENT_CREATE_RULE(29), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Resource type unknown or not specified.
-   * 
- * - * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Account resource
-   * 
- * - * ACCOUNT = 1; - */ - public static final int ACCOUNT_VALUE = 1; - /** - *
-   * Property resource
-   * 
- * - * PROPERTY = 2; - */ - public static final int PROPERTY_VALUE = 2; - /** - *
-   * FirebaseLink resource
-   * 
- * - * FIREBASE_LINK = 6; - */ - public static final int FIREBASE_LINK_VALUE = 6; - /** - *
-   * GoogleAdsLink resource
-   * 
- * - * GOOGLE_ADS_LINK = 7; - */ - public static final int GOOGLE_ADS_LINK_VALUE = 7; - /** - *
-   * GoogleSignalsSettings resource
-   * 
- * - * GOOGLE_SIGNALS_SETTINGS = 8; - */ - public static final int GOOGLE_SIGNALS_SETTINGS_VALUE = 8; - /** - *
-   * ConversionEvent resource
-   * 
- * - * CONVERSION_EVENT = 9; - */ - public static final int CONVERSION_EVENT_VALUE = 9; - /** - *
-   * MeasurementProtocolSecret resource
-   * 
- * - * MEASUREMENT_PROTOCOL_SECRET = 10; - */ - public static final int MEASUREMENT_PROTOCOL_SECRET_VALUE = 10; - /** - *
-   * CustomDimension resource
-   * 
- * - * CUSTOM_DIMENSION = 11; - */ - public static final int CUSTOM_DIMENSION_VALUE = 11; - /** - *
-   * CustomMetric resource
-   * 
- * - * CUSTOM_METRIC = 12; - */ - public static final int CUSTOM_METRIC_VALUE = 12; - /** - *
-   * DataRetentionSettings resource
-   * 
- * - * DATA_RETENTION_SETTINGS = 13; - */ - public static final int DATA_RETENTION_SETTINGS_VALUE = 13; - /** - *
-   * DisplayVideo360AdvertiserLink resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_VALUE = 14; - /** - *
-   * DisplayVideo360AdvertiserLinkProposal resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_VALUE = 15; - /** - *
-   * SearchAds360Link resource
-   * 
- * - * SEARCH_ADS_360_LINK = 16; - */ - public static final int SEARCH_ADS_360_LINK_VALUE = 16; - /** - *
-   * DataStream resource
-   * 
- * - * DATA_STREAM = 18; - */ - public static final int DATA_STREAM_VALUE = 18; - /** - *
-   * AttributionSettings resource
-   * 
- * - * ATTRIBUTION_SETTINGS = 20; - */ - public static final int ATTRIBUTION_SETTINGS_VALUE = 20; - /** - *
-   * ExpandedDataSet resource
-   * 
- * - * EXPANDED_DATA_SET = 21; - */ - public static final int EXPANDED_DATA_SET_VALUE = 21; - /** - *
-   * ChannelGroup resource
-   * 
- * - * CHANNEL_GROUP = 22; - */ - public static final int CHANNEL_GROUP_VALUE = 22; - /** - *
-   * EnhancedMeasurementSettings resource
-   * 
- * - * ENHANCED_MEASUREMENT_SETTINGS = 24; - */ - public static final int ENHANCED_MEASUREMENT_SETTINGS_VALUE = 24; - /** - *
-   * DataRedactionSettings resource
-   * 
- * - * DATA_REDACTION_SETTINGS = 25; - */ - public static final int DATA_REDACTION_SETTINGS_VALUE = 25; - /** - *
-   * SKAdNetworkConversionValueSchema resource
-   * 
- * - * SKADNETWORK_CONVERSION_VALUE_SCHEMA = 26; - */ - public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_VALUE = 26; - /** - *
-   * AdSenseLink resource
-   * 
- * - * ADSENSE_LINK = 27; - */ - public static final int ADSENSE_LINK_VALUE = 27; - /** - *
-   * Audience resource
-   * 
- * - * AUDIENCE = 28; - */ - public static final int AUDIENCE_VALUE = 28; - /** - *
-   * EventCreateRule resource
-   * 
- * - * EVENT_CREATE_RULE = 29; - */ - public static final int EVENT_CREATE_RULE_VALUE = 29; - - - 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 ChangeHistoryResourceType 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 ChangeHistoryResourceType forNumber(int value) { - switch (value) { - case 0: return CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED; - case 1: return ACCOUNT; - case 2: return PROPERTY; - case 6: return FIREBASE_LINK; - case 7: return GOOGLE_ADS_LINK; - case 8: return GOOGLE_SIGNALS_SETTINGS; - case 9: return CONVERSION_EVENT; - case 10: return MEASUREMENT_PROTOCOL_SECRET; - case 11: return CUSTOM_DIMENSION; - case 12: return CUSTOM_METRIC; - case 13: return DATA_RETENTION_SETTINGS; - case 14: return DISPLAY_VIDEO_360_ADVERTISER_LINK; - case 15: return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; - case 16: return SEARCH_ADS_360_LINK; - case 18: return DATA_STREAM; - case 20: return ATTRIBUTION_SETTINGS; - case 21: return EXPANDED_DATA_SET; - case 22: return CHANNEL_GROUP; - case 24: return ENHANCED_MEASUREMENT_SETTINGS; - case 25: return DATA_REDACTION_SETTINGS; - case 26: return SKADNETWORK_CONVERSION_VALUE_SCHEMA; - case 27: return ADSENSE_LINK; - case 28: return AUDIENCE; - case 29: return EVENT_CREATE_RULE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ChangeHistoryResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ChangeHistoryResourceType findValueByNumber(int number) { - return ChangeHistoryResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(4); - } - - private static final ChangeHistoryResourceType[] VALUES = values(); - - public static ChangeHistoryResourceType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ChangeHistoryResourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ChangeHistoryResourceType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java deleted file mode 100644 index 3a14d4f809d6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroup.java +++ /dev/null @@ -1,1452 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing a Channel Group.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroup} - */ -public final class ChannelGroup extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroup) - ChannelGroupOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChannelGroup.newBuilder() to construct. - private ChannelGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChannelGroup() { - name_ = ""; - displayName_ = ""; - description_ = ""; - groupingRule_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChannelGroup(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroup.class, com.google.analytics.admin.v1alpha.ChannelGroup.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. The resource name for this Channel Group resource.
-   * Format: properties/{property}/channelGroups/{channel_group}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name for this Channel Group resource.
-   * Format: properties/{property}/channelGroups/{channel_group}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. The display name of the Channel Group. Max length of 80
-   * characters.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. The display name of the Channel Group. Max length of 80
-   * characters.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * The description of the Channel Group. Max length of 256 characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-   * The description of the Channel Group. Max length of 256 characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GROUPING_RULE_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List groupingRule_; - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List getGroupingRuleList() { - return groupingRule_; - } - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List - getGroupingRuleOrBuilderList() { - return groupingRule_; - } - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public int getGroupingRuleCount() { - return groupingRule_.size(); - } - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index) { - return groupingRule_.get(index); - } - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleOrBuilder( - int index) { - return groupingRule_.get(index); - } - - public static final int SYSTEM_DEFINED_FIELD_NUMBER = 5; - private boolean systemDefined_ = false; - /** - *
-   * Output only. Default Channel Group defined by Google, which cannot be
-   * updated.
-   * 
- * - * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The systemDefined. - */ - @java.lang.Override - public boolean getSystemDefined() { - return systemDefined_; - } - - 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(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - for (int i = 0; i < groupingRule_.size(); i++) { - output.writeMessage(4, groupingRule_.get(i)); - } - if (systemDefined_ != false) { - output.writeBool(5, systemDefined_); - } - 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(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - for (int i = 0; i < groupingRule_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, groupingRule_.get(i)); - } - if (systemDefined_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, systemDefined_); - } - 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.admin.v1alpha.ChannelGroup)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChannelGroup other = (com.google.analytics.admin.v1alpha.ChannelGroup) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getGroupingRuleList() - .equals(other.getGroupingRuleList())) return false; - if (getSystemDefined() - != other.getSystemDefined()) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getGroupingRuleCount() > 0) { - hash = (37 * hash) + GROUPING_RULE_FIELD_NUMBER; - hash = (53 * hash) + getGroupingRuleList().hashCode(); - } - hash = (37 * hash) + SYSTEM_DEFINED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSystemDefined()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroup parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroup parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChannelGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a Channel Group.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroup} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroup) - com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroup.class, com.google.analytics.admin.v1alpha.ChannelGroup.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChannelGroup.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - if (groupingRuleBuilder_ == null) { - groupingRule_ = java.util.Collections.emptyList(); - } else { - groupingRule_ = null; - groupingRuleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - systemDefined_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup build() { - com.google.analytics.admin.v1alpha.ChannelGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup buildPartial() { - com.google.analytics.admin.v1alpha.ChannelGroup result = new com.google.analytics.admin.v1alpha.ChannelGroup(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ChannelGroup result) { - if (groupingRuleBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - groupingRule_ = java.util.Collections.unmodifiableList(groupingRule_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.groupingRule_ = groupingRule_; - } else { - result.groupingRule_ = groupingRuleBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroup result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.systemDefined_ = systemDefined_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroup) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroup)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroup other) { - if (other == com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (groupingRuleBuilder_ == null) { - if (!other.groupingRule_.isEmpty()) { - if (groupingRule_.isEmpty()) { - groupingRule_ = other.groupingRule_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureGroupingRuleIsMutable(); - groupingRule_.addAll(other.groupingRule_); - } - onChanged(); - } - } else { - if (!other.groupingRule_.isEmpty()) { - if (groupingRuleBuilder_.isEmpty()) { - groupingRuleBuilder_.dispose(); - groupingRuleBuilder_ = null; - groupingRule_ = other.groupingRule_; - bitField0_ = (bitField0_ & ~0x00000008); - groupingRuleBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGroupingRuleFieldBuilder() : null; - } else { - groupingRuleBuilder_.addAllMessages(other.groupingRule_); - } - } - } - if (other.getSystemDefined() != false) { - setSystemDefined(other.getSystemDefined()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.analytics.admin.v1alpha.GroupingRule m = - input.readMessage( - com.google.analytics.admin.v1alpha.GroupingRule.parser(), - extensionRegistry); - if (groupingRuleBuilder_ == null) { - ensureGroupingRuleIsMutable(); - groupingRule_.add(m); - } else { - groupingRuleBuilder_.addMessage(m); - } - break; - } // case 34 - case 40: { - systemDefined_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. The resource name for this Channel Group resource.
-     * Format: properties/{property}/channelGroups/{channel_group}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name for this Channel Group resource.
-     * Format: properties/{property}/channelGroups/{channel_group}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name for this Channel Group resource.
-     * Format: properties/{property}/channelGroups/{channel_group}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name for this Channel Group resource.
-     * Format: properties/{property}/channelGroups/{channel_group}
-     * 
- * - * string name = 1 [(.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. The resource name for this Channel Group resource.
-     * Format: properties/{property}/channelGroups/{channel_group}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. The display name of the Channel Group. Max length of 80
-     * characters.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The display name of the Channel Group. Max length of 80
-     * characters.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The display name of the Channel Group. Max length of 80
-     * characters.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The display name of the Channel Group. Max length of 80
-     * characters.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. The display name of the Channel Group. Max length of 80
-     * characters.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * The description of the Channel Group. Max length of 256 characters.
-     * 
- * - * string description = 3; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The description of the Channel Group. Max length of 256 characters.
-     * 
- * - * string description = 3; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The description of the Channel Group. Max length of 256 characters.
-     * 
- * - * string description = 3; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The description of the Channel Group. Max length of 256 characters.
-     * 
- * - * string description = 3; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * The description of the Channel Group. Max length of 256 characters.
-     * 
- * - * string description = 3; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List groupingRule_ = - java.util.Collections.emptyList(); - private void ensureGroupingRuleIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - groupingRule_ = new java.util.ArrayList(groupingRule_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.GroupingRule, com.google.analytics.admin.v1alpha.GroupingRule.Builder, com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder> groupingRuleBuilder_; - - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List getGroupingRuleList() { - if (groupingRuleBuilder_ == null) { - return java.util.Collections.unmodifiableList(groupingRule_); - } else { - return groupingRuleBuilder_.getMessageList(); - } - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public int getGroupingRuleCount() { - if (groupingRuleBuilder_ == null) { - return groupingRule_.size(); - } else { - return groupingRuleBuilder_.getCount(); - } - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index) { - if (groupingRuleBuilder_ == null) { - return groupingRule_.get(index); - } else { - return groupingRuleBuilder_.getMessage(index); - } - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGroupingRule( - int index, com.google.analytics.admin.v1alpha.GroupingRule value) { - if (groupingRuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupingRuleIsMutable(); - groupingRule_.set(index, value); - onChanged(); - } else { - groupingRuleBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGroupingRule( - int index, com.google.analytics.admin.v1alpha.GroupingRule.Builder builderForValue) { - if (groupingRuleBuilder_ == null) { - ensureGroupingRuleIsMutable(); - groupingRule_.set(index, builderForValue.build()); - onChanged(); - } else { - groupingRuleBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addGroupingRule(com.google.analytics.admin.v1alpha.GroupingRule value) { - if (groupingRuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupingRuleIsMutable(); - groupingRule_.add(value); - onChanged(); - } else { - groupingRuleBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addGroupingRule( - int index, com.google.analytics.admin.v1alpha.GroupingRule value) { - if (groupingRuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGroupingRuleIsMutable(); - groupingRule_.add(index, value); - onChanged(); - } else { - groupingRuleBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addGroupingRule( - com.google.analytics.admin.v1alpha.GroupingRule.Builder builderForValue) { - if (groupingRuleBuilder_ == null) { - ensureGroupingRuleIsMutable(); - groupingRule_.add(builderForValue.build()); - onChanged(); - } else { - groupingRuleBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addGroupingRule( - int index, com.google.analytics.admin.v1alpha.GroupingRule.Builder builderForValue) { - if (groupingRuleBuilder_ == null) { - ensureGroupingRuleIsMutable(); - groupingRule_.add(index, builderForValue.build()); - onChanged(); - } else { - groupingRuleBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addAllGroupingRule( - java.lang.Iterable values) { - if (groupingRuleBuilder_ == null) { - ensureGroupingRuleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, groupingRule_); - onChanged(); - } else { - groupingRuleBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearGroupingRule() { - if (groupingRuleBuilder_ == null) { - groupingRule_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - groupingRuleBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder removeGroupingRule(int index) { - if (groupingRuleBuilder_ == null) { - ensureGroupingRuleIsMutable(); - groupingRule_.remove(index); - onChanged(); - } else { - groupingRuleBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GroupingRule.Builder getGroupingRuleBuilder( - int index) { - return getGroupingRuleFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleOrBuilder( - int index) { - if (groupingRuleBuilder_ == null) { - return groupingRule_.get(index); } else { - return groupingRuleBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getGroupingRuleOrBuilderList() { - if (groupingRuleBuilder_ != null) { - return groupingRuleBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(groupingRule_); - } - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GroupingRule.Builder addGroupingRuleBuilder() { - return getGroupingRuleFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance()); - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GroupingRule.Builder addGroupingRuleBuilder( - int index) { - return getGroupingRuleFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance()); - } - /** - *
-     * Required. The grouping rules of channels. Maximum number of rules is 25.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getGroupingRuleBuilderList() { - return getGroupingRuleFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.GroupingRule, com.google.analytics.admin.v1alpha.GroupingRule.Builder, com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder> - getGroupingRuleFieldBuilder() { - if (groupingRuleBuilder_ == null) { - groupingRuleBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.GroupingRule, com.google.analytics.admin.v1alpha.GroupingRule.Builder, com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder>( - groupingRule_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - groupingRule_ = null; - } - return groupingRuleBuilder_; - } - - private boolean systemDefined_ ; - /** - *
-     * Output only. Default Channel Group defined by Google, which cannot be
-     * updated.
-     * 
- * - * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The systemDefined. - */ - @java.lang.Override - public boolean getSystemDefined() { - return systemDefined_; - } - /** - *
-     * Output only. Default Channel Group defined by Google, which cannot be
-     * updated.
-     * 
- * - * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The systemDefined to set. - * @return This builder for chaining. - */ - public Builder setSystemDefined(boolean value) { - - systemDefined_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. Default Channel Group defined by Google, which cannot be
-     * updated.
-     * 
- * - * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearSystemDefined() { - bitField0_ = (bitField0_ & ~0x00000010); - systemDefined_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroup) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroup) - private static final com.google.analytics.admin.v1alpha.ChannelGroup DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroup(); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChannelGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilter.java deleted file mode 100644 index 4feb2487d6ae..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilter.java +++ /dev/null @@ -1,2839 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A specific filter for a single dimension.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter} - */ -public final class ChannelGroupFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter) - ChannelGroupFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChannelGroupFilter.newBuilder() to construct. - private ChannelGroupFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChannelGroupFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChannelGroupFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.class, com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder.class); - } - - public interface StringFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - int getMatchTypeValue(); - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType getMatchType(); - - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - } - /** - *
-   * Filter where the field value is a String. The match is case insensitive.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} - */ - public static final class StringFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) - StringFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use StringFilter.newBuilder() to construct. - private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.class, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder.class); - } - - /** - *
-     * How the filter will be used to determine a match.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType} - */ - public enum MatchType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Default match type.
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - BEGINS_WITH(2), - /** - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - ENDS_WITH(3), - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - CONTAINS(4), - /** - *
-       * Full regular expression match with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - *
-       * Partial regular expression match with the string value.
-       * 
- * - * PARTIAL_REGEXP = 6; - */ - PARTIAL_REGEXP(6), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Default match type.
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - public static final int BEGINS_WITH_VALUE = 2; - /** - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - public static final int ENDS_WITH_VALUE = 3; - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - public static final int CONTAINS_VALUE = 4; - /** - *
-       * Full regular expression match with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - *
-       * Partial regular expression match with the string value.
-       * 
- * - * PARTIAL_REGEXP = 6; - */ - public static final int PARTIAL_REGEXP_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: return MATCH_TYPE_UNSPECIFIED; - case 1: return EXACT; - case 2: return BEGINS_WITH; - case 3: return ENDS_WITH; - case 4: return CONTAINS; - case 5: return FULL_REGEXP; - case 6: return PARTIAL_REGEXP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_ = 0; - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (matchType_ != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - 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.admin.v1alpha.ChannelGroupFilter.StringFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter other = (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue() - .equals(other.getValue())) 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) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter 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; - } - /** - *
-     * Filter where the field value is a String. The match is case insensitive.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.class, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - matchType_ = 0; - value_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter build() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter buildPartial() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter result = new com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.matchType_ = matchType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter other) { - if (other == com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance()) return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - matchType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int matchType_ = 0; - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - matchType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType.UNRECOGNIZED : result; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType(com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMatchType() { - bitField0_ = (bitField0_ & ~0x00000001); - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) - private static final com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter(); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface InListFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - java.util.List - getValuesList(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - int getValuesCount(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - } - /** - *
-   * A filter for a string dimension that matches a particular list of options.
-   * The match is case insensitive.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} - */ - public static final class InListFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) - InListFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use InListFilter.newBuilder() to construct. - private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InListFilter() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InListFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.class, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - 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.admin.v1alpha.ChannelGroupFilter.InListFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter other = (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) obj; - - if (!getValuesList() - .equals(other.getValuesList())) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for a string dimension that matches a particular list of options.
-     * The match is case insensitive.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.class, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter build() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter buildPartial() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter result = new com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter other) { - if (other == com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000001; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000001; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - values_.makeImmutable(); - return values_; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - 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.admin.v1alpha.ChannelGroupFilter.InListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) - private static final com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter(); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InListFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int valueFilterCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object valueFilter_; - public enum ValueFilterCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STRING_FILTER(2), - IN_LIST_FILTER(3), - VALUEFILTER_NOT_SET(0); - private final int value; - private ValueFilterCase(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 ValueFilterCase valueOf(int value) { - return forNumber(value); - } - - public static ValueFilterCase forNumber(int value) { - switch (value) { - case 2: return STRING_FILTER; - case 3: return IN_LIST_FILTER; - case 0: return VALUEFILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ValueFilterCase - getValueFilterCase() { - return ValueFilterCase.forNumber( - valueFilterCase_); - } - - public static final int STRING_FILTER_FIELD_NUMBER = 2; - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return valueFilterCase_ == 2; - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter() { - if (valueFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder getStringFilterOrBuilder() { - if (valueFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return valueFilterCase_ == 3; - } - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter() { - if (valueFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); - } - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder getInListFilterOrBuilder() { - if (valueFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; - /** - *
-   * Required. Immutable. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - *
-   * Required. Immutable. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (valueFilterCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_); - } - if (valueFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_); - } - 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(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (valueFilterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_); - } - if (valueFilterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_); - } - 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.admin.v1alpha.ChannelGroupFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChannelGroupFilter other = (com.google.analytics.admin.v1alpha.ChannelGroupFilter) obj; - - if (!getFieldName() - .equals(other.getFieldName())) return false; - if (!getValueFilterCase().equals(other.getValueFilterCase())) return false; - switch (valueFilterCase_) { - case 2: - if (!getStringFilter() - .equals(other.getStringFilter())) return false; - break; - case 3: - if (!getInListFilter() - .equals(other.getInListFilter())) 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(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (valueFilterCase_) { - case 2: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChannelGroupFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A specific filter for a single dimension.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilter) - com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.class, com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChannelGroupFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - fieldName_ = ""; - valueFilterCase_ = 0; - valueFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter build() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter buildPartial() { - com.google.analytics.admin.v1alpha.ChannelGroupFilter result = new com.google.analytics.admin.v1alpha.ChannelGroupFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroupFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.fieldName_ = fieldName_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.ChannelGroupFilter result) { - result.valueFilterCase_ = valueFilterCase_; - result.valueFilter_ = this.valueFilter_; - if (valueFilterCase_ == 2 && - stringFilterBuilder_ != null) { - result.valueFilter_ = stringFilterBuilder_.build(); - } - if (valueFilterCase_ == 3 && - inListFilterBuilder_ != null) { - result.valueFilter_ = inListFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroupFilter other) { - if (other == com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000004; - onChanged(); - } - switch (other.getValueFilterCase()) { - case STRING_FILTER: { - mergeStringFilter(other.getStringFilter()); - break; - } - case IN_LIST_FILTER: { - mergeInListFilter(other.getInListFilter()); - break; - } - case VALUEFILTER_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - fieldName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: { - input.readMessage( - getStringFilterFieldBuilder().getBuilder(), - extensionRegistry); - valueFilterCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getInListFilterFieldBuilder().getBuilder(), - extensionRegistry); - valueFilterCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int valueFilterCase_ = 0; - private java.lang.Object valueFilter_; - public ValueFilterCase - getValueFilterCase() { - return ValueFilterCase.forNumber( - valueFilterCase_); - } - - public Builder clearValueFilter() { - valueFilterCase_ = 0; - valueFilter_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder> stringFilterBuilder_; - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return valueFilterCase_ == 2; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (valueFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); - } else { - if (valueFilterCase_ == 2) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - public Builder setStringFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - valueFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - valueFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - public Builder setStringFilter( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - valueFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - valueFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (valueFilterCase_ == 2 && - valueFilter_ != com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance()) { - valueFilter_ = com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.newBuilder((com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_) - .mergeFrom(value).buildPartial(); - } else { - valueFilter_ = value; - } - onChanged(); - } else { - if (valueFilterCase_ == 2) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - valueFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (valueFilterCase_ == 2) { - valueFilterCase_ = 0; - valueFilter_ = null; - onChanged(); - } - } else { - if (valueFilterCase_ == 2) { - valueFilterCase_ = 0; - valueFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((valueFilterCase_ == 2) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (valueFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(valueFilterCase_ == 2)) { - valueFilter_ = com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter) valueFilter_, - getParentForChildren(), - isClean()); - valueFilter_ = null; - } - valueFilterCase_ = 2; - onChanged(); - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder> inListFilterBuilder_; - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return valueFilterCase_ == 3; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (valueFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); - } else { - if (valueFilterCase_ == 3) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - valueFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - valueFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - valueFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - valueFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - public Builder mergeInListFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (valueFilterCase_ == 3 && - valueFilter_ != com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance()) { - valueFilter_ = com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.newBuilder((com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_) - .mergeFrom(value).buildPartial(); - } else { - valueFilter_ = value; - } - onChanged(); - } else { - if (valueFilterCase_ == 3) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - valueFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (valueFilterCase_ == 3) { - valueFilterCase_ = 0; - valueFilter_ = null; - onChanged(); - } - } else { - if (valueFilterCase_ == 3) { - valueFilterCase_ = 0; - valueFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((valueFilterCase_ == 3) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (valueFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(valueFilterCase_ == 3)) { - valueFilter_ = com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter) valueFilter_, - getParentForChildren(), - isClean()); - valueFilter_ = null; - } - valueFilterCase_ = 3; - onChanged(); - return inListFilterBuilder_; - } - - private java.lang.Object fieldName_ = ""; - /** - *
-     * Required. Immutable. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Immutable. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Immutable. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilter) - private static final com.google.analytics.admin.v1alpha.ChannelGroupFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilter(); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChannelGroupFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpression.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpression.java deleted file mode 100644 index 459b09d44539..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpression.java +++ /dev/null @@ -1,1584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A logical expression of Channel Group dimension filters.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpression} - */ -public final class ChannelGroupFilterExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) - ChannelGroupFilterExpressionOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChannelGroupFilterExpression.newBuilder() to construct. - private ChannelGroupFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChannelGroupFilterExpression() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChannelGroupFilterExpression(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.class, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder.class); - } - - private int exprCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object expr_; - public enum ExprCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AND_GROUP(1), - OR_GROUP(2), - NOT_EXPRESSION(3), - FILTER(4), - EXPR_NOT_SET(0); - private final int value; - private ExprCase(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 ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: return AND_GROUP; - case 2: return OR_GROUP; - case 3: return NOT_EXPRESSION; - case 4: return FILTER; - case 0: return EXPR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public static final int AND_GROUP_FIELD_NUMBER = 1; - /** - *
-   * A list of expressions to be AND’ed together. It can only contain
-   * ChannelGroupFilterExpressions with or_group. This must be set for the
-   * top level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - *
-   * A list of expressions to be AND’ed together. It can only contain
-   * ChannelGroupFilterExpressions with or_group. This must be set for the
-   * top level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * A list of expressions to be AND’ed together. It can only contain
-   * ChannelGroupFilterExpressions with or_group. This must be set for the
-   * top level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - *
-   * A list of expressions to OR’ed together. It cannot contain
-   * ChannelGroupFilterExpressions with and_group or or_group.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - *
-   * A list of expressions to OR’ed together. It cannot contain
-   * ChannelGroupFilterExpressions with and_group or or_group.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * A list of expressions to OR’ed together. It cannot contain
-   * ChannelGroupFilterExpressions with and_group or or_group.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - *
-   * A filter expression to be NOT'ed (that is inverted, complemented). It
-   * can only include a dimension_or_metric_filter. This cannot be set on the
-   * top level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - *
-   * A filter expression to be NOT'ed (that is inverted, complemented). It
-   * can only include a dimension_or_metric_filter. This cannot be set on the
-   * top level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); - } - /** - *
-   * A filter expression to be NOT'ed (that is inverted, complemented). It
-   * can only include a dimension_or_metric_filter. This cannot be set on the
-   * top level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); - } - - public static final int FILTER_FIELD_NUMBER = 4; - /** - *
-   * A filter on a single dimension. This cannot be set on the top
-   * level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 4; - } - /** - *
-   * A filter on a single dimension. This cannot be set on the top
-   * level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter getFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); - } - /** - *
-   * A filter on a single dimension. This cannot be set on the top
-   * level ChannelGroupFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder getFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (exprCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_); - } - if (exprCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_); - } - 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.admin.v1alpha.ChannelGroupFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression other = (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getAndGroup() - .equals(other.getAndGroup())) return false; - break; - case 2: - if (!getOrGroup() - .equals(other.getOrGroup())) return false; - break; - case 3: - if (!getNotExpression() - .equals(other.getNotExpression())) return false; - break; - case 4: - if (!getFilter() - .equals(other.getFilter())) 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 (exprCase_) { - case 1: - hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getAndGroup().hashCode(); - break; - case 2: - hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getOrGroup().hashCode(); - break; - case 3: - hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getNotExpression().hashCode(); - break; - case 4: - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A logical expression of Channel Group dimension filters.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.class, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (filterBuilder_ != null) { - filterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression build() { - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression buildPartial() { - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result = new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression result) { - result.exprCase_ = exprCase_; - result.expr_ = this.expr_; - if (exprCase_ == 1 && - andGroupBuilder_ != null) { - result.expr_ = andGroupBuilder_.build(); - } - if (exprCase_ == 2 && - orGroupBuilder_ != null) { - result.expr_ = orGroupBuilder_.build(); - } - if (exprCase_ == 3 && - notExpressionBuilder_ != null) { - result.expr_ = notExpressionBuilder_.build(); - } - if (exprCase_ == 4 && - filterBuilder_ != null) { - result.expr_ = filterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression other) { - if (other == com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()) return this; - switch (other.getExprCase()) { - case AND_GROUP: { - mergeAndGroup(other.getAndGroup()); - break; - } - case OR_GROUP: { - mergeOrGroup(other.getOrGroup()); - break; - } - case NOT_EXPRESSION: { - mergeNotExpression(other.getNotExpression()); - break; - } - case FILTER: { - mergeFilter(other.getFilter()); - break; - } - case EXPR_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAndGroupFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getOrGroupFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getNotExpressionFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getFilterFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int exprCase_ = 0; - private java.lang.Object expr_; - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> andGroupBuilder_; - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 && - expr_ != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - public Builder clearAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - andGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to be AND’ed together. It can only contain
-     * ChannelGroupFilterExpressions with or_group. This must be set for the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> orGroupBuilder_; - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 && - expr_ != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - public Builder clearOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - orGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to OR’ed together. It cannot contain
-     * ChannelGroupFilterExpressions with and_group or or_group.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> notExpressionBuilder_; - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - public Builder setNotExpression(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - public Builder mergeNotExpression(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 && - expr_ != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.newBuilder((com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - public Builder clearNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - } - notExpressionBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (that is inverted, complemented). It
-     * can only include a dimension_or_metric_filter. This cannot be set on the
-     * top level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder>( - (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder> filterBuilder_; - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 4; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilter getFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return filterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - public Builder setFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - public Builder setFilter( - com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder builderForValue) { - if (filterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - public Builder mergeFilter(com.google.analytics.admin.v1alpha.ChannelGroupFilter value) { - if (filterBuilder_ == null) { - if (exprCase_ == 4 && - expr_ != com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilter.newBuilder((com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - filterBuilder_.mergeFrom(value); - } else { - filterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - } - filterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder getFilterBuilder() { - return getFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder getFilterOrBuilder() { - if ((exprCase_ == 4) && (filterBuilder_ != null)) { - return filterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ChannelGroupFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.admin.v1alpha.ChannelGroupFilter.getDefaultInstance(); - } - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilter, com.google.analytics.admin.v1alpha.ChannelGroupFilter.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.ChannelGroupFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 4; - onChanged(); - return filterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpression) - private static final com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression(); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChannelGroupFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionList.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionList.java deleted file mode 100644 index 56595f6e4cf3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A list of Channel Group filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} - */ -public final class ChannelGroupFilterExpressionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) - ChannelGroupFilterExpressionListOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChannelGroupFilterExpressionList.newBuilder() to construct. - private ChannelGroupFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChannelGroupFilterExpressionList() { - filterExpressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChannelGroupFilterExpressionList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.class, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder.class); - } - - public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List filterExpressions_; - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public java.util.List getFilterExpressionsList() { - return filterExpressions_; - } - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public java.util.List - getFilterExpressionsOrBuilderList() { - return filterExpressions_; - } - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public int getFilterExpressionsCount() { - return filterExpressions_.size(); - } - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getFilterExpressions(int index) { - return filterExpressions_.get(index); - } - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - return filterExpressions_.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 < filterExpressions_.size(); i++) { - output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, filterExpressions_.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.admin.v1alpha.ChannelGroupFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList other = (com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) obj; - - if (!getFilterExpressionsList() - .equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { - hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.class, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - } else { - filterExpressions_ = null; - filterExpressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList build() { - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList buildPartial() { - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result = new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result) { - if (filterExpressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filterExpressions_ = filterExpressions_; - } else { - result.filterExpressions_ = filterExpressionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) { - return mergeFrom((com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList other) { - if (other == com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList.getDefaultInstance()) return this; - if (filterExpressionsBuilder_ == null) { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressions_.isEmpty()) { - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFilterExpressionsIsMutable(); - filterExpressions_.addAll(other.filterExpressions_); - } - onChanged(); - } - } else { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressionsBuilder_.isEmpty()) { - filterExpressionsBuilder_.dispose(); - filterExpressionsBuilder_ = null; - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - filterExpressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFilterExpressionsFieldBuilder() : null; - } else { - filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression m = - input.readMessage( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.parser(), - extensionRegistry); - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(m); - } else { - filterExpressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List filterExpressions_ = - java.util.Collections.emptyList(); - private void ensureFilterExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = new java.util.ArrayList(filterExpressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> filterExpressionsBuilder_; - - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public java.util.List getFilterExpressionsList() { - if (filterExpressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(filterExpressions_); - } else { - return filterExpressionsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public int getFilterExpressionsCount() { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.size(); - } else { - return filterExpressionsBuilder_.getCount(); - } - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); - } else { - return filterExpressionsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder addAllFilterExpressions( - java.lang.Iterable values) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filterExpressions_); - onChanged(); - } else { - filterExpressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder clearFilterExpressions() { - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filterExpressionsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public Builder removeFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.remove(index); - onChanged(); - } else { - filterExpressionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder getFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); } else { - return filterExpressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public java.util.List - getFilterExpressionsOrBuilderList() { - if (filterExpressionsBuilder_ != null) { - return filterExpressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filterExpressions_); - } - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder addFilterExpressionsBuilder() { - return getFilterExpressionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder addFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of Channel Group filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - public java.util.List - getFilterExpressionsBuilderList() { - return getFilterExpressionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> - getFilterExpressionsFieldBuilder() { - if (filterExpressionsBuilder_ == null) { - filterExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder>( - filterExpressions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - filterExpressions_ = null; - } - return filterExpressionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) - private static final com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList(); - } - - public static com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChannelGroupFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionListOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionListOrBuilder.java deleted file mode 100644 index 4365f4fbb97b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -public interface ChannelGroupFilterExpressionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - java.util.List - getFilterExpressionsList(); - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getFilterExpressions(int index); - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - int getFilterExpressionsCount(); - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - java.util.List - getFilterExpressionsOrBuilderList(); - /** - *
-   * A list of Channel Group filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroupFilterExpression filter_expressions = 1; - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterOrBuilder.java deleted file mode 100644 index da7943d0cd68..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupFilterOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -public interface ChannelGroupFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroupFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter getStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilter string_filter = 2; - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilter.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter getInListFilter(); - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilter in_list_filter = 3; - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilter.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - *
-   * Required. Immutable. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
-   * Required. Immutable. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - com.google.analytics.admin.v1alpha.ChannelGroupFilter.ValueFilterCase getValueFilterCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java deleted file mode 100644 index e28a8cfb33b7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupOrBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -public interface ChannelGroupOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChannelGroup) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The resource name for this Channel Group resource.
-   * Format: properties/{property}/channelGroups/{channel_group}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. The resource name for this Channel Group resource.
-   * Format: properties/{property}/channelGroups/{channel_group}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The display name of the Channel Group. Max length of 80
-   * characters.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. The display name of the Channel Group. Max length of 80
-   * characters.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * The description of the Channel Group. Max length of 256 characters.
-   * 
- * - * string description = 3; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * The description of the Channel Group. Max length of 256 characters.
-   * 
- * - * string description = 3; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getGroupingRuleList(); - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.GroupingRule getGroupingRule(int index); - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - int getGroupingRuleCount(); - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getGroupingRuleOrBuilderList(); - /** - *
-   * Required. The grouping rules of channels. Maximum number of rules is 25.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GroupingRule grouping_rule = 4 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder getGroupingRuleOrBuilder( - int index); - - /** - *
-   * Output only. Default Channel Group defined by Google, which cannot be
-   * updated.
-   * 
- * - * bool system_defined = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The systemDefined. - */ - boolean getSystemDefined(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupProto.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupProto.java deleted file mode 100644 index d7f9102371df..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChannelGroupProto.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -public final class ChannelGroupProto { - private ChannelGroupProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n2google/analytics/admin/v1alpha/channel" + - "_group.proto\022\036google.analytics.admin.v1a" + - "lpha\032\037google/api/field_behavior.proto\032\031g" + - "oogle/api/resource.proto\"\255\004\n\022ChannelGrou" + - "pFilter\022X\n\rstring_filter\030\002 \001(\0132?.google." + - "analytics.admin.v1alpha.ChannelGroupFilt" + - "er.StringFilterH\000\022Y\n\016in_list_filter\030\003 \001(" + - "\0132?.google.analytics.admin.v1alpha.Chann" + - "elGroupFilter.InListFilterH\000\022\031\n\nfield_na" + - "me\030\001 \001(\tB\005\342A\002\002\005\032\220\002\n\014StringFilter\022c\n\nmatc" + - "h_type\030\001 \001(\0162I.google.analytics.admin.v1" + - "alpha.ChannelGroupFilter.StringFilter.Ma" + - "tchTypeB\004\342A\001\002\022\023\n\005value\030\002 \001(\tB\004\342A\001\002\"\205\001\n\tM" + - "atchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005" + - "EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022" + - "\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIA" + - "L_REGEXP\020\006\032$\n\014InListFilter\022\024\n\006values\030\001 \003" + - "(\tB\004\342A\001\002B\016\n\014value_filter\"\361\002\n\034ChannelGrou" + - "pFilterExpression\022U\n\tand_group\030\001 \001(\0132@.g" + - "oogle.analytics.admin.v1alpha.ChannelGro" + - "upFilterExpressionListH\000\022T\n\010or_group\030\002 \001" + - "(\0132@.google.analytics.admin.v1alpha.Chan" + - "nelGroupFilterExpressionListH\000\022V\n\016not_ex" + - "pression\030\003 \001(\0132<.google.analytics.admin." + - "v1alpha.ChannelGroupFilterExpressionH\000\022D" + - "\n\006filter\030\004 \001(\01322.google.analytics.admin." + - "v1alpha.ChannelGroupFilterH\000B\006\n\004expr\"|\n " + - "ChannelGroupFilterExpressionList\022X\n\022filt" + - "er_expressions\030\001 \003(\0132<.google.analytics." + - "admin.v1alpha.ChannelGroupFilterExpressi" + - "on\"\202\001\n\014GroupingRule\022\032\n\014display_name\030\001 \001(" + - "\tB\004\342A\001\002\022V\n\nexpression\030\002 \001(\0132<.google.ana" + - "lytics.admin.v1alpha.ChannelGroupFilterE" + - "xpressionB\004\342A\001\002\"\242\002\n\014ChannelGroup\022\022\n\004name" + - "\030\001 \001(\tB\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002" + - "\022\023\n\013description\030\003 \001(\t\022I\n\rgrouping_rule\030\004" + - " \003(\0132,.google.analytics.admin.v1alpha.Gr" + - "oupingRuleB\004\342A\001\002\022\034\n\016system_defined\030\005 \001(\010" + - "B\004\342A\001\003:d\352Aa\n*analyticsadmin.googleapis.c" + - "om/ChannelGroup\0223properties/{property}/c" + - "hannelGroups/{channel_group}By\n\"com.goog" + - "le.analytics.admin.v1alphaB\021ChannelGroup" + - "ProtoP\001Z>cloud.google.com/go/analytics/a" + - "dmin/apiv1alpha/adminpb;adminpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor, - new java.lang.String[] { "StringFilter", "InListFilter", "FieldName", "ValueFilter", }); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_StringFilter_descriptor, - new java.lang.String[] { "MatchType", "Value", }); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilter_InListFilter_descriptor, - new java.lang.String[] { "Values", }); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpression_descriptor, - new java.lang.String[] { "AndGroup", "OrGroup", "NotExpression", "Filter", "Expr", }); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChannelGroupFilterExpressionList_descriptor, - new java.lang.String[] { "FilterExpressions", }); - internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor, - new java.lang.String[] { "DisplayName", "Expression", }); - internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_ChannelGroup_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChannelGroup_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "GroupingRule", "SystemDefined", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CoarseValue.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CoarseValue.java deleted file mode 100644 index cfb6db37068a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CoarseValue.java +++ /dev/null @@ -1,170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The coarse conversion value set on the updatePostbackConversionValue SDK call
- * when a ConversionValues.event_mappings conditions are satisfied. For
- * more information, see
- * [SKAdNetwork.CoarseConversionValue](https://developer.apple.com/documentation/storekit/skadnetwork/coarseconversionvalue).
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.CoarseValue} - */ -public enum CoarseValue - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Coarse value not specified.
-   * 
- * - * COARSE_VALUE_UNSPECIFIED = 0; - */ - COARSE_VALUE_UNSPECIFIED(0), - /** - *
-   * Coarse value of low.
-   * 
- * - * COARSE_VALUE_LOW = 1; - */ - COARSE_VALUE_LOW(1), - /** - *
-   * Coarse value of medium.
-   * 
- * - * COARSE_VALUE_MEDIUM = 2; - */ - COARSE_VALUE_MEDIUM(2), - /** - *
-   * Coarse value of high.
-   * 
- * - * COARSE_VALUE_HIGH = 3; - */ - COARSE_VALUE_HIGH(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Coarse value not specified.
-   * 
- * - * COARSE_VALUE_UNSPECIFIED = 0; - */ - public static final int COARSE_VALUE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Coarse value of low.
-   * 
- * - * COARSE_VALUE_LOW = 1; - */ - public static final int COARSE_VALUE_LOW_VALUE = 1; - /** - *
-   * Coarse value of medium.
-   * 
- * - * COARSE_VALUE_MEDIUM = 2; - */ - public static final int COARSE_VALUE_MEDIUM_VALUE = 2; - /** - *
-   * Coarse value of high.
-   * 
- * - * COARSE_VALUE_HIGH = 3; - */ - public static final int COARSE_VALUE_HIGH_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 CoarseValue 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 CoarseValue forNumber(int value) { - switch (value) { - case 0: return COARSE_VALUE_UNSPECIFIED; - case 1: return COARSE_VALUE_LOW; - case 2: return COARSE_VALUE_MEDIUM; - case 3: return COARSE_VALUE_HIGH; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CoarseValue> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CoarseValue findValueByNumber(int number) { - return CoarseValue.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(10); - } - - private static final CoarseValue[] VALUES = values(); - - public static CoarseValue valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CoarseValue(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CoarseValue) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTag.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTag.java deleted file mode 100644 index d2eec781f3df..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTag.java +++ /dev/null @@ -1,755 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Configuration for a specific Connected Site Tag.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ConnectedSiteTag} - */ -public final class ConnectedSiteTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConnectedSiteTag) - ConnectedSiteTagOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConnectedSiteTag.newBuilder() to construct. - private ConnectedSiteTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConnectedSiteTag() { - displayName_ = ""; - tagId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConnectedSiteTag(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ConnectedSiteTag.class, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. User-provided display name for the connected site tag. Must be
-   * less than 256 characters.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. User-provided display name for the connected site tag. Must be
-   * less than 256 characters.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object tagId_ = ""; - /** - *
-   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-   * or the "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The tagId. - */ - @java.lang.Override - public java.lang.String getTagId() { - java.lang.Object ref = tagId_; - 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(); - tagId_ = s; - return s; - } - } - /** - *
-   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-   * or the "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for tagId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTagIdBytes() { - java.lang.Object ref = tagId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tagId_ = 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(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagId_); - } - 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(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagId_); - } - 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.admin.v1alpha.ConnectedSiteTag)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ConnectedSiteTag other = (com.google.analytics.admin.v1alpha.ConnectedSiteTag) obj; - - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getTagId() - .equals(other.getTagId())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + TAG_ID_FIELD_NUMBER; - hash = (53 * hash) + getTagId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ConnectedSiteTag 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; - } - /** - *
-   * Configuration for a specific Connected Site Tag.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ConnectedSiteTag} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConnectedSiteTag) - com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ConnectedSiteTag.class, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ConnectedSiteTag.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - tagId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTag getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTag build() { - com.google.analytics.admin.v1alpha.ConnectedSiteTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTag buildPartial() { - com.google.analytics.admin.v1alpha.ConnectedSiteTag result = new com.google.analytics.admin.v1alpha.ConnectedSiteTag(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ConnectedSiteTag result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagId_ = tagId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ConnectedSiteTag) { - return mergeFrom((com.google.analytics.admin.v1alpha.ConnectedSiteTag)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConnectedSiteTag other) { - if (other == com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTagId().isEmpty()) { - tagId_ = other.tagId_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - tagId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. User-provided display name for the connected site tag. Must be
-     * less than 256 characters.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. User-provided display name for the connected site tag. Must be
-     * less than 256 characters.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. User-provided display name for the connected site tag. Must be
-     * less than 256 characters.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. User-provided display name for the connected site tag. Must be
-     * less than 256 characters.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. User-provided display name for the connected site tag. Must be
-     * less than 256 characters.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object tagId_ = ""; - /** - *
-     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-     * or the "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The tagId. - */ - public java.lang.String getTagId() { - java.lang.Object ref = tagId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-     * or the "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for tagId. - */ - public com.google.protobuf.ByteString - getTagIdBytes() { - java.lang.Object ref = tagId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tagId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-     * or the "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The tagId to set. - * @return This builder for chaining. - */ - public Builder setTagId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - tagId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-     * or the "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearTagId() { - tagId_ = getDefaultInstance().getTagId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-     * or the "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for tagId to set. - * @return This builder for chaining. - */ - public Builder setTagIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - tagId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ConnectedSiteTag) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConnectedSiteTag) - private static final com.google.analytics.admin.v1alpha.ConnectedSiteTag DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ConnectedSiteTag(); - } - - public static com.google.analytics.admin.v1alpha.ConnectedSiteTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConnectedSiteTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTagOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTagOrBuilder.java deleted file mode 100644 index 7fed4f267161..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConnectedSiteTagOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface ConnectedSiteTagOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConnectedSiteTag) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. User-provided display name for the connected site tag. Must be
-   * less than 256 characters.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. User-provided display name for the connected site tag. Must be
-   * less than 256 characters.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-   * or the "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The tagId. - */ - java.lang.String getTagId(); - /** - *
-   * Required. "Tag ID to forward events to. Also known as the Measurement ID,
-   * or the "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for tagId. - */ - com.google.protobuf.ByteString - getTagIdBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java deleted file mode 100644 index 0e1321bdbbcd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java +++ /dev/null @@ -1,1458 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A conversion event in a Google Analytics property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} - */ -public final class ConversionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConversionEvent) - ConversionEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConversionEvent.newBuilder() to construct. - private ConversionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConversionEvent() { - name_ = ""; - eventName_ = ""; - countingMethod_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConversionEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ConversionEvent.class, com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); - } - - /** - *
-   * The method by which conversions will be counted across multiple events
-   * within a session.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod} - */ - public enum ConversionCountingMethod - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Counting method not specified.
-     * 
- * - * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - CONVERSION_COUNTING_METHOD_UNSPECIFIED(0), - /** - *
-     * Each Event instance is considered a Conversion.
-     * 
- * - * ONCE_PER_EVENT = 1; - */ - ONCE_PER_EVENT(1), - /** - *
-     * An Event instance is considered a Conversion at most once per session per
-     * user.
-     * 
- * - * ONCE_PER_SESSION = 2; - */ - ONCE_PER_SESSION(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Counting method not specified.
-     * 
- * - * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - public static final int CONVERSION_COUNTING_METHOD_UNSPECIFIED_VALUE = 0; - /** - *
-     * Each Event instance is considered a Conversion.
-     * 
- * - * ONCE_PER_EVENT = 1; - */ - public static final int ONCE_PER_EVENT_VALUE = 1; - /** - *
-     * An Event instance is considered a Conversion at most once per session per
-     * user.
-     * 
- * - * ONCE_PER_SESSION = 2; - */ - public static final int ONCE_PER_SESSION_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConversionCountingMethod 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 ConversionCountingMethod forNumber(int value) { - switch (value) { - case 0: return CONVERSION_COUNTING_METHOD_UNSPECIFIED; - case 1: return ONCE_PER_EVENT; - case 2: return ONCE_PER_SESSION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ConversionCountingMethod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConversionCountingMethod findValueByNumber(int number) { - return ConversionCountingMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ConversionEvent.getDescriptor().getEnumTypes().get(0); - } - - private static final ConversionCountingMethod[] VALUES = values(); - - public static ConversionCountingMethod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ConversionCountingMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object eventName_ = ""; - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - 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(); - eventName_ = s; - return s; - } - } - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int DELETABLE_FIELD_NUMBER = 4; - private boolean deletable_ = false; - /** - *
-   * Output only. If set, this event can currently be deleted with
-   * DeleteConversionEvent.
-   * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deletable. - */ - @java.lang.Override - public boolean getDeletable() { - return deletable_; - } - - public static final int CUSTOM_FIELD_NUMBER = 5; - private boolean custom_ = false; - /** - *
-   * Output only. If set to true, this conversion event refers to a custom
-   * event.  If set to false, this conversion event refers to a default event in
-   * GA. Default events typically have special meaning in GA. Default events are
-   * usually created for you by the GA system, but in some cases can be created
-   * by property admins. Custom events count towards the maximum number of
-   * custom conversion events that may be created per property.
-   * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The custom. - */ - @java.lang.Override - public boolean getCustom() { - return custom_; - } - - public static final int COUNTING_METHOD_FIELD_NUMBER = 6; - private int countingMethod_ = 0; - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for countingMethod. - */ - @java.lang.Override public int getCountingMethodValue() { - return countingMethod_; - } - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The countingMethod. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod getCountingMethod() { - com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod result = com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.forNumber(countingMethod_); - return result == null ? com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (deletable_ != false) { - output.writeBool(4, deletable_); - } - if (custom_ != false) { - output.writeBool(5, custom_); - } - if (countingMethod_ != com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.CONVERSION_COUNTING_METHOD_UNSPECIFIED.getNumber()) { - output.writeEnum(6, countingMethod_); - } - 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(eventName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - if (deletable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, deletable_); - } - if (custom_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, custom_); - } - if (countingMethod_ != com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.CONVERSION_COUNTING_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, countingMethod_); - } - 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.admin.v1alpha.ConversionEvent)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ConversionEvent other = (com.google.analytics.admin.v1alpha.ConversionEvent) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getEventName() - .equals(other.getEventName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (getDeletable() - != other.getDeletable()) return false; - if (getCustom() - != other.getCustom()) return false; - if (countingMethod_ != other.countingMethod_) 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) + EVENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - hash = (37 * hash) + DELETABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeletable()); - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCustom()); - hash = (37 * hash) + COUNTING_METHOD_FIELD_NUMBER; - hash = (53 * hash) + countingMethod_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ConversionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ConversionEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ConversionEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A conversion event in a Google Analytics property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConversionEvent) - com.google.analytics.admin.v1alpha.ConversionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ConversionEvent.class, com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - eventName_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - deletable_ = false; - custom_ = false; - countingMethod_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent build() { - com.google.analytics.admin.v1alpha.ConversionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent buildPartial() { - com.google.analytics.admin.v1alpha.ConversionEvent result = new com.google.analytics.admin.v1alpha.ConversionEvent(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ConversionEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventName_ = eventName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.deletable_ = deletable_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.custom_ = custom_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.countingMethod_ = countingMethod_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ConversionEvent) { - return mergeFrom((com.google.analytics.admin.v1alpha.ConversionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionEvent other) { - if (other == com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.getDeletable() != false) { - setDeletable(other.getDeletable()); - } - if (other.getCustom() != false) { - setCustom(other.getCustom()); - } - if (other.countingMethod_ != 0) { - setCountingMethodValue(other.getCountingMethodValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - deletable_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - custom_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - countingMethod_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.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. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object eventName_ = ""; - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - eventName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearEventName() { - eventName_ = getDefaultInstance().getEventName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - eventName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private boolean deletable_ ; - /** - *
-     * Output only. If set, this event can currently be deleted with
-     * DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deletable. - */ - @java.lang.Override - public boolean getDeletable() { - return deletable_; - } - /** - *
-     * Output only. If set, this event can currently be deleted with
-     * DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The deletable to set. - * @return This builder for chaining. - */ - public Builder setDeletable(boolean value) { - - deletable_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, this event can currently be deleted with
-     * DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearDeletable() { - bitField0_ = (bitField0_ & ~0x00000008); - deletable_ = false; - onChanged(); - return this; - } - - private boolean custom_ ; - /** - *
-     * Output only. If set to true, this conversion event refers to a custom
-     * event.  If set to false, this conversion event refers to a default event in
-     * GA. Default events typically have special meaning in GA. Default events are
-     * usually created for you by the GA system, but in some cases can be created
-     * by property admins. Custom events count towards the maximum number of
-     * custom conversion events that may be created per property.
-     * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The custom. - */ - @java.lang.Override - public boolean getCustom() { - return custom_; - } - /** - *
-     * Output only. If set to true, this conversion event refers to a custom
-     * event.  If set to false, this conversion event refers to a default event in
-     * GA. Default events typically have special meaning in GA. Default events are
-     * usually created for you by the GA system, but in some cases can be created
-     * by property admins. Custom events count towards the maximum number of
-     * custom conversion events that may be created per property.
-     * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The custom to set. - * @return This builder for chaining. - */ - public Builder setCustom(boolean value) { - - custom_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. If set to true, this conversion event refers to a custom
-     * event.  If set to false, this conversion event refers to a default event in
-     * GA. Default events typically have special meaning in GA. Default events are
-     * usually created for you by the GA system, but in some cases can be created
-     * by property admins. Custom events count towards the maximum number of
-     * custom conversion events that may be created per property.
-     * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCustom() { - bitField0_ = (bitField0_ & ~0x00000010); - custom_ = false; - onChanged(); - return this; - } - - private int countingMethod_ = 0; - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for countingMethod. - */ - @java.lang.Override public int getCountingMethodValue() { - return countingMethod_; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for countingMethod to set. - * @return This builder for chaining. - */ - public Builder setCountingMethodValue(int value) { - countingMethod_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The countingMethod. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod getCountingMethod() { - com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod result = com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.forNumber(countingMethod_); - return result == null ? com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED : result; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The countingMethod to set. - * @return This builder for chaining. - */ - public Builder setCountingMethod(com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - countingMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearCountingMethod() { - bitField0_ = (bitField0_ & ~0x00000020); - countingMethod_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ConversionEvent) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConversionEvent) - private static final com.google.analytics.admin.v1alpha.ConversionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ConversionEvent(); - } - - public static com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java deleted file mode 100644 index a3bba9447bbf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface ConversionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConversionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - java.lang.String getEventName(); - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - com.google.protobuf.ByteString - getEventNameBytes(); - - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. If set, this event can currently be deleted with
-   * DeleteConversionEvent.
-   * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deletable. - */ - boolean getDeletable(); - - /** - *
-   * Output only. If set to true, this conversion event refers to a custom
-   * event.  If set to false, this conversion event refers to a default event in
-   * GA. Default events typically have special meaning in GA. Default events are
-   * usually created for you by the GA system, but in some cases can be created
-   * by property admins. Custom events count towards the maximum number of
-   * custom conversion events that may be created per property.
-   * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The custom. - */ - boolean getCustom(); - - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for countingMethod. - */ - int getCountingMethodValue(); - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The countingMethod. - */ - com.google.analytics.admin.v1alpha.ConversionEvent.ConversionCountingMethod getCountingMethod(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java deleted file mode 100644 index 81ea7db47e6c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequest.java +++ /dev/null @@ -1,820 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateAccessBinding RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAccessBindingRequest} - */ -public final class CreateAccessBindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAccessBindingRequest) - CreateAccessBindingRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateAccessBindingRequest.newBuilder() to construct. - private CreateAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateAccessBindingRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateAccessBindingRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCESS_BINDING_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; - /** - *
-   * Required. The access binding to create.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the accessBinding field is set. - */ - @java.lang.Override - public boolean hasAccessBinding() { - return accessBinding_ != null; - } - /** - *
-   * Required. The access binding to create.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The accessBinding. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { - return accessBinding_ == null ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } - /** - *
-   * Required. The access binding to create.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { - return accessBinding_ == null ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (accessBinding_ != null) { - output.writeMessage(2, getAccessBinding()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (accessBinding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAccessBinding()); - } - 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.admin.v1alpha.CreateAccessBindingRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest other = (com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasAccessBinding() != other.hasAccessBinding()) return false; - if (hasAccessBinding()) { - if (!getAccessBinding() - .equals(other.getAccessBinding())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasAccessBinding()) { - hash = (37 * hash) + ACCESS_BINDING_FIELD_NUMBER; - hash = (53 * hash) + getAccessBinding().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateAccessBinding RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAccessBindingRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAccessBindingRequest) - com.google.analytics.admin.v1alpha.CreateAccessBindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.class, com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - accessBinding_ = null; - if (accessBindingBuilder_ != null) { - accessBindingBuilder_.dispose(); - accessBindingBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAccessBindingRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest build() { - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result = new com.google.analytics.admin.v1alpha.CreateAccessBindingRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.accessBinding_ = accessBindingBuilder_ == null - ? accessBinding_ - : accessBindingBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateAccessBindingRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateAccessBindingRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAccessBindingRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateAccessBindingRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasAccessBinding()) { - mergeAccessBinding(other.getAccessBinding()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAccessBindingFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> accessBindingBuilder_; - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the accessBinding field is set. - */ - public boolean hasAccessBinding() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The accessBinding. - */ - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { - if (accessBindingBuilder_ == null) { - return accessBinding_ == null ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } else { - return accessBindingBuilder_.getMessage(); - } - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - accessBinding_ = value; - } else { - accessBindingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccessBinding( - com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingBuilder_ == null) { - accessBinding_ = builderForValue.build(); - } else { - accessBindingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - accessBinding_ != null && - accessBinding_ != com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) { - getAccessBindingBuilder().mergeFrom(value); - } else { - accessBinding_ = value; - } - } else { - accessBindingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAccessBinding() { - bitField0_ = (bitField0_ & ~0x00000002); - accessBinding_ = null; - if (accessBindingBuilder_ != null) { - accessBindingBuilder_.dispose(); - accessBindingBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAccessBindingFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { - if (accessBindingBuilder_ != null) { - return accessBindingBuilder_.getMessageOrBuilder(); - } else { - return accessBinding_ == null ? - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } - } - /** - *
-     * Required. The access binding to create.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> - getAccessBindingFieldBuilder() { - if (accessBindingBuilder_ == null) { - accessBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( - getAccessBinding(), - getParentForChildren(), - isClean()); - accessBinding_ = null; - } - return accessBindingBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateAccessBindingRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAccessBindingRequest) - private static final com.google.analytics.admin.v1alpha.CreateAccessBindingRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAccessBindingRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAccessBindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAccessBindingRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java deleted file mode 100644 index f2225c35d85e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAccessBindingRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateAccessBindingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAccessBindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The access binding to create.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the accessBinding field is set. - */ - boolean hasAccessBinding(); - /** - *
-   * Required. The access binding to create.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The accessBinding. - */ - com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding(); - /** - *
-   * Required. The access binding to create.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequest.java deleted file mode 100644 index 99520fd2e008..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequest.java +++ /dev/null @@ -1,820 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message to be passed to CreateAdSenseLink method.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} - */ -public final class CreateAdSenseLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) - CreateAdSenseLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateAdSenseLinkRequest.newBuilder() to construct. - private CreateAdSenseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateAdSenseLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateAdSenseLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.class, com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The property for which to create an AdSense Link.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The property for which to create an AdSense Link.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADSENSE_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.AdSenseLink adsenseLink_; - /** - *
-   * Required. The AdSense Link to create
-   * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the adsenseLink field is set. - */ - @java.lang.Override - public boolean hasAdsenseLink() { - return adsenseLink_ != null; - } - /** - *
-   * Required. The AdSense Link to create
-   * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The adsenseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { - return adsenseLink_ == null ? com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() : adsenseLink_; - } - /** - *
-   * Required. The AdSense Link to create
-   * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { - return adsenseLink_ == null ? com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() : adsenseLink_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (adsenseLink_ != null) { - output.writeMessage(2, getAdsenseLink()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (adsenseLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAdsenseLink()); - } - 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.admin.v1alpha.CreateAdSenseLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest other = (com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasAdsenseLink() != other.hasAdsenseLink()) return false; - if (hasAdsenseLink()) { - if (!getAdsenseLink() - .equals(other.getAdsenseLink())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasAdsenseLink()) { - hash = (37 * hash) + ADSENSE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getAdsenseLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message to be passed to CreateAdSenseLink method.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAdSenseLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.class, com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - adsenseLink_ = null; - if (adsenseLinkBuilder_ != null) { - adsenseLinkBuilder_.dispose(); - adsenseLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest build() { - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest result = new com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.adsenseLink_ = adsenseLinkBuilder_ == null - ? adsenseLink_ - : adsenseLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasAdsenseLink()) { - mergeAdsenseLink(other.getAdsenseLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAdsenseLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The property for which to create an AdSense Link.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The property for which to create an AdSense Link.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The property for which to create an AdSense Link.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to create an AdSense Link.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to create an AdSense Link.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AdSenseLink adsenseLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> adsenseLinkBuilder_; - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the adsenseLink field is set. - */ - public boolean hasAdsenseLink() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The adsenseLink. - */ - public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink() { - if (adsenseLinkBuilder_ == null) { - return adsenseLink_ == null ? com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() : adsenseLink_; - } else { - return adsenseLinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { - if (adsenseLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adsenseLink_ = value; - } else { - adsenseLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAdsenseLink( - com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { - if (adsenseLinkBuilder_ == null) { - adsenseLink_ = builderForValue.build(); - } else { - adsenseLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAdsenseLink(com.google.analytics.admin.v1alpha.AdSenseLink value) { - if (adsenseLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - adsenseLink_ != null && - adsenseLink_ != com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()) { - getAdsenseLinkBuilder().mergeFrom(value); - } else { - adsenseLink_ = value; - } - } else { - adsenseLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAdsenseLink() { - bitField0_ = (bitField0_ & ~0x00000002); - adsenseLink_ = null; - if (adsenseLinkBuilder_ != null) { - adsenseLinkBuilder_.dispose(); - adsenseLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AdSenseLink.Builder getAdsenseLinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAdsenseLinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder() { - if (adsenseLinkBuilder_ != null) { - return adsenseLinkBuilder_.getMessageOrBuilder(); - } else { - return adsenseLink_ == null ? - com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance() : adsenseLink_; - } - } - /** - *
-     * Required. The AdSense Link to create
-     * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> - getAdsenseLinkFieldBuilder() { - if (adsenseLinkBuilder_ == null) { - adsenseLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder>( - getAdsenseLink(), - getParentForChildren(), - isClean()); - adsenseLink_ = null; - } - return adsenseLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAdSenseLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAdSenseLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequestOrBuilder.java deleted file mode 100644 index 3e6968ebb041..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAdSenseLinkRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateAdSenseLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAdSenseLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property for which to create an AdSense Link.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The property for which to create an AdSense Link.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The AdSense Link to create
-   * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the adsenseLink field is set. - */ - boolean hasAdsenseLink(); - /** - *
-   * Required. The AdSense Link to create
-   * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The adsenseLink. - */ - com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLink(); - /** - *
-   * Required. The AdSense Link to create
-   * 
- * - * .google.analytics.admin.v1alpha.AdSenseLink adsense_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java deleted file mode 100644 index 403fc019652e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateAudience RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAudienceRequest} - */ -public final class CreateAudienceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAudienceRequest) - CreateAudienceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateAudienceRequest.newBuilder() to construct. - private CreateAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateAudienceRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateAudienceRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, com.google.analytics.admin.v1alpha.CreateAudienceRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUDIENCE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.Audience audience_; - /** - *
-   * Required. The audience to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audience field is set. - */ - @java.lang.Override - public boolean hasAudience() { - return audience_ != null; - } - /** - *
-   * Required. The audience to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audience. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience getAudience() { - return audience_ == null ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } - /** - *
-   * Required. The audience to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { - return audience_ == null ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (audience_ != null) { - output.writeMessage(2, getAudience()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (audience_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getAudience()); - } - 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.admin.v1alpha.CreateAudienceRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateAudienceRequest other = (com.google.analytics.admin.v1alpha.CreateAudienceRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasAudience() != other.hasAudience()) return false; - if (hasAudience()) { - if (!getAudience() - .equals(other.getAudience())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasAudience()) { - hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; - hash = (53 * hash) + getAudience().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateAudienceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateAudience RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAudienceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAudienceRequest) - com.google.analytics.admin.v1alpha.CreateAudienceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAudienceRequest.class, com.google.analytics.admin.v1alpha.CreateAudienceRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateAudienceRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - audience_ = null; - if (audienceBuilder_ != null) { - audienceBuilder_.dispose(); - audienceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateAudienceRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateAudienceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAudienceRequest build() { - com.google.analytics.admin.v1alpha.CreateAudienceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAudienceRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateAudienceRequest result = new com.google.analytics.admin.v1alpha.CreateAudienceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateAudienceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.audience_ = audienceBuilder_ == null - ? audience_ - : audienceBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateAudienceRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateAudienceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateAudienceRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateAudienceRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasAudience()) { - mergeAudience(other.getAudience()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getAudienceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.Audience audience_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> audienceBuilder_; - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audience field is set. - */ - public boolean hasAudience() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audience. - */ - public com.google.analytics.admin.v1alpha.Audience getAudience() { - if (audienceBuilder_ == null) { - return audience_ == null ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } else { - return audienceBuilder_.getMessage(); - } - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { - if (audienceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - audience_ = value; - } else { - audienceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAudience( - com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { - if (audienceBuilder_ == null) { - audience_ = builderForValue.build(); - } else { - audienceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { - if (audienceBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - audience_ != null && - audience_ != com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) { - getAudienceBuilder().mergeFrom(value); - } else { - audience_ = value; - } - } else { - audienceBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAudience() { - bitField0_ = (bitField0_ & ~0x00000002); - audience_ = null; - if (audienceBuilder_ != null) { - audienceBuilder_.dispose(); - audienceBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getAudienceFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { - if (audienceBuilder_ != null) { - return audienceBuilder_.getMessageOrBuilder(); - } else { - return audience_ == null ? - com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } - } - /** - *
-     * Required. The audience to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> - getAudienceFieldBuilder() { - if (audienceBuilder_ == null) { - audienceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder>( - getAudience(), - getParentForChildren(), - isClean()); - audience_ = null; - } - return audienceBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateAudienceRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAudienceRequest) - private static final com.google.analytics.admin.v1alpha.CreateAudienceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAudienceRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAudienceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAudienceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java deleted file mode 100644 index 2a81a07d57fa..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAudienceRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateAudienceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAudienceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The audience to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audience field is set. - */ - boolean hasAudience(); - /** - *
-   * Required. The audience to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The audience. - */ - com.google.analytics.admin.v1alpha.Audience getAudience(); - /** - *
-   * Required. The audience to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequest.java deleted file mode 100644 index d1c707943c7d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateChannelGroup RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateChannelGroupRequest} - */ -public final class CreateChannelGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateChannelGroupRequest) - CreateChannelGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateChannelGroupRequest.newBuilder() to construct. - private CreateChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateChannelGroupRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateChannelGroupRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.class, com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The property for which to create a ChannelGroup.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The property for which to create a ChannelGroup.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANNEL_GROUP_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; - /** - *
-   * Required. The ChannelGroup to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the channelGroup field is set. - */ - @java.lang.Override - public boolean hasChannelGroup() { - return channelGroup_ != null; - } - /** - *
-   * Required. The ChannelGroup to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The channelGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { - return channelGroup_ == null ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } - /** - *
-   * Required. The ChannelGroup to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { - return channelGroup_ == null ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (channelGroup_ != null) { - output.writeMessage(2, getChannelGroup()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (channelGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChannelGroup()); - } - 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.admin.v1alpha.CreateChannelGroupRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest other = (com.google.analytics.admin.v1alpha.CreateChannelGroupRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasChannelGroup() != other.hasChannelGroup()) return false; - if (hasChannelGroup()) { - if (!getChannelGroup() - .equals(other.getChannelGroup())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasChannelGroup()) { - hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getChannelGroup().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateChannelGroup RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateChannelGroupRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateChannelGroupRequest) - com.google.analytics.admin.v1alpha.CreateChannelGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.class, com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - channelGroup_ = null; - if (channelGroupBuilder_ != null) { - channelGroupBuilder_.dispose(); - channelGroupBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateChannelGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest build() { - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateChannelGroupRequest result = new com.google.analytics.admin.v1alpha.CreateChannelGroupRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.channelGroup_ = channelGroupBuilder_ == null - ? channelGroup_ - : channelGroupBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateChannelGroupRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateChannelGroupRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateChannelGroupRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateChannelGroupRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasChannelGroup()) { - mergeChannelGroup(other.getChannelGroup()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getChannelGroupFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The property for which to create a ChannelGroup.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The property for which to create a ChannelGroup.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The property for which to create a ChannelGroup.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to create a ChannelGroup.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to create a ChannelGroup.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> channelGroupBuilder_; - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the channelGroup field is set. - */ - public boolean hasChannelGroup() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The channelGroup. - */ - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { - if (channelGroupBuilder_ == null) { - return channelGroup_ == null ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } else { - return channelGroupBuilder_.getMessage(); - } - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channelGroup_ = value; - } else { - channelGroupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setChannelGroup( - com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { - if (channelGroupBuilder_ == null) { - channelGroup_ = builderForValue.build(); - } else { - channelGroupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - channelGroup_ != null && - channelGroup_ != com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) { - getChannelGroupBuilder().mergeFrom(value); - } else { - channelGroup_ = value; - } - } else { - channelGroupBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearChannelGroup() { - bitField0_ = (bitField0_ & ~0x00000002); - channelGroup_ = null; - if (channelGroupBuilder_ != null) { - channelGroupBuilder_.dispose(); - channelGroupBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getChannelGroupFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { - if (channelGroupBuilder_ != null) { - return channelGroupBuilder_.getMessageOrBuilder(); - } else { - return channelGroup_ == null ? - com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } - } - /** - *
-     * Required. The ChannelGroup to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> - getChannelGroupFieldBuilder() { - if (channelGroupBuilder_ == null) { - channelGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( - getChannelGroup(), - getParentForChildren(), - isClean()); - channelGroup_ = null; - } - return channelGroupBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateChannelGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateChannelGroupRequest) - private static final com.google.analytics.admin.v1alpha.CreateChannelGroupRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateChannelGroupRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateChannelGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateChannelGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateChannelGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequestOrBuilder.java deleted file mode 100644 index 945e40f62a56..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateChannelGroupRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateChannelGroupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateChannelGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property for which to create a ChannelGroup.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The property for which to create a ChannelGroup.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The ChannelGroup to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the channelGroup field is set. - */ - boolean hasChannelGroup(); - /** - *
-   * Required. The ChannelGroup to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The channelGroup. - */ - com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup(); - /** - *
-   * Required. The ChannelGroup to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequest.java deleted file mode 100644 index 8393f896050b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequest.java +++ /dev/null @@ -1,827 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateConnectedSiteTag RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest} - */ -public final class CreateConnectedSiteTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) - CreateConnectedSiteTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateConnectedSiteTagRequest.newBuilder() to construct. - private CreateConnectedSiteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateConnectedSiteTagRequest() { - property_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateConnectedSiteTagRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.class, com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * The Universal Analytics property to create connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * The Universal Analytics property to create connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONNECTED_SITE_TAG_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.ConnectedSiteTag connectedSiteTag_; - /** - *
-   * Required. The tag to add to the Universal Analytics property
-   * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the connectedSiteTag field is set. - */ - @java.lang.Override - public boolean hasConnectedSiteTag() { - return connectedSiteTag_ != null; - } - /** - *
-   * Required. The tag to add to the Universal Analytics property
-   * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The connectedSiteTag. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTag() { - return connectedSiteTag_ == null ? com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() : connectedSiteTag_; - } - /** - *
-   * Required. The tag to add to the Universal Analytics property
-   * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagOrBuilder() { - return connectedSiteTag_ == null ? com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() : connectedSiteTag_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (connectedSiteTag_ != null) { - output.writeMessage(2, getConnectedSiteTag()); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (connectedSiteTag_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getConnectedSiteTag()); - } - 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.admin.v1alpha.CreateConnectedSiteTagRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest other = (com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) return false; - if (hasConnectedSiteTag() != other.hasConnectedSiteTag()) return false; - if (hasConnectedSiteTag()) { - if (!getConnectedSiteTag() - .equals(other.getConnectedSiteTag())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (hasConnectedSiteTag()) { - hash = (37 * hash) + CONNECTED_SITE_TAG_FIELD_NUMBER; - hash = (53 * hash) + getConnectedSiteTag().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateConnectedSiteTag RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.class, com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - connectedSiteTag_ = null; - if (connectedSiteTagBuilder_ != null) { - connectedSiteTagBuilder_.dispose(); - connectedSiteTagBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest build() { - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest result = new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.connectedSiteTag_ = connectedSiteTagBuilder_ == null - ? connectedSiteTag_ - : connectedSiteTagBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasConnectedSiteTag()) { - mergeConnectedSiteTag(other.getConnectedSiteTag()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getConnectedSiteTagFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * The Universal Analytics property to create connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Universal Analytics property to create connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Universal Analytics property to create connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The Universal Analytics property to create connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The Universal Analytics property to create connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.ConnectedSiteTag connectedSiteTag_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConnectedSiteTag, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> connectedSiteTagBuilder_; - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the connectedSiteTag field is set. - */ - public boolean hasConnectedSiteTag() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The connectedSiteTag. - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTag() { - if (connectedSiteTagBuilder_ == null) { - return connectedSiteTag_ == null ? com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() : connectedSiteTag_; - } else { - return connectedSiteTagBuilder_.getMessage(); - } - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConnectedSiteTag(com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { - if (connectedSiteTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connectedSiteTag_ = value; - } else { - connectedSiteTagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConnectedSiteTag( - com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { - if (connectedSiteTagBuilder_ == null) { - connectedSiteTag_ = builderForValue.build(); - } else { - connectedSiteTagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeConnectedSiteTag(com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { - if (connectedSiteTagBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - connectedSiteTag_ != null && - connectedSiteTag_ != com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()) { - getConnectedSiteTagBuilder().mergeFrom(value); - } else { - connectedSiteTag_ = value; - } - } else { - connectedSiteTagBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearConnectedSiteTag() { - bitField0_ = (bitField0_ & ~0x00000002); - connectedSiteTag_ = null; - if (connectedSiteTagBuilder_ != null) { - connectedSiteTagBuilder_.dispose(); - connectedSiteTagBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder getConnectedSiteTagBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getConnectedSiteTagFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagOrBuilder() { - if (connectedSiteTagBuilder_ != null) { - return connectedSiteTagBuilder_.getMessageOrBuilder(); - } else { - return connectedSiteTag_ == null ? - com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance() : connectedSiteTag_; - } - } - /** - *
-     * Required. The tag to add to the Universal Analytics property
-     * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConnectedSiteTag, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> - getConnectedSiteTagFieldBuilder() { - if (connectedSiteTagBuilder_ == null) { - connectedSiteTagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConnectedSiteTag, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder>( - getConnectedSiteTag(), - getParentForChildren(), - isClean()); - connectedSiteTag_ = null; - } - return connectedSiteTagBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) - private static final com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectedSiteTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequestOrBuilder.java deleted file mode 100644 index 3a520bbcefdc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateConnectedSiteTagRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConnectedSiteTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Universal Analytics property to create connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * The Universal Analytics property to create connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Required. The tag to add to the Universal Analytics property
-   * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the connectedSiteTag field is set. - */ - boolean hasConnectedSiteTag(); - /** - *
-   * Required. The tag to add to the Universal Analytics property
-   * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The connectedSiteTag. - */ - com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTag(); - /** - *
-   * Required. The tag to add to the Universal Analytics property
-   * 
- * - * .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tag = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponse.java deleted file mode 100644 index 642d33544317..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponse.java +++ /dev/null @@ -1,406 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for CreateConnectedSiteTag RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse} - */ -public final class CreateConnectedSiteTagResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) - CreateConnectedSiteTagResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateConnectedSiteTagResponse.newBuilder() to construct. - private CreateConnectedSiteTagResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateConnectedSiteTagResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateConnectedSiteTagResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.class, com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.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.admin.v1alpha.CreateConnectedSiteTagResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse other = (com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) 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.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for CreateConnectedSiteTag RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.class, com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConnectedSiteTagResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse build() { - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse buildPartial() { - com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse result = new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse other) { - if (other == com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) - private static final com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse(); - } - - public static com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConnectedSiteTagResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponseOrBuilder.java deleted file mode 100644 index e28f3ff0bd9b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConnectedSiteTagResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateConnectedSiteTagResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConnectedSiteTagResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java deleted file mode 100644 index 08d37fce28b9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} - */ -public final class CreateConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) - CreateConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateConversionEventRequest.newBuilder() to construct. - private CreateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateConversionEventRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); - } - - public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return conversionEvent_ != null; - } - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { - return conversionEvent_ == null ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { - return conversionEvent_ == null ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - - public static final int PARENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (conversionEvent_ != null) { - output.writeMessage(1, getConversionEvent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conversionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConversionEvent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - 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.admin.v1alpha.CreateConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateConversionEventRequest other = (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) obj; - - if (hasConversionEvent() != other.hasConversionEvent()) return false; - if (hasConversionEvent()) { - if (!getConversionEvent() - .equals(other.getConversionEvent())) return false; - } - if (!getParent() - .equals(other.getParent())) 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 (hasConversionEvent()) { - hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getConversionEvent().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) - com.google.analytics.admin.v1alpha.CreateConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConversionEventRequest build() { - com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConversionEventRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.conversionEvent_ = conversionEventBuilder_ == null - ? conversionEvent_ - : conversionEventBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateConversionEventRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance()) return this; - if (other.hasConversionEvent()) { - mergeConversionEvent(other.getConversionEvent()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getConversionEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> conversionEventBuilder_; - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - public boolean hasConversionEvent() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { - if (conversionEventBuilder_ == null) { - return conversionEvent_ == null ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } else { - return conversionEventBuilder_.getMessage(); - } - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conversionEvent_ = value; - } else { - conversionEventBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent( - com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { - if (conversionEventBuilder_ == null) { - conversionEvent_ = builderForValue.build(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - conversionEvent_ != null && - conversionEvent_ != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { - getConversionEventBuilder().mergeFrom(value); - } else { - conversionEvent_ = value; - } - } else { - conversionEventBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearConversionEvent() { - bitField0_ = (bitField0_ & ~0x00000001); - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getConversionEventFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { - if (conversionEventBuilder_ != null) { - return conversionEventBuilder_.getMessageOrBuilder(); - } else { - return conversionEvent_ == null ? - com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> - getConversionEventFieldBuilder() { - if (conversionEventBuilder_ == null) { - conversionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( - getConversionEvent(), - getParentForChildren(), - isClean()); - conversionEvent_ = null; - } - return conversionEventBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConversionEventRequest) - private static final com.google.analytics.admin.v1alpha.CreateConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java deleted file mode 100644 index 26033401075a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - boolean hasConversionEvent(); - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); - - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java deleted file mode 100644 index 68604751ba90..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} - */ -public final class CreateCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) - CreateCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateCustomDimensionRequest.newBuilder() to construct. - private CreateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateCustomDimensionRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customDimension field is set. - */ - @java.lang.Override - public boolean hasCustomDimension() { - return customDimension_ != null; - } - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customDimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { - return customDimension_ == null ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - return customDimension_ == null ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (customDimension_ != null) { - output.writeMessage(2, getCustomDimension()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (customDimension_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomDimension()); - } - 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.admin.v1alpha.CreateCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other = (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasCustomDimension() != other.hasCustomDimension()) return false; - if (hasCustomDimension()) { - if (!getCustomDimension() - .equals(other.getCustomDimension())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasCustomDimension()) { - hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getCustomDimension().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest build() { - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.customDimension_ = customDimensionBuilder_ == null - ? customDimension_ - : customDimensionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCustomDimension()) { - mergeCustomDimension(other.getCustomDimension()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomDimensionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> customDimensionBuilder_; - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customDimension field is set. - */ - public boolean hasCustomDimension() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customDimension. - */ - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { - if (customDimensionBuilder_ == null) { - return customDimension_ == null ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } else { - return customDimensionBuilder_.getMessage(); - } - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customDimension_ = value; - } else { - customDimensionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomDimension( - com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { - if (customDimensionBuilder_ == null) { - customDimension_ = builderForValue.build(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - customDimension_ != null && - customDimension_ != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { - getCustomDimensionBuilder().mergeFrom(value); - } else { - customDimension_ = value; - } - } else { - customDimensionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearCustomDimension() { - bitField0_ = (bitField0_ & ~0x00000002); - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCustomDimensionFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - if (customDimensionBuilder_ != null) { - return customDimensionBuilder_.getMessageOrBuilder(); - } else { - return customDimension_ == null ? - com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> - getCustomDimensionFieldBuilder() { - if (customDimensionBuilder_ == null) { - customDimensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( - getCustomDimension(), - getParentForChildren(), - isClean()); - customDimension_ = null; - } - return customDimensionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) - private static final com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 63fe5fc15c4f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customDimension field is set. - */ - boolean hasCustomDimension(); - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customDimension. - */ - com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java deleted file mode 100644 index 0b39c6356b5c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} - */ -public final class CreateCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) - CreateCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateCustomMetricRequest.newBuilder() to construct. - private CreateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateCustomMetricRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOM_METRIC_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customMetric field is set. - */ - @java.lang.Override - public boolean hasCustomMetric() { - return customMetric_ != null; - } - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customMetric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { - return customMetric_ == null ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { - return customMetric_ == null ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (customMetric_ != null) { - output.writeMessage(2, getCustomMetric()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (customMetric_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomMetric()); - } - 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.admin.v1alpha.CreateCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other = (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasCustomMetric() != other.hasCustomMetric()) return false; - if (hasCustomMetric()) { - if (!getCustomMetric() - .equals(other.getCustomMetric())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasCustomMetric()) { - hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; - hash = (53 * hash) + getCustomMetric().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) - com.google.analytics.admin.v1alpha.CreateCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest build() { - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.customMetric_ = customMetricBuilder_ == null - ? customMetric_ - : customMetricBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCustomMetric()) { - mergeCustomMetric(other.getCustomMetric()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomMetricFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> customMetricBuilder_; - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customMetric field is set. - */ - public boolean hasCustomMetric() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customMetric. - */ - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { - if (customMetricBuilder_ == null) { - return customMetric_ == null ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } else { - return customMetricBuilder_.getMessage(); - } - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customMetric_ = value; - } else { - customMetricBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomMetric( - com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { - if (customMetricBuilder_ == null) { - customMetric_ = builderForValue.build(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - customMetric_ != null && - customMetric_ != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { - getCustomMetricBuilder().mergeFrom(value); - } else { - customMetric_ = value; - } - } else { - customMetricBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearCustomMetric() { - bitField0_ = (bitField0_ & ~0x00000002); - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCustomMetricFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { - if (customMetricBuilder_ != null) { - return customMetricBuilder_.getMessageOrBuilder(); - } else { - return customMetric_ == null ? - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> - getCustomMetricFieldBuilder() { - if (customMetricBuilder_ == null) { - customMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( - getCustomMetric(), - getParentForChildren(), - isClean()); - customMetric_ = null; - } - return customMetricBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomMetricRequest) - private static final com.google.analytics.admin.v1alpha.CreateCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java deleted file mode 100644 index b4b64d9ebafb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customMetric field is set. - */ - boolean hasCustomMetric(); - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customMetric. - */ - com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java deleted file mode 100644 index db0445b444ca..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateDataStreamRequest} - */ -public final class CreateDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDataStreamRequest) - CreateDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateDataStreamRequest.newBuilder() to construct. - private CreateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, com.google.analytics.admin.v1alpha.CreateDataStreamRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_STREAM_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return dataStream_ != null; - } - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - return dataStream_ == null ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - return dataStream_ == null ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (dataStream_ != null) { - output.writeMessage(2, getDataStream()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (dataStream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataStream()); - } - 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.admin.v1alpha.CreateDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateDataStreamRequest other = (com.google.analytics.admin.v1alpha.CreateDataStreamRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasDataStream() != other.hasDataStream()) return false; - if (hasDataStream()) { - if (!getDataStream() - .equals(other.getDataStream())) return false; - } - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasDataStream()) { - hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getDataStream().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDataStreamRequest) - com.google.analytics.admin.v1alpha.CreateDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateDataStreamRequest.class, com.google.analytics.admin.v1alpha.CreateDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest build() { - com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateDataStreamRequest result = new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataStream_ = dataStreamBuilder_ == null - ? dataStream_ - : dataStreamBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateDataStreamRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasDataStream()) { - mergeDataStream(other.getDataStream()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDataStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> dataStreamBuilder_; - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataStream field is set. - */ - public boolean hasDataStream() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataStream. - */ - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - return dataStream_ == null ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } else { - return dataStreamBuilder_.getMessage(); - } - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataStream_ = value; - } else { - dataStreamBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataStream( - com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - dataStream_ = builderForValue.build(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - dataStream_ != null && - dataStream_ != com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) { - getDataStreamBuilder().mergeFrom(value); - } else { - dataStream_ = value; - } - } else { - dataStreamBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDataStream() { - bitField0_ = (bitField0_ & ~0x00000002); - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDataStreamFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - if (dataStreamBuilder_ != null) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - return dataStream_ == null ? - com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - dataStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( - getDataStream(), - getParentForChildren(), - isClean()); - dataStream_ = null; - } - return dataStreamBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.CreateDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java deleted file mode 100644 index d38913bfb913..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataStream. - */ - com.google.analytics.admin.v1alpha.DataStream getDataStream(); - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index bfc058eb70cd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} - */ -public final class CreateDisplayVideo360AdvertiserLinkProposalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) - CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. - private CreateDisplayVideo360AdvertiserLinkProposalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDisplayVideo360AdvertiserLinkProposalRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal_; - /** - *
-   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the displayVideo360AdvertiserLinkProposal field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLinkProposal() { - return displayVideo360AdvertiserLinkProposal_ != null; - } - /** - *
-   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayVideo360AdvertiserLinkProposal. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal() { - return displayVideo360AdvertiserLinkProposal_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance() : displayVideo360AdvertiserLinkProposal_; - } - /** - *
-   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalOrBuilder() { - return displayVideo360AdvertiserLinkProposal_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance() : displayVideo360AdvertiserLinkProposal_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (displayVideo360AdvertiserLinkProposal_ != null) { - output.writeMessage(2, getDisplayVideo360AdvertiserLinkProposal()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (displayVideo360AdvertiserLinkProposal_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDisplayVideo360AdvertiserLinkProposal()); - } - 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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest other = (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasDisplayVideo360AdvertiserLinkProposal() != other.hasDisplayVideo360AdvertiserLinkProposal()) return false; - if (hasDisplayVideo360AdvertiserLinkProposal()) { - if (!getDisplayVideo360AdvertiserLinkProposal() - .equals(other.getDisplayVideo360AdvertiserLinkProposal())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasDisplayVideo360AdvertiserLinkProposal()) { - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposal().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - displayVideo360AdvertiserLinkProposal_ = null; - if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { - displayVideo360AdvertiserLinkProposalBuilder_.dispose(); - displayVideo360AdvertiserLinkProposalBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest build() { - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest result = new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayVideo360AdvertiserLinkProposal_ = displayVideo360AdvertiserLinkProposalBuilder_ == null - ? displayVideo360AdvertiserLinkProposal_ - : displayVideo360AdvertiserLinkProposalBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasDisplayVideo360AdvertiserLinkProposal()) { - mergeDisplayVideo360AdvertiserLinkProposal(other.getDisplayVideo360AdvertiserLinkProposal()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> displayVideo360AdvertiserLinkProposalBuilder_; - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the displayVideo360AdvertiserLinkProposal field is set. - */ - public boolean hasDisplayVideo360AdvertiserLinkProposal() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayVideo360AdvertiserLinkProposal. - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal() { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - return displayVideo360AdvertiserLinkProposal_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance() : displayVideo360AdvertiserLinkProposal_; - } else { - return displayVideo360AdvertiserLinkProposalBuilder_.getMessage(); - } - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - displayVideo360AdvertiserLinkProposal_ = value; - } else { - displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDisplayVideo360AdvertiserLinkProposal( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder builderForValue) { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - displayVideo360AdvertiserLinkProposal_ = builderForValue.build(); - } else { - displayVideo360AdvertiserLinkProposalBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDisplayVideo360AdvertiserLinkProposal(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - displayVideo360AdvertiserLinkProposal_ != null && - displayVideo360AdvertiserLinkProposal_ != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) { - getDisplayVideo360AdvertiserLinkProposalBuilder().mergeFrom(value); - } else { - displayVideo360AdvertiserLinkProposal_ = value; - } - } else { - displayVideo360AdvertiserLinkProposalBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDisplayVideo360AdvertiserLinkProposal() { - bitField0_ = (bitField0_ & ~0x00000002); - displayVideo360AdvertiserLinkProposal_ = null; - if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { - displayVideo360AdvertiserLinkProposalBuilder_.dispose(); - displayVideo360AdvertiserLinkProposalBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder getDisplayVideo360AdvertiserLinkProposalBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalOrBuilder() { - if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { - return displayVideo360AdvertiserLinkProposalBuilder_.getMessageOrBuilder(); - } else { - return displayVideo360AdvertiserLinkProposal_ == null ? - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance() : displayVideo360AdvertiserLinkProposal_; - } - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> - getDisplayVideo360AdvertiserLinkProposalFieldBuilder() { - if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { - displayVideo360AdvertiserLinkProposalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder>( - getDisplayVideo360AdvertiserLinkProposal(), - getParentForChildren(), - isClean()); - displayVideo360AdvertiserLinkProposal_ = null; - } - return displayVideo360AdvertiserLinkProposalBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) - private static final com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index 276ca7813e16..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the displayVideo360AdvertiserLinkProposal field is set. - */ - boolean hasDisplayVideo360AdvertiserLinkProposal(); - /** - *
-   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayVideo360AdvertiserLinkProposal. - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal(); - /** - *
-   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index 102b1478a168..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateDisplayVideo360AdvertiserLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} - */ -public final class CreateDisplayVideo360AdvertiserLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) - CreateDisplayVideo360AdvertiserLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. - private CreateDisplayVideo360AdvertiserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDisplayVideo360AdvertiserLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateDisplayVideo360AdvertiserLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink_; - /** - *
-   * Required. The DisplayVideo360AdvertiserLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink_ != null; - } - /** - *
-   * Required. The DisplayVideo360AdvertiserLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayVideo360AdvertiserLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - /** - *
-   * Required. The DisplayVideo360AdvertiserLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (displayVideo360AdvertiserLink_ != null) { - output.writeMessage(2, getDisplayVideo360AdvertiserLink()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (displayVideo360AdvertiserLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDisplayVideo360AdvertiserLink()); - } - 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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest other = (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) return false; - if (hasDisplayVideo360AdvertiserLink()) { - if (!getDisplayVideo360AdvertiserLink() - .equals(other.getDisplayVideo360AdvertiserLink())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasDisplayVideo360AdvertiserLink()) { - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateDisplayVideo360AdvertiserLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - displayVideo360AdvertiserLink_ = null; - if (displayVideo360AdvertiserLinkBuilder_ != null) { - displayVideo360AdvertiserLinkBuilder_.dispose(); - displayVideo360AdvertiserLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest build() { - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result = new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_ == null - ? displayVideo360AdvertiserLink_ - : displayVideo360AdvertiserLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasDisplayVideo360AdvertiserLink()) { - mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> displayVideo360AdvertiserLinkBuilder_; - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - public boolean hasDisplayVideo360AdvertiserLink() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayVideo360AdvertiserLink. - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } else { - return displayVideo360AdvertiserLinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - displayVideo360AdvertiserLink_ = value; - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = builderForValue.build(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - displayVideo360AdvertiserLink_ != null && - displayVideo360AdvertiserLink_ != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()) { - getDisplayVideo360AdvertiserLinkBuilder().mergeFrom(value); - } else { - displayVideo360AdvertiserLink_ = value; - } - } else { - displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDisplayVideo360AdvertiserLink() { - bitField0_ = (bitField0_ & ~0x00000002); - displayVideo360AdvertiserLink_ = null; - if (displayVideo360AdvertiserLinkBuilder_ != null) { - displayVideo360AdvertiserLinkBuilder_.dispose(); - displayVideo360AdvertiserLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder getDisplayVideo360AdvertiserLinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - if (displayVideo360AdvertiserLinkBuilder_ != null) { - return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); - } else { - return displayVideo360AdvertiserLink_ == null ? - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - } - /** - *
-     * Required. The DisplayVideo360AdvertiserLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> - getDisplayVideo360AdvertiserLinkFieldBuilder() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( - getDisplayVideo360AdvertiserLink(), - getParentForChildren(), - isClean()); - displayVideo360AdvertiserLink_ = null; - } - return displayVideo360AdvertiserLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDisplayVideo360AdvertiserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 41bf5ad15a2b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateDisplayVideo360AdvertiserLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The DisplayVideo360AdvertiserLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - boolean hasDisplayVideo360AdvertiserLink(); - /** - *
-   * Required. The DisplayVideo360AdvertiserLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayVideo360AdvertiserLink. - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(); - /** - *
-   * Required. The DisplayVideo360AdvertiserLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequest.java deleted file mode 100644 index 0f7600405b34..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateEventCreateRule RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} - */ -public final class CreateEventCreateRuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) - CreateEventCreateRuleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateEventCreateRuleRequest.newBuilder() to construct. - private CreateEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateEventCreateRuleRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateEventCreateRuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_CREATE_RULE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; - /** - *
-   * Required. The EventCreateRule to create.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the eventCreateRule field is set. - */ - @java.lang.Override - public boolean hasEventCreateRule() { - return eventCreateRule_ != null; - } - /** - *
-   * Required. The EventCreateRule to create.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventCreateRule. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { - return eventCreateRule_ == null ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } - /** - *
-   * Required. The EventCreateRule to create.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { - return eventCreateRule_ == null ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (eventCreateRule_ != null) { - output.writeMessage(2, getEventCreateRule()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (eventCreateRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getEventCreateRule()); - } - 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.admin.v1alpha.CreateEventCreateRuleRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest other = (com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasEventCreateRule() != other.hasEventCreateRule()) return false; - if (hasEventCreateRule()) { - if (!getEventCreateRule() - .equals(other.getEventCreateRule())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasEventCreateRule()) { - hash = (37 * hash) + EVENT_CREATE_RULE_FIELD_NUMBER; - hash = (53 * hash) + getEventCreateRule().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateEventCreateRule RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateEventCreateRuleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - eventCreateRule_ = null; - if (eventCreateRuleBuilder_ != null) { - eventCreateRuleBuilder_.dispose(); - eventCreateRuleBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest build() { - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest result = new com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventCreateRule_ = eventCreateRuleBuilder_ == null - ? eventCreateRule_ - : eventCreateRuleBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasEventCreateRule()) { - mergeEventCreateRule(other.getEventCreateRule()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getEventCreateRuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> eventCreateRuleBuilder_; - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the eventCreateRule field is set. - */ - public boolean hasEventCreateRule() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventCreateRule. - */ - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { - if (eventCreateRuleBuilder_ == null) { - return eventCreateRule_ == null ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } else { - return eventCreateRuleBuilder_.getMessage(); - } - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eventCreateRule_ = value; - } else { - eventCreateRuleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEventCreateRule( - com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { - if (eventCreateRuleBuilder_ == null) { - eventCreateRule_ = builderForValue.build(); - } else { - eventCreateRuleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRuleBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - eventCreateRule_ != null && - eventCreateRule_ != com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) { - getEventCreateRuleBuilder().mergeFrom(value); - } else { - eventCreateRule_ = value; - } - } else { - eventCreateRuleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearEventCreateRule() { - bitField0_ = (bitField0_ & ~0x00000002); - eventCreateRule_ = null; - if (eventCreateRuleBuilder_ != null) { - eventCreateRuleBuilder_.dispose(); - eventCreateRuleBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.EventCreateRule.Builder getEventCreateRuleBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getEventCreateRuleFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { - if (eventCreateRuleBuilder_ != null) { - return eventCreateRuleBuilder_.getMessageOrBuilder(); - } else { - return eventCreateRule_ == null ? - com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } - } - /** - *
-     * Required. The EventCreateRule to create.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> - getEventCreateRuleFieldBuilder() { - if (eventCreateRuleBuilder_ == null) { - eventCreateRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( - getEventCreateRule(), - getParentForChildren(), - isClean()); - eventCreateRule_ = null; - } - return eventCreateRuleBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) - private static final com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEventCreateRuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateEventCreateRuleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequestOrBuilder.java deleted file mode 100644 index ebe5c8972bd6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateEventCreateRuleRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateEventCreateRuleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateEventCreateRuleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The EventCreateRule to create.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the eventCreateRule field is set. - */ - boolean hasEventCreateRule(); - /** - *
-   * Required. The EventCreateRule to create.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventCreateRule. - */ - com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule(); - /** - *
-   * Required. The EventCreateRule to create.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java deleted file mode 100644 index d9a139f638db..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateExpandedDataSet RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateExpandedDataSetRequest} - */ -public final class CreateExpandedDataSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) - CreateExpandedDataSetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateExpandedDataSetRequest.newBuilder() to construct. - private CreateExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateExpandedDataSetRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateExpandedDataSetRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; - /** - *
-   * Required. The ExpandedDataSet to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expandedDataSet field is set. - */ - @java.lang.Override - public boolean hasExpandedDataSet() { - return expandedDataSet_ != null; - } - /** - *
-   * Required. The ExpandedDataSet to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The expandedDataSet. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { - return expandedDataSet_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } - /** - *
-   * Required. The ExpandedDataSet to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { - return expandedDataSet_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (expandedDataSet_ != null) { - output.writeMessage(2, getExpandedDataSet()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (expandedDataSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpandedDataSet()); - } - 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.admin.v1alpha.CreateExpandedDataSetRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest other = (com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasExpandedDataSet() != other.hasExpandedDataSet()) return false; - if (hasExpandedDataSet()) { - if (!getExpandedDataSet() - .equals(other.getExpandedDataSet())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasExpandedDataSet()) { - hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; - hash = (53 * hash) + getExpandedDataSet().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateExpandedDataSet RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateExpandedDataSetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - expandedDataSet_ = null; - if (expandedDataSetBuilder_ != null) { - expandedDataSetBuilder_.dispose(); - expandedDataSetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest build() { - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result = new com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.expandedDataSet_ = expandedDataSetBuilder_ == null - ? expandedDataSet_ - : expandedDataSetBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasExpandedDataSet()) { - mergeExpandedDataSet(other.getExpandedDataSet()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpandedDataSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> expandedDataSetBuilder_; - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expandedDataSet field is set. - */ - public boolean hasExpandedDataSet() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The expandedDataSet. - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { - if (expandedDataSetBuilder_ == null) { - return expandedDataSet_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } else { - return expandedDataSetBuilder_.getMessage(); - } - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expandedDataSet_ = value; - } else { - expandedDataSetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setExpandedDataSet( - com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { - if (expandedDataSetBuilder_ == null) { - expandedDataSet_ = builderForValue.build(); - } else { - expandedDataSetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expandedDataSet_ != null && - expandedDataSet_ != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { - getExpandedDataSetBuilder().mergeFrom(value); - } else { - expandedDataSet_ = value; - } - } else { - expandedDataSetBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearExpandedDataSet() { - bitField0_ = (bitField0_ & ~0x00000002); - expandedDataSet_ = null; - if (expandedDataSetBuilder_ != null) { - expandedDataSetBuilder_.dispose(); - expandedDataSetBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getExpandedDataSetFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { - if (expandedDataSetBuilder_ != null) { - return expandedDataSetBuilder_.getMessageOrBuilder(); - } else { - return expandedDataSet_ == null ? - com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } - } - /** - *
-     * Required. The ExpandedDataSet to create.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> - getExpandedDataSetFieldBuilder() { - if (expandedDataSetBuilder_ == null) { - expandedDataSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( - getExpandedDataSet(), - getParentForChildren(), - isClean()); - expandedDataSet_ = null; - } - return expandedDataSetBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) - private static final com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateExpandedDataSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateExpandedDataSetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java deleted file mode 100644 index 42663707a658..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateExpandedDataSetRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateExpandedDataSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateExpandedDataSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The ExpandedDataSet to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expandedDataSet field is set. - */ - boolean hasExpandedDataSet(); - /** - *
-   * Required. The ExpandedDataSet to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The expandedDataSet. - */ - com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); - /** - *
-   * Required. The ExpandedDataSet to create.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java deleted file mode 100644 index f680103f512a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateFirebaseLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} - */ -public final class CreateFirebaseLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) - CreateFirebaseLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateFirebaseLinkRequest.newBuilder() to construct. - private CreateFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateFirebaseLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateFirebaseLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.class, com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIREBASE_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.FirebaseLink firebaseLink_; - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the firebaseLink field is set. - */ - @java.lang.Override - public boolean hasFirebaseLink() { - return firebaseLink_ != null; - } - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The firebaseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { - return firebaseLink_ == null ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() : firebaseLink_; - } - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - return firebaseLink_ == null ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() : firebaseLink_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (firebaseLink_ != null) { - output.writeMessage(2, getFirebaseLink()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (firebaseLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFirebaseLink()); - } - 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.admin.v1alpha.CreateFirebaseLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest other = (com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasFirebaseLink() != other.hasFirebaseLink()) return false; - if (hasFirebaseLink()) { - if (!getFirebaseLink() - .equals(other.getFirebaseLink())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasFirebaseLink()) { - hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateFirebaseLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateFirebaseLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.class, com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - firebaseLink_ = null; - if (firebaseLinkBuilder_ != null) { - firebaseLinkBuilder_.dispose(); - firebaseLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest build() { - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest result = new com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.firebaseLink_ = firebaseLinkBuilder_ == null - ? firebaseLink_ - : firebaseLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasFirebaseLink()) { - mergeFirebaseLink(other.getFirebaseLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getFirebaseLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.FirebaseLink firebaseLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> firebaseLinkBuilder_; - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the firebaseLink field is set. - */ - public boolean hasFirebaseLink() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The firebaseLink. - */ - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - return firebaseLink_ == null ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() : firebaseLink_; - } else { - return firebaseLinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - firebaseLink_ = value; - } else { - firebaseLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFirebaseLink( - com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = builderForValue.build(); - } else { - firebaseLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - firebaseLink_ != null && - firebaseLink_ != com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) { - getFirebaseLinkBuilder().mergeFrom(value); - } else { - firebaseLink_ = value; - } - } else { - firebaseLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearFirebaseLink() { - bitField0_ = (bitField0_ & ~0x00000002); - firebaseLink_ = null; - if (firebaseLinkBuilder_ != null) { - firebaseLinkBuilder_.dispose(); - firebaseLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFirebaseLinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - if (firebaseLinkBuilder_ != null) { - return firebaseLinkBuilder_.getMessageOrBuilder(); - } else { - return firebaseLink_ == null ? - com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() : firebaseLink_; - } - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> - getFirebaseLinkFieldBuilder() { - if (firebaseLinkBuilder_ == null) { - firebaseLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( - getFirebaseLink(), - getParentForChildren(), - isClean()); - firebaseLink_ = null; - } - return firebaseLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFirebaseLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index ae17db521f7b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateFirebaseLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateFirebaseLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the firebaseLink field is set. - */ - boolean hasFirebaseLink(); - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The firebaseLink. - */ - com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java deleted file mode 100644 index dbdc9b2b1385..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateGoogleAdsLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} - */ -public final class CreateGoogleAdsLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) - CreateGoogleAdsLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateGoogleAdsLinkRequest.newBuilder() to construct. - private CreateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateGoogleAdsLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateGoogleAdsLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return googleAdsLink_ != null; - } - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (googleAdsLink_ != null) { - output.writeMessage(2, getGoogleAdsLink()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (googleAdsLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGoogleAdsLink()); - } - 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.admin.v1alpha.CreateGoogleAdsLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest other = (com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; - if (hasGoogleAdsLink()) { - if (!getGoogleAdsLink() - .equals(other.getGoogleAdsLink())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasGoogleAdsLink()) { - hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateGoogleAdsLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest build() { - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest result = new com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.googleAdsLink_ = googleAdsLinkBuilder_ == null - ? googleAdsLink_ - : googleAdsLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasGoogleAdsLink()) { - mergeGoogleAdsLink(other.getGoogleAdsLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGoogleAdsLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> googleAdsLinkBuilder_; - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleAdsLink field is set. - */ - public boolean hasGoogleAdsLink() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleAdsLink. - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - return googleAdsLink_ == null ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } else { - return googleAdsLinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - googleAdsLink_ = value; - } else { - googleAdsLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGoogleAdsLink( - com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = builderForValue.build(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - googleAdsLink_ != null && - googleAdsLink_ != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { - getGoogleAdsLinkBuilder().mergeFrom(value); - } else { - googleAdsLink_ = value; - } - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearGoogleAdsLink() { - bitField0_ = (bitField0_ & ~0x00000002); - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getGoogleAdsLinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if (googleAdsLinkBuilder_ != null) { - return googleAdsLinkBuilder_.getMessageOrBuilder(); - } else { - return googleAdsLink_ == null ? - com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> - getGoogleAdsLinkFieldBuilder() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( - getGoogleAdsLink(), - getParentForChildren(), - isClean()); - googleAdsLink_ = null; - } - return googleAdsLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGoogleAdsLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 72a64848bb17..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateGoogleAdsLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleAdsLink field is set. - */ - boolean hasGoogleAdsLink(); - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleAdsLink. - */ - com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java deleted file mode 100644 index e2db59b58d42..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} - */ -public final class CreateMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) - CreateMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateMeasurementProtocolSecretRequest.newBuilder() to construct. - private CreateMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateMeasurementProtocolSecretRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return measurementProtocolSecret_ != null; - } - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (measurementProtocolSecret_ != null) { - output.writeMessage(2, getMeasurementProtocolSecret()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (measurementProtocolSecret_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMeasurementProtocolSecret()); - } - 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.admin.v1alpha.CreateMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; - if (hasMeasurementProtocolSecret()) { - if (!getMeasurementProtocolSecret() - .equals(other.getMeasurementProtocolSecret())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasMeasurementProtocolSecret()) { - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_ == null - ? measurementProtocolSecret_ - : measurementProtocolSecretBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasMeasurementProtocolSecret()) { - mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretBuilder_; - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - public boolean hasMeasurementProtocolSecret() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } else { - return measurementProtocolSecretBuilder_.getMessage(); - } - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - measurementProtocolSecret_ = value; - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = builderForValue.build(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - measurementProtocolSecret_ != null && - measurementProtocolSecret_ != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()) { - getMeasurementProtocolSecretBuilder().mergeFrom(value); - } else { - measurementProtocolSecret_ = value; - } - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearMeasurementProtocolSecret() { - bitField0_ = (bitField0_ & ~0x00000002); - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getMeasurementProtocolSecretFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if (measurementProtocolSecretBuilder_ != null) { - return measurementProtocolSecretBuilder_.getMessageOrBuilder(); - } else { - return measurementProtocolSecret_ == null ? - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretFieldBuilder() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( - getMeasurementProtocolSecret(), - getParentForChildren(), - isClean()); - measurementProtocolSecret_ = null; - } - return measurementProtocolSecretBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index 698e00d225d9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - boolean hasMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java deleted file mode 100644 index d782d8e45914..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java +++ /dev/null @@ -1,654 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreatePropertyRequest} - */ -public final class CreatePropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreatePropertyRequest) - CreatePropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreatePropertyRequest.newBuilder() to construct. - private CreatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreatePropertyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreatePropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreatePropertyRequest.class, com.google.analytics.admin.v1alpha.CreatePropertyRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Property property_; - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return property_ != null; - } - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getProperty() { - return property_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { - return property_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } - - 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 (property_ != null) { - output.writeMessage(1, getProperty()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); - } - 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.admin.v1alpha.CreatePropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreatePropertyRequest other = (com.google.analytics.admin.v1alpha.CreatePropertyRequest) obj; - - if (hasProperty() != other.hasProperty()) return false; - if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) 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 (hasProperty()) { - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreatePropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreatePropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreatePropertyRequest) - com.google.analytics.admin.v1alpha.CreatePropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreatePropertyRequest.class, com.google.analytics.admin.v1alpha.CreatePropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreatePropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreatePropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreatePropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreatePropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreatePropertyRequest build() { - com.google.analytics.admin.v1alpha.CreatePropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreatePropertyRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreatePropertyRequest result = new com.google.analytics.admin.v1alpha.CreatePropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreatePropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = propertyBuilder_ == null - ? property_ - : propertyBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreatePropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreatePropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreatePropertyRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreatePropertyRequest.getDefaultInstance()) return this; - if (other.hasProperty()) { - mergeProperty(other.getProperty()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getPropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Property property_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> propertyBuilder_; - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - public boolean hasProperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - public com.google.analytics.admin.v1alpha.Property getProperty() { - if (propertyBuilder_ == null) { - return property_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } else { - return propertyBuilder_.getMessage(); - } - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - property_ = value; - } else { - propertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (propertyBuilder_ == null) { - property_ = builderForValue.build(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - property_ != null && - property_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - getPropertyBuilder().mergeFrom(value); - } else { - property_ = value; - } - } else { - propertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearProperty() { - bitField0_ = (bitField0_ & ~0x00000001); - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPropertyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { - if (propertyBuilder_ != null) { - return propertyBuilder_.getMessageOrBuilder(); - } else { - return property_ == null ? - com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getPropertyFieldBuilder() { - if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); - property_ = null; - } - return propertyBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreatePropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreatePropertyRequest) - private static final com.google.analytics.admin.v1alpha.CreatePropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreatePropertyRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreatePropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreatePropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java deleted file mode 100644 index fb9f826a731c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreatePropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreatePropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - boolean hasProperty(); - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - com.google.analytics.admin.v1alpha.Property getProperty(); - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java deleted file mode 100644 index fe4e5a3f161a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequest.java +++ /dev/null @@ -1,896 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateRollupProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyRequest} - */ -public final class CreateRollupPropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) - CreateRollupPropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateRollupPropertyRequest.newBuilder() to construct. - private CreateRollupPropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateRollupPropertyRequest() { - sourceProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateRollupPropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.Builder.class); - } - - public static final int ROLLUP_PROPERTY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Property rollupProperty_; - /** - *
-   * Required. The roll-up property to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollupProperty field is set. - */ - @java.lang.Override - public boolean hasRollupProperty() { - return rollupProperty_ != null; - } - /** - *
-   * Required. The roll-up property to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollupProperty. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getRollupProperty() { - return rollupProperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } - /** - *
-   * Required. The roll-up property to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { - return rollupProperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } - - public static final int SOURCE_PROPERTIES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList sourceProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the sourceProperties. - */ - public com.google.protobuf.ProtocolStringList - getSourcePropertiesList() { - return sourceProperties_; - } - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of sourceProperties. - */ - public int getSourcePropertiesCount() { - return sourceProperties_.size(); - } - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The sourceProperties at the given index. - */ - public java.lang.String getSourceProperties(int index) { - return sourceProperties_.get(index); - } - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the sourceProperties at the given index. - */ - public com.google.protobuf.ByteString - getSourcePropertiesBytes(int index) { - return sourceProperties_.getByteString(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 { - if (rollupProperty_ != null) { - output.writeMessage(1, getRollupProperty()); - } - for (int i = 0; i < sourceProperties_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceProperties_.getRaw(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rollupProperty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRollupProperty()); - } - { - int dataSize = 0; - for (int i = 0; i < sourceProperties_.size(); i++) { - dataSize += computeStringSizeNoTag(sourceProperties_.getRaw(i)); - } - size += dataSize; - size += 1 * getSourcePropertiesList().size(); - } - 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.admin.v1alpha.CreateRollupPropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest other = (com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) obj; - - if (hasRollupProperty() != other.hasRollupProperty()) return false; - if (hasRollupProperty()) { - if (!getRollupProperty() - .equals(other.getRollupProperty())) return false; - } - if (!getSourcePropertiesList() - .equals(other.getSourcePropertiesList())) 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 (hasRollupProperty()) { - hash = (37 * hash) + ROLLUP_PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getRollupProperty().hashCode(); - } - if (getSourcePropertiesCount() > 0) { - hash = (37 * hash) + SOURCE_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getSourcePropertiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateRollupProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.class, com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - rollupProperty_ = null; - if (rollupPropertyBuilder_ != null) { - rollupPropertyBuilder_.dispose(); - rollupPropertyBuilder_ = null; - } - sourceProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest build() { - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result = new com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.rollupProperty_ = rollupPropertyBuilder_ == null - ? rollupProperty_ - : rollupPropertyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - sourceProperties_.makeImmutable(); - result.sourceProperties_ = sourceProperties_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest.getDefaultInstance()) return this; - if (other.hasRollupProperty()) { - mergeRollupProperty(other.getRollupProperty()); - } - if (!other.sourceProperties_.isEmpty()) { - if (sourceProperties_.isEmpty()) { - sourceProperties_ = other.sourceProperties_; - bitField0_ |= 0x00000002; - } else { - ensureSourcePropertiesIsMutable(); - sourceProperties_.addAll(other.sourceProperties_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getRollupPropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureSourcePropertiesIsMutable(); - sourceProperties_.add(s); - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Property rollupProperty_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> rollupPropertyBuilder_; - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollupProperty field is set. - */ - public boolean hasRollupProperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollupProperty. - */ - public com.google.analytics.admin.v1alpha.Property getRollupProperty() { - if (rollupPropertyBuilder_ == null) { - return rollupProperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } else { - return rollupPropertyBuilder_.getMessage(); - } - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRollupProperty(com.google.analytics.admin.v1alpha.Property value) { - if (rollupPropertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rollupProperty_ = value; - } else { - rollupPropertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRollupProperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (rollupPropertyBuilder_ == null) { - rollupProperty_ = builderForValue.build(); - } else { - rollupPropertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeRollupProperty(com.google.analytics.admin.v1alpha.Property value) { - if (rollupPropertyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - rollupProperty_ != null && - rollupProperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - getRollupPropertyBuilder().mergeFrom(value); - } else { - rollupProperty_ = value; - } - } else { - rollupPropertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearRollupProperty() { - bitField0_ = (bitField0_ & ~0x00000001); - rollupProperty_ = null; - if (rollupPropertyBuilder_ != null) { - rollupPropertyBuilder_.dispose(); - rollupPropertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getRollupPropertyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRollupPropertyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { - if (rollupPropertyBuilder_ != null) { - return rollupPropertyBuilder_.getMessageOrBuilder(); - } else { - return rollupProperty_ == null ? - com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } - } - /** - *
-     * Required. The roll-up property to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getRollupPropertyFieldBuilder() { - if (rollupPropertyBuilder_ == null) { - rollupPropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - getRollupProperty(), - getParentForChildren(), - isClean()); - rollupProperty_ = null; - } - return rollupPropertyBuilder_; - } - - private com.google.protobuf.LazyStringArrayList sourceProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureSourcePropertiesIsMutable() { - if (!sourceProperties_.isModifiable()) { - sourceProperties_ = new com.google.protobuf.LazyStringArrayList(sourceProperties_); - } - bitField0_ |= 0x00000002; - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the sourceProperties. - */ - public com.google.protobuf.ProtocolStringList - getSourcePropertiesList() { - sourceProperties_.makeImmutable(); - return sourceProperties_; - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of sourceProperties. - */ - public int getSourcePropertiesCount() { - return sourceProperties_.size(); - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The sourceProperties at the given index. - */ - public java.lang.String getSourceProperties(int index) { - return sourceProperties_.get(index); - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the sourceProperties at the given index. - */ - public com.google.protobuf.ByteString - getSourcePropertiesBytes(int index) { - return sourceProperties_.getByteString(index); - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The sourceProperties to set. - * @return This builder for chaining. - */ - public Builder setSourceProperties( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureSourcePropertiesIsMutable(); - sourceProperties_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The sourceProperties to add. - * @return This builder for chaining. - */ - public Builder addSourceProperties( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureSourcePropertiesIsMutable(); - sourceProperties_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The sourceProperties to add. - * @return This builder for chaining. - */ - public Builder addAllSourceProperties( - java.lang.Iterable values) { - ensureSourcePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, sourceProperties_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearSourceProperties() { - sourceProperties_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002);; - onChanged(); - return this; - } - /** - *
-     * Optional. The resource names of properties that will be sources to the
-     * created roll-up property.
-     * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes of the sourceProperties to add. - * @return This builder for chaining. - */ - public Builder addSourcePropertiesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureSourcePropertiesIsMutable(); - sourceProperties_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) - private static final com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRollupPropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java deleted file mode 100644 index dd965bc5b9a3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyRequestOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateRollupPropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The roll-up property to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollupProperty field is set. - */ - boolean hasRollupProperty(); - /** - *
-   * Required. The roll-up property to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollupProperty. - */ - com.google.analytics.admin.v1alpha.Property getRollupProperty(); - /** - *
-   * Required. The roll-up property to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder(); - - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the sourceProperties. - */ - java.util.List - getSourcePropertiesList(); - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of sourceProperties. - */ - int getSourcePropertiesCount(); - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The sourceProperties at the given index. - */ - java.lang.String getSourceProperties(int index); - /** - *
-   * Optional. The resource names of properties that will be sources to the
-   * created roll-up property.
-   * 
- * - * repeated string source_properties = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the sourceProperties at the given index. - */ - com.google.protobuf.ByteString - getSourcePropertiesBytes(int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java deleted file mode 100644 index af2cb77f1885..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponse.java +++ /dev/null @@ -1,1088 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for CreateRollupProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyResponse} - */ -public final class CreateRollupPropertyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) - CreateRollupPropertyResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateRollupPropertyResponse.newBuilder() to construct. - private CreateRollupPropertyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateRollupPropertyResponse() { - rollupPropertySourceLinks_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateRollupPropertyResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.Builder.class); - } - - public static final int ROLLUP_PROPERTY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Property rollupProperty_; - /** - *
-   * The created roll-up property.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @return Whether the rollupProperty field is set. - */ - @java.lang.Override - public boolean hasRollupProperty() { - return rollupProperty_ != null; - } - /** - *
-   * The created roll-up property.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @return The rollupProperty. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getRollupProperty() { - return rollupProperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } - /** - *
-   * The created roll-up property.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { - return rollupProperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } - - public static final int ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List rollupPropertySourceLinks_; - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - @java.lang.Override - public java.util.List getRollupPropertySourceLinksList() { - return rollupPropertySourceLinks_; - } - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - @java.lang.Override - public java.util.List - getRollupPropertySourceLinksOrBuilderList() { - return rollupPropertySourceLinks_; - } - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - @java.lang.Override - public int getRollupPropertySourceLinksCount() { - return rollupPropertySourceLinks_.size(); - } - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks(int index) { - return rollupPropertySourceLinks_.get(index); - } - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinksOrBuilder( - int index) { - return rollupPropertySourceLinks_.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 { - if (rollupProperty_ != null) { - output.writeMessage(1, getRollupProperty()); - } - for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { - output.writeMessage(2, rollupPropertySourceLinks_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (rollupProperty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRollupProperty()); - } - for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, rollupPropertySourceLinks_.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.admin.v1alpha.CreateRollupPropertyResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse other = (com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse) obj; - - if (hasRollupProperty() != other.hasRollupProperty()) return false; - if (hasRollupProperty()) { - if (!getRollupProperty() - .equals(other.getRollupProperty())) return false; - } - if (!getRollupPropertySourceLinksList() - .equals(other.getRollupPropertySourceLinksList())) 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 (hasRollupProperty()) { - hash = (37 * hash) + ROLLUP_PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getRollupProperty().hashCode(); - } - if (getRollupPropertySourceLinksCount() > 0) { - hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getRollupPropertySourceLinksList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for CreateRollupProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.class, com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - rollupProperty_ = null; - if (rollupPropertyBuilder_ != null) { - rollupPropertyBuilder_.dispose(); - rollupPropertyBuilder_ = null; - } - if (rollupPropertySourceLinksBuilder_ == null) { - rollupPropertySourceLinks_ = java.util.Collections.emptyList(); - } else { - rollupPropertySourceLinks_ = null; - rollupPropertySourceLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertyResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse build() { - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse buildPartial() { - com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result = new com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - rollupPropertySourceLinks_ = java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.rollupPropertySourceLinks_ = rollupPropertySourceLinks_; - } else { - result.rollupPropertySourceLinks_ = rollupPropertySourceLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.rollupProperty_ = rollupPropertyBuilder_ == null - ? rollupProperty_ - : rollupPropertyBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse other) { - if (other == com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse.getDefaultInstance()) return this; - if (other.hasRollupProperty()) { - mergeRollupProperty(other.getRollupProperty()); - } - if (rollupPropertySourceLinksBuilder_ == null) { - if (!other.rollupPropertySourceLinks_.isEmpty()) { - if (rollupPropertySourceLinks_.isEmpty()) { - rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.addAll(other.rollupPropertySourceLinks_); - } - onChanged(); - } - } else { - if (!other.rollupPropertySourceLinks_.isEmpty()) { - if (rollupPropertySourceLinksBuilder_.isEmpty()) { - rollupPropertySourceLinksBuilder_.dispose(); - rollupPropertySourceLinksBuilder_ = null; - rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; - bitField0_ = (bitField0_ & ~0x00000002); - rollupPropertySourceLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRollupPropertySourceLinksFieldBuilder() : null; - } else { - rollupPropertySourceLinksBuilder_.addAllMessages(other.rollupPropertySourceLinks_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getRollupPropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1alpha.RollupPropertySourceLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.parser(), - extensionRegistry); - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(m); - } else { - rollupPropertySourceLinksBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Property rollupProperty_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> rollupPropertyBuilder_; - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @return Whether the rollupProperty field is set. - */ - public boolean hasRollupProperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @return The rollupProperty. - */ - public com.google.analytics.admin.v1alpha.Property getRollupProperty() { - if (rollupPropertyBuilder_ == null) { - return rollupProperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } else { - return rollupPropertyBuilder_.getMessage(); - } - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - public Builder setRollupProperty(com.google.analytics.admin.v1alpha.Property value) { - if (rollupPropertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rollupProperty_ = value; - } else { - rollupPropertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - public Builder setRollupProperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (rollupPropertyBuilder_ == null) { - rollupProperty_ = builderForValue.build(); - } else { - rollupPropertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - public Builder mergeRollupProperty(com.google.analytics.admin.v1alpha.Property value) { - if (rollupPropertyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - rollupProperty_ != null && - rollupProperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - getRollupPropertyBuilder().mergeFrom(value); - } else { - rollupProperty_ = value; - } - } else { - rollupPropertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - public Builder clearRollupProperty() { - bitField0_ = (bitField0_ & ~0x00000001); - rollupProperty_ = null; - if (rollupPropertyBuilder_ != null) { - rollupPropertyBuilder_.dispose(); - rollupPropertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getRollupPropertyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getRollupPropertyFieldBuilder().getBuilder(); - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder() { - if (rollupPropertyBuilder_ != null) { - return rollupPropertyBuilder_.getMessageOrBuilder(); - } else { - return rollupProperty_ == null ? - com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : rollupProperty_; - } - } - /** - *
-     * The created roll-up property.
-     * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getRollupPropertyFieldBuilder() { - if (rollupPropertyBuilder_ == null) { - rollupPropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - getRollupProperty(), - getParentForChildren(), - isClean()); - rollupProperty_ = null; - } - return rollupPropertyBuilder_; - } - - private java.util.List rollupPropertySourceLinks_ = - java.util.Collections.emptyList(); - private void ensureRollupPropertySourceLinksIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - rollupPropertySourceLinks_ = new java.util.ArrayList(rollupPropertySourceLinks_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> rollupPropertySourceLinksBuilder_; - - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public java.util.List getRollupPropertySourceLinksList() { - if (rollupPropertySourceLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); - } else { - return rollupPropertySourceLinksBuilder_.getMessageList(); - } - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public int getRollupPropertySourceLinksCount() { - if (rollupPropertySourceLinksBuilder_ == null) { - return rollupPropertySourceLinks_.size(); - } else { - return rollupPropertySourceLinksBuilder_.getCount(); - } - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks(int index) { - if (rollupPropertySourceLinksBuilder_ == null) { - return rollupPropertySourceLinks_.get(index); - } else { - return rollupPropertySourceLinksBuilder_.getMessage(index); - } - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder setRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.set(index, value); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder setRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder addRollupPropertySourceLinks(com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(value); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder addRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(index, value); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder addRollupPropertySourceLinks( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(builderForValue.build()); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder addRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder addAllRollupPropertySourceLinks( - java.lang.Iterable values) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rollupPropertySourceLinks_); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder clearRollupPropertySourceLinks() { - if (rollupPropertySourceLinksBuilder_ == null) { - rollupPropertySourceLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public Builder removeRollupPropertySourceLinks(int index) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.remove(index); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder getRollupPropertySourceLinksBuilder( - int index) { - return getRollupPropertySourceLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinksOrBuilder( - int index) { - if (rollupPropertySourceLinksBuilder_ == null) { - return rollupPropertySourceLinks_.get(index); } else { - return rollupPropertySourceLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public java.util.List - getRollupPropertySourceLinksOrBuilderList() { - if (rollupPropertySourceLinksBuilder_ != null) { - return rollupPropertySourceLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); - } - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder addRollupPropertySourceLinksBuilder() { - return getRollupPropertySourceLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder addRollupPropertySourceLinksBuilder( - int index) { - return getRollupPropertySourceLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); - } - /** - *
-     * The created roll-up property source links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - public java.util.List - getRollupPropertySourceLinksBuilderList() { - return getRollupPropertySourceLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> - getRollupPropertySourceLinksFieldBuilder() { - if (rollupPropertySourceLinksBuilder_ == null) { - rollupPropertySourceLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( - rollupPropertySourceLinks_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - rollupPropertySourceLinks_ = null; - } - return rollupPropertySourceLinksBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) - private static final com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse(); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRollupPropertyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java deleted file mode 100644 index 1765871dce7b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertyResponseOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateRollupPropertyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The created roll-up property.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @return Whether the rollupProperty field is set. - */ - boolean hasRollupProperty(); - /** - *
-   * The created roll-up property.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - * @return The rollupProperty. - */ - com.google.analytics.admin.v1alpha.Property getRollupProperty(); - /** - *
-   * The created roll-up property.
-   * 
- * - * .google.analytics.admin.v1alpha.Property rollup_property = 1; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getRollupPropertyOrBuilder(); - - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - java.util.List - getRollupPropertySourceLinksList(); - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks(int index); - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - int getRollupPropertySourceLinksCount(); - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - java.util.List - getRollupPropertySourceLinksOrBuilderList(); - /** - *
-   * The created roll-up property source links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 2; - */ - com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinksOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java deleted file mode 100644 index 018b6c67c08d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateRollupPropertySourceLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest} - */ -public final class CreateRollupPropertySourceLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) - CreateRollupPropertySourceLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateRollupPropertySourceLinkRequest.newBuilder() to construct. - private CreateRollupPropertySourceLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateRollupPropertySourceLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateRollupPropertySourceLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLLUP_PROPERTY_SOURCE_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.RollupPropertySourceLink rollupPropertySourceLink_; - /** - *
-   * Required. The roll-up property source link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollupPropertySourceLink field is set. - */ - @java.lang.Override - public boolean hasRollupPropertySourceLink() { - return rollupPropertySourceLink_ != null; - } - /** - *
-   * Required. The roll-up property source link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollupPropertySourceLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink() { - return rollupPropertySourceLink_ == null ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() : rollupPropertySourceLink_; - } - /** - *
-   * Required. The roll-up property source link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinkOrBuilder() { - return rollupPropertySourceLink_ == null ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() : rollupPropertySourceLink_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (rollupPropertySourceLink_ != null) { - output.writeMessage(2, getRollupPropertySourceLink()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (rollupPropertySourceLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRollupPropertySourceLink()); - } - 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.admin.v1alpha.CreateRollupPropertySourceLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest other = (com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasRollupPropertySourceLink() != other.hasRollupPropertySourceLink()) return false; - if (hasRollupPropertySourceLink()) { - if (!getRollupPropertySourceLink() - .equals(other.getRollupPropertySourceLink())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasRollupPropertySourceLink()) { - hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getRollupPropertySourceLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateRollupPropertySourceLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.class, com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - rollupPropertySourceLink_ = null; - if (rollupPropertySourceLinkBuilder_ != null) { - rollupPropertySourceLinkBuilder_.dispose(); - rollupPropertySourceLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest build() { - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result = new com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.rollupPropertySourceLink_ = rollupPropertySourceLinkBuilder_ == null - ? rollupPropertySourceLink_ - : rollupPropertySourceLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasRollupPropertySourceLink()) { - mergeRollupPropertySourceLink(other.getRollupPropertySourceLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getRollupPropertySourceLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.RollupPropertySourceLink rollupPropertySourceLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> rollupPropertySourceLinkBuilder_; - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollupPropertySourceLink field is set. - */ - public boolean hasRollupPropertySourceLink() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollupPropertySourceLink. - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink() { - if (rollupPropertySourceLinkBuilder_ == null) { - return rollupPropertySourceLink_ == null ? com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() : rollupPropertySourceLink_; - } else { - return rollupPropertySourceLinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRollupPropertySourceLink(com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rollupPropertySourceLink_ = value; - } else { - rollupPropertySourceLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setRollupPropertySourceLink( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { - if (rollupPropertySourceLinkBuilder_ == null) { - rollupPropertySourceLink_ = builderForValue.build(); - } else { - rollupPropertySourceLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeRollupPropertySourceLink(com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - rollupPropertySourceLink_ != null && - rollupPropertySourceLink_ != com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()) { - getRollupPropertySourceLinkBuilder().mergeFrom(value); - } else { - rollupPropertySourceLink_ = value; - } - } else { - rollupPropertySourceLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearRollupPropertySourceLink() { - bitField0_ = (bitField0_ & ~0x00000002); - rollupPropertySourceLink_ = null; - if (rollupPropertySourceLinkBuilder_ != null) { - rollupPropertySourceLinkBuilder_.dispose(); - rollupPropertySourceLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder getRollupPropertySourceLinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getRollupPropertySourceLinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinkOrBuilder() { - if (rollupPropertySourceLinkBuilder_ != null) { - return rollupPropertySourceLinkBuilder_.getMessageOrBuilder(); - } else { - return rollupPropertySourceLink_ == null ? - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance() : rollupPropertySourceLink_; - } - } - /** - *
-     * Required. The roll-up property source link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> - getRollupPropertySourceLinkFieldBuilder() { - if (rollupPropertySourceLinkBuilder_ == null) { - rollupPropertySourceLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( - getRollupPropertySourceLink(), - getParentForChildren(), - isClean()); - rollupPropertySourceLink_ = null; - } - return rollupPropertySourceLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRollupPropertySourceLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java deleted file mode 100644 index a0caf7adf9df..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateRollupPropertySourceLinkRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateRollupPropertySourceLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateRollupPropertySourceLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The roll-up property source link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the rollupPropertySourceLink field is set. - */ - boolean hasRollupPropertySourceLink(); - /** - *
-   * Required. The roll-up property source link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The rollupPropertySourceLink. - */ - com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLink(); - /** - *
-   * Required. The roll-up property source link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequest.java deleted file mode 100644 index 22e7a677970f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateSKAdNetworkConversionValueSchema RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest} - */ -public final class CreateSKAdNetworkConversionValueSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) - CreateSKAdNetworkConversionValueSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. - private CreateSKAdNetworkConversionValueSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateSKAdNetworkConversionValueSchemaRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateSKAdNetworkConversionValueSchemaRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The parent resource where this schema will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent resource where this schema will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema_; - /** - *
-   * Required. SKAdNetwork conversion value schema to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - @java.lang.Override - public boolean hasSkadnetworkConversionValueSchema() { - return skadnetworkConversionValueSchema_ != null; - } - /** - *
-   * Required. SKAdNetwork conversion value schema to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The skadnetworkConversionValueSchema. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema() { - return skadnetworkConversionValueSchema_ == null ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } - /** - *
-   * Required. SKAdNetwork conversion value schema to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder() { - return skadnetworkConversionValueSchema_ == null ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (skadnetworkConversionValueSchema_ != null) { - output.writeMessage(2, getSkadnetworkConversionValueSchema()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (skadnetworkConversionValueSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSkadnetworkConversionValueSchema()); - } - 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.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest other = (com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasSkadnetworkConversionValueSchema() != other.hasSkadnetworkConversionValueSchema()) return false; - if (hasSkadnetworkConversionValueSchema()) { - if (!getSkadnetworkConversionValueSchema() - .equals(other.getSkadnetworkConversionValueSchema())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasSkadnetworkConversionValueSchema()) { - hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSkadnetworkConversionValueSchema().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateSKAdNetworkConversionValueSchema RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - skadnetworkConversionValueSchema_ = null; - if (skadnetworkConversionValueSchemaBuilder_ != null) { - skadnetworkConversionValueSchemaBuilder_.dispose(); - skadnetworkConversionValueSchemaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest build() { - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest result = new com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.skadnetworkConversionValueSchema_ = skadnetworkConversionValueSchemaBuilder_ == null - ? skadnetworkConversionValueSchema_ - : skadnetworkConversionValueSchemaBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasSkadnetworkConversionValueSchema()) { - mergeSkadnetworkConversionValueSchema(other.getSkadnetworkConversionValueSchema()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent resource where this schema will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent resource where this schema will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent resource where this schema will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The parent resource where this schema will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The parent resource where this schema will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> skadnetworkConversionValueSchemaBuilder_; - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - public boolean hasSkadnetworkConversionValueSchema() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The skadnetworkConversionValueSchema. - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema() { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - return skadnetworkConversionValueSchema_ == null ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } else { - return skadnetworkConversionValueSchemaBuilder_.getMessage(); - } - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSkadnetworkConversionValueSchema(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - skadnetworkConversionValueSchema_ = value; - } else { - skadnetworkConversionValueSchemaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSkadnetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder builderForValue) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - skadnetworkConversionValueSchema_ = builderForValue.build(); - } else { - skadnetworkConversionValueSchemaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeSkadnetworkConversionValueSchema(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - skadnetworkConversionValueSchema_ != null && - skadnetworkConversionValueSchema_ != com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance()) { - getSkadnetworkConversionValueSchemaBuilder().mergeFrom(value); - } else { - skadnetworkConversionValueSchema_ = value; - } - } else { - skadnetworkConversionValueSchemaBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSkadnetworkConversionValueSchema() { - bitField0_ = (bitField0_ & ~0x00000002); - skadnetworkConversionValueSchema_ = null; - if (skadnetworkConversionValueSchemaBuilder_ != null) { - skadnetworkConversionValueSchemaBuilder_.dispose(); - skadnetworkConversionValueSchemaBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder getSkadnetworkConversionValueSchemaBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(); - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder() { - if (skadnetworkConversionValueSchemaBuilder_ != null) { - return skadnetworkConversionValueSchemaBuilder_.getMessageOrBuilder(); - } else { - return skadnetworkConversionValueSchema_ == null ? - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } - } - /** - *
-     * Required. SKAdNetwork conversion value schema to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> - getSkadnetworkConversionValueSchemaFieldBuilder() { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - skadnetworkConversionValueSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( - getSkadnetworkConversionValueSchema(), - getParentForChildren(), - isClean()); - skadnetworkConversionValueSchema_ = null; - } - return skadnetworkConversionValueSchemaBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) - private static final com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSKAdNetworkConversionValueSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequestOrBuilder.java deleted file mode 100644 index 81d102b07328..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSKAdNetworkConversionValueSchemaRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateSKAdNetworkConversionValueSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSKAdNetworkConversionValueSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource where this schema will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource where this schema will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. SKAdNetwork conversion value schema to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - boolean hasSkadnetworkConversionValueSchema(); - /** - *
-   * Required. SKAdNetwork conversion value schema to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The skadnetworkConversionValueSchema. - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema(); - /** - *
-   * Required. SKAdNetwork conversion value schema to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequest.java deleted file mode 100644 index f9f9ab8c3220..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateSearchAds360Link RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} - */ -public final class CreateSearchAds360LinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) - CreateSearchAds360LinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateSearchAds360LinkRequest.newBuilder() to construct. - private CreateSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateSearchAds360LinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateSearchAds360LinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEARCH_ADS_360_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; - /** - *
-   * Required. The SearchAds360Link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the searchAds360Link field is set. - */ - @java.lang.Override - public boolean hasSearchAds360Link() { - return searchAds360Link_ != null; - } - /** - *
-   * Required. The SearchAds360Link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The searchAds360Link. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { - return searchAds360Link_ == null ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } - /** - *
-   * Required. The SearchAds360Link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder() { - return searchAds360Link_ == null ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (searchAds360Link_ != null) { - output.writeMessage(2, getSearchAds360Link()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (searchAds360Link_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSearchAds360Link()); - } - 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.admin.v1alpha.CreateSearchAds360LinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest other = (com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasSearchAds360Link() != other.hasSearchAds360Link()) return false; - if (hasSearchAds360Link()) { - if (!getSearchAds360Link() - .equals(other.getSearchAds360Link())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasSearchAds360Link()) { - hash = (37 * hash) + SEARCH_ADS_360_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSearchAds360Link().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateSearchAds360Link RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - searchAds360Link_ = null; - if (searchAds360LinkBuilder_ != null) { - searchAds360LinkBuilder_.dispose(); - searchAds360LinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest build() { - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest result = new com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.searchAds360Link_ = searchAds360LinkBuilder_ == null - ? searchAds360Link_ - : searchAds360LinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasSearchAds360Link()) { - mergeSearchAds360Link(other.getSearchAds360Link()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSearchAds360LinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> searchAds360LinkBuilder_; - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the searchAds360Link field is set. - */ - public boolean hasSearchAds360Link() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The searchAds360Link. - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { - if (searchAds360LinkBuilder_ == null) { - return searchAds360Link_ == null ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } else { - return searchAds360LinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - searchAds360Link_ = value; - } else { - searchAds360LinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSearchAds360Link( - com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { - if (searchAds360LinkBuilder_ == null) { - searchAds360Link_ = builderForValue.build(); - } else { - searchAds360LinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - searchAds360Link_ != null && - searchAds360Link_ != com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) { - getSearchAds360LinkBuilder().mergeFrom(value); - } else { - searchAds360Link_ = value; - } - } else { - searchAds360LinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSearchAds360Link() { - bitField0_ = (bitField0_ & ~0x00000002); - searchAds360Link_ = null; - if (searchAds360LinkBuilder_ != null) { - searchAds360LinkBuilder_.dispose(); - searchAds360LinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder getSearchAds360LinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSearchAds360LinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder() { - if (searchAds360LinkBuilder_ != null) { - return searchAds360LinkBuilder_.getMessageOrBuilder(); - } else { - return searchAds360Link_ == null ? - com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } - } - /** - *
-     * Required. The SearchAds360Link to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> - getSearchAds360LinkFieldBuilder() { - if (searchAds360LinkBuilder_ == null) { - searchAds360LinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( - getSearchAds360Link(), - getParentForChildren(), - isClean()); - searchAds360Link_ = null; - } - return searchAds360LinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) - private static final com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSearchAds360LinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequestOrBuilder.java deleted file mode 100644 index 2062721d5a44..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSearchAds360LinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateSearchAds360LinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSearchAds360LinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The SearchAds360Link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the searchAds360Link field is set. - */ - boolean hasSearchAds360Link(); - /** - *
-   * Required. The SearchAds360Link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The searchAds360Link. - */ - com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link(); - /** - *
-   * Required. The SearchAds360Link to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java deleted file mode 100644 index 6be5b34dba9f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateSubpropertyEventFilter RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest} - */ -public final class CreateSubpropertyEventFilterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) - CreateSubpropertyEventFilterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateSubpropertyEventFilterRequest.newBuilder() to construct. - private CreateSubpropertyEventFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateSubpropertyEventFilterRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateSubpropertyEventFilterRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The ordinary property for which to create a subproperty event
-   * filter. Format: properties/property_id Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The ordinary property for which to create a subproperty event
-   * filter. Format: properties/property_id Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - /** - *
-   * Required. The subproperty event filter to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subpropertyEventFilter field is set. - */ - @java.lang.Override - public boolean hasSubpropertyEventFilter() { - return subpropertyEventFilter_ != null; - } - /** - *
-   * Required. The subproperty event filter to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The subpropertyEventFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - /** - *
-   * Required. The subproperty event filter to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (subpropertyEventFilter_ != null) { - output.writeMessage(2, getSubpropertyEventFilter()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (subpropertyEventFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubpropertyEventFilter()); - } - 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.admin.v1alpha.CreateSubpropertyEventFilterRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest other = (com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; - if (hasSubpropertyEventFilter()) { - if (!getSubpropertyEventFilter() - .equals(other.getSubpropertyEventFilter())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasSubpropertyEventFilter()) { - hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateSubpropertyEventFilter RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest build() { - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result = new com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subpropertyEventFilter_ = subpropertyEventFilterBuilder_ == null - ? subpropertyEventFilter_ - : subpropertyEventFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasSubpropertyEventFilter()) { - mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSubpropertyEventFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The ordinary property for which to create a subproperty event
-     * filter. Format: properties/property_id Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The ordinary property for which to create a subproperty event
-     * filter. Format: properties/property_id Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The ordinary property for which to create a subproperty event
-     * filter. Format: properties/property_id Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ordinary property for which to create a subproperty event
-     * filter. Format: properties/property_id Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The ordinary property for which to create a subproperty event
-     * filter. Format: properties/property_id Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> subpropertyEventFilterBuilder_; - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subpropertyEventFilter field is set. - */ - public boolean hasSubpropertyEventFilter() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The subpropertyEventFilter. - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - if (subpropertyEventFilterBuilder_ == null) { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } else { - return subpropertyEventFilterBuilder_.getMessage(); - } - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subpropertyEventFilter_ = value; - } else { - subpropertyEventFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilter_ = builderForValue.build(); - } else { - subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - subpropertyEventFilter_ != null && - subpropertyEventFilter_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { - getSubpropertyEventFilterBuilder().mergeFrom(value); - } else { - subpropertyEventFilter_ = value; - } - } else { - subpropertyEventFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSubpropertyEventFilter() { - bitField0_ = (bitField0_ & ~0x00000002); - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder getSubpropertyEventFilterBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSubpropertyEventFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - if (subpropertyEventFilterBuilder_ != null) { - return subpropertyEventFilterBuilder_.getMessageOrBuilder(); - } else { - return subpropertyEventFilter_ == null ? - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - } - /** - *
-     * Required. The subproperty event filter to create.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> - getSubpropertyEventFilterFieldBuilder() { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( - getSubpropertyEventFilter(), - getParentForChildren(), - isClean()); - subpropertyEventFilter_ = null; - } - return subpropertyEventFilterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) - private static final com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSubpropertyEventFilterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java deleted file mode 100644 index cc6650157115..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyEventFilterRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateSubpropertyEventFilterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyEventFilterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The ordinary property for which to create a subproperty event
-   * filter. Format: properties/property_id Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The ordinary property for which to create a subproperty event
-   * filter. Format: properties/property_id Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The subproperty event filter to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subpropertyEventFilter field is set. - */ - boolean hasSubpropertyEventFilter(); - /** - *
-   * Required. The subproperty event filter to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The subpropertyEventFilter. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); - /** - *
-   * Required. The subproperty event filter to create.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java deleted file mode 100644 index 1a016a8b30d4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequest.java +++ /dev/null @@ -1,1049 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for CreateSubproperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyRequest} - */ -public final class CreateSubpropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyRequest) - CreateSubpropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateSubpropertyRequest.newBuilder() to construct. - private CreateSubpropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateSubpropertyRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateSubpropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The ordinary property for which to create a subproperty.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The ordinary property for which to create a subproperty.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBPROPERTY_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.Property subproperty_; - /** - *
-   * Required. The subproperty to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subproperty field is set. - */ - @java.lang.Override - public boolean hasSubproperty() { - return subproperty_ != null; - } - /** - *
-   * Required. The subproperty to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The subproperty. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getSubproperty() { - return subproperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } - /** - *
-   * Required. The subproperty to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { - return subproperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } - - public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - /** - *
-   * Optional. The subproperty event filter to create on an ordinary property.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the subpropertyEventFilter field is set. - */ - @java.lang.Override - public boolean hasSubpropertyEventFilter() { - return subpropertyEventFilter_ != null; - } - /** - *
-   * Optional. The subproperty event filter to create on an ordinary property.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The subpropertyEventFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - /** - *
-   * Optional. The subproperty event filter to create on an ordinary property.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (subproperty_ != null) { - output.writeMessage(2, getSubproperty()); - } - if (subpropertyEventFilter_ != null) { - output.writeMessage(3, getSubpropertyEventFilter()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (subproperty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubproperty()); - } - if (subpropertyEventFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSubpropertyEventFilter()); - } - 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.admin.v1alpha.CreateSubpropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest other = (com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasSubproperty() != other.hasSubproperty()) return false; - if (hasSubproperty()) { - if (!getSubproperty() - .equals(other.getSubproperty())) return false; - } - if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; - if (hasSubpropertyEventFilter()) { - if (!getSubpropertyEventFilter() - .equals(other.getSubpropertyEventFilter())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasSubproperty()) { - hash = (37 * hash) + SUBPROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getSubproperty().hashCode(); - } - if (hasSubpropertyEventFilter()) { - hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateSubproperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyRequest) - com.google.analytics.admin.v1alpha.CreateSubpropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.class, com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - subproperty_ = null; - if (subpropertyBuilder_ != null) { - subpropertyBuilder_.dispose(); - subpropertyBuilder_ = null; - } - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest build() { - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result = new com.google.analytics.admin.v1alpha.CreateSubpropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subproperty_ = subpropertyBuilder_ == null - ? subproperty_ - : subpropertyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.subpropertyEventFilter_ = subpropertyEventFilterBuilder_ == null - ? subpropertyEventFilter_ - : subpropertyEventFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateSubpropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSubpropertyRequest other) { - if (other == com.google.analytics.admin.v1alpha.CreateSubpropertyRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasSubproperty()) { - mergeSubproperty(other.getSubproperty()); - } - if (other.hasSubpropertyEventFilter()) { - mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSubpropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getSubpropertyEventFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The ordinary property for which to create a subproperty.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The ordinary property for which to create a subproperty.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The ordinary property for which to create a subproperty.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ordinary property for which to create a subproperty.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The ordinary property for which to create a subproperty.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.Property subproperty_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> subpropertyBuilder_; - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subproperty field is set. - */ - public boolean hasSubproperty() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The subproperty. - */ - public com.google.analytics.admin.v1alpha.Property getSubproperty() { - if (subpropertyBuilder_ == null) { - return subproperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } else { - return subpropertyBuilder_.getMessage(); - } - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSubproperty(com.google.analytics.admin.v1alpha.Property value) { - if (subpropertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subproperty_ = value; - } else { - subpropertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSubproperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (subpropertyBuilder_ == null) { - subproperty_ = builderForValue.build(); - } else { - subpropertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeSubproperty(com.google.analytics.admin.v1alpha.Property value) { - if (subpropertyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - subproperty_ != null && - subproperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - getSubpropertyBuilder().mergeFrom(value); - } else { - subproperty_ = value; - } - } else { - subpropertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSubproperty() { - bitField0_ = (bitField0_ & ~0x00000002); - subproperty_ = null; - if (subpropertyBuilder_ != null) { - subpropertyBuilder_.dispose(); - subpropertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getSubpropertyBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSubpropertyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { - if (subpropertyBuilder_ != null) { - return subpropertyBuilder_.getMessageOrBuilder(); - } else { - return subproperty_ == null ? - com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } - } - /** - *
-     * Required. The subproperty to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getSubpropertyFieldBuilder() { - if (subpropertyBuilder_ == null) { - subpropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - getSubproperty(), - getParentForChildren(), - isClean()); - subproperty_ = null; - } - return subpropertyBuilder_; - } - - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> subpropertyEventFilterBuilder_; - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the subpropertyEventFilter field is set. - */ - public boolean hasSubpropertyEventFilter() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The subpropertyEventFilter. - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - if (subpropertyEventFilterBuilder_ == null) { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } else { - return subpropertyEventFilterBuilder_.getMessage(); - } - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subpropertyEventFilter_ = value; - } else { - subpropertyEventFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilter_ = builderForValue.build(); - } else { - subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - subpropertyEventFilter_ != null && - subpropertyEventFilter_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { - getSubpropertyEventFilterBuilder().mergeFrom(value); - } else { - subpropertyEventFilter_ = value; - } - } else { - subpropertyEventFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearSubpropertyEventFilter() { - bitField0_ = (bitField0_ & ~0x00000004); - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder getSubpropertyEventFilterBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getSubpropertyEventFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - if (subpropertyEventFilterBuilder_ != null) { - return subpropertyEventFilterBuilder_.getMessageOrBuilder(); - } else { - return subpropertyEventFilter_ == null ? - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - } - /** - *
-     * Optional. The subproperty event filter to create on an ordinary property.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> - getSubpropertyEventFilterFieldBuilder() { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( - getSubpropertyEventFilter(), - getParentForChildren(), - isClean()); - subpropertyEventFilter_ = null; - } - return subpropertyEventFilterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSubpropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyRequest) - private static final com.google.analytics.admin.v1alpha.CreateSubpropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSubpropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java deleted file mode 100644 index 37d8689efa03..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateSubpropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The ordinary property for which to create a subproperty.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The ordinary property for which to create a subproperty.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The subproperty to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subproperty field is set. - */ - boolean hasSubproperty(); - /** - *
-   * Required. The subproperty to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The subproperty. - */ - com.google.analytics.admin.v1alpha.Property getSubproperty(); - /** - *
-   * Required. The subproperty to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder(); - - /** - *
-   * Optional. The subproperty event filter to create on an ordinary property.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the subpropertyEventFilter field is set. - */ - boolean hasSubpropertyEventFilter(); - /** - *
-   * Optional. The subproperty event filter to create on an ordinary property.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The subpropertyEventFilter. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); - /** - *
-   * Optional. The subproperty event filter to create on an ordinary property.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java deleted file mode 100644 index 07e4c07781a7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponse.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for CreateSubproperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyResponse} - */ -public final class CreateSubpropertyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateSubpropertyResponse) - CreateSubpropertyResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateSubpropertyResponse.newBuilder() to construct. - private CreateSubpropertyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateSubpropertyResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateSubpropertyResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.Builder.class); - } - - public static final int SUBPROPERTY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Property subproperty_; - /** - *
-   * The created subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - * @return Whether the subproperty field is set. - */ - @java.lang.Override - public boolean hasSubproperty() { - return subproperty_ != null; - } - /** - *
-   * The created subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - * @return The subproperty. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getSubproperty() { - return subproperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } - /** - *
-   * The created subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { - return subproperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } - - public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - /** - *
-   * The created subproperty event filter.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @return Whether the subpropertyEventFilter field is set. - */ - @java.lang.Override - public boolean hasSubpropertyEventFilter() { - return subpropertyEventFilter_ != null; - } - /** - *
-   * The created subproperty event filter.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @return The subpropertyEventFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - /** - *
-   * The created subproperty event filter.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - - 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 (subproperty_ != null) { - output.writeMessage(1, getSubproperty()); - } - if (subpropertyEventFilter_ != null) { - output.writeMessage(2, getSubpropertyEventFilter()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (subproperty_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubproperty()); - } - if (subpropertyEventFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubpropertyEventFilter()); - } - 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.admin.v1alpha.CreateSubpropertyResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateSubpropertyResponse other = (com.google.analytics.admin.v1alpha.CreateSubpropertyResponse) obj; - - if (hasSubproperty() != other.hasSubproperty()) return false; - if (hasSubproperty()) { - if (!getSubproperty() - .equals(other.getSubproperty())) return false; - } - if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; - if (hasSubpropertyEventFilter()) { - if (!getSubpropertyEventFilter() - .equals(other.getSubpropertyEventFilter())) 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 (hasSubproperty()) { - hash = (37 * hash) + SUBPROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getSubproperty().hashCode(); - } - if (hasSubpropertyEventFilter()) { - hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CreateSubpropertyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for CreateSubproperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateSubpropertyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateSubpropertyResponse) - com.google.analytics.admin.v1alpha.CreateSubpropertyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.class, com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subproperty_ = null; - if (subpropertyBuilder_ != null) { - subpropertyBuilder_.dispose(); - subpropertyBuilder_ = null; - } - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_CreateSubpropertyResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse build() { - com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse buildPartial() { - com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result = new com.google.analytics.admin.v1alpha.CreateSubpropertyResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CreateSubpropertyResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subproperty_ = subpropertyBuilder_ == null - ? subproperty_ - : subpropertyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.subpropertyEventFilter_ = subpropertyEventFilterBuilder_ == null - ? subpropertyEventFilter_ - : subpropertyEventFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateSubpropertyResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateSubpropertyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateSubpropertyResponse other) { - if (other == com.google.analytics.admin.v1alpha.CreateSubpropertyResponse.getDefaultInstance()) return this; - if (other.hasSubproperty()) { - mergeSubproperty(other.getSubproperty()); - } - if (other.hasSubpropertyEventFilter()) { - mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getSubpropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getSubpropertyEventFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Property subproperty_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> subpropertyBuilder_; - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - * @return Whether the subproperty field is set. - */ - public boolean hasSubproperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - * @return The subproperty. - */ - public com.google.analytics.admin.v1alpha.Property getSubproperty() { - if (subpropertyBuilder_ == null) { - return subproperty_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } else { - return subpropertyBuilder_.getMessage(); - } - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - public Builder setSubproperty(com.google.analytics.admin.v1alpha.Property value) { - if (subpropertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subproperty_ = value; - } else { - subpropertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - public Builder setSubproperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (subpropertyBuilder_ == null) { - subproperty_ = builderForValue.build(); - } else { - subpropertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - public Builder mergeSubproperty(com.google.analytics.admin.v1alpha.Property value) { - if (subpropertyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - subproperty_ != null && - subproperty_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - getSubpropertyBuilder().mergeFrom(value); - } else { - subproperty_ = value; - } - } else { - subpropertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - public Builder clearSubproperty() { - bitField0_ = (bitField0_ & ~0x00000001); - subproperty_ = null; - if (subpropertyBuilder_ != null) { - subpropertyBuilder_.dispose(); - subpropertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getSubpropertyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSubpropertyFieldBuilder().getBuilder(); - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder() { - if (subpropertyBuilder_ != null) { - return subpropertyBuilder_.getMessageOrBuilder(); - } else { - return subproperty_ == null ? - com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : subproperty_; - } - } - /** - *
-     * The created subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getSubpropertyFieldBuilder() { - if (subpropertyBuilder_ == null) { - subpropertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - getSubproperty(), - getParentForChildren(), - isClean()); - subproperty_ = null; - } - return subpropertyBuilder_; - } - - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> subpropertyEventFilterBuilder_; - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @return Whether the subpropertyEventFilter field is set. - */ - public boolean hasSubpropertyEventFilter() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @return The subpropertyEventFilter. - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - if (subpropertyEventFilterBuilder_ == null) { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } else { - return subpropertyEventFilterBuilder_.getMessage(); - } - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - public Builder setSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subpropertyEventFilter_ = value; - } else { - subpropertyEventFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - public Builder setSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilter_ = builderForValue.build(); - } else { - subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - public Builder mergeSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - subpropertyEventFilter_ != null && - subpropertyEventFilter_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { - getSubpropertyEventFilterBuilder().mergeFrom(value); - } else { - subpropertyEventFilter_ = value; - } - } else { - subpropertyEventFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - public Builder clearSubpropertyEventFilter() { - bitField0_ = (bitField0_ & ~0x00000002); - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder getSubpropertyEventFilterBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSubpropertyEventFilterFieldBuilder().getBuilder(); - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - if (subpropertyEventFilterBuilder_ != null) { - return subpropertyEventFilterBuilder_.getMessageOrBuilder(); - } else { - return subpropertyEventFilter_ == null ? - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - } - /** - *
-     * The created subproperty event filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> - getSubpropertyEventFilterFieldBuilder() { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( - getSubpropertyEventFilter(), - getParentForChildren(), - isClean()); - subpropertyEventFilter_ = null; - } - return subpropertyEventFilterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateSubpropertyResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateSubpropertyResponse) - private static final com.google.analytics.admin.v1alpha.CreateSubpropertyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateSubpropertyResponse(); - } - - public static com.google.analytics.admin.v1alpha.CreateSubpropertyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateSubpropertyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateSubpropertyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java deleted file mode 100644 index 9fbcba5a163b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateSubpropertyResponseOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateSubpropertyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateSubpropertyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The created subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - * @return Whether the subproperty field is set. - */ - boolean hasSubproperty(); - /** - *
-   * The created subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - * @return The subproperty. - */ - com.google.analytics.admin.v1alpha.Property getSubproperty(); - /** - *
-   * The created subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.Property subproperty = 1; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getSubpropertyOrBuilder(); - - /** - *
-   * The created subproperty event filter.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @return Whether the subpropertyEventFilter field is set. - */ - boolean hasSubpropertyEventFilter(); - /** - *
-   * The created subproperty event filter.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - * @return The subpropertyEventFilter. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); - /** - *
-   * The created subproperty event filter.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 2; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java deleted file mode 100644 index 9752f8a69361..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java +++ /dev/null @@ -1,1567 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A definition for a CustomDimension.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} - */ -public final class CustomDimension extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomDimension) - CustomDimensionOrBuilder { -private static final long serialVersionUID = 0L; - // Use CustomDimension.newBuilder() to construct. - private CustomDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CustomDimension() { - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CustomDimension(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CustomDimension.class, com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); - } - - /** - *
-   * Valid values for the scope of this dimension.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.CustomDimension.DimensionScope} - */ - public enum DimensionScope - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - DIMENSION_SCOPE_UNSPECIFIED(0), - /** - *
-     * Dimension scoped to an event.
-     * 
- * - * EVENT = 1; - */ - EVENT(1), - /** - *
-     * Dimension scoped to a user.
-     * 
- * - * USER = 2; - */ - USER(2), - /** - *
-     * Dimension scoped to eCommerce items
-     * 
- * - * ITEM = 3; - */ - ITEM(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - public static final int DIMENSION_SCOPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Dimension scoped to an event.
-     * 
- * - * EVENT = 1; - */ - public static final int EVENT_VALUE = 1; - /** - *
-     * Dimension scoped to a user.
-     * 
- * - * USER = 2; - */ - public static final int USER_VALUE = 2; - /** - *
-     * Dimension scoped to eCommerce items
-     * 
- * - * ITEM = 3; - */ - public static final int ITEM_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 DimensionScope 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 DimensionScope forNumber(int value) { - switch (value) { - case 0: return DIMENSION_SCOPE_UNSPECIFIED; - case 1: return EVENT; - case 2: return USER; - case 3: return ITEM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DimensionScope> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DimensionScope findValueByNumber(int number) { - return DimensionScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.CustomDimension.getDescriptor().getEnumTypes().get(0); - } - - private static final DimensionScope[] VALUES = values(); - - public static DimensionScope valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DimensionScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomDimension.DimensionScope) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETER_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parameterName_ = ""; - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - @java.lang.Override - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - 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(); - parameterName_ = s; - return s; - } - } - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPE_FIELD_NUMBER = 5; - private int scope_ = 0; - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { - com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED : result; - } - - public static final int DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER = 6; - private boolean disallowAdsPersonalization_ = false; - /** - *
-   * Optional. If set to true, sets this dimension as NPA and excludes it from
-   * ads personalization.
-   *
-   * This is currently only supported by user-scoped custom dimensions.
-   * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The disallowAdsPersonalization. - */ - @java.lang.Override - public boolean getDisallowAdsPersonalization() { - return disallowAdsPersonalization_; - } - - 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(parameterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (scope_ != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.DIMENSION_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, scope_); - } - if (disallowAdsPersonalization_ != false) { - output.writeBool(6, disallowAdsPersonalization_); - } - 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(parameterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (scope_ != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.DIMENSION_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, scope_); - } - if (disallowAdsPersonalization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, disallowAdsPersonalization_); - } - 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.admin.v1alpha.CustomDimension)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CustomDimension other = (com.google.analytics.admin.v1alpha.CustomDimension) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getParameterName() - .equals(other.getParameterName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (scope_ != other.scope_) return false; - if (getDisallowAdsPersonalization() - != other.getDisallowAdsPersonalization()) 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) + PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getParameterName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - hash = (37 * hash) + DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisallowAdsPersonalization()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CustomDimension parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CustomDimension parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CustomDimension prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A definition for a CustomDimension.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomDimension) - com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CustomDimension.class, com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CustomDimension.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - scope_ = 0; - disallowAdsPersonalization_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension build() { - com.google.analytics.admin.v1alpha.CustomDimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension buildPartial() { - com.google.analytics.admin.v1alpha.CustomDimension result = new com.google.analytics.admin.v1alpha.CustomDimension(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CustomDimension result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parameterName_ = parameterName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.scope_ = scope_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.disallowAdsPersonalization_ = disallowAdsPersonalization_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CustomDimension) { - return mergeFrom((com.google.analytics.admin.v1alpha.CustomDimension)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomDimension other) { - if (other == com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - if (other.getDisallowAdsPersonalization() != false) { - setDisallowAdsPersonalization(other.getDisallowAdsPersonalization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parameterName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - scope_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - disallowAdsPersonalization_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.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. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object parameterName_ = ""; - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearParameterName() { - parameterName_ = getDefaultInstance().getParameterName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int scope_ = 0; - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { - com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000010); - scope_ = 0; - onChanged(); - return this; - } - - private boolean disallowAdsPersonalization_ ; - /** - *
-     * Optional. If set to true, sets this dimension as NPA and excludes it from
-     * ads personalization.
-     *
-     * This is currently only supported by user-scoped custom dimensions.
-     * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The disallowAdsPersonalization. - */ - @java.lang.Override - public boolean getDisallowAdsPersonalization() { - return disallowAdsPersonalization_; - } - /** - *
-     * Optional. If set to true, sets this dimension as NPA and excludes it from
-     * ads personalization.
-     *
-     * This is currently only supported by user-scoped custom dimensions.
-     * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The disallowAdsPersonalization to set. - * @return This builder for chaining. - */ - public Builder setDisallowAdsPersonalization(boolean value) { - - disallowAdsPersonalization_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, sets this dimension as NPA and excludes it from
-     * ads personalization.
-     *
-     * This is currently only supported by user-scoped custom dimensions.
-     * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDisallowAdsPersonalization() { - bitField0_ = (bitField0_ & ~0x00000020); - disallowAdsPersonalization_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CustomDimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomDimension) - private static final com.google.analytics.admin.v1alpha.CustomDimension DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomDimension(); - } - - public static com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomDimension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java deleted file mode 100644 index 93c10c7485f1..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface CustomDimensionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomDimension) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - java.lang.String getParameterName(); - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - com.google.protobuf.ByteString - getParameterNameBytes(); - - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope(); - - /** - *
-   * Optional. If set to true, sets this dimension as NPA and excludes it from
-   * ads personalization.
-   *
-   * This is currently only supported by user-scoped custom dimensions.
-   * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The disallowAdsPersonalization. - */ - boolean getDisallowAdsPersonalization(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java deleted file mode 100644 index d936dbabba5d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java +++ /dev/null @@ -1,2319 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A definition for a custom metric.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} - */ -public final class CustomMetric extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomMetric) - CustomMetricOrBuilder { -private static final long serialVersionUID = 0L; - // Use CustomMetric.newBuilder() to construct. - private CustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CustomMetric() { - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - measurementUnit_ = 0; - scope_ = 0; - restrictedMetricType_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CustomMetric(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CustomMetric.class, com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); - } - - /** - *
-   * Possible types of representing the custom metric's value.
-   *
-   * Currency representation may change in the future, requiring a breaking API
-   * change.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit} - */ - public enum MeasurementUnit - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * MeasurementUnit unspecified or missing.
-     * 
- * - * MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - MEASUREMENT_UNIT_UNSPECIFIED(0), - /** - *
-     * This metric uses default units.
-     * 
- * - * STANDARD = 1; - */ - STANDARD(1), - /** - *
-     * This metric measures a currency.
-     * 
- * - * CURRENCY = 2; - */ - CURRENCY(2), - /** - *
-     * This metric measures feet.
-     * 
- * - * FEET = 3; - */ - FEET(3), - /** - *
-     * This metric measures meters.
-     * 
- * - * METERS = 4; - */ - METERS(4), - /** - *
-     * This metric measures kilometers.
-     * 
- * - * KILOMETERS = 5; - */ - KILOMETERS(5), - /** - *
-     * This metric measures miles.
-     * 
- * - * MILES = 6; - */ - MILES(6), - /** - *
-     * This metric measures milliseconds.
-     * 
- * - * MILLISECONDS = 7; - */ - MILLISECONDS(7), - /** - *
-     * This metric measures seconds.
-     * 
- * - * SECONDS = 8; - */ - SECONDS(8), - /** - *
-     * This metric measures minutes.
-     * 
- * - * MINUTES = 9; - */ - MINUTES(9), - /** - *
-     * This metric measures hours.
-     * 
- * - * HOURS = 10; - */ - HOURS(10), - UNRECOGNIZED(-1), - ; - - /** - *
-     * MeasurementUnit unspecified or missing.
-     * 
- * - * MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUE = 0; - /** - *
-     * This metric uses default units.
-     * 
- * - * STANDARD = 1; - */ - public static final int STANDARD_VALUE = 1; - /** - *
-     * This metric measures a currency.
-     * 
- * - * CURRENCY = 2; - */ - public static final int CURRENCY_VALUE = 2; - /** - *
-     * This metric measures feet.
-     * 
- * - * FEET = 3; - */ - public static final int FEET_VALUE = 3; - /** - *
-     * This metric measures meters.
-     * 
- * - * METERS = 4; - */ - public static final int METERS_VALUE = 4; - /** - *
-     * This metric measures kilometers.
-     * 
- * - * KILOMETERS = 5; - */ - public static final int KILOMETERS_VALUE = 5; - /** - *
-     * This metric measures miles.
-     * 
- * - * MILES = 6; - */ - public static final int MILES_VALUE = 6; - /** - *
-     * This metric measures milliseconds.
-     * 
- * - * MILLISECONDS = 7; - */ - public static final int MILLISECONDS_VALUE = 7; - /** - *
-     * This metric measures seconds.
-     * 
- * - * SECONDS = 8; - */ - public static final int SECONDS_VALUE = 8; - /** - *
-     * This metric measures minutes.
-     * 
- * - * MINUTES = 9; - */ - public static final int MINUTES_VALUE = 9; - /** - *
-     * This metric measures hours.
-     * 
- * - * HOURS = 10; - */ - public static final int HOURS_VALUE = 10; - - - 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 MeasurementUnit 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 MeasurementUnit forNumber(int value) { - switch (value) { - case 0: return MEASUREMENT_UNIT_UNSPECIFIED; - case 1: return STANDARD; - case 2: return CURRENCY; - case 3: return FEET; - case 4: return METERS; - case 5: return KILOMETERS; - case 6: return MILES; - case 7: return MILLISECONDS; - case 8: return SECONDS; - case 9: return MINUTES; - case 10: return HOURS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MeasurementUnit> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MeasurementUnit findValueByNumber(int number) { - return MeasurementUnit.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(0); - } - - private static final MeasurementUnit[] VALUES = values(); - - public static MeasurementUnit valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MeasurementUnit(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit) - } - - /** - *
-   * The scope of this metric.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MetricScope} - */ - public enum MetricScope - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * METRIC_SCOPE_UNSPECIFIED = 0; - */ - METRIC_SCOPE_UNSPECIFIED(0), - /** - *
-     * Metric scoped to an event.
-     * 
- * - * EVENT = 1; - */ - EVENT(1), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * METRIC_SCOPE_UNSPECIFIED = 0; - */ - public static final int METRIC_SCOPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Metric scoped to an event.
-     * 
- * - * EVENT = 1; - */ - public static final int EVENT_VALUE = 1; - - - 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 MetricScope 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 MetricScope forNumber(int value) { - switch (value) { - case 0: return METRIC_SCOPE_UNSPECIFIED; - case 1: return EVENT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MetricScope> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MetricScope findValueByNumber(int number) { - return MetricScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(1); - } - - private static final MetricScope[] VALUES = values(); - - public static MetricScope valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MetricScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MetricScope) - } - - /** - *
-   * Labels that mark the data in this custom metric as data that should be
-   * restricted to specific users.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType} - */ - public enum RestrictedMetricType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Type unknown or unspecified.
-     * 
- * - * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - RESTRICTED_METRIC_TYPE_UNSPECIFIED(0), - /** - *
-     * Metric reports cost data.
-     * 
- * - * COST_DATA = 1; - */ - COST_DATA(1), - /** - *
-     * Metric reports revenue data.
-     * 
- * - * REVENUE_DATA = 2; - */ - REVENUE_DATA(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Type unknown or unspecified.
-     * 
- * - * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - public static final int RESTRICTED_METRIC_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Metric reports cost data.
-     * 
- * - * COST_DATA = 1; - */ - public static final int COST_DATA_VALUE = 1; - /** - *
-     * Metric reports revenue data.
-     * 
- * - * REVENUE_DATA = 2; - */ - public static final int REVENUE_DATA_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RestrictedMetricType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RestrictedMetricType forNumber(int value) { - switch (value) { - case 0: return RESTRICTED_METRIC_TYPE_UNSPECIFIED; - case 1: return COST_DATA; - case 2: return REVENUE_DATA; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RestrictedMetricType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RestrictedMetricType findValueByNumber(int number) { - return RestrictedMetricType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.CustomMetric.getDescriptor().getEnumTypes().get(2); - } - - private static final RestrictedMetricType[] VALUES = values(); - - public static RestrictedMetricType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RestrictedMetricType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETER_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parameterName_ = ""; - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - @java.lang.Override - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - 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(); - parameterName_ = s; - return s; - } - } - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEASUREMENT_UNIT_FIELD_NUMBER = 5; - private int measurementUnit_ = 0; - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for measurementUnit. - */ - @java.lang.Override public int getMeasurementUnitValue() { - return measurementUnit_; - } - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementUnit. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { - com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.forNumber(measurementUnit_); - return result == null ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED : result; - } - - public static final int SCOPE_FIELD_NUMBER = 6; - private int scope_ = 0; - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { - com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED : result; - } - - public static final int RESTRICTED_METRIC_TYPE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List restrictedMetricType_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType> restrictedMetricType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>() { - public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType convert(java.lang.Integer from) { - com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType result = com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType.forNumber(from); - return result == null ? com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType.UNRECOGNIZED : result; - } - }; - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the restrictedMetricType. - */ - @java.lang.Override - public java.util.List getRestrictedMetricTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>(restrictedMetricType_, restrictedMetricType_converter_); - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of restrictedMetricType. - */ - @java.lang.Override - public int getRestrictedMetricTypeCount() { - return restrictedMetricType_.size(); - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The restrictedMetricType at the given index. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType getRestrictedMetricType(int index) { - return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for restrictedMetricType. - */ - @java.lang.Override - public java.util.List - getRestrictedMetricTypeValueList() { - return restrictedMetricType_; - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricType at the given index. - */ - @java.lang.Override - public int getRestrictedMetricTypeValue(int index) { - return restrictedMetricType_.get(index); - } - private int restrictedMetricTypeMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - 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 { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (measurementUnit_ != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.MEASUREMENT_UNIT_UNSPECIFIED.getNumber()) { - output.writeEnum(5, measurementUnit_); - } - if (scope_ != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(6, scope_); - } - if (getRestrictedMetricTypeList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(restrictedMetricTypeMemoizedSerializedSize); - } - for (int i = 0; i < restrictedMetricType_.size(); i++) { - output.writeEnumNoTag(restrictedMetricType_.get(i)); - } - 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(parameterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (measurementUnit_ != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.MEASUREMENT_UNIT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, measurementUnit_); - } - if (scope_ != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, scope_); - } - { - int dataSize = 0; - for (int i = 0; i < restrictedMetricType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(restrictedMetricType_.get(i)); - } - size += dataSize; - if (!getRestrictedMetricTypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }restrictedMetricTypeMemoizedSerializedSize = dataSize; - } - size += 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.admin.v1alpha.CustomMetric)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CustomMetric other = (com.google.analytics.admin.v1alpha.CustomMetric) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getParameterName() - .equals(other.getParameterName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (measurementUnit_ != other.measurementUnit_) return false; - if (scope_ != other.scope_) return false; - if (!restrictedMetricType_.equals(other.restrictedMetricType_)) return false; - if (!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) + PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getParameterName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + MEASUREMENT_UNIT_FIELD_NUMBER; - hash = (53 * hash) + measurementUnit_; - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - if (getRestrictedMetricTypeCount() > 0) { - hash = (37 * hash) + RESTRICTED_METRIC_TYPE_FIELD_NUMBER; - hash = (53 * hash) + restrictedMetricType_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.CustomMetric parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CustomMetric parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.CustomMetric prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A definition for a custom metric.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomMetric) - com.google.analytics.admin.v1alpha.CustomMetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CustomMetric.class, com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CustomMetric.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - measurementUnit_ = 0; - scope_ = 0; - restrictedMetricType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric build() { - com.google.analytics.admin.v1alpha.CustomMetric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric buildPartial() { - com.google.analytics.admin.v1alpha.CustomMetric result = new com.google.analytics.admin.v1alpha.CustomMetric(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.CustomMetric result) { - if (((bitField0_ & 0x00000040) != 0)) { - restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.restrictedMetricType_ = restrictedMetricType_; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.CustomMetric result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parameterName_ = parameterName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.measurementUnit_ = measurementUnit_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.scope_ = scope_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CustomMetric) { - return mergeFrom((com.google.analytics.admin.v1alpha.CustomMetric)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomMetric other) { - if (other == com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.measurementUnit_ != 0) { - setMeasurementUnitValue(other.getMeasurementUnitValue()); - } - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - if (!other.restrictedMetricType_.isEmpty()) { - if (restrictedMetricType_.isEmpty()) { - restrictedMetricType_ = other.restrictedMetricType_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.addAll(other.restrictedMetricType_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parameterName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - measurementUnit_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - scope_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 64: { - int tmpRaw = input.readEnum(); - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(tmpRaw); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.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. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object parameterName_ = ""; - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearParameterName() { - parameterName_ = getDefaultInstance().getParameterName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int measurementUnit_ = 0; - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for measurementUnit. - */ - @java.lang.Override public int getMeasurementUnitValue() { - return measurementUnit_; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for measurementUnit to set. - * @return This builder for chaining. - */ - public Builder setMeasurementUnitValue(int value) { - measurementUnit_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementUnit. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { - com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.forNumber(measurementUnit_); - return result == null ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED : result; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The measurementUnit to set. - * @return This builder for chaining. - */ - public Builder setMeasurementUnit(com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - measurementUnit_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMeasurementUnit() { - bitField0_ = (bitField0_ & ~0x00000010); - measurementUnit_ = 0; - onChanged(); - return this; - } - - private int scope_ = 0; - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { - com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.analytics.admin.v1alpha.CustomMetric.MetricScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000020); - scope_ = 0; - onChanged(); - return this; - } - - private java.util.List restrictedMetricType_ = - java.util.Collections.emptyList(); - private void ensureRestrictedMetricTypeIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - restrictedMetricType_ = new java.util.ArrayList(restrictedMetricType_); - bitField0_ |= 0x00000040; - } - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the restrictedMetricType. - */ - public java.util.List getRestrictedMetricTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType>(restrictedMetricType_, restrictedMetricType_converter_); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of restrictedMetricType. - */ - public int getRestrictedMetricTypeCount() { - return restrictedMetricType_.size(); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The restrictedMetricType at the given index. - */ - public com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType getRestrictedMetricType(int index) { - return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The restrictedMetricType to set. - * @return This builder for chaining. - */ - public Builder setRestrictedMetricType( - int index, com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addRestrictedMetricType(com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedMetricType( - java.lang.Iterable values) { - ensureRestrictedMetricTypeIsMutable(); - for (com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType value : values) { - restrictedMetricType_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRestrictedMetricType() { - restrictedMetricType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for restrictedMetricType. - */ - public java.util.List - getRestrictedMetricTypeValueList() { - return java.util.Collections.unmodifiableList(restrictedMetricType_); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricType at the given index. - */ - public int getRestrictedMetricTypeValue(int index) { - return restrictedMetricType_.get(index); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for restrictedMetricType to set. - * @return This builder for chaining. - */ - public Builder setRestrictedMetricTypeValue( - int index, int value) { - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addRestrictedMetricTypeValue(int value) { - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(value); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The enum numeric values on the wire for restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedMetricTypeValue( - java.lang.Iterable values) { - ensureRestrictedMetricTypeIsMutable(); - for (int value : values) { - restrictedMetricType_.add(value); - } - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CustomMetric) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomMetric) - private static final com.google.analytics.admin.v1alpha.CustomMetric DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomMetric(); - } - - public static com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomMetric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java deleted file mode 100644 index 94c63934fc4d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java +++ /dev/null @@ -1,210 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface CustomMetricOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomMetric) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - java.lang.String getParameterName(); - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - com.google.protobuf.ByteString - getParameterNameBytes(); - - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for measurementUnit. - */ - int getMeasurementUnitValue(); - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementUnit. - */ - com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit(); - - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope(); - - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the restrictedMetricType. - */ - java.util.List getRestrictedMetricTypeList(); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of restrictedMetricType. - */ - int getRestrictedMetricTypeCount(); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The restrictedMetricType at the given index. - */ - com.google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType getRestrictedMetricType(int index); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for restrictedMetricType. - */ - java.util.List - getRestrictedMetricTypeValueList(); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricType at the given index. - */ - int getRestrictedMetricTypeValue(int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java deleted file mode 100644 index 3dffb7e63137..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRedactionSettings.java +++ /dev/null @@ -1,1079 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Settings for client-side data redaction. Singleton resource under a Web
- * Stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataRedactionSettings} - */ -public final class DataRedactionSettings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataRedactionSettings) - DataRedactionSettingsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataRedactionSettings.newBuilder() to construct. - private DataRedactionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataRedactionSettings() { - name_ = ""; - queryParameterKeys_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataRedactionSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataRedactionSettings.class, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Name of this Data Redaction Settings resource.
-   * Format:
-   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
-   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Name of this Data Redaction Settings resource.
-   * Format:
-   * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
-   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_REDACTION_ENABLED_FIELD_NUMBER = 2; - private boolean emailRedactionEnabled_ = false; - /** - *
-   * If enabled, any event parameter or user property values that look like an
-   * email will be redacted.
-   * 
- * - * bool email_redaction_enabled = 2; - * @return The emailRedactionEnabled. - */ - @java.lang.Override - public boolean getEmailRedactionEnabled() { - return emailRedactionEnabled_; - } - - public static final int QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER = 3; - private boolean queryParameterRedactionEnabled_ = false; - /** - *
-   * Query Parameter redaction removes the key and value portions of a
-   * query parameter if it is in the configured set of query parameters.
-   *
-   * If enabled, URL query replacement logic will be run for the Stream. Any
-   * query parameters defined in query_parameter_keys will be redacted.
-   * 
- * - * bool query_parameter_redaction_enabled = 3; - * @return The queryParameterRedactionEnabled. - */ - @java.lang.Override - public boolean getQueryParameterRedactionEnabled() { - return queryParameterRedactionEnabled_; - } - - public static final int QUERY_PARAMETER_KEYS_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList queryParameterKeys_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * The query parameter keys to apply redaction logic to if present in the URL.
-   * Query parameter matching is case-insensitive.
-   *
-   * Must contain at least one element if query_parameter_replacement_enabled
-   * is true. Keys cannot contain commas.
-   * 
- * - * repeated string query_parameter_keys = 4; - * @return A list containing the queryParameterKeys. - */ - public com.google.protobuf.ProtocolStringList - getQueryParameterKeysList() { - return queryParameterKeys_; - } - /** - *
-   * The query parameter keys to apply redaction logic to if present in the URL.
-   * Query parameter matching is case-insensitive.
-   *
-   * Must contain at least one element if query_parameter_replacement_enabled
-   * is true. Keys cannot contain commas.
-   * 
- * - * repeated string query_parameter_keys = 4; - * @return The count of queryParameterKeys. - */ - public int getQueryParameterKeysCount() { - return queryParameterKeys_.size(); - } - /** - *
-   * The query parameter keys to apply redaction logic to if present in the URL.
-   * Query parameter matching is case-insensitive.
-   *
-   * Must contain at least one element if query_parameter_replacement_enabled
-   * is true. Keys cannot contain commas.
-   * 
- * - * repeated string query_parameter_keys = 4; - * @param index The index of the element to return. - * @return The queryParameterKeys at the given index. - */ - public java.lang.String getQueryParameterKeys(int index) { - return queryParameterKeys_.get(index); - } - /** - *
-   * The query parameter keys to apply redaction logic to if present in the URL.
-   * Query parameter matching is case-insensitive.
-   *
-   * Must contain at least one element if query_parameter_replacement_enabled
-   * is true. Keys cannot contain commas.
-   * 
- * - * repeated string query_parameter_keys = 4; - * @param index The index of the value to return. - * @return The bytes of the queryParameterKeys at the given index. - */ - public com.google.protobuf.ByteString - getQueryParameterKeysBytes(int index) { - return queryParameterKeys_.getByteString(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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (emailRedactionEnabled_ != false) { - output.writeBool(2, emailRedactionEnabled_); - } - if (queryParameterRedactionEnabled_ != false) { - output.writeBool(3, queryParameterRedactionEnabled_); - } - for (int i = 0; i < queryParameterKeys_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, queryParameterKeys_.getRaw(i)); - } - 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 (emailRedactionEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, emailRedactionEnabled_); - } - if (queryParameterRedactionEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, queryParameterRedactionEnabled_); - } - { - int dataSize = 0; - for (int i = 0; i < queryParameterKeys_.size(); i++) { - dataSize += computeStringSizeNoTag(queryParameterKeys_.getRaw(i)); - } - size += dataSize; - size += 1 * getQueryParameterKeysList().size(); - } - 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.admin.v1alpha.DataRedactionSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DataRedactionSettings other = (com.google.analytics.admin.v1alpha.DataRedactionSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getEmailRedactionEnabled() - != other.getEmailRedactionEnabled()) return false; - if (getQueryParameterRedactionEnabled() - != other.getQueryParameterRedactionEnabled()) return false; - if (!getQueryParameterKeysList() - .equals(other.getQueryParameterKeysList())) 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) + EMAIL_REDACTION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getEmailRedactionEnabled()); - hash = (37 * hash) + QUERY_PARAMETER_REDACTION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getQueryParameterRedactionEnabled()); - if (getQueryParameterKeysCount() > 0) { - hash = (37 * hash) + QUERY_PARAMETER_KEYS_FIELD_NUMBER; - hash = (53 * hash) + getQueryParameterKeysList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataRedactionSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataRedactionSettings 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; - } - /** - *
-   * Settings for client-side data redaction. Singleton resource under a Web
-   * Stream.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataRedactionSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataRedactionSettings) - com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataRedactionSettings.class, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DataRedactionSettings.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - emailRedactionEnabled_ = false; - queryParameterRedactionEnabled_ = false; - queryParameterKeys_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettings build() { - com.google.analytics.admin.v1alpha.DataRedactionSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettings buildPartial() { - com.google.analytics.admin.v1alpha.DataRedactionSettings result = new com.google.analytics.admin.v1alpha.DataRedactionSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DataRedactionSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.emailRedactionEnabled_ = emailRedactionEnabled_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.queryParameterRedactionEnabled_ = queryParameterRedactionEnabled_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - queryParameterKeys_.makeImmutable(); - result.queryParameterKeys_ = queryParameterKeys_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataRedactionSettings) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataRedactionSettings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataRedactionSettings other) { - if (other == com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getEmailRedactionEnabled() != false) { - setEmailRedactionEnabled(other.getEmailRedactionEnabled()); - } - if (other.getQueryParameterRedactionEnabled() != false) { - setQueryParameterRedactionEnabled(other.getQueryParameterRedactionEnabled()); - } - if (!other.queryParameterKeys_.isEmpty()) { - if (queryParameterKeys_.isEmpty()) { - queryParameterKeys_ = other.queryParameterKeys_; - bitField0_ |= 0x00000008; - } else { - ensureQueryParameterKeysIsMutable(); - queryParameterKeys_.addAll(other.queryParameterKeys_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - emailRedactionEnabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - queryParameterRedactionEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureQueryParameterKeysIsMutable(); - queryParameterKeys_.add(s); - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Name of this Data Redaction Settings resource.
-     * Format:
-     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Name of this Data Redaction Settings resource.
-     * Format:
-     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Name of this Data Redaction Settings resource.
-     * Format:
-     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Name of this Data Redaction Settings resource.
-     * Format:
-     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.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. Name of this Data Redaction Settings resource.
-     * Format:
-     * properties/{property_id}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean emailRedactionEnabled_ ; - /** - *
-     * If enabled, any event parameter or user property values that look like an
-     * email will be redacted.
-     * 
- * - * bool email_redaction_enabled = 2; - * @return The emailRedactionEnabled. - */ - @java.lang.Override - public boolean getEmailRedactionEnabled() { - return emailRedactionEnabled_; - } - /** - *
-     * If enabled, any event parameter or user property values that look like an
-     * email will be redacted.
-     * 
- * - * bool email_redaction_enabled = 2; - * @param value The emailRedactionEnabled to set. - * @return This builder for chaining. - */ - public Builder setEmailRedactionEnabled(boolean value) { - - emailRedactionEnabled_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * If enabled, any event parameter or user property values that look like an
-     * email will be redacted.
-     * 
- * - * bool email_redaction_enabled = 2; - * @return This builder for chaining. - */ - public Builder clearEmailRedactionEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); - emailRedactionEnabled_ = false; - onChanged(); - return this; - } - - private boolean queryParameterRedactionEnabled_ ; - /** - *
-     * Query Parameter redaction removes the key and value portions of a
-     * query parameter if it is in the configured set of query parameters.
-     *
-     * If enabled, URL query replacement logic will be run for the Stream. Any
-     * query parameters defined in query_parameter_keys will be redacted.
-     * 
- * - * bool query_parameter_redaction_enabled = 3; - * @return The queryParameterRedactionEnabled. - */ - @java.lang.Override - public boolean getQueryParameterRedactionEnabled() { - return queryParameterRedactionEnabled_; - } - /** - *
-     * Query Parameter redaction removes the key and value portions of a
-     * query parameter if it is in the configured set of query parameters.
-     *
-     * If enabled, URL query replacement logic will be run for the Stream. Any
-     * query parameters defined in query_parameter_keys will be redacted.
-     * 
- * - * bool query_parameter_redaction_enabled = 3; - * @param value The queryParameterRedactionEnabled to set. - * @return This builder for chaining. - */ - public Builder setQueryParameterRedactionEnabled(boolean value) { - - queryParameterRedactionEnabled_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Query Parameter redaction removes the key and value portions of a
-     * query parameter if it is in the configured set of query parameters.
-     *
-     * If enabled, URL query replacement logic will be run for the Stream. Any
-     * query parameters defined in query_parameter_keys will be redacted.
-     * 
- * - * bool query_parameter_redaction_enabled = 3; - * @return This builder for chaining. - */ - public Builder clearQueryParameterRedactionEnabled() { - bitField0_ = (bitField0_ & ~0x00000004); - queryParameterRedactionEnabled_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList queryParameterKeys_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureQueryParameterKeysIsMutable() { - if (!queryParameterKeys_.isModifiable()) { - queryParameterKeys_ = new com.google.protobuf.LazyStringArrayList(queryParameterKeys_); - } - bitField0_ |= 0x00000008; - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @return A list containing the queryParameterKeys. - */ - public com.google.protobuf.ProtocolStringList - getQueryParameterKeysList() { - queryParameterKeys_.makeImmutable(); - return queryParameterKeys_; - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @return The count of queryParameterKeys. - */ - public int getQueryParameterKeysCount() { - return queryParameterKeys_.size(); - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @param index The index of the element to return. - * @return The queryParameterKeys at the given index. - */ - public java.lang.String getQueryParameterKeys(int index) { - return queryParameterKeys_.get(index); - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @param index The index of the value to return. - * @return The bytes of the queryParameterKeys at the given index. - */ - public com.google.protobuf.ByteString - getQueryParameterKeysBytes(int index) { - return queryParameterKeys_.getByteString(index); - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @param index The index to set the value at. - * @param value The queryParameterKeys to set. - * @return This builder for chaining. - */ - public Builder setQueryParameterKeys( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureQueryParameterKeysIsMutable(); - queryParameterKeys_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @param value The queryParameterKeys to add. - * @return This builder for chaining. - */ - public Builder addQueryParameterKeys( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureQueryParameterKeysIsMutable(); - queryParameterKeys_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @param values The queryParameterKeys to add. - * @return This builder for chaining. - */ - public Builder addAllQueryParameterKeys( - java.lang.Iterable values) { - ensureQueryParameterKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, queryParameterKeys_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @return This builder for chaining. - */ - public Builder clearQueryParameterKeys() { - queryParameterKeys_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; - onChanged(); - return this; - } - /** - *
-     * The query parameter keys to apply redaction logic to if present in the URL.
-     * Query parameter matching is case-insensitive.
-     *
-     * Must contain at least one element if query_parameter_replacement_enabled
-     * is true. Keys cannot contain commas.
-     * 
- * - * repeated string query_parameter_keys = 4; - * @param value The bytes of the queryParameterKeys to add. - * @return This builder for chaining. - */ - public Builder addQueryParameterKeysBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureQueryParameterKeysIsMutable(); - queryParameterKeys_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataRedactionSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataRedactionSettings) - private static final com.google.analytics.admin.v1alpha.DataRedactionSettings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataRedactionSettings(); - } - - public static com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataRedactionSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java deleted file mode 100644 index 11cc302036a5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java +++ /dev/null @@ -1,995 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Settings values for data retention. This is a singleton resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataRetentionSettings} - */ -public final class DataRetentionSettings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataRetentionSettings) - DataRetentionSettingsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataRetentionSettings.newBuilder() to construct. - private DataRetentionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataRetentionSettings() { - name_ = ""; - eventDataRetention_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataRetentionSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataRetentionSettings.class, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder.class); - } - - /** - *
-   * Valid values for the data retention duration.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration} - */ - public enum RetentionDuration - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Data retention time duration is not specified.
-     * 
- * - * RETENTION_DURATION_UNSPECIFIED = 0; - */ - RETENTION_DURATION_UNSPECIFIED(0), - /** - *
-     * The data retention time duration is 2 months.
-     * 
- * - * TWO_MONTHS = 1; - */ - TWO_MONTHS(1), - /** - *
-     * The data retention time duration is 14 months.
-     * 
- * - * FOURTEEN_MONTHS = 3; - */ - FOURTEEN_MONTHS(3), - /** - *
-     * The data retention time duration is 26 months.
-     * Available to 360 properties only.
-     * 
- * - * TWENTY_SIX_MONTHS = 4; - */ - TWENTY_SIX_MONTHS(4), - /** - *
-     * The data retention time duration is 38 months.
-     * Available to 360 properties only.
-     * 
- * - * THIRTY_EIGHT_MONTHS = 5; - */ - THIRTY_EIGHT_MONTHS(5), - /** - *
-     * The data retention time duration is 50 months.
-     * Available to 360 properties only.
-     * 
- * - * FIFTY_MONTHS = 6; - */ - FIFTY_MONTHS(6), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Data retention time duration is not specified.
-     * 
- * - * RETENTION_DURATION_UNSPECIFIED = 0; - */ - public static final int RETENTION_DURATION_UNSPECIFIED_VALUE = 0; - /** - *
-     * The data retention time duration is 2 months.
-     * 
- * - * TWO_MONTHS = 1; - */ - public static final int TWO_MONTHS_VALUE = 1; - /** - *
-     * The data retention time duration is 14 months.
-     * 
- * - * FOURTEEN_MONTHS = 3; - */ - public static final int FOURTEEN_MONTHS_VALUE = 3; - /** - *
-     * The data retention time duration is 26 months.
-     * Available to 360 properties only.
-     * 
- * - * TWENTY_SIX_MONTHS = 4; - */ - public static final int TWENTY_SIX_MONTHS_VALUE = 4; - /** - *
-     * The data retention time duration is 38 months.
-     * Available to 360 properties only.
-     * 
- * - * THIRTY_EIGHT_MONTHS = 5; - */ - public static final int THIRTY_EIGHT_MONTHS_VALUE = 5; - /** - *
-     * The data retention time duration is 50 months.
-     * Available to 360 properties only.
-     * 
- * - * FIFTY_MONTHS = 6; - */ - public static final int FIFTY_MONTHS_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RetentionDuration 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 RetentionDuration forNumber(int value) { - switch (value) { - case 0: return RETENTION_DURATION_UNSPECIFIED; - case 1: return TWO_MONTHS; - case 3: return FOURTEEN_MONTHS; - case 4: return TWENTY_SIX_MONTHS; - case 5: return THIRTY_EIGHT_MONTHS; - case 6: return FIFTY_MONTHS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RetentionDuration> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RetentionDuration findValueByNumber(int number) { - return RetentionDuration.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDescriptor().getEnumTypes().get(0); - } - - private static final RetentionDuration[] VALUES = values(); - - public static RetentionDuration valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RetentionDuration(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_DATA_RETENTION_FIELD_NUMBER = 2; - private int eventDataRetention_ = 0; - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The enum numeric value on the wire for eventDataRetention. - */ - @java.lang.Override public int getEventDataRetentionValue() { - return eventDataRetention_; - } - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The eventDataRetention. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration getEventDataRetention() { - com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.forNumber(eventDataRetention_); - return result == null ? com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.UNRECOGNIZED : result; - } - - public static final int RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER = 3; - private boolean resetUserDataOnNewActivity_ = false; - /** - *
-   * If true, reset the retention period for the user identifier with every
-   * event from that user.
-   * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return The resetUserDataOnNewActivity. - */ - @java.lang.Override - public boolean getResetUserDataOnNewActivity() { - return resetUserDataOnNewActivity_; - } - - 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 (eventDataRetention_ != com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.RETENTION_DURATION_UNSPECIFIED.getNumber()) { - output.writeEnum(2, eventDataRetention_); - } - if (resetUserDataOnNewActivity_ != false) { - output.writeBool(3, resetUserDataOnNewActivity_); - } - 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 (eventDataRetention_ != com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.RETENTION_DURATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, eventDataRetention_); - } - if (resetUserDataOnNewActivity_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, resetUserDataOnNewActivity_); - } - 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.admin.v1alpha.DataRetentionSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DataRetentionSettings other = (com.google.analytics.admin.v1alpha.DataRetentionSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (eventDataRetention_ != other.eventDataRetention_) return false; - if (getResetUserDataOnNewActivity() - != other.getResetUserDataOnNewActivity()) 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) + EVENT_DATA_RETENTION_FIELD_NUMBER; - hash = (53 * hash) + eventDataRetention_; - hash = (37 * hash) + RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getResetUserDataOnNewActivity()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataRetentionSettings 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; - } - /** - *
-   * Settings values for data retention. This is a singleton resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataRetentionSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataRetentionSettings) - com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataRetentionSettings.class, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - eventDataRetention_ = 0; - resetUserDataOnNewActivity_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings build() { - com.google.analytics.admin.v1alpha.DataRetentionSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings buildPartial() { - com.google.analytics.admin.v1alpha.DataRetentionSettings result = new com.google.analytics.admin.v1alpha.DataRetentionSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DataRetentionSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventDataRetention_ = eventDataRetention_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.resetUserDataOnNewActivity_ = resetUserDataOnNewActivity_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataRetentionSettings) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataRetentionSettings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataRetentionSettings other) { - if (other == com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.eventDataRetention_ != 0) { - setEventDataRetentionValue(other.getEventDataRetentionValue()); - } - if (other.getResetUserDataOnNewActivity() != false) { - setResetUserDataOnNewActivity(other.getResetUserDataOnNewActivity()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - eventDataRetention_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - resetUserDataOnNewActivity_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.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. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int eventDataRetention_ = 0; - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The enum numeric value on the wire for eventDataRetention. - */ - @java.lang.Override public int getEventDataRetentionValue() { - return eventDataRetention_; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param value The enum numeric value on the wire for eventDataRetention to set. - * @return This builder for chaining. - */ - public Builder setEventDataRetentionValue(int value) { - eventDataRetention_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The eventDataRetention. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration getEventDataRetention() { - com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.forNumber(eventDataRetention_); - return result == null ? com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.UNRECOGNIZED : result; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param value The eventDataRetention to set. - * @return This builder for chaining. - */ - public Builder setEventDataRetention(com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - eventDataRetention_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return This builder for chaining. - */ - public Builder clearEventDataRetention() { - bitField0_ = (bitField0_ & ~0x00000002); - eventDataRetention_ = 0; - onChanged(); - return this; - } - - private boolean resetUserDataOnNewActivity_ ; - /** - *
-     * If true, reset the retention period for the user identifier with every
-     * event from that user.
-     * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return The resetUserDataOnNewActivity. - */ - @java.lang.Override - public boolean getResetUserDataOnNewActivity() { - return resetUserDataOnNewActivity_; - } - /** - *
-     * If true, reset the retention period for the user identifier with every
-     * event from that user.
-     * 
- * - * bool reset_user_data_on_new_activity = 3; - * @param value The resetUserDataOnNewActivity to set. - * @return This builder for chaining. - */ - public Builder setResetUserDataOnNewActivity(boolean value) { - - resetUserDataOnNewActivity_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * If true, reset the retention period for the user identifier with every
-     * event from that user.
-     * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return This builder for chaining. - */ - public Builder clearResetUserDataOnNewActivity() { - bitField0_ = (bitField0_ & ~0x00000004); - resetUserDataOnNewActivity_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataRetentionSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataRetentionSettings) - private static final com.google.analytics.admin.v1alpha.DataRetentionSettings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataRetentionSettings(); - } - - public static com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataRetentionSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java deleted file mode 100644 index a11cb1f6330d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface DataRetentionSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataRetentionSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The enum numeric value on the wire for eventDataRetention. - */ - int getEventDataRetentionValue(); - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The eventDataRetention. - */ - com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration getEventDataRetention(); - - /** - *
-   * If true, reset the retention period for the user identifier with every
-   * event from that user.
-   * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return The resetUserDataOnNewActivity. - */ - boolean getResetUserDataOnNewActivity(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java deleted file mode 100644 index e51c3ca584ff..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java +++ /dev/null @@ -1,1024 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing data sharing settings of a Google Analytics
- * account.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataSharingSettings} - */ -public final class DataSharingSettings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataSharingSettings) - DataSharingSettingsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataSharingSettings.newBuilder() to construct. - private DataSharingSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataSharingSettings() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataSharingSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataSharingSettings.class, com.google.analytics.admin.v1alpha.DataSharingSettings.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER = 2; - private boolean sharingWithGoogleSupportEnabled_ = false; - /** - *
-   * Allows Google support to access the data in order to help troubleshoot
-   * issues.
-   * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return The sharingWithGoogleSupportEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleSupportEnabled() { - return sharingWithGoogleSupportEnabled_; - } - - public static final int SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER = 3; - private boolean sharingWithGoogleAssignedSalesEnabled_ = false; - /** - *
-   * Allows Google sales teams that are assigned to the customer to access the
-   * data in order to suggest configuration changes to improve results.
-   * Sales team restrictions still apply when enabled.
-   * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return The sharingWithGoogleAssignedSalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAssignedSalesEnabled() { - return sharingWithGoogleAssignedSalesEnabled_; - } - - public static final int SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER = 4; - private boolean sharingWithGoogleAnySalesEnabled_ = false; - /** - *
-   * Allows any of Google sales to access the data in order to suggest
-   * configuration changes to improve results.
-   * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return The sharingWithGoogleAnySalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAnySalesEnabled() { - return sharingWithGoogleAnySalesEnabled_; - } - - public static final int SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER = 5; - private boolean sharingWithGoogleProductsEnabled_ = false; - /** - *
-   * Allows Google to use the data to improve other Google products or services.
-   * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return The sharingWithGoogleProductsEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleProductsEnabled() { - return sharingWithGoogleProductsEnabled_; - } - - public static final int SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER = 6; - private boolean sharingWithOthersEnabled_ = false; - /** - *
-   * Allows Google to share the data anonymously in aggregate form with others.
-   * 
- * - * bool sharing_with_others_enabled = 6; - * @return The sharingWithOthersEnabled. - */ - @java.lang.Override - public boolean getSharingWithOthersEnabled() { - return sharingWithOthersEnabled_; - } - - 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 (sharingWithGoogleSupportEnabled_ != false) { - output.writeBool(2, sharingWithGoogleSupportEnabled_); - } - if (sharingWithGoogleAssignedSalesEnabled_ != false) { - output.writeBool(3, sharingWithGoogleAssignedSalesEnabled_); - } - if (sharingWithGoogleAnySalesEnabled_ != false) { - output.writeBool(4, sharingWithGoogleAnySalesEnabled_); - } - if (sharingWithGoogleProductsEnabled_ != false) { - output.writeBool(5, sharingWithGoogleProductsEnabled_); - } - if (sharingWithOthersEnabled_ != false) { - output.writeBool(6, sharingWithOthersEnabled_); - } - 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 (sharingWithGoogleSupportEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, sharingWithGoogleSupportEnabled_); - } - if (sharingWithGoogleAssignedSalesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, sharingWithGoogleAssignedSalesEnabled_); - } - if (sharingWithGoogleAnySalesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, sharingWithGoogleAnySalesEnabled_); - } - if (sharingWithGoogleProductsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, sharingWithGoogleProductsEnabled_); - } - if (sharingWithOthersEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, sharingWithOthersEnabled_); - } - 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.admin.v1alpha.DataSharingSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DataSharingSettings other = (com.google.analytics.admin.v1alpha.DataSharingSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getSharingWithGoogleSupportEnabled() - != other.getSharingWithGoogleSupportEnabled()) return false; - if (getSharingWithGoogleAssignedSalesEnabled() - != other.getSharingWithGoogleAssignedSalesEnabled()) return false; - if (getSharingWithGoogleAnySalesEnabled() - != other.getSharingWithGoogleAnySalesEnabled()) return false; - if (getSharingWithGoogleProductsEnabled() - != other.getSharingWithGoogleProductsEnabled()) return false; - if (getSharingWithOthersEnabled() - != other.getSharingWithOthersEnabled()) 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) + SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleSupportEnabled()); - hash = (37 * hash) + SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleAssignedSalesEnabled()); - hash = (37 * hash) + SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleAnySalesEnabled()); - hash = (37 * hash) + SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleProductsEnabled()); - hash = (37 * hash) + SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithOthersEnabled()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataSharingSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataSharingSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing data sharing settings of a Google Analytics
-   * account.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataSharingSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataSharingSettings) - com.google.analytics.admin.v1alpha.DataSharingSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataSharingSettings.class, com.google.analytics.admin.v1alpha.DataSharingSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DataSharingSettings.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - sharingWithGoogleSupportEnabled_ = false; - sharingWithGoogleAssignedSalesEnabled_ = false; - sharingWithGoogleAnySalesEnabled_ = false; - sharingWithGoogleProductsEnabled_ = false; - sharingWithOthersEnabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataSharingSettings getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataSharingSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataSharingSettings build() { - com.google.analytics.admin.v1alpha.DataSharingSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataSharingSettings buildPartial() { - com.google.analytics.admin.v1alpha.DataSharingSettings result = new com.google.analytics.admin.v1alpha.DataSharingSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DataSharingSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.sharingWithGoogleSupportEnabled_ = sharingWithGoogleSupportEnabled_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sharingWithGoogleAssignedSalesEnabled_ = sharingWithGoogleAssignedSalesEnabled_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.sharingWithGoogleAnySalesEnabled_ = sharingWithGoogleAnySalesEnabled_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sharingWithGoogleProductsEnabled_ = sharingWithGoogleProductsEnabled_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.sharingWithOthersEnabled_ = sharingWithOthersEnabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataSharingSettings) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataSharingSettings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataSharingSettings other) { - if (other == com.google.analytics.admin.v1alpha.DataSharingSettings.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getSharingWithGoogleSupportEnabled() != false) { - setSharingWithGoogleSupportEnabled(other.getSharingWithGoogleSupportEnabled()); - } - if (other.getSharingWithGoogleAssignedSalesEnabled() != false) { - setSharingWithGoogleAssignedSalesEnabled(other.getSharingWithGoogleAssignedSalesEnabled()); - } - if (other.getSharingWithGoogleAnySalesEnabled() != false) { - setSharingWithGoogleAnySalesEnabled(other.getSharingWithGoogleAnySalesEnabled()); - } - if (other.getSharingWithGoogleProductsEnabled() != false) { - setSharingWithGoogleProductsEnabled(other.getSharingWithGoogleProductsEnabled()); - } - if (other.getSharingWithOthersEnabled() != false) { - setSharingWithOthersEnabled(other.getSharingWithOthersEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - sharingWithGoogleSupportEnabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - sharingWithGoogleAssignedSalesEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - sharingWithGoogleAnySalesEnabled_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - sharingWithGoogleProductsEnabled_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - sharingWithOthersEnabled_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.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. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean sharingWithGoogleSupportEnabled_ ; - /** - *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
-     * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return The sharingWithGoogleSupportEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleSupportEnabled() { - return sharingWithGoogleSupportEnabled_; - } - /** - *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
-     * 
- * - * bool sharing_with_google_support_enabled = 2; - * @param value The sharingWithGoogleSupportEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleSupportEnabled(boolean value) { - - sharingWithGoogleSupportEnabled_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
-     * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleSupportEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); - sharingWithGoogleSupportEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithGoogleAssignedSalesEnabled_ ; - /** - *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
-     * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return The sharingWithGoogleAssignedSalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAssignedSalesEnabled() { - return sharingWithGoogleAssignedSalesEnabled_; - } - /** - *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
-     * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @param value The sharingWithGoogleAssignedSalesEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleAssignedSalesEnabled(boolean value) { - - sharingWithGoogleAssignedSalesEnabled_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
-     * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleAssignedSalesEnabled() { - bitField0_ = (bitField0_ & ~0x00000004); - sharingWithGoogleAssignedSalesEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithGoogleAnySalesEnabled_ ; - /** - *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
-     * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return The sharingWithGoogleAnySalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAnySalesEnabled() { - return sharingWithGoogleAnySalesEnabled_; - } - /** - *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
-     * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @param value The sharingWithGoogleAnySalesEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { - - sharingWithGoogleAnySalesEnabled_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
-     * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleAnySalesEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - sharingWithGoogleAnySalesEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithGoogleProductsEnabled_ ; - /** - *
-     * Allows Google to use the data to improve other Google products or services.
-     * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return The sharingWithGoogleProductsEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleProductsEnabled() { - return sharingWithGoogleProductsEnabled_; - } - /** - *
-     * Allows Google to use the data to improve other Google products or services.
-     * 
- * - * bool sharing_with_google_products_enabled = 5; - * @param value The sharingWithGoogleProductsEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleProductsEnabled(boolean value) { - - sharingWithGoogleProductsEnabled_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Allows Google to use the data to improve other Google products or services.
-     * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleProductsEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - sharingWithGoogleProductsEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithOthersEnabled_ ; - /** - *
-     * Allows Google to share the data anonymously in aggregate form with others.
-     * 
- * - * bool sharing_with_others_enabled = 6; - * @return The sharingWithOthersEnabled. - */ - @java.lang.Override - public boolean getSharingWithOthersEnabled() { - return sharingWithOthersEnabled_; - } - /** - *
-     * Allows Google to share the data anonymously in aggregate form with others.
-     * 
- * - * bool sharing_with_others_enabled = 6; - * @param value The sharingWithOthersEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithOthersEnabled(boolean value) { - - sharingWithOthersEnabled_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Allows Google to share the data anonymously in aggregate form with others.
-     * 
- * - * bool sharing_with_others_enabled = 6; - * @return This builder for chaining. - */ - public Builder clearSharingWithOthersEnabled() { - bitField0_ = (bitField0_ & ~0x00000020); - sharingWithOthersEnabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataSharingSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataSharingSettings) - private static final com.google.analytics.admin.v1alpha.DataSharingSettings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataSharingSettings(); - } - - public static com.google.analytics.admin.v1alpha.DataSharingSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSharingSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataSharingSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java deleted file mode 100644 index 689f305c5a5e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface DataSharingSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataSharingSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Allows Google support to access the data in order to help troubleshoot
-   * issues.
-   * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return The sharingWithGoogleSupportEnabled. - */ - boolean getSharingWithGoogleSupportEnabled(); - - /** - *
-   * Allows Google sales teams that are assigned to the customer to access the
-   * data in order to suggest configuration changes to improve results.
-   * Sales team restrictions still apply when enabled.
-   * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return The sharingWithGoogleAssignedSalesEnabled. - */ - boolean getSharingWithGoogleAssignedSalesEnabled(); - - /** - *
-   * Allows any of Google sales to access the data in order to suggest
-   * configuration changes to improve results.
-   * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return The sharingWithGoogleAnySalesEnabled. - */ - boolean getSharingWithGoogleAnySalesEnabled(); - - /** - *
-   * Allows Google to use the data to improve other Google products or services.
-   * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return The sharingWithGoogleProductsEnabled. - */ - boolean getSharingWithGoogleProductsEnabled(); - - /** - *
-   * Allows Google to share the data anonymously in aggregate form with others.
-   * 
- * - * bool sharing_with_others_enabled = 6; - * @return The sharingWithOthersEnabled. - */ - boolean getSharingWithOthersEnabled(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java deleted file mode 100644 index 56923ac73d5c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java +++ /dev/null @@ -1,5000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing a data stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream} - */ -public final class DataStream extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream) - DataStreamOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataStream.newBuilder() to construct. - private DataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataStream() { - name_ = ""; - type_ = 0; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataStream(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.class, com.google.analytics.admin.v1alpha.DataStream.Builder.class); - } - - /** - *
-   * The type of the data stream.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.DataStream.DataStreamType} - */ - public enum DataStreamType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Type unknown or not specified.
-     * 
- * - * DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - DATA_STREAM_TYPE_UNSPECIFIED(0), - /** - *
-     * Web data stream.
-     * 
- * - * WEB_DATA_STREAM = 1; - */ - WEB_DATA_STREAM(1), - /** - *
-     * Android app data stream.
-     * 
- * - * ANDROID_APP_DATA_STREAM = 2; - */ - ANDROID_APP_DATA_STREAM(2), - /** - *
-     * iOS app data stream.
-     * 
- * - * IOS_APP_DATA_STREAM = 3; - */ - IOS_APP_DATA_STREAM(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Type unknown or not specified.
-     * 
- * - * DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - public static final int DATA_STREAM_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Web data stream.
-     * 
- * - * WEB_DATA_STREAM = 1; - */ - public static final int WEB_DATA_STREAM_VALUE = 1; - /** - *
-     * Android app data stream.
-     * 
- * - * ANDROID_APP_DATA_STREAM = 2; - */ - public static final int ANDROID_APP_DATA_STREAM_VALUE = 2; - /** - *
-     * iOS app data stream.
-     * 
- * - * IOS_APP_DATA_STREAM = 3; - */ - public static final int IOS_APP_DATA_STREAM_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataStreamType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DataStreamType forNumber(int value) { - switch (value) { - case 0: return DATA_STREAM_TYPE_UNSPECIFIED; - case 1: return WEB_DATA_STREAM; - case 2: return ANDROID_APP_DATA_STREAM; - case 3: return IOS_APP_DATA_STREAM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DataStreamType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataStreamType findValueByNumber(int number) { - return DataStreamType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.DataStream.getDescriptor().getEnumTypes().get(0); - } - - private static final DataStreamType[] VALUES = values(); - - public static DataStreamType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DataStreamType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.DataStream.DataStreamType) - } - - public interface WebStreamDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.WebStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The measurementId. - */ - java.lang.String getMeasurementId(); - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for measurementId. - */ - com.google.protobuf.ByteString - getMeasurementIdBytes(); - - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString - getFirebaseAppIdBytes(); - - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The defaultUri. - */ - java.lang.String getDefaultUri(); - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The bytes for defaultUri. - */ - com.google.protobuf.ByteString - getDefaultUriBytes(); - } - /** - *
-   * Data specific to web streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.WebStreamData} - */ - public static final class WebStreamData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.WebStreamData) - WebStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebStreamData.newBuilder() to construct. - private WebStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebStreamData() { - measurementId_ = ""; - firebaseAppId_ = ""; - defaultUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebStreamData(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.WebStreamData.class, com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder.class); - } - - public static final int MEASUREMENT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object measurementId_ = ""; - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The measurementId. - */ - @java.lang.Override - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } - } - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for measurementId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object firebaseAppId_ = ""; - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultUri_ = ""; - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The defaultUri. - */ - @java.lang.Override - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } - } - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The bytes for defaultUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultUri_); - } - 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(measurementId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultUri_); - } - size += 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.admin.v1alpha.DataStream.WebStreamData)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DataStream.WebStreamData other = (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) obj; - - if (!getMeasurementId() - .equals(other.getMeasurementId())) return false; - if (!getFirebaseAppId() - .equals(other.getFirebaseAppId())) return false; - if (!getDefaultUri() - .equals(other.getDefaultUri())) return false; - if (!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) + MEASUREMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementId().hashCode(); - hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - hash = (37 * hash) + DEFAULT_URI_FIELD_NUMBER; - hash = (53 * hash) + getDefaultUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataStream.WebStreamData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Data specific to web streams.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.WebStreamData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.WebStreamData) - com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.WebStreamData.class, com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DataStream.WebStreamData.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - measurementId_ = ""; - firebaseAppId_ = ""; - defaultUri_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData build() { - com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData buildPartial() { - com.google.analytics.admin.v1alpha.DataStream.WebStreamData result = new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DataStream.WebStreamData result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.measurementId_ = measurementId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.firebaseAppId_ = firebaseAppId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.defaultUri_ = defaultUri_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream.WebStreamData) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.WebStreamData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream.WebStreamData other) { - if (other == com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance()) return this; - if (!other.getMeasurementId().isEmpty()) { - measurementId_ = other.measurementId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDefaultUri().isEmpty()) { - defaultUri_ = other.defaultUri_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - measurementId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - firebaseAppId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - defaultUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object measurementId_ = ""; - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The measurementId. - */ - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for measurementId. - */ - public com.google.protobuf.ByteString - getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - measurementId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearMeasurementId() { - measurementId_ = getDefaultInstance().getMeasurementId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - measurementId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - firebaseAppId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - firebaseAppId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object defaultUri_ = ""; - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @return The defaultUri. - */ - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @return The bytes for defaultUri. - */ - public com.google.protobuf.ByteString - getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @param value The defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - defaultUri_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @return This builder for chaining. - */ - public Builder clearDefaultUri() { - defaultUri_ = getDefaultInstance().getDefaultUri(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @param value The bytes for defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - defaultUri_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.WebStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.WebStreamData) - private static final com.google.analytics.admin.v1alpha.DataStream.WebStreamData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.WebStreamData(); - } - - public static com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AndroidAppStreamDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString - getFirebaseAppIdBytes(); - - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The packageName. - */ - java.lang.String getPackageName(); - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for packageName. - */ - com.google.protobuf.ByteString - getPackageNameBytes(); - } - /** - *
-   * Data specific to Android app streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} - */ - public static final class AndroidAppStreamData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - AndroidAppStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use AndroidAppStreamData.newBuilder() to construct. - private AndroidAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AndroidAppStreamData() { - firebaseAppId_ = ""; - packageName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AndroidAppStreamData(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.class, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder.class); - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object firebaseAppId_ = ""; - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PACKAGE_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object packageName_ = ""; - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The packageName. - */ - @java.lang.Override - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } - } - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for packageName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageName_); - } - 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(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packageName_); - } - size += 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.admin.v1alpha.DataStream.AndroidAppStreamData)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData other = (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) obj; - - if (!getFirebaseAppId() - .equals(other.getFirebaseAppId())) return false; - if (!getPackageName() - .equals(other.getPackageName())) return false; - if (!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) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPackageName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Data specific to Android app streams.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.class, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - firebaseAppId_ = ""; - packageName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData build() { - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData buildPartial() { - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result = new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.firebaseAppId_ = firebaseAppId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.packageName_ = packageName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData other) { - if (other == com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance()) return this; - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPackageName().isEmpty()) { - packageName_ = other.packageName_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - firebaseAppId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - packageName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object firebaseAppId_ = ""; - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object packageName_ = ""; - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The packageName. - */ - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for packageName. - */ - public com.google.protobuf.ByteString - getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - packageName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearPackageName() { - packageName_ = getDefaultInstance().getPackageName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - packageName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) - private static final com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData(); - } - - public static com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AndroidAppStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IosAppStreamDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString - getFirebaseAppIdBytes(); - - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bundleId. - */ - java.lang.String getBundleId(); - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bytes for bundleId. - */ - com.google.protobuf.ByteString - getBundleIdBytes(); - } - /** - *
-   * Data specific to iOS app streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.IosAppStreamData} - */ - public static final class IosAppStreamData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - IosAppStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use IosAppStreamData.newBuilder() to construct. - private IosAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IosAppStreamData() { - firebaseAppId_ = ""; - bundleId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IosAppStreamData(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.class, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder.class); - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object firebaseAppId_ = ""; - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUNDLE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object bundleId_ = ""; - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bundleId. - */ - @java.lang.Override - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } - } - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bytes for bundleId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bundleId_); - } - 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(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bundleId_); - } - size += 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.admin.v1alpha.DataStream.IosAppStreamData)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData other = (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) obj; - - if (!getFirebaseAppId() - .equals(other.getFirebaseAppId())) return false; - if (!getBundleId() - .equals(other.getBundleId())) return false; - if (!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) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - hash = (37 * hash) + BUNDLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getBundleId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Data specific to iOS app streams.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream.IosAppStreamData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.class, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - firebaseAppId_ = ""; - bundleId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData build() { - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData buildPartial() { - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result = new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.firebaseAppId_ = firebaseAppId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.bundleId_ = bundleId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData other) { - if (other == com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance()) return this; - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBundleId().isEmpty()) { - bundleId_ = other.bundleId_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - firebaseAppId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - bundleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object firebaseAppId_ = ""; - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object bundleId_ = ""; - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bundleId. - */ - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bytes for bundleId. - */ - public com.google.protobuf.ByteString - getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - bundleId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearBundleId() { - bundleId_ = getDefaultInstance().getBundleId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - bundleId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream.IosAppStreamData) - private static final com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData(); - } - - public static com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IosAppStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int streamDataCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object streamData_; - public enum StreamDataCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - WEB_STREAM_DATA(6), - ANDROID_APP_STREAM_DATA(7), - IOS_APP_STREAM_DATA(8), - STREAMDATA_NOT_SET(0); - private final int value; - private StreamDataCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static StreamDataCase valueOf(int value) { - return forNumber(value); - } - - public static StreamDataCase forNumber(int value) { - switch (value) { - case 6: return WEB_STREAM_DATA; - case 7: return ANDROID_APP_STREAM_DATA; - case 8: return IOS_APP_STREAM_DATA; - case 0: return STREAMDATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public StreamDataCase - getStreamDataCase() { - return StreamDataCase.forNumber( - streamDataCase_); - } - - public static final int WEB_STREAM_DATA_FIELD_NUMBER = 6; - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return Whether the webStreamData field is set. - */ - @java.lang.Override - public boolean hasWebStreamData() { - return streamDataCase_ == 6; - } - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return The webStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData() { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder() { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - - public static final int ANDROID_APP_STREAM_DATA_FIELD_NUMBER = 7; - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return Whether the androidAppStreamData field is set. - */ - @java.lang.Override - public boolean hasAndroidAppStreamData() { - return streamDataCase_ == 7; - } - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return The androidAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getAndroidAppStreamData() { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder getAndroidAppStreamDataOrBuilder() { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - - public static final int IOS_APP_STREAM_DATA_FIELD_NUMBER = 8; - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return Whether the iosAppStreamData field is set. - */ - @java.lang.Override - public boolean hasIosAppStreamData() { - return streamDataCase_ == 8; - } - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return The iosAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData() { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder getIosAppStreamDataOrBuilder() { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_ = 0; - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The type. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { - com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = com.google.analytics.admin.v1alpha.DataStream.DataStreamType.forNumber(type_); - return result == null ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED : result; - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != com.google.analytics.admin.v1alpha.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - if (streamDataCase_ == 6) { - output.writeMessage(6, (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); - } - if (streamDataCase_ == 7) { - output.writeMessage(7, (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_); - } - if (streamDataCase_ == 8) { - output.writeMessage(8, (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); - } - 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 (type_ != com.google.analytics.admin.v1alpha.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); - } - if (streamDataCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_); - } - if (streamDataCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_); - } - if (streamDataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_); - } - size += 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.admin.v1alpha.DataStream)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DataStream other = (com.google.analytics.admin.v1alpha.DataStream) obj; - - if (!getName() - .equals(other.getName())) return false; - if (type_ != other.type_) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getStreamDataCase().equals(other.getStreamDataCase())) return false; - switch (streamDataCase_) { - case 6: - if (!getWebStreamData() - .equals(other.getWebStreamData())) return false; - break; - case 7: - if (!getAndroidAppStreamData() - .equals(other.getAndroidAppStreamData())) return false; - break; - case 8: - if (!getIosAppStreamData() - .equals(other.getIosAppStreamData())) return false; - break; - case 0: - default: - } - if (!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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - switch (streamDataCase_) { - case 6: - hash = (37 * hash) + WEB_STREAM_DATA_FIELD_NUMBER; - hash = (53 * hash) + getWebStreamData().hashCode(); - break; - case 7: - hash = (37 * hash) + ANDROID_APP_STREAM_DATA_FIELD_NUMBER; - hash = (53 * hash) + getAndroidAppStreamData().hashCode(); - break; - case 8: - hash = (37 * hash) + IOS_APP_STREAM_DATA_FIELD_NUMBER; - hash = (53 * hash) + getIosAppStreamData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DataStream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DataStream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DataStream parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DataStream prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a data stream.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DataStream} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataStream) - com.google.analytics.admin.v1alpha.DataStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DataStream.class, com.google.analytics.admin.v1alpha.DataStream.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DataStream.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (webStreamDataBuilder_ != null) { - webStreamDataBuilder_.clear(); - } - if (androidAppStreamDataBuilder_ != null) { - androidAppStreamDataBuilder_.clear(); - } - if (iosAppStreamDataBuilder_ != null) { - iosAppStreamDataBuilder_.clear(); - } - name_ = ""; - type_ = 0; - displayName_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - streamDataCase_ = 0; - streamData_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream build() { - com.google.analytics.admin.v1alpha.DataStream result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream buildPartial() { - com.google.analytics.admin.v1alpha.DataStream result = new com.google.analytics.admin.v1alpha.DataStream(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DataStream result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.DataStream result) { - result.streamDataCase_ = streamDataCase_; - result.streamData_ = this.streamData_; - if (streamDataCase_ == 6 && - webStreamDataBuilder_ != null) { - result.streamData_ = webStreamDataBuilder_.build(); - } - if (streamDataCase_ == 7 && - androidAppStreamDataBuilder_ != null) { - result.streamData_ = androidAppStreamDataBuilder_.build(); - } - if (streamDataCase_ == 8 && - iosAppStreamDataBuilder_ != null) { - result.streamData_ = iosAppStreamDataBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DataStream) { - return mergeFrom((com.google.analytics.admin.v1alpha.DataStream)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataStream other) { - if (other == com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - switch (other.getStreamDataCase()) { - case WEB_STREAM_DATA: { - mergeWebStreamData(other.getWebStreamData()); - break; - } - case ANDROID_APP_STREAM_DATA: { - mergeAndroidAppStreamData(other.getAndroidAppStreamData()); - break; - } - case IOS_APP_STREAM_DATA: { - mergeIosAppStreamData(other.getIosAppStreamData()); - break; - } - case STREAMDATA_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 16 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 42 - case 50: { - input.readMessage( - getWebStreamDataFieldBuilder().getBuilder(), - extensionRegistry); - streamDataCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getAndroidAppStreamDataFieldBuilder().getBuilder(), - extensionRegistry); - streamDataCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getIosAppStreamDataFieldBuilder().getBuilder(), - extensionRegistry); - streamDataCase_ = 8; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int streamDataCase_ = 0; - private java.lang.Object streamData_; - public StreamDataCase - getStreamDataCase() { - return StreamDataCase.forNumber( - streamDataCase_); - } - - public Builder clearStreamData() { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.WebStreamData, com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder> webStreamDataBuilder_; - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return Whether the webStreamData field is set. - */ - @java.lang.Override - public boolean hasWebStreamData() { - return streamDataCase_ == 6; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return The webStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData() { - if (webStreamDataBuilder_ == null) { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } else { - if (streamDataCase_ == 6) { - return webStreamDataBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder setWebStreamData(com.google.analytics.admin.v1alpha.DataStream.WebStreamData value) { - if (webStreamDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamData_ = value; - onChanged(); - } else { - webStreamDataBuilder_.setMessage(value); - } - streamDataCase_ = 6; - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder setWebStreamData( - com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder builderForValue) { - if (webStreamDataBuilder_ == null) { - streamData_ = builderForValue.build(); - onChanged(); - } else { - webStreamDataBuilder_.setMessage(builderForValue.build()); - } - streamDataCase_ = 6; - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder mergeWebStreamData(com.google.analytics.admin.v1alpha.DataStream.WebStreamData value) { - if (webStreamDataBuilder_ == null) { - if (streamDataCase_ == 6 && - streamData_ != com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance()) { - streamData_ = com.google.analytics.admin.v1alpha.DataStream.WebStreamData.newBuilder((com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_) - .mergeFrom(value).buildPartial(); - } else { - streamData_ = value; - } - onChanged(); - } else { - if (streamDataCase_ == 6) { - webStreamDataBuilder_.mergeFrom(value); - } else { - webStreamDataBuilder_.setMessage(value); - } - } - streamDataCase_ = 6; - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder clearWebStreamData() { - if (webStreamDataBuilder_ == null) { - if (streamDataCase_ == 6) { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - } - } else { - if (streamDataCase_ == 6) { - streamDataCase_ = 0; - streamData_ = null; - } - webStreamDataBuilder_.clear(); - } - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - public com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder getWebStreamDataBuilder() { - return getWebStreamDataFieldBuilder().getBuilder(); - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder() { - if ((streamDataCase_ == 6) && (webStreamDataBuilder_ != null)) { - return webStreamDataBuilder_.getMessageOrBuilder(); - } else { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.WebStreamData, com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder> - getWebStreamDataFieldBuilder() { - if (webStreamDataBuilder_ == null) { - if (!(streamDataCase_ == 6)) { - streamData_ = com.google.analytics.admin.v1alpha.DataStream.WebStreamData.getDefaultInstance(); - } - webStreamDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.WebStreamData, com.google.analytics.admin.v1alpha.DataStream.WebStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder>( - (com.google.analytics.admin.v1alpha.DataStream.WebStreamData) streamData_, - getParentForChildren(), - isClean()); - streamData_ = null; - } - streamDataCase_ = 6; - onChanged(); - return webStreamDataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder> androidAppStreamDataBuilder_; - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return Whether the androidAppStreamData field is set. - */ - @java.lang.Override - public boolean hasAndroidAppStreamData() { - return streamDataCase_ == 7; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return The androidAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getAndroidAppStreamData() { - if (androidAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } else { - if (streamDataCase_ == 7) { - return androidAppStreamDataBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder setAndroidAppStreamData(com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData value) { - if (androidAppStreamDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamData_ = value; - onChanged(); - } else { - androidAppStreamDataBuilder_.setMessage(value); - } - streamDataCase_ = 7; - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder setAndroidAppStreamData( - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder builderForValue) { - if (androidAppStreamDataBuilder_ == null) { - streamData_ = builderForValue.build(); - onChanged(); - } else { - androidAppStreamDataBuilder_.setMessage(builderForValue.build()); - } - streamDataCase_ = 7; - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder mergeAndroidAppStreamData(com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData value) { - if (androidAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 7 && - streamData_ != com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance()) { - streamData_ = com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.newBuilder((com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_) - .mergeFrom(value).buildPartial(); - } else { - streamData_ = value; - } - onChanged(); - } else { - if (streamDataCase_ == 7) { - androidAppStreamDataBuilder_.mergeFrom(value); - } else { - androidAppStreamDataBuilder_.setMessage(value); - } - } - streamDataCase_ = 7; - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder clearAndroidAppStreamData() { - if (androidAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 7) { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - } - } else { - if (streamDataCase_ == 7) { - streamDataCase_ = 0; - streamData_ = null; - } - androidAppStreamDataBuilder_.clear(); - } - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder getAndroidAppStreamDataBuilder() { - return getAndroidAppStreamDataFieldBuilder().getBuilder(); - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder getAndroidAppStreamDataOrBuilder() { - if ((streamDataCase_ == 7) && (androidAppStreamDataBuilder_ != null)) { - return androidAppStreamDataBuilder_.getMessageOrBuilder(); - } else { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder> - getAndroidAppStreamDataFieldBuilder() { - if (androidAppStreamDataBuilder_ == null) { - if (!(streamDataCase_ == 7)) { - streamData_ = com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - androidAppStreamDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder>( - (com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData) streamData_, - getParentForChildren(), - isClean()); - streamData_ = null; - } - streamDataCase_ = 7; - onChanged(); - return androidAppStreamDataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder> iosAppStreamDataBuilder_; - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return Whether the iosAppStreamData field is set. - */ - @java.lang.Override - public boolean hasIosAppStreamData() { - return streamDataCase_ == 8; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return The iosAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData() { - if (iosAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } else { - if (streamDataCase_ == 8) { - return iosAppStreamDataBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder setIosAppStreamData(com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData value) { - if (iosAppStreamDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamData_ = value; - onChanged(); - } else { - iosAppStreamDataBuilder_.setMessage(value); - } - streamDataCase_ = 8; - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder setIosAppStreamData( - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder builderForValue) { - if (iosAppStreamDataBuilder_ == null) { - streamData_ = builderForValue.build(); - onChanged(); - } else { - iosAppStreamDataBuilder_.setMessage(builderForValue.build()); - } - streamDataCase_ = 8; - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder mergeIosAppStreamData(com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData value) { - if (iosAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 8 && - streamData_ != com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance()) { - streamData_ = com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.newBuilder((com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_) - .mergeFrom(value).buildPartial(); - } else { - streamData_ = value; - } - onChanged(); - } else { - if (streamDataCase_ == 8) { - iosAppStreamDataBuilder_.mergeFrom(value); - } else { - iosAppStreamDataBuilder_.setMessage(value); - } - } - streamDataCase_ = 8; - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder clearIosAppStreamData() { - if (iosAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 8) { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - } - } else { - if (streamDataCase_ == 8) { - streamDataCase_ = 0; - streamData_ = null; - } - iosAppStreamDataBuilder_.clear(); - } - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder getIosAppStreamDataBuilder() { - return getIosAppStreamDataFieldBuilder().getBuilder(); - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder getIosAppStreamDataOrBuilder() { - if ((streamDataCase_ == 8) && (iosAppStreamDataBuilder_ != null)) { - return iosAppStreamDataBuilder_.getMessageOrBuilder(); - } else { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder> - getIosAppStreamDataFieldBuilder() { - if (iosAppStreamDataBuilder_ == null) { - if (!(streamDataCase_ == 8)) { - streamData_ = com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.getDefaultInstance(); - } - iosAppStreamDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData.Builder, com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder>( - (com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData) streamData_, - getParentForChildren(), - isClean()); - streamData_ = null; - } - streamDataCase_ = 8; - onChanged(); - return iosAppStreamDataBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The type. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType() { - com.google.analytics.admin.v1alpha.DataStream.DataStreamType result = com.google.analytics.admin.v1alpha.DataStream.DataStreamType.forNumber(type_); - return result == null ? com.google.analytics.admin.v1alpha.DataStream.DataStreamType.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.admin.v1alpha.DataStream.DataStreamType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000010); - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000080); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DataStream) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataStream) - private static final com.google.analytics.admin.v1alpha.DataStream DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataStream(); - } - - public static com.google.analytics.admin.v1alpha.DataStream getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java deleted file mode 100644 index 1f6279be7a5d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java +++ /dev/null @@ -1,226 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface DataStreamOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataStream) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return Whether the webStreamData field is set. - */ - boolean hasWebStreamData(); - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - * @return The webStreamData. - */ - com.google.analytics.admin.v1alpha.DataStream.WebStreamData getWebStreamData(); - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.WebStreamData web_stream_data = 6; - */ - com.google.analytics.admin.v1alpha.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder(); - - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return Whether the androidAppStreamData field is set. - */ - boolean hasAndroidAppStreamData(); - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return The androidAppStreamData. - */ - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData getAndroidAppStreamData(); - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - com.google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataOrBuilder getAndroidAppStreamDataOrBuilder(); - - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return Whether the iosAppStreamData field is set. - */ - boolean hasIosAppStreamData(); - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return The iosAppStreamData. - */ - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppStreamData(); - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - com.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataOrBuilder getIosAppStreamDataOrBuilder(); - - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The type. - */ - com.google.analytics.admin.v1alpha.DataStream.DataStreamType getType(); - - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - com.google.analytics.admin.v1alpha.DataStream.StreamDataCase getStreamDataCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java deleted file mode 100644 index b9d2cb077b20..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteAccessBinding RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccessBindingRequest} - */ -public final class DeleteAccessBindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) - DeleteAccessBindingRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteAccessBindingRequest.newBuilder() to construct. - private DeleteAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteAccessBindingRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteAccessBindingRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteAccessBindingRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest other = (com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteAccessBinding RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccessBindingRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.class, com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccessBindingRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest build() { - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result = new com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteAccessBindingRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) - private static final com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAccessBindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccessBindingRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java deleted file mode 100644 index af58f2c0a5c6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccessBindingRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteAccessBindingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAccessBindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java deleted file mode 100644 index 84cd018ce5ef..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteAccount RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccountRequest} - */ -public final class DeleteAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAccountRequest) - DeleteAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteAccountRequest.newBuilder() to construct. - private DeleteAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteAccountRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAccountRequest.class, com.google.analytics.admin.v1alpha.DeleteAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteAccountRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteAccountRequest other = (com.google.analytics.admin.v1alpha.DeleteAccountRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteAccount RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAccountRequest) - com.google.analytics.admin.v1alpha.DeleteAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAccountRequest.class, com.google.analytics.admin.v1alpha.DeleteAccountRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteAccountRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccountRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccountRequest build() { - com.google.analytics.admin.v1alpha.DeleteAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccountRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteAccountRequest result = new com.google.analytics.admin.v1alpha.DeleteAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteAccountRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteAccountRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteAccountRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAccountRequest) - private static final com.google.analytics.admin.v1alpha.DeleteAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAccountRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java deleted file mode 100644 index 2ced5a1f008c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequest.java deleted file mode 100644 index 6fde8c82a244..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message to be passed to DeleteAdSenseLink method.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} - */ -public final class DeleteAdSenseLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) - DeleteAdSenseLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteAdSenseLinkRequest.newBuilder() to construct. - private DeleteAdSenseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteAdSenseLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteAdSenseLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Unique identifier for the AdSense Link to be deleted.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Unique identifier for the AdSense Link to be deleted.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteAdSenseLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest other = (com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message to be passed to DeleteAdSenseLink method.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest result = new com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Unique identifier for the AdSense Link to be deleted.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Unique identifier for the AdSense Link to be deleted.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Unique identifier for the AdSense Link to be deleted.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Unique identifier for the AdSense Link to be deleted.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Unique identifier for the AdSense Link to be deleted.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteAdSenseLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAdSenseLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequestOrBuilder.java deleted file mode 100644 index b8b059552537..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAdSenseLinkRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteAdSenseLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteAdSenseLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Unique identifier for the AdSense Link to be deleted.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Unique identifier for the AdSense Link to be deleted.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequest.java deleted file mode 100644 index 2b8f4aeff9c5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteChannelGroup RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteChannelGroupRequest} - */ -public final class DeleteChannelGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) - DeleteChannelGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteChannelGroupRequest.newBuilder() to construct. - private DeleteChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteChannelGroupRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteChannelGroupRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.class, com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The ChannelGroup to delete.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The ChannelGroup to delete.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteChannelGroupRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest other = (com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteChannelGroup RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteChannelGroupRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.class, com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteChannelGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest build() { - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest result = new com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The ChannelGroup to delete.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The ChannelGroup to delete.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The ChannelGroup to delete.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to delete.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to delete.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteChannelGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) - private static final com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteChannelGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteChannelGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequestOrBuilder.java deleted file mode 100644 index 8e2e2dad6292..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteChannelGroupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteChannelGroupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteChannelGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The ChannelGroup to delete.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The ChannelGroup to delete.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequest.java deleted file mode 100644 index 64c0874a7875..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequest.java +++ /dev/null @@ -1,769 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteConnectedSiteTag RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest} - */ -public final class DeleteConnectedSiteTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) - DeleteConnectedSiteTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteConnectedSiteTagRequest.newBuilder() to construct. - private DeleteConnectedSiteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteConnectedSiteTagRequest() { - property_ = ""; - tagId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteConnectedSiteTagRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.class, com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * The Universal Analytics property to delete connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * The Universal Analytics property to delete connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object tagId_ = ""; - /** - *
-   * Tag ID to forward events to. Also known as the Measurement ID, or the
-   * "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2; - * @return The tagId. - */ - @java.lang.Override - public java.lang.String getTagId() { - java.lang.Object ref = tagId_; - 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(); - tagId_ = s; - return s; - } - } - /** - *
-   * Tag ID to forward events to. Also known as the Measurement ID, or the
-   * "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2; - * @return The bytes for tagId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTagIdBytes() { - java.lang.Object ref = tagId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tagId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tagId_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tagId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tagId_); - } - 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.admin.v1alpha.DeleteConnectedSiteTagRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest other = (com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) return false; - if (!getTagId() - .equals(other.getTagId())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (37 * hash) + TAG_ID_FIELD_NUMBER; - hash = (53 * hash) + getTagId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteConnectedSiteTag RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.class, com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - tagId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConnectedSiteTagRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest build() { - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest result = new com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagId_ = tagId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTagId().isEmpty()) { - tagId_ = other.tagId_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - tagId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * The Universal Analytics property to delete connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Universal Analytics property to delete connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Universal Analytics property to delete connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The Universal Analytics property to delete connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The Universal Analytics property to delete connected site tags for.
-     * This API does not support GA4 properties.
-     * Format: properties/{universalAnalyticsPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1; - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object tagId_ = ""; - /** - *
-     * Tag ID to forward events to. Also known as the Measurement ID, or the
-     * "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2; - * @return The tagId. - */ - public java.lang.String getTagId() { - java.lang.Object ref = tagId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Tag ID to forward events to. Also known as the Measurement ID, or the
-     * "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2; - * @return The bytes for tagId. - */ - public com.google.protobuf.ByteString - getTagIdBytes() { - java.lang.Object ref = tagId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tagId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Tag ID to forward events to. Also known as the Measurement ID, or the
-     * "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2; - * @param value The tagId to set. - * @return This builder for chaining. - */ - public Builder setTagId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - tagId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Tag ID to forward events to. Also known as the Measurement ID, or the
-     * "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2; - * @return This builder for chaining. - */ - public Builder clearTagId() { - tagId_ = getDefaultInstance().getTagId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Tag ID to forward events to. Also known as the Measurement ID, or the
-     * "G-ID"  (For example: G-12345).
-     * 
- * - * string tag_id = 2; - * @param value The bytes for tagId to set. - * @return This builder for chaining. - */ - public Builder setTagIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - tagId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) - private static final com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConnectedSiteTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequestOrBuilder.java deleted file mode 100644 index d59d4c61dab3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConnectedSiteTagRequestOrBuilder.java +++ /dev/null @@ -1,57 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteConnectedSiteTagRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteConnectedSiteTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Universal Analytics property to delete connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * The Universal Analytics property to delete connected site tags for.
-   * This API does not support GA4 properties.
-   * Format: properties/{universalAnalyticsPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1; - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Tag ID to forward events to. Also known as the Measurement ID, or the
-   * "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2; - * @return The tagId. - */ - java.lang.String getTagId(); - /** - *
-   * Tag ID to forward events to. Also known as the Measurement ID, or the
-   * "G-ID"  (For example: G-12345).
-   * 
- * - * string tag_id = 2; - * @return The bytes for tagId. - */ - com.google.protobuf.ByteString - getTagIdBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java deleted file mode 100644 index 8bfcae407cde..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} - */ -public final class DeleteConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) - DeleteConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteConversionEventRequest.newBuilder() to construct. - private DeleteConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteConversionEventRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other = (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) - com.google.analytics.admin.v1alpha.DeleteConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest build() { - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteConversionEventRequest) - private static final com.google.analytics.admin.v1alpha.DeleteConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java deleted file mode 100644 index 8faa9524b4f5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java deleted file mode 100644 index 03aff7bd6b61..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDataStreamRequest} - */ -public final class DeleteDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDataStreamRequest) - DeleteDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteDataStreamRequest.newBuilder() to construct. - private DeleteDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest other = (com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDataStreamRequest) - com.google.analytics.admin.v1alpha.DeleteDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.class, com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest build() { - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result = new com.google.analytics.admin.v1alpha.DeleteDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteDataStreamRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DeleteDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.DeleteDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java deleted file mode 100644 index ad5a87cc10ee..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index c37df7c192a6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} - */ -public final class DeleteDisplayVideo360AdvertiserLinkProposalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) - DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. - private DeleteDisplayVideo360AdvertiserLinkProposalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteDisplayVideo360AdvertiserLinkProposalRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest other = (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest build() { - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest result = new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) - private static final com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index 076306d35a8a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index c6ab306d7a10..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteDisplayVideo360AdvertiserLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} - */ -public final class DeleteDisplayVideo360AdvertiserLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) - DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. - private DeleteDisplayVideo360AdvertiserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteDisplayVideo360AdvertiserLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteDisplayVideo360AdvertiserLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest other = (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteDisplayVideo360AdvertiserLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result = new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDisplayVideo360AdvertiserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 13d21b2dfe8b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
-   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequest.java deleted file mode 100644 index 06a609517a11..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteEventCreateRule RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} - */ -public final class DeleteEventCreateRuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) - DeleteEventCreateRuleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteEventCreateRuleRequest.newBuilder() to construct. - private DeleteEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteEventCreateRuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteEventCreateRuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Example format:
-   * properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Example format:
-   * properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteEventCreateRuleRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest other = (com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteEventCreateRule RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest build() { - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest result = new com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Example format:
-     * properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format:
-     * properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format:
-     * properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format:
-     * properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format:
-     * properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteEventCreateRuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) - private static final com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEventCreateRuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequestOrBuilder.java deleted file mode 100644 index bfb11b29ee99..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteEventCreateRuleRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteEventCreateRuleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteEventCreateRuleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format:
-   * properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Example format:
-   * properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java deleted file mode 100644 index f8bb2b05fda0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequest.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteExpandedDataSet RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest} - */ -public final class DeleteExpandedDataSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) - DeleteExpandedDataSetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteExpandedDataSetRequest.newBuilder() to construct. - private DeleteExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteExpandedDataSetRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteExpandedDataSetRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteExpandedDataSetRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest other = (com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteExpandedDataSet RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest build() { - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result = new com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteExpandedDataSetRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) - private static final com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteExpandedDataSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java deleted file mode 100644 index b83bc6a9940b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteExpandedDataSetRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteExpandedDataSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteExpandedDataSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java deleted file mode 100644 index c1286a5381fb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteFirebaseLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} - */ -public final class DeleteFirebaseLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) - DeleteFirebaseLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteFirebaseLinkRequest.newBuilder() to construct. - private DeleteFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteFirebaseLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteFirebaseLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteFirebaseLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest other = (com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteFirebaseLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest result = new com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteFirebaseLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFirebaseLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index ea671afc61bd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteFirebaseLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java deleted file mode 100644 index 26f0c2f6c84b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteGoogleAdsLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} - */ -public final class DeleteGoogleAdsLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) - DeleteGoogleAdsLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteGoogleAdsLinkRequest.newBuilder() to construct. - private DeleteGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteGoogleAdsLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteGoogleAdsLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteGoogleAdsLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest other = (com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteGoogleAdsLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest result = new com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteGoogleAdsLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGoogleAdsLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 3f29cf8659bb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteGoogleAdsLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java deleted file mode 100644 index bfaad39328c4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} - */ -public final class DeleteMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) - DeleteMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteMeasurementProtocolSecretRequest.newBuilder() to construct. - private DeleteMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteMeasurementProtocolSecretRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index c28a143c0b7f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java deleted file mode 100644 index 20fcc254a5e8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeletePropertyRequest} - */ -public final class DeletePropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeletePropertyRequest) - DeletePropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeletePropertyRequest.newBuilder() to construct. - private DeletePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeletePropertyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeletePropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, com.google.analytics.admin.v1alpha.DeletePropertyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeletePropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeletePropertyRequest other = (com.google.analytics.admin.v1alpha.DeletePropertyRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeletePropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeletePropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeletePropertyRequest) - com.google.analytics.admin.v1alpha.DeletePropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, com.google.analytics.admin.v1alpha.DeletePropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeletePropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeletePropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeletePropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeletePropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeletePropertyRequest build() { - com.google.analytics.admin.v1alpha.DeletePropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeletePropertyRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeletePropertyRequest result = new com.google.analytics.admin.v1alpha.DeletePropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeletePropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeletePropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeletePropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeletePropertyRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeletePropertyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeletePropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeletePropertyRequest) - private static final com.google.analytics.admin.v1alpha.DeletePropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeletePropertyRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeletePropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeletePropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java deleted file mode 100644 index f1db0fd43240..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeletePropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeletePropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java deleted file mode 100644 index a9a116ee93ee..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteRollupPropertySourceLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest} - */ -public final class DeleteRollupPropertySourceLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) - DeleteRollupPropertySourceLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteRollupPropertySourceLinkRequest.newBuilder() to construct. - private DeleteRollupPropertySourceLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteRollupPropertySourceLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteRollupPropertySourceLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/1234/rollupPropertySourceLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/1234/rollupPropertySourceLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteRollupPropertySourceLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest other = (com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteRollupPropertySourceLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.class, com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result = new com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/1234/rollupPropertySourceLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/1234/rollupPropertySourceLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/1234/rollupPropertySourceLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/1234/rollupPropertySourceLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/1234/rollupPropertySourceLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRollupPropertySourceLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java deleted file mode 100644 index 959c24af3705..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteRollupPropertySourceLinkRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteRollupPropertySourceLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteRollupPropertySourceLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/1234/rollupPropertySourceLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/1234/rollupPropertySourceLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.java deleted file mode 100644 index e78ecf93d914..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteSKAdNetworkConversionValueSchema RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest} - */ -public final class DeleteSKAdNetworkConversionValueSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) - DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. - private DeleteSKAdNetworkConversionValueSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteSKAdNetworkConversionValueSchemaRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteSKAdNetworkConversionValueSchemaRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest other = (com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteSKAdNetworkConversionValueSchema RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest build() { - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest result = new com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) - private static final com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSKAdNetworkConversionValueSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder.java deleted file mode 100644 index 539aacfd7f8b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteSKAdNetworkConversionValueSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteSKAdNetworkConversionValueSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the SKAdNetworkConversionValueSchema to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequest.java deleted file mode 100644 index 0a91a1a2a302..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteSearchAds360Link RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} - */ -public final class DeleteSearchAds360LinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) - DeleteSearchAds360LinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteSearchAds360LinkRequest.newBuilder() to construct. - private DeleteSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteSearchAds360LinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteSearchAds360LinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the SearchAds360Link to delete.
-   * Example format: properties/1234/SearchAds360Links/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the SearchAds360Link to delete.
-   * Example format: properties/1234/SearchAds360Links/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteSearchAds360LinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest other = (com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteSearchAds360Link RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest build() { - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest result = new com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the SearchAds360Link to delete.
-     * Example format: properties/1234/SearchAds360Links/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the SearchAds360Link to delete.
-     * Example format: properties/1234/SearchAds360Links/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the SearchAds360Link to delete.
-     * Example format: properties/1234/SearchAds360Links/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the SearchAds360Link to delete.
-     * Example format: properties/1234/SearchAds360Links/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the SearchAds360Link to delete.
-     * Example format: properties/1234/SearchAds360Links/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteSearchAds360LinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) - private static final com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSearchAds360LinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequestOrBuilder.java deleted file mode 100644 index 9e4018376a04..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSearchAds360LinkRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteSearchAds360LinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteSearchAds360LinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the SearchAds360Link to delete.
-   * Example format: properties/1234/SearchAds360Links/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the SearchAds360Link to delete.
-   * Example format: properties/1234/SearchAds360Links/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java deleted file mode 100644 index 5c752827f1e0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for DeleteSubpropertyEventFilter RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest} - */ -public final class DeleteSubpropertyEventFilterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) - DeleteSubpropertyEventFilterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteSubpropertyEventFilterRequest.newBuilder() to construct. - private DeleteSubpropertyEventFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteSubpropertyEventFilterRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteSubpropertyEventFilterRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Resource name of the subproperty event filter to delete.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Resource name of the subproperty event filter to delete.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.DeleteSubpropertyEventFilterRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest other = (com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteSubpropertyEventFilter RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_DeleteSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest build() { - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest buildPartial() { - com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result = new com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest other) { - if (other == com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Resource name of the subproperty event filter to delete.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Resource name of the subproperty event filter to delete.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Resource name of the subproperty event filter to delete.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the subproperty event filter to delete.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the subproperty event filter to delete.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.DeleteSubpropertyEventFilterRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) - private static final com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest(); - } - - public static com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteSubpropertyEventFilterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java deleted file mode 100644 index 6b0e50f53fbe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteSubpropertyEventFilterRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface DeleteSubpropertyEventFilterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteSubpropertyEventFilterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the subproperty event filter to delete.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the subproperty event filter to delete.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java deleted file mode 100644 index 00b027e00287..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java +++ /dev/null @@ -1,1716 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A link between a GA4 property and a Display & Video 360 advertiser.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} - */ -public final class DisplayVideo360AdvertiserLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) - DisplayVideo360AdvertiserLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use DisplayVideo360AdvertiserLink.newBuilder() to construct. - private DisplayVideo360AdvertiserLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisplayVideo360AdvertiserLink() { - name_ = ""; - advertiserId_ = ""; - advertiserDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisplayVideo360AdvertiserLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
-   * resource. Format:
-   * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
-   *
-   * Note: linkId is not the Display & Video 360 Advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
-   * resource. Format:
-   * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
-   *
-   * Note: linkId is not the Display & Video 360 Advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADVERTISER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object advertiserId_ = ""; - /** - *
-   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The advertiserId. - */ - @java.lang.Override - public java.lang.String getAdvertiserId() { - java.lang.Object ref = advertiserId_; - 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(); - advertiserId_ = s; - return s; - } - } - /** - *
-   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for advertiserId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAdvertiserIdBytes() { - java.lang.Object ref = advertiserId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object advertiserDisplayName_ = ""; - /** - *
-   * Output only. The display name of the Display & Video 360 Advertiser.
-   * 
- * - * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The advertiserDisplayName. - */ - @java.lang.Override - public java.lang.String getAdvertiserDisplayName() { - java.lang.Object ref = advertiserDisplayName_; - 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(); - advertiserDisplayName_ = s; - return s; - } - } - /** - *
-   * Output only. The display name of the Display & Video 360 Advertiser.
-   * 
- * - * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for advertiserDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes() { - java.lang.Object ref = advertiserDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 4; - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - /** - *
-   * Enables personalized advertising features with this integration.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return Whether the adsPersonalizationEnabled field is set. - */ - @java.lang.Override - public boolean hasAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ != null; - } - /** - *
-   * Enables personalized advertising features with this integration.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return The adsPersonalizationEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - /** - *
-   * Enables personalized advertising features with this integration.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - - public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 5; - private com.google.protobuf.BoolValue campaignDataSharingEnabled_; - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360
-   * into the GA4 property. After link creation, this can only be updated from
-   * the Display & Video 360 product. If this field is not set on create, it
-   * will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the campaignDataSharingEnabled field is set. - */ - @java.lang.Override - public boolean hasCampaignDataSharingEnabled() { - return campaignDataSharingEnabled_ != null; - } - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360
-   * into the GA4 property. After link creation, this can only be updated from
-   * the Display & Video 360 product. If this field is not set on create, it
-   * will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The campaignDataSharingEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360
-   * into the GA4 property. After link creation, this can only be updated from
-   * the Display & Video 360 product. If this field is not set on create, it
-   * will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - - public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 6; - private com.google.protobuf.BoolValue costDataSharingEnabled_; - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360 into
-   * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-   * is enabled. After link creation, this can only be updated from the Display
-   * & Video 360 product. If this field is not set on create, it will be
-   * defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the costDataSharingEnabled field is set. - */ - @java.lang.Override - public boolean hasCostDataSharingEnabled() { - return costDataSharingEnabled_ != null; - } - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360 into
-   * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-   * is enabled. After link creation, this can only be updated from the Display
-   * & Video 360 product. If this field is not set on create, it will be
-   * defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The costDataSharingEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCostDataSharingEnabled() { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360 into
-   * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-   * is enabled. After link creation, this can only be updated from the Display
-   * & Video 360 product. If this field is not set on create, it will be
-   * defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - - 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(advertiserId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, advertiserDisplayName_); - } - if (adsPersonalizationEnabled_ != null) { - output.writeMessage(4, getAdsPersonalizationEnabled()); - } - if (campaignDataSharingEnabled_ != null) { - output.writeMessage(5, getCampaignDataSharingEnabled()); - } - if (costDataSharingEnabled_ != null) { - output.writeMessage(6, getCostDataSharingEnabled()); - } - 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(advertiserId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, advertiserDisplayName_); - } - if (adsPersonalizationEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getAdsPersonalizationEnabled()); - } - if (campaignDataSharingEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getCampaignDataSharingEnabled()); - } - if (costDataSharingEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getCostDataSharingEnabled()); - } - 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.admin.v1alpha.DisplayVideo360AdvertiserLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink other = (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAdvertiserId() - .equals(other.getAdvertiserId())) return false; - if (!getAdvertiserDisplayName() - .equals(other.getAdvertiserDisplayName())) return false; - if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; - if (hasAdsPersonalizationEnabled()) { - if (!getAdsPersonalizationEnabled() - .equals(other.getAdsPersonalizationEnabled())) return false; - } - if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; - if (hasCampaignDataSharingEnabled()) { - if (!getCampaignDataSharingEnabled() - .equals(other.getCampaignDataSharingEnabled())) return false; - } - if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; - if (hasCostDataSharingEnabled()) { - if (!getCostDataSharingEnabled() - .equals(other.getCostDataSharingEnabled())) 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) + ADVERTISER_ID_FIELD_NUMBER; - hash = (53 * hash) + getAdvertiserId().hashCode(); - hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); - if (hasAdsPersonalizationEnabled()) { - hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); - } - if (hasCampaignDataSharingEnabled()) { - hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); - } - if (hasCostDataSharingEnabled()) { - hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 property and a Display & Video 360 advertiser.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - advertiserId_ = ""; - advertiserDisplayName_ = ""; - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - campaignDataSharingEnabled_ = null; - if (campaignDataSharingEnabledBuilder_ != null) { - campaignDataSharingEnabledBuilder_.dispose(); - campaignDataSharingEnabledBuilder_ = null; - } - costDataSharingEnabled_ = null; - if (costDataSharingEnabledBuilder_ != null) { - costDataSharingEnabledBuilder_.dispose(); - costDataSharingEnabledBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink build() { - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink buildPartial() { - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result = new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.advertiserId_ = advertiserId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.advertiserDisplayName_ = advertiserDisplayName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_ == null - ? adsPersonalizationEnabled_ - : adsPersonalizationEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.campaignDataSharingEnabled_ = campaignDataSharingEnabledBuilder_ == null - ? campaignDataSharingEnabled_ - : campaignDataSharingEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.costDataSharingEnabled_ = costDataSharingEnabledBuilder_ == null - ? costDataSharingEnabled_ - : costDataSharingEnabledBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink other) { - if (other == com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAdvertiserId().isEmpty()) { - advertiserId_ = other.advertiserId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getAdvertiserDisplayName().isEmpty()) { - advertiserDisplayName_ = other.advertiserDisplayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasAdsPersonalizationEnabled()) { - mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); - } - if (other.hasCampaignDataSharingEnabled()) { - mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); - } - if (other.hasCostDataSharingEnabled()) { - mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - advertiserId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - advertiserDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getCampaignDataSharingEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getCostDataSharingEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
-     * resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
-     *
-     * Note: linkId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
-     * resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
-     *
-     * Note: linkId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
-     * resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
-     *
-     * Note: linkId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
-     * resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
-     *
-     * Note: linkId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.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. The resource name for this DisplayVideo360AdvertiserLink
-     * resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
-     *
-     * Note: linkId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object advertiserId_ = ""; - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The advertiserId. - */ - public java.lang.String getAdvertiserId() { - java.lang.Object ref = advertiserId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - advertiserId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for advertiserId. - */ - public com.google.protobuf.ByteString - getAdvertiserIdBytes() { - java.lang.Object ref = advertiserId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The advertiserId to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - advertiserId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearAdvertiserId() { - advertiserId_ = getDefaultInstance().getAdvertiserId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for advertiserId to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - advertiserId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object advertiserDisplayName_ = ""; - /** - *
-     * Output only. The display name of the Display & Video 360 Advertiser.
-     * 
- * - * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The advertiserDisplayName. - */ - public java.lang.String getAdvertiserDisplayName() { - java.lang.Object ref = advertiserDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - advertiserDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The display name of the Display & Video 360 Advertiser.
-     * 
- * - * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for advertiserDisplayName. - */ - public com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes() { - java.lang.Object ref = advertiserDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The display name of the Display & Video 360 Advertiser.
-     * 
- * - * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The advertiserDisplayName to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - advertiserDisplayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. The display name of the Display & Video 360 Advertiser.
-     * 
- * - * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearAdvertiserDisplayName() { - advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Output only. The display name of the Display & Video 360 Advertiser.
-     * 
- * - * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for advertiserDisplayName to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - advertiserDisplayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> adsPersonalizationEnabledBuilder_; - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return Whether the adsPersonalizationEnabled field is set. - */ - public boolean hasAdsPersonalizationEnabled() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - * @return The adsPersonalizationEnabled. - */ - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - if (adsPersonalizationEnabledBuilder_ == null) { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } else { - return adsPersonalizationEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adsPersonalizationEnabled_ = value; - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - public Builder setAdsPersonalizationEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = builderForValue.build(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - adsPersonalizationEnabled_ != null && - adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getAdsPersonalizationEnabledBuilder().mergeFrom(value); - } else { - adsPersonalizationEnabled_ = value; - } - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - public Builder clearAdsPersonalizationEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - if (adsPersonalizationEnabledBuilder_ != null) { - return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); - } else { - return adsPersonalizationEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getAdsPersonalizationEnabledFieldBuilder() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getAdsPersonalizationEnabled(), - getParentForChildren(), - isClean()); - adsPersonalizationEnabled_ = null; - } - return adsPersonalizationEnabledBuilder_; - } - - private com.google.protobuf.BoolValue campaignDataSharingEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> campaignDataSharingEnabledBuilder_; - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the campaignDataSharingEnabled field is set. - */ - public boolean hasCampaignDataSharingEnabled() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The campaignDataSharingEnabled. - */ - public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { - if (campaignDataSharingEnabledBuilder_ == null) { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } else { - return campaignDataSharingEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (campaignDataSharingEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - campaignDataSharingEnabled_ = value; - } else { - campaignDataSharingEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCampaignDataSharingEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabled_ = builderForValue.build(); - } else { - campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (campaignDataSharingEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - campaignDataSharingEnabled_ != null && - campaignDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCampaignDataSharingEnabledBuilder().mergeFrom(value); - } else { - campaignDataSharingEnabled_ = value; - } - } else { - campaignDataSharingEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearCampaignDataSharingEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - campaignDataSharingEnabled_ = null; - if (campaignDataSharingEnabledBuilder_ != null) { - campaignDataSharingEnabledBuilder_.dispose(); - campaignDataSharingEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { - if (campaignDataSharingEnabledBuilder_ != null) { - return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); - } else { - return campaignDataSharingEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360
-     * into the GA4 property. After link creation, this can only be updated from
-     * the Display & Video 360 product. If this field is not set on create, it
-     * will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCampaignDataSharingEnabledFieldBuilder() { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCampaignDataSharingEnabled(), - getParentForChildren(), - isClean()); - campaignDataSharingEnabled_ = null; - } - return campaignDataSharingEnabledBuilder_; - } - - private com.google.protobuf.BoolValue costDataSharingEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> costDataSharingEnabledBuilder_; - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the costDataSharingEnabled field is set. - */ - public boolean hasCostDataSharingEnabled() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The costDataSharingEnabled. - */ - public com.google.protobuf.BoolValue getCostDataSharingEnabled() { - if (costDataSharingEnabledBuilder_ == null) { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } else { - return costDataSharingEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (costDataSharingEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - costDataSharingEnabled_ = value; - } else { - costDataSharingEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCostDataSharingEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabled_ = builderForValue.build(); - } else { - costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (costDataSharingEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - costDataSharingEnabled_ != null && - costDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCostDataSharingEnabledBuilder().mergeFrom(value); - } else { - costDataSharingEnabled_ = value; - } - } else { - costDataSharingEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearCostDataSharingEnabled() { - bitField0_ = (bitField0_ & ~0x00000020); - costDataSharingEnabled_ = null; - if (costDataSharingEnabledBuilder_ != null) { - costDataSharingEnabledBuilder_.dispose(); - costDataSharingEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getCostDataSharingEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { - if (costDataSharingEnabledBuilder_ != null) { - return costDataSharingEnabledBuilder_.getMessageOrBuilder(); - } else { - return costDataSharingEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360 into
-     * the GA4 property. This can only be enabled if campaign_data_sharing_enabled
-     * is enabled. After link creation, this can only be updated from the Display
-     * & Video 360 product. If this field is not set on create, it will be
-     * defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCostDataSharingEnabledFieldBuilder() { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCostDataSharingEnabled(), - getParentForChildren(), - isClean()); - costDataSharingEnabled_ = null; - } - return costDataSharingEnabledBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) - private static final com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisplayVideo360AdvertiserLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java deleted file mode 100644 index 33ad0f6de102..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java +++ /dev/null @@ -1,2113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A proposal for a link between a GA4 property and a Display & Video 360
- * advertiser.
- *
- * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
- * Google Analytics admins approve inbound proposals while Display & Video 360
- * admins approve outbound proposals.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} - */ -public final class DisplayVideo360AdvertiserLinkProposal extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) - DisplayVideo360AdvertiserLinkProposalOrBuilder { -private static final long serialVersionUID = 0L; - // Use DisplayVideo360AdvertiserLinkProposal.newBuilder() to construct. - private DisplayVideo360AdvertiserLinkProposal(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisplayVideo360AdvertiserLinkProposal() { - name_ = ""; - advertiserId_ = ""; - advertiserDisplayName_ = ""; - validationEmail_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisplayVideo360AdvertiserLinkProposal(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. The resource name for this
-   * DisplayVideo360AdvertiserLinkProposal resource. Format:
-   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-   *
-   * Note: proposalId is not the Display & Video 360 Advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name for this
-   * DisplayVideo360AdvertiserLinkProposal resource. Format:
-   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-   *
-   * Note: proposalId is not the Display & Video 360 Advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADVERTISER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object advertiserId_ = ""; - /** - *
-   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The advertiserId. - */ - @java.lang.Override - public java.lang.String getAdvertiserId() { - java.lang.Object ref = advertiserId_; - 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(); - advertiserId_ = s; - return s; - } - } - /** - *
-   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for advertiserId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAdvertiserIdBytes() { - java.lang.Object ref = advertiserId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINK_PROPOSAL_STATUS_DETAILS_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.LinkProposalStatusDetails linkProposalStatusDetails_; - /** - *
-   * Output only. The status information for this link proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the linkProposalStatusDetails field is set. - */ - @java.lang.Override - public boolean hasLinkProposalStatusDetails() { - return linkProposalStatusDetails_ != null; - } - /** - *
-   * Output only. The status information for this link proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalStatusDetails. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getLinkProposalStatusDetails() { - return linkProposalStatusDetails_ == null ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() : linkProposalStatusDetails_; - } - /** - *
-   * Output only. The status information for this link proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder getLinkProposalStatusDetailsOrBuilder() { - return linkProposalStatusDetails_ == null ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() : linkProposalStatusDetails_; - } - - public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object advertiserDisplayName_ = ""; - /** - *
-   * Output only. The display name of the Display & Video Advertiser.
-   * Only populated for proposals that originated from Display & Video 360.
-   * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The advertiserDisplayName. - */ - @java.lang.Override - public java.lang.String getAdvertiserDisplayName() { - java.lang.Object ref = advertiserDisplayName_; - 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(); - advertiserDisplayName_ = s; - return s; - } - } - /** - *
-   * Output only. The display name of the Display & Video Advertiser.
-   * Only populated for proposals that originated from Display & Video 360.
-   * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for advertiserDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes() { - java.lang.Object ref = advertiserDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VALIDATION_EMAIL_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object validationEmail_ = ""; - /** - *
-   * Input only. On a proposal being sent to Display & Video 360, this field
-   * must be set to the email address of an admin on the target advertiser. This
-   * is used to verify that the Google Analytics admin is aware of at least one
-   * admin on the Display & Video 360 Advertiser. This does not restrict
-   * approval of the proposal to a single user. Any admin on the Display & Video
-   * 360 Advertiser may approve the proposal.
-   * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The validationEmail. - */ - @java.lang.Override - public java.lang.String getValidationEmail() { - java.lang.Object ref = validationEmail_; - 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(); - validationEmail_ = s; - return s; - } - } - /** - *
-   * Input only. On a proposal being sent to Display & Video 360, this field
-   * must be set to the email address of an admin on the target advertiser. This
-   * is used to verify that the Google Analytics admin is aware of at least one
-   * admin on the Display & Video 360 Advertiser. This does not restrict
-   * approval of the proposal to a single user. Any admin on the Display & Video
-   * 360 Advertiser may approve the proposal.
-   * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The bytes for validationEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValidationEmailBytes() { - java.lang.Object ref = validationEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validationEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 6; - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - /** - *
-   * Immutable. Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the adsPersonalizationEnabled field is set. - */ - @java.lang.Override - public boolean hasAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ != null; - } - /** - *
-   * Immutable. Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The adsPersonalizationEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - /** - *
-   * Immutable. Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - - public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 7; - private com.google.protobuf.BoolValue campaignDataSharingEnabled_; - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the campaignDataSharingEnabled field is set. - */ - @java.lang.Override - public boolean hasCampaignDataSharingEnabled() { - return campaignDataSharingEnabled_ != null; - } - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The campaignDataSharingEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - - public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 8; - private com.google.protobuf.BoolValue costDataSharingEnabled_; - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_sharing_enabled is enabled.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the costDataSharingEnabled field is set. - */ - @java.lang.Override - public boolean hasCostDataSharingEnabled() { - return costDataSharingEnabled_ != null; - } - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_sharing_enabled is enabled.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The costDataSharingEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCostDataSharingEnabled() { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_sharing_enabled is enabled.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - - 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(advertiserId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); - } - if (linkProposalStatusDetails_ != null) { - output.writeMessage(3, getLinkProposalStatusDetails()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, advertiserDisplayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationEmail_); - } - if (adsPersonalizationEnabled_ != null) { - output.writeMessage(6, getAdsPersonalizationEnabled()); - } - if (campaignDataSharingEnabled_ != null) { - output.writeMessage(7, getCampaignDataSharingEnabled()); - } - if (costDataSharingEnabled_ != null) { - output.writeMessage(8, getCostDataSharingEnabled()); - } - 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(advertiserId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); - } - if (linkProposalStatusDetails_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLinkProposalStatusDetails()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, advertiserDisplayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationEmail_); - } - if (adsPersonalizationEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAdsPersonalizationEnabled()); - } - if (campaignDataSharingEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCampaignDataSharingEnabled()); - } - if (costDataSharingEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getCostDataSharingEnabled()); - } - 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.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal other = (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAdvertiserId() - .equals(other.getAdvertiserId())) return false; - if (hasLinkProposalStatusDetails() != other.hasLinkProposalStatusDetails()) return false; - if (hasLinkProposalStatusDetails()) { - if (!getLinkProposalStatusDetails() - .equals(other.getLinkProposalStatusDetails())) return false; - } - if (!getAdvertiserDisplayName() - .equals(other.getAdvertiserDisplayName())) return false; - if (!getValidationEmail() - .equals(other.getValidationEmail())) return false; - if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; - if (hasAdsPersonalizationEnabled()) { - if (!getAdsPersonalizationEnabled() - .equals(other.getAdsPersonalizationEnabled())) return false; - } - if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; - if (hasCampaignDataSharingEnabled()) { - if (!getCampaignDataSharingEnabled() - .equals(other.getCampaignDataSharingEnabled())) return false; - } - if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; - if (hasCostDataSharingEnabled()) { - if (!getCostDataSharingEnabled() - .equals(other.getCostDataSharingEnabled())) 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) + ADVERTISER_ID_FIELD_NUMBER; - hash = (53 * hash) + getAdvertiserId().hashCode(); - if (hasLinkProposalStatusDetails()) { - hash = (37 * hash) + LINK_PROPOSAL_STATUS_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getLinkProposalStatusDetails().hashCode(); - } - hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); - hash = (37 * hash) + VALIDATION_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getValidationEmail().hashCode(); - if (hasAdsPersonalizationEnabled()) { - hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); - } - if (hasCampaignDataSharingEnabled()) { - hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); - } - if (hasCostDataSharingEnabled()) { - hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A proposal for a link between a GA4 property and a Display & Video 360
-   * advertiser.
-   *
-   * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
-   * Google Analytics admins approve inbound proposals while Display & Video 360
-   * admins approve outbound proposals.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - advertiserId_ = ""; - linkProposalStatusDetails_ = null; - if (linkProposalStatusDetailsBuilder_ != null) { - linkProposalStatusDetailsBuilder_.dispose(); - linkProposalStatusDetailsBuilder_ = null; - } - advertiserDisplayName_ = ""; - validationEmail_ = ""; - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - campaignDataSharingEnabled_ = null; - if (campaignDataSharingEnabledBuilder_ != null) { - campaignDataSharingEnabledBuilder_.dispose(); - campaignDataSharingEnabledBuilder_ = null; - } - costDataSharingEnabled_ = null; - if (costDataSharingEnabledBuilder_ != null) { - costDataSharingEnabledBuilder_.dispose(); - costDataSharingEnabledBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal build() { - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal buildPartial() { - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result = new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.advertiserId_ = advertiserId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.linkProposalStatusDetails_ = linkProposalStatusDetailsBuilder_ == null - ? linkProposalStatusDetails_ - : linkProposalStatusDetailsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.advertiserDisplayName_ = advertiserDisplayName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.validationEmail_ = validationEmail_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_ == null - ? adsPersonalizationEnabled_ - : adsPersonalizationEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.campaignDataSharingEnabled_ = campaignDataSharingEnabledBuilder_ == null - ? campaignDataSharingEnabled_ - : campaignDataSharingEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.costDataSharingEnabled_ = costDataSharingEnabledBuilder_ == null - ? costDataSharingEnabled_ - : costDataSharingEnabledBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) { - return mergeFrom((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal other) { - if (other == com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAdvertiserId().isEmpty()) { - advertiserId_ = other.advertiserId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasLinkProposalStatusDetails()) { - mergeLinkProposalStatusDetails(other.getLinkProposalStatusDetails()); - } - if (!other.getAdvertiserDisplayName().isEmpty()) { - advertiserDisplayName_ = other.advertiserDisplayName_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getValidationEmail().isEmpty()) { - validationEmail_ = other.validationEmail_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasAdsPersonalizationEnabled()) { - mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); - } - if (other.hasCampaignDataSharingEnabled()) { - mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); - } - if (other.hasCostDataSharingEnabled()) { - mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - advertiserId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getLinkProposalStatusDetailsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - advertiserDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - validationEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getCampaignDataSharingEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 66: { - input.readMessage( - getCostDataSharingEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. The resource name for this
-     * DisplayVideo360AdvertiserLinkProposal resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-     *
-     * Note: proposalId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name for this
-     * DisplayVideo360AdvertiserLinkProposal resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-     *
-     * Note: proposalId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name for this
-     * DisplayVideo360AdvertiserLinkProposal resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-     *
-     * Note: proposalId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name for this
-     * DisplayVideo360AdvertiserLinkProposal resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-     *
-     * Note: proposalId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.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. The resource name for this
-     * DisplayVideo360AdvertiserLinkProposal resource. Format:
-     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-     *
-     * Note: proposalId is not the Display & Video 360 Advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object advertiserId_ = ""; - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The advertiserId. - */ - public java.lang.String getAdvertiserId() { - java.lang.Object ref = advertiserId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - advertiserId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for advertiserId. - */ - public com.google.protobuf.ByteString - getAdvertiserIdBytes() { - java.lang.Object ref = advertiserId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The advertiserId to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - advertiserId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearAdvertiserId() { - advertiserId_ = getDefaultInstance().getAdvertiserId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for advertiserId to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - advertiserId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.LinkProposalStatusDetails linkProposalStatusDetails_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder> linkProposalStatusDetailsBuilder_; - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the linkProposalStatusDetails field is set. - */ - public boolean hasLinkProposalStatusDetails() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalStatusDetails. - */ - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getLinkProposalStatusDetails() { - if (linkProposalStatusDetailsBuilder_ == null) { - return linkProposalStatusDetails_ == null ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() : linkProposalStatusDetails_; - } else { - return linkProposalStatusDetailsBuilder_.getMessage(); - } - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setLinkProposalStatusDetails(com.google.analytics.admin.v1alpha.LinkProposalStatusDetails value) { - if (linkProposalStatusDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - linkProposalStatusDetails_ = value; - } else { - linkProposalStatusDetailsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setLinkProposalStatusDetails( - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder builderForValue) { - if (linkProposalStatusDetailsBuilder_ == null) { - linkProposalStatusDetails_ = builderForValue.build(); - } else { - linkProposalStatusDetailsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeLinkProposalStatusDetails(com.google.analytics.admin.v1alpha.LinkProposalStatusDetails value) { - if (linkProposalStatusDetailsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - linkProposalStatusDetails_ != null && - linkProposalStatusDetails_ != com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance()) { - getLinkProposalStatusDetailsBuilder().mergeFrom(value); - } else { - linkProposalStatusDetails_ = value; - } - } else { - linkProposalStatusDetailsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearLinkProposalStatusDetails() { - bitField0_ = (bitField0_ & ~0x00000004); - linkProposalStatusDetails_ = null; - if (linkProposalStatusDetailsBuilder_ != null) { - linkProposalStatusDetailsBuilder_.dispose(); - linkProposalStatusDetailsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder getLinkProposalStatusDetailsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getLinkProposalStatusDetailsFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder getLinkProposalStatusDetailsOrBuilder() { - if (linkProposalStatusDetailsBuilder_ != null) { - return linkProposalStatusDetailsBuilder_.getMessageOrBuilder(); - } else { - return linkProposalStatusDetails_ == null ? - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() : linkProposalStatusDetails_; - } - } - /** - *
-     * Output only. The status information for this link proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder> - getLinkProposalStatusDetailsFieldBuilder() { - if (linkProposalStatusDetailsBuilder_ == null) { - linkProposalStatusDetailsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder>( - getLinkProposalStatusDetails(), - getParentForChildren(), - isClean()); - linkProposalStatusDetails_ = null; - } - return linkProposalStatusDetailsBuilder_; - } - - private java.lang.Object advertiserDisplayName_ = ""; - /** - *
-     * Output only. The display name of the Display & Video Advertiser.
-     * Only populated for proposals that originated from Display & Video 360.
-     * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The advertiserDisplayName. - */ - public java.lang.String getAdvertiserDisplayName() { - java.lang.Object ref = advertiserDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - advertiserDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The display name of the Display & Video Advertiser.
-     * Only populated for proposals that originated from Display & Video 360.
-     * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for advertiserDisplayName. - */ - public com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes() { - java.lang.Object ref = advertiserDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The display name of the Display & Video Advertiser.
-     * Only populated for proposals that originated from Display & Video 360.
-     * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The advertiserDisplayName to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - advertiserDisplayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. The display name of the Display & Video Advertiser.
-     * Only populated for proposals that originated from Display & Video 360.
-     * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearAdvertiserDisplayName() { - advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Output only. The display name of the Display & Video Advertiser.
-     * Only populated for proposals that originated from Display & Video 360.
-     * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for advertiserDisplayName to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - advertiserDisplayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object validationEmail_ = ""; - /** - *
-     * Input only. On a proposal being sent to Display & Video 360, this field
-     * must be set to the email address of an admin on the target advertiser. This
-     * is used to verify that the Google Analytics admin is aware of at least one
-     * admin on the Display & Video 360 Advertiser. This does not restrict
-     * approval of the proposal to a single user. Any admin on the Display & Video
-     * 360 Advertiser may approve the proposal.
-     * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The validationEmail. - */ - public java.lang.String getValidationEmail() { - java.lang.Object ref = validationEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validationEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Input only. On a proposal being sent to Display & Video 360, this field
-     * must be set to the email address of an admin on the target advertiser. This
-     * is used to verify that the Google Analytics admin is aware of at least one
-     * admin on the Display & Video 360 Advertiser. This does not restrict
-     * approval of the proposal to a single user. Any admin on the Display & Video
-     * 360 Advertiser may approve the proposal.
-     * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The bytes for validationEmail. - */ - public com.google.protobuf.ByteString - getValidationEmailBytes() { - java.lang.Object ref = validationEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validationEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Input only. On a proposal being sent to Display & Video 360, this field
-     * must be set to the email address of an admin on the target advertiser. This
-     * is used to verify that the Google Analytics admin is aware of at least one
-     * admin on the Display & Video 360 Advertiser. This does not restrict
-     * approval of the proposal to a single user. Any admin on the Display & Video
-     * 360 Advertiser may approve the proposal.
-     * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param value The validationEmail to set. - * @return This builder for chaining. - */ - public Builder setValidationEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - validationEmail_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Input only. On a proposal being sent to Display & Video 360, this field
-     * must be set to the email address of an admin on the target advertiser. This
-     * is used to verify that the Google Analytics admin is aware of at least one
-     * admin on the Display & Video 360 Advertiser. This does not restrict
-     * approval of the proposal to a single user. Any admin on the Display & Video
-     * 360 Advertiser may approve the proposal.
-     * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearValidationEmail() { - validationEmail_ = getDefaultInstance().getValidationEmail(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Input only. On a proposal being sent to Display & Video 360, this field
-     * must be set to the email address of an admin on the target advertiser. This
-     * is used to verify that the Google Analytics admin is aware of at least one
-     * admin on the Display & Video 360 Advertiser. This does not restrict
-     * approval of the proposal to a single user. Any admin on the Display & Video
-     * 360 Advertiser may approve the proposal.
-     * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @param value The bytes for validationEmail to set. - * @return This builder for chaining. - */ - public Builder setValidationEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - validationEmail_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> adsPersonalizationEnabledBuilder_; - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the adsPersonalizationEnabled field is set. - */ - public boolean hasAdsPersonalizationEnabled() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The adsPersonalizationEnabled. - */ - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - if (adsPersonalizationEnabledBuilder_ == null) { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } else { - return adsPersonalizationEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adsPersonalizationEnabled_ = value; - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setAdsPersonalizationEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = builderForValue.build(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - adsPersonalizationEnabled_ != null && - adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getAdsPersonalizationEnabledBuilder().mergeFrom(value); - } else { - adsPersonalizationEnabled_ = value; - } - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearAdsPersonalizationEnabled() { - bitField0_ = (bitField0_ & ~0x00000020); - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - if (adsPersonalizationEnabledBuilder_ != null) { - return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); - } else { - return adsPersonalizationEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - } - /** - *
-     * Immutable. Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getAdsPersonalizationEnabledFieldBuilder() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getAdsPersonalizationEnabled(), - getParentForChildren(), - isClean()); - adsPersonalizationEnabled_ = null; - } - return adsPersonalizationEnabledBuilder_; - } - - private com.google.protobuf.BoolValue campaignDataSharingEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> campaignDataSharingEnabledBuilder_; - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the campaignDataSharingEnabled field is set. - */ - public boolean hasCampaignDataSharingEnabled() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The campaignDataSharingEnabled. - */ - public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { - if (campaignDataSharingEnabledBuilder_ == null) { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } else { - return campaignDataSharingEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (campaignDataSharingEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - campaignDataSharingEnabled_ = value; - } else { - campaignDataSharingEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCampaignDataSharingEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabled_ = builderForValue.build(); - } else { - campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (campaignDataSharingEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - campaignDataSharingEnabled_ != null && - campaignDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCampaignDataSharingEnabledBuilder().mergeFrom(value); - } else { - campaignDataSharingEnabled_ = value; - } - } else { - campaignDataSharingEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearCampaignDataSharingEnabled() { - bitField0_ = (bitField0_ & ~0x00000040); - campaignDataSharingEnabled_ = null; - if (campaignDataSharingEnabledBuilder_ != null) { - campaignDataSharingEnabledBuilder_.dispose(); - campaignDataSharingEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { - if (campaignDataSharingEnabledBuilder_ != null) { - return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); - } else { - return campaignDataSharingEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - } - /** - *
-     * Immutable. Enables the import of campaign data from Display & Video 360.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCampaignDataSharingEnabledFieldBuilder() { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCampaignDataSharingEnabled(), - getParentForChildren(), - isClean()); - campaignDataSharingEnabled_ = null; - } - return campaignDataSharingEnabledBuilder_; - } - - private com.google.protobuf.BoolValue costDataSharingEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> costDataSharingEnabledBuilder_; - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the costDataSharingEnabled field is set. - */ - public boolean hasCostDataSharingEnabled() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The costDataSharingEnabled. - */ - public com.google.protobuf.BoolValue getCostDataSharingEnabled() { - if (costDataSharingEnabledBuilder_ == null) { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } else { - return costDataSharingEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (costDataSharingEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - costDataSharingEnabled_ = value; - } else { - costDataSharingEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCostDataSharingEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabled_ = builderForValue.build(); - } else { - costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (costDataSharingEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - costDataSharingEnabled_ != null && - costDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCostDataSharingEnabledBuilder().mergeFrom(value); - } else { - costDataSharingEnabled_ = value; - } - } else { - costDataSharingEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearCostDataSharingEnabled() { - bitField0_ = (bitField0_ & ~0x00000080); - costDataSharingEnabled_ = null; - if (costDataSharingEnabledBuilder_ != null) { - costDataSharingEnabledBuilder_.dispose(); - costDataSharingEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getCostDataSharingEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { - if (costDataSharingEnabledBuilder_ != null) { - return costDataSharingEnabledBuilder_.getMessageOrBuilder(); - } else { - return costDataSharingEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - } - /** - *
-     * Immutable. Enables the import of cost data from Display & Video 360.
-     * This can only be enabled if campaign_data_sharing_enabled is enabled.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCostDataSharingEnabledFieldBuilder() { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCostDataSharingEnabled(), - getParentForChildren(), - isClean()); - costDataSharingEnabled_ = null; - } - return costDataSharingEnabledBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) - private static final com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); - } - - public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisplayVideo360AdvertiserLinkProposal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java deleted file mode 100644 index 2b76dd1894ae..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java +++ /dev/null @@ -1,229 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface DisplayVideo360AdvertiserLinkProposalOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The resource name for this
-   * DisplayVideo360AdvertiserLinkProposal resource. Format:
-   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-   *
-   * Note: proposalId is not the Display & Video 360 Advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. The resource name for this
-   * DisplayVideo360AdvertiserLinkProposal resource. Format:
-   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
-   *
-   * Note: proposalId is not the Display & Video 360 Advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The advertiserId. - */ - java.lang.String getAdvertiserId(); - /** - *
-   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for advertiserId. - */ - com.google.protobuf.ByteString - getAdvertiserIdBytes(); - - /** - *
-   * Output only. The status information for this link proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the linkProposalStatusDetails field is set. - */ - boolean hasLinkProposalStatusDetails(); - /** - *
-   * Output only. The status information for this link proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalStatusDetails. - */ - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getLinkProposalStatusDetails(); - /** - *
-   * Output only. The status information for this link proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder getLinkProposalStatusDetailsOrBuilder(); - - /** - *
-   * Output only. The display name of the Display & Video Advertiser.
-   * Only populated for proposals that originated from Display & Video 360.
-   * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The advertiserDisplayName. - */ - java.lang.String getAdvertiserDisplayName(); - /** - *
-   * Output only. The display name of the Display & Video Advertiser.
-   * Only populated for proposals that originated from Display & Video 360.
-   * 
- * - * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for advertiserDisplayName. - */ - com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes(); - - /** - *
-   * Input only. On a proposal being sent to Display & Video 360, this field
-   * must be set to the email address of an admin on the target advertiser. This
-   * is used to verify that the Google Analytics admin is aware of at least one
-   * admin on the Display & Video 360 Advertiser. This does not restrict
-   * approval of the proposal to a single user. Any admin on the Display & Video
-   * 360 Advertiser may approve the proposal.
-   * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The validationEmail. - */ - java.lang.String getValidationEmail(); - /** - *
-   * Input only. On a proposal being sent to Display & Video 360, this field
-   * must be set to the email address of an admin on the target advertiser. This
-   * is used to verify that the Google Analytics admin is aware of at least one
-   * admin on the Display & Video 360 Advertiser. This does not restrict
-   * approval of the proposal to a single user. Any admin on the Display & Video
-   * 360 Advertiser may approve the proposal.
-   * 
- * - * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; - * @return The bytes for validationEmail. - */ - com.google.protobuf.ByteString - getValidationEmailBytes(); - - /** - *
-   * Immutable. Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the adsPersonalizationEnabled field is set. - */ - boolean hasAdsPersonalizationEnabled(); - /** - *
-   * Immutable. Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The adsPersonalizationEnabled. - */ - com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); - /** - *
-   * Immutable. Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); - - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the campaignDataSharingEnabled field is set. - */ - boolean hasCampaignDataSharingEnabled(); - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The campaignDataSharingEnabled. - */ - com.google.protobuf.BoolValue getCampaignDataSharingEnabled(); - /** - *
-   * Immutable. Enables the import of campaign data from Display & Video 360.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; - */ - com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder(); - - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_sharing_enabled is enabled.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the costDataSharingEnabled field is set. - */ - boolean hasCostDataSharingEnabled(); - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_sharing_enabled is enabled.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The costDataSharingEnabled. - */ - com.google.protobuf.BoolValue getCostDataSharingEnabled(); - /** - *
-   * Immutable. Enables the import of cost data from Display & Video 360.
-   * This can only be enabled if campaign_data_sharing_enabled is enabled.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; - */ - com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateAndEdit.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateAndEdit.java deleted file mode 100644 index 692ec609e9bb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateAndEdit.java +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/event_create_and_edit.proto - -package com.google.analytics.admin.v1alpha; - -public final class EventCreateAndEdit { - private EventCreateAndEdit() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n:google/analytics/admin/v1alpha/event_c" + - "reate_and_edit.proto\022\036google.analytics.a" + - "dmin.v1alpha\032\037google/api/field_behavior." + - "proto\032\031google/api/resource.proto\"K\n\021Para" + - "meterMutation\022\027\n\tparameter\030\001 \001(\tB\004\342A\001\002\022\035" + - "\n\017parameter_value\030\002 \001(\tB\004\342A\001\002\"\225\003\n\017EventC" + - "reateRule\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\037\n\021destina" + - "tion_event\030\002 \001(\tB\004\342A\001\002\022Q\n\020event_conditio" + - "ns\030\003 \003(\01321.google.analytics.admin.v1alph" + - "a.MatchingConditionB\004\342A\001\002\022\036\n\026source_copy" + - "_parameters\030\004 \001(\010\022N\n\023parameter_mutations" + - "\030\005 \003(\01321.google.analytics.admin.v1alpha." + - "ParameterMutation:\211\001\352A\205\001\n-analyticsadmin" + - ".googleapis.com/EventCreateRule\022Tpropert" + - "ies/{property}/dataStreams/{data_stream}" + - "/eventCreateRules/{event_create_rule}\"\260\004" + - "\n\021MatchingCondition\022\023\n\005field\030\001 \001(\tB\004\342A\001\002" + - "\022_\n\017comparison_type\030\002 \001(\0162@.google.analy" + - "tics.admin.v1alpha.MatchingCondition.Com" + - "parisonTypeB\004\342A\001\002\022\023\n\005value\030\003 \001(\tB\004\342A\001\002\022\017" + - "\n\007negated\030\004 \001(\010\"\376\002\n\016ComparisonType\022\037\n\033CO" + - "MPARISON_TYPE_UNSPECIFIED\020\000\022\n\n\006EQUALS\020\001\022" + - "\033\n\027EQUALS_CASE_INSENSITIVE\020\002\022\014\n\010CONTAINS" + - "\020\003\022\035\n\031CONTAINS_CASE_INSENSITIVE\020\004\022\017\n\013STA" + - "RTS_WITH\020\005\022 \n\034STARTS_WITH_CASE_INSENSITI" + - "VE\020\006\022\r\n\tENDS_WITH\020\007\022\036\n\032ENDS_WITH_CASE_IN" + - "SENSITIVE\020\010\022\020\n\014GREATER_THAN\020\t\022\031\n\025GREATER" + - "_THAN_OR_EQUAL\020\n\022\r\n\tLESS_THAN\020\013\022\026\n\022LESS_" + - "THAN_OR_EQUAL\020\014\022\026\n\022REGULAR_EXPRESSION\020\r\022" + - "\'\n#REGULAR_EXPRESSION_CASE_INSENSITIVE\020\016" + - "Bf\n\"com.google.analytics.admin.v1alphaP\001" + - "Z>cloud.google.com/go/analytics/admin/ap" + - "iv1alpha/adminpb;adminpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor, - new java.lang.String[] { "Parameter", "ParameterValue", }); - internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor, - new java.lang.String[] { "Name", "DestinationEvent", "EventConditions", "SourceCopyParameters", "ParameterMutations", }); - internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor, - new java.lang.String[] { "Field", "ComparisonType", "Value", "Negated", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRule.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRule.java deleted file mode 100644 index d487ac652598..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRule.java +++ /dev/null @@ -1,1858 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/event_create_and_edit.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * An Event Create Rule defines conditions that will trigger the creation
- * of an entirely new event based upon matched criteria of a source event.
- * Additional mutations of the parameters from the source event can be defined.
- *
- * Unlike Event Edit rules, Event Creation Rules have no defined order.  They
- * will all be run independently.
- *
- * Event Edit and Event Create rules can't be used to modify an event created
- * from an Event Create rule.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.EventCreateRule} - */ -public final class EventCreateRule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.EventCreateRule) - EventCreateRuleOrBuilder { -private static final long serialVersionUID = 0L; - // Use EventCreateRule.newBuilder() to construct. - private EventCreateRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventCreateRule() { - name_ = ""; - destinationEvent_ = ""; - eventConditions_ = java.util.Collections.emptyList(); - parameterMutations_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EventCreateRule(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.EventCreateRule.class, com.google.analytics.admin.v1alpha.EventCreateRule.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this EventCreateRule resource.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this EventCreateRule resource.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESTINATION_EVENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object destinationEvent_ = ""; - /** - *
-   * Required. The name of the new event to be created.
-   *
-   * This value must:
-   * * be less than 40 characters
-   * * consist only of letters, digits or _ (underscores)
-   * * start with a letter
-   * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The destinationEvent. - */ - @java.lang.Override - public java.lang.String getDestinationEvent() { - java.lang.Object ref = destinationEvent_; - 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(); - destinationEvent_ = s; - return s; - } - } - /** - *
-   * Required. The name of the new event to be created.
-   *
-   * This value must:
-   * * be less than 40 characters
-   * * consist only of letters, digits or _ (underscores)
-   * * start with a letter
-   * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for destinationEvent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDestinationEventBytes() { - java.lang.Object ref = destinationEvent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destinationEvent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_CONDITIONS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List eventConditions_; - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List getEventConditionsList() { - return eventConditions_; - } - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public java.util.List - getEventConditionsOrBuilderList() { - return eventConditions_; - } - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public int getEventConditionsCount() { - return eventConditions_.size(); - } - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MatchingCondition getEventConditions(int index) { - return eventConditions_.get(index); - } - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder getEventConditionsOrBuilder( - int index) { - return eventConditions_.get(index); - } - - public static final int SOURCE_COPY_PARAMETERS_FIELD_NUMBER = 4; - private boolean sourceCopyParameters_ = false; - /** - *
-   * If true, the source parameters are copied to the new event.
-   * If false, or unset, all non-internal parameters are not copied from the
-   * source event. Parameter mutations are applied after the parameters have
-   * been copied.
-   * 
- * - * bool source_copy_parameters = 4; - * @return The sourceCopyParameters. - */ - @java.lang.Override - public boolean getSourceCopyParameters() { - return sourceCopyParameters_; - } - - public static final int PARAMETER_MUTATIONS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private java.util.List parameterMutations_; - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - @java.lang.Override - public java.util.List getParameterMutationsList() { - return parameterMutations_; - } - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - @java.lang.Override - public java.util.List - getParameterMutationsOrBuilderList() { - return parameterMutations_; - } - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - @java.lang.Override - public int getParameterMutationsCount() { - return parameterMutations_.size(); - } - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ParameterMutation getParameterMutations(int index) { - return parameterMutations_.get(index); - } - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder getParameterMutationsOrBuilder( - int index) { - return parameterMutations_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(destinationEvent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destinationEvent_); - } - for (int i = 0; i < eventConditions_.size(); i++) { - output.writeMessage(3, eventConditions_.get(i)); - } - if (sourceCopyParameters_ != false) { - output.writeBool(4, sourceCopyParameters_); - } - for (int i = 0; i < parameterMutations_.size(); i++) { - output.writeMessage(5, parameterMutations_.get(i)); - } - 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(destinationEvent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destinationEvent_); - } - for (int i = 0; i < eventConditions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, eventConditions_.get(i)); - } - if (sourceCopyParameters_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, sourceCopyParameters_); - } - for (int i = 0; i < parameterMutations_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, parameterMutations_.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.admin.v1alpha.EventCreateRule)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.EventCreateRule other = (com.google.analytics.admin.v1alpha.EventCreateRule) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDestinationEvent() - .equals(other.getDestinationEvent())) return false; - if (!getEventConditionsList() - .equals(other.getEventConditionsList())) return false; - if (getSourceCopyParameters() - != other.getSourceCopyParameters()) return false; - if (!getParameterMutationsList() - .equals(other.getParameterMutationsList())) 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) + DESTINATION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getDestinationEvent().hashCode(); - if (getEventConditionsCount() > 0) { - hash = (37 * hash) + EVENT_CONDITIONS_FIELD_NUMBER; - hash = (53 * hash) + getEventConditionsList().hashCode(); - } - hash = (37 * hash) + SOURCE_COPY_PARAMETERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSourceCopyParameters()); - if (getParameterMutationsCount() > 0) { - hash = (37 * hash) + PARAMETER_MUTATIONS_FIELD_NUMBER; - hash = (53 * hash) + getParameterMutationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.EventCreateRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.EventCreateRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.EventCreateRule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.EventCreateRule 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 Event Create Rule defines conditions that will trigger the creation
-   * of an entirely new event based upon matched criteria of a source event.
-   * Additional mutations of the parameters from the source event can be defined.
-   *
-   * Unlike Event Edit rules, Event Creation Rules have no defined order.  They
-   * will all be run independently.
-   *
-   * Event Edit and Event Create rules can't be used to modify an event created
-   * from an Event Create rule.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.EventCreateRule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.EventCreateRule) - com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_EventCreateRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.EventCreateRule.class, com.google.analytics.admin.v1alpha.EventCreateRule.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.EventCreateRule.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - destinationEvent_ = ""; - if (eventConditionsBuilder_ == null) { - eventConditions_ = java.util.Collections.emptyList(); - } else { - eventConditions_ = null; - eventConditionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - sourceCopyParameters_ = false; - if (parameterMutationsBuilder_ == null) { - parameterMutations_ = java.util.Collections.emptyList(); - } else { - parameterMutations_ = null; - parameterMutationsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_EventCreateRule_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule build() { - com.google.analytics.admin.v1alpha.EventCreateRule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule buildPartial() { - com.google.analytics.admin.v1alpha.EventCreateRule result = new com.google.analytics.admin.v1alpha.EventCreateRule(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.EventCreateRule result) { - if (eventConditionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - eventConditions_ = java.util.Collections.unmodifiableList(eventConditions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.eventConditions_ = eventConditions_; - } else { - result.eventConditions_ = eventConditionsBuilder_.build(); - } - if (parameterMutationsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - parameterMutations_ = java.util.Collections.unmodifiableList(parameterMutations_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.parameterMutations_ = parameterMutations_; - } else { - result.parameterMutations_ = parameterMutationsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.EventCreateRule result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.destinationEvent_ = destinationEvent_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.sourceCopyParameters_ = sourceCopyParameters_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.EventCreateRule) { - return mergeFrom((com.google.analytics.admin.v1alpha.EventCreateRule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.EventCreateRule other) { - if (other == com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDestinationEvent().isEmpty()) { - destinationEvent_ = other.destinationEvent_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (eventConditionsBuilder_ == null) { - if (!other.eventConditions_.isEmpty()) { - if (eventConditions_.isEmpty()) { - eventConditions_ = other.eventConditions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureEventConditionsIsMutable(); - eventConditions_.addAll(other.eventConditions_); - } - onChanged(); - } - } else { - if (!other.eventConditions_.isEmpty()) { - if (eventConditionsBuilder_.isEmpty()) { - eventConditionsBuilder_.dispose(); - eventConditionsBuilder_ = null; - eventConditions_ = other.eventConditions_; - bitField0_ = (bitField0_ & ~0x00000004); - eventConditionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventConditionsFieldBuilder() : null; - } else { - eventConditionsBuilder_.addAllMessages(other.eventConditions_); - } - } - } - if (other.getSourceCopyParameters() != false) { - setSourceCopyParameters(other.getSourceCopyParameters()); - } - if (parameterMutationsBuilder_ == null) { - if (!other.parameterMutations_.isEmpty()) { - if (parameterMutations_.isEmpty()) { - parameterMutations_ = other.parameterMutations_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureParameterMutationsIsMutable(); - parameterMutations_.addAll(other.parameterMutations_); - } - onChanged(); - } - } else { - if (!other.parameterMutations_.isEmpty()) { - if (parameterMutationsBuilder_.isEmpty()) { - parameterMutationsBuilder_.dispose(); - parameterMutationsBuilder_ = null; - parameterMutations_ = other.parameterMutations_; - bitField0_ = (bitField0_ & ~0x00000010); - parameterMutationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getParameterMutationsFieldBuilder() : null; - } else { - parameterMutationsBuilder_.addAllMessages(other.parameterMutations_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - destinationEvent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.analytics.admin.v1alpha.MatchingCondition m = - input.readMessage( - com.google.analytics.admin.v1alpha.MatchingCondition.parser(), - extensionRegistry); - if (eventConditionsBuilder_ == null) { - ensureEventConditionsIsMutable(); - eventConditions_.add(m); - } else { - eventConditionsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: { - sourceCopyParameters_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - com.google.analytics.admin.v1alpha.ParameterMutation m = - input.readMessage( - com.google.analytics.admin.v1alpha.ParameterMutation.parser(), - extensionRegistry); - if (parameterMutationsBuilder_ == null) { - ensureParameterMutationsIsMutable(); - parameterMutations_.add(m); - } else { - parameterMutationsBuilder_.addMessage(m); - } - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this EventCreateRule resource.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this EventCreateRule resource.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this EventCreateRule resource.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this EventCreateRule resource.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-     * 
- * - * string name = 1 [(.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. Resource name for this EventCreateRule resource.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object destinationEvent_ = ""; - /** - *
-     * Required. The name of the new event to be created.
-     *
-     * This value must:
-     * * be less than 40 characters
-     * * consist only of letters, digits or _ (underscores)
-     * * start with a letter
-     * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The destinationEvent. - */ - public java.lang.String getDestinationEvent() { - java.lang.Object ref = destinationEvent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - destinationEvent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the new event to be created.
-     *
-     * This value must:
-     * * be less than 40 characters
-     * * consist only of letters, digits or _ (underscores)
-     * * start with a letter
-     * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for destinationEvent. - */ - public com.google.protobuf.ByteString - getDestinationEventBytes() { - java.lang.Object ref = destinationEvent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - destinationEvent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the new event to be created.
-     *
-     * This value must:
-     * * be less than 40 characters
-     * * consist only of letters, digits or _ (underscores)
-     * * start with a letter
-     * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The destinationEvent to set. - * @return This builder for chaining. - */ - public Builder setDestinationEvent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - destinationEvent_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the new event to be created.
-     *
-     * This value must:
-     * * be less than 40 characters
-     * * consist only of letters, digits or _ (underscores)
-     * * start with a letter
-     * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDestinationEvent() { - destinationEvent_ = getDefaultInstance().getDestinationEvent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the new event to be created.
-     *
-     * This value must:
-     * * be less than 40 characters
-     * * consist only of letters, digits or _ (underscores)
-     * * start with a letter
-     * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for destinationEvent to set. - * @return This builder for chaining. - */ - public Builder setDestinationEventBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - destinationEvent_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List eventConditions_ = - java.util.Collections.emptyList(); - private void ensureEventConditionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - eventConditions_ = new java.util.ArrayList(eventConditions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.MatchingCondition, com.google.analytics.admin.v1alpha.MatchingCondition.Builder, com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder> eventConditionsBuilder_; - - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List getEventConditionsList() { - if (eventConditionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(eventConditions_); - } else { - return eventConditionsBuilder_.getMessageList(); - } - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public int getEventConditionsCount() { - if (eventConditionsBuilder_ == null) { - return eventConditions_.size(); - } else { - return eventConditionsBuilder_.getCount(); - } - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MatchingCondition getEventConditions(int index) { - if (eventConditionsBuilder_ == null) { - return eventConditions_.get(index); - } else { - return eventConditionsBuilder_.getMessage(index); - } - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEventConditions( - int index, com.google.analytics.admin.v1alpha.MatchingCondition value) { - if (eventConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventConditionsIsMutable(); - eventConditions_.set(index, value); - onChanged(); - } else { - eventConditionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEventConditions( - int index, com.google.analytics.admin.v1alpha.MatchingCondition.Builder builderForValue) { - if (eventConditionsBuilder_ == null) { - ensureEventConditionsIsMutable(); - eventConditions_.set(index, builderForValue.build()); - onChanged(); - } else { - eventConditionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addEventConditions(com.google.analytics.admin.v1alpha.MatchingCondition value) { - if (eventConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventConditionsIsMutable(); - eventConditions_.add(value); - onChanged(); - } else { - eventConditionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addEventConditions( - int index, com.google.analytics.admin.v1alpha.MatchingCondition value) { - if (eventConditionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventConditionsIsMutable(); - eventConditions_.add(index, value); - onChanged(); - } else { - eventConditionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addEventConditions( - com.google.analytics.admin.v1alpha.MatchingCondition.Builder builderForValue) { - if (eventConditionsBuilder_ == null) { - ensureEventConditionsIsMutable(); - eventConditions_.add(builderForValue.build()); - onChanged(); - } else { - eventConditionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addEventConditions( - int index, com.google.analytics.admin.v1alpha.MatchingCondition.Builder builderForValue) { - if (eventConditionsBuilder_ == null) { - ensureEventConditionsIsMutable(); - eventConditions_.add(index, builderForValue.build()); - onChanged(); - } else { - eventConditionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder addAllEventConditions( - java.lang.Iterable values) { - if (eventConditionsBuilder_ == null) { - ensureEventConditionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventConditions_); - onChanged(); - } else { - eventConditionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearEventConditions() { - if (eventConditionsBuilder_ == null) { - eventConditions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - eventConditionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder removeEventConditions(int index) { - if (eventConditionsBuilder_ == null) { - ensureEventConditionsIsMutable(); - eventConditions_.remove(index); - onChanged(); - } else { - eventConditionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MatchingCondition.Builder getEventConditionsBuilder( - int index) { - return getEventConditionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder getEventConditionsOrBuilder( - int index) { - if (eventConditionsBuilder_ == null) { - return eventConditions_.get(index); } else { - return eventConditionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getEventConditionsOrBuilderList() { - if (eventConditionsBuilder_ != null) { - return eventConditionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(eventConditions_); - } - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MatchingCondition.Builder addEventConditionsBuilder() { - return getEventConditionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance()); - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MatchingCondition.Builder addEventConditionsBuilder( - int index) { - return getEventConditionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance()); - } - /** - *
-     * Required. Must have at least one condition, and can have up to 10 max.
-     * Conditions on the source event must match for this rule to be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - public java.util.List - getEventConditionsBuilderList() { - return getEventConditionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.MatchingCondition, com.google.analytics.admin.v1alpha.MatchingCondition.Builder, com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder> - getEventConditionsFieldBuilder() { - if (eventConditionsBuilder_ == null) { - eventConditionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.MatchingCondition, com.google.analytics.admin.v1alpha.MatchingCondition.Builder, com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder>( - eventConditions_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - eventConditions_ = null; - } - return eventConditionsBuilder_; - } - - private boolean sourceCopyParameters_ ; - /** - *
-     * If true, the source parameters are copied to the new event.
-     * If false, or unset, all non-internal parameters are not copied from the
-     * source event. Parameter mutations are applied after the parameters have
-     * been copied.
-     * 
- * - * bool source_copy_parameters = 4; - * @return The sourceCopyParameters. - */ - @java.lang.Override - public boolean getSourceCopyParameters() { - return sourceCopyParameters_; - } - /** - *
-     * If true, the source parameters are copied to the new event.
-     * If false, or unset, all non-internal parameters are not copied from the
-     * source event. Parameter mutations are applied after the parameters have
-     * been copied.
-     * 
- * - * bool source_copy_parameters = 4; - * @param value The sourceCopyParameters to set. - * @return This builder for chaining. - */ - public Builder setSourceCopyParameters(boolean value) { - - sourceCopyParameters_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * If true, the source parameters are copied to the new event.
-     * If false, or unset, all non-internal parameters are not copied from the
-     * source event. Parameter mutations are applied after the parameters have
-     * been copied.
-     * 
- * - * bool source_copy_parameters = 4; - * @return This builder for chaining. - */ - public Builder clearSourceCopyParameters() { - bitField0_ = (bitField0_ & ~0x00000008); - sourceCopyParameters_ = false; - onChanged(); - return this; - } - - private java.util.List parameterMutations_ = - java.util.Collections.emptyList(); - private void ensureParameterMutationsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - parameterMutations_ = new java.util.ArrayList(parameterMutations_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ParameterMutation, com.google.analytics.admin.v1alpha.ParameterMutation.Builder, com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder> parameterMutationsBuilder_; - - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public java.util.List getParameterMutationsList() { - if (parameterMutationsBuilder_ == null) { - return java.util.Collections.unmodifiableList(parameterMutations_); - } else { - return parameterMutationsBuilder_.getMessageList(); - } - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public int getParameterMutationsCount() { - if (parameterMutationsBuilder_ == null) { - return parameterMutations_.size(); - } else { - return parameterMutationsBuilder_.getCount(); - } - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public com.google.analytics.admin.v1alpha.ParameterMutation getParameterMutations(int index) { - if (parameterMutationsBuilder_ == null) { - return parameterMutations_.get(index); - } else { - return parameterMutationsBuilder_.getMessage(index); - } - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder setParameterMutations( - int index, com.google.analytics.admin.v1alpha.ParameterMutation value) { - if (parameterMutationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParameterMutationsIsMutable(); - parameterMutations_.set(index, value); - onChanged(); - } else { - parameterMutationsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder setParameterMutations( - int index, com.google.analytics.admin.v1alpha.ParameterMutation.Builder builderForValue) { - if (parameterMutationsBuilder_ == null) { - ensureParameterMutationsIsMutable(); - parameterMutations_.set(index, builderForValue.build()); - onChanged(); - } else { - parameterMutationsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder addParameterMutations(com.google.analytics.admin.v1alpha.ParameterMutation value) { - if (parameterMutationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParameterMutationsIsMutable(); - parameterMutations_.add(value); - onChanged(); - } else { - parameterMutationsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder addParameterMutations( - int index, com.google.analytics.admin.v1alpha.ParameterMutation value) { - if (parameterMutationsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureParameterMutationsIsMutable(); - parameterMutations_.add(index, value); - onChanged(); - } else { - parameterMutationsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder addParameterMutations( - com.google.analytics.admin.v1alpha.ParameterMutation.Builder builderForValue) { - if (parameterMutationsBuilder_ == null) { - ensureParameterMutationsIsMutable(); - parameterMutations_.add(builderForValue.build()); - onChanged(); - } else { - parameterMutationsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder addParameterMutations( - int index, com.google.analytics.admin.v1alpha.ParameterMutation.Builder builderForValue) { - if (parameterMutationsBuilder_ == null) { - ensureParameterMutationsIsMutable(); - parameterMutations_.add(index, builderForValue.build()); - onChanged(); - } else { - parameterMutationsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder addAllParameterMutations( - java.lang.Iterable values) { - if (parameterMutationsBuilder_ == null) { - ensureParameterMutationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, parameterMutations_); - onChanged(); - } else { - parameterMutationsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder clearParameterMutations() { - if (parameterMutationsBuilder_ == null) { - parameterMutations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - parameterMutationsBuilder_.clear(); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public Builder removeParameterMutations(int index) { - if (parameterMutationsBuilder_ == null) { - ensureParameterMutationsIsMutable(); - parameterMutations_.remove(index); - onChanged(); - } else { - parameterMutationsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public com.google.analytics.admin.v1alpha.ParameterMutation.Builder getParameterMutationsBuilder( - int index) { - return getParameterMutationsFieldBuilder().getBuilder(index); - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder getParameterMutationsOrBuilder( - int index) { - if (parameterMutationsBuilder_ == null) { - return parameterMutations_.get(index); } else { - return parameterMutationsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public java.util.List - getParameterMutationsOrBuilderList() { - if (parameterMutationsBuilder_ != null) { - return parameterMutationsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(parameterMutations_); - } - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public com.google.analytics.admin.v1alpha.ParameterMutation.Builder addParameterMutationsBuilder() { - return getParameterMutationsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance()); - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public com.google.analytics.admin.v1alpha.ParameterMutation.Builder addParameterMutationsBuilder( - int index) { - return getParameterMutationsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance()); - } - /** - *
-     * Parameter mutations define parameter behavior on the new event, and
-     * are applied in order.
-     * A maximum of 20 mutations can be applied.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - public java.util.List - getParameterMutationsBuilderList() { - return getParameterMutationsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ParameterMutation, com.google.analytics.admin.v1alpha.ParameterMutation.Builder, com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder> - getParameterMutationsFieldBuilder() { - if (parameterMutationsBuilder_ == null) { - parameterMutationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ParameterMutation, com.google.analytics.admin.v1alpha.ParameterMutation.Builder, com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder>( - parameterMutations_, - ((bitField0_ & 0x00000010) != 0), - getParentForChildren(), - isClean()); - parameterMutations_ = null; - } - return parameterMutationsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.EventCreateRule) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.EventCreateRule) - private static final com.google.analytics.admin.v1alpha.EventCreateRule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.EventCreateRule(); - } - - public static com.google.analytics.admin.v1alpha.EventCreateRule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventCreateRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleOrBuilder.java deleted file mode 100644 index 14bbe3daa2d5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventCreateRuleOrBuilder.java +++ /dev/null @@ -1,179 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/event_create_and_edit.proto - -package com.google.analytics.admin.v1alpha; - -public interface EventCreateRuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.EventCreateRule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this EventCreateRule resource.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this EventCreateRule resource.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/eventCreateRules/{event_create_rule}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. The name of the new event to be created.
-   *
-   * This value must:
-   * * be less than 40 characters
-   * * consist only of letters, digits or _ (underscores)
-   * * start with a letter
-   * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The destinationEvent. - */ - java.lang.String getDestinationEvent(); - /** - *
-   * Required. The name of the new event to be created.
-   *
-   * This value must:
-   * * be less than 40 characters
-   * * consist only of letters, digits or _ (underscores)
-   * * start with a letter
-   * 
- * - * string destination_event = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for destinationEvent. - */ - com.google.protobuf.ByteString - getDestinationEventBytes(); - - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getEventConditionsList(); - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.MatchingCondition getEventConditions(int index); - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - int getEventConditionsCount(); - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - java.util.List - getEventConditionsOrBuilderList(); - /** - *
-   * Required. Must have at least one condition, and can have up to 10 max.
-   * Conditions on the source event must match for this rule to be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MatchingCondition event_conditions = 3 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder getEventConditionsOrBuilder( - int index); - - /** - *
-   * If true, the source parameters are copied to the new event.
-   * If false, or unset, all non-internal parameters are not copied from the
-   * source event. Parameter mutations are applied after the parameters have
-   * been copied.
-   * 
- * - * bool source_copy_parameters = 4; - * @return The sourceCopyParameters. - */ - boolean getSourceCopyParameters(); - - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - java.util.List - getParameterMutationsList(); - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - com.google.analytics.admin.v1alpha.ParameterMutation getParameterMutations(int index); - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - int getParameterMutationsCount(); - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - java.util.List - getParameterMutationsOrBuilderList(); - /** - *
-   * Parameter mutations define parameter behavior on the new event, and
-   * are applied in order.
-   * A maximum of 20 mutations can be applied.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ParameterMutation parameter_mutations = 5; - */ - com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder getParameterMutationsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMapping.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMapping.java deleted file mode 100644 index 29d492d2a7e3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EventMapping.java +++ /dev/null @@ -1,1089 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Event setting conditions to match an event.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.EventMapping} - */ -public final class EventMapping extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.EventMapping) - EventMappingOrBuilder { -private static final long serialVersionUID = 0L; - // Use EventMapping.newBuilder() to construct. - private EventMapping(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EventMapping() { - eventName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EventMapping(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.EventMapping.class, com.google.analytics.admin.v1alpha.EventMapping.Builder.class); - } - - private int bitField0_; - public static final int EVENT_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object eventName_ = ""; - /** - *
-   * Required. Name of the GA4 event. It must always be set.
-   * The max allowed display name length is 40 UTF-16 code units.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - 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(); - eventName_ = s; - return s; - } - } - /** - *
-   * Required. Name of the GA4 event. It must always be set.
-   * The max allowed display name length is 40 UTF-16 code units.
-   * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MIN_EVENT_COUNT_FIELD_NUMBER = 2; - private long minEventCount_ = 0L; - /** - *
-   * At least one of the following four min/max values must be set. The
-   * values set will be ANDed together to qualify an event.
-   * The minimum number of times the event occurred. If not set, minimum event
-   * count won't be checked.
-   * 
- * - * optional int64 min_event_count = 2; - * @return Whether the minEventCount field is set. - */ - @java.lang.Override - public boolean hasMinEventCount() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * At least one of the following four min/max values must be set. The
-   * values set will be ANDed together to qualify an event.
-   * The minimum number of times the event occurred. If not set, minimum event
-   * count won't be checked.
-   * 
- * - * optional int64 min_event_count = 2; - * @return The minEventCount. - */ - @java.lang.Override - public long getMinEventCount() { - return minEventCount_; - } - - public static final int MAX_EVENT_COUNT_FIELD_NUMBER = 3; - private long maxEventCount_ = 0L; - /** - *
-   * The maximum number of times the event occurred. If not set, maximum event
-   * count won't be checked.
-   * 
- * - * optional int64 max_event_count = 3; - * @return Whether the maxEventCount field is set. - */ - @java.lang.Override - public boolean hasMaxEventCount() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-   * The maximum number of times the event occurred. If not set, maximum event
-   * count won't be checked.
-   * 
- * - * optional int64 max_event_count = 3; - * @return The maxEventCount. - */ - @java.lang.Override - public long getMaxEventCount() { - return maxEventCount_; - } - - public static final int MIN_EVENT_VALUE_FIELD_NUMBER = 4; - private double minEventValue_ = 0D; - /** - *
-   * The minimum revenue generated due to the event. Revenue currency will be
-   * defined at the property level. If not set, minimum event value won't be
-   * checked.
-   * 
- * - * optional double min_event_value = 4; - * @return Whether the minEventValue field is set. - */ - @java.lang.Override - public boolean hasMinEventValue() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-   * The minimum revenue generated due to the event. Revenue currency will be
-   * defined at the property level. If not set, minimum event value won't be
-   * checked.
-   * 
- * - * optional double min_event_value = 4; - * @return The minEventValue. - */ - @java.lang.Override - public double getMinEventValue() { - return minEventValue_; - } - - public static final int MAX_EVENT_VALUE_FIELD_NUMBER = 5; - private double maxEventValue_ = 0D; - /** - *
-   * The maximum revenue generated due to the event. Revenue currency will be
-   * defined at the property level. If not set, maximum event value won't be
-   * checked.
-   * 
- * - * optional double max_event_value = 5; - * @return Whether the maxEventValue field is set. - */ - @java.lang.Override - public boolean hasMaxEventValue() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-   * The maximum revenue generated due to the event. Revenue currency will be
-   * defined at the property level. If not set, maximum event value won't be
-   * checked.
-   * 
- * - * optional double max_event_value = 5; - * @return The maxEventValue. - */ - @java.lang.Override - public double getMaxEventValue() { - return maxEventValue_; - } - - 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(eventName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(2, minEventCount_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(3, maxEventCount_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeDouble(4, minEventValue_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeDouble(5, maxEventValue_); - } - 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(eventName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, eventName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(2, minEventCount_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(3, maxEventCount_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(4, minEventValue_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize(5, maxEventValue_); - } - 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.admin.v1alpha.EventMapping)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.EventMapping other = (com.google.analytics.admin.v1alpha.EventMapping) obj; - - if (!getEventName() - .equals(other.getEventName())) return false; - if (hasMinEventCount() != other.hasMinEventCount()) return false; - if (hasMinEventCount()) { - if (getMinEventCount() - != other.getMinEventCount()) return false; - } - if (hasMaxEventCount() != other.hasMaxEventCount()) return false; - if (hasMaxEventCount()) { - if (getMaxEventCount() - != other.getMaxEventCount()) return false; - } - if (hasMinEventValue() != other.hasMinEventValue()) return false; - if (hasMinEventValue()) { - if (java.lang.Double.doubleToLongBits(getMinEventValue()) - != java.lang.Double.doubleToLongBits( - other.getMinEventValue())) return false; - } - if (hasMaxEventValue() != other.hasMaxEventValue()) return false; - if (hasMaxEventValue()) { - if (java.lang.Double.doubleToLongBits(getMaxEventValue()) - != java.lang.Double.doubleToLongBits( - other.getMaxEventValue())) 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) + EVENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - if (hasMinEventCount()) { - hash = (37 * hash) + MIN_EVENT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMinEventCount()); - } - if (hasMaxEventCount()) { - hash = (37 * hash) + MAX_EVENT_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getMaxEventCount()); - } - if (hasMinEventValue()) { - hash = (37 * hash) + MIN_EVENT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMinEventValue())); - } - if (hasMaxEventValue()) { - hash = (37 * hash) + MAX_EVENT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getMaxEventValue())); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.EventMapping parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.EventMapping parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.EventMapping parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.EventMapping 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; - } - /** - *
-   * Event setting conditions to match an event.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.EventMapping} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.EventMapping) - com.google.analytics.admin.v1alpha.EventMappingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.EventMapping.class, com.google.analytics.admin.v1alpha.EventMapping.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.EventMapping.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - eventName_ = ""; - minEventCount_ = 0L; - maxEventCount_ = 0L; - minEventValue_ = 0D; - maxEventValue_ = 0D; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventMapping getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventMapping build() { - com.google.analytics.admin.v1alpha.EventMapping result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventMapping buildPartial() { - com.google.analytics.admin.v1alpha.EventMapping result = new com.google.analytics.admin.v1alpha.EventMapping(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.EventMapping result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.eventName_ = eventName_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.minEventCount_ = minEventCount_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.maxEventCount_ = maxEventCount_; - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.minEventValue_ = minEventValue_; - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.maxEventValue_ = maxEventValue_; - to_bitField0_ |= 0x00000008; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.EventMapping) { - return mergeFrom((com.google.analytics.admin.v1alpha.EventMapping)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.EventMapping other) { - if (other == com.google.analytics.admin.v1alpha.EventMapping.getDefaultInstance()) return this; - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasMinEventCount()) { - setMinEventCount(other.getMinEventCount()); - } - if (other.hasMaxEventCount()) { - setMaxEventCount(other.getMaxEventCount()); - } - if (other.hasMinEventValue()) { - setMinEventValue(other.getMinEventValue()); - } - if (other.hasMaxEventValue()) { - setMaxEventValue(other.getMaxEventValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - minEventCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - maxEventCount_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 33: { - minEventValue_ = input.readDouble(); - bitField0_ |= 0x00000008; - break; - } // case 33 - case 41: { - maxEventValue_ = input.readDouble(); - bitField0_ |= 0x00000010; - break; - } // case 41 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object eventName_ = ""; - /** - *
-     * Required. Name of the GA4 event. It must always be set.
-     * The max allowed display name length is 40 UTF-16 code units.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Name of the GA4 event. It must always be set.
-     * The max allowed display name length is 40 UTF-16 code units.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Name of the GA4 event. It must always be set.
-     * The max allowed display name length is 40 UTF-16 code units.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - eventName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Name of the GA4 event. It must always be set.
-     * The max allowed display name length is 40 UTF-16 code units.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearEventName() { - eventName_ = getDefaultInstance().getEventName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Name of the GA4 event. It must always be set.
-     * The max allowed display name length is 40 UTF-16 code units.
-     * 
- * - * string event_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - eventName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private long minEventCount_ ; - /** - *
-     * At least one of the following four min/max values must be set. The
-     * values set will be ANDed together to qualify an event.
-     * The minimum number of times the event occurred. If not set, minimum event
-     * count won't be checked.
-     * 
- * - * optional int64 min_event_count = 2; - * @return Whether the minEventCount field is set. - */ - @java.lang.Override - public boolean hasMinEventCount() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * At least one of the following four min/max values must be set. The
-     * values set will be ANDed together to qualify an event.
-     * The minimum number of times the event occurred. If not set, minimum event
-     * count won't be checked.
-     * 
- * - * optional int64 min_event_count = 2; - * @return The minEventCount. - */ - @java.lang.Override - public long getMinEventCount() { - return minEventCount_; - } - /** - *
-     * At least one of the following four min/max values must be set. The
-     * values set will be ANDed together to qualify an event.
-     * The minimum number of times the event occurred. If not set, minimum event
-     * count won't be checked.
-     * 
- * - * optional int64 min_event_count = 2; - * @param value The minEventCount to set. - * @return This builder for chaining. - */ - public Builder setMinEventCount(long value) { - - minEventCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * At least one of the following four min/max values must be set. The
-     * values set will be ANDed together to qualify an event.
-     * The minimum number of times the event occurred. If not set, minimum event
-     * count won't be checked.
-     * 
- * - * optional int64 min_event_count = 2; - * @return This builder for chaining. - */ - public Builder clearMinEventCount() { - bitField0_ = (bitField0_ & ~0x00000002); - minEventCount_ = 0L; - onChanged(); - return this; - } - - private long maxEventCount_ ; - /** - *
-     * The maximum number of times the event occurred. If not set, maximum event
-     * count won't be checked.
-     * 
- * - * optional int64 max_event_count = 3; - * @return Whether the maxEventCount field is set. - */ - @java.lang.Override - public boolean hasMaxEventCount() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The maximum number of times the event occurred. If not set, maximum event
-     * count won't be checked.
-     * 
- * - * optional int64 max_event_count = 3; - * @return The maxEventCount. - */ - @java.lang.Override - public long getMaxEventCount() { - return maxEventCount_; - } - /** - *
-     * The maximum number of times the event occurred. If not set, maximum event
-     * count won't be checked.
-     * 
- * - * optional int64 max_event_count = 3; - * @param value The maxEventCount to set. - * @return This builder for chaining. - */ - public Builder setMaxEventCount(long value) { - - maxEventCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The maximum number of times the event occurred. If not set, maximum event
-     * count won't be checked.
-     * 
- * - * optional int64 max_event_count = 3; - * @return This builder for chaining. - */ - public Builder clearMaxEventCount() { - bitField0_ = (bitField0_ & ~0x00000004); - maxEventCount_ = 0L; - onChanged(); - return this; - } - - private double minEventValue_ ; - /** - *
-     * The minimum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, minimum event value won't be
-     * checked.
-     * 
- * - * optional double min_event_value = 4; - * @return Whether the minEventValue field is set. - */ - @java.lang.Override - public boolean hasMinEventValue() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The minimum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, minimum event value won't be
-     * checked.
-     * 
- * - * optional double min_event_value = 4; - * @return The minEventValue. - */ - @java.lang.Override - public double getMinEventValue() { - return minEventValue_; - } - /** - *
-     * The minimum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, minimum event value won't be
-     * checked.
-     * 
- * - * optional double min_event_value = 4; - * @param value The minEventValue to set. - * @return This builder for chaining. - */ - public Builder setMinEventValue(double value) { - - minEventValue_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The minimum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, minimum event value won't be
-     * checked.
-     * 
- * - * optional double min_event_value = 4; - * @return This builder for chaining. - */ - public Builder clearMinEventValue() { - bitField0_ = (bitField0_ & ~0x00000008); - minEventValue_ = 0D; - onChanged(); - return this; - } - - private double maxEventValue_ ; - /** - *
-     * The maximum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, maximum event value won't be
-     * checked.
-     * 
- * - * optional double max_event_value = 5; - * @return Whether the maxEventValue field is set. - */ - @java.lang.Override - public boolean hasMaxEventValue() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The maximum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, maximum event value won't be
-     * checked.
-     * 
- * - * optional double max_event_value = 5; - * @return The maxEventValue. - */ - @java.lang.Override - public double getMaxEventValue() { - return maxEventValue_; - } - /** - *
-     * The maximum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, maximum event value won't be
-     * checked.
-     * 
- * - * optional double max_event_value = 5; - * @param value The maxEventValue to set. - * @return This builder for chaining. - */ - public Builder setMaxEventValue(double value) { - - maxEventValue_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The maximum revenue generated due to the event. Revenue currency will be
-     * defined at the property level. If not set, maximum event value won't be
-     * checked.
-     * 
- * - * optional double max_event_value = 5; - * @return This builder for chaining. - */ - public Builder clearMaxEventValue() { - bitField0_ = (bitField0_ & ~0x00000010); - maxEventValue_ = 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.admin.v1alpha.EventMapping) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.EventMapping) - private static final com.google.analytics.admin.v1alpha.EventMapping DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.EventMapping(); - } - - public static com.google.analytics.admin.v1alpha.EventMapping getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventMapping parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventMapping getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSet.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSet.java deleted file mode 100644 index 4eb348778f2c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSet.java +++ /dev/null @@ -1,1980 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/expanded_data_set.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing a GA4 ExpandedDataSet.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSet} - */ -public final class ExpandedDataSet extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSet) - ExpandedDataSetOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExpandedDataSet.newBuilder() to construct. - private ExpandedDataSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExpandedDataSet() { - name_ = ""; - displayName_ = ""; - description_ = ""; - dimensionNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - metricNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExpandedDataSet(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSet.class, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. The resource name for this ExpandedDataSet resource.
-   * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name for this ExpandedDataSet resource.
-   * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. The display name of the ExpandedDataSet.
-   * Max 200 chars.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. The display name of the ExpandedDataSet.
-   * Max 200 chars.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * Optional. The description of the ExpandedDataSet.
-   * Max 50 chars.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-   * Optional. The description of the ExpandedDataSet.
-   * Max 50 chars.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSION_NAMES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList dimensionNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * Immutable. The list of dimensions included in the ExpandedDataSet.
-   * See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return A list containing the dimensionNames. - */ - public com.google.protobuf.ProtocolStringList - getDimensionNamesList() { - return dimensionNames_; - } - /** - *
-   * Immutable. The list of dimensions included in the ExpandedDataSet.
-   * See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The count of dimensionNames. - */ - public int getDimensionNamesCount() { - return dimensionNames_.size(); - } - /** - *
-   * Immutable. The list of dimensions included in the ExpandedDataSet.
-   * See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the element to return. - * @return The dimensionNames at the given index. - */ - public java.lang.String getDimensionNames(int index) { - return dimensionNames_.get(index); - } - /** - *
-   * Immutable. The list of dimensions included in the ExpandedDataSet.
-   * See the [API
-   * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-   * for the list of dimension names.
-   * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the value to return. - * @return The bytes of the dimensionNames at the given index. - */ - public com.google.protobuf.ByteString - getDimensionNamesBytes(int index) { - return dimensionNames_.getByteString(index); - } - - public static final int METRIC_NAMES_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList metricNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * Immutable. The list of metrics included in the ExpandedDataSet.
-   * See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of dimension names.
-   * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return A list containing the metricNames. - */ - public com.google.protobuf.ProtocolStringList - getMetricNamesList() { - return metricNames_; - } - /** - *
-   * Immutable. The list of metrics included in the ExpandedDataSet.
-   * See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of dimension names.
-   * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The count of metricNames. - */ - public int getMetricNamesCount() { - return metricNames_.size(); - } - /** - *
-   * Immutable. The list of metrics included in the ExpandedDataSet.
-   * See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of dimension names.
-   * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the element to return. - * @return The metricNames at the given index. - */ - public java.lang.String getMetricNames(int index) { - return metricNames_.get(index); - } - /** - *
-   * Immutable. The list of metrics included in the ExpandedDataSet.
-   * See the [API
-   * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-   * for the list of dimension names.
-   * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the value to return. - * @return The bytes of the metricNames at the given index. - */ - public com.google.protobuf.ByteString - getMetricNamesBytes(int index) { - return metricNames_.getByteString(index); - } - - public static final int DIMENSION_FILTER_EXPRESSION_FIELD_NUMBER = 6; - private com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimensionFilterExpression_; - /** - *
-   * Immutable. A logical expression of ExpandedDataSet filters applied to
-   * dimension included in the ExpandedDataSet. This filter is used to reduce
-   * the number of rows and thus the chance of encountering `other` row.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the dimensionFilterExpression field is set. - */ - @java.lang.Override - public boolean hasDimensionFilterExpression() { - return dimensionFilterExpression_ != null; - } - /** - *
-   * Immutable. A logical expression of ExpandedDataSet filters applied to
-   * dimension included in the ExpandedDataSet. This filter is used to reduce
-   * the number of rows and thus the chance of encountering `other` row.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The dimensionFilterExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getDimensionFilterExpression() { - return dimensionFilterExpression_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance() : dimensionFilterExpression_; - } - /** - *
-   * Immutable. A logical expression of ExpandedDataSet filters applied to
-   * dimension included in the ExpandedDataSet. This filter is used to reduce
-   * the number of rows and thus the chance of encountering `other` row.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getDimensionFilterExpressionOrBuilder() { - return dimensionFilterExpression_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance() : dimensionFilterExpression_; - } - - public static final int DATA_COLLECTION_START_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp dataCollectionStartTime_; - /** - *
-   * Output only. Time when expanded data set began (or will begin) collecing
-   * data.
-   * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the dataCollectionStartTime field is set. - */ - @java.lang.Override - public boolean hasDataCollectionStartTime() { - return dataCollectionStartTime_ != null; - } - /** - *
-   * Output only. Time when expanded data set began (or will begin) collecing
-   * data.
-   * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The dataCollectionStartTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDataCollectionStartTime() { - return dataCollectionStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dataCollectionStartTime_; - } - /** - *
-   * Output only. Time when expanded data set began (or will begin) collecing
-   * data.
-   * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDataCollectionStartTimeOrBuilder() { - return dataCollectionStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dataCollectionStartTime_; - } - - 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(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - for (int i = 0; i < dimensionNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dimensionNames_.getRaw(i)); - } - for (int i = 0; i < metricNames_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, metricNames_.getRaw(i)); - } - if (dimensionFilterExpression_ != null) { - output.writeMessage(6, getDimensionFilterExpression()); - } - if (dataCollectionStartTime_ != null) { - output.writeMessage(7, getDataCollectionStartTime()); - } - 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(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - { - int dataSize = 0; - for (int i = 0; i < dimensionNames_.size(); i++) { - dataSize += computeStringSizeNoTag(dimensionNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getDimensionNamesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < metricNames_.size(); i++) { - dataSize += computeStringSizeNoTag(metricNames_.getRaw(i)); - } - size += dataSize; - size += 1 * getMetricNamesList().size(); - } - if (dimensionFilterExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getDimensionFilterExpression()); - } - if (dataCollectionStartTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getDataCollectionStartTime()); - } - 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.admin.v1alpha.ExpandedDataSet)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ExpandedDataSet other = (com.google.analytics.admin.v1alpha.ExpandedDataSet) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getDimensionNamesList() - .equals(other.getDimensionNamesList())) return false; - if (!getMetricNamesList() - .equals(other.getMetricNamesList())) return false; - if (hasDimensionFilterExpression() != other.hasDimensionFilterExpression()) return false; - if (hasDimensionFilterExpression()) { - if (!getDimensionFilterExpression() - .equals(other.getDimensionFilterExpression())) return false; - } - if (hasDataCollectionStartTime() != other.hasDataCollectionStartTime()) return false; - if (hasDataCollectionStartTime()) { - if (!getDataCollectionStartTime() - .equals(other.getDataCollectionStartTime())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getDimensionNamesCount() > 0) { - hash = (37 * hash) + DIMENSION_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getDimensionNamesList().hashCode(); - } - if (getMetricNamesCount() > 0) { - hash = (37 * hash) + METRIC_NAMES_FIELD_NUMBER; - hash = (53 * hash) + getMetricNamesList().hashCode(); - } - if (hasDimensionFilterExpression()) { - hash = (37 * hash) + DIMENSION_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilterExpression().hashCode(); - } - if (hasDataCollectionStartTime()) { - hash = (37 * hash) + DATA_COLLECTION_START_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDataCollectionStartTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSet parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSet prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a GA4 ExpandedDataSet.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSet} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSet) - com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSet.class, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSet.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - dimensionNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - metricNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - dimensionFilterExpression_ = null; - if (dimensionFilterExpressionBuilder_ != null) { - dimensionFilterExpressionBuilder_.dispose(); - dimensionFilterExpressionBuilder_ = null; - } - dataCollectionStartTime_ = null; - if (dataCollectionStartTimeBuilder_ != null) { - dataCollectionStartTimeBuilder_.dispose(); - dataCollectionStartTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet build() { - com.google.analytics.admin.v1alpha.ExpandedDataSet result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet buildPartial() { - com.google.analytics.admin.v1alpha.ExpandedDataSet result = new com.google.analytics.admin.v1alpha.ExpandedDataSet(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSet result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - dimensionNames_.makeImmutable(); - result.dimensionNames_ = dimensionNames_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - metricNames_.makeImmutable(); - result.metricNames_ = metricNames_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.dimensionFilterExpression_ = dimensionFilterExpressionBuilder_ == null - ? dimensionFilterExpression_ - : dimensionFilterExpressionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.dataCollectionStartTime_ = dataCollectionStartTimeBuilder_ == null - ? dataCollectionStartTime_ - : dataCollectionStartTimeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSet) { - return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSet)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSet other) { - if (other == com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.dimensionNames_.isEmpty()) { - if (dimensionNames_.isEmpty()) { - dimensionNames_ = other.dimensionNames_; - bitField0_ |= 0x00000008; - } else { - ensureDimensionNamesIsMutable(); - dimensionNames_.addAll(other.dimensionNames_); - } - onChanged(); - } - if (!other.metricNames_.isEmpty()) { - if (metricNames_.isEmpty()) { - metricNames_ = other.metricNames_; - bitField0_ |= 0x00000010; - } else { - ensureMetricNamesIsMutable(); - metricNames_.addAll(other.metricNames_); - } - onChanged(); - } - if (other.hasDimensionFilterExpression()) { - mergeDimensionFilterExpression(other.getDimensionFilterExpression()); - } - if (other.hasDataCollectionStartTime()) { - mergeDataCollectionStartTime(other.getDataCollectionStartTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - ensureDimensionNamesIsMutable(); - dimensionNames_.add(s); - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureMetricNamesIsMutable(); - metricNames_.add(s); - break; - } // case 42 - case 50: { - input.readMessage( - getDimensionFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getDataCollectionStartTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. The resource name for this ExpandedDataSet resource.
-     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name for this ExpandedDataSet resource.
-     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name for this ExpandedDataSet resource.
-     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name for this ExpandedDataSet resource.
-     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
-     * 
- * - * string name = 1 [(.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. The resource name for this ExpandedDataSet resource.
-     * Format: properties/{property_id}/expandedDataSets/{expanded_data_set}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. The display name of the ExpandedDataSet.
-     * Max 200 chars.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The display name of the ExpandedDataSet.
-     * Max 200 chars.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The display name of the ExpandedDataSet.
-     * Max 200 chars.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The display name of the ExpandedDataSet.
-     * Max 200 chars.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. The display name of the ExpandedDataSet.
-     * Max 200 chars.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Optional. The description of the ExpandedDataSet.
-     * Max 50 chars.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. The description of the ExpandedDataSet.
-     * Max 50 chars.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. The description of the ExpandedDataSet.
-     * Max 50 chars.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Optional. The description of the ExpandedDataSet.
-     * Max 50 chars.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Optional. The description of the ExpandedDataSet.
-     * Max 50 chars.
-     * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList dimensionNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureDimensionNamesIsMutable() { - if (!dimensionNames_.isModifiable()) { - dimensionNames_ = new com.google.protobuf.LazyStringArrayList(dimensionNames_); - } - bitField0_ |= 0x00000008; - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return A list containing the dimensionNames. - */ - public com.google.protobuf.ProtocolStringList - getDimensionNamesList() { - dimensionNames_.makeImmutable(); - return dimensionNames_; - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The count of dimensionNames. - */ - public int getDimensionNamesCount() { - return dimensionNames_.size(); - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the element to return. - * @return The dimensionNames at the given index. - */ - public java.lang.String getDimensionNames(int index) { - return dimensionNames_.get(index); - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the value to return. - * @return The bytes of the dimensionNames at the given index. - */ - public com.google.protobuf.ByteString - getDimensionNamesBytes(int index) { - return dimensionNames_.getByteString(index); - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index to set the value at. - * @param value The dimensionNames to set. - * @return This builder for chaining. - */ - public Builder setDimensionNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureDimensionNamesIsMutable(); - dimensionNames_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The dimensionNames to add. - * @return This builder for chaining. - */ - public Builder addDimensionNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureDimensionNamesIsMutable(); - dimensionNames_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param values The dimensionNames to add. - * @return This builder for chaining. - */ - public Builder addAllDimensionNames( - java.lang.Iterable values) { - ensureDimensionNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dimensionNames_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearDimensionNames() { - dimensionNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of dimensions included in the ExpandedDataSet.
-     * See the [API
-     * Dimensions](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#dimensions)
-     * for the list of dimension names.
-     * 
- * - * repeated string dimension_names = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes of the dimensionNames to add. - * @return This builder for chaining. - */ - public Builder addDimensionNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureDimensionNamesIsMutable(); - dimensionNames_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList metricNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureMetricNamesIsMutable() { - if (!metricNames_.isModifiable()) { - metricNames_ = new com.google.protobuf.LazyStringArrayList(metricNames_); - } - bitField0_ |= 0x00000010; - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return A list containing the metricNames. - */ - public com.google.protobuf.ProtocolStringList - getMetricNamesList() { - metricNames_.makeImmutable(); - return metricNames_; - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The count of metricNames. - */ - public int getMetricNamesCount() { - return metricNames_.size(); - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the element to return. - * @return The metricNames at the given index. - */ - public java.lang.String getMetricNames(int index) { - return metricNames_.get(index); - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index of the value to return. - * @return The bytes of the metricNames at the given index. - */ - public com.google.protobuf.ByteString - getMetricNamesBytes(int index) { - return metricNames_.getByteString(index); - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param index The index to set the value at. - * @param value The metricNames to set. - * @return This builder for chaining. - */ - public Builder setMetricNames( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureMetricNamesIsMutable(); - metricNames_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The metricNames to add. - * @return This builder for chaining. - */ - public Builder addMetricNames( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureMetricNamesIsMutable(); - metricNames_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param values The metricNames to add. - * @return This builder for chaining. - */ - public Builder addAllMetricNames( - java.lang.Iterable values) { - ensureMetricNamesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricNames_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearMetricNames() { - metricNames_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; - onChanged(); - return this; - } - /** - *
-     * Immutable. The list of metrics included in the ExpandedDataSet.
-     * See the [API
-     * Metrics](https://developers.google.com/analytics/devguides/reporting/data/v1/api-schema#metrics)
-     * for the list of dimension names.
-     * 
- * - * repeated string metric_names = 5 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes of the metricNames to add. - * @return This builder for chaining. - */ - public Builder addMetricNamesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureMetricNamesIsMutable(); - metricNames_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimensionFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> dimensionFilterExpressionBuilder_; - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the dimensionFilterExpression field is set. - */ - public boolean hasDimensionFilterExpression() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The dimensionFilterExpression. - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getDimensionFilterExpression() { - if (dimensionFilterExpressionBuilder_ == null) { - return dimensionFilterExpression_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance() : dimensionFilterExpression_; - } else { - return dimensionFilterExpressionBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setDimensionFilterExpression(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { - if (dimensionFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilterExpression_ = value; - } else { - dimensionFilterExpressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setDimensionFilterExpression( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder builderForValue) { - if (dimensionFilterExpressionBuilder_ == null) { - dimensionFilterExpression_ = builderForValue.build(); - } else { - dimensionFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeDimensionFilterExpression(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { - if (dimensionFilterExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - dimensionFilterExpression_ != null && - dimensionFilterExpression_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance()) { - getDimensionFilterExpressionBuilder().mergeFrom(value); - } else { - dimensionFilterExpression_ = value; - } - } else { - dimensionFilterExpressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearDimensionFilterExpression() { - bitField0_ = (bitField0_ & ~0x00000020); - dimensionFilterExpression_ = null; - if (dimensionFilterExpressionBuilder_ != null) { - dimensionFilterExpressionBuilder_.dispose(); - dimensionFilterExpressionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder getDimensionFilterExpressionBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getDimensionFilterExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getDimensionFilterExpressionOrBuilder() { - if (dimensionFilterExpressionBuilder_ != null) { - return dimensionFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilterExpression_ == null ? - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance() : dimensionFilterExpression_; - } - } - /** - *
-     * Immutable. A logical expression of ExpandedDataSet filters applied to
-     * dimension included in the ExpandedDataSet. This filter is used to reduce
-     * the number of rows and thus the chance of encountering `other` row.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression dimension_filter_expression = 6 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> - getDimensionFilterExpressionFieldBuilder() { - if (dimensionFilterExpressionBuilder_ == null) { - dimensionFilterExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder>( - getDimensionFilterExpression(), - getParentForChildren(), - isClean()); - dimensionFilterExpression_ = null; - } - return dimensionFilterExpressionBuilder_; - } - - private com.google.protobuf.Timestamp dataCollectionStartTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> dataCollectionStartTimeBuilder_; - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the dataCollectionStartTime field is set. - */ - public boolean hasDataCollectionStartTime() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The dataCollectionStartTime. - */ - public com.google.protobuf.Timestamp getDataCollectionStartTime() { - if (dataCollectionStartTimeBuilder_ == null) { - return dataCollectionStartTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : dataCollectionStartTime_; - } else { - return dataCollectionStartTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDataCollectionStartTime(com.google.protobuf.Timestamp value) { - if (dataCollectionStartTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataCollectionStartTime_ = value; - } else { - dataCollectionStartTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDataCollectionStartTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (dataCollectionStartTimeBuilder_ == null) { - dataCollectionStartTime_ = builderForValue.build(); - } else { - dataCollectionStartTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeDataCollectionStartTime(com.google.protobuf.Timestamp value) { - if (dataCollectionStartTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - dataCollectionStartTime_ != null && - dataCollectionStartTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDataCollectionStartTimeBuilder().mergeFrom(value); - } else { - dataCollectionStartTime_ = value; - } - } else { - dataCollectionStartTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearDataCollectionStartTime() { - bitField0_ = (bitField0_ & ~0x00000040); - dataCollectionStartTime_ = null; - if (dataCollectionStartTimeBuilder_ != null) { - dataCollectionStartTimeBuilder_.dispose(); - dataCollectionStartTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getDataCollectionStartTimeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getDataCollectionStartTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getDataCollectionStartTimeOrBuilder() { - if (dataCollectionStartTimeBuilder_ != null) { - return dataCollectionStartTimeBuilder_.getMessageOrBuilder(); - } else { - return dataCollectionStartTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : dataCollectionStartTime_; - } - } - /** - *
-     * Output only. Time when expanded data set began (or will begin) collecing
-     * data.
-     * 
- * - * .google.protobuf.Timestamp data_collection_start_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDataCollectionStartTimeFieldBuilder() { - if (dataCollectionStartTimeBuilder_ == null) { - dataCollectionStartTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDataCollectionStartTime(), - getParentForChildren(), - isClean()); - dataCollectionStartTime_ = null; - } - return dataCollectionStartTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSet) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSet) - private static final com.google.analytics.admin.v1alpha.ExpandedDataSet DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSet(); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSet getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExpandedDataSet parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilter.java deleted file mode 100644 index b65db9dc358f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilter.java +++ /dev/null @@ -1,2980 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/expanded_data_set.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A specific filter for a single dimension
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter} - */ -public final class ExpandedDataSetFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter) - ExpandedDataSetFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExpandedDataSetFilter.newBuilder() to construct. - private ExpandedDataSetFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExpandedDataSetFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExpandedDataSetFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder.class); - } - - public interface StringFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - int getMatchTypeValue(); - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType getMatchType(); - - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * Must be true when match_type is EXACT.
-     * Must be false when match_type is CONTAINS.
-     * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} - */ - public static final class StringFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) - StringFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use StringFilter.newBuilder() to construct. - private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder.class); - } - - /** - *
-     * The match type for the string filter.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType} - */ - public enum MatchType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Unspecified
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 2; - */ - CONTAINS(2), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Unspecified
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 2; - */ - public static final int CONTAINS_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: return MATCH_TYPE_UNSPECIFIED; - case 1: return EXACT; - case 2: return CONTAINS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_ = 0; - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     * Required. The string value to be matched against.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; - private boolean caseSensitive_ = false; - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * Must be true when match_type is EXACT.
-     * Must be false when match_type is CONTAINS.
-     * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (matchType_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (caseSensitive_ != false) { - output.writeBool(3, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); - } - size += 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.admin.v1alpha.ExpandedDataSetFilter.StringFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter other = (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - matchType_ = 0; - value_ = ""; - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter build() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter buildPartial() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter result = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.matchType_ = matchType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter other) { - if (other == com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance()) return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - matchType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int matchType_ = 0; - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - matchType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType.UNRECOGNIZED : result; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMatchType() { - bitField0_ = (bitField0_ & ~0x00000001); - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Required. The string value to be matched against.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * Must be true when match_type is EXACT.
-       * Must be false when match_type is CONTAINS.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * Must be true when match_type is EXACT.
-       * Must be false when match_type is CONTAINS.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * Must be true when match_type is EXACT.
-       * Must be false when match_type is CONTAINS.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000004); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) - private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter(); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface InListFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - java.util.List - getValuesList(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - int getValuesCount(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * Must be true.
-     * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); - } - /** - *
-   * A filter for a string dimension that matches a particular list of options.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} - */ - public static final class InListFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) - InListFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use InListFilter.newBuilder() to construct. - private InListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private InListFilter() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new InListFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * Required. The list of possible string values to match against. Must be
-     * non-empty.
-     * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; - private boolean caseSensitive_ = false; - /** - *
-     * Optional. If true, the match is case-sensitive. If false, the match is
-     * case-insensitive.
-     * Must be true.
-     * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - if (caseSensitive_ != false) { - output.writeBool(2, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, caseSensitive_); - } - size += 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.admin.v1alpha.ExpandedDataSetFilter.InListFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter other = (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for a string dimension that matches a particular list of options.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter build() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter buildPartial() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter result = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter other) { - if (other == com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000001; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - case 16: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000001; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - values_.makeImmutable(); - return values_; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-       * Required. The list of possible string values to match against. Must be
-       * non-empty.
-       * 
- * - * repeated string values = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * Must be true.
-       * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * Must be true.
-       * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Optional. If true, the match is case-sensitive. If false, the match is
-       * case-insensitive.
-       * Must be true.
-       * 
- * - * bool case_sensitive = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000002); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) - private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter(); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InListFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int oneFilterCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneFilter_; - public enum OneFilterCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STRING_FILTER(2), - IN_LIST_FILTER(3), - ONEFILTER_NOT_SET(0); - private final int value; - private OneFilterCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneFilterCase valueOf(int value) { - return forNumber(value); - } - - public static OneFilterCase forNumber(int value) { - switch (value) { - case 2: return STRING_FILTER; - case 3: return IN_LIST_FILTER; - case 0: return ONEFILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public static final int STRING_FILTER_FIELD_NUMBER = 2; - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getStringFilter() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance(); - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getInListFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance(); - } - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance(); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; - /** - *
-   * Required. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - *
-   * Required. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_); - } - 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(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_); - } - 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.admin.v1alpha.ExpandedDataSetFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter other = (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) obj; - - if (!getFieldName() - .equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 2: - if (!getStringFilter() - .equals(other.getStringFilter())) return false; - break; - case 3: - if (!getInListFilter() - .equals(other.getInListFilter())) return false; - break; - case 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(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (oneFilterCase_) { - case 2: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A specific filter for a single dimension
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilter) - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - fieldName_ = ""; - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter build() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter buildPartial() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.fieldName_ = fieldName_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter result) { - result.oneFilterCase_ = oneFilterCase_; - result.oneFilter_ = this.oneFilter_; - if (oneFilterCase_ == 2 && - stringFilterBuilder_ != null) { - result.oneFilter_ = stringFilterBuilder_.build(); - } - if (oneFilterCase_ == 3 && - inListFilterBuilder_ != null) { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSetFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter other) { - if (other == com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000004; - onChanged(); - } - switch (other.getOneFilterCase()) { - case STRING_FILTER: { - mergeStringFilter(other.getStringFilter()); - break; - } - case IN_LIST_FILTER: { - mergeInListFilter(other.getInListFilter()); - break; - } - case ONEFILTER_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - fieldName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 18: { - input.readMessage( - getStringFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getInListFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public Builder clearOneFilter() { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder> stringFilterBuilder_; - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 2) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - public Builder setStringFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - public Builder setStringFilter( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2 && - oneFilter_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.newBuilder((com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 2) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 2)) { - oneFilter_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 2; - onChanged(); - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder> inListFilterBuilder_; - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - public Builder mergeInListFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3 && - oneFilter_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.newBuilder((com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string dimension that matches a particular list of
-     * options.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - return inListFilterBuilder_; - } - - private java.lang.Object fieldName_ = ""; - /** - *
-     * Required. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. The dimension name to filter.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilter) - private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilter(); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExpandedDataSetFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpression.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpression.java deleted file mode 100644 index 6136e82c9a1d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpression.java +++ /dev/null @@ -1,1328 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/expanded_data_set.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A logical expression of EnhancedDataSet dimension filters.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} - */ -public final class ExpandedDataSetFilterExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) - ExpandedDataSetFilterExpressionOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExpandedDataSetFilterExpression.newBuilder() to construct. - private ExpandedDataSetFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExpandedDataSetFilterExpression() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExpandedDataSetFilterExpression(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder.class); - } - - private int exprCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object expr_; - public enum ExprCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AND_GROUP(1), - NOT_EXPRESSION(2), - FILTER(3), - EXPR_NOT_SET(0); - private final int value; - private ExprCase(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 ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: return AND_GROUP; - case 2: return NOT_EXPRESSION; - case 3: return FILTER; - case 0: return EXPR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public static final int AND_GROUP_FIELD_NUMBER = 1; - /** - *
-   * A list of expressions to be AND’ed together. It must contain a
-   * ExpandedDataSetFilterExpression with either not_expression or
-   * dimension_filter. This must be set for the top level
-   * ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - *
-   * A list of expressions to be AND’ed together. It must contain a
-   * ExpandedDataSetFilterExpression with either not_expression or
-   * dimension_filter. This must be set for the top level
-   * ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * A list of expressions to be AND’ed together. It must contain a
-   * ExpandedDataSetFilterExpression with either not_expression or
-   * dimension_filter. This must be set for the top level
-   * ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 2; - /** - *
-   * A filter expression to be NOT'ed (that is, inverted, complemented). It
-   * must include a dimension_filter. This cannot be set on the
-   * top level ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 2; - } - /** - *
-   * A filter expression to be NOT'ed (that is, inverted, complemented). It
-   * must include a dimension_filter. This cannot be set on the
-   * top level ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getNotExpression() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); - } - /** - *
-   * A filter expression to be NOT'ed (that is, inverted, complemented). It
-   * must include a dimension_filter. This cannot be set on the
-   * top level ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); - } - - public static final int FILTER_FIELD_NUMBER = 3; - /** - *
-   * A filter on a single dimension. This cannot be set on the top
-   * level ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 3; - } - /** - *
-   * A filter on a single dimension. This cannot be set on the top
-   * level ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getFilter() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); - } - /** - *
-   * A filter on a single dimension. This cannot be set on the top
-   * level ExpandedDataSetFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder getFilterOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (exprCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_); - } - if (exprCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_); - } - 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.admin.v1alpha.ExpandedDataSetFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression other = (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getAndGroup() - .equals(other.getAndGroup())) return false; - break; - case 2: - if (!getNotExpression() - .equals(other.getNotExpression())) return false; - break; - case 3: - if (!getFilter() - .equals(other.getFilter())) 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 (exprCase_) { - case 1: - hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getAndGroup().hashCode(); - break; - case 2: - hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getNotExpression().hashCode(); - break; - case 3: - hash = (37 * hash) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A logical expression of EnhancedDataSet dimension filters.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (filterBuilder_ != null) { - filterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression build() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression buildPartial() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression result) { - result.exprCase_ = exprCase_; - result.expr_ = this.expr_; - if (exprCase_ == 1 && - andGroupBuilder_ != null) { - result.expr_ = andGroupBuilder_.build(); - } - if (exprCase_ == 2 && - notExpressionBuilder_ != null) { - result.expr_ = notExpressionBuilder_.build(); - } - if (exprCase_ == 3 && - filterBuilder_ != null) { - result.expr_ = filterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) { - return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression other) { - if (other == com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance()) return this; - switch (other.getExprCase()) { - case AND_GROUP: { - mergeAndGroup(other.getAndGroup()); - break; - } - case NOT_EXPRESSION: { - mergeNotExpression(other.getNotExpression()); - break; - } - case FILTER: { - mergeFilter(other.getFilter()); - break; - } - case EXPR_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAndGroupFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getNotExpressionFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getFilterFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int exprCase_ = 0; - private java.lang.Object expr_; - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder> andGroupBuilder_; - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 && - expr_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - public Builder clearAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - andGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to be AND’ed together. It must contain a
-     * ExpandedDataSetFilterExpression with either not_expression or
-     * dimension_filter. This must be set for the top level
-     * ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> notExpressionBuilder_; - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 2; - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - public Builder setNotExpression(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - public Builder setNotExpression( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - public Builder mergeNotExpression(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 2 && - expr_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.newBuilder((com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - public Builder clearNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - notExpressionBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((exprCase_ == 2) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (that is, inverted, complemented). It
-     * must include a dimension_filter. This cannot be set on the
-     * top level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression not_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder>( - (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder> filterBuilder_; - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 3; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter getFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return filterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - public Builder setFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter value) { - if (filterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - filterBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - public Builder setFilter( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder builderForValue) { - if (filterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - public Builder mergeFilter(com.google.analytics.admin.v1alpha.ExpandedDataSetFilter value) { - if (filterBuilder_ == null) { - if (exprCase_ == 3 && - expr_ != com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.newBuilder((com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - filterBuilder_.mergeFrom(value); - } else { - filterBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - public Builder clearFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - } - filterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder getFilterBuilder() { - return getFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder getFilterOrBuilder() { - if ((exprCase_ == 3) && (filterBuilder_ != null)) { - return filterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_; - } - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter on a single dimension. This cannot be set on the top
-     * level ExpandedDataSetFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.getDefaultInstance(); - } - filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter, com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.ExpandedDataSetFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - return filterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression) - private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression(); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExpandedDataSetFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionList.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionList.java deleted file mode 100644 index d1c638f59a02..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/expanded_data_set.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A list of ExpandedDataSet filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} - */ -public final class ExpandedDataSetFilterExpressionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) - ExpandedDataSetFilterExpressionListOrBuilder { -private static final long serialVersionUID = 0L; - // Use ExpandedDataSetFilterExpressionList.newBuilder() to construct. - private ExpandedDataSetFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ExpandedDataSetFilterExpressionList() { - filterExpressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ExpandedDataSetFilterExpressionList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder.class); - } - - public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List filterExpressions_; - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public java.util.List getFilterExpressionsList() { - return filterExpressions_; - } - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public java.util.List - getFilterExpressionsOrBuilderList() { - return filterExpressions_; - } - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public int getFilterExpressionsCount() { - return filterExpressions_.size(); - } - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getFilterExpressions(int index) { - return filterExpressions_.get(index); - } - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - return filterExpressions_.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 < filterExpressions_.size(); i++) { - output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, filterExpressions_.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.admin.v1alpha.ExpandedDataSetFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList other = (com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) obj; - - if (!getFilterExpressionsList() - .equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { - hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.class, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - } else { - filterExpressions_ = null; - filterExpressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetProto.internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList build() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList buildPartial() { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result) { - if (filterExpressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filterExpressions_ = filterExpressions_; - } else { - result.filterExpressions_ = filterExpressionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) { - return mergeFrom((com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList other) { - if (other == com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList.getDefaultInstance()) return this; - if (filterExpressionsBuilder_ == null) { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressions_.isEmpty()) { - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFilterExpressionsIsMutable(); - filterExpressions_.addAll(other.filterExpressions_); - } - onChanged(); - } - } else { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressionsBuilder_.isEmpty()) { - filterExpressionsBuilder_.dispose(); - filterExpressionsBuilder_ = null; - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - filterExpressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFilterExpressionsFieldBuilder() : null; - } else { - filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression m = - input.readMessage( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.parser(), - extensionRegistry); - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(m); - } else { - filterExpressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List filterExpressions_ = - java.util.Collections.emptyList(); - private void ensureFilterExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = new java.util.ArrayList(filterExpressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> filterExpressionsBuilder_; - - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public java.util.List getFilterExpressionsList() { - if (filterExpressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(filterExpressions_); - } else { - return filterExpressionsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public int getFilterExpressionsCount() { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.size(); - } else { - return filterExpressionsBuilder_.getCount(); - } - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); - } else { - return filterExpressionsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions(com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder addAllFilterExpressions( - java.lang.Iterable values) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filterExpressions_); - onChanged(); - } else { - filterExpressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder clearFilterExpressions() { - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filterExpressionsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public Builder removeFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.remove(index); - onChanged(); - } else { - filterExpressionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder getFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); } else { - return filterExpressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public java.util.List - getFilterExpressionsOrBuilderList() { - if (filterExpressionsBuilder_ != null) { - return filterExpressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filterExpressions_); - } - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder addFilterExpressionsBuilder() { - return getFilterExpressionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder addFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of ExpandedDataSet filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - public java.util.List - getFilterExpressionsBuilderList() { - return getFilterExpressionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder> - getFilterExpressionsFieldBuilder() { - if (filterExpressionsBuilder_ == null) { - filterExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder>( - filterExpressions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - filterExpressions_ = null; - } - return filterExpressionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) - private static final com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList(); - } - - public static com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExpandedDataSetFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionListOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionListOrBuilder.java deleted file mode 100644 index b8ba0f68718c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/expanded_data_set.proto - -package com.google.analytics.admin.v1alpha; - -public interface ExpandedDataSetFilterExpressionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - java.util.List - getFilterExpressionsList(); - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression getFilterExpressions(int index); - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - int getFilterExpressionsCount(); - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - java.util.List - getFilterExpressionsOrBuilderList(); - /** - *
-   * A list of ExpandedDataSet filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSetFilterExpression filter_expressions = 1; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterOrBuilder.java deleted file mode 100644 index 22720c6357dc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetFilterOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/expanded_data_set.proto - -package com.google.analytics.admin.v1alpha; - -public interface ExpandedDataSetFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ExpandedDataSetFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - * @return The stringFilter. - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter getStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter string_filter = 2; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - * @return The inListFilter. - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter getInListFilter(); - /** - *
-   * A filter for a string dimension that matches a particular list of
-   * options.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilter in_list_filter = 3; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - *
-   * Required. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
-   * Required. The dimension name to filter.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - com.google.analytics.admin.v1alpha.ExpandedDataSetFilter.OneFilterCase getOneFilterCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetProto.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetProto.java deleted file mode 100644 index c074b8b48cab..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ExpandedDataSetProto.java +++ /dev/null @@ -1,156 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/expanded_data_set.proto - -package com.google.analytics.admin.v1alpha; - -public final class ExpandedDataSetProto { - private ExpandedDataSetProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n6google/analytics/admin/v1alpha/expande" + - "d_data_set.proto\022\036google.analytics.admin" + - ".v1alpha\032\037google/api/field_behavior.prot" + - "o\032\031google/api/resource.proto\032\037google/pro" + - "tobuf/timestamp.proto\"\254\004\n\025ExpandedDataSe" + - "tFilter\022[\n\rstring_filter\030\002 \001(\0132B.google." + - "analytics.admin.v1alpha.ExpandedDataSetF" + - "ilter.StringFilterH\000\022\\\n\016in_list_filter\030\003" + - " \001(\0132B.google.analytics.admin.v1alpha.Ex" + - "pandedDataSetFilter.InListFilterH\000\022\030\n\nfi" + - "eld_name\030\001 \001(\tB\004\342A\001\002\032\353\001\n\014StringFilter\022f\n" + - "\nmatch_type\030\001 \001(\0162L.google.analytics.adm" + - "in.v1alpha.ExpandedDataSetFilter.StringF" + - "ilter.MatchTypeB\004\342A\001\002\022\023\n\005value\030\002 \001(\tB\004\342A" + - "\001\002\022\034\n\016case_sensitive\030\003 \001(\010B\004\342A\001\001\"@\n\tMatc" + - "hType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXA" + - "CT\020\001\022\014\n\010CONTAINS\020\002\032B\n\014InListFilter\022\024\n\006va" + - "lues\030\001 \003(\tB\004\342A\001\002\022\034\n\016case_sensitive\030\002 \001(\010" + - "B\004\342A\001\001B\014\n\none_filter\"\247\002\n\037ExpandedDataSet" + - "FilterExpression\022X\n\tand_group\030\001 \001(\0132C.go" + - "ogle.analytics.admin.v1alpha.ExpandedDat" + - "aSetFilterExpressionListH\000\022Y\n\016not_expres" + - "sion\030\002 \001(\0132?.google.analytics.admin.v1al" + - "pha.ExpandedDataSetFilterExpressionH\000\022G\n" + - "\006filter\030\003 \001(\01325.google.analytics.admin.v" + - "1alpha.ExpandedDataSetFilterH\000B\006\n\004expr\"\202" + - "\001\n#ExpandedDataSetFilterExpressionList\022[" + - "\n\022filter_expressions\030\001 \003(\0132?.google.anal" + - "ytics.admin.v1alpha.ExpandedDataSetFilte" + - "rExpression\"\271\003\n\017ExpandedDataSet\022\022\n\004name\030" + - "\001 \001(\tB\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022" + - "\031\n\013description\030\003 \001(\tB\004\342A\001\001\022\035\n\017dimension_" + - "names\030\004 \003(\tB\004\342A\001\005\022\032\n\014metric_names\030\005 \003(\tB" + - "\004\342A\001\005\022j\n\033dimension_filter_expression\030\006 \001" + - "(\0132?.google.analytics.admin.v1alpha.Expa" + - "ndedDataSetFilterExpressionB\004\342A\001\005\022D\n\032dat" + - "a_collection_start_time\030\007 \001(\0132\032.google.p" + - "rotobuf.TimestampB\004\342A\001\003:n\352Ak\n-analyticsa" + - "dmin.googleapis.com/ExpandedDataSet\022:pro" + - "perties/{property}/expandedDataSets/{exp" + - "anded_data_set}B|\n\"com.google.analytics." + - "admin.v1alphaB\024ExpandedDataSetProtoP\001Z>c" + - "loud.google.com/go/analytics/admin/apiv1" + - "alpha/adminpb;adminpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor, - new java.lang.String[] { "StringFilter", "InListFilter", "FieldName", "OneFilter", }); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_StringFilter_descriptor, - new java.lang.String[] { "MatchType", "Value", "CaseSensitive", }); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilter_InListFilter_descriptor, - new java.lang.String[] { "Values", "CaseSensitive", }); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpression_descriptor, - new java.lang.String[] { "AndGroup", "NotExpression", "Filter", "Expr", }); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ExpandedDataSetFilterExpressionList_descriptor, - new java.lang.String[] { "FilterExpressions", }); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ExpandedDataSet_descriptor, - new java.lang.String[] { "Name", "DisplayName", "Description", "DimensionNames", "MetricNames", "DimensionFilterExpression", "DataCollectionStartTime", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.java deleted file mode 100644 index f957f8bddec5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request for fetching the opt out status for the automated GA4 setup process.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} - */ -public final class FetchAutomatedGa4ConfigurationOptOutRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) - FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() to construct. - private FetchAutomatedGa4ConfigurationOptOutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FetchAutomatedGa4ConfigurationOptOutRequest() { - property_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FetchAutomatedGa4ConfigurationOptOutRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.class, com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Required. The UA property to get the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Required. The UA property to get the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - 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.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest other = (com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request for fetching the opt out status for the automated GA4 setup process.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.class, com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest build() { - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest buildPartial() { - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest result = new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest other) { - if (other == com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * Required. The UA property to get the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The UA property to get the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The UA property to get the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The UA property to get the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The UA property to get the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - 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.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) - private static final com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest(); - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchAutomatedGa4ConfigurationOptOutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder.java deleted file mode 100644 index 5802eb07540f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface FetchAutomatedGa4ConfigurationOptOutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The UA property to get the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Required. The UA property to get the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.java deleted file mode 100644 index 756901299234..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponse.java +++ /dev/null @@ -1,498 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for fetching the opt out status for the automated GA4 setup
- * process.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} - */ -public final class FetchAutomatedGa4ConfigurationOptOutResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) - FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder() to construct. - private FetchAutomatedGa4ConfigurationOptOutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FetchAutomatedGa4ConfigurationOptOutResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FetchAutomatedGa4ConfigurationOptOutResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.class, com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.Builder.class); - } - - public static final int OPT_OUT_FIELD_NUMBER = 1; - private boolean optOut_ = false; - /** - *
-   * The opt out status for the UA property.
-   * 
- * - * bool opt_out = 1; - * @return The optOut. - */ - @java.lang.Override - public boolean getOptOut() { - return optOut_; - } - - 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 (optOut_ != false) { - output.writeBool(1, optOut_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (optOut_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(1, optOut_); - } - 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.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse other = (com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) obj; - - if (getOptOut() - != other.getOptOut()) 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) + OPT_OUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOptOut()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for fetching the opt out status for the automated GA4 setup
-   * process.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.class, com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - optOut_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchAutomatedGa4ConfigurationOptOutResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse build() { - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse buildPartial() { - com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse result = new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.optOut_ = optOut_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse other) { - if (other == com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance()) return this; - if (other.getOptOut() != false) { - setOptOut(other.getOptOut()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - optOut_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private boolean optOut_ ; - /** - *
-     * The opt out status for the UA property.
-     * 
- * - * bool opt_out = 1; - * @return The optOut. - */ - @java.lang.Override - public boolean getOptOut() { - return optOut_; - } - /** - *
-     * The opt out status for the UA property.
-     * 
- * - * bool opt_out = 1; - * @param value The optOut to set. - * @return This builder for chaining. - */ - public Builder setOptOut(boolean value) { - - optOut_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The opt out status for the UA property.
-     * 
- * - * bool opt_out = 1; - * @return This builder for chaining. - */ - public Builder clearOptOut() { - bitField0_ = (bitField0_ & ~0x00000001); - optOut_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) - private static final com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse(); - } - - public static com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchAutomatedGa4ConfigurationOptOutResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder.java deleted file mode 100644 index b7695941fdb4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder.java +++ /dev/null @@ -1,19 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface FetchAutomatedGa4ConfigurationOptOutResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchAutomatedGa4ConfigurationOptOutResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The opt out status for the UA property.
-   * 
- * - * bool opt_out = 1; - * @return The optOut. - */ - boolean getOptOut(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequest.java deleted file mode 100644 index f292be93eb5a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequest.java +++ /dev/null @@ -1,605 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request for looking up GA4 property connected to a UA property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} - */ -public final class FetchConnectedGa4PropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) - FetchConnectedGa4PropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use FetchConnectedGa4PropertyRequest.newBuilder() to construct. - private FetchConnectedGa4PropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FetchConnectedGa4PropertyRequest() { - property_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FetchConnectedGa4PropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.class, com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Required. The UA property for which to look up the connected GA4 property.
-   * Note this request uses the
-   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internal_web_property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Required. The UA property for which to look up the connected GA4 property.
-   * Note this request uses the
-   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internal_web_property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - 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.admin.v1alpha.FetchConnectedGa4PropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest other = (com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request for looking up GA4 property connected to a UA property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.class, com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest build() { - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest buildPartial() { - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest result = new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest other) { - if (other == com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * Required. The UA property for which to look up the connected GA4 property.
-     * Note this request uses the
-     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internal_web_property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The UA property for which to look up the connected GA4 property.
-     * Note this request uses the
-     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internal_web_property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The UA property for which to look up the connected GA4 property.
-     * Note this request uses the
-     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internal_web_property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The UA property for which to look up the connected GA4 property.
-     * Note this request uses the
-     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internal_web_property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The UA property for which to look up the connected GA4 property.
-     * Note this request uses the
-     * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internal_web_property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - 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.admin.v1alpha.FetchConnectedGa4PropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) - private static final com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest(); - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchConnectedGa4PropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequestOrBuilder.java deleted file mode 100644 index f90e15ef05ad..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface FetchConnectedGa4PropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The UA property for which to look up the connected GA4 property.
-   * Note this request uses the
-   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internal_web_property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Required. The UA property for which to look up the connected GA4 property.
-   * Note this request uses the
-   * internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internal_web_property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponse.java deleted file mode 100644 index 069c96a43105..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponse.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response for looking up GA4 property connected to a UA property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} - */ -public final class FetchConnectedGa4PropertyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) - FetchConnectedGa4PropertyResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use FetchConnectedGa4PropertyResponse.newBuilder() to construct. - private FetchConnectedGa4PropertyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FetchConnectedGa4PropertyResponse() { - property_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FetchConnectedGa4PropertyResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.class, com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * The GA4 property connected to the UA property. An empty string is returned
-   * when there is no connected GA4 property.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * The GA4 property connected to the UA property. An empty string is returned
-   * when there is no connected GA4 property.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - 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.admin.v1alpha.FetchConnectedGa4PropertyResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse other = (com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) obj; - - if (!getProperty() - .equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response for looking up GA4 property connected to a UA property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.class, com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_FetchConnectedGa4PropertyResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse build() { - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse buildPartial() { - com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse result = new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse other) { - if (other == com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * The GA4 property connected to the UA property. An empty string is returned
-     * when there is no connected GA4 property.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The GA4 property connected to the UA property. An empty string is returned
-     * when there is no connected GA4 property.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The GA4 property connected to the UA property. An empty string is returned
-     * when there is no connected GA4 property.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The GA4 property connected to the UA property. An empty string is returned
-     * when there is no connected GA4 property.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The GA4 property connected to the UA property. An empty string is returned
-     * when there is no connected GA4 property.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - 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.admin.v1alpha.FetchConnectedGa4PropertyResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) - private static final com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse(); - } - - public static com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FetchConnectedGa4PropertyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponseOrBuilder.java deleted file mode 100644 index 56ca73c7838f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FetchConnectedGa4PropertyResponseOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface FetchConnectedGa4PropertyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FetchConnectedGa4PropertyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The GA4 property connected to the UA property. An empty string is returned
-   * when there is no connected GA4 property.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * The GA4 property connected to the UA property. An empty string is returned
-   * when there is no connected GA4 property.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java deleted file mode 100644 index cd98be8dc15c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java +++ /dev/null @@ -1,1012 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A link between a GA4 property and a Firebase project.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FirebaseLink} - */ -public final class FirebaseLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.FirebaseLink) - FirebaseLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use FirebaseLink.newBuilder() to construct. - private FirebaseLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FirebaseLink() { - name_ = ""; - project_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FirebaseLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FirebaseLink.class, com.google.analytics.admin.v1alpha.FirebaseLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object project_ = ""; - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - @java.lang.Override - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - 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(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - 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(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - 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.admin.v1alpha.FirebaseLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.FirebaseLink other = (com.google.analytics.admin.v1alpha.FirebaseLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.FirebaseLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.FirebaseLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.FirebaseLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.FirebaseLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 property and a Firebase project.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.FirebaseLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.FirebaseLink) - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.FirebaseLink.class, com.google.analytics.admin.v1alpha.FirebaseLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - project_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink build() { - com.google.analytics.admin.v1alpha.FirebaseLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink buildPartial() { - com.google.analytics.admin.v1alpha.FirebaseLink result = new com.google.analytics.admin.v1alpha.FirebaseLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.FirebaseLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.project_ = project_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.FirebaseLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.FirebaseLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.FirebaseLink other) { - if (other == com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.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. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The project to set. - * @return This builder for chaining. - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - project_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearProject() { - project_ = getDefaultInstance().getProject(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for project to set. - * @return This builder for chaining. - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - project_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.FirebaseLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.FirebaseLink) - private static final com.google.analytics.admin.v1alpha.FirebaseLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.FirebaseLink(); - } - - public static com.google.analytics.admin.v1alpha.FirebaseLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirebaseLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java deleted file mode 100644 index 9a5ea8689d20..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface FirebaseLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.FirebaseLink) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - java.lang.String getProject(); - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java deleted file mode 100644 index 2f167a083dec..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetAccessBinding RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAccessBindingRequest} - */ -public final class GetAccessBindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAccessBindingRequest) - GetAccessBindingRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetAccessBindingRequest.newBuilder() to construct. - private GetAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAccessBindingRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAccessBindingRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, com.google.analytics.admin.v1alpha.GetAccessBindingRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the access binding to retrieve.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the access binding to retrieve.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetAccessBindingRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetAccessBindingRequest other = (com.google.analytics.admin.v1alpha.GetAccessBindingRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetAccessBindingRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetAccessBinding RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAccessBindingRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAccessBindingRequest) - com.google.analytics.admin.v1alpha.GetAccessBindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAccessBindingRequest.class, com.google.analytics.admin.v1alpha.GetAccessBindingRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetAccessBindingRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccessBindingRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetAccessBindingRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccessBindingRequest build() { - com.google.analytics.admin.v1alpha.GetAccessBindingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccessBindingRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetAccessBindingRequest result = new com.google.analytics.admin.v1alpha.GetAccessBindingRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetAccessBindingRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetAccessBindingRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetAccessBindingRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAccessBindingRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetAccessBindingRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the access binding to retrieve.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the access binding to retrieve.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the access binding to retrieve.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the access binding to retrieve.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the access binding to retrieve.
-     * Formats:
-     * - accounts/{account}/accessBindings/{accessBinding}
-     * - properties/{property}/accessBindings/{accessBinding}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetAccessBindingRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAccessBindingRequest) - private static final com.google.analytics.admin.v1alpha.GetAccessBindingRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAccessBindingRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAccessBindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccessBindingRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java deleted file mode 100644 index aac727596125..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccessBindingRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetAccessBindingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAccessBindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the access binding to retrieve.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the access binding to retrieve.
-   * Formats:
-   * - accounts/{account}/accessBindings/{accessBinding}
-   * - properties/{property}/accessBindings/{accessBinding}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java deleted file mode 100644 index f02e611be1e7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetAccount RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAccountRequest} - */ -public final class GetAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAccountRequest) - GetAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetAccountRequest.newBuilder() to construct. - private GetAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAccountRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAccountRequest.class, com.google.analytics.admin.v1alpha.GetAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetAccountRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetAccountRequest other = (com.google.analytics.admin.v1alpha.GetAccountRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetAccount RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAccountRequest) - com.google.analytics.admin.v1alpha.GetAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAccountRequest.class, com.google.analytics.admin.v1alpha.GetAccountRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetAccountRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccountRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccountRequest build() { - com.google.analytics.admin.v1alpha.GetAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccountRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetAccountRequest result = new com.google.analytics.admin.v1alpha.GetAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetAccountRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetAccountRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAccountRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAccountRequest) - private static final com.google.analytics.admin.v1alpha.GetAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAccountRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java deleted file mode 100644 index 65eda19d57aa..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequest.java deleted file mode 100644 index 1b4728e858ab..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message to be passed to GetAdSenseLink method.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAdSenseLinkRequest} - */ -public final class GetAdSenseLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) - GetAdSenseLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetAdSenseLinkRequest.newBuilder() to construct. - private GetAdSenseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAdSenseLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAdSenseLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.class, com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Unique identifier for the AdSense Link requested.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Unique identifier for the AdSense Link requested.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetAdSenseLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest other = (com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message to be passed to GetAdSenseLink method.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAdSenseLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.class, com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAdSenseLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest build() { - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest result = new com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Unique identifier for the AdSense Link requested.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Unique identifier for the AdSense Link requested.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Unique identifier for the AdSense Link requested.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Unique identifier for the AdSense Link requested.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Unique identifier for the AdSense Link requested.
-     * Format: properties/{propertyId}/adSenseLinks/{linkId}
-     * Example: properties/1234/adSenseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetAdSenseLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) - private static final com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAdSenseLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAdSenseLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequestOrBuilder.java deleted file mode 100644 index 6291b3d87ebe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAdSenseLinkRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetAdSenseLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAdSenseLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Unique identifier for the AdSense Link requested.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Unique identifier for the AdSense Link requested.
-   * Format: properties/{propertyId}/adSenseLinks/{linkId}
-   * Example: properties/1234/adSenseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java deleted file mode 100644 index c3ecbeb40037..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetAttributionSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAttributionSettingsRequest} - */ -public final class GetAttributionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) - GetAttributionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetAttributionSettingsRequest.newBuilder() to construct. - private GetAttributionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAttributionSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAttributionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the attribution settings to retrieve.
-   * Format: properties/{property}/attributionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the attribution settings to retrieve.
-   * Format: properties/{property}/attributionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetAttributionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest other = (com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetAttributionSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAttributionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.class, com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAttributionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest build() { - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result = new com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the attribution settings to retrieve.
-     * Format: properties/{property}/attributionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the attribution settings to retrieve.
-     * Format: properties/{property}/attributionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the attribution settings to retrieve.
-     * Format: properties/{property}/attributionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the attribution settings to retrieve.
-     * Format: properties/{property}/attributionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the attribution settings to retrieve.
-     * Format: properties/{property}/attributionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetAttributionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) - private static final com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAttributionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAttributionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java deleted file mode 100644 index f5c3da79d367..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAttributionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetAttributionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAttributionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the attribution settings to retrieve.
-   * Format: properties/{property}/attributionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the attribution settings to retrieve.
-   * Format: properties/{property}/attributionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java deleted file mode 100644 index 542accf11345..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetAudience RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAudienceRequest} - */ -public final class GetAudienceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetAudienceRequest) - GetAudienceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetAudienceRequest.newBuilder() to construct. - private GetAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAudienceRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAudienceRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAudienceRequest.class, com.google.analytics.admin.v1alpha.GetAudienceRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the Audience to get.
-   * Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the Audience to get.
-   * Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetAudienceRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetAudienceRequest other = (com.google.analytics.admin.v1alpha.GetAudienceRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetAudienceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetAudience RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetAudienceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetAudienceRequest) - com.google.analytics.admin.v1alpha.GetAudienceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetAudienceRequest.class, com.google.analytics.admin.v1alpha.GetAudienceRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetAudienceRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetAudienceRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetAudienceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAudienceRequest build() { - com.google.analytics.admin.v1alpha.GetAudienceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAudienceRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetAudienceRequest result = new com.google.analytics.admin.v1alpha.GetAudienceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetAudienceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetAudienceRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetAudienceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetAudienceRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetAudienceRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the Audience to get.
-     * Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the Audience to get.
-     * Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the Audience to get.
-     * Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Audience to get.
-     * Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Audience to get.
-     * Example format: properties/1234/audiences/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetAudienceRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetAudienceRequest) - private static final com.google.analytics.admin.v1alpha.GetAudienceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetAudienceRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAudienceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetAudienceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java deleted file mode 100644 index 6e032eba306d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAudienceRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetAudienceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetAudienceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Audience to get.
-   * Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Audience to get.
-   * Example format: properties/1234/audiences/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequest.java deleted file mode 100644 index 2a75c04d4f6d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetBigQueryLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetBigQueryLinkRequest} - */ -public final class GetBigQueryLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) - GetBigQueryLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetBigQueryLinkRequest.newBuilder() to construct. - private GetBigQueryLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetBigQueryLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetBigQueryLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.class, com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the BigQuery link to lookup.
-   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-   * Example: properties/123/bigQueryLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the BigQuery link to lookup.
-   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-   * Example: properties/123/bigQueryLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetBigQueryLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest other = (com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetBigQueryLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetBigQueryLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.class, com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetBigQueryLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest build() { - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest result = new com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the BigQuery link to lookup.
-     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-     * Example: properties/123/bigQueryLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the BigQuery link to lookup.
-     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-     * Example: properties/123/bigQueryLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the BigQuery link to lookup.
-     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-     * Example: properties/123/bigQueryLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the BigQuery link to lookup.
-     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-     * Example: properties/123/bigQueryLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the BigQuery link to lookup.
-     * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-     * Example: properties/123/bigQueryLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetBigQueryLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) - private static final com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetBigQueryLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetBigQueryLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequestOrBuilder.java deleted file mode 100644 index 85b5054e89aa..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetBigQueryLinkRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetBigQueryLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetBigQueryLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the BigQuery link to lookup.
-   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-   * Example: properties/123/bigQueryLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the BigQuery link to lookup.
-   * Format: properties/{property_id}/bigQueryLinks/{bigquery_link_id}
-   * Example: properties/123/bigQueryLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequest.java deleted file mode 100644 index cfc39d1dfca0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetChannelGroup RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetChannelGroupRequest} - */ -public final class GetChannelGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetChannelGroupRequest) - GetChannelGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetChannelGroupRequest.newBuilder() to construct. - private GetChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetChannelGroupRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetChannelGroupRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetChannelGroupRequest.class, com.google.analytics.admin.v1alpha.GetChannelGroupRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The ChannelGroup to get.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The ChannelGroup to get.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetChannelGroupRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetChannelGroupRequest other = (com.google.analytics.admin.v1alpha.GetChannelGroupRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetChannelGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetChannelGroup RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetChannelGroupRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetChannelGroupRequest) - com.google.analytics.admin.v1alpha.GetChannelGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetChannelGroupRequest.class, com.google.analytics.admin.v1alpha.GetChannelGroupRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetChannelGroupRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetChannelGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetChannelGroupRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetChannelGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetChannelGroupRequest build() { - com.google.analytics.admin.v1alpha.GetChannelGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetChannelGroupRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetChannelGroupRequest result = new com.google.analytics.admin.v1alpha.GetChannelGroupRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetChannelGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetChannelGroupRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetChannelGroupRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetChannelGroupRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetChannelGroupRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The ChannelGroup to get.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The ChannelGroup to get.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The ChannelGroup to get.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to get.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to get.
-     * Example format: properties/1234/channelGroups/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetChannelGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetChannelGroupRequest) - private static final com.google.analytics.admin.v1alpha.GetChannelGroupRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetChannelGroupRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetChannelGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetChannelGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetChannelGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequestOrBuilder.java deleted file mode 100644 index 2984f9bdf1c8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetChannelGroupRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetChannelGroupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetChannelGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The ChannelGroup to get.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The ChannelGroup to get.
-   * Example format: properties/1234/channelGroups/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java deleted file mode 100644 index 5fb13120bdf1..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} - */ -public final class GetConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) - GetConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetConversionEventRequest.newBuilder() to construct. - private GetConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetConversionEventRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetConversionEventRequest other = (com.google.analytics.admin.v1alpha.GetConversionEventRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) - com.google.analytics.admin.v1alpha.GetConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetConversionEventRequest build() { - com.google.analytics.admin.v1alpha.GetConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetConversionEventRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetConversionEventRequest result = new com.google.analytics.admin.v1alpha.GetConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetConversionEventRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetConversionEventRequest) - private static final com.google.analytics.admin.v1alpha.GetConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetConversionEventRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java deleted file mode 100644 index 1fe2ec1d85d0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java deleted file mode 100644 index 01dd1af1c28c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} - */ -public final class GetCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) - GetCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetCustomDimensionRequest.newBuilder() to construct. - private GetCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetCustomDimensionRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other = (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) - com.google.analytics.admin.v1alpha.GetCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest build() { - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomDimensionRequest) - private static final com.google.analytics.admin.v1alpha.GetCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 1f3349e8cac3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java deleted file mode 100644 index c42f2e95bac0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} - */ -public final class GetCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) - GetCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetCustomMetricRequest.newBuilder() to construct. - private GetCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetCustomMetricRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetCustomMetricRequest other = (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) - com.google.analytics.admin.v1alpha.GetCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomMetricRequest build() { - com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomMetricRequest) - private static final com.google.analytics.admin.v1alpha.GetCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java deleted file mode 100644 index d22f4b1f0560..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java deleted file mode 100644 index 1efa00fbfd57..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetDataRedactionSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest} - */ -public final class GetDataRedactionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) - GetDataRedactionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDataRedactionSettingsRequest.newBuilder() to construct. - private GetDataRedactionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataRedactionSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDataRedactionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetDataRedactionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest other = (com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDataRedactionSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.class, com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRedactionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest build() { - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result = new com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-     * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetDataRedactionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) - private static final com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataRedactionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java deleted file mode 100644 index 527ac44579e2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRedactionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetDataRedactionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataRedactionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/dataRedactionSettings
-   * Example: "properties/1000/dataStreams/2000/dataRedactionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java deleted file mode 100644 index cbf2a4275208..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetDataRetentionSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} - */ -public final class GetDataRetentionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) - GetDataRetentionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDataRetentionSettingsRequest.newBuilder() to construct. - private GetDataRetentionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataRetentionSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDataRetentionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetDataRetentionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest other = (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDataRetentionSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest build() { - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result = new com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetDataRetentionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) - private static final com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataRetentionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index 420e9134905b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetDataRetentionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java deleted file mode 100644 index 53916d766f48..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetDataSharingSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} - */ -public final class GetDataSharingSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) - GetDataSharingSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDataSharingSettingsRequest.newBuilder() to construct. - private GetDataSharingSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataSharingSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDataSharingSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.class, com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetDataSharingSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest other = (com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDataSharingSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataSharingSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.class, com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest build() { - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest result = new com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetDataSharingSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) - private static final com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataSharingSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java deleted file mode 100644 index 800d242e2a00..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetDataSharingSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataSharingSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java deleted file mode 100644 index 94d40b1cb4f8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataStreamRequest} - */ -public final class GetDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataStreamRequest) - GetDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDataStreamRequest.newBuilder() to construct. - private GetDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, com.google.analytics.admin.v1alpha.GetDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetDataStreamRequest other = (com.google.analytics.admin.v1alpha.GetDataStreamRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataStreamRequest) - com.google.analytics.admin.v1alpha.GetDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDataStreamRequest.class, com.google.analytics.admin.v1alpha.GetDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest build() { - com.google.analytics.admin.v1alpha.GetDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetDataStreamRequest result = new com.google.analytics.admin.v1alpha.GetDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetDataStreamRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.GetDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java deleted file mode 100644 index a36c24d56d24..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java deleted file mode 100644 index c7858af027b9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetDisplayVideo360AdvertiserLinkProposal RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} - */ -public final class GetDisplayVideo360AdvertiserLinkProposalRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) - GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. - private GetDisplayVideo360AdvertiserLinkProposalRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDisplayVideo360AdvertiserLinkProposalRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest other = (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDisplayVideo360AdvertiserLinkProposal RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.class, com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest build() { - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result = new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) - private static final com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java deleted file mode 100644 index f187967453e9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index 40fc6580b5c8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetDisplayVideo360AdvertiserLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} - */ -public final class GetDisplayVideo360AdvertiserLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) - GetDisplayVideo360AdvertiserLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. - private GetDisplayVideo360AdvertiserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDisplayVideo360AdvertiserLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDisplayVideo360AdvertiserLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest other = (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDisplayVideo360AdvertiserLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest build() { - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result = new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DisplayVideo360AdvertiserLink to get.
-     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) - private static final com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDisplayVideo360AdvertiserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 21e6060eb995..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetDisplayVideo360AdvertiserLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DisplayVideo360AdvertiserLink to get.
-   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java deleted file mode 100644 index 644c955b0520..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetEnhancedMeasurementSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} - */ -public final class GetEnhancedMeasurementSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - GetEnhancedMeasurementSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEnhancedMeasurementSettingsRequest.newBuilder() to construct. - private GetEnhancedMeasurementSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEnhancedMeasurementSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEnhancedMeasurementSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetEnhancedMeasurementSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other = (com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetEnhancedMeasurementSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.class, com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest build() { - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result = new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-     * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - private static final com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEnhancedMeasurementSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java deleted file mode 100644 index 24ada6fbb941..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetEnhancedMeasurementSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings
-   * Example: "properties/1000/dataStreams/2000/enhancedMeasurementSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequest.java deleted file mode 100644 index fc78e79a04f9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetEventCreateRule RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetEventCreateRuleRequest} - */ -public final class GetEventCreateRuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) - GetEventCreateRuleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetEventCreateRuleRequest.newBuilder() to construct. - private GetEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetEventCreateRuleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetEventCreateRuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the EventCreateRule to get.
-   * Example format: properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the EventCreateRule to get.
-   * Example format: properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetEventCreateRuleRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest other = (com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetEventCreateRule RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetEventCreateRuleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest build() { - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest result = new com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the EventCreateRule to get.
-     * Example format: properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the EventCreateRule to get.
-     * Example format: properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the EventCreateRule to get.
-     * Example format: properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the EventCreateRule to get.
-     * Example format: properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the EventCreateRule to get.
-     * Example format: properties/123/dataStreams/456/eventCreateRules/789
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetEventCreateRuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) - private static final com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEventCreateRuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetEventCreateRuleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequestOrBuilder.java deleted file mode 100644 index 8147ba1a5e84..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEventCreateRuleRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetEventCreateRuleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetEventCreateRuleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the EventCreateRule to get.
-   * Example format: properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the EventCreateRule to get.
-   * Example format: properties/123/dataStreams/456/eventCreateRules/789
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java deleted file mode 100644 index bdfc57d64591..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetExpandedDataSet RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetExpandedDataSetRequest} - */ -public final class GetExpandedDataSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) - GetExpandedDataSetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetExpandedDataSetRequest.newBuilder() to construct. - private GetExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetExpandedDataSetRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetExpandedDataSetRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the ExpandedDataSet to get.
-   * Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the ExpandedDataSet to get.
-   * Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetExpandedDataSetRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest other = (com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetExpandedDataSet RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetExpandedDataSetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest build() { - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result = new com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the ExpandedDataSet to get.
-     * Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the ExpandedDataSet to get.
-     * Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the ExpandedDataSet to get.
-     * Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the ExpandedDataSet to get.
-     * Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the ExpandedDataSet to get.
-     * Example format: properties/1234/expandedDataSets/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetExpandedDataSetRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) - private static final com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetExpandedDataSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetExpandedDataSetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java deleted file mode 100644 index d3b770b79c64..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetExpandedDataSetRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetExpandedDataSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetExpandedDataSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the ExpandedDataSet to get.
-   * Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the ExpandedDataSet to get.
-   * Example format: properties/1234/expandedDataSets/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java deleted file mode 100644 index f26c6125e51f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetGlobalSiteTag RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} - */ -public final class GetGlobalSiteTagRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) - GetGlobalSiteTagRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetGlobalSiteTagRequest.newBuilder() to construct. - private GetGlobalSiteTagRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetGlobalSiteTagRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetGlobalSiteTagRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.class, com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the site tag to lookup.
-   * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the site tag to lookup.
-   * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetGlobalSiteTagRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest other = (com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetGlobalSiteTag RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetGlobalSiteTagRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.class, com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest build() { - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest result = new com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the site tag to lookup.
-     * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the site tag to lookup.
-     * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the site tag to lookup.
-     * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @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; - } - /** - *
-     * Required. The name of the site tag to lookup.
-     * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the site tag to lookup.
-     * Note that site tags are singletons and do not have unique IDs.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetGlobalSiteTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) - private static final com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGlobalSiteTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java deleted file mode 100644 index b24e28e3f840..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetGlobalSiteTagRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetGlobalSiteTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the site tag to lookup.
-   * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the site tag to lookup.
-   * Note that site tags are singletons and do not have unique IDs.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java deleted file mode 100644 index c28310edf07e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetGoogleSignalsSettings RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} - */ -public final class GetGoogleSignalsSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) - GetGoogleSignalsSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetGoogleSignalsSettingsRequest.newBuilder() to construct. - private GetGoogleSignalsSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetGoogleSignalsSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetGoogleSignalsSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the google signals settings to retrieve.
-   * Format: properties/{property}/googleSignalsSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the google signals settings to retrieve.
-   * Format: properties/{property}/googleSignalsSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetGoogleSignalsSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other = (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetGoogleSignalsSettings RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest build() { - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the google signals settings to retrieve.
-     * Format: properties/{property}/googleSignalsSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the google signals settings to retrieve.
-     * Format: properties/{property}/googleSignalsSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the google signals settings to retrieve.
-     * Format: properties/{property}/googleSignalsSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the google signals settings to retrieve.
-     * Format: properties/{property}/googleSignalsSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the google signals settings to retrieve.
-     * Format: properties/{property}/googleSignalsSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetGoogleSignalsSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) - private static final com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetGoogleSignalsSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java deleted file mode 100644 index f39642313bc3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetGoogleSignalsSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the google signals settings to retrieve.
-   * Format: properties/{property}/googleSignalsSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the google signals settings to retrieve.
-   * Format: properties/{property}/googleSignalsSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java deleted file mode 100644 index 68edfcd2cad6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetMeasurementProtocolSecret RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} - */ -public final class GetMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) - GetMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetMeasurementProtocolSecretRequest.newBuilder() to construct. - private GetMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetMeasurementProtocolSecretRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetMeasurementProtocolSecret RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index a0649645bf25..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java deleted file mode 100644 index 026d71f7f0f6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetPropertyRequest} - */ -public final class GetPropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetPropertyRequest) - GetPropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetPropertyRequest.newBuilder() to construct. - private GetPropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetPropertyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetPropertyRequest.class, com.google.analytics.admin.v1alpha.GetPropertyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetPropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetPropertyRequest other = (com.google.analytics.admin.v1alpha.GetPropertyRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetPropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetPropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetPropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetPropertyRequest) - com.google.analytics.admin.v1alpha.GetPropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetPropertyRequest.class, com.google.analytics.admin.v1alpha.GetPropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetPropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetPropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetPropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetPropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetPropertyRequest build() { - com.google.analytics.admin.v1alpha.GetPropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetPropertyRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetPropertyRequest result = new com.google.analytics.admin.v1alpha.GetPropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetPropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetPropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetPropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetPropertyRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetPropertyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetPropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetPropertyRequest) - private static final com.google.analytics.admin.v1alpha.GetPropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetPropertyRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetPropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetPropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java deleted file mode 100644 index d15bc73fa05f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetPropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetPropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java deleted file mode 100644 index 5bcf894c8555..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetRollupPropertySourceLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest} - */ -public final class GetRollupPropertySourceLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) - GetRollupPropertySourceLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetRollupPropertySourceLinkRequest.newBuilder() to construct. - private GetRollupPropertySourceLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetRollupPropertySourceLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetRollupPropertySourceLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the roll-up property source link to lookup.
-   * Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/123/rollupPropertySourceLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the roll-up property source link to lookup.
-   * Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/123/rollupPropertySourceLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetRollupPropertySourceLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest other = (com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetRollupPropertySourceLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.class, com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetRollupPropertySourceLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest build() { - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result = new com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the roll-up property source link to lookup.
-     * Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/123/rollupPropertySourceLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the roll-up property source link to lookup.
-     * Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/123/rollupPropertySourceLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the roll-up property source link to lookup.
-     * Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/123/rollupPropertySourceLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the roll-up property source link to lookup.
-     * Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/123/rollupPropertySourceLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the roll-up property source link to lookup.
-     * Format:
-     * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-     * Example: properties/123/rollupPropertySourceLinks/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetRollupPropertySourceLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) - private static final com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRollupPropertySourceLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java deleted file mode 100644 index c1cd98afadd5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetRollupPropertySourceLinkRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetRollupPropertySourceLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetRollupPropertySourceLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the roll-up property source link to lookup.
-   * Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/123/rollupPropertySourceLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the roll-up property source link to lookup.
-   * Format:
-   * properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link_id}
-   * Example: properties/123/rollupPropertySourceLinks/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequest.java deleted file mode 100644 index 5be4b09c6d89..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetSKAdNetworkConversionValueSchema RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest} - */ -public final class GetSKAdNetworkConversionValueSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) - GetSKAdNetworkConversionValueSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. - private GetSKAdNetworkConversionValueSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSKAdNetworkConversionValueSchemaRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSKAdNetworkConversionValueSchemaRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The resource name of SKAdNetwork conversion value schema to look
-   * up. Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of SKAdNetwork conversion value schema to look
-   * up. Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest other = (com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetSKAdNetworkConversionValueSchema RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest build() { - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest result = new com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The resource name of SKAdNetwork conversion value schema to look
-     * up. Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of SKAdNetwork conversion value schema to look
-     * up. Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of SKAdNetwork conversion value schema to look
-     * up. Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of SKAdNetwork conversion value schema to look
-     * up. Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of SKAdNetwork conversion value schema to look
-     * up. Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) - private static final com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSKAdNetworkConversionValueSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequestOrBuilder.java deleted file mode 100644 index ec0542cd75c3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSKAdNetworkConversionValueSchemaRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetSKAdNetworkConversionValueSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetSKAdNetworkConversionValueSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of SKAdNetwork conversion value schema to look
-   * up. Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of SKAdNetwork conversion value schema to look
-   * up. Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequest.java deleted file mode 100644 index 70c675ec82d2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetSearchAds360Link RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} - */ -public final class GetSearchAds360LinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) - GetSearchAds360LinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSearchAds360LinkRequest.newBuilder() to construct. - private GetSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSearchAds360LinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSearchAds360LinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the SearchAds360Link to get.
-   * Example format: properties/1234/SearchAds360Link/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the SearchAds360Link to get.
-   * Example format: properties/1234/SearchAds360Link/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetSearchAds360LinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest other = (com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetSearchAds360Link RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetSearchAds360LinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest build() { - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest result = new com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the SearchAds360Link to get.
-     * Example format: properties/1234/SearchAds360Link/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the SearchAds360Link to get.
-     * Example format: properties/1234/SearchAds360Link/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the SearchAds360Link to get.
-     * Example format: properties/1234/SearchAds360Link/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the SearchAds360Link to get.
-     * Example format: properties/1234/SearchAds360Link/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the SearchAds360Link to get.
-     * Example format: properties/1234/SearchAds360Link/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetSearchAds360LinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) - private static final com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSearchAds360LinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequestOrBuilder.java deleted file mode 100644 index ed2dfff8ba49..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSearchAds360LinkRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetSearchAds360LinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetSearchAds360LinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the SearchAds360Link to get.
-   * Example format: properties/1234/SearchAds360Link/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the SearchAds360Link to get.
-   * Example format: properties/1234/SearchAds360Link/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java deleted file mode 100644 index f188bd76eea6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for GetSubpropertyEventFilter RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest} - */ -public final class GetSubpropertyEventFilterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) - GetSubpropertyEventFilterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetSubpropertyEventFilterRequest.newBuilder() to construct. - private GetSubpropertyEventFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetSubpropertyEventFilterRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetSubpropertyEventFilterRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Resource name of the subproperty event filter to lookup.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Resource name of the subproperty event filter to lookup.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1alpha.GetSubpropertyEventFilterRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest other = (com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetSubpropertyEventFilter RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) - com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_GetSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest build() { - com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest buildPartial() { - com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result = new com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest other) { - if (other == com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Resource name of the subproperty event filter to lookup.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Resource name of the subproperty event filter to lookup.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Resource name of the subproperty event filter to lookup.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the subproperty event filter to lookup.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the subproperty event filter to lookup.
-     * Format:
-     * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-     * Example: properties/123/subpropertyEventFilters/456
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1alpha.GetSubpropertyEventFilterRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) - private static final com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest(); - } - - public static com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetSubpropertyEventFilterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java deleted file mode 100644 index 900ee0bf00c9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetSubpropertyEventFilterRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface GetSubpropertyEventFilterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the subproperty event filter to lookup.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Resource name of the subproperty event filter to lookup.
-   * Format:
-   * properties/property_id/subpropertyEventFilters/subproperty_event_filter
-   * Example: properties/123/subpropertyEventFilters/456
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java deleted file mode 100644 index 50c6254a0bdf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java +++ /dev/null @@ -1,764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Read-only resource with the tag for sending data from a website to a
- * DataStream. Only present for web DataStream resources.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GlobalSiteTag} - */ -public final class GlobalSiteTag extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GlobalSiteTag) - GlobalSiteTagOrBuilder { -private static final long serialVersionUID = 0L; - // Use GlobalSiteTag.newBuilder() to construct. - private GlobalSiteTag(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GlobalSiteTag() { - name_ = ""; - snippet_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GlobalSiteTag(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GlobalSiteTag.class, com.google.analytics.admin.v1alpha.GlobalSiteTag.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SNIPPET_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object snippet_ = ""; - /** - *
-   * Immutable. JavaScript code snippet to be pasted as the first item into the
-   * head tag of every webpage to measure.
-   * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The snippet. - */ - @java.lang.Override - public java.lang.String getSnippet() { - java.lang.Object ref = snippet_; - 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(); - snippet_ = s; - return s; - } - } - /** - *
-   * Immutable. JavaScript code snippet to be pasted as the first item into the
-   * head tag of every webpage to measure.
-   * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for snippet. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSnippetBytes() { - java.lang.Object ref = snippet_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - snippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snippet_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, snippet_); - } - 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(snippet_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, snippet_); - } - 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.admin.v1alpha.GlobalSiteTag)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GlobalSiteTag other = (com.google.analytics.admin.v1alpha.GlobalSiteTag) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getSnippet() - .equals(other.getSnippet())) 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) + SNIPPET_FIELD_NUMBER; - hash = (53 * hash) + getSnippet().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GlobalSiteTag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GlobalSiteTag 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; - } - /** - *
-   * Read-only resource with the tag for sending data from a website to a
-   * DataStream. Only present for web DataStream resources.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GlobalSiteTag} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GlobalSiteTag) - com.google.analytics.admin.v1alpha.GlobalSiteTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GlobalSiteTag.class, com.google.analytics.admin.v1alpha.GlobalSiteTag.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GlobalSiteTag.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - snippet_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GlobalSiteTag getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GlobalSiteTag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GlobalSiteTag build() { - com.google.analytics.admin.v1alpha.GlobalSiteTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GlobalSiteTag buildPartial() { - com.google.analytics.admin.v1alpha.GlobalSiteTag result = new com.google.analytics.admin.v1alpha.GlobalSiteTag(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GlobalSiteTag result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.snippet_ = snippet_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GlobalSiteTag) { - return mergeFrom((com.google.analytics.admin.v1alpha.GlobalSiteTag)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GlobalSiteTag other) { - if (other == com.google.analytics.admin.v1alpha.GlobalSiteTag.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSnippet().isEmpty()) { - snippet_ = other.snippet_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - snippet_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.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. Resource name for this GlobalSiteTag resource.
-     * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-     * Example: "properties/123/dataStreams/456/globalSiteTag"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object snippet_ = ""; - /** - *
-     * Immutable. JavaScript code snippet to be pasted as the first item into the
-     * head tag of every webpage to measure.
-     * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The snippet. - */ - public java.lang.String getSnippet() { - java.lang.Object ref = snippet_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - snippet_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. JavaScript code snippet to be pasted as the first item into the
-     * head tag of every webpage to measure.
-     * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for snippet. - */ - public com.google.protobuf.ByteString - getSnippetBytes() { - java.lang.Object ref = snippet_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - snippet_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. JavaScript code snippet to be pasted as the first item into the
-     * head tag of every webpage to measure.
-     * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The snippet to set. - * @return This builder for chaining. - */ - public Builder setSnippet( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - snippet_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. JavaScript code snippet to be pasted as the first item into the
-     * head tag of every webpage to measure.
-     * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearSnippet() { - snippet_ = getDefaultInstance().getSnippet(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. JavaScript code snippet to be pasted as the first item into the
-     * head tag of every webpage to measure.
-     * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for snippet to set. - * @return This builder for chaining. - */ - public Builder setSnippetBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - snippet_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GlobalSiteTag) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GlobalSiteTag) - private static final com.google.analytics.admin.v1alpha.GlobalSiteTag DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GlobalSiteTag(); - } - - public static com.google.analytics.admin.v1alpha.GlobalSiteTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GlobalSiteTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GlobalSiteTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java deleted file mode 100644 index add55dcfe06c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface GlobalSiteTagOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GlobalSiteTag) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this GlobalSiteTag resource.
-   * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
-   * Example: "properties/123/dataStreams/456/globalSiteTag"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. JavaScript code snippet to be pasted as the first item into the
-   * head tag of every webpage to measure.
-   * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The snippet. - */ - java.lang.String getSnippet(); - /** - *
-   * Immutable. JavaScript code snippet to be pasted as the first item into the
-   * head tag of every webpage to measure.
-   * 
- * - * string snippet = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for snippet. - */ - com.google.protobuf.ByteString - getSnippetBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java deleted file mode 100644 index 25c2cd60d081..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ /dev/null @@ -1,1739 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A link between a GA4 property and a Google Ads account.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GoogleAdsLink} - */ -public final class GoogleAdsLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GoogleAdsLink) - GoogleAdsLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use GoogleAdsLink.newBuilder() to construct. - private GoogleAdsLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GoogleAdsLink() { - name_ = ""; - customerId_ = ""; - creatorEmailAddress_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GoogleAdsLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GoogleAdsLink.class, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOMER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object customerId_ = ""; - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The customerId. - */ - @java.lang.Override - public java.lang.String getCustomerId() { - java.lang.Object ref = customerId_; - 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(); - customerId_ = s; - return s; - } - } - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for customerId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCustomerIdBytes() { - java.lang.Object ref = customerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - customerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CAN_MANAGE_CLIENTS_FIELD_NUMBER = 4; - private boolean canManageClients_ = false; - /** - *
-   * Output only. If true, this link is for a Google Ads manager account.
-   * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The canManageClients. - */ - @java.lang.Override - public boolean getCanManageClients() { - return canManageClients_; - } - - public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 5; - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return Whether the adsPersonalizationEnabled field is set. - */ - @java.lang.Override - public boolean hasAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ != null; - } - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return The adsPersonalizationEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object creatorEmailAddress_ = ""; - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The creatorEmailAddress. - */ - @java.lang.Override - public java.lang.String getCreatorEmailAddress() { - java.lang.Object ref = creatorEmailAddress_; - 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(); - creatorEmailAddress_ = s; - return s; - } - } - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for creatorEmailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCreatorEmailAddressBytes() { - java.lang.Object ref = creatorEmailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creatorEmailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerId_); - } - if (canManageClients_ != false) { - output.writeBool(4, canManageClients_); - } - if (adsPersonalizationEnabled_ != null) { - output.writeMessage(5, getAdsPersonalizationEnabled()); - } - if (createTime_ != null) { - output.writeMessage(7, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(8, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, creatorEmailAddress_); - } - 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(customerId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerId_); - } - if (canManageClients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, canManageClients_); - } - if (adsPersonalizationEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAdsPersonalizationEnabled()); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, creatorEmailAddress_); - } - 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.admin.v1alpha.GoogleAdsLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GoogleAdsLink other = (com.google.analytics.admin.v1alpha.GoogleAdsLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getCustomerId() - .equals(other.getCustomerId())) return false; - if (getCanManageClients() - != other.getCanManageClients()) return false; - if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; - if (hasAdsPersonalizationEnabled()) { - if (!getAdsPersonalizationEnabled() - .equals(other.getAdsPersonalizationEnabled())) return false; - } - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getCreatorEmailAddress() - .equals(other.getCreatorEmailAddress())) 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) + CUSTOMER_ID_FIELD_NUMBER; - hash = (53 * hash) + getCustomerId().hashCode(); - hash = (37 * hash) + CAN_MANAGE_CLIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanManageClients()); - if (hasAdsPersonalizationEnabled()) { - hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + CREATOR_EMAIL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getCreatorEmailAddress().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GoogleAdsLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GoogleAdsLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 property and a Google Ads account.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GoogleAdsLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GoogleAdsLink) - com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GoogleAdsLink.class, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - customerId_ = ""; - canManageClients_ = false; - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - creatorEmailAddress_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink build() { - com.google.analytics.admin.v1alpha.GoogleAdsLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink buildPartial() { - com.google.analytics.admin.v1alpha.GoogleAdsLink result = new com.google.analytics.admin.v1alpha.GoogleAdsLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GoogleAdsLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.customerId_ = customerId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.canManageClients_ = canManageClients_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_ == null - ? adsPersonalizationEnabled_ - : adsPersonalizationEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.creatorEmailAddress_ = creatorEmailAddress_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GoogleAdsLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.GoogleAdsLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GoogleAdsLink other) { - if (other == com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getCustomerId().isEmpty()) { - customerId_ = other.customerId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getCanManageClients() != false) { - setCanManageClients(other.getCanManageClients()); - } - if (other.hasAdsPersonalizationEnabled()) { - mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getCreatorEmailAddress().isEmpty()) { - creatorEmailAddress_ = other.creatorEmailAddress_; - bitField0_ |= 0x00000040; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - customerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: { - canManageClients_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 74: { - creatorEmailAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.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. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object customerId_ = ""; - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The customerId. - */ - public java.lang.String getCustomerId() { - java.lang.Object ref = customerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - customerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for customerId. - */ - public com.google.protobuf.ByteString - getCustomerIdBytes() { - java.lang.Object ref = customerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - customerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The customerId to set. - * @return This builder for chaining. - */ - public Builder setCustomerId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - customerId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearCustomerId() { - customerId_ = getDefaultInstance().getCustomerId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for customerId to set. - * @return This builder for chaining. - */ - public Builder setCustomerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - customerId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean canManageClients_ ; - /** - *
-     * Output only. If true, this link is for a Google Ads manager account.
-     * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The canManageClients. - */ - @java.lang.Override - public boolean getCanManageClients() { - return canManageClients_; - } - /** - *
-     * Output only. If true, this link is for a Google Ads manager account.
-     * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The canManageClients to set. - * @return This builder for chaining. - */ - public Builder setCanManageClients(boolean value) { - - canManageClients_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. If true, this link is for a Google Ads manager account.
-     * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCanManageClients() { - bitField0_ = (bitField0_ & ~0x00000004); - canManageClients_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> adsPersonalizationEnabledBuilder_; - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return Whether the adsPersonalizationEnabled field is set. - */ - public boolean hasAdsPersonalizationEnabled() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return The adsPersonalizationEnabled. - */ - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - if (adsPersonalizationEnabledBuilder_ == null) { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } else { - return adsPersonalizationEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adsPersonalizationEnabled_ = value; - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder setAdsPersonalizationEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = builderForValue.build(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - adsPersonalizationEnabled_ != null && - adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getAdsPersonalizationEnabledBuilder().mergeFrom(value); - } else { - adsPersonalizationEnabled_ = value; - } - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder clearAdsPersonalizationEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - if (adsPersonalizationEnabledBuilder_ != null) { - return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); - } else { - return adsPersonalizationEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getAdsPersonalizationEnabledFieldBuilder() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getAdsPersonalizationEnabled(), - getParentForChildren(), - isClean()); - adsPersonalizationEnabled_ = null; - } - return adsPersonalizationEnabledBuilder_; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000020); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object creatorEmailAddress_ = ""; - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The creatorEmailAddress. - */ - public java.lang.String getCreatorEmailAddress() { - java.lang.Object ref = creatorEmailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creatorEmailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for creatorEmailAddress. - */ - public com.google.protobuf.ByteString - getCreatorEmailAddressBytes() { - java.lang.Object ref = creatorEmailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creatorEmailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The creatorEmailAddress to set. - * @return This builder for chaining. - */ - public Builder setCreatorEmailAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - creatorEmailAddress_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCreatorEmailAddress() { - creatorEmailAddress_ = getDefaultInstance().getCreatorEmailAddress(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for creatorEmailAddress to set. - * @return This builder for chaining. - */ - public Builder setCreatorEmailAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - creatorEmailAddress_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GoogleAdsLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GoogleAdsLink) - private static final com.google.analytics.admin.v1alpha.GoogleAdsLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GoogleAdsLink(); - } - - public static com.google.analytics.admin.v1alpha.GoogleAdsLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAdsLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java deleted file mode 100644 index 90c5e4d693b7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java +++ /dev/null @@ -1,177 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface GoogleAdsLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GoogleAdsLink) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The customerId. - */ - java.lang.String getCustomerId(); - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for customerId. - */ - com.google.protobuf.ByteString - getCustomerIdBytes(); - - /** - *
-   * Output only. If true, this link is for a Google Ads manager account.
-   * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The canManageClients. - */ - boolean getCanManageClients(); - - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return Whether the adsPersonalizationEnabled field is set. - */ - boolean hasAdsPersonalizationEnabled(); - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return The adsPersonalizationEnabled. - */ - com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); - - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The creatorEmailAddress. - */ - java.lang.String getCreatorEmailAddress(); - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for creatorEmailAddress. - */ - com.google.protobuf.ByteString - getCreatorEmailAddressBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java deleted file mode 100644 index 3978b2f3dabc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Consent field of the Google Signals settings.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsConsent} - */ -public enum GoogleSignalsConsent - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Google Signals consent value defaults to
-   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
-   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
-   * 
- * - * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; - */ - GOOGLE_SIGNALS_CONSENT_UNSPECIFIED(0), - /** - *
-   * Terms of service have been accepted
-   * 
- * - * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; - */ - GOOGLE_SIGNALS_CONSENT_CONSENTED(2), - /** - *
-   * Terms of service have not been accepted
-   * 
- * - * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; - */ - GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED(1), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Google Signals consent value defaults to
-   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
-   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
-   * 
- * - * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; - */ - public static final int GOOGLE_SIGNALS_CONSENT_UNSPECIFIED_VALUE = 0; - /** - *
-   * Terms of service have been accepted
-   * 
- * - * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; - */ - public static final int GOOGLE_SIGNALS_CONSENT_CONSENTED_VALUE = 2; - /** - *
-   * Terms of service have not been accepted
-   * 
- * - * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; - */ - public static final int GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED_VALUE = 1; - - - 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 GoogleSignalsConsent 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 GoogleSignalsConsent forNumber(int value) { - switch (value) { - case 0: return GOOGLE_SIGNALS_CONSENT_UNSPECIFIED; - case 2: return GOOGLE_SIGNALS_CONSENT_CONSENTED; - case 1: return GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - GoogleSignalsConsent> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GoogleSignalsConsent findValueByNumber(int number) { - return GoogleSignalsConsent.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(6); - } - - private static final GoogleSignalsConsent[] VALUES = values(); - - public static GoogleSignalsConsent valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private GoogleSignalsConsent(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsConsent) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java deleted file mode 100644 index a5d3802371f0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java +++ /dev/null @@ -1,835 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Settings values for Google Signals.  This is a singleton resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} - */ -public final class GoogleSignalsSettings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) - GoogleSignalsSettingsOrBuilder { -private static final long serialVersionUID = 0L; - // Use GoogleSignalsSettings.newBuilder() to construct. - private GoogleSignalsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GoogleSignalsSettings() { - name_ = ""; - state_ = 0; - consent_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GoogleSignalsSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this setting.
-   * Format: properties/{property_id}/googleSignalsSettings
-   * Example: "properties/1000/googleSignalsSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this setting.
-   * Format: properties/{property_id}/googleSignalsSettings
-   * Example: "properties/1000/googleSignalsSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATE_FIELD_NUMBER = 3; - private int state_ = 0; - /** - *
-   * Status of this setting.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - *
-   * Status of this setting.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return The state. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { - com.google.analytics.admin.v1alpha.GoogleSignalsState result = com.google.analytics.admin.v1alpha.GoogleSignalsState.forNumber(state_); - return result == null ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED : result; - } - - public static final int CONSENT_FIELD_NUMBER = 4; - private int consent_ = 0; - /** - *
-   * Output only. Terms of Service acceptance.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for consent. - */ - @java.lang.Override public int getConsentValue() { - return consent_; - } - /** - *
-   * Output only. Terms of Service acceptance.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The consent. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { - com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = com.google.analytics.admin.v1alpha.GoogleSignalsConsent.forNumber(consent_); - return result == null ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (state_ != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, state_); - } - if (consent_ != com.google.analytics.admin.v1alpha.GoogleSignalsConsent.GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.getNumber()) { - output.writeEnum(4, consent_); - } - 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 (state_ != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, state_); - } - if (consent_ != com.google.analytics.admin.v1alpha.GoogleSignalsConsent.GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, consent_); - } - 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.admin.v1alpha.GoogleSignalsSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GoogleSignalsSettings other = (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (state_ != other.state_) return false; - if (consent_ != other.consent_) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - hash = (37 * hash) + CONSENT_FIELD_NUMBER; - hash = (53 * hash) + consent_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GoogleSignalsSettings 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; - } - /** - *
-   * Settings values for Google Signals.  This is a singleton resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) - com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - state_ = 0; - consent_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings build() { - com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings buildPartial() { - com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GoogleSignalsSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.consent_ = consent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GoogleSignalsSettings) { - return mergeFrom((com.google.analytics.admin.v1alpha.GoogleSignalsSettings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GoogleSignalsSettings other) { - if (other == com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.consent_ != 0) { - setConsentValue(other.getConsentValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 24: { - state_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 24 - case 32: { - consent_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this setting.
-     * Format: properties/{property_id}/googleSignalsSettings
-     * Example: "properties/1000/googleSignalsSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this setting.
-     * Format: properties/{property_id}/googleSignalsSettings
-     * Example: "properties/1000/googleSignalsSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this setting.
-     * Format: properties/{property_id}/googleSignalsSettings
-     * Example: "properties/1000/googleSignalsSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this setting.
-     * Format: properties/{property_id}/googleSignalsSettings
-     * Example: "properties/1000/googleSignalsSettings"
-     * 
- * - * string name = 1 [(.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. Resource name of this setting.
-     * Format: properties/{property_id}/googleSignalsSettings
-     * Example: "properties/1000/googleSignalsSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int state_ = 0; - /** - *
-     * Status of this setting.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override public int getStateValue() { - return state_; - } - /** - *
-     * Status of this setting.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @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_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Status of this setting.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return The state. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { - com.google.analytics.admin.v1alpha.GoogleSignalsState result = com.google.analytics.admin.v1alpha.GoogleSignalsState.forNumber(state_); - return result == null ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED : result; - } - /** - *
-     * Status of this setting.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.analytics.admin.v1alpha.GoogleSignalsState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - state_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Status of this setting.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000002); - state_ = 0; - onChanged(); - return this; - } - - private int consent_ = 0; - /** - *
-     * Output only. Terms of Service acceptance.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for consent. - */ - @java.lang.Override public int getConsentValue() { - return consent_; - } - /** - *
-     * Output only. Terms of Service acceptance.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for consent to set. - * @return This builder for chaining. - */ - public Builder setConsentValue(int value) { - consent_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Terms of Service acceptance.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The consent. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { - com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = com.google.analytics.admin.v1alpha.GoogleSignalsConsent.forNumber(consent_); - return result == null ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED : result; - } - /** - *
-     * Output only. Terms of Service acceptance.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The consent to set. - * @return This builder for chaining. - */ - public Builder setConsent(com.google.analytics.admin.v1alpha.GoogleSignalsConsent value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - consent_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. Terms of Service acceptance.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearConsent() { - bitField0_ = (bitField0_ & ~0x00000004); - consent_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GoogleSignalsSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GoogleSignalsSettings) - private static final com.google.analytics.admin.v1alpha.GoogleSignalsSettings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(); - } - - public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleSignalsSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java deleted file mode 100644 index 96246e7ee99f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface GoogleSignalsSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GoogleSignalsSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this setting.
-   * Format: properties/{property_id}/googleSignalsSettings
-   * Example: "properties/1000/googleSignalsSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this setting.
-   * Format: properties/{property_id}/googleSignalsSettings
-   * Example: "properties/1000/googleSignalsSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Status of this setting.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - /** - *
-   * Status of this setting.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; - * @return The state. - */ - com.google.analytics.admin.v1alpha.GoogleSignalsState getState(); - - /** - *
-   * Output only. Terms of Service acceptance.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for consent. - */ - int getConsentValue(); - /** - *
-   * Output only. Terms of Service acceptance.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The consent. - */ - com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java deleted file mode 100644 index 98d0920433e0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java +++ /dev/null @@ -1,152 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Status of the Google Signals settings.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsState} - */ -public enum GoogleSignalsState - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
-   * represent that the user has not made an explicit choice.
-   * 
- * - * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; - */ - GOOGLE_SIGNALS_STATE_UNSPECIFIED(0), - /** - *
-   * Google Signals is enabled.
-   * 
- * - * GOOGLE_SIGNALS_ENABLED = 1; - */ - GOOGLE_SIGNALS_ENABLED(1), - /** - *
-   * Google Signals is disabled.
-   * 
- * - * GOOGLE_SIGNALS_DISABLED = 2; - */ - GOOGLE_SIGNALS_DISABLED(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
-   * represent that the user has not made an explicit choice.
-   * 
- * - * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; - */ - public static final int GOOGLE_SIGNALS_STATE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Google Signals is enabled.
-   * 
- * - * GOOGLE_SIGNALS_ENABLED = 1; - */ - public static final int GOOGLE_SIGNALS_ENABLED_VALUE = 1; - /** - *
-   * Google Signals is disabled.
-   * 
- * - * GOOGLE_SIGNALS_DISABLED = 2; - */ - public static final int GOOGLE_SIGNALS_DISABLED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static GoogleSignalsState 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 GoogleSignalsState forNumber(int value) { - switch (value) { - case 0: return GOOGLE_SIGNALS_STATE_UNSPECIFIED; - case 1: return GOOGLE_SIGNALS_ENABLED; - case 2: return GOOGLE_SIGNALS_DISABLED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - GoogleSignalsState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public GoogleSignalsState findValueByNumber(int number) { - return GoogleSignalsState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(5); - } - - private static final GoogleSignalsState[] VALUES = values(); - - public static GoogleSignalsState valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private GoogleSignalsState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsState) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRule.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRule.java deleted file mode 100644 index f89e4ab7f867..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRule.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The rules that govern how traffic is grouped into one channel.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GroupingRule} - */ -public final class GroupingRule extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GroupingRule) - GroupingRuleOrBuilder { -private static final long serialVersionUID = 0L; - // Use GroupingRule.newBuilder() to construct. - private GroupingRule(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GroupingRule() { - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GroupingRule(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GroupingRule.class, com.google.analytics.admin.v1alpha.GroupingRule.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Customer defined display name for the channel.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Customer defined display name for the channel.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression_; - /** - *
-   * Required. The Filter Expression that defines the Grouping Rule.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expression field is set. - */ - @java.lang.Override - public boolean hasExpression() { - return expression_ != null; - } - /** - *
-   * Required. The Filter Expression that defines the Grouping Rule.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The expression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getExpression() { - return expression_ == null ? com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() : expression_; - } - /** - *
-   * Required. The Filter Expression that defines the Grouping Rule.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getExpressionOrBuilder() { - return expression_ == null ? com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() : expression_; - } - - 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(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); - } - if (expression_ != null) { - output.writeMessage(2, getExpression()); - } - 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(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); - } - if (expression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getExpression()); - } - 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.admin.v1alpha.GroupingRule)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.GroupingRule other = (com.google.analytics.admin.v1alpha.GroupingRule) obj; - - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (hasExpression() != other.hasExpression()) return false; - if (hasExpression()) { - if (!getExpression() - .equals(other.getExpression())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (hasExpression()) { - hash = (37 * hash) + EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.GroupingRule parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.GroupingRule parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.GroupingRule parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.GroupingRule 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 rules that govern how traffic is grouped into one channel.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.GroupingRule} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GroupingRule) - com.google.analytics.admin.v1alpha.GroupingRuleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_GroupingRule_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.GroupingRule.class, com.google.analytics.admin.v1alpha.GroupingRule.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.GroupingRule.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - expression_ = null; - if (expressionBuilder_ != null) { - expressionBuilder_.dispose(); - expressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ChannelGroupProto.internal_static_google_analytics_admin_v1alpha_GroupingRule_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GroupingRule getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GroupingRule build() { - com.google.analytics.admin.v1alpha.GroupingRule result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GroupingRule buildPartial() { - com.google.analytics.admin.v1alpha.GroupingRule result = new com.google.analytics.admin.v1alpha.GroupingRule(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.GroupingRule result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.expression_ = expressionBuilder_ == null - ? expression_ - : expressionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.GroupingRule) { - return mergeFrom((com.google.analytics.admin.v1alpha.GroupingRule)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.GroupingRule other) { - if (other == com.google.analytics.admin.v1alpha.GroupingRule.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasExpression()) { - mergeExpression(other.getExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Customer defined display name for the channel.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Customer defined display name for the channel.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Customer defined display name for the channel.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Customer defined display name for the channel.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Customer defined display name for the channel.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> expressionBuilder_; - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expression field is set. - */ - public boolean hasExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The expression. - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getExpression() { - if (expressionBuilder_ == null) { - return expression_ == null ? com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() : expression_; - } else { - return expressionBuilder_.getMessage(); - } - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setExpression(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { - if (expressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expression_ = value; - } else { - expressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setExpression( - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder builderForValue) { - if (expressionBuilder_ == null) { - expression_ = builderForValue.build(); - } else { - expressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeExpression(com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression value) { - if (expressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - expression_ != null && - expression_ != com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance()) { - getExpressionBuilder().mergeFrom(value); - } else { - expression_ = value; - } - } else { - expressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearExpression() { - bitField0_ = (bitField0_ & ~0x00000002); - expression_ = null; - if (expressionBuilder_ != null) { - expressionBuilder_.dispose(); - expressionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder getExpressionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getExpressionOrBuilder() { - if (expressionBuilder_ != null) { - return expressionBuilder_.getMessageOrBuilder(); - } else { - return expression_ == null ? - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.getDefaultInstance() : expression_; - } - } - /** - *
-     * Required. The Filter Expression that defines the Grouping Rule.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder> - getExpressionFieldBuilder() { - if (expressionBuilder_ == null) { - expressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression.Builder, com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder>( - getExpression(), - getParentForChildren(), - isClean()); - expression_ = null; - } - return expressionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GroupingRule) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GroupingRule) - private static final com.google.analytics.admin.v1alpha.GroupingRule DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GroupingRule(); - } - - public static com.google.analytics.admin.v1alpha.GroupingRule getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GroupingRule parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.GroupingRule getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRuleOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRuleOrBuilder.java deleted file mode 100644 index b97407c46b95..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GroupingRuleOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/channel_group.proto - -package com.google.analytics.admin.v1alpha; - -public interface GroupingRuleOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GroupingRule) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Customer defined display name for the channel.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Customer defined display name for the channel.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Required. The Filter Expression that defines the Grouping Rule.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expression field is set. - */ - boolean hasExpression(); - /** - *
-   * Required. The Filter Expression that defines the Grouping Rule.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The expression. - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpression getExpression(); - /** - *
-   * Required. The Filter Expression that defines the Grouping Rule.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroupFilterExpression expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ChannelGroupFilterExpressionOrBuilder getExpressionOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java deleted file mode 100644 index 86b37f8b450f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The category selected for this property, used for industry benchmarking.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.IndustryCategory} - */ -public enum IndustryCategory - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Industry category unspecified
-   * 
- * - * INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - INDUSTRY_CATEGORY_UNSPECIFIED(0), - /** - *
-   * Automotive
-   * 
- * - * AUTOMOTIVE = 1; - */ - AUTOMOTIVE(1), - /** - *
-   * Business and industrial markets
-   * 
- * - * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - BUSINESS_AND_INDUSTRIAL_MARKETS(2), - /** - *
-   * Finance
-   * 
- * - * FINANCE = 3; - */ - FINANCE(3), - /** - *
-   * Healthcare
-   * 
- * - * HEALTHCARE = 4; - */ - HEALTHCARE(4), - /** - *
-   * Technology
-   * 
- * - * TECHNOLOGY = 5; - */ - TECHNOLOGY(5), - /** - *
-   * Travel
-   * 
- * - * TRAVEL = 6; - */ - TRAVEL(6), - /** - *
-   * Other
-   * 
- * - * OTHER = 7; - */ - OTHER(7), - /** - *
-   * Arts and entertainment
-   * 
- * - * ARTS_AND_ENTERTAINMENT = 8; - */ - ARTS_AND_ENTERTAINMENT(8), - /** - *
-   * Beauty and fitness
-   * 
- * - * BEAUTY_AND_FITNESS = 9; - */ - BEAUTY_AND_FITNESS(9), - /** - *
-   * Books and literature
-   * 
- * - * BOOKS_AND_LITERATURE = 10; - */ - BOOKS_AND_LITERATURE(10), - /** - *
-   * Food and drink
-   * 
- * - * FOOD_AND_DRINK = 11; - */ - FOOD_AND_DRINK(11), - /** - *
-   * Games
-   * 
- * - * GAMES = 12; - */ - GAMES(12), - /** - *
-   * Hobbies and leisure
-   * 
- * - * HOBBIES_AND_LEISURE = 13; - */ - HOBBIES_AND_LEISURE(13), - /** - *
-   * Home and garden
-   * 
- * - * HOME_AND_GARDEN = 14; - */ - HOME_AND_GARDEN(14), - /** - *
-   * Internet and telecom
-   * 
- * - * INTERNET_AND_TELECOM = 15; - */ - INTERNET_AND_TELECOM(15), - /** - *
-   * Law and government
-   * 
- * - * LAW_AND_GOVERNMENT = 16; - */ - LAW_AND_GOVERNMENT(16), - /** - *
-   * News
-   * 
- * - * NEWS = 17; - */ - NEWS(17), - /** - *
-   * Online communities
-   * 
- * - * ONLINE_COMMUNITIES = 18; - */ - ONLINE_COMMUNITIES(18), - /** - *
-   * People and society
-   * 
- * - * PEOPLE_AND_SOCIETY = 19; - */ - PEOPLE_AND_SOCIETY(19), - /** - *
-   * Pets and animals
-   * 
- * - * PETS_AND_ANIMALS = 20; - */ - PETS_AND_ANIMALS(20), - /** - *
-   * Real estate
-   * 
- * - * REAL_ESTATE = 21; - */ - REAL_ESTATE(21), - /** - *
-   * Reference
-   * 
- * - * REFERENCE = 22; - */ - REFERENCE(22), - /** - *
-   * Science
-   * 
- * - * SCIENCE = 23; - */ - SCIENCE(23), - /** - *
-   * Sports
-   * 
- * - * SPORTS = 24; - */ - SPORTS(24), - /** - *
-   * Jobs and education
-   * 
- * - * JOBS_AND_EDUCATION = 25; - */ - JOBS_AND_EDUCATION(25), - /** - *
-   * Shopping
-   * 
- * - * SHOPPING = 26; - */ - SHOPPING(26), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Industry category unspecified
-   * 
- * - * INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - public static final int INDUSTRY_CATEGORY_UNSPECIFIED_VALUE = 0; - /** - *
-   * Automotive
-   * 
- * - * AUTOMOTIVE = 1; - */ - public static final int AUTOMOTIVE_VALUE = 1; - /** - *
-   * Business and industrial markets
-   * 
- * - * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - public static final int BUSINESS_AND_INDUSTRIAL_MARKETS_VALUE = 2; - /** - *
-   * Finance
-   * 
- * - * FINANCE = 3; - */ - public static final int FINANCE_VALUE = 3; - /** - *
-   * Healthcare
-   * 
- * - * HEALTHCARE = 4; - */ - public static final int HEALTHCARE_VALUE = 4; - /** - *
-   * Technology
-   * 
- * - * TECHNOLOGY = 5; - */ - public static final int TECHNOLOGY_VALUE = 5; - /** - *
-   * Travel
-   * 
- * - * TRAVEL = 6; - */ - public static final int TRAVEL_VALUE = 6; - /** - *
-   * Other
-   * 
- * - * OTHER = 7; - */ - public static final int OTHER_VALUE = 7; - /** - *
-   * Arts and entertainment
-   * 
- * - * ARTS_AND_ENTERTAINMENT = 8; - */ - public static final int ARTS_AND_ENTERTAINMENT_VALUE = 8; - /** - *
-   * Beauty and fitness
-   * 
- * - * BEAUTY_AND_FITNESS = 9; - */ - public static final int BEAUTY_AND_FITNESS_VALUE = 9; - /** - *
-   * Books and literature
-   * 
- * - * BOOKS_AND_LITERATURE = 10; - */ - public static final int BOOKS_AND_LITERATURE_VALUE = 10; - /** - *
-   * Food and drink
-   * 
- * - * FOOD_AND_DRINK = 11; - */ - public static final int FOOD_AND_DRINK_VALUE = 11; - /** - *
-   * Games
-   * 
- * - * GAMES = 12; - */ - public static final int GAMES_VALUE = 12; - /** - *
-   * Hobbies and leisure
-   * 
- * - * HOBBIES_AND_LEISURE = 13; - */ - public static final int HOBBIES_AND_LEISURE_VALUE = 13; - /** - *
-   * Home and garden
-   * 
- * - * HOME_AND_GARDEN = 14; - */ - public static final int HOME_AND_GARDEN_VALUE = 14; - /** - *
-   * Internet and telecom
-   * 
- * - * INTERNET_AND_TELECOM = 15; - */ - public static final int INTERNET_AND_TELECOM_VALUE = 15; - /** - *
-   * Law and government
-   * 
- * - * LAW_AND_GOVERNMENT = 16; - */ - public static final int LAW_AND_GOVERNMENT_VALUE = 16; - /** - *
-   * News
-   * 
- * - * NEWS = 17; - */ - public static final int NEWS_VALUE = 17; - /** - *
-   * Online communities
-   * 
- * - * ONLINE_COMMUNITIES = 18; - */ - public static final int ONLINE_COMMUNITIES_VALUE = 18; - /** - *
-   * People and society
-   * 
- * - * PEOPLE_AND_SOCIETY = 19; - */ - public static final int PEOPLE_AND_SOCIETY_VALUE = 19; - /** - *
-   * Pets and animals
-   * 
- * - * PETS_AND_ANIMALS = 20; - */ - public static final int PETS_AND_ANIMALS_VALUE = 20; - /** - *
-   * Real estate
-   * 
- * - * REAL_ESTATE = 21; - */ - public static final int REAL_ESTATE_VALUE = 21; - /** - *
-   * Reference
-   * 
- * - * REFERENCE = 22; - */ - public static final int REFERENCE_VALUE = 22; - /** - *
-   * Science
-   * 
- * - * SCIENCE = 23; - */ - public static final int SCIENCE_VALUE = 23; - /** - *
-   * Sports
-   * 
- * - * SPORTS = 24; - */ - public static final int SPORTS_VALUE = 24; - /** - *
-   * Jobs and education
-   * 
- * - * JOBS_AND_EDUCATION = 25; - */ - public static final int JOBS_AND_EDUCATION_VALUE = 25; - /** - *
-   * Shopping
-   * 
- * - * SHOPPING = 26; - */ - public static final int SHOPPING_VALUE = 26; - - - 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 IndustryCategory 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 IndustryCategory forNumber(int value) { - switch (value) { - case 0: return INDUSTRY_CATEGORY_UNSPECIFIED; - case 1: return AUTOMOTIVE; - case 2: return BUSINESS_AND_INDUSTRIAL_MARKETS; - case 3: return FINANCE; - case 4: return HEALTHCARE; - case 5: return TECHNOLOGY; - case 6: return TRAVEL; - case 7: return OTHER; - case 8: return ARTS_AND_ENTERTAINMENT; - case 9: return BEAUTY_AND_FITNESS; - case 10: return BOOKS_AND_LITERATURE; - case 11: return FOOD_AND_DRINK; - case 12: return GAMES; - case 13: return HOBBIES_AND_LEISURE; - case 14: return HOME_AND_GARDEN; - case 15: return INTERNET_AND_TELECOM; - case 16: return LAW_AND_GOVERNMENT; - case 17: return NEWS; - case 18: return ONLINE_COMMUNITIES; - case 19: return PEOPLE_AND_SOCIETY; - case 20: return PETS_AND_ANIMALS; - case 21: return REAL_ESTATE; - case 22: return REFERENCE; - case 23: return SCIENCE; - case 24: return SPORTS; - case 25: return JOBS_AND_EDUCATION; - case 26: return SHOPPING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - IndustryCategory> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IndustryCategory findValueByNumber(int number) { - return IndustryCategory.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(0); - } - - private static final IndustryCategory[] VALUES = values(); - - public static IndustryCategory valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private IndustryCategory(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.IndustryCategory) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java deleted file mode 100644 index d4f6ff3d1009..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java +++ /dev/null @@ -1,152 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * An indication of which product the user initiated a link proposal from.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.LinkProposalInitiatingProduct} - */ -public enum LinkProposalInitiatingProduct - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Unspecified product.
-   * 
- * - * LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; - */ - LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED(0), - /** - *
-   * This proposal was created by a user from Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS = 1; - */ - GOOGLE_ANALYTICS(1), - /** - *
-   * This proposal was created by a user from a linked product (not Google
-   * Analytics).
-   * 
- * - * LINKED_PRODUCT = 2; - */ - LINKED_PRODUCT(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Unspecified product.
-   * 
- * - * LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; - */ - public static final int LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED_VALUE = 0; - /** - *
-   * This proposal was created by a user from Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS = 1; - */ - public static final int GOOGLE_ANALYTICS_VALUE = 1; - /** - *
-   * This proposal was created by a user from a linked product (not Google
-   * Analytics).
-   * 
- * - * LINKED_PRODUCT = 2; - */ - public static final int LINKED_PRODUCT_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LinkProposalInitiatingProduct 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 LinkProposalInitiatingProduct forNumber(int value) { - switch (value) { - case 0: return LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED; - case 1: return GOOGLE_ANALYTICS; - case 2: return LINKED_PRODUCT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - LinkProposalInitiatingProduct> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LinkProposalInitiatingProduct findValueByNumber(int number) { - return LinkProposalInitiatingProduct.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(7); - } - - private static final LinkProposalInitiatingProduct[] VALUES = values(); - - public static LinkProposalInitiatingProduct valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private LinkProposalInitiatingProduct(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.LinkProposalInitiatingProduct) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java deleted file mode 100644 index 40655163700f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java +++ /dev/null @@ -1,821 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Status information for a link proposal.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.LinkProposalStatusDetails} - */ -public final class LinkProposalStatusDetails extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.LinkProposalStatusDetails) - LinkProposalStatusDetailsOrBuilder { -private static final long serialVersionUID = 0L; - // Use LinkProposalStatusDetails.newBuilder() to construct. - private LinkProposalStatusDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LinkProposalStatusDetails() { - linkProposalInitiatingProduct_ = 0; - requestorEmail_ = ""; - linkProposalState_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LinkProposalStatusDetails(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.class, com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder.class); - } - - public static final int LINK_PROPOSAL_INITIATING_PRODUCT_FIELD_NUMBER = 1; - private int linkProposalInitiatingProduct_ = 0; - /** - *
-   * Output only. The source of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for linkProposalInitiatingProduct. - */ - @java.lang.Override public int getLinkProposalInitiatingProductValue() { - return linkProposalInitiatingProduct_; - } - /** - *
-   * Output only. The source of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalInitiatingProduct. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct getLinkProposalInitiatingProduct() { - com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.forNumber(linkProposalInitiatingProduct_); - return result == null ? com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.UNRECOGNIZED : result; - } - - public static final int REQUESTOR_EMAIL_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object requestorEmail_ = ""; - /** - *
-   * Output only. The email address of the user that proposed this linkage.
-   * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The requestorEmail. - */ - @java.lang.Override - public java.lang.String getRequestorEmail() { - java.lang.Object ref = requestorEmail_; - 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(); - requestorEmail_ = s; - return s; - } - } - /** - *
-   * Output only. The email address of the user that proposed this linkage.
-   * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for requestorEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRequestorEmailBytes() { - java.lang.Object ref = requestorEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestorEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINK_PROPOSAL_STATE_FIELD_NUMBER = 3; - private int linkProposalState_ = 0; - /** - *
-   * Output only. The state of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for linkProposalState. - */ - @java.lang.Override public int getLinkProposalStateValue() { - return linkProposalState_; - } - /** - *
-   * Output only. The state of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalState. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState() { - com.google.analytics.admin.v1alpha.LinkProposalState result = com.google.analytics.admin.v1alpha.LinkProposalState.forNumber(linkProposalState_); - return result == null ? com.google.analytics.admin.v1alpha.LinkProposalState.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (linkProposalInitiatingProduct_ != com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED.getNumber()) { - output.writeEnum(1, linkProposalInitiatingProduct_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestorEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestorEmail_); - } - if (linkProposalState_ != com.google.analytics.admin.v1alpha.LinkProposalState.LINK_PROPOSAL_STATE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, linkProposalState_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (linkProposalInitiatingProduct_ != com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, linkProposalInitiatingProduct_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestorEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestorEmail_); - } - if (linkProposalState_ != com.google.analytics.admin.v1alpha.LinkProposalState.LINK_PROPOSAL_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, linkProposalState_); - } - 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.admin.v1alpha.LinkProposalStatusDetails)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails other = (com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) obj; - - if (linkProposalInitiatingProduct_ != other.linkProposalInitiatingProduct_) return false; - if (!getRequestorEmail() - .equals(other.getRequestorEmail())) return false; - if (linkProposalState_ != other.linkProposalState_) 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) + LINK_PROPOSAL_INITIATING_PRODUCT_FIELD_NUMBER; - hash = (53 * hash) + linkProposalInitiatingProduct_; - hash = (37 * hash) + REQUESTOR_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getRequestorEmail().hashCode(); - hash = (37 * hash) + LINK_PROPOSAL_STATE_FIELD_NUMBER; - hash = (53 * hash) + linkProposalState_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.LinkProposalStatusDetails 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; - } - /** - *
-   * Status information for a link proposal.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.LinkProposalStatusDetails} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.LinkProposalStatusDetails) - com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.class, com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - linkProposalInitiatingProduct_ = 0; - requestorEmail_ = ""; - linkProposalState_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails build() { - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails buildPartial() { - com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result = new com.google.analytics.admin.v1alpha.LinkProposalStatusDetails(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.linkProposalInitiatingProduct_ = linkProposalInitiatingProduct_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.requestorEmail_ = requestorEmail_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.linkProposalState_ = linkProposalState_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) { - return mergeFrom((com.google.analytics.admin.v1alpha.LinkProposalStatusDetails)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.LinkProposalStatusDetails other) { - if (other == com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance()) return this; - if (other.linkProposalInitiatingProduct_ != 0) { - setLinkProposalInitiatingProductValue(other.getLinkProposalInitiatingProductValue()); - } - if (!other.getRequestorEmail().isEmpty()) { - requestorEmail_ = other.requestorEmail_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.linkProposalState_ != 0) { - setLinkProposalStateValue(other.getLinkProposalStateValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - linkProposalInitiatingProduct_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - requestorEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - linkProposalState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int linkProposalInitiatingProduct_ = 0; - /** - *
-     * Output only. The source of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for linkProposalInitiatingProduct. - */ - @java.lang.Override public int getLinkProposalInitiatingProductValue() { - return linkProposalInitiatingProduct_; - } - /** - *
-     * Output only. The source of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for linkProposalInitiatingProduct to set. - * @return This builder for chaining. - */ - public Builder setLinkProposalInitiatingProductValue(int value) { - linkProposalInitiatingProduct_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The source of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalInitiatingProduct. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct getLinkProposalInitiatingProduct() { - com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.forNumber(linkProposalInitiatingProduct_); - return result == null ? com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.UNRECOGNIZED : result; - } - /** - *
-     * Output only. The source of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The linkProposalInitiatingProduct to set. - * @return This builder for chaining. - */ - public Builder setLinkProposalInitiatingProduct(com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - linkProposalInitiatingProduct_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. The source of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearLinkProposalInitiatingProduct() { - bitField0_ = (bitField0_ & ~0x00000001); - linkProposalInitiatingProduct_ = 0; - onChanged(); - return this; - } - - private java.lang.Object requestorEmail_ = ""; - /** - *
-     * Output only. The email address of the user that proposed this linkage.
-     * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The requestorEmail. - */ - public java.lang.String getRequestorEmail() { - java.lang.Object ref = requestorEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - requestorEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The email address of the user that proposed this linkage.
-     * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for requestorEmail. - */ - public com.google.protobuf.ByteString - getRequestorEmailBytes() { - java.lang.Object ref = requestorEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - requestorEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The email address of the user that proposed this linkage.
-     * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The requestorEmail to set. - * @return This builder for chaining. - */ - public Builder setRequestorEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - requestorEmail_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. The email address of the user that proposed this linkage.
-     * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearRequestorEmail() { - requestorEmail_ = getDefaultInstance().getRequestorEmail(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Output only. The email address of the user that proposed this linkage.
-     * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for requestorEmail to set. - * @return This builder for chaining. - */ - public Builder setRequestorEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - requestorEmail_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int linkProposalState_ = 0; - /** - *
-     * Output only. The state of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for linkProposalState. - */ - @java.lang.Override public int getLinkProposalStateValue() { - return linkProposalState_; - } - /** - *
-     * Output only. The state of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for linkProposalState to set. - * @return This builder for chaining. - */ - public Builder setLinkProposalStateValue(int value) { - linkProposalState_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. The state of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalState. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState() { - com.google.analytics.admin.v1alpha.LinkProposalState result = com.google.analytics.admin.v1alpha.LinkProposalState.forNumber(linkProposalState_); - return result == null ? com.google.analytics.admin.v1alpha.LinkProposalState.UNRECOGNIZED : result; - } - /** - *
-     * Output only. The state of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The linkProposalState to set. - * @return This builder for chaining. - */ - public Builder setLinkProposalState(com.google.analytics.admin.v1alpha.LinkProposalState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - linkProposalState_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. The state of this proposal.
-     * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearLinkProposalState() { - bitField0_ = (bitField0_ & ~0x00000004); - linkProposalState_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.LinkProposalStatusDetails) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.LinkProposalStatusDetails) - private static final com.google.analytics.admin.v1alpha.LinkProposalStatusDetails DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); - } - - public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LinkProposalStatusDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java deleted file mode 100644 index 9d2f440e5637..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface LinkProposalStatusDetailsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.LinkProposalStatusDetails) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. The source of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for linkProposalInitiatingProduct. - */ - int getLinkProposalInitiatingProductValue(); - /** - *
-   * Output only. The source of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalInitiatingProduct. - */ - com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct getLinkProposalInitiatingProduct(); - - /** - *
-   * Output only. The email address of the user that proposed this linkage.
-   * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The requestorEmail. - */ - java.lang.String getRequestorEmail(); - /** - *
-   * Output only. The email address of the user that proposed this linkage.
-   * 
- * - * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for requestorEmail. - */ - com.google.protobuf.ByteString - getRequestorEmailBytes(); - - /** - *
-   * Output only. The state of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for linkProposalState. - */ - int getLinkProposalStateValue(); - /** - *
-   * Output only. The state of this proposal.
-   * 
- * - * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The linkProposalState. - */ - com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java deleted file mode 100644 index 9f871a4e4674..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequest.java +++ /dev/null @@ -1,870 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsRequest} - */ -public final class ListAccessBindingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccessBindingsRequest) - ListAccessBindingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccessBindingsRequest.newBuilder() to construct. - private ListAccessBindingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccessBindingsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccessBindingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of access bindings to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 200 access bindings will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListAccessBindings` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccessBindings` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListAccessBindings` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccessBindings` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListAccessBindingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest other = (com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccessBindingsRequest) - com.google.analytics.admin.v1alpha.ListAccessBindingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.class, com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest build() { - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result = new com.google.analytics.admin.v1alpha.ListAccessBindingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAccessBindingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAccessBindingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccessBindingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListAccessBindingsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Formats:
-     * - accounts/{account}
-     * - properties/{property}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of access bindings to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 access bindings will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of access bindings to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 access bindings will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of access bindings to return.
-     * The service may return fewer than this value.
-     * If unspecified, at most 200 access bindings will be returned.
-     * The maximum value is 500; values above 500 will be coerced to 500.
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListAccessBindings` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccessBindings` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccessBindings` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccessBindings` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccessBindings` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccessBindings` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccessBindings` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccessBindings` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccessBindings` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccessBindings` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccessBindingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccessBindingsRequest) - private static final com.google.analytics.admin.v1alpha.ListAccessBindingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccessBindingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccessBindingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java deleted file mode 100644 index 151b678caf6c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAccessBindingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccessBindingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Formats:
-   * - accounts/{account}
-   * - properties/{property}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of access bindings to return.
-   * The service may return fewer than this value.
-   * If unspecified, at most 200 access bindings will be returned.
-   * The maximum value is 500; values above 500 will be coerced to 500.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListAccessBindings` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccessBindings` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListAccessBindings` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccessBindings` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java deleted file mode 100644 index 3d36a3892a45..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponse.java +++ /dev/null @@ -1,1053 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListAccessBindings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsResponse} - */ -public final class ListAccessBindingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccessBindingsResponse) - ListAccessBindingsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccessBindingsResponse.newBuilder() to construct. - private ListAccessBindingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccessBindingsResponse() { - accessBindings_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccessBindingsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.Builder.class); - } - - public static final int ACCESS_BINDINGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accessBindings_; - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List getAccessBindingsList() { - return accessBindings_; - } - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public java.util.List - getAccessBindingsOrBuilderList() { - return accessBindings_; - } - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public int getAccessBindingsCount() { - return accessBindings_.size(); - } - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - return accessBindings_.get(index); - } - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - return accessBindings_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accessBindings_.size(); i++) { - output.writeMessage(1, accessBindings_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accessBindings_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accessBindings_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListAccessBindingsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAccessBindingsResponse other = (com.google.analytics.admin.v1alpha.ListAccessBindingsResponse) obj; - - if (!getAccessBindingsList() - .equals(other.getAccessBindingsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getAccessBindingsCount() > 0) { - hash = (37 * hash) + ACCESS_BINDINGS_FIELD_NUMBER; - hash = (53 * hash) + getAccessBindingsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAccessBindingsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListAccessBindings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccessBindingsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccessBindingsResponse) - com.google.analytics.admin.v1alpha.ListAccessBindingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.class, com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - } else { - accessBindings_ = null; - accessBindingsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccessBindingsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse build() { - com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result = new com.google.analytics.admin.v1alpha.ListAccessBindingsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result) { - if (accessBindingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = java.util.Collections.unmodifiableList(accessBindings_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accessBindings_ = accessBindings_; - } else { - result.accessBindings_ = accessBindingsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccessBindingsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAccessBindingsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAccessBindingsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccessBindingsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListAccessBindingsResponse.getDefaultInstance()) return this; - if (accessBindingsBuilder_ == null) { - if (!other.accessBindings_.isEmpty()) { - if (accessBindings_.isEmpty()) { - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccessBindingsIsMutable(); - accessBindings_.addAll(other.accessBindings_); - } - onChanged(); - } - } else { - if (!other.accessBindings_.isEmpty()) { - if (accessBindingsBuilder_.isEmpty()) { - accessBindingsBuilder_.dispose(); - accessBindingsBuilder_ = null; - accessBindings_ = other.accessBindings_; - bitField0_ = (bitField0_ & ~0x00000001); - accessBindingsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccessBindingsFieldBuilder() : null; - } else { - accessBindingsBuilder_.addAllMessages(other.accessBindings_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccessBinding m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessBinding.parser(), - extensionRegistry); - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(m); - } else { - accessBindingsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accessBindings_ = - java.util.Collections.emptyList(); - private void ensureAccessBindingsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accessBindings_ = new java.util.ArrayList(accessBindings_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> accessBindingsBuilder_; - - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List getAccessBindingsList() { - if (accessBindingsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accessBindings_); - } else { - return accessBindingsBuilder_.getMessageList(); - } - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public int getAccessBindingsCount() { - if (accessBindingsBuilder_ == null) { - return accessBindings_.size(); - } else { - return accessBindingsBuilder_.getCount(); - } - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); - } else { - return accessBindingsBuilder_.getMessage(index); - } - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, value); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder setAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.set(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, value); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAccessBindings( - int index, com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.add(index, builderForValue.build()); - onChanged(); - } else { - accessBindingsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder addAllAccessBindings( - java.lang.Iterable values) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accessBindings_); - onChanged(); - } else { - accessBindingsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder clearAccessBindings() { - if (accessBindingsBuilder_ == null) { - accessBindings_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accessBindingsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public Builder removeAccessBindings(int index) { - if (accessBindingsBuilder_ == null) { - ensureAccessBindingsIsMutable(); - accessBindings_.remove(index); - onChanged(); - } else { - accessBindingsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index) { - if (accessBindingsBuilder_ == null) { - return accessBindings_.get(index); } else { - return accessBindingsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsOrBuilderList() { - if (accessBindingsBuilder_ != null) { - return accessBindingsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accessBindings_); - } - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder() { - return getAccessBindingsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder addAccessBindingsBuilder( - int index) { - return getAccessBindingsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()); - } - /** - *
-     * List of AccessBindings. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - public java.util.List - getAccessBindingsBuilderList() { - return getAccessBindingsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> - getAccessBindingsFieldBuilder() { - if (accessBindingsBuilder_ == null) { - accessBindingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( - accessBindings_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accessBindings_ = null; - } - return accessBindingsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccessBindingsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccessBindingsResponse) - private static final com.google.analytics.admin.v1alpha.ListAccessBindingsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccessBindingsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListAccessBindingsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccessBindingsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccessBindingsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java deleted file mode 100644 index cc6da37ab0a0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccessBindingsResponseOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAccessBindingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccessBindingsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsList(); - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBinding getAccessBindings(int index); - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - int getAccessBindingsCount(); - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - java.util.List - getAccessBindingsOrBuilderList(); - /** - *
-   * List of AccessBindings. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessBinding access_bindings = 1; - */ - com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java deleted file mode 100644 index 7d7fdbb74624..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java +++ /dev/null @@ -1,692 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListAccountSummaries RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesRequest} - */ -public final class ListAccountSummariesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountSummariesRequest) - ListAccountSummariesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountSummariesRequest.newBuilder() to construct. - private ListAccountSummariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountSummariesRequest() { - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountSummariesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.class, com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.Builder.class); - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 1; - private int pageSize_ = 0; - /** - *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pageSize_ != 0) { - output.writeInt32(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); - } - 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.admin.v1alpha.ListAccountSummariesRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest other = (com.google.analytics.admin.v1alpha.ListAccountSummariesRequest) obj; - - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAccountSummariesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAccountSummaries RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountSummariesRequest) - com.google.analytics.admin.v1alpha.ListAccountSummariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.class, com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest build() { - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest result = new com.google.analytics.admin.v1alpha.ListAccountSummariesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccountSummariesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAccountSummariesRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountSummariesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccountSummariesRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListAccountSummariesRequest.getDefaultInstance()) return this; - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int pageSize_ ; - /** - *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000001); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountSummariesRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountSummariesRequest) - private static final com.google.analytics.admin.v1alpha.ListAccountSummariesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountSummariesRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountSummariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java deleted file mode 100644 index 1e33f245c682..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAccountSummariesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountSummariesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java deleted file mode 100644 index 2ca6213a43cc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListAccountSummaries RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesResponse} - */ -public final class ListAccountSummariesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountSummariesResponse) - ListAccountSummariesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountSummariesResponse.newBuilder() to construct. - private ListAccountSummariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountSummariesResponse() { - accountSummaries_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountSummariesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.class, com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.Builder.class); - } - - public static final int ACCOUNT_SUMMARIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accountSummaries_; - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public java.util.List getAccountSummariesList() { - return accountSummaries_; - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public java.util.List - getAccountSummariesOrBuilderList() { - return accountSummaries_; - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public int getAccountSummariesCount() { - return accountSummaries_.size(); - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountSummary getAccountSummaries(int index) { - return accountSummaries_.get(index); - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder getAccountSummariesOrBuilder( - int index) { - return accountSummaries_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accountSummaries_.size(); i++) { - output.writeMessage(1, accountSummaries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accountSummaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accountSummaries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListAccountSummariesResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse other = (com.google.analytics.admin.v1alpha.ListAccountSummariesResponse) obj; - - if (!getAccountSummariesList() - .equals(other.getAccountSummariesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getAccountSummariesCount() > 0) { - hash = (37 * hash) + ACCOUNT_SUMMARIES_FIELD_NUMBER; - hash = (53 * hash) + getAccountSummariesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAccountSummariesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListAccountSummaries RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountSummariesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountSummariesResponse) - com.google.analytics.admin.v1alpha.ListAccountSummariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.class, com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accountSummariesBuilder_ == null) { - accountSummaries_ = java.util.Collections.emptyList(); - } else { - accountSummaries_ = null; - accountSummariesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse build() { - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result = new com.google.analytics.admin.v1alpha.ListAccountSummariesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result) { - if (accountSummariesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accountSummaries_ = java.util.Collections.unmodifiableList(accountSummaries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accountSummaries_ = accountSummaries_; - } else { - result.accountSummaries_ = accountSummariesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccountSummariesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAccountSummariesResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountSummariesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccountSummariesResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListAccountSummariesResponse.getDefaultInstance()) return this; - if (accountSummariesBuilder_ == null) { - if (!other.accountSummaries_.isEmpty()) { - if (accountSummaries_.isEmpty()) { - accountSummaries_ = other.accountSummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountSummariesIsMutable(); - accountSummaries_.addAll(other.accountSummaries_); - } - onChanged(); - } - } else { - if (!other.accountSummaries_.isEmpty()) { - if (accountSummariesBuilder_.isEmpty()) { - accountSummariesBuilder_.dispose(); - accountSummariesBuilder_ = null; - accountSummaries_ = other.accountSummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - accountSummariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountSummariesFieldBuilder() : null; - } else { - accountSummariesBuilder_.addAllMessages(other.accountSummaries_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccountSummary m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccountSummary.parser(), - extensionRegistry); - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.add(m); - } else { - accountSummariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accountSummaries_ = - java.util.Collections.emptyList(); - private void ensureAccountSummariesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accountSummaries_ = new java.util.ArrayList(accountSummaries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccountSummary, com.google.analytics.admin.v1alpha.AccountSummary.Builder, com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder> accountSummariesBuilder_; - - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public java.util.List getAccountSummariesList() { - if (accountSummariesBuilder_ == null) { - return java.util.Collections.unmodifiableList(accountSummaries_); - } else { - return accountSummariesBuilder_.getMessageList(); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public int getAccountSummariesCount() { - if (accountSummariesBuilder_ == null) { - return accountSummaries_.size(); - } else { - return accountSummariesBuilder_.getCount(); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1alpha.AccountSummary getAccountSummaries(int index) { - if (accountSummariesBuilder_ == null) { - return accountSummaries_.get(index); - } else { - return accountSummariesBuilder_.getMessage(index); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder setAccountSummaries( - int index, com.google.analytics.admin.v1alpha.AccountSummary value) { - if (accountSummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountSummariesIsMutable(); - accountSummaries_.set(index, value); - onChanged(); - } else { - accountSummariesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder setAccountSummaries( - int index, com.google.analytics.admin.v1alpha.AccountSummary.Builder builderForValue) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.set(index, builderForValue.build()); - onChanged(); - } else { - accountSummariesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries(com.google.analytics.admin.v1alpha.AccountSummary value) { - if (accountSummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountSummariesIsMutable(); - accountSummaries_.add(value); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries( - int index, com.google.analytics.admin.v1alpha.AccountSummary value) { - if (accountSummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountSummariesIsMutable(); - accountSummaries_.add(index, value); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries( - com.google.analytics.admin.v1alpha.AccountSummary.Builder builderForValue) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.add(builderForValue.build()); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries( - int index, com.google.analytics.admin.v1alpha.AccountSummary.Builder builderForValue) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.add(index, builderForValue.build()); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder addAllAccountSummaries( - java.lang.Iterable values) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accountSummaries_); - onChanged(); - } else { - accountSummariesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder clearAccountSummaries() { - if (accountSummariesBuilder_ == null) { - accountSummaries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountSummariesBuilder_.clear(); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public Builder removeAccountSummaries(int index) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.remove(index); - onChanged(); - } else { - accountSummariesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1alpha.AccountSummary.Builder getAccountSummariesBuilder( - int index) { - return getAccountSummariesFieldBuilder().getBuilder(index); - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder getAccountSummariesOrBuilder( - int index) { - if (accountSummariesBuilder_ == null) { - return accountSummaries_.get(index); } else { - return accountSummariesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public java.util.List - getAccountSummariesOrBuilderList() { - if (accountSummariesBuilder_ != null) { - return accountSummariesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accountSummaries_); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1alpha.AccountSummary.Builder addAccountSummariesBuilder() { - return getAccountSummariesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance()); - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1alpha.AccountSummary.Builder addAccountSummariesBuilder( - int index) { - return getAccountSummariesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccountSummary.getDefaultInstance()); - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - public java.util.List - getAccountSummariesBuilderList() { - return getAccountSummariesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccountSummary, com.google.analytics.admin.v1alpha.AccountSummary.Builder, com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder> - getAccountSummariesFieldBuilder() { - if (accountSummariesBuilder_ == null) { - accountSummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccountSummary, com.google.analytics.admin.v1alpha.AccountSummary.Builder, com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder>( - accountSummaries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accountSummaries_ = null; - } - return accountSummariesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountSummariesResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountSummariesResponse) - private static final com.google.analytics.admin.v1alpha.ListAccountSummariesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountSummariesResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListAccountSummariesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountSummariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java deleted file mode 100644 index d2da7b584626..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAccountSummariesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountSummariesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - java.util.List - getAccountSummariesList(); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - com.google.analytics.admin.v1alpha.AccountSummary getAccountSummaries(int index); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - int getAccountSummariesCount(); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - java.util.List - getAccountSummariesOrBuilderList(); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccountSummary account_summaries = 1; - */ - com.google.analytics.admin.v1alpha.AccountSummaryOrBuilder getAccountSummariesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java deleted file mode 100644 index 355790b7ba9a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java +++ /dev/null @@ -1,783 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListAccounts RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsRequest} - */ -public final class ListAccountsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountsRequest) - ListAccountsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountsRequest.newBuilder() to construct. - private ListAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountsRequest() { - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountsRequest.class, com.google.analytics.admin.v1alpha.ListAccountsRequest.Builder.class); - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 1; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHOW_DELETED_FIELD_NUMBER = 3; - private boolean showDeleted_ = false; - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Accounts in the
-   * results. Accounts can be inspected to determine whether they are deleted or
-   * not.
-   * 
- * - * bool show_deleted = 3; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - - 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 (pageSize_ != 0) { - output.writeInt32(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); - } - if (showDeleted_ != false) { - output.writeBool(3, showDeleted_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); - } - if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, showDeleted_); - } - 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.admin.v1alpha.ListAccountsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAccountsRequest other = (com.google.analytics.admin.v1alpha.ListAccountsRequest) obj; - - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) 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) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAccountsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAccounts RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountsRequest) - com.google.analytics.admin.v1alpha.ListAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountsRequest.class, com.google.analytics.admin.v1alpha.ListAccountsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAccountsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pageSize_ = 0; - pageToken_ = ""; - showDeleted_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAccountsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsRequest build() { - com.google.analytics.admin.v1alpha.ListAccountsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListAccountsRequest result = new com.google.analytics.admin.v1alpha.ListAccountsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccountsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.showDeleted_ = showDeleted_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAccountsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccountsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListAccountsRequest.getDefaultInstance()) return this; - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getShowDeleted() != false) { - setShowDeleted(other.getShowDeleted()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - showDeleted_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000001); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean showDeleted_ ; - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Accounts in the
-     * results. Accounts can be inspected to determine whether they are deleted or
-     * not.
-     * 
- * - * bool show_deleted = 3; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Accounts in the
-     * results. Accounts can be inspected to determine whether they are deleted or
-     * not.
-     * 
- * - * bool show_deleted = 3; - * @param value The showDeleted to set. - * @return This builder for chaining. - */ - public Builder setShowDeleted(boolean value) { - - showDeleted_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Accounts in the
-     * results. Accounts can be inspected to determine whether they are deleted or
-     * not.
-     * 
- * - * bool show_deleted = 3; - * @return This builder for chaining. - */ - public Builder clearShowDeleted() { - bitField0_ = (bitField0_ & ~0x00000004); - showDeleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountsRequest) - private static final com.google.analytics.admin.v1alpha.ListAccountsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListAccountsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java deleted file mode 100644 index 50dd7121f00e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAccountsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Accounts in the
-   * results. Accounts can be inspected to determine whether they are deleted or
-   * not.
-   * 
- * - * bool show_deleted = 3; - * @return The showDeleted. - */ - boolean getShowDeleted(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java deleted file mode 100644 index 621f1ab632a3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListAccounts RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsResponse} - */ -public final class ListAccountsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAccountsResponse) - ListAccountsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountsResponse.newBuilder() to construct. - private ListAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountsResponse() { - accounts_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountsResponse.class, com.google.analytics.admin.v1alpha.ListAccountsResponse.Builder.class); - } - - public static final int ACCOUNTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accounts_; - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - @java.lang.Override - public java.util.List getAccountsList() { - return accounts_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - @java.lang.Override - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - @java.lang.Override - public int getAccountsCount() { - return accounts_.size(); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account getAccounts(int index) { - return accounts_.get(index); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accounts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListAccountsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAccountsResponse other = (com.google.analytics.admin.v1alpha.ListAccountsResponse) obj; - - if (!getAccountsList() - .equals(other.getAccountsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAccountsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAccounts RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAccountsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAccountsResponse) - com.google.analytics.admin.v1alpha.ListAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAccountsResponse.class, com.google.analytics.admin.v1alpha.ListAccountsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAccountsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - } else { - accounts_ = null; - accountsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAccountsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAccountsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsResponse build() { - com.google.analytics.admin.v1alpha.ListAccountsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListAccountsResponse result = new com.google.analytics.admin.v1alpha.ListAccountsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListAccountsResponse result) { - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAccountsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAccountsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAccountsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAccountsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListAccountsResponse.getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.Account m = - input.readMessage( - com.google.analytics.admin.v1alpha.Account.parser(), - extensionRegistry); - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(m); - } else { - accountsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> accountsBuilder_; - - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public com.google.analytics.admin.v1alpha.Account getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder setAccounts( - int index, com.google.analytics.admin.v1alpha.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder setAccounts( - int index, com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder addAccounts(com.google.analytics.admin.v1alpha.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder addAccounts( - int index, com.google.analytics.admin.v1alpha.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder addAccounts( - com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder addAccounts( - int index, com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public com.google.analytics.admin.v1alpha.Account.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public com.google.analytics.admin.v1alpha.Account.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.Account.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public com.google.analytics.admin.v1alpha.Account.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.Account.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAccountsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAccountsResponse) - private static final com.google.analytics.admin.v1alpha.ListAccountsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAccountsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListAccountsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAccountsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java deleted file mode 100644 index 4d9c54f4fd03..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAccountsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAccountsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - java.util.List - getAccountsList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - com.google.analytics.admin.v1alpha.Account getAccounts(int index); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - int getAccountsCount(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - java.util.List - getAccountsOrBuilderList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Account accounts = 1; - */ - com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequest.java deleted file mode 100644 index 1d886d26572b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequest.java +++ /dev/null @@ -1,873 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message to be passed to ListAdSenseLinks method.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksRequest} - */ -public final class ListAdSenseLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) - ListAdSenseLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAdSenseLinksRequest.newBuilder() to construct. - private ListAdSenseLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAdSenseLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAdSenseLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.class, com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Resource name of the parent property.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Resource name of the parent property.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token received from a previous `ListAdSenseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAdSenseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token received from a previous `ListAdSenseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAdSenseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListAdSenseLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest other = (com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message to be passed to ListAdSenseLinks method.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.class, com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest build() { - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest result = new com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Resource name of the parent property.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Resource name of the parent property.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Resource name of the parent property.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the parent property.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the parent property.
-     * Format: properties/{propertyId}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token received from a previous `ListAdSenseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAdSenseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token received from a previous `ListAdSenseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAdSenseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token received from a previous `ListAdSenseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAdSenseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token received from a previous `ListAdSenseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAdSenseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token received from a previous `ListAdSenseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAdSenseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAdSenseLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequestOrBuilder.java deleted file mode 100644 index 0a3566d45861..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksRequestOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAdSenseLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAdSenseLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the parent property.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Resource name of the parent property.
-   * Format: properties/{propertyId}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token received from a previous `ListAdSenseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAdSenseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token received from a previous `ListAdSenseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAdSenseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponse.java deleted file mode 100644 index c737a41553ec..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListAdSenseLinks method.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksResponse} - */ -public final class ListAdSenseLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) - ListAdSenseLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAdSenseLinksResponse.newBuilder() to construct. - private ListAdSenseLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAdSenseLinksResponse() { - adsenseLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAdSenseLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.class, com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.Builder.class); - } - - public static final int ADSENSE_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List adsenseLinks_; - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - @java.lang.Override - public java.util.List getAdsenseLinksList() { - return adsenseLinks_; - } - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - @java.lang.Override - public java.util.List - getAdsenseLinksOrBuilderList() { - return adsenseLinks_; - } - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - @java.lang.Override - public int getAdsenseLinksCount() { - return adsenseLinks_.size(); - } - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLinks(int index) { - return adsenseLinks_.get(index); - } - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinksOrBuilder( - int index) { - return adsenseLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < adsenseLinks_.size(); i++) { - output.writeMessage(1, adsenseLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < adsenseLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, adsenseLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListAdSenseLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse other = (com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse) obj; - - if (!getAdsenseLinksList() - .equals(other.getAdsenseLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getAdsenseLinksCount() > 0) { - hash = (37 * hash) + ADSENSE_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getAdsenseLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListAdSenseLinks method.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAdSenseLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.class, com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (adsenseLinksBuilder_ == null) { - adsenseLinks_ = java.util.Collections.emptyList(); - } else { - adsenseLinks_ = null; - adsenseLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAdSenseLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse build() { - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result = new com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result) { - if (adsenseLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - adsenseLinks_ = java.util.Collections.unmodifiableList(adsenseLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.adsenseLinks_ = adsenseLinks_; - } else { - result.adsenseLinks_ = adsenseLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse.getDefaultInstance()) return this; - if (adsenseLinksBuilder_ == null) { - if (!other.adsenseLinks_.isEmpty()) { - if (adsenseLinks_.isEmpty()) { - adsenseLinks_ = other.adsenseLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAdsenseLinksIsMutable(); - adsenseLinks_.addAll(other.adsenseLinks_); - } - onChanged(); - } - } else { - if (!other.adsenseLinks_.isEmpty()) { - if (adsenseLinksBuilder_.isEmpty()) { - adsenseLinksBuilder_.dispose(); - adsenseLinksBuilder_ = null; - adsenseLinks_ = other.adsenseLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - adsenseLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAdsenseLinksFieldBuilder() : null; - } else { - adsenseLinksBuilder_.addAllMessages(other.adsenseLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AdSenseLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.AdSenseLink.parser(), - extensionRegistry); - if (adsenseLinksBuilder_ == null) { - ensureAdsenseLinksIsMutable(); - adsenseLinks_.add(m); - } else { - adsenseLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List adsenseLinks_ = - java.util.Collections.emptyList(); - private void ensureAdsenseLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - adsenseLinks_ = new java.util.ArrayList(adsenseLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> adsenseLinksBuilder_; - - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public java.util.List getAdsenseLinksList() { - if (adsenseLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(adsenseLinks_); - } else { - return adsenseLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public int getAdsenseLinksCount() { - if (adsenseLinksBuilder_ == null) { - return adsenseLinks_.size(); - } else { - return adsenseLinksBuilder_.getCount(); - } - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLinks(int index) { - if (adsenseLinksBuilder_ == null) { - return adsenseLinks_.get(index); - } else { - return adsenseLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder setAdsenseLinks( - int index, com.google.analytics.admin.v1alpha.AdSenseLink value) { - if (adsenseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdsenseLinksIsMutable(); - adsenseLinks_.set(index, value); - onChanged(); - } else { - adsenseLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder setAdsenseLinks( - int index, com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { - if (adsenseLinksBuilder_ == null) { - ensureAdsenseLinksIsMutable(); - adsenseLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - adsenseLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder addAdsenseLinks(com.google.analytics.admin.v1alpha.AdSenseLink value) { - if (adsenseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdsenseLinksIsMutable(); - adsenseLinks_.add(value); - onChanged(); - } else { - adsenseLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder addAdsenseLinks( - int index, com.google.analytics.admin.v1alpha.AdSenseLink value) { - if (adsenseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdsenseLinksIsMutable(); - adsenseLinks_.add(index, value); - onChanged(); - } else { - adsenseLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder addAdsenseLinks( - com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { - if (adsenseLinksBuilder_ == null) { - ensureAdsenseLinksIsMutable(); - adsenseLinks_.add(builderForValue.build()); - onChanged(); - } else { - adsenseLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder addAdsenseLinks( - int index, com.google.analytics.admin.v1alpha.AdSenseLink.Builder builderForValue) { - if (adsenseLinksBuilder_ == null) { - ensureAdsenseLinksIsMutable(); - adsenseLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - adsenseLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder addAllAdsenseLinks( - java.lang.Iterable values) { - if (adsenseLinksBuilder_ == null) { - ensureAdsenseLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, adsenseLinks_); - onChanged(); - } else { - adsenseLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder clearAdsenseLinks() { - if (adsenseLinksBuilder_ == null) { - adsenseLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - adsenseLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public Builder removeAdsenseLinks(int index) { - if (adsenseLinksBuilder_ == null) { - ensureAdsenseLinksIsMutable(); - adsenseLinks_.remove(index); - onChanged(); - } else { - adsenseLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public com.google.analytics.admin.v1alpha.AdSenseLink.Builder getAdsenseLinksBuilder( - int index) { - return getAdsenseLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinksOrBuilder( - int index) { - if (adsenseLinksBuilder_ == null) { - return adsenseLinks_.get(index); } else { - return adsenseLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public java.util.List - getAdsenseLinksOrBuilderList() { - if (adsenseLinksBuilder_ != null) { - return adsenseLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(adsenseLinks_); - } - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public com.google.analytics.admin.v1alpha.AdSenseLink.Builder addAdsenseLinksBuilder() { - return getAdsenseLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()); - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public com.google.analytics.admin.v1alpha.AdSenseLink.Builder addAdsenseLinksBuilder( - int index) { - return getAdsenseLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AdSenseLink.getDefaultInstance()); - } - /** - *
-     * List of AdSenseLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - public java.util.List - getAdsenseLinksBuilderList() { - return getAdsenseLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder> - getAdsenseLinksFieldBuilder() { - if (adsenseLinksBuilder_ == null) { - adsenseLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AdSenseLink, com.google.analytics.admin.v1alpha.AdSenseLink.Builder, com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder>( - adsenseLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - adsenseLinks_ = null; - } - return adsenseLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAdSenseLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAdSenseLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponseOrBuilder.java deleted file mode 100644 index 505e17d4f51f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAdSenseLinksResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAdSenseLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAdSenseLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - java.util.List - getAdsenseLinksList(); - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - com.google.analytics.admin.v1alpha.AdSenseLink getAdsenseLinks(int index); - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - int getAdsenseLinksCount(); - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - java.util.List - getAdsenseLinksOrBuilderList(); - /** - *
-   * List of AdSenseLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AdSenseLink adsense_links = 1; - */ - com.google.analytics.admin.v1alpha.AdSenseLinkOrBuilder getAdsenseLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java deleted file mode 100644 index 315ca775b669..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListAudiences RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesRequest} - */ -public final class ListAudiencesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAudiencesRequest) - ListAudiencesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAudiencesRequest.newBuilder() to construct. - private ListAudiencesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAudiencesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAudiencesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, com.google.analytics.admin.v1alpha.ListAudiencesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListAudiences` call. Provide this
-   * to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAudiences` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListAudiences` call. Provide this
-   * to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAudiences` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListAudiencesRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAudiencesRequest other = (com.google.analytics.admin.v1alpha.ListAudiencesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAudiencesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAudiences RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAudiencesRequest) - com.google.analytics.admin.v1alpha.ListAudiencesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAudiencesRequest.class, com.google.analytics.admin.v1alpha.ListAudiencesRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAudiencesRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAudiencesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesRequest build() { - com.google.analytics.admin.v1alpha.ListAudiencesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListAudiencesRequest result = new com.google.analytics.admin.v1alpha.ListAudiencesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAudiencesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAudiencesRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAudiencesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAudiencesRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListAudiencesRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListAudiences` call. Provide this
-     * to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAudiences` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAudiences` call. Provide this
-     * to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAudiences` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAudiences` call. Provide this
-     * to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAudiences` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAudiences` call. Provide this
-     * to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAudiences` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAudiences` call. Provide this
-     * to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListAudiences` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAudiencesRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAudiencesRequest) - private static final com.google.analytics.admin.v1alpha.ListAudiencesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAudiencesRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAudiencesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java deleted file mode 100644 index 7db03b263617..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAudiencesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAudiencesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListAudiences` call. Provide this
-   * to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAudiences` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListAudiences` call. Provide this
-   * to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListAudiences` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java deleted file mode 100644 index da795654b375..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListAudiences RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesResponse} - */ -public final class ListAudiencesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListAudiencesResponse) - ListAudiencesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAudiencesResponse.newBuilder() to construct. - private ListAudiencesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAudiencesResponse() { - audiences_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAudiencesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, com.google.analytics.admin.v1alpha.ListAudiencesResponse.Builder.class); - } - - public static final int AUDIENCES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List audiences_; - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - @java.lang.Override - public java.util.List getAudiencesList() { - return audiences_; - } - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - @java.lang.Override - public java.util.List - getAudiencesOrBuilderList() { - return audiences_; - } - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - @java.lang.Override - public int getAudiencesCount() { - return audiences_.size(); - } - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience getAudiences(int index) { - return audiences_.get(index); - } - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder( - int index) { - return audiences_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < audiences_.size(); i++) { - output.writeMessage(1, audiences_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < audiences_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, audiences_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListAudiencesResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListAudiencesResponse other = (com.google.analytics.admin.v1alpha.ListAudiencesResponse) obj; - - if (!getAudiencesList() - .equals(other.getAudiencesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getAudiencesCount() > 0) { - hash = (37 * hash) + AUDIENCES_FIELD_NUMBER; - hash = (53 * hash) + getAudiencesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListAudiencesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListAudiences RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListAudiencesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListAudiencesResponse) - com.google.analytics.admin.v1alpha.ListAudiencesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListAudiencesResponse.class, com.google.analytics.admin.v1alpha.ListAudiencesResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListAudiencesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (audiencesBuilder_ == null) { - audiences_ = java.util.Collections.emptyList(); - } else { - audiences_ = null; - audiencesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListAudiencesResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListAudiencesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesResponse build() { - com.google.analytics.admin.v1alpha.ListAudiencesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListAudiencesResponse result = new com.google.analytics.admin.v1alpha.ListAudiencesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListAudiencesResponse result) { - if (audiencesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - audiences_ = java.util.Collections.unmodifiableList(audiences_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.audiences_ = audiences_; - } else { - result.audiences_ = audiencesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListAudiencesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListAudiencesResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListAudiencesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListAudiencesResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListAudiencesResponse.getDefaultInstance()) return this; - if (audiencesBuilder_ == null) { - if (!other.audiences_.isEmpty()) { - if (audiences_.isEmpty()) { - audiences_ = other.audiences_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAudiencesIsMutable(); - audiences_.addAll(other.audiences_); - } - onChanged(); - } - } else { - if (!other.audiences_.isEmpty()) { - if (audiencesBuilder_.isEmpty()) { - audiencesBuilder_.dispose(); - audiencesBuilder_ = null; - audiences_ = other.audiences_; - bitField0_ = (bitField0_ & ~0x00000001); - audiencesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAudiencesFieldBuilder() : null; - } else { - audiencesBuilder_.addAllMessages(other.audiences_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.Audience m = - input.readMessage( - com.google.analytics.admin.v1alpha.Audience.parser(), - extensionRegistry); - if (audiencesBuilder_ == null) { - ensureAudiencesIsMutable(); - audiences_.add(m); - } else { - audiencesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List audiences_ = - java.util.Collections.emptyList(); - private void ensureAudiencesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - audiences_ = new java.util.ArrayList(audiences_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> audiencesBuilder_; - - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public java.util.List getAudiencesList() { - if (audiencesBuilder_ == null) { - return java.util.Collections.unmodifiableList(audiences_); - } else { - return audiencesBuilder_.getMessageList(); - } - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public int getAudiencesCount() { - if (audiencesBuilder_ == null) { - return audiences_.size(); - } else { - return audiencesBuilder_.getCount(); - } - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public com.google.analytics.admin.v1alpha.Audience getAudiences(int index) { - if (audiencesBuilder_ == null) { - return audiences_.get(index); - } else { - return audiencesBuilder_.getMessage(index); - } - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder setAudiences( - int index, com.google.analytics.admin.v1alpha.Audience value) { - if (audiencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAudiencesIsMutable(); - audiences_.set(index, value); - onChanged(); - } else { - audiencesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder setAudiences( - int index, com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { - if (audiencesBuilder_ == null) { - ensureAudiencesIsMutable(); - audiences_.set(index, builderForValue.build()); - onChanged(); - } else { - audiencesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder addAudiences(com.google.analytics.admin.v1alpha.Audience value) { - if (audiencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAudiencesIsMutable(); - audiences_.add(value); - onChanged(); - } else { - audiencesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder addAudiences( - int index, com.google.analytics.admin.v1alpha.Audience value) { - if (audiencesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAudiencesIsMutable(); - audiences_.add(index, value); - onChanged(); - } else { - audiencesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder addAudiences( - com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { - if (audiencesBuilder_ == null) { - ensureAudiencesIsMutable(); - audiences_.add(builderForValue.build()); - onChanged(); - } else { - audiencesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder addAudiences( - int index, com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { - if (audiencesBuilder_ == null) { - ensureAudiencesIsMutable(); - audiences_.add(index, builderForValue.build()); - onChanged(); - } else { - audiencesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder addAllAudiences( - java.lang.Iterable values) { - if (audiencesBuilder_ == null) { - ensureAudiencesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, audiences_); - onChanged(); - } else { - audiencesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder clearAudiences() { - if (audiencesBuilder_ == null) { - audiences_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - audiencesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public Builder removeAudiences(int index) { - if (audiencesBuilder_ == null) { - ensureAudiencesIsMutable(); - audiences_.remove(index); - onChanged(); - } else { - audiencesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public com.google.analytics.admin.v1alpha.Audience.Builder getAudiencesBuilder( - int index) { - return getAudiencesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder( - int index) { - if (audiencesBuilder_ == null) { - return audiences_.get(index); } else { - return audiencesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public java.util.List - getAudiencesOrBuilderList() { - if (audiencesBuilder_ != null) { - return audiencesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(audiences_); - } - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public com.google.analytics.admin.v1alpha.Audience.Builder addAudiencesBuilder() { - return getAudiencesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()); - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public com.google.analytics.admin.v1alpha.Audience.Builder addAudiencesBuilder( - int index) { - return getAudiencesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()); - } - /** - *
-     * List of Audiences.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - public java.util.List - getAudiencesBuilderList() { - return getAudiencesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> - getAudiencesFieldBuilder() { - if (audiencesBuilder_ == null) { - audiencesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder>( - audiences_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - audiences_ = null; - } - return audiencesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListAudiencesResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListAudiencesResponse) - private static final com.google.analytics.admin.v1alpha.ListAudiencesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListAudiencesResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAudiencesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListAudiencesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java deleted file mode 100644 index c07853163232..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAudiencesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListAudiencesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListAudiencesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - java.util.List - getAudiencesList(); - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - com.google.analytics.admin.v1alpha.Audience getAudiences(int index); - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - int getAudiencesCount(); - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - java.util.List - getAudiencesOrBuilderList(); - /** - *
-   * List of Audiences.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Audience audiences = 1; - */ - com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudiencesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequest.java deleted file mode 100644 index 3a71053ed04f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequest.java +++ /dev/null @@ -1,870 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListBigQueryLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksRequest} - */ -public final class ListBigQueryLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) - ListBigQueryLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListBigQueryLinksRequest.newBuilder() to construct. - private ListBigQueryLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListBigQueryLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListBigQueryLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.class, com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The name of the property to list BigQuery links under.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The name of the property to list BigQuery links under.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListBigQueryLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListBigQueryLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListBigQueryLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListBigQueryLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListBigQueryLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest other = (com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListBigQueryLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.class, com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest build() { - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest result = new com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The name of the property to list BigQuery links under.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the property to list BigQuery links under.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the property to list BigQuery links under.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the property to list BigQuery links under.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the property to list BigQuery links under.
-     * Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListBigQueryLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListBigQueryLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListBigQueryLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListBigQueryLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListBigQueryLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListBigQueryLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListBigQueryLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListBigQueryLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListBigQueryLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListBigQueryLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBigQueryLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequestOrBuilder.java deleted file mode 100644 index b17252f57e2c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListBigQueryLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListBigQueryLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the property to list BigQuery links under.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the property to list BigQuery links under.
-   * Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListBigQueryLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListBigQueryLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListBigQueryLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListBigQueryLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponse.java deleted file mode 100644 index 61017613a554..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListBigQueryLinks RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksResponse} - */ -public final class ListBigQueryLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) - ListBigQueryLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListBigQueryLinksResponse.newBuilder() to construct. - private ListBigQueryLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListBigQueryLinksResponse() { - bigqueryLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListBigQueryLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.class, com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.Builder.class); - } - - public static final int BIGQUERY_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List bigqueryLinks_; - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - @java.lang.Override - public java.util.List getBigqueryLinksList() { - return bigqueryLinks_; - } - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - @java.lang.Override - public java.util.List - getBigqueryLinksOrBuilderList() { - return bigqueryLinks_; - } - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - @java.lang.Override - public int getBigqueryLinksCount() { - return bigqueryLinks_.size(); - } - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLinks(int index) { - return bigqueryLinks_.get(index); - } - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinksOrBuilder( - int index) { - return bigqueryLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < bigqueryLinks_.size(); i++) { - output.writeMessage(1, bigqueryLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < bigqueryLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, bigqueryLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListBigQueryLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse other = (com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse) obj; - - if (!getBigqueryLinksList() - .equals(other.getBigqueryLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getBigqueryLinksCount() > 0) { - hash = (37 * hash) + BIGQUERY_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListBigQueryLinks RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListBigQueryLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.class, com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (bigqueryLinksBuilder_ == null) { - bigqueryLinks_ = java.util.Collections.emptyList(); - } else { - bigqueryLinks_ = null; - bigqueryLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListBigQueryLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse build() { - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result = new com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result) { - if (bigqueryLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - bigqueryLinks_ = java.util.Collections.unmodifiableList(bigqueryLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.bigqueryLinks_ = bigqueryLinks_; - } else { - result.bigqueryLinks_ = bigqueryLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse.getDefaultInstance()) return this; - if (bigqueryLinksBuilder_ == null) { - if (!other.bigqueryLinks_.isEmpty()) { - if (bigqueryLinks_.isEmpty()) { - bigqueryLinks_ = other.bigqueryLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.addAll(other.bigqueryLinks_); - } - onChanged(); - } - } else { - if (!other.bigqueryLinks_.isEmpty()) { - if (bigqueryLinksBuilder_.isEmpty()) { - bigqueryLinksBuilder_.dispose(); - bigqueryLinksBuilder_ = null; - bigqueryLinks_ = other.bigqueryLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - bigqueryLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getBigqueryLinksFieldBuilder() : null; - } else { - bigqueryLinksBuilder_.addAllMessages(other.bigqueryLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.BigQueryLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.BigQueryLink.parser(), - extensionRegistry); - if (bigqueryLinksBuilder_ == null) { - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.add(m); - } else { - bigqueryLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List bigqueryLinks_ = - java.util.Collections.emptyList(); - private void ensureBigqueryLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - bigqueryLinks_ = new java.util.ArrayList(bigqueryLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.BigQueryLink, com.google.analytics.admin.v1alpha.BigQueryLink.Builder, com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> bigqueryLinksBuilder_; - - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public java.util.List getBigqueryLinksList() { - if (bigqueryLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(bigqueryLinks_); - } else { - return bigqueryLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public int getBigqueryLinksCount() { - if (bigqueryLinksBuilder_ == null) { - return bigqueryLinks_.size(); - } else { - return bigqueryLinksBuilder_.getCount(); - } - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLinks(int index) { - if (bigqueryLinksBuilder_ == null) { - return bigqueryLinks_.get(index); - } else { - return bigqueryLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder setBigqueryLinks( - int index, com.google.analytics.admin.v1alpha.BigQueryLink value) { - if (bigqueryLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.set(index, value); - onChanged(); - } else { - bigqueryLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder setBigqueryLinks( - int index, com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { - if (bigqueryLinksBuilder_ == null) { - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - bigqueryLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder addBigqueryLinks(com.google.analytics.admin.v1alpha.BigQueryLink value) { - if (bigqueryLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.add(value); - onChanged(); - } else { - bigqueryLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder addBigqueryLinks( - int index, com.google.analytics.admin.v1alpha.BigQueryLink value) { - if (bigqueryLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.add(index, value); - onChanged(); - } else { - bigqueryLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder addBigqueryLinks( - com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { - if (bigqueryLinksBuilder_ == null) { - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.add(builderForValue.build()); - onChanged(); - } else { - bigqueryLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder addBigqueryLinks( - int index, com.google.analytics.admin.v1alpha.BigQueryLink.Builder builderForValue) { - if (bigqueryLinksBuilder_ == null) { - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - bigqueryLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder addAllBigqueryLinks( - java.lang.Iterable values) { - if (bigqueryLinksBuilder_ == null) { - ensureBigqueryLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, bigqueryLinks_); - onChanged(); - } else { - bigqueryLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder clearBigqueryLinks() { - if (bigqueryLinksBuilder_ == null) { - bigqueryLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - bigqueryLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public Builder removeBigqueryLinks(int index) { - if (bigqueryLinksBuilder_ == null) { - ensureBigqueryLinksIsMutable(); - bigqueryLinks_.remove(index); - onChanged(); - } else { - bigqueryLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public com.google.analytics.admin.v1alpha.BigQueryLink.Builder getBigqueryLinksBuilder( - int index) { - return getBigqueryLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinksOrBuilder( - int index) { - if (bigqueryLinksBuilder_ == null) { - return bigqueryLinks_.get(index); } else { - return bigqueryLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public java.util.List - getBigqueryLinksOrBuilderList() { - if (bigqueryLinksBuilder_ != null) { - return bigqueryLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(bigqueryLinks_); - } - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public com.google.analytics.admin.v1alpha.BigQueryLink.Builder addBigqueryLinksBuilder() { - return getBigqueryLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()); - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public com.google.analytics.admin.v1alpha.BigQueryLink.Builder addBigqueryLinksBuilder( - int index) { - return getBigqueryLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.BigQueryLink.getDefaultInstance()); - } - /** - *
-     * List of BigQueryLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - public java.util.List - getBigqueryLinksBuilderList() { - return getBigqueryLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.BigQueryLink, com.google.analytics.admin.v1alpha.BigQueryLink.Builder, com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder> - getBigqueryLinksFieldBuilder() { - if (bigqueryLinksBuilder_ == null) { - bigqueryLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.BigQueryLink, com.google.analytics.admin.v1alpha.BigQueryLink.Builder, com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder>( - bigqueryLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - bigqueryLinks_ = null; - } - return bigqueryLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListBigQueryLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListBigQueryLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponseOrBuilder.java deleted file mode 100644 index 9aa080ea133a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListBigQueryLinksResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListBigQueryLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListBigQueryLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - java.util.List - getBigqueryLinksList(); - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - com.google.analytics.admin.v1alpha.BigQueryLink getBigqueryLinks(int index); - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - int getBigqueryLinksCount(); - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - java.util.List - getBigqueryLinksOrBuilderList(); - /** - *
-   * List of BigQueryLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.BigQueryLink bigquery_links = 1; - */ - com.google.analytics.admin.v1alpha.BigQueryLinkOrBuilder getBigqueryLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequest.java deleted file mode 100644 index 0475f164d425..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequest.java +++ /dev/null @@ -1,866 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListChannelGroups RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsRequest} - */ -public final class ListChannelGroupsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListChannelGroupsRequest) - ListChannelGroupsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListChannelGroupsRequest.newBuilder() to construct. - private ListChannelGroupsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListChannelGroupsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListChannelGroupsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.class, com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The property for which to list ChannelGroups.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The property for which to list ChannelGroups.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListChannelGroups` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListChannelGroups`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListChannelGroups` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListChannelGroups`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListChannelGroupsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest other = (com.google.analytics.admin.v1alpha.ListChannelGroupsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListChannelGroups RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListChannelGroupsRequest) - com.google.analytics.admin.v1alpha.ListChannelGroupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.class, com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest build() { - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListChannelGroupsRequest result = new com.google.analytics.admin.v1alpha.ListChannelGroupsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListChannelGroupsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListChannelGroupsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListChannelGroupsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListChannelGroupsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The property for which to list ChannelGroups.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The property for which to list ChannelGroups.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The property for which to list ChannelGroups.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to list ChannelGroups.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to list ChannelGroups.
-     * Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListChannelGroups` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListChannelGroups`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListChannelGroups` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListChannelGroups`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListChannelGroups` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListChannelGroups`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListChannelGroups` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListChannelGroups`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListChannelGroups` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListChannelGroups`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListChannelGroupsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListChannelGroupsRequest) - private static final com.google.analytics.admin.v1alpha.ListChannelGroupsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListChannelGroupsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListChannelGroupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequestOrBuilder.java deleted file mode 100644 index ede1437f31af..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsRequestOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListChannelGroupsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListChannelGroupsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property for which to list ChannelGroups.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The property for which to list ChannelGroups.
-   * Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListChannelGroups` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListChannelGroups`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListChannelGroups` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListChannelGroups`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponse.java deleted file mode 100644 index 11f909eea7fe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponse.java +++ /dev/null @@ -1,1053 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListChannelGroups RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsResponse} - */ -public final class ListChannelGroupsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListChannelGroupsResponse) - ListChannelGroupsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListChannelGroupsResponse.newBuilder() to construct. - private ListChannelGroupsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListChannelGroupsResponse() { - channelGroups_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListChannelGroupsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.class, com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.Builder.class); - } - - public static final int CHANNEL_GROUPS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List channelGroups_; - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - @java.lang.Override - public java.util.List getChannelGroupsList() { - return channelGroups_; - } - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - @java.lang.Override - public java.util.List - getChannelGroupsOrBuilderList() { - return channelGroups_; - } - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - @java.lang.Override - public int getChannelGroupsCount() { - return channelGroups_.size(); - } - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroups(int index) { - return channelGroups_.get(index); - } - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupsOrBuilder( - int index) { - return channelGroups_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < channelGroups_.size(); i++) { - output.writeMessage(1, channelGroups_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < channelGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, channelGroups_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListChannelGroupsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListChannelGroupsResponse other = (com.google.analytics.admin.v1alpha.ListChannelGroupsResponse) obj; - - if (!getChannelGroupsList() - .equals(other.getChannelGroupsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getChannelGroupsCount() > 0) { - hash = (37 * hash) + CHANNEL_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getChannelGroupsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListChannelGroupsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListChannelGroups RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListChannelGroupsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListChannelGroupsResponse) - com.google.analytics.admin.v1alpha.ListChannelGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.class, com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (channelGroupsBuilder_ == null) { - channelGroups_ = java.util.Collections.emptyList(); - } else { - channelGroups_ = null; - channelGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListChannelGroupsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse build() { - com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result = new com.google.analytics.admin.v1alpha.ListChannelGroupsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result) { - if (channelGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - channelGroups_ = java.util.Collections.unmodifiableList(channelGroups_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.channelGroups_ = channelGroups_; - } else { - result.channelGroups_ = channelGroupsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListChannelGroupsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListChannelGroupsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListChannelGroupsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListChannelGroupsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListChannelGroupsResponse.getDefaultInstance()) return this; - if (channelGroupsBuilder_ == null) { - if (!other.channelGroups_.isEmpty()) { - if (channelGroups_.isEmpty()) { - channelGroups_ = other.channelGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChannelGroupsIsMutable(); - channelGroups_.addAll(other.channelGroups_); - } - onChanged(); - } - } else { - if (!other.channelGroups_.isEmpty()) { - if (channelGroupsBuilder_.isEmpty()) { - channelGroupsBuilder_.dispose(); - channelGroupsBuilder_ = null; - channelGroups_ = other.channelGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - channelGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChannelGroupsFieldBuilder() : null; - } else { - channelGroupsBuilder_.addAllMessages(other.channelGroups_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.ChannelGroup m = - input.readMessage( - com.google.analytics.admin.v1alpha.ChannelGroup.parser(), - extensionRegistry); - if (channelGroupsBuilder_ == null) { - ensureChannelGroupsIsMutable(); - channelGroups_.add(m); - } else { - channelGroupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List channelGroups_ = - java.util.Collections.emptyList(); - private void ensureChannelGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - channelGroups_ = new java.util.ArrayList(channelGroups_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> channelGroupsBuilder_; - - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public java.util.List getChannelGroupsList() { - if (channelGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(channelGroups_); - } else { - return channelGroupsBuilder_.getMessageList(); - } - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public int getChannelGroupsCount() { - if (channelGroupsBuilder_ == null) { - return channelGroups_.size(); - } else { - return channelGroupsBuilder_.getCount(); - } - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroups(int index) { - if (channelGroupsBuilder_ == null) { - return channelGroups_.get(index); - } else { - return channelGroupsBuilder_.getMessage(index); - } - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder setChannelGroups( - int index, com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelGroupsIsMutable(); - channelGroups_.set(index, value); - onChanged(); - } else { - channelGroupsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder setChannelGroups( - int index, com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { - if (channelGroupsBuilder_ == null) { - ensureChannelGroupsIsMutable(); - channelGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - channelGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder addChannelGroups(com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelGroupsIsMutable(); - channelGroups_.add(value); - onChanged(); - } else { - channelGroupsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder addChannelGroups( - int index, com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChannelGroupsIsMutable(); - channelGroups_.add(index, value); - onChanged(); - } else { - channelGroupsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder addChannelGroups( - com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { - if (channelGroupsBuilder_ == null) { - ensureChannelGroupsIsMutable(); - channelGroups_.add(builderForValue.build()); - onChanged(); - } else { - channelGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder addChannelGroups( - int index, com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { - if (channelGroupsBuilder_ == null) { - ensureChannelGroupsIsMutable(); - channelGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - channelGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder addAllChannelGroups( - java.lang.Iterable values) { - if (channelGroupsBuilder_ == null) { - ensureChannelGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, channelGroups_); - onChanged(); - } else { - channelGroupsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder clearChannelGroups() { - if (channelGroupsBuilder_ == null) { - channelGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - channelGroupsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public Builder removeChannelGroups(int index) { - if (channelGroupsBuilder_ == null) { - ensureChannelGroupsIsMutable(); - channelGroups_.remove(index); - onChanged(); - } else { - channelGroupsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupsBuilder( - int index) { - return getChannelGroupsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupsOrBuilder( - int index) { - if (channelGroupsBuilder_ == null) { - return channelGroups_.get(index); } else { - return channelGroupsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public java.util.List - getChannelGroupsOrBuilderList() { - if (channelGroupsBuilder_ != null) { - return channelGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(channelGroups_); - } - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroup.Builder addChannelGroupsBuilder() { - return getChannelGroupsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()); - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public com.google.analytics.admin.v1alpha.ChannelGroup.Builder addChannelGroupsBuilder( - int index) { - return getChannelGroupsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()); - } - /** - *
-     * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - public java.util.List - getChannelGroupsBuilderList() { - return getChannelGroupsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> - getChannelGroupsFieldBuilder() { - if (channelGroupsBuilder_ == null) { - channelGroupsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( - channelGroups_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - channelGroups_ = null; - } - return channelGroupsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListChannelGroupsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListChannelGroupsResponse) - private static final com.google.analytics.admin.v1alpha.ListChannelGroupsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListChannelGroupsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListChannelGroupsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListChannelGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListChannelGroupsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponseOrBuilder.java deleted file mode 100644 index 6257c578deae..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListChannelGroupsResponseOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListChannelGroupsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListChannelGroupsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - java.util.List - getChannelGroupsList(); - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroups(int index); - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - int getChannelGroupsCount(); - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - java.util.List - getChannelGroupsOrBuilderList(); - /** - *
-   * List of ChannelGroup. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChannelGroup channel_groups = 1; - */ - com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequest.java deleted file mode 100644 index 57bdf63ec86c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListConnectedSiteTags RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest} - */ -public final class ListConnectedSiteTagsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) - ListConnectedSiteTagsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListConnectedSiteTagsRequest.newBuilder() to construct. - private ListConnectedSiteTagsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListConnectedSiteTagsRequest() { - property_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListConnectedSiteTagsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.class, com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * The Universal Analytics property to fetch connected site tags for.
-   * This does not work on GA4 properties. A maximum of 20 connected site tags
-   * will be returned.
-   * Example Format: `properties/1234`
-   * 
- * - * string property = 1; - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * The Universal Analytics property to fetch connected site tags for.
-   * This does not work on GA4 properties. A maximum of 20 connected site tags
-   * will be returned.
-   * Example Format: `properties/1234`
-   * 
- * - * string property = 1; - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - 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.admin.v1alpha.ListConnectedSiteTagsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest other = (com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListConnectedSiteTags RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.class, com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest build() { - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest result = new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * The Universal Analytics property to fetch connected site tags for.
-     * This does not work on GA4 properties. A maximum of 20 connected site tags
-     * will be returned.
-     * Example Format: `properties/1234`
-     * 
- * - * string property = 1; - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Universal Analytics property to fetch connected site tags for.
-     * This does not work on GA4 properties. A maximum of 20 connected site tags
-     * will be returned.
-     * Example Format: `properties/1234`
-     * 
- * - * string property = 1; - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Universal Analytics property to fetch connected site tags for.
-     * This does not work on GA4 properties. A maximum of 20 connected site tags
-     * will be returned.
-     * Example Format: `properties/1234`
-     * 
- * - * string property = 1; - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The Universal Analytics property to fetch connected site tags for.
-     * This does not work on GA4 properties. A maximum of 20 connected site tags
-     * will be returned.
-     * Example Format: `properties/1234`
-     * 
- * - * string property = 1; - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The Universal Analytics property to fetch connected site tags for.
-     * This does not work on GA4 properties. A maximum of 20 connected site tags
-     * will be returned.
-     * Example Format: `properties/1234`
-     * 
- * - * string property = 1; - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - 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.admin.v1alpha.ListConnectedSiteTagsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) - private static final com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectedSiteTagsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequestOrBuilder.java deleted file mode 100644 index 17d7e8636155..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListConnectedSiteTagsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConnectedSiteTagsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Universal Analytics property to fetch connected site tags for.
-   * This does not work on GA4 properties. A maximum of 20 connected site tags
-   * will be returned.
-   * Example Format: `properties/1234`
-   * 
- * - * string property = 1; - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * The Universal Analytics property to fetch connected site tags for.
-   * This does not work on GA4 properties. A maximum of 20 connected site tags
-   * will be returned.
-   * Example Format: `properties/1234`
-   * 
- * - * string property = 1; - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponse.java deleted file mode 100644 index 516b1c3ae49e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponse.java +++ /dev/null @@ -1,882 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListConnectedSiteTags RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse} - */ -public final class ListConnectedSiteTagsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) - ListConnectedSiteTagsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListConnectedSiteTagsResponse.newBuilder() to construct. - private ListConnectedSiteTagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListConnectedSiteTagsResponse() { - connectedSiteTags_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListConnectedSiteTagsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.class, com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.Builder.class); - } - - public static final int CONNECTED_SITE_TAGS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List connectedSiteTags_; - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - @java.lang.Override - public java.util.List getConnectedSiteTagsList() { - return connectedSiteTags_; - } - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - @java.lang.Override - public java.util.List - getConnectedSiteTagsOrBuilderList() { - return connectedSiteTags_; - } - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - @java.lang.Override - public int getConnectedSiteTagsCount() { - return connectedSiteTags_.size(); - } - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTags(int index) { - return connectedSiteTags_.get(index); - } - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagsOrBuilder( - int index) { - return connectedSiteTags_.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 < connectedSiteTags_.size(); i++) { - output.writeMessage(1, connectedSiteTags_.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 < connectedSiteTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connectedSiteTags_.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.admin.v1alpha.ListConnectedSiteTagsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse other = (com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) obj; - - if (!getConnectedSiteTagsList() - .equals(other.getConnectedSiteTagsList())) 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 (getConnectedSiteTagsCount() > 0) { - hash = (37 * hash) + CONNECTED_SITE_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getConnectedSiteTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListConnectedSiteTags RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.class, com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (connectedSiteTagsBuilder_ == null) { - connectedSiteTags_ = java.util.Collections.emptyList(); - } else { - connectedSiteTags_ = null; - connectedSiteTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConnectedSiteTagsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse build() { - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result = new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result) { - if (connectedSiteTagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - connectedSiteTags_ = java.util.Collections.unmodifiableList(connectedSiteTags_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.connectedSiteTags_ = connectedSiteTags_; - } else { - result.connectedSiteTags_ = connectedSiteTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse.getDefaultInstance()) return this; - if (connectedSiteTagsBuilder_ == null) { - if (!other.connectedSiteTags_.isEmpty()) { - if (connectedSiteTags_.isEmpty()) { - connectedSiteTags_ = other.connectedSiteTags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.addAll(other.connectedSiteTags_); - } - onChanged(); - } - } else { - if (!other.connectedSiteTags_.isEmpty()) { - if (connectedSiteTagsBuilder_.isEmpty()) { - connectedSiteTagsBuilder_.dispose(); - connectedSiteTagsBuilder_ = null; - connectedSiteTags_ = other.connectedSiteTags_; - bitField0_ = (bitField0_ & ~0x00000001); - connectedSiteTagsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConnectedSiteTagsFieldBuilder() : null; - } else { - connectedSiteTagsBuilder_.addAllMessages(other.connectedSiteTags_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.ConnectedSiteTag m = - input.readMessage( - com.google.analytics.admin.v1alpha.ConnectedSiteTag.parser(), - extensionRegistry); - if (connectedSiteTagsBuilder_ == null) { - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.add(m); - } else { - connectedSiteTagsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List connectedSiteTags_ = - java.util.Collections.emptyList(); - private void ensureConnectedSiteTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - connectedSiteTags_ = new java.util.ArrayList(connectedSiteTags_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConnectedSiteTag, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> connectedSiteTagsBuilder_; - - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public java.util.List getConnectedSiteTagsList() { - if (connectedSiteTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(connectedSiteTags_); - } else { - return connectedSiteTagsBuilder_.getMessageList(); - } - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public int getConnectedSiteTagsCount() { - if (connectedSiteTagsBuilder_ == null) { - return connectedSiteTags_.size(); - } else { - return connectedSiteTagsBuilder_.getCount(); - } - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTags(int index) { - if (connectedSiteTagsBuilder_ == null) { - return connectedSiteTags_.get(index); - } else { - return connectedSiteTagsBuilder_.getMessage(index); - } - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder setConnectedSiteTags( - int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { - if (connectedSiteTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.set(index, value); - onChanged(); - } else { - connectedSiteTagsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder setConnectedSiteTags( - int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { - if (connectedSiteTagsBuilder_ == null) { - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.set(index, builderForValue.build()); - onChanged(); - } else { - connectedSiteTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder addConnectedSiteTags(com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { - if (connectedSiteTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.add(value); - onChanged(); - } else { - connectedSiteTagsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder addConnectedSiteTags( - int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag value) { - if (connectedSiteTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.add(index, value); - onChanged(); - } else { - connectedSiteTagsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder addConnectedSiteTags( - com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { - if (connectedSiteTagsBuilder_ == null) { - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.add(builderForValue.build()); - onChanged(); - } else { - connectedSiteTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder addConnectedSiteTags( - int index, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder builderForValue) { - if (connectedSiteTagsBuilder_ == null) { - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.add(index, builderForValue.build()); - onChanged(); - } else { - connectedSiteTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder addAllConnectedSiteTags( - java.lang.Iterable values) { - if (connectedSiteTagsBuilder_ == null) { - ensureConnectedSiteTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connectedSiteTags_); - onChanged(); - } else { - connectedSiteTagsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder clearConnectedSiteTags() { - if (connectedSiteTagsBuilder_ == null) { - connectedSiteTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - connectedSiteTagsBuilder_.clear(); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public Builder removeConnectedSiteTags(int index) { - if (connectedSiteTagsBuilder_ == null) { - ensureConnectedSiteTagsIsMutable(); - connectedSiteTags_.remove(index); - onChanged(); - } else { - connectedSiteTagsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder getConnectedSiteTagsBuilder( - int index) { - return getConnectedSiteTagsFieldBuilder().getBuilder(index); - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagsOrBuilder( - int index) { - if (connectedSiteTagsBuilder_ == null) { - return connectedSiteTags_.get(index); } else { - return connectedSiteTagsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public java.util.List - getConnectedSiteTagsOrBuilderList() { - if (connectedSiteTagsBuilder_ != null) { - return connectedSiteTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(connectedSiteTags_); - } - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder addConnectedSiteTagsBuilder() { - return getConnectedSiteTagsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()); - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder addConnectedSiteTagsBuilder( - int index) { - return getConnectedSiteTagsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ConnectedSiteTag.getDefaultInstance()); - } - /** - *
-     * The site tags for the Universal Analytics property. A maximum of 20
-     * connected site tags will be returned.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - public java.util.List - getConnectedSiteTagsBuilderList() { - return getConnectedSiteTagsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConnectedSiteTag, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder> - getConnectedSiteTagsFieldBuilder() { - if (connectedSiteTagsBuilder_ == null) { - connectedSiteTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConnectedSiteTag, com.google.analytics.admin.v1alpha.ConnectedSiteTag.Builder, com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder>( - connectedSiteTags_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - connectedSiteTags_ = null; - } - return connectedSiteTagsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) - private static final com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectedSiteTagsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponseOrBuilder.java deleted file mode 100644 index 6ff148c6b231..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConnectedSiteTagsResponseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListConnectedSiteTagsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConnectedSiteTagsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - java.util.List - getConnectedSiteTagsList(); - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - com.google.analytics.admin.v1alpha.ConnectedSiteTag getConnectedSiteTags(int index); - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - int getConnectedSiteTagsCount(); - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - java.util.List - getConnectedSiteTagsOrBuilderList(); - /** - *
-   * The site tags for the Universal Analytics property. A maximum of 20
-   * connected site tags will be returned.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConnectedSiteTag connected_site_tags = 1; - */ - com.google.analytics.admin.v1alpha.ConnectedSiteTagOrBuilder getConnectedSiteTagsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java deleted file mode 100644 index cb31ceb0cb39..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListConversionEvents RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} - */ -public final class ListConversionEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) - ListConversionEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListConversionEventsRequest.newBuilder() to construct. - private ListConversionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListConversionEventsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListConversionEventsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListConversionEventsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListConversionEventsRequest other = (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListConversionEventsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListConversionEvents RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) - com.google.analytics.admin.v1alpha.ListConversionEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsRequest build() { - com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListConversionEventsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListConversionEventsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListConversionEventsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConversionEventsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsRequest) - private static final com.google.analytics.admin.v1alpha.ListConversionEventsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversionEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java deleted file mode 100644 index 9cc8ee2fd27f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListConversionEventsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java deleted file mode 100644 index 197ee97e5416..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListConversionEvents RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} - */ -public final class ListConversionEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) - ListConversionEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListConversionEventsResponse.newBuilder() to construct. - private ListConversionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListConversionEventsResponse() { - conversionEvents_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListConversionEventsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); - } - - public static final int CONVERSION_EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List conversionEvents_; - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public java.util.List getConversionEventsList() { - return conversionEvents_; - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public java.util.List - getConversionEventsOrBuilderList() { - return conversionEvents_; - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public int getConversionEventsCount() { - return conversionEvents_.size(); - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { - return conversionEvents_.get(index); - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( - int index) { - return conversionEvents_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < conversionEvents_.size(); i++) { - output.writeMessage(1, conversionEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < conversionEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, conversionEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListConversionEventsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListConversionEventsResponse other = (com.google.analytics.admin.v1alpha.ListConversionEventsResponse) obj; - - if (!getConversionEventsList() - .equals(other.getConversionEventsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getConversionEventsCount() > 0) { - hash = (37 * hash) + CONVERSION_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getConversionEventsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListConversionEventsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListConversionEvents RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) - com.google.analytics.admin.v1alpha.ListConversionEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (conversionEventsBuilder_ == null) { - conversionEvents_ = java.util.Collections.emptyList(); - } else { - conversionEvents_ = null; - conversionEventsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsResponse build() { - com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListConversionEventsResponse result) { - if (conversionEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.conversionEvents_ = conversionEvents_; - } else { - result.conversionEvents_ = conversionEventsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListConversionEventsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListConversionEventsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListConversionEventsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance()) return this; - if (conversionEventsBuilder_ == null) { - if (!other.conversionEvents_.isEmpty()) { - if (conversionEvents_.isEmpty()) { - conversionEvents_ = other.conversionEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConversionEventsIsMutable(); - conversionEvents_.addAll(other.conversionEvents_); - } - onChanged(); - } - } else { - if (!other.conversionEvents_.isEmpty()) { - if (conversionEventsBuilder_.isEmpty()) { - conversionEventsBuilder_.dispose(); - conversionEventsBuilder_ = null; - conversionEvents_ = other.conversionEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - conversionEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConversionEventsFieldBuilder() : null; - } else { - conversionEventsBuilder_.addAllMessages(other.conversionEvents_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.ConversionEvent m = - input.readMessage( - com.google.analytics.admin.v1alpha.ConversionEvent.parser(), - extensionRegistry); - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.add(m); - } else { - conversionEventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List conversionEvents_ = - java.util.Collections.emptyList(); - private void ensureConversionEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - conversionEvents_ = new java.util.ArrayList(conversionEvents_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> conversionEventsBuilder_; - - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public java.util.List getConversionEventsList() { - if (conversionEventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conversionEvents_); - } else { - return conversionEventsBuilder_.getMessageList(); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public int getConversionEventsCount() { - if (conversionEventsBuilder_ == null) { - return conversionEvents_.size(); - } else { - return conversionEventsBuilder_.getCount(); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { - if (conversionEventsBuilder_ == null) { - return conversionEvents_.get(index); - } else { - return conversionEventsBuilder_.getMessage(index); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder setConversionEvents( - int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConversionEventsIsMutable(); - conversionEvents_.set(index, value); - onChanged(); - } else { - conversionEventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder setConversionEvents( - int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.set(index, builderForValue.build()); - onChanged(); - } else { - conversionEventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents(com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConversionEventsIsMutable(); - conversionEvents_.add(value); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents( - int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConversionEventsIsMutable(); - conversionEvents_.add(index, value); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents( - com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.add(builderForValue.build()); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents( - int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.add(index, builderForValue.build()); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder addAllConversionEvents( - java.lang.Iterable values) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conversionEvents_); - onChanged(); - } else { - conversionEventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder clearConversionEvents() { - if (conversionEventsBuilder_ == null) { - conversionEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - conversionEventsBuilder_.clear(); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public Builder removeConversionEvents(int index) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.remove(index); - onChanged(); - } else { - conversionEventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventsBuilder( - int index) { - return getConversionEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( - int index) { - if (conversionEventsBuilder_ == null) { - return conversionEvents_.get(index); } else { - return conversionEventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public java.util.List - getConversionEventsOrBuilderList() { - if (conversionEventsBuilder_ != null) { - return conversionEventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conversionEvents_); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder() { - return getConversionEventsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder( - int index) { - return getConversionEventsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - public java.util.List - getConversionEventsBuilderList() { - return getConversionEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> - getConversionEventsFieldBuilder() { - if (conversionEventsBuilder_ == null) { - conversionEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( - conversionEvents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - conversionEvents_ = null; - } - return conversionEventsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListConversionEventsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsResponse) - private static final com.google.analytics.admin.v1alpha.ListConversionEventsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversionEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListConversionEventsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java deleted file mode 100644 index 9600ab697c03..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListConversionEventsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - java.util.List - getConversionEventsList(); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - int getConversionEventsCount(); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - java.util.List - getConversionEventsOrBuilderList(); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; - */ - com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java deleted file mode 100644 index 0f64b16896fb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListCustomDimensions RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} - */ -public final class ListCustomDimensionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) - ListCustomDimensionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomDimensionsRequest.newBuilder() to construct. - private ListCustomDimensionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomDimensionsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomDimensionsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListCustomDimensionsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other = (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListCustomDimensions RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest build() { - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) - private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomDimensionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java deleted file mode 100644 index 48e94bec0693..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListCustomDimensionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java deleted file mode 100644 index 031fa3df4583..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListCustomDimensions RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} - */ -public final class ListCustomDimensionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) - ListCustomDimensionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomDimensionsResponse.newBuilder() to construct. - private ListCustomDimensionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomDimensionsResponse() { - customDimensions_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomDimensionsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); - } - - public static final int CUSTOM_DIMENSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List customDimensions_; - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public java.util.List getCustomDimensionsList() { - return customDimensions_; - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public java.util.List - getCustomDimensionsOrBuilderList() { - return customDimensions_; - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public int getCustomDimensionsCount() { - return customDimensions_.size(); - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { - return customDimensions_.get(index); - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( - int index) { - return customDimensions_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < customDimensions_.size(); i++) { - output.writeMessage(1, customDimensions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < customDimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customDimensions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListCustomDimensionsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other = (com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) obj; - - if (!getCustomDimensionsList() - .equals(other.getCustomDimensionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getCustomDimensionsCount() > 0) { - hash = (37 * hash) + CUSTOM_DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getCustomDimensionsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListCustomDimensions RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (customDimensionsBuilder_ == null) { - customDimensions_ = java.util.Collections.emptyList(); - } else { - customDimensions_ = null; - customDimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse build() { - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result) { - if (customDimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customDimensions_ = customDimensions_; - } else { - result.customDimensions_ = customDimensionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance()) return this; - if (customDimensionsBuilder_ == null) { - if (!other.customDimensions_.isEmpty()) { - if (customDimensions_.isEmpty()) { - customDimensions_ = other.customDimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCustomDimensionsIsMutable(); - customDimensions_.addAll(other.customDimensions_); - } - onChanged(); - } - } else { - if (!other.customDimensions_.isEmpty()) { - if (customDimensionsBuilder_.isEmpty()) { - customDimensionsBuilder_.dispose(); - customDimensionsBuilder_ = null; - customDimensions_ = other.customDimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - customDimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomDimensionsFieldBuilder() : null; - } else { - customDimensionsBuilder_.addAllMessages(other.customDimensions_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.CustomDimension m = - input.readMessage( - com.google.analytics.admin.v1alpha.CustomDimension.parser(), - extensionRegistry); - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.add(m); - } else { - customDimensionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List customDimensions_ = - java.util.Collections.emptyList(); - private void ensureCustomDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - customDimensions_ = new java.util.ArrayList(customDimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> customDimensionsBuilder_; - - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public java.util.List getCustomDimensionsList() { - if (customDimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(customDimensions_); - } else { - return customDimensionsBuilder_.getMessageList(); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public int getCustomDimensionsCount() { - if (customDimensionsBuilder_ == null) { - return customDimensions_.size(); - } else { - return customDimensionsBuilder_.getCount(); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { - if (customDimensionsBuilder_ == null) { - return customDimensions_.get(index); - } else { - return customDimensionsBuilder_.getMessage(index); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder setCustomDimensions( - int index, com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomDimensionsIsMutable(); - customDimensions_.set(index, value); - onChanged(); - } else { - customDimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder setCustomDimensions( - int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - customDimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions(com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomDimensionsIsMutable(); - customDimensions_.add(value); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions( - int index, com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomDimensionsIsMutable(); - customDimensions_.add(index, value); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions( - com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.add(builderForValue.build()); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions( - int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder addAllCustomDimensions( - java.lang.Iterable values) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customDimensions_); - onChanged(); - } else { - customDimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder clearCustomDimensions() { - if (customDimensionsBuilder_ == null) { - customDimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - customDimensionsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public Builder removeCustomDimensions(int index) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.remove(index); - onChanged(); - } else { - customDimensionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionsBuilder( - int index) { - return getCustomDimensionsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( - int index) { - if (customDimensionsBuilder_ == null) { - return customDimensions_.get(index); } else { - return customDimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public java.util.List - getCustomDimensionsOrBuilderList() { - if (customDimensionsBuilder_ != null) { - return customDimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(customDimensions_); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder() { - return getCustomDimensionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder( - int index) { - return getCustomDimensionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - public java.util.List - getCustomDimensionsBuilderList() { - return getCustomDimensionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> - getCustomDimensionsFieldBuilder() { - if (customDimensionsBuilder_ == null) { - customDimensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( - customDimensions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - customDimensions_ = null; - } - return customDimensionsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) - private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomDimensionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java deleted file mode 100644 index ff2551bfe71e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListCustomDimensionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - java.util.List - getCustomDimensionsList(); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - int getCustomDimensionsCount(); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - java.util.List - getCustomDimensionsOrBuilderList(); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; - */ - com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java deleted file mode 100644 index a14dc840863f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListCustomMetrics RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} - */ -public final class ListCustomMetricsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) - ListCustomMetricsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomMetricsRequest.newBuilder() to construct. - private ListCustomMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomMetricsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomMetricsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListCustomMetricsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other = (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListCustomMetrics RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) - com.google.analytics.admin.v1alpha.ListCustomMetricsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest build() { - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomMetricsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsRequest) - private static final com.google.analytics.admin.v1alpha.ListCustomMetricsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomMetricsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java deleted file mode 100644 index a35620596a30..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListCustomMetricsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java deleted file mode 100644 index 4b192f798e68..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListCustomMetrics RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} - */ -public final class ListCustomMetricsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) - ListCustomMetricsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomMetricsResponse.newBuilder() to construct. - private ListCustomMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomMetricsResponse() { - customMetrics_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomMetricsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); - } - - public static final int CUSTOM_METRICS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List customMetrics_; - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public java.util.List getCustomMetricsList() { - return customMetrics_; - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public java.util.List - getCustomMetricsOrBuilderList() { - return customMetrics_; - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public int getCustomMetricsCount() { - return customMetrics_.size(); - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { - return customMetrics_.get(index); - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( - int index) { - return customMetrics_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < customMetrics_.size(); i++) { - output.writeMessage(1, customMetrics_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < customMetrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customMetrics_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListCustomMetricsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other = (com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) obj; - - if (!getCustomMetricsList() - .equals(other.getCustomMetricsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getCustomMetricsCount() > 0) { - hash = (37 * hash) + CUSTOM_METRICS_FIELD_NUMBER; - hash = (53 * hash) + getCustomMetricsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListCustomMetricsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListCustomMetrics RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) - com.google.analytics.admin.v1alpha.ListCustomMetricsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (customMetricsBuilder_ == null) { - customMetrics_ = java.util.Collections.emptyList(); - } else { - customMetrics_ = null; - customMetricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse build() { - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result) { - if (customMetricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customMetrics_ = customMetrics_; - } else { - result.customMetrics_ = customMetricsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance()) return this; - if (customMetricsBuilder_ == null) { - if (!other.customMetrics_.isEmpty()) { - if (customMetrics_.isEmpty()) { - customMetrics_ = other.customMetrics_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCustomMetricsIsMutable(); - customMetrics_.addAll(other.customMetrics_); - } - onChanged(); - } - } else { - if (!other.customMetrics_.isEmpty()) { - if (customMetricsBuilder_.isEmpty()) { - customMetricsBuilder_.dispose(); - customMetricsBuilder_ = null; - customMetrics_ = other.customMetrics_; - bitField0_ = (bitField0_ & ~0x00000001); - customMetricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomMetricsFieldBuilder() : null; - } else { - customMetricsBuilder_.addAllMessages(other.customMetrics_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.CustomMetric m = - input.readMessage( - com.google.analytics.admin.v1alpha.CustomMetric.parser(), - extensionRegistry); - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.add(m); - } else { - customMetricsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List customMetrics_ = - java.util.Collections.emptyList(); - private void ensureCustomMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - customMetrics_ = new java.util.ArrayList(customMetrics_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> customMetricsBuilder_; - - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public java.util.List getCustomMetricsList() { - if (customMetricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(customMetrics_); - } else { - return customMetricsBuilder_.getMessageList(); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public int getCustomMetricsCount() { - if (customMetricsBuilder_ == null) { - return customMetrics_.size(); - } else { - return customMetricsBuilder_.getCount(); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { - if (customMetricsBuilder_ == null) { - return customMetrics_.get(index); - } else { - return customMetricsBuilder_.getMessage(index); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder setCustomMetrics( - int index, com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomMetricsIsMutable(); - customMetrics_.set(index, value); - onChanged(); - } else { - customMetricsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder setCustomMetrics( - int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.set(index, builderForValue.build()); - onChanged(); - } else { - customMetricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics(com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomMetricsIsMutable(); - customMetrics_.add(value); - onChanged(); - } else { - customMetricsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics( - int index, com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomMetricsIsMutable(); - customMetrics_.add(index, value); - onChanged(); - } else { - customMetricsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics( - com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.add(builderForValue.build()); - onChanged(); - } else { - customMetricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics( - int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.add(index, builderForValue.build()); - onChanged(); - } else { - customMetricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder addAllCustomMetrics( - java.lang.Iterable values) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customMetrics_); - onChanged(); - } else { - customMetricsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder clearCustomMetrics() { - if (customMetricsBuilder_ == null) { - customMetrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - customMetricsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public Builder removeCustomMetrics(int index) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.remove(index); - onChanged(); - } else { - customMetricsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricsBuilder( - int index) { - return getCustomMetricsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( - int index) { - if (customMetricsBuilder_ == null) { - return customMetrics_.get(index); } else { - return customMetricsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public java.util.List - getCustomMetricsOrBuilderList() { - if (customMetricsBuilder_ != null) { - return customMetricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(customMetrics_); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder() { - return getCustomMetricsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder( - int index) { - return getCustomMetricsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - public java.util.List - getCustomMetricsBuilderList() { - return getCustomMetricsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> - getCustomMetricsFieldBuilder() { - if (customMetricsBuilder_ == null) { - customMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( - customMetrics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - customMetrics_ = null; - } - return customMetricsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListCustomMetricsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsResponse) - private static final com.google.analytics.admin.v1alpha.ListCustomMetricsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomMetricsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java deleted file mode 100644 index e8860caed2c6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListCustomMetricsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - java.util.List - getCustomMetricsList(); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - int getCustomMetricsCount(); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - java.util.List - getCustomMetricsOrBuilderList(); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; - */ - com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java deleted file mode 100644 index 2b8160803940..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsRequest} - */ -public final class ListDataStreamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsRequest) - ListDataStreamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDataStreamsRequest.newBuilder() to construct. - private ListDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDataStreamsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDataStreamsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, com.google.analytics.admin.v1alpha.ListDataStreamsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListDataStreamsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListDataStreamsRequest other = (com.google.analytics.admin.v1alpha.ListDataStreamsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListDataStreamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDataStreamsRequest) - com.google.analytics.admin.v1alpha.ListDataStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDataStreamsRequest.class, com.google.analytics.admin.v1alpha.ListDataStreamsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListDataStreamsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest build() { - com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListDataStreamsRequest result = new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListDataStreamsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDataStreamsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListDataStreamsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDataStreamsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsRequest) - private static final com.google.analytics.admin.v1alpha.ListDataStreamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java deleted file mode 100644 index 16b95cb64329..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDataStreamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java deleted file mode 100644 index b18d7b4d8eb9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsResponse} - */ -public final class ListDataStreamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDataStreamsResponse) - ListDataStreamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDataStreamsResponse.newBuilder() to construct. - private ListDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDataStreamsResponse() { - dataStreams_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDataStreamsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, com.google.analytics.admin.v1alpha.ListDataStreamsResponse.Builder.class); - } - - public static final int DATA_STREAMS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List dataStreams_; - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public java.util.List getDataStreamsList() { - return dataStreams_; - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public java.util.List - getDataStreamsOrBuilderList() { - return dataStreams_; - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public int getDataStreamsCount() { - return dataStreams_.size(); - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index) { - return dataStreams_.get(index); - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder( - int index) { - return dataStreams_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < dataStreams_.size(); i++) { - output.writeMessage(1, dataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dataStreams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += 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.admin.v1alpha.ListDataStreamsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListDataStreamsResponse other = (com.google.analytics.admin.v1alpha.ListDataStreamsResponse) obj; - - if (!getDataStreamsList() - .equals(other.getDataStreamsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!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 (getDataStreamsCount() > 0) { - hash = (37 * hash) + DATA_STREAMS_FIELD_NUMBER; - hash = (53 * hash) + getDataStreamsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListDataStreamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDataStreamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDataStreamsResponse) - com.google.analytics.admin.v1alpha.ListDataStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDataStreamsResponse.class, com.google.analytics.admin.v1alpha.ListDataStreamsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListDataStreamsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dataStreamsBuilder_ == null) { - dataStreams_ = java.util.Collections.emptyList(); - } else { - dataStreams_ = null; - dataStreamsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDataStreamsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsResponse build() { - com.google.analytics.admin.v1alpha.ListDataStreamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListDataStreamsResponse result = new com.google.analytics.admin.v1alpha.ListDataStreamsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListDataStreamsResponse result) { - if (dataStreamsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dataStreams_ = dataStreams_; - } else { - result.dataStreams_ = dataStreamsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListDataStreamsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDataStreamsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDataStreamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDataStreamsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListDataStreamsResponse.getDefaultInstance()) return this; - if (dataStreamsBuilder_ == null) { - if (!other.dataStreams_.isEmpty()) { - if (dataStreams_.isEmpty()) { - dataStreams_ = other.dataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataStreamsIsMutable(); - dataStreams_.addAll(other.dataStreams_); - } - onChanged(); - } - } else { - if (!other.dataStreams_.isEmpty()) { - if (dataStreamsBuilder_.isEmpty()) { - dataStreamsBuilder_.dispose(); - dataStreamsBuilder_ = null; - dataStreams_ = other.dataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - dataStreamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataStreamsFieldBuilder() : null; - } else { - dataStreamsBuilder_.addAllMessages(other.dataStreams_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.DataStream m = - input.readMessage( - com.google.analytics.admin.v1alpha.DataStream.parser(), - extensionRegistry); - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.add(m); - } else { - dataStreamsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List dataStreams_ = - java.util.Collections.emptyList(); - private void ensureDataStreamsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dataStreams_ = new java.util.ArrayList(dataStreams_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> dataStreamsBuilder_; - - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public java.util.List getDataStreamsList() { - if (dataStreamsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataStreams_); - } else { - return dataStreamsBuilder_.getMessageList(); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public int getDataStreamsCount() { - if (dataStreamsBuilder_ == null) { - return dataStreams_.size(); - } else { - return dataStreamsBuilder_.getCount(); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index) { - if (dataStreamsBuilder_ == null) { - return dataStreams_.get(index); - } else { - return dataStreamsBuilder_.getMessage(index); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder setDataStreams( - int index, com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStreamsIsMutable(); - dataStreams_.set(index, value); - onChanged(); - } else { - dataStreamsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder setDataStreams( - int index, com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.set(index, builderForValue.build()); - onChanged(); - } else { - dataStreamsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder addDataStreams(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStreamsIsMutable(); - dataStreams_.add(value); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder addDataStreams( - int index, com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStreamsIsMutable(); - dataStreams_.add(index, value); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder addDataStreams( - com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.add(builderForValue.build()); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder addDataStreams( - int index, com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.add(index, builderForValue.build()); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder addAllDataStreams( - java.lang.Iterable values) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataStreams_); - onChanged(); - } else { - dataStreamsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder clearDataStreams() { - if (dataStreamsBuilder_ == null) { - dataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataStreamsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public Builder removeDataStreams(int index) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.remove(index); - onChanged(); - } else { - dataStreamsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamsBuilder( - int index) { - return getDataStreamsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder( - int index) { - if (dataStreamsBuilder_ == null) { - return dataStreams_.get(index); } else { - return dataStreamsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public java.util.List - getDataStreamsOrBuilderList() { - if (dataStreamsBuilder_ != null) { - return dataStreamsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dataStreams_); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder addDataStreamsBuilder() { - return getDataStreamsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()); - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder addDataStreamsBuilder( - int index) { - return getDataStreamsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()); - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - public java.util.List - getDataStreamsBuilderList() { - return getDataStreamsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - getDataStreamsFieldBuilder() { - if (dataStreamsBuilder_ == null) { - dataStreamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( - dataStreams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dataStreams_ = null; - } - return dataStreamsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDataStreamsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDataStreamsResponse) - private static final com.google.analytics.admin.v1alpha.ListDataStreamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDataStreamsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDataStreamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java deleted file mode 100644 index d2b8f8a01b1a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDataStreamsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDataStreamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDataStreamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - java.util.List - getDataStreamsList(); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - com.google.analytics.admin.v1alpha.DataStream getDataStreams(int index); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - int getDataStreamsCount(); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - java.util.List - getDataStreamsOrBuilderList(); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DataStream data_streams = 1; - */ - com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java deleted file mode 100644 index 7b397ad9d2cc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java +++ /dev/null @@ -1,873 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListDisplayVideo360AdvertiserLinkProposals RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} - */ -public final class ListDisplayVideo360AdvertiserLinkProposalsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) - ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() to construct. - private ListDisplayVideo360AdvertiserLinkProposalsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDisplayVideo360AdvertiserLinkProposalsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDisplayVideo360AdvertiserLinkProposalsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous
-   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-   * the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-   * provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous
-   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-   * the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-   * provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest other = (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListDisplayVideo360AdvertiserLinkProposals RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest build() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest result = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous
-     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-     * the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-     * provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous
-     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-     * the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-     * provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous
-     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-     * the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-     * provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous
-     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-     * the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-     * provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous
-     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-     * the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-     * provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) - private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDisplayVideo360AdvertiserLinkProposalsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java deleted file mode 100644 index b92e8f7f7184..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous
-   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-   * the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-   * provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous
-   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
-   * the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
-   * provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java deleted file mode 100644 index 27ecd13e9f44..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListDisplayVideo360AdvertiserLinkProposals RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} - */ -public final class ListDisplayVideo360AdvertiserLinkProposalsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) - ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() to construct. - private ListDisplayVideo360AdvertiserLinkProposalsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDisplayVideo360AdvertiserLinkProposalsResponse() { - displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDisplayVideo360AdvertiserLinkProposalsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.Builder.class); - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSALS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List displayVideo360AdvertiserLinkProposals_; - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - @java.lang.Override - public java.util.List getDisplayVideo360AdvertiserLinkProposalsList() { - return displayVideo360AdvertiserLinkProposals_; - } - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - @java.lang.Override - public java.util.List - getDisplayVideo360AdvertiserLinkProposalsOrBuilderList() { - return displayVideo360AdvertiserLinkProposals_; - } - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - @java.lang.Override - public int getDisplayVideo360AdvertiserLinkProposalsCount() { - return displayVideo360AdvertiserLinkProposals_.size(); - } - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposals(int index) { - return displayVideo360AdvertiserLinkProposals_.get(index); - } - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalsOrBuilder( - int index) { - return displayVideo360AdvertiserLinkProposals_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < displayVideo360AdvertiserLinkProposals_.size(); i++) { - output.writeMessage(1, displayVideo360AdvertiserLinkProposals_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < displayVideo360AdvertiserLinkProposals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, displayVideo360AdvertiserLinkProposals_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse other = (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) obj; - - if (!getDisplayVideo360AdvertiserLinkProposalsList() - .equals(other.getDisplayVideo360AdvertiserLinkProposalsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getDisplayVideo360AdvertiserLinkProposalsCount() > 0) { - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSALS_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposalsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListDisplayVideo360AdvertiserLinkProposals RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); - } else { - displayVideo360AdvertiserLinkProposals_ = null; - displayVideo360AdvertiserLinkProposalsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse build() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - displayVideo360AdvertiserLinkProposals_ = java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.displayVideo360AdvertiserLinkProposals_ = displayVideo360AdvertiserLinkProposals_; - } else { - result.displayVideo360AdvertiserLinkProposals_ = displayVideo360AdvertiserLinkProposalsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance()) return this; - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - if (!other.displayVideo360AdvertiserLinkProposals_.isEmpty()) { - if (displayVideo360AdvertiserLinkProposals_.isEmpty()) { - displayVideo360AdvertiserLinkProposals_ = other.displayVideo360AdvertiserLinkProposals_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.addAll(other.displayVideo360AdvertiserLinkProposals_); - } - onChanged(); - } - } else { - if (!other.displayVideo360AdvertiserLinkProposals_.isEmpty()) { - if (displayVideo360AdvertiserLinkProposalsBuilder_.isEmpty()) { - displayVideo360AdvertiserLinkProposalsBuilder_.dispose(); - displayVideo360AdvertiserLinkProposalsBuilder_ = null; - displayVideo360AdvertiserLinkProposals_ = other.displayVideo360AdvertiserLinkProposals_; - bitField0_ = (bitField0_ & ~0x00000001); - displayVideo360AdvertiserLinkProposalsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() : null; - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.addAllMessages(other.displayVideo360AdvertiserLinkProposals_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal m = - input.readMessage( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.parser(), - extensionRegistry); - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.add(m); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List displayVideo360AdvertiserLinkProposals_ = - java.util.Collections.emptyList(); - private void ensureDisplayVideo360AdvertiserLinkProposalsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - displayVideo360AdvertiserLinkProposals_ = new java.util.ArrayList(displayVideo360AdvertiserLinkProposals_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> displayVideo360AdvertiserLinkProposalsBuilder_; - - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public java.util.List getDisplayVideo360AdvertiserLinkProposalsList() { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); - } else { - return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageList(); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public int getDisplayVideo360AdvertiserLinkProposalsCount() { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - return displayVideo360AdvertiserLinkProposals_.size(); - } else { - return displayVideo360AdvertiserLinkProposalsBuilder_.getCount(); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposals(int index) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - return displayVideo360AdvertiserLinkProposals_.get(index); - } else { - return displayVideo360AdvertiserLinkProposalsBuilder_.getMessage(index); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder setDisplayVideo360AdvertiserLinkProposals( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.set(index, value); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder setDisplayVideo360AdvertiserLinkProposals( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder builderForValue) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.set(index, builderForValue.build()); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder addDisplayVideo360AdvertiserLinkProposals(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.add(value); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder addDisplayVideo360AdvertiserLinkProposals( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.add(index, value); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder addDisplayVideo360AdvertiserLinkProposals( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder builderForValue) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.add(builderForValue.build()); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder addDisplayVideo360AdvertiserLinkProposals( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder builderForValue) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.add(index, builderForValue.build()); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder addAllDisplayVideo360AdvertiserLinkProposals( - java.lang.Iterable values) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, displayVideo360AdvertiserLinkProposals_); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder clearDisplayVideo360AdvertiserLinkProposals() { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public Builder removeDisplayVideo360AdvertiserLinkProposals(int index) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); - displayVideo360AdvertiserLinkProposals_.remove(index); - onChanged(); - } else { - displayVideo360AdvertiserLinkProposalsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder getDisplayVideo360AdvertiserLinkProposalsBuilder( - int index) { - return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalsOrBuilder( - int index) { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - return displayVideo360AdvertiserLinkProposals_.get(index); } else { - return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public java.util.List - getDisplayVideo360AdvertiserLinkProposalsOrBuilderList() { - if (displayVideo360AdvertiserLinkProposalsBuilder_ != null) { - return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder addDisplayVideo360AdvertiserLinkProposalsBuilder() { - return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()); - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder addDisplayVideo360AdvertiserLinkProposalsBuilder( - int index) { - return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.getDefaultInstance()); - } - /** - *
-     * List of DisplayVideo360AdvertiserLinkProposals.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - public java.util.List - getDisplayVideo360AdvertiserLinkProposalsBuilderList() { - return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> - getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() { - if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { - displayVideo360AdvertiserLinkProposalsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder>( - displayVideo360AdvertiserLinkProposals_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - displayVideo360AdvertiserLinkProposals_ = null; - } - return displayVideo360AdvertiserLinkProposalsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) - private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDisplayVideo360AdvertiserLinkProposalsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java deleted file mode 100644 index 49cdb9fa6319..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - java.util.List - getDisplayVideo360AdvertiserLinkProposalsList(); - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposals(int index); - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - int getDisplayVideo360AdvertiserLinkProposalsCount(); - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - java.util.List - getDisplayVideo360AdvertiserLinkProposalsOrBuilderList(); - /** - *
-   * List of DisplayVideo360AdvertiserLinkProposals.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder getDisplayVideo360AdvertiserLinkProposalsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java deleted file mode 100644 index f20d1d29d04c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java +++ /dev/null @@ -1,866 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListDisplayVideo360AdvertiserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} - */ -public final class ListDisplayVideo360AdvertiserLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) - ListDisplayVideo360AdvertiserLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDisplayVideo360AdvertiserLinksRequest.newBuilder() to construct. - private ListDisplayVideo360AdvertiserLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDisplayVideo360AdvertiserLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDisplayVideo360AdvertiserLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest other = (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListDisplayVideo360AdvertiserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest build() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDisplayVideo360AdvertiserLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java deleted file mode 100644 index 111ce0d6fe87..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDisplayVideo360AdvertiserLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java deleted file mode 100644 index 854e96d202b5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListDisplayVideo360AdvertiserLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} - */ -public final class ListDisplayVideo360AdvertiserLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) - ListDisplayVideo360AdvertiserLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDisplayVideo360AdvertiserLinksResponse.newBuilder() to construct. - private ListDisplayVideo360AdvertiserLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDisplayVideo360AdvertiserLinksResponse() { - displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDisplayVideo360AdvertiserLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.Builder.class); - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List displayVideo360AdvertiserLinks_; - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - @java.lang.Override - public java.util.List getDisplayVideo360AdvertiserLinksList() { - return displayVideo360AdvertiserLinks_; - } - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - @java.lang.Override - public java.util.List - getDisplayVideo360AdvertiserLinksOrBuilderList() { - return displayVideo360AdvertiserLinks_; - } - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - @java.lang.Override - public int getDisplayVideo360AdvertiserLinksCount() { - return displayVideo360AdvertiserLinks_.size(); - } - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLinks(int index) { - return displayVideo360AdvertiserLinks_.get(index); - } - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinksOrBuilder( - int index) { - return displayVideo360AdvertiserLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < displayVideo360AdvertiserLinks_.size(); i++) { - output.writeMessage(1, displayVideo360AdvertiserLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < displayVideo360AdvertiserLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, displayVideo360AdvertiserLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse other = (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) obj; - - if (!getDisplayVideo360AdvertiserLinksList() - .equals(other.getDisplayVideo360AdvertiserLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getDisplayVideo360AdvertiserLinksCount() > 0) { - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListDisplayVideo360AdvertiserLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (displayVideo360AdvertiserLinksBuilder_ == null) { - displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); - } else { - displayVideo360AdvertiserLinks_ = null; - displayVideo360AdvertiserLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse build() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - displayVideo360AdvertiserLinks_ = java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinks_; - } else { - result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance()) return this; - if (displayVideo360AdvertiserLinksBuilder_ == null) { - if (!other.displayVideo360AdvertiserLinks_.isEmpty()) { - if (displayVideo360AdvertiserLinks_.isEmpty()) { - displayVideo360AdvertiserLinks_ = other.displayVideo360AdvertiserLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.addAll(other.displayVideo360AdvertiserLinks_); - } - onChanged(); - } - } else { - if (!other.displayVideo360AdvertiserLinks_.isEmpty()) { - if (displayVideo360AdvertiserLinksBuilder_.isEmpty()) { - displayVideo360AdvertiserLinksBuilder_.dispose(); - displayVideo360AdvertiserLinksBuilder_ = null; - displayVideo360AdvertiserLinks_ = other.displayVideo360AdvertiserLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - displayVideo360AdvertiserLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDisplayVideo360AdvertiserLinksFieldBuilder() : null; - } else { - displayVideo360AdvertiserLinksBuilder_.addAllMessages(other.displayVideo360AdvertiserLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.parser(), - extensionRegistry); - if (displayVideo360AdvertiserLinksBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.add(m); - } else { - displayVideo360AdvertiserLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List displayVideo360AdvertiserLinks_ = - java.util.Collections.emptyList(); - private void ensureDisplayVideo360AdvertiserLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - displayVideo360AdvertiserLinks_ = new java.util.ArrayList(displayVideo360AdvertiserLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> displayVideo360AdvertiserLinksBuilder_; - - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public java.util.List getDisplayVideo360AdvertiserLinksList() { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); - } else { - return displayVideo360AdvertiserLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public int getDisplayVideo360AdvertiserLinksCount() { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - return displayVideo360AdvertiserLinks_.size(); - } else { - return displayVideo360AdvertiserLinksBuilder_.getCount(); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLinks(int index) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - return displayVideo360AdvertiserLinks_.get(index); - } else { - return displayVideo360AdvertiserLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder setDisplayVideo360AdvertiserLinks( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.set(index, value); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder setDisplayVideo360AdvertiserLinks( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder addDisplayVideo360AdvertiserLinks(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.add(value); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder addDisplayVideo360AdvertiserLinks( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.add(index, value); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder addDisplayVideo360AdvertiserLinks( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.add(builderForValue.build()); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder addDisplayVideo360AdvertiserLinks( - int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder addAllDisplayVideo360AdvertiserLinks( - java.lang.Iterable values) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, displayVideo360AdvertiserLinks_); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder clearDisplayVideo360AdvertiserLinks() { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public Builder removeDisplayVideo360AdvertiserLinks(int index) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - ensureDisplayVideo360AdvertiserLinksIsMutable(); - displayVideo360AdvertiserLinks_.remove(index); - onChanged(); - } else { - displayVideo360AdvertiserLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder getDisplayVideo360AdvertiserLinksBuilder( - int index) { - return getDisplayVideo360AdvertiserLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinksOrBuilder( - int index) { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - return displayVideo360AdvertiserLinks_.get(index); } else { - return displayVideo360AdvertiserLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public java.util.List - getDisplayVideo360AdvertiserLinksOrBuilderList() { - if (displayVideo360AdvertiserLinksBuilder_ != null) { - return displayVideo360AdvertiserLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); - } - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder addDisplayVideo360AdvertiserLinksBuilder() { - return getDisplayVideo360AdvertiserLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()); - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder addDisplayVideo360AdvertiserLinksBuilder( - int index) { - return getDisplayVideo360AdvertiserLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()); - } - /** - *
-     * List of DisplayVideo360AdvertiserLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - public java.util.List - getDisplayVideo360AdvertiserLinksBuilderList() { - return getDisplayVideo360AdvertiserLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> - getDisplayVideo360AdvertiserLinksFieldBuilder() { - if (displayVideo360AdvertiserLinksBuilder_ == null) { - displayVideo360AdvertiserLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( - displayVideo360AdvertiserLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - displayVideo360AdvertiserLinks_ = null; - } - return displayVideo360AdvertiserLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDisplayVideo360AdvertiserLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java deleted file mode 100644 index a1d80dfdc429..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListDisplayVideo360AdvertiserLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - java.util.List - getDisplayVideo360AdvertiserLinksList(); - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLinks(int index); - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - int getDisplayVideo360AdvertiserLinksCount(); - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - java.util.List - getDisplayVideo360AdvertiserLinksOrBuilderList(); - /** - *
-   * List of DisplayVideo360AdvertiserLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequest.java deleted file mode 100644 index 818ba6c42cc4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListEventCreateRules RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesRequest} - */ -public final class ListEventCreateRulesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) - ListEventCreateRulesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEventCreateRulesRequest.newBuilder() to construct. - private ListEventCreateRulesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEventCreateRulesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEventCreateRulesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.class, com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListEventCreateRules` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListEventCreateRules`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListEventCreateRules` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListEventCreateRules`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListEventCreateRulesRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest other = (com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListEventCreateRules RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.class, com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest build() { - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest result = new com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/123/dataStreams/456
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListEventCreateRules` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListEventCreateRules`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListEventCreateRules` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListEventCreateRules`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListEventCreateRules` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListEventCreateRules`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListEventCreateRules` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListEventCreateRules`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListEventCreateRules` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListEventCreateRules`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) - private static final com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventCreateRulesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequestOrBuilder.java deleted file mode 100644 index b9ad14148e44..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListEventCreateRulesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListEventCreateRulesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/123/dataStreams/456
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListEventCreateRules` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListEventCreateRules`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListEventCreateRules` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListEventCreateRules`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponse.java deleted file mode 100644 index b4c32c9d0c04..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponse.java +++ /dev/null @@ -1,1053 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListEventCreateRules RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesResponse} - */ -public final class ListEventCreateRulesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) - ListEventCreateRulesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListEventCreateRulesResponse.newBuilder() to construct. - private ListEventCreateRulesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListEventCreateRulesResponse() { - eventCreateRules_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListEventCreateRulesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.class, com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.Builder.class); - } - - public static final int EVENT_CREATE_RULES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List eventCreateRules_; - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - @java.lang.Override - public java.util.List getEventCreateRulesList() { - return eventCreateRules_; - } - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - @java.lang.Override - public java.util.List - getEventCreateRulesOrBuilderList() { - return eventCreateRules_; - } - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - @java.lang.Override - public int getEventCreateRulesCount() { - return eventCreateRules_.size(); - } - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRules(int index) { - return eventCreateRules_.get(index); - } - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRulesOrBuilder( - int index) { - return eventCreateRules_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < eventCreateRules_.size(); i++) { - output.writeMessage(1, eventCreateRules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < eventCreateRules_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, eventCreateRules_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListEventCreateRulesResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse other = (com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse) obj; - - if (!getEventCreateRulesList() - .equals(other.getEventCreateRulesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getEventCreateRulesCount() > 0) { - hash = (37 * hash) + EVENT_CREATE_RULES_FIELD_NUMBER; - hash = (53 * hash) + getEventCreateRulesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListEventCreateRules RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListEventCreateRulesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.class, com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (eventCreateRulesBuilder_ == null) { - eventCreateRules_ = java.util.Collections.emptyList(); - } else { - eventCreateRules_ = null; - eventCreateRulesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListEventCreateRulesResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse build() { - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result = new com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result) { - if (eventCreateRulesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - eventCreateRules_ = java.util.Collections.unmodifiableList(eventCreateRules_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.eventCreateRules_ = eventCreateRules_; - } else { - result.eventCreateRules_ = eventCreateRulesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse.getDefaultInstance()) return this; - if (eventCreateRulesBuilder_ == null) { - if (!other.eventCreateRules_.isEmpty()) { - if (eventCreateRules_.isEmpty()) { - eventCreateRules_ = other.eventCreateRules_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEventCreateRulesIsMutable(); - eventCreateRules_.addAll(other.eventCreateRules_); - } - onChanged(); - } - } else { - if (!other.eventCreateRules_.isEmpty()) { - if (eventCreateRulesBuilder_.isEmpty()) { - eventCreateRulesBuilder_.dispose(); - eventCreateRulesBuilder_ = null; - eventCreateRules_ = other.eventCreateRules_; - bitField0_ = (bitField0_ & ~0x00000001); - eventCreateRulesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventCreateRulesFieldBuilder() : null; - } else { - eventCreateRulesBuilder_.addAllMessages(other.eventCreateRules_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.EventCreateRule m = - input.readMessage( - com.google.analytics.admin.v1alpha.EventCreateRule.parser(), - extensionRegistry); - if (eventCreateRulesBuilder_ == null) { - ensureEventCreateRulesIsMutable(); - eventCreateRules_.add(m); - } else { - eventCreateRulesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List eventCreateRules_ = - java.util.Collections.emptyList(); - private void ensureEventCreateRulesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - eventCreateRules_ = new java.util.ArrayList(eventCreateRules_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> eventCreateRulesBuilder_; - - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public java.util.List getEventCreateRulesList() { - if (eventCreateRulesBuilder_ == null) { - return java.util.Collections.unmodifiableList(eventCreateRules_); - } else { - return eventCreateRulesBuilder_.getMessageList(); - } - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public int getEventCreateRulesCount() { - if (eventCreateRulesBuilder_ == null) { - return eventCreateRules_.size(); - } else { - return eventCreateRulesBuilder_.getCount(); - } - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRules(int index) { - if (eventCreateRulesBuilder_ == null) { - return eventCreateRules_.get(index); - } else { - return eventCreateRulesBuilder_.getMessage(index); - } - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder setEventCreateRules( - int index, com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventCreateRulesIsMutable(); - eventCreateRules_.set(index, value); - onChanged(); - } else { - eventCreateRulesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder setEventCreateRules( - int index, com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { - if (eventCreateRulesBuilder_ == null) { - ensureEventCreateRulesIsMutable(); - eventCreateRules_.set(index, builderForValue.build()); - onChanged(); - } else { - eventCreateRulesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder addEventCreateRules(com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventCreateRulesIsMutable(); - eventCreateRules_.add(value); - onChanged(); - } else { - eventCreateRulesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder addEventCreateRules( - int index, com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRulesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEventCreateRulesIsMutable(); - eventCreateRules_.add(index, value); - onChanged(); - } else { - eventCreateRulesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder addEventCreateRules( - com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { - if (eventCreateRulesBuilder_ == null) { - ensureEventCreateRulesIsMutable(); - eventCreateRules_.add(builderForValue.build()); - onChanged(); - } else { - eventCreateRulesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder addEventCreateRules( - int index, com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { - if (eventCreateRulesBuilder_ == null) { - ensureEventCreateRulesIsMutable(); - eventCreateRules_.add(index, builderForValue.build()); - onChanged(); - } else { - eventCreateRulesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder addAllEventCreateRules( - java.lang.Iterable values) { - if (eventCreateRulesBuilder_ == null) { - ensureEventCreateRulesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, eventCreateRules_); - onChanged(); - } else { - eventCreateRulesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder clearEventCreateRules() { - if (eventCreateRulesBuilder_ == null) { - eventCreateRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - eventCreateRulesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public Builder removeEventCreateRules(int index) { - if (eventCreateRulesBuilder_ == null) { - ensureEventCreateRulesIsMutable(); - eventCreateRules_.remove(index); - onChanged(); - } else { - eventCreateRulesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public com.google.analytics.admin.v1alpha.EventCreateRule.Builder getEventCreateRulesBuilder( - int index) { - return getEventCreateRulesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRulesOrBuilder( - int index) { - if (eventCreateRulesBuilder_ == null) { - return eventCreateRules_.get(index); } else { - return eventCreateRulesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public java.util.List - getEventCreateRulesOrBuilderList() { - if (eventCreateRulesBuilder_ != null) { - return eventCreateRulesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(eventCreateRules_); - } - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public com.google.analytics.admin.v1alpha.EventCreateRule.Builder addEventCreateRulesBuilder() { - return getEventCreateRulesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()); - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public com.google.analytics.admin.v1alpha.EventCreateRule.Builder addEventCreateRulesBuilder( - int index) { - return getEventCreateRulesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()); - } - /** - *
-     * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - public java.util.List - getEventCreateRulesBuilderList() { - return getEventCreateRulesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> - getEventCreateRulesFieldBuilder() { - if (eventCreateRulesBuilder_ == null) { - eventCreateRulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( - eventCreateRules_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - eventCreateRules_ = null; - } - return eventCreateRulesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) - private static final com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEventCreateRulesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListEventCreateRulesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponseOrBuilder.java deleted file mode 100644 index 2bd7560a5bc0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListEventCreateRulesResponseOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListEventCreateRulesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListEventCreateRulesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - java.util.List - getEventCreateRulesList(); - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRules(int index); - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - int getEventCreateRulesCount(); - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - java.util.List - getEventCreateRulesOrBuilderList(); - /** - *
-   * List of EventCreateRules. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.EventCreateRule event_create_rules = 1; - */ - com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRulesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java deleted file mode 100644 index 80d09c0e66a6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListExpandedDataSets RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsRequest} - */ -public final class ListExpandedDataSetsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) - ListExpandedDataSetsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListExpandedDataSetsRequest.newBuilder() to construct. - private ListExpandedDataSetsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListExpandedDataSetsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListExpandedDataSetsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListExpandedDataSets` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListExpandedDataSet`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListExpandedDataSets` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListExpandedDataSet`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListExpandedDataSetsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest other = (com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListExpandedDataSets RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.class, com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest build() { - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListExpandedDataSets` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListExpandedDataSet`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListExpandedDataSets` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListExpandedDataSet`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListExpandedDataSets` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListExpandedDataSet`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListExpandedDataSets` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListExpandedDataSet`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListExpandedDataSets` call. Provide
-     * this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListExpandedDataSet`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) - private static final com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExpandedDataSetsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java deleted file mode 100644 index 7a1208e44532..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListExpandedDataSetsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListExpandedDataSetsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListExpandedDataSets` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListExpandedDataSet`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListExpandedDataSets` call. Provide
-   * this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListExpandedDataSet`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java deleted file mode 100644 index d2402a8dfb76..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponse.java +++ /dev/null @@ -1,1053 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListExpandedDataSets RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsResponse} - */ -public final class ListExpandedDataSetsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) - ListExpandedDataSetsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListExpandedDataSetsResponse.newBuilder() to construct. - private ListExpandedDataSetsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListExpandedDataSetsResponse() { - expandedDataSets_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListExpandedDataSetsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.Builder.class); - } - - public static final int EXPANDED_DATA_SETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List expandedDataSets_; - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - @java.lang.Override - public java.util.List getExpandedDataSetsList() { - return expandedDataSets_; - } - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - @java.lang.Override - public java.util.List - getExpandedDataSetsOrBuilderList() { - return expandedDataSets_; - } - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - @java.lang.Override - public int getExpandedDataSetsCount() { - return expandedDataSets_.size(); - } - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index) { - return expandedDataSets_.get(index); - } - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( - int index) { - return expandedDataSets_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < expandedDataSets_.size(); i++) { - output.writeMessage(1, expandedDataSets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < expandedDataSets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, expandedDataSets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListExpandedDataSetsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse other = (com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) obj; - - if (!getExpandedDataSetsList() - .equals(other.getExpandedDataSetsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getExpandedDataSetsCount() > 0) { - hash = (37 * hash) + EXPANDED_DATA_SETS_FIELD_NUMBER; - hash = (53 * hash) + getExpandedDataSetsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListExpandedDataSets RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListExpandedDataSetsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.class, com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (expandedDataSetsBuilder_ == null) { - expandedDataSets_ = java.util.Collections.emptyList(); - } else { - expandedDataSets_ = null; - expandedDataSetsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListExpandedDataSetsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse build() { - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result) { - if (expandedDataSetsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - expandedDataSets_ = java.util.Collections.unmodifiableList(expandedDataSets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.expandedDataSets_ = expandedDataSets_; - } else { - result.expandedDataSets_ = expandedDataSetsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse.getDefaultInstance()) return this; - if (expandedDataSetsBuilder_ == null) { - if (!other.expandedDataSets_.isEmpty()) { - if (expandedDataSets_.isEmpty()) { - expandedDataSets_ = other.expandedDataSets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.addAll(other.expandedDataSets_); - } - onChanged(); - } - } else { - if (!other.expandedDataSets_.isEmpty()) { - if (expandedDataSetsBuilder_.isEmpty()) { - expandedDataSetsBuilder_.dispose(); - expandedDataSetsBuilder_ = null; - expandedDataSets_ = other.expandedDataSets_; - bitField0_ = (bitField0_ & ~0x00000001); - expandedDataSetsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExpandedDataSetsFieldBuilder() : null; - } else { - expandedDataSetsBuilder_.addAllMessages(other.expandedDataSets_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.ExpandedDataSet m = - input.readMessage( - com.google.analytics.admin.v1alpha.ExpandedDataSet.parser(), - extensionRegistry); - if (expandedDataSetsBuilder_ == null) { - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.add(m); - } else { - expandedDataSetsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List expandedDataSets_ = - java.util.Collections.emptyList(); - private void ensureExpandedDataSetsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - expandedDataSets_ = new java.util.ArrayList(expandedDataSets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> expandedDataSetsBuilder_; - - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public java.util.List getExpandedDataSetsList() { - if (expandedDataSetsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expandedDataSets_); - } else { - return expandedDataSetsBuilder_.getMessageList(); - } - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public int getExpandedDataSetsCount() { - if (expandedDataSetsBuilder_ == null) { - return expandedDataSets_.size(); - } else { - return expandedDataSetsBuilder_.getCount(); - } - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index) { - if (expandedDataSetsBuilder_ == null) { - return expandedDataSets_.get(index); - } else { - return expandedDataSetsBuilder_.getMessage(index); - } - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder setExpandedDataSets( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.set(index, value); - onChanged(); - } else { - expandedDataSetsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder setExpandedDataSets( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { - if (expandedDataSetsBuilder_ == null) { - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.set(index, builderForValue.build()); - onChanged(); - } else { - expandedDataSetsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder addExpandedDataSets(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.add(value); - onChanged(); - } else { - expandedDataSetsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder addExpandedDataSets( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.add(index, value); - onChanged(); - } else { - expandedDataSetsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder addExpandedDataSets( - com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { - if (expandedDataSetsBuilder_ == null) { - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.add(builderForValue.build()); - onChanged(); - } else { - expandedDataSetsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder addExpandedDataSets( - int index, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { - if (expandedDataSetsBuilder_ == null) { - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.add(index, builderForValue.build()); - onChanged(); - } else { - expandedDataSetsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder addAllExpandedDataSets( - java.lang.Iterable values) { - if (expandedDataSetsBuilder_ == null) { - ensureExpandedDataSetsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, expandedDataSets_); - onChanged(); - } else { - expandedDataSetsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder clearExpandedDataSets() { - if (expandedDataSetsBuilder_ == null) { - expandedDataSets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expandedDataSetsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public Builder removeExpandedDataSets(int index) { - if (expandedDataSetsBuilder_ == null) { - ensureExpandedDataSetsIsMutable(); - expandedDataSets_.remove(index); - onChanged(); - } else { - expandedDataSetsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetsBuilder( - int index) { - return getExpandedDataSetsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( - int index) { - if (expandedDataSetsBuilder_ == null) { - return expandedDataSets_.get(index); } else { - return expandedDataSetsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public java.util.List - getExpandedDataSetsOrBuilderList() { - if (expandedDataSetsBuilder_ != null) { - return expandedDataSetsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expandedDataSets_); - } - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder addExpandedDataSetsBuilder() { - return getExpandedDataSetsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()); - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder addExpandedDataSetsBuilder( - int index) { - return getExpandedDataSetsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()); - } - /** - *
-     * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-     * order.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - public java.util.List - getExpandedDataSetsBuilderList() { - return getExpandedDataSetsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> - getExpandedDataSetsFieldBuilder() { - if (expandedDataSetsBuilder_ == null) { - expandedDataSetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( - expandedDataSets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - expandedDataSets_ = null; - } - return expandedDataSetsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) - private static final com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListExpandedDataSetsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListExpandedDataSetsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java deleted file mode 100644 index d9462e980037..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListExpandedDataSetsResponseOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListExpandedDataSetsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListExpandedDataSetsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - java.util.List - getExpandedDataSetsList(); - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSets(int index); - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - int getExpandedDataSetsCount(); - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - java.util.List - getExpandedDataSetsOrBuilderList(); - /** - *
-   * List of ExpandedDataSet. These will be ordered stably, but in an arbitrary
-   * order.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_sets = 1; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java deleted file mode 100644 index e4cd054576f7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java +++ /dev/null @@ -1,863 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListFirebaseLinks RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksRequest} - */ -public final class ListFirebaseLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) - ListFirebaseLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListFirebaseLinksRequest.newBuilder() to construct. - private ListFirebaseLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListFirebaseLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListFirebaseLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.class, com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListFirebaseLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest other = (com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListFirebaseLinks RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.class, com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest build() { - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest result = new com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirebaseLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java deleted file mode 100644 index eaf893ce2307..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListFirebaseLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListFirebaseLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java deleted file mode 100644 index 86d918418ea5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListFirebaseLinks RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksResponse} - */ -public final class ListFirebaseLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) - ListFirebaseLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListFirebaseLinksResponse.newBuilder() to construct. - private ListFirebaseLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListFirebaseLinksResponse() { - firebaseLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListFirebaseLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.class, com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.Builder.class); - } - - public static final int FIREBASE_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List firebaseLinks_; - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public java.util.List getFirebaseLinksList() { - return firebaseLinks_; - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public java.util.List - getFirebaseLinksOrBuilderList() { - return firebaseLinks_; - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public int getFirebaseLinksCount() { - return firebaseLinks_.size(); - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLinks(int index) { - return firebaseLinks_.get(index); - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( - int index) { - return firebaseLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < firebaseLinks_.size(); i++) { - output.writeMessage(1, firebaseLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < firebaseLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, firebaseLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListFirebaseLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse other = (com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) obj; - - if (!getFirebaseLinksList() - .equals(other.getFirebaseLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getFirebaseLinksCount() > 0) { - hash = (37 * hash) + FIREBASE_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListFirebaseLinks RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListFirebaseLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.class, com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (firebaseLinksBuilder_ == null) { - firebaseLinks_ = java.util.Collections.emptyList(); - } else { - firebaseLinks_ = null; - firebaseLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse build() { - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result = new com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result) { - if (firebaseLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - firebaseLinks_ = java.util.Collections.unmodifiableList(firebaseLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.firebaseLinks_ = firebaseLinks_; - } else { - result.firebaseLinks_ = firebaseLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse.getDefaultInstance()) return this; - if (firebaseLinksBuilder_ == null) { - if (!other.firebaseLinks_.isEmpty()) { - if (firebaseLinks_.isEmpty()) { - firebaseLinks_ = other.firebaseLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.addAll(other.firebaseLinks_); - } - onChanged(); - } - } else { - if (!other.firebaseLinks_.isEmpty()) { - if (firebaseLinksBuilder_.isEmpty()) { - firebaseLinksBuilder_.dispose(); - firebaseLinksBuilder_ = null; - firebaseLinks_ = other.firebaseLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - firebaseLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFirebaseLinksFieldBuilder() : null; - } else { - firebaseLinksBuilder_.addAllMessages(other.firebaseLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.FirebaseLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.FirebaseLink.parser(), - extensionRegistry); - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(m); - } else { - firebaseLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List firebaseLinks_ = - java.util.Collections.emptyList(); - private void ensureFirebaseLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - firebaseLinks_ = new java.util.ArrayList(firebaseLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> firebaseLinksBuilder_; - - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public java.util.List getFirebaseLinksList() { - if (firebaseLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(firebaseLinks_); - } else { - return firebaseLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public int getFirebaseLinksCount() { - if (firebaseLinksBuilder_ == null) { - return firebaseLinks_.size(); - } else { - return firebaseLinksBuilder_.getCount(); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLinks(int index) { - if (firebaseLinksBuilder_ == null) { - return firebaseLinks_.get(index); - } else { - return firebaseLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder setFirebaseLinks( - int index, com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFirebaseLinksIsMutable(); - firebaseLinks_.set(index, value); - onChanged(); - } else { - firebaseLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder setFirebaseLinks( - int index, com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - firebaseLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks(com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(value); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks( - int index, com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(index, value); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks( - com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(builderForValue.build()); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks( - int index, com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder addAllFirebaseLinks( - java.lang.Iterable values) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, firebaseLinks_); - onChanged(); - } else { - firebaseLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder clearFirebaseLinks() { - if (firebaseLinksBuilder_ == null) { - firebaseLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - firebaseLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public Builder removeFirebaseLinks(int index) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.remove(index); - onChanged(); - } else { - firebaseLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinksBuilder( - int index) { - return getFirebaseLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( - int index) { - if (firebaseLinksBuilder_ == null) { - return firebaseLinks_.get(index); } else { - return firebaseLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public java.util.List - getFirebaseLinksOrBuilderList() { - if (firebaseLinksBuilder_ != null) { - return firebaseLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(firebaseLinks_); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1alpha.FirebaseLink.Builder addFirebaseLinksBuilder() { - return getFirebaseLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()); - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1alpha.FirebaseLink.Builder addFirebaseLinksBuilder( - int index) { - return getFirebaseLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()); - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - public java.util.List - getFirebaseLinksBuilderList() { - return getFirebaseLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> - getFirebaseLinksFieldBuilder() { - if (firebaseLinksBuilder_ == null) { - firebaseLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, com.google.analytics.admin.v1alpha.FirebaseLink.Builder, com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( - firebaseLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - firebaseLinks_ = null; - } - return firebaseLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirebaseLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java deleted file mode 100644 index 722688cc663c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponseOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListFirebaseLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListFirebaseLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - java.util.List - getFirebaseLinksList(); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLinks(int index); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - int getFirebaseLinksCount(); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - java.util.List - getFirebaseLinksOrBuilderList(); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.FirebaseLink firebase_links = 1; - */ - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java deleted file mode 100644 index 2f6bdcfc447f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListGoogleAdsLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} - */ -public final class ListGoogleAdsLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) - ListGoogleAdsLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListGoogleAdsLinksRequest.newBuilder() to construct. - private ListGoogleAdsLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListGoogleAdsLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListGoogleAdsLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.class, com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListGoogleAdsLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest other = (com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListGoogleAdsLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.class, com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest build() { - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest result = new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGoogleAdsLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java deleted file mode 100644 index af30ca1a44cc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListGoogleAdsLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java deleted file mode 100644 index e4be1c835471..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListGoogleAdsLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} - */ -public final class ListGoogleAdsLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) - ListGoogleAdsLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListGoogleAdsLinksResponse.newBuilder() to construct. - private ListGoogleAdsLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListGoogleAdsLinksResponse() { - googleAdsLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListGoogleAdsLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.class, com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.Builder.class); - } - - public static final int GOOGLE_ADS_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List googleAdsLinks_; - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public java.util.List getGoogleAdsLinksList() { - return googleAdsLinks_; - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public java.util.List - getGoogleAdsLinksOrBuilderList() { - return googleAdsLinks_; - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public int getGoogleAdsLinksCount() { - return googleAdsLinks_.size(); - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLinks(int index) { - return googleAdsLinks_.get(index); - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( - int index) { - return googleAdsLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < googleAdsLinks_.size(); i++) { - output.writeMessage(1, googleAdsLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < googleAdsLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, googleAdsLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListGoogleAdsLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse other = (com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) obj; - - if (!getGoogleAdsLinksList() - .equals(other.getGoogleAdsLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getGoogleAdsLinksCount() > 0) { - hash = (37 * hash) + GOOGLE_ADS_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListGoogleAdsLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.class, com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (googleAdsLinksBuilder_ == null) { - googleAdsLinks_ = java.util.Collections.emptyList(); - } else { - googleAdsLinks_ = null; - googleAdsLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse build() { - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result = new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result) { - if (googleAdsLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - googleAdsLinks_ = java.util.Collections.unmodifiableList(googleAdsLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.googleAdsLinks_ = googleAdsLinks_; - } else { - result.googleAdsLinks_ = googleAdsLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse.getDefaultInstance()) return this; - if (googleAdsLinksBuilder_ == null) { - if (!other.googleAdsLinks_.isEmpty()) { - if (googleAdsLinks_.isEmpty()) { - googleAdsLinks_ = other.googleAdsLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.addAll(other.googleAdsLinks_); - } - onChanged(); - } - } else { - if (!other.googleAdsLinks_.isEmpty()) { - if (googleAdsLinksBuilder_.isEmpty()) { - googleAdsLinksBuilder_.dispose(); - googleAdsLinksBuilder_ = null; - googleAdsLinks_ = other.googleAdsLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - googleAdsLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGoogleAdsLinksFieldBuilder() : null; - } else { - googleAdsLinksBuilder_.addAllMessages(other.googleAdsLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.GoogleAdsLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), - extensionRegistry); - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(m); - } else { - googleAdsLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List googleAdsLinks_ = - java.util.Collections.emptyList(); - private void ensureGoogleAdsLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - googleAdsLinks_ = new java.util.ArrayList(googleAdsLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> googleAdsLinksBuilder_; - - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public java.util.List getGoogleAdsLinksList() { - if (googleAdsLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(googleAdsLinks_); - } else { - return googleAdsLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public int getGoogleAdsLinksCount() { - if (googleAdsLinksBuilder_ == null) { - return googleAdsLinks_.size(); - } else { - return googleAdsLinksBuilder_.getCount(); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLinks(int index) { - if (googleAdsLinksBuilder_ == null) { - return googleAdsLinks_.get(index); - } else { - return googleAdsLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder setGoogleAdsLinks( - int index, com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.set(index, value); - onChanged(); - } else { - googleAdsLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder setGoogleAdsLinks( - int index, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - googleAdsLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(value); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks( - int index, com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(index, value); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks( - com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(builderForValue.build()); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks( - int index, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder addAllGoogleAdsLinks( - java.lang.Iterable values) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, googleAdsLinks_); - onChanged(); - } else { - googleAdsLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder clearGoogleAdsLinks() { - if (googleAdsLinksBuilder_ == null) { - googleAdsLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - googleAdsLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public Builder removeGoogleAdsLinks(int index) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.remove(index); - onChanged(); - } else { - googleAdsLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinksBuilder( - int index) { - return getGoogleAdsLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( - int index) { - if (googleAdsLinksBuilder_ == null) { - return googleAdsLinks_.get(index); } else { - return googleAdsLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public java.util.List - getGoogleAdsLinksOrBuilderList() { - if (googleAdsLinksBuilder_ != null) { - return googleAdsLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(googleAdsLinks_); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder addGoogleAdsLinksBuilder() { - return getGoogleAdsLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()); - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder addGoogleAdsLinksBuilder( - int index) { - return getGoogleAdsLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()); - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - public java.util.List - getGoogleAdsLinksBuilderList() { - return getGoogleAdsLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> - getGoogleAdsLinksFieldBuilder() { - if (googleAdsLinksBuilder_ == null) { - googleAdsLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( - googleAdsLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - googleAdsLinks_ = null; - } - return googleAdsLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGoogleAdsLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java deleted file mode 100644 index 00d5f252584f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListGoogleAdsLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - java.util.List - getGoogleAdsLinksList(); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLinks(int index); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - int getGoogleAdsLinksCount(); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - java.util.List - getGoogleAdsLinksOrBuilderList(); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_links = 1; - */ - com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java deleted file mode 100644 index 39a9fff0816a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java +++ /dev/null @@ -1,866 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} - */ -public final class ListMeasurementProtocolSecretsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) - ListMeasurementProtocolSecretsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListMeasurementProtocolSecretsRequest.newBuilder() to construct. - private ListMeasurementProtocolSecretsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMeasurementProtocolSecretsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListMeasurementProtocolSecretsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 10 resources will be returned.
-   * The maximum value is 10. Higher values will be coerced to the maximum.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListMeasurementProtocolSecretsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other = (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest build() { - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 10 resources will be returned.
-     * The maximum value is 10. Higher values will be coerced to the maximum.
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 10 resources will be returned.
-     * The maximum value is 10. Higher values will be coerced to the maximum.
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 10 resources will be returned.
-     * The maximum value is 10. Higher values will be coerced to the maximum.
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) - private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMeasurementProtocolSecretsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java deleted file mode 100644 index 434d5efc8230..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListMeasurementProtocolSecretsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 10 resources will be returned.
-   * The maximum value is 10. Higher values will be coerced to the maximum.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java deleted file mode 100644 index d637d16513ac..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} - */ -public final class ListMeasurementProtocolSecretsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) - ListMeasurementProtocolSecretsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListMeasurementProtocolSecretsResponse.newBuilder() to construct. - private ListMeasurementProtocolSecretsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMeasurementProtocolSecretsResponse() { - measurementProtocolSecrets_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListMeasurementProtocolSecretsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder.class); - } - - public static final int MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List measurementProtocolSecrets_; - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public java.util.List getMeasurementProtocolSecretsList() { - return measurementProtocolSecrets_; - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public java.util.List - getMeasurementProtocolSecretsOrBuilderList() { - return measurementProtocolSecrets_; - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public int getMeasurementProtocolSecretsCount() { - return measurementProtocolSecrets_.size(); - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets(int index) { - return measurementProtocolSecrets_.get(index); - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretsOrBuilder( - int index) { - return measurementProtocolSecrets_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { - output.writeMessage(1, measurementProtocolSecrets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, measurementProtocolSecrets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListMeasurementProtocolSecretsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other = (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) obj; - - if (!getMeasurementProtocolSecretsList() - .equals(other.getMeasurementProtocolSecretsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getMeasurementProtocolSecretsCount() > 0) { - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecretsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (measurementProtocolSecretsBuilder_ == null) { - measurementProtocolSecrets_ = java.util.Collections.emptyList(); - } else { - measurementProtocolSecrets_ = null; - measurementProtocolSecretsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse build() { - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result) { - if (measurementProtocolSecretsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - measurementProtocolSecrets_ = java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.measurementProtocolSecrets_ = measurementProtocolSecrets_; - } else { - result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.getDefaultInstance()) return this; - if (measurementProtocolSecretsBuilder_ == null) { - if (!other.measurementProtocolSecrets_.isEmpty()) { - if (measurementProtocolSecrets_.isEmpty()) { - measurementProtocolSecrets_ = other.measurementProtocolSecrets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.addAll(other.measurementProtocolSecrets_); - } - onChanged(); - } - } else { - if (!other.measurementProtocolSecrets_.isEmpty()) { - if (measurementProtocolSecretsBuilder_.isEmpty()) { - measurementProtocolSecretsBuilder_.dispose(); - measurementProtocolSecretsBuilder_ = null; - measurementProtocolSecrets_ = other.measurementProtocolSecrets_; - bitField0_ = (bitField0_ & ~0x00000001); - measurementProtocolSecretsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMeasurementProtocolSecretsFieldBuilder() : null; - } else { - measurementProtocolSecretsBuilder_.addAllMessages(other.measurementProtocolSecrets_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret m = - input.readMessage( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), - extensionRegistry); - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(m); - } else { - measurementProtocolSecretsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List measurementProtocolSecrets_ = - java.util.Collections.emptyList(); - private void ensureMeasurementProtocolSecretsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - measurementProtocolSecrets_ = new java.util.ArrayList(measurementProtocolSecrets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretsBuilder_; - - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public java.util.List getMeasurementProtocolSecretsList() { - if (measurementProtocolSecretsBuilder_ == null) { - return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - } else { - return measurementProtocolSecretsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public int getMeasurementProtocolSecretsCount() { - if (measurementProtocolSecretsBuilder_ == null) { - return measurementProtocolSecrets_.size(); - } else { - return measurementProtocolSecretsBuilder_.getCount(); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets(int index) { - if (measurementProtocolSecretsBuilder_ == null) { - return measurementProtocolSecrets_.get(index); - } else { - return measurementProtocolSecretsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder setMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.set(index, value); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder setMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.set(index, builderForValue.build()); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(value); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(index, value); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(builderForValue.build()); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(index, builderForValue.build()); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addAllMeasurementProtocolSecrets( - java.lang.Iterable values) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, measurementProtocolSecrets_); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder clearMeasurementProtocolSecrets() { - if (measurementProtocolSecretsBuilder_ == null) { - measurementProtocolSecrets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder removeMeasurementProtocolSecrets(int index) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.remove(index); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretsBuilder( - int index) { - return getMeasurementProtocolSecretsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretsOrBuilder( - int index) { - if (measurementProtocolSecretsBuilder_ == null) { - return measurementProtocolSecrets_.get(index); } else { - return measurementProtocolSecretsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public java.util.List - getMeasurementProtocolSecretsOrBuilderList() { - if (measurementProtocolSecretsBuilder_ != null) { - return measurementProtocolSecretsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder addMeasurementProtocolSecretsBuilder() { - return getMeasurementProtocolSecretsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder addMeasurementProtocolSecretsBuilder( - int index) { - return getMeasurementProtocolSecretsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public java.util.List - getMeasurementProtocolSecretsBuilderList() { - return getMeasurementProtocolSecretsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretsFieldBuilder() { - if (measurementProtocolSecretsBuilder_ == null) { - measurementProtocolSecretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( - measurementProtocolSecrets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - measurementProtocolSecrets_ = null; - } - return measurementProtocolSecretsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) - private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMeasurementProtocolSecretsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java deleted file mode 100644 index 7a76e9447da9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListMeasurementProtocolSecretsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - java.util.List - getMeasurementProtocolSecretsList(); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets(int index); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - int getMeasurementProtocolSecretsCount(); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - java.util.List - getMeasurementProtocolSecretsOrBuilderList(); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java deleted file mode 100644 index 9221c6a2d213..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java +++ /dev/null @@ -1,1052 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListProperties RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesRequest} - */ -public final class ListPropertiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListPropertiesRequest) - ListPropertiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPropertiesRequest.newBuilder() to construct. - private ListPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPropertiesRequest() { - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPropertiesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListPropertiesRequest.class, com.google.analytics.admin.v1alpha.ListPropertiesRequest.Builder.class); - } - - public static final int FILTER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - 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(); - filter_ = s; - return s; - } - } - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHOW_DELETED_FIELD_NUMBER = 4; - private boolean showDeleted_ = false; - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Properties in the
-   * results. Properties can be inspected to determine whether they are deleted
-   * or not.
-   * 
- * - * bool show_deleted = 4; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - - 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(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (showDeleted_ != false) { - output.writeBool(4, showDeleted_); - } - 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(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); - } - 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.admin.v1alpha.ListPropertiesRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListPropertiesRequest other = (com.google.analytics.admin.v1alpha.ListPropertiesRequest) obj; - - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) 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) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListPropertiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListProperties RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListPropertiesRequest) - com.google.analytics.admin.v1alpha.ListPropertiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListPropertiesRequest.class, com.google.analytics.admin.v1alpha.ListPropertiesRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListPropertiesRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - showDeleted_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListPropertiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesRequest build() { - com.google.analytics.admin.v1alpha.ListPropertiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListPropertiesRequest result = new com.google.analytics.admin.v1alpha.ListPropertiesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListPropertiesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.showDeleted_ = showDeleted_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListPropertiesRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListPropertiesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListPropertiesRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListPropertiesRequest.getDefaultInstance()) return this; - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getShowDeleted() != false) { - setShowDeleted(other.getShowDeleted()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - showDeleted_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object filter_ = ""; - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - filter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - filter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private boolean showDeleted_ ; - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Properties in the
-     * results. Properties can be inspected to determine whether they are deleted
-     * or not.
-     * 
- * - * bool show_deleted = 4; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Properties in the
-     * results. Properties can be inspected to determine whether they are deleted
-     * or not.
-     * 
- * - * bool show_deleted = 4; - * @param value The showDeleted to set. - * @return This builder for chaining. - */ - public Builder setShowDeleted(boolean value) { - - showDeleted_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Properties in the
-     * results. Properties can be inspected to determine whether they are deleted
-     * or not.
-     * 
- * - * bool show_deleted = 4; - * @return This builder for chaining. - */ - public Builder clearShowDeleted() { - bitField0_ = (bitField0_ & ~0x00000008); - showDeleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListPropertiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListPropertiesRequest) - private static final com.google.analytics.admin.v1alpha.ListPropertiesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListPropertiesRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPropertiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java deleted file mode 100644 index 23a42623b82a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListPropertiesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListPropertiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filter. - */ - java.lang.String getFilter(); - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for filter. - */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Properties in the
-   * results. Properties can be inspected to determine whether they are deleted
-   * or not.
-   * 
- * - * bool show_deleted = 4; - * @return The showDeleted. - */ - boolean getShowDeleted(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java deleted file mode 100644 index b7f53444933c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListProperties RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesResponse} - */ -public final class ListPropertiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListPropertiesResponse) - ListPropertiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPropertiesResponse.newBuilder() to construct. - private ListPropertiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPropertiesResponse() { - properties_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPropertiesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListPropertiesResponse.class, com.google.analytics.admin.v1alpha.ListPropertiesResponse.Builder.class); - } - - public static final int PROPERTIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List properties_; - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - @java.lang.Override - public java.util.List getPropertiesList() { - return properties_; - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - @java.lang.Override - public java.util.List - getPropertiesOrBuilderList() { - return properties_; - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - @java.lang.Override - public int getPropertiesCount() { - return properties_.size(); - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getProperties(int index) { - return properties_.get(index); - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - return properties_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < properties_.size(); i++) { - output.writeMessage(1, properties_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListPropertiesResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListPropertiesResponse other = (com.google.analytics.admin.v1alpha.ListPropertiesResponse) obj; - - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getPropertiesCount() > 0) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getPropertiesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListPropertiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListProperties RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListPropertiesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListPropertiesResponse) - com.google.analytics.admin.v1alpha.ListPropertiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListPropertiesResponse.class, com.google.analytics.admin.v1alpha.ListPropertiesResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListPropertiesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - } else { - properties_ = null; - propertiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListPropertiesResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListPropertiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesResponse build() { - com.google.analytics.admin.v1alpha.ListPropertiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListPropertiesResponse result = new com.google.analytics.admin.v1alpha.ListPropertiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListPropertiesResponse result) { - if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.properties_ = properties_; - } else { - result.properties_ = propertiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListPropertiesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListPropertiesResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListPropertiesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListPropertiesResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListPropertiesResponse.getDefaultInstance()) return this; - if (propertiesBuilder_ == null) { - if (!other.properties_.isEmpty()) { - if (properties_.isEmpty()) { - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePropertiesIsMutable(); - properties_.addAll(other.properties_); - } - onChanged(); - } - } else { - if (!other.properties_.isEmpty()) { - if (propertiesBuilder_.isEmpty()) { - propertiesBuilder_.dispose(); - propertiesBuilder_ = null; - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000001); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; - } else { - propertiesBuilder_.addAllMessages(other.properties_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.Property m = - input.readMessage( - com.google.analytics.admin.v1alpha.Property.parser(), - extensionRegistry); - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(m); - } else { - propertiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List properties_ = - java.util.Collections.emptyList(); - private void ensurePropertiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - properties_ = new java.util.ArrayList(properties_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> propertiesBuilder_; - - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public java.util.List getPropertiesList() { - if (propertiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(properties_); - } else { - return propertiesBuilder_.getMessageList(); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public int getPropertiesCount() { - if (propertiesBuilder_ == null) { - return properties_.size(); - } else { - return propertiesBuilder_.getCount(); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public com.google.analytics.admin.v1alpha.Property getProperties(int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { - return propertiesBuilder_.getMessage(index); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder setProperties( - int index, com.google.analytics.admin.v1alpha.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.set(index, value); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder setProperties( - int index, com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.set(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder addProperties(com.google.analytics.admin.v1alpha.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(value); - onChanged(); - } else { - propertiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder addProperties( - int index, com.google.analytics.admin.v1alpha.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(index, value); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder addProperties( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder addProperties( - int index, com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder addAllProperties( - java.lang.Iterable values) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); - onChanged(); - } else { - propertiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder clearProperties() { - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - propertiesBuilder_.clear(); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public Builder removeProperties(int index) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.remove(index); - onChanged(); - } else { - propertiesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().getBuilder(index); - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); } else { - return propertiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public java.util.List - getPropertiesOrBuilderList() { - if (propertiesBuilder_ != null) { - return propertiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(properties_); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public com.google.analytics.admin.v1alpha.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.Property.getDefaultInstance()); - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public com.google.analytics.admin.v1alpha.Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.Property.getDefaultInstance()); - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - public java.util.List - getPropertiesBuilderList() { - return getPropertiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getPropertiesFieldBuilder() { - if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - properties_ = null; - } - return propertiesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListPropertiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListPropertiesResponse) - private static final com.google.analytics.admin.v1alpha.ListPropertiesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListPropertiesResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListPropertiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPropertiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListPropertiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java deleted file mode 100644 index 960eb17554dc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListPropertiesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListPropertiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - java.util.List - getPropertiesList(); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - com.google.analytics.admin.v1alpha.Property getProperties(int index); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - int getPropertiesCount(); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - java.util.List - getPropertiesOrBuilderList(); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.Property properties = 1; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertiesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java deleted file mode 100644 index d8b0874af893..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequest.java +++ /dev/null @@ -1,870 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListRollupPropertySourceLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest} - */ -public final class ListRollupPropertySourceLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) - ListRollupPropertySourceLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListRollupPropertySourceLinksRequest.newBuilder() to construct. - private ListRollupPropertySourceLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRollupPropertySourceLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListRollupPropertySourceLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The name of the roll-up property to list roll-up property source
-   * links under. Format: properties/{property_id} Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The name of the roll-up property to list roll-up property source
-   * links under. Format: properties/{property_id} Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * Optional. The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * Optional. A page token, received from a previous
-   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListRollupPropertySourceLinks` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Optional. A page token, received from a previous
-   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListRollupPropertySourceLinks` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListRollupPropertySourceLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest other = (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListRollupPropertySourceLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.class, com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest build() { - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result = new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The name of the roll-up property to list roll-up property source
-     * links under. Format: properties/{property_id} Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the roll-up property to list roll-up property source
-     * links under. Format: properties/{property_id} Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the roll-up property to list roll-up property source
-     * links under. Format: properties/{property_id} Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the roll-up property to list roll-up property source
-     * links under. Format: properties/{property_id} Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the roll-up property to list roll-up property source
-     * links under. Format: properties/{property_id} Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * Optional. The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * Optional. The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Optional. A page token, received from a previous
-     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListRollupPropertySourceLinks` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListRollupPropertySourceLinks` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListRollupPropertySourceLinks` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListRollupPropertySourceLinks` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListRollupPropertySourceLinks` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) - private static final com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRollupPropertySourceLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java deleted file mode 100644 index b79f547ad137..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListRollupPropertySourceLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the roll-up property to list roll-up property source
-   * links under. Format: properties/{property_id} Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The name of the roll-up property to list roll-up property source
-   * links under. Format: properties/{property_id} Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Optional. The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Optional. A page token, received from a previous
-   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListRollupPropertySourceLinks` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Optional. A page token, received from a previous
-   * `ListRollupPropertySourceLinks` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListRollupPropertySourceLinks` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java deleted file mode 100644 index 2b45c95e69bb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListRollupPropertySourceLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse} - */ -public final class ListRollupPropertySourceLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) - ListRollupPropertySourceLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListRollupPropertySourceLinksResponse.newBuilder() to construct. - private ListRollupPropertySourceLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRollupPropertySourceLinksResponse() { - rollupPropertySourceLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListRollupPropertySourceLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.Builder.class); - } - - public static final int ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List rollupPropertySourceLinks_; - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - @java.lang.Override - public java.util.List getRollupPropertySourceLinksList() { - return rollupPropertySourceLinks_; - } - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - @java.lang.Override - public java.util.List - getRollupPropertySourceLinksOrBuilderList() { - return rollupPropertySourceLinks_; - } - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - @java.lang.Override - public int getRollupPropertySourceLinksCount() { - return rollupPropertySourceLinks_.size(); - } - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks(int index) { - return rollupPropertySourceLinks_.get(index); - } - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinksOrBuilder( - int index) { - return rollupPropertySourceLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { - output.writeMessage(1, rollupPropertySourceLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < rollupPropertySourceLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, rollupPropertySourceLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListRollupPropertySourceLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse other = (com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) obj; - - if (!getRollupPropertySourceLinksList() - .equals(other.getRollupPropertySourceLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getRollupPropertySourceLinksCount() > 0) { - hash = (37 * hash) + ROLLUP_PROPERTY_SOURCE_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getRollupPropertySourceLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListRollupPropertySourceLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.class, com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (rollupPropertySourceLinksBuilder_ == null) { - rollupPropertySourceLinks_ = java.util.Collections.emptyList(); - } else { - rollupPropertySourceLinks_ = null; - rollupPropertySourceLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListRollupPropertySourceLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse build() { - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result = new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - rollupPropertySourceLinks_ = java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.rollupPropertySourceLinks_ = rollupPropertySourceLinks_; - } else { - result.rollupPropertySourceLinks_ = rollupPropertySourceLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse.getDefaultInstance()) return this; - if (rollupPropertySourceLinksBuilder_ == null) { - if (!other.rollupPropertySourceLinks_.isEmpty()) { - if (rollupPropertySourceLinks_.isEmpty()) { - rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.addAll(other.rollupPropertySourceLinks_); - } - onChanged(); - } - } else { - if (!other.rollupPropertySourceLinks_.isEmpty()) { - if (rollupPropertySourceLinksBuilder_.isEmpty()) { - rollupPropertySourceLinksBuilder_.dispose(); - rollupPropertySourceLinksBuilder_ = null; - rollupPropertySourceLinks_ = other.rollupPropertySourceLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - rollupPropertySourceLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRollupPropertySourceLinksFieldBuilder() : null; - } else { - rollupPropertySourceLinksBuilder_.addAllMessages(other.rollupPropertySourceLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.RollupPropertySourceLink m = - input.readMessage( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.parser(), - extensionRegistry); - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(m); - } else { - rollupPropertySourceLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List rollupPropertySourceLinks_ = - java.util.Collections.emptyList(); - private void ensureRollupPropertySourceLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - rollupPropertySourceLinks_ = new java.util.ArrayList(rollupPropertySourceLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> rollupPropertySourceLinksBuilder_; - - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public java.util.List getRollupPropertySourceLinksList() { - if (rollupPropertySourceLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); - } else { - return rollupPropertySourceLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public int getRollupPropertySourceLinksCount() { - if (rollupPropertySourceLinksBuilder_ == null) { - return rollupPropertySourceLinks_.size(); - } else { - return rollupPropertySourceLinksBuilder_.getCount(); - } - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks(int index) { - if (rollupPropertySourceLinksBuilder_ == null) { - return rollupPropertySourceLinks_.get(index); - } else { - return rollupPropertySourceLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder setRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.set(index, value); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder setRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder addRollupPropertySourceLinks(com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(value); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder addRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink value) { - if (rollupPropertySourceLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(index, value); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder addRollupPropertySourceLinks( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(builderForValue.build()); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder addRollupPropertySourceLinks( - int index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder builderForValue) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder addAllRollupPropertySourceLinks( - java.lang.Iterable values) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rollupPropertySourceLinks_); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder clearRollupPropertySourceLinks() { - if (rollupPropertySourceLinksBuilder_ == null) { - rollupPropertySourceLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public Builder removeRollupPropertySourceLinks(int index) { - if (rollupPropertySourceLinksBuilder_ == null) { - ensureRollupPropertySourceLinksIsMutable(); - rollupPropertySourceLinks_.remove(index); - onChanged(); - } else { - rollupPropertySourceLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder getRollupPropertySourceLinksBuilder( - int index) { - return getRollupPropertySourceLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinksOrBuilder( - int index) { - if (rollupPropertySourceLinksBuilder_ == null) { - return rollupPropertySourceLinks_.get(index); } else { - return rollupPropertySourceLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public java.util.List - getRollupPropertySourceLinksOrBuilderList() { - if (rollupPropertySourceLinksBuilder_ != null) { - return rollupPropertySourceLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rollupPropertySourceLinks_); - } - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder addRollupPropertySourceLinksBuilder() { - return getRollupPropertySourceLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder addRollupPropertySourceLinksBuilder( - int index) { - return getRollupPropertySourceLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()); - } - /** - *
-     * List of RollupPropertySourceLinks.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - public java.util.List - getRollupPropertySourceLinksBuilderList() { - return getRollupPropertySourceLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder> - getRollupPropertySourceLinksFieldBuilder() { - if (rollupPropertySourceLinksBuilder_ == null) { - rollupPropertySourceLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.RollupPropertySourceLink, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder, com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder>( - rollupPropertySourceLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - rollupPropertySourceLinks_ = null; - } - return rollupPropertySourceLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) - private static final com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRollupPropertySourceLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java deleted file mode 100644 index f37f1f09d33d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListRollupPropertySourceLinksResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListRollupPropertySourceLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListRollupPropertySourceLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - java.util.List - getRollupPropertySourceLinksList(); - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - com.google.analytics.admin.v1alpha.RollupPropertySourceLink getRollupPropertySourceLinks(int index); - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - int getRollupPropertySourceLinksCount(); - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - java.util.List - getRollupPropertySourceLinksOrBuilderList(); - /** - *
-   * List of RollupPropertySourceLinks.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.RollupPropertySourceLink rollup_property_source_links = 1; - */ - com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder getRollupPropertySourceLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java deleted file mode 100644 index eb14dcdeaaaf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java +++ /dev/null @@ -1,884 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListSKAdNetworkConversionValueSchemas RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest} - */ -public final class ListSKAdNetworkConversionValueSchemasRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) - ListSKAdNetworkConversionValueSchemasRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListSKAdNetworkConversionValueSchemasRequest.newBuilder() to construct. - private ListSKAdNetworkConversionValueSchemasRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListSKAdNetworkConversionValueSchemasRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListSKAdNetworkConversionValueSchemasRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.class, com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The DataStream resource to list schemas for.
-   * Format:
-   * properties/{property_id}/dataStreams/{dataStream}
-   * Example: properties/1234/dataStreams/5678
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The DataStream resource to list schemas for.
-   * Format:
-   * properties/{property_id}/dataStreams/{dataStream}
-   * Example: properties/1234/dataStreams/5678
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous
-   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-   * the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous
-   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-   * the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest other = (com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListSKAdNetworkConversionValueSchemas RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.class, com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest build() { - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest result = new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The DataStream resource to list schemas for.
-     * Format:
-     * properties/{property_id}/dataStreams/{dataStream}
-     * Example: properties/1234/dataStreams/5678
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The DataStream resource to list schemas for.
-     * Format:
-     * properties/{property_id}/dataStreams/{dataStream}
-     * Example: properties/1234/dataStreams/5678
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The DataStream resource to list schemas for.
-     * Format:
-     * properties/{property_id}/dataStreams/{dataStream}
-     * Example: properties/1234/dataStreams/5678
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream resource to list schemas for.
-     * Format:
-     * properties/{property_id}/dataStreams/{dataStream}
-     * Example: properties/1234/dataStreams/5678
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream resource to list schemas for.
-     * Format:
-     * properties/{property_id}/dataStreams/{dataStream}
-     * Example: properties/1234/dataStreams/5678
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous
-     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-     * the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous
-     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-     * the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous
-     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-     * the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous
-     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-     * the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous
-     * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-     * subsequent page. When paginating, all other parameters provided to
-     * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-     * the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) - private static final com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSKAdNetworkConversionValueSchemasRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java deleted file mode 100644 index cac67ae0e26d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The DataStream resource to list schemas for.
-   * Format:
-   * properties/{property_id}/dataStreams/{dataStream}
-   * Example: properties/1234/dataStreams/5678
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The DataStream resource to list schemas for.
-   * Format:
-   * properties/{property_id}/dataStreams/{dataStream}
-   * Example: properties/1234/dataStreams/5678
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous
-   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-   * the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous
-   * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
-   * subsequent page. When paginating, all other parameters provided to
-   * `ListSKAdNetworkConversionValueSchema` must match the call that provided
-   * the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponse.java deleted file mode 100644 index 0299a95132fb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponse.java +++ /dev/null @@ -1,1074 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListSKAdNetworkConversionValueSchemas RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse} - */ -public final class ListSKAdNetworkConversionValueSchemasResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) - ListSKAdNetworkConversionValueSchemasResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListSKAdNetworkConversionValueSchemasResponse.newBuilder() to construct. - private ListSKAdNetworkConversionValueSchemasResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListSKAdNetworkConversionValueSchemasResponse() { - skadnetworkConversionValueSchemas_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListSKAdNetworkConversionValueSchemasResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.class, com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.Builder.class); - } - - public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMAS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List skadnetworkConversionValueSchemas_; - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - @java.lang.Override - public java.util.List getSkadnetworkConversionValueSchemasList() { - return skadnetworkConversionValueSchemas_; - } - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - @java.lang.Override - public java.util.List - getSkadnetworkConversionValueSchemasOrBuilderList() { - return skadnetworkConversionValueSchemas_; - } - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - @java.lang.Override - public int getSkadnetworkConversionValueSchemasCount() { - return skadnetworkConversionValueSchemas_.size(); - } - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchemas(int index) { - return skadnetworkConversionValueSchemas_.get(index); - } - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemasOrBuilder( - int index) { - return skadnetworkConversionValueSchemas_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one
-   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-   * populated.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one
-   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-   * populated.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < skadnetworkConversionValueSchemas_.size(); i++) { - output.writeMessage(1, skadnetworkConversionValueSchemas_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < skadnetworkConversionValueSchemas_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, skadnetworkConversionValueSchemas_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse other = (com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) obj; - - if (!getSkadnetworkConversionValueSchemasList() - .equals(other.getSkadnetworkConversionValueSchemasList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getSkadnetworkConversionValueSchemasCount() > 0) { - hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMAS_FIELD_NUMBER; - hash = (53 * hash) + getSkadnetworkConversionValueSchemasList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListSKAdNetworkConversionValueSchemas RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.class, com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (skadnetworkConversionValueSchemasBuilder_ == null) { - skadnetworkConversionValueSchemas_ = java.util.Collections.emptyList(); - } else { - skadnetworkConversionValueSchemas_ = null; - skadnetworkConversionValueSchemasBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSKAdNetworkConversionValueSchemasResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse build() { - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result = new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - skadnetworkConversionValueSchemas_ = java.util.Collections.unmodifiableList(skadnetworkConversionValueSchemas_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.skadnetworkConversionValueSchemas_ = skadnetworkConversionValueSchemas_; - } else { - result.skadnetworkConversionValueSchemas_ = skadnetworkConversionValueSchemasBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse.getDefaultInstance()) return this; - if (skadnetworkConversionValueSchemasBuilder_ == null) { - if (!other.skadnetworkConversionValueSchemas_.isEmpty()) { - if (skadnetworkConversionValueSchemas_.isEmpty()) { - skadnetworkConversionValueSchemas_ = other.skadnetworkConversionValueSchemas_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.addAll(other.skadnetworkConversionValueSchemas_); - } - onChanged(); - } - } else { - if (!other.skadnetworkConversionValueSchemas_.isEmpty()) { - if (skadnetworkConversionValueSchemasBuilder_.isEmpty()) { - skadnetworkConversionValueSchemasBuilder_.dispose(); - skadnetworkConversionValueSchemasBuilder_ = null; - skadnetworkConversionValueSchemas_ = other.skadnetworkConversionValueSchemas_; - bitField0_ = (bitField0_ & ~0x00000001); - skadnetworkConversionValueSchemasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSkadnetworkConversionValueSchemasFieldBuilder() : null; - } else { - skadnetworkConversionValueSchemasBuilder_.addAllMessages(other.skadnetworkConversionValueSchemas_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema m = - input.readMessage( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.parser(), - extensionRegistry); - if (skadnetworkConversionValueSchemasBuilder_ == null) { - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.add(m); - } else { - skadnetworkConversionValueSchemasBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List skadnetworkConversionValueSchemas_ = - java.util.Collections.emptyList(); - private void ensureSkadnetworkConversionValueSchemasIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - skadnetworkConversionValueSchemas_ = new java.util.ArrayList(skadnetworkConversionValueSchemas_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> skadnetworkConversionValueSchemasBuilder_; - - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public java.util.List getSkadnetworkConversionValueSchemasList() { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - return java.util.Collections.unmodifiableList(skadnetworkConversionValueSchemas_); - } else { - return skadnetworkConversionValueSchemasBuilder_.getMessageList(); - } - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public int getSkadnetworkConversionValueSchemasCount() { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - return skadnetworkConversionValueSchemas_.size(); - } else { - return skadnetworkConversionValueSchemasBuilder_.getCount(); - } - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchemas(int index) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - return skadnetworkConversionValueSchemas_.get(index); - } else { - return skadnetworkConversionValueSchemasBuilder_.getMessage(index); - } - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder setSkadnetworkConversionValueSchemas( - int index, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.set(index, value); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder setSkadnetworkConversionValueSchemas( - int index, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder builderForValue) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.set(index, builderForValue.build()); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder addSkadnetworkConversionValueSchemas(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.add(value); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder addSkadnetworkConversionValueSchemas( - int index, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.add(index, value); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder addSkadnetworkConversionValueSchemas( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder builderForValue) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.add(builderForValue.build()); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder addSkadnetworkConversionValueSchemas( - int index, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder builderForValue) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.add(index, builderForValue.build()); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder addAllSkadnetworkConversionValueSchemas( - java.lang.Iterable values) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - ensureSkadnetworkConversionValueSchemasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, skadnetworkConversionValueSchemas_); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder clearSkadnetworkConversionValueSchemas() { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - skadnetworkConversionValueSchemas_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.clear(); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public Builder removeSkadnetworkConversionValueSchemas(int index) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - ensureSkadnetworkConversionValueSchemasIsMutable(); - skadnetworkConversionValueSchemas_.remove(index); - onChanged(); - } else { - skadnetworkConversionValueSchemasBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder getSkadnetworkConversionValueSchemasBuilder( - int index) { - return getSkadnetworkConversionValueSchemasFieldBuilder().getBuilder(index); - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemasOrBuilder( - int index) { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - return skadnetworkConversionValueSchemas_.get(index); } else { - return skadnetworkConversionValueSchemasBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public java.util.List - getSkadnetworkConversionValueSchemasOrBuilderList() { - if (skadnetworkConversionValueSchemasBuilder_ != null) { - return skadnetworkConversionValueSchemasBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(skadnetworkConversionValueSchemas_); - } - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder addSkadnetworkConversionValueSchemasBuilder() { - return getSkadnetworkConversionValueSchemasFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance()); - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder addSkadnetworkConversionValueSchemasBuilder( - int index) { - return getSkadnetworkConversionValueSchemasFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance()); - } - /** - *
-     * List of SKAdNetworkConversionValueSchemas. This will have at most one
-     * value.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - public java.util.List - getSkadnetworkConversionValueSchemasBuilderList() { - return getSkadnetworkConversionValueSchemasFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> - getSkadnetworkConversionValueSchemasFieldBuilder() { - if (skadnetworkConversionValueSchemasBuilder_ == null) { - skadnetworkConversionValueSchemasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( - skadnetworkConversionValueSchemas_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - skadnetworkConversionValueSchemas_ = null; - } - return skadnetworkConversionValueSchemasBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one
-     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-     * populated.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one
-     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-     * populated.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one
-     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-     * populated.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one
-     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-     * populated.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one
-     * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-     * populated.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) - private static final com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSKAdNetworkConversionValueSchemasResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponseOrBuilder.java deleted file mode 100644 index a3395c4d4d22..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasResponseOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListSKAdNetworkConversionValueSchemasResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSKAdNetworkConversionValueSchemasResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - java.util.List - getSkadnetworkConversionValueSchemasList(); - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchemas(int index); - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - int getSkadnetworkConversionValueSchemasCount(); - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - java.util.List - getSkadnetworkConversionValueSchemasOrBuilderList(); - /** - *
-   * List of SKAdNetworkConversionValueSchemas. This will have at most one
-   * value.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schemas = 1; - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemasOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one
-   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-   * populated.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one
-   * SKAdNetworkConversionValueSchema per dataStream, so this will never be
-   * populated.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequest.java deleted file mode 100644 index 0ae9dc6da831..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequest.java +++ /dev/null @@ -1,866 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListSearchAds360Links RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} - */ -public final class ListSearchAds360LinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) - ListSearchAds360LinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListSearchAds360LinksRequest.newBuilder() to construct. - private ListSearchAds360LinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListSearchAds360LinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListSearchAds360LinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.class, com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListSearchAds360Links`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListSearchAds360Links` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListSearchAds360Links`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListSearchAds360Links` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListSearchAds360LinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest other = (com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListSearchAds360Links RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.class, com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest build() { - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest result = new com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListSearchAds360Links`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListSearchAds360Links` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListSearchAds360Links`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListSearchAds360Links` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListSearchAds360Links`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListSearchAds360Links` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListSearchAds360Links`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListSearchAds360Links` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListSearchAds360Links`
-     * call. Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to
-     * `ListSearchAds360Links` must match the call that provided the
-     * page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) - private static final com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSearchAds360LinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequestOrBuilder.java deleted file mode 100644 index 60e632c759f3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksRequestOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListSearchAds360LinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSearchAds360LinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListSearchAds360Links`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListSearchAds360Links` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListSearchAds360Links`
-   * call. Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to
-   * `ListSearchAds360Links` must match the call that provided the
-   * page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponse.java deleted file mode 100644 index 231490cfcec4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListSearchAds360Links RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} - */ -public final class ListSearchAds360LinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) - ListSearchAds360LinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListSearchAds360LinksResponse.newBuilder() to construct. - private ListSearchAds360LinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListSearchAds360LinksResponse() { - searchAds360Links_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListSearchAds360LinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.class, com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.Builder.class); - } - - public static final int SEARCH_ADS_360_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List searchAds360Links_; - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - @java.lang.Override - public java.util.List getSearchAds360LinksList() { - return searchAds360Links_; - } - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - @java.lang.Override - public java.util.List - getSearchAds360LinksOrBuilderList() { - return searchAds360Links_; - } - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - @java.lang.Override - public int getSearchAds360LinksCount() { - return searchAds360Links_.size(); - } - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Links(int index) { - return searchAds360Links_.get(index); - } - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinksOrBuilder( - int index) { - return searchAds360Links_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < searchAds360Links_.size(); i++) { - output.writeMessage(1, searchAds360Links_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < searchAds360Links_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, searchAds360Links_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListSearchAds360LinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse other = (com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) obj; - - if (!getSearchAds360LinksList() - .equals(other.getSearchAds360LinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getSearchAds360LinksCount() > 0) { - hash = (37 * hash) + SEARCH_ADS_360_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getSearchAds360LinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListSearchAds360Links RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSearchAds360LinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.class, com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (searchAds360LinksBuilder_ == null) { - searchAds360Links_ = java.util.Collections.emptyList(); - } else { - searchAds360Links_ = null; - searchAds360LinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSearchAds360LinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse build() { - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result = new com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result) { - if (searchAds360LinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - searchAds360Links_ = java.util.Collections.unmodifiableList(searchAds360Links_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.searchAds360Links_ = searchAds360Links_; - } else { - result.searchAds360Links_ = searchAds360LinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse.getDefaultInstance()) return this; - if (searchAds360LinksBuilder_ == null) { - if (!other.searchAds360Links_.isEmpty()) { - if (searchAds360Links_.isEmpty()) { - searchAds360Links_ = other.searchAds360Links_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.addAll(other.searchAds360Links_); - } - onChanged(); - } - } else { - if (!other.searchAds360Links_.isEmpty()) { - if (searchAds360LinksBuilder_.isEmpty()) { - searchAds360LinksBuilder_.dispose(); - searchAds360LinksBuilder_ = null; - searchAds360Links_ = other.searchAds360Links_; - bitField0_ = (bitField0_ & ~0x00000001); - searchAds360LinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSearchAds360LinksFieldBuilder() : null; - } else { - searchAds360LinksBuilder_.addAllMessages(other.searchAds360Links_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.SearchAds360Link m = - input.readMessage( - com.google.analytics.admin.v1alpha.SearchAds360Link.parser(), - extensionRegistry); - if (searchAds360LinksBuilder_ == null) { - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.add(m); - } else { - searchAds360LinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List searchAds360Links_ = - java.util.Collections.emptyList(); - private void ensureSearchAds360LinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - searchAds360Links_ = new java.util.ArrayList(searchAds360Links_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> searchAds360LinksBuilder_; - - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public java.util.List getSearchAds360LinksList() { - if (searchAds360LinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(searchAds360Links_); - } else { - return searchAds360LinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public int getSearchAds360LinksCount() { - if (searchAds360LinksBuilder_ == null) { - return searchAds360Links_.size(); - } else { - return searchAds360LinksBuilder_.getCount(); - } - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Links(int index) { - if (searchAds360LinksBuilder_ == null) { - return searchAds360Links_.get(index); - } else { - return searchAds360LinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder setSearchAds360Links( - int index, com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.set(index, value); - onChanged(); - } else { - searchAds360LinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder setSearchAds360Links( - int index, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { - if (searchAds360LinksBuilder_ == null) { - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.set(index, builderForValue.build()); - onChanged(); - } else { - searchAds360LinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder addSearchAds360Links(com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.add(value); - onChanged(); - } else { - searchAds360LinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder addSearchAds360Links( - int index, com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.add(index, value); - onChanged(); - } else { - searchAds360LinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder addSearchAds360Links( - com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { - if (searchAds360LinksBuilder_ == null) { - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.add(builderForValue.build()); - onChanged(); - } else { - searchAds360LinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder addSearchAds360Links( - int index, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { - if (searchAds360LinksBuilder_ == null) { - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.add(index, builderForValue.build()); - onChanged(); - } else { - searchAds360LinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder addAllSearchAds360Links( - java.lang.Iterable values) { - if (searchAds360LinksBuilder_ == null) { - ensureSearchAds360LinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, searchAds360Links_); - onChanged(); - } else { - searchAds360LinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder clearSearchAds360Links() { - if (searchAds360LinksBuilder_ == null) { - searchAds360Links_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - searchAds360LinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public Builder removeSearchAds360Links(int index) { - if (searchAds360LinksBuilder_ == null) { - ensureSearchAds360LinksIsMutable(); - searchAds360Links_.remove(index); - onChanged(); - } else { - searchAds360LinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder getSearchAds360LinksBuilder( - int index) { - return getSearchAds360LinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinksOrBuilder( - int index) { - if (searchAds360LinksBuilder_ == null) { - return searchAds360Links_.get(index); } else { - return searchAds360LinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public java.util.List - getSearchAds360LinksOrBuilderList() { - if (searchAds360LinksBuilder_ != null) { - return searchAds360LinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(searchAds360Links_); - } - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder addSearchAds360LinksBuilder() { - return getSearchAds360LinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()); - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder addSearchAds360LinksBuilder( - int index) { - return getSearchAds360LinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()); - } - /** - *
-     * List of SearchAds360Links.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - public java.util.List - getSearchAds360LinksBuilderList() { - return getSearchAds360LinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> - getSearchAds360LinksFieldBuilder() { - if (searchAds360LinksBuilder_ == null) { - searchAds360LinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( - searchAds360Links_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - searchAds360Links_ = null; - } - return searchAds360LinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) - private static final com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSearchAds360LinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSearchAds360LinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponseOrBuilder.java deleted file mode 100644 index 1fde477d309d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSearchAds360LinksResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListSearchAds360LinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSearchAds360LinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - java.util.List - getSearchAds360LinksList(); - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Links(int index); - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - int getSearchAds360LinksCount(); - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - java.util.List - getSearchAds360LinksOrBuilderList(); - /** - *
-   * List of SearchAds360Links.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_links = 1; - */ - com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java deleted file mode 100644 index 52447eab1015..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequest.java +++ /dev/null @@ -1,877 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ListSubpropertyEventFilters RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest} - */ -public final class ListSubpropertyEventFiltersRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) - ListSubpropertyEventFiltersRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListSubpropertyEventFiltersRequest.newBuilder() to construct. - private ListSubpropertyEventFiltersRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListSubpropertyEventFiltersRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListSubpropertyEventFiltersRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.class, com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Resource name of the ordinary property.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Resource name of the ordinary property.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * Optional. The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages. If unspecified,
-   * at most 50 resources will be returned. The maximum value is 200; (higher
-   * values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * Optional. A page token, received from a previous
-   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `ListSubpropertyEventFilters` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Optional. A page token, received from a previous
-   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `ListSubpropertyEventFilters` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1alpha.ListSubpropertyEventFiltersRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest other = (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListSubpropertyEventFilters RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.class, com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest build() { - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest buildPartial() { - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest other) { - if (other == com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Resource name of the ordinary property.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Resource name of the ordinary property.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Resource name of the ordinary property.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the ordinary property.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Resource name of the ordinary property.
-     * Format: properties/property_id
-     * Example: properties/123
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * Optional. The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages. If unspecified,
-     * at most 50 resources will be returned. The maximum value is 200; (higher
-     * values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * Optional. The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages. If unspecified,
-     * at most 50 resources will be returned. The maximum value is 200; (higher
-     * values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages. If unspecified,
-     * at most 50 resources will be returned. The maximum value is 200; (higher
-     * values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Optional. A page token, received from a previous
-     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `ListSubpropertyEventFilters` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `ListSubpropertyEventFilters` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `ListSubpropertyEventFilters` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `ListSubpropertyEventFilters` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `ListSubpropertyEventFilters` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) - private static final com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest(); - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubpropertyEventFiltersRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java deleted file mode 100644 index 5eb5fd8abb6e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersRequestOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListSubpropertyEventFiltersRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Resource name of the ordinary property.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Resource name of the ordinary property.
-   * Format: properties/property_id
-   * Example: properties/123
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Optional. The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages. If unspecified,
-   * at most 50 resources will be returned. The maximum value is 200; (higher
-   * values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Optional. A page token, received from a previous
-   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `ListSubpropertyEventFilters` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Optional. A page token, received from a previous
-   * `ListSubpropertyEventFilters` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `ListSubpropertyEventFilters` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java deleted file mode 100644 index 88dbec530388..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ListSubpropertyEventFilter RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse} - */ -public final class ListSubpropertyEventFiltersResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) - ListSubpropertyEventFiltersResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListSubpropertyEventFiltersResponse.newBuilder() to construct. - private ListSubpropertyEventFiltersResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListSubpropertyEventFiltersResponse() { - subpropertyEventFilters_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListSubpropertyEventFiltersResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.class, com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.Builder.class); - } - - public static final int SUBPROPERTY_EVENT_FILTERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List subpropertyEventFilters_; - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - @java.lang.Override - public java.util.List getSubpropertyEventFiltersList() { - return subpropertyEventFilters_; - } - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - @java.lang.Override - public java.util.List - getSubpropertyEventFiltersOrBuilderList() { - return subpropertyEventFilters_; - } - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - @java.lang.Override - public int getSubpropertyEventFiltersCount() { - return subpropertyEventFilters_.size(); - } - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters(int index) { - return subpropertyEventFilters_.get(index); - } - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFiltersOrBuilder( - int index) { - return subpropertyEventFilters_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page. If
-   * this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page. If
-   * this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < subpropertyEventFilters_.size(); i++) { - output.writeMessage(1, subpropertyEventFilters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < subpropertyEventFilters_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, subpropertyEventFilters_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.ListSubpropertyEventFiltersResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse other = (com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) obj; - - if (!getSubpropertyEventFiltersList() - .equals(other.getSubpropertyEventFiltersList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getSubpropertyEventFiltersCount() > 0) { - hash = (37 * hash) + SUBPROPERTY_EVENT_FILTERS_FIELD_NUMBER; - hash = (53 * hash) + getSubpropertyEventFiltersList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListSubpropertyEventFilter RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.class, com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (subpropertyEventFiltersBuilder_ == null) { - subpropertyEventFilters_ = java.util.Collections.emptyList(); - } else { - subpropertyEventFilters_ = null; - subpropertyEventFiltersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ListSubpropertyEventFiltersResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse build() { - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse buildPartial() { - com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result) { - if (subpropertyEventFiltersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - subpropertyEventFilters_ = java.util.Collections.unmodifiableList(subpropertyEventFilters_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.subpropertyEventFilters_ = subpropertyEventFilters_; - } else { - result.subpropertyEventFilters_ = subpropertyEventFiltersBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse other) { - if (other == com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse.getDefaultInstance()) return this; - if (subpropertyEventFiltersBuilder_ == null) { - if (!other.subpropertyEventFilters_.isEmpty()) { - if (subpropertyEventFilters_.isEmpty()) { - subpropertyEventFilters_ = other.subpropertyEventFilters_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.addAll(other.subpropertyEventFilters_); - } - onChanged(); - } - } else { - if (!other.subpropertyEventFilters_.isEmpty()) { - if (subpropertyEventFiltersBuilder_.isEmpty()) { - subpropertyEventFiltersBuilder_.dispose(); - subpropertyEventFiltersBuilder_ = null; - subpropertyEventFilters_ = other.subpropertyEventFilters_; - bitField0_ = (bitField0_ & ~0x00000001); - subpropertyEventFiltersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getSubpropertyEventFiltersFieldBuilder() : null; - } else { - subpropertyEventFiltersBuilder_.addAllMessages(other.subpropertyEventFilters_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.SubpropertyEventFilter m = - input.readMessage( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.parser(), - extensionRegistry); - if (subpropertyEventFiltersBuilder_ == null) { - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.add(m); - } else { - subpropertyEventFiltersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List subpropertyEventFilters_ = - java.util.Collections.emptyList(); - private void ensureSubpropertyEventFiltersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - subpropertyEventFilters_ = new java.util.ArrayList(subpropertyEventFilters_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> subpropertyEventFiltersBuilder_; - - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public java.util.List getSubpropertyEventFiltersList() { - if (subpropertyEventFiltersBuilder_ == null) { - return java.util.Collections.unmodifiableList(subpropertyEventFilters_); - } else { - return subpropertyEventFiltersBuilder_.getMessageList(); - } - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public int getSubpropertyEventFiltersCount() { - if (subpropertyEventFiltersBuilder_ == null) { - return subpropertyEventFilters_.size(); - } else { - return subpropertyEventFiltersBuilder_.getCount(); - } - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters(int index) { - if (subpropertyEventFiltersBuilder_ == null) { - return subpropertyEventFilters_.get(index); - } else { - return subpropertyEventFiltersBuilder_.getMessage(index); - } - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder setSubpropertyEventFilters( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.set(index, value); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder setSubpropertyEventFilters( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { - if (subpropertyEventFiltersBuilder_ == null) { - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.set(index, builderForValue.build()); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder addSubpropertyEventFilters(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.add(value); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder addSubpropertyEventFilters( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFiltersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.add(index, value); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder addSubpropertyEventFilters( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { - if (subpropertyEventFiltersBuilder_ == null) { - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.add(builderForValue.build()); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder addSubpropertyEventFilters( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { - if (subpropertyEventFiltersBuilder_ == null) { - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.add(index, builderForValue.build()); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder addAllSubpropertyEventFilters( - java.lang.Iterable values) { - if (subpropertyEventFiltersBuilder_ == null) { - ensureSubpropertyEventFiltersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, subpropertyEventFilters_); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder clearSubpropertyEventFilters() { - if (subpropertyEventFiltersBuilder_ == null) { - subpropertyEventFilters_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.clear(); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public Builder removeSubpropertyEventFilters(int index) { - if (subpropertyEventFiltersBuilder_ == null) { - ensureSubpropertyEventFiltersIsMutable(); - subpropertyEventFilters_.remove(index); - onChanged(); - } else { - subpropertyEventFiltersBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder getSubpropertyEventFiltersBuilder( - int index) { - return getSubpropertyEventFiltersFieldBuilder().getBuilder(index); - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFiltersOrBuilder( - int index) { - if (subpropertyEventFiltersBuilder_ == null) { - return subpropertyEventFilters_.get(index); } else { - return subpropertyEventFiltersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public java.util.List - getSubpropertyEventFiltersOrBuilderList() { - if (subpropertyEventFiltersBuilder_ != null) { - return subpropertyEventFiltersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subpropertyEventFilters_); - } - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder addSubpropertyEventFiltersBuilder() { - return getSubpropertyEventFiltersFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()); - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder addSubpropertyEventFiltersBuilder( - int index) { - return getSubpropertyEventFiltersFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()); - } - /** - *
-     * List of subproperty event filters.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - public java.util.List - getSubpropertyEventFiltersBuilderList() { - return getSubpropertyEventFiltersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> - getSubpropertyEventFiltersFieldBuilder() { - if (subpropertyEventFiltersBuilder_ == null) { - subpropertyEventFiltersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( - subpropertyEventFilters_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - subpropertyEventFilters_ = null; - } - return subpropertyEventFiltersBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page. If
-     * this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page. If
-     * this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page. If
-     * this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page. If
-     * this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page. If
-     * this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) - private static final com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse(); - } - - public static com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListSubpropertyEventFiltersResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java deleted file mode 100644 index 5ac3f35b1d08..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSubpropertyEventFiltersResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ListSubpropertyEventFiltersResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListSubpropertyEventFiltersResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - java.util.List - getSubpropertyEventFiltersList(); - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilters(int index); - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - int getSubpropertyEventFiltersCount(); - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - java.util.List - getSubpropertyEventFiltersOrBuilderList(); - /** - *
-   * List of subproperty event filters.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filters = 1; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFiltersOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page. If
-   * this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page. If
-   * this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingCondition.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingCondition.java deleted file mode 100644 index e7811bd9883a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingCondition.java +++ /dev/null @@ -1,1354 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/event_create_and_edit.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Defines a condition for when an Event Edit or Event Creation rule applies to
- * an event.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.MatchingCondition} - */ -public final class MatchingCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.MatchingCondition) - MatchingConditionOrBuilder { -private static final long serialVersionUID = 0L; - // Use MatchingCondition.newBuilder() to construct. - private MatchingCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MatchingCondition() { - field_ = ""; - comparisonType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MatchingCondition(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.MatchingCondition.class, com.google.analytics.admin.v1alpha.MatchingCondition.Builder.class); - } - - /** - *
-   * Comparison type for matching condition
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.MatchingCondition.ComparisonType} - */ - public enum ComparisonType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unknown
-     * 
- * - * COMPARISON_TYPE_UNSPECIFIED = 0; - */ - COMPARISON_TYPE_UNSPECIFIED(0), - /** - *
-     * Equals, case sensitive
-     * 
- * - * EQUALS = 1; - */ - EQUALS(1), - /** - *
-     * Equals, case insensitive
-     * 
- * - * EQUALS_CASE_INSENSITIVE = 2; - */ - EQUALS_CASE_INSENSITIVE(2), - /** - *
-     * Contains, case sensitive
-     * 
- * - * CONTAINS = 3; - */ - CONTAINS(3), - /** - *
-     * Contains, case insensitive
-     * 
- * - * CONTAINS_CASE_INSENSITIVE = 4; - */ - CONTAINS_CASE_INSENSITIVE(4), - /** - *
-     * Starts with, case sensitive
-     * 
- * - * STARTS_WITH = 5; - */ - STARTS_WITH(5), - /** - *
-     * Starts with, case insensitive
-     * 
- * - * STARTS_WITH_CASE_INSENSITIVE = 6; - */ - STARTS_WITH_CASE_INSENSITIVE(6), - /** - *
-     * Ends with, case sensitive
-     * 
- * - * ENDS_WITH = 7; - */ - ENDS_WITH(7), - /** - *
-     * Ends with, case insensitive
-     * 
- * - * ENDS_WITH_CASE_INSENSITIVE = 8; - */ - ENDS_WITH_CASE_INSENSITIVE(8), - /** - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 9; - */ - GREATER_THAN(9), - /** - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 10; - */ - GREATER_THAN_OR_EQUAL(10), - /** - *
-     * Less than
-     * 
- * - * LESS_THAN = 11; - */ - LESS_THAN(11), - /** - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 12; - */ - LESS_THAN_OR_EQUAL(12), - /** - *
-     * regular expression. Only supported for web streams.
-     * 
- * - * REGULAR_EXPRESSION = 13; - */ - REGULAR_EXPRESSION(13), - /** - *
-     * regular expression, case insensitive. Only supported for web streams.
-     * 
- * - * REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; - */ - REGULAR_EXPRESSION_CASE_INSENSITIVE(14), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unknown
-     * 
- * - * COMPARISON_TYPE_UNSPECIFIED = 0; - */ - public static final int COMPARISON_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Equals, case sensitive
-     * 
- * - * EQUALS = 1; - */ - public static final int EQUALS_VALUE = 1; - /** - *
-     * Equals, case insensitive
-     * 
- * - * EQUALS_CASE_INSENSITIVE = 2; - */ - public static final int EQUALS_CASE_INSENSITIVE_VALUE = 2; - /** - *
-     * Contains, case sensitive
-     * 
- * - * CONTAINS = 3; - */ - public static final int CONTAINS_VALUE = 3; - /** - *
-     * Contains, case insensitive
-     * 
- * - * CONTAINS_CASE_INSENSITIVE = 4; - */ - public static final int CONTAINS_CASE_INSENSITIVE_VALUE = 4; - /** - *
-     * Starts with, case sensitive
-     * 
- * - * STARTS_WITH = 5; - */ - public static final int STARTS_WITH_VALUE = 5; - /** - *
-     * Starts with, case insensitive
-     * 
- * - * STARTS_WITH_CASE_INSENSITIVE = 6; - */ - public static final int STARTS_WITH_CASE_INSENSITIVE_VALUE = 6; - /** - *
-     * Ends with, case sensitive
-     * 
- * - * ENDS_WITH = 7; - */ - public static final int ENDS_WITH_VALUE = 7; - /** - *
-     * Ends with, case insensitive
-     * 
- * - * ENDS_WITH_CASE_INSENSITIVE = 8; - */ - public static final int ENDS_WITH_CASE_INSENSITIVE_VALUE = 8; - /** - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 9; - */ - public static final int GREATER_THAN_VALUE = 9; - /** - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 10; - */ - public static final int GREATER_THAN_OR_EQUAL_VALUE = 10; - /** - *
-     * Less than
-     * 
- * - * LESS_THAN = 11; - */ - public static final int LESS_THAN_VALUE = 11; - /** - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 12; - */ - public static final int LESS_THAN_OR_EQUAL_VALUE = 12; - /** - *
-     * regular expression. Only supported for web streams.
-     * 
- * - * REGULAR_EXPRESSION = 13; - */ - public static final int REGULAR_EXPRESSION_VALUE = 13; - /** - *
-     * regular expression, case insensitive. Only supported for web streams.
-     * 
- * - * REGULAR_EXPRESSION_CASE_INSENSITIVE = 14; - */ - public static final int REGULAR_EXPRESSION_CASE_INSENSITIVE_VALUE = 14; - - - 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 ComparisonType 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 ComparisonType forNumber(int value) { - switch (value) { - case 0: return COMPARISON_TYPE_UNSPECIFIED; - case 1: return EQUALS; - case 2: return EQUALS_CASE_INSENSITIVE; - case 3: return CONTAINS; - case 4: return CONTAINS_CASE_INSENSITIVE; - case 5: return STARTS_WITH; - case 6: return STARTS_WITH_CASE_INSENSITIVE; - case 7: return ENDS_WITH; - case 8: return ENDS_WITH_CASE_INSENSITIVE; - case 9: return GREATER_THAN; - case 10: return GREATER_THAN_OR_EQUAL; - case 11: return LESS_THAN; - case 12: return LESS_THAN_OR_EQUAL; - case 13: return REGULAR_EXPRESSION; - case 14: return REGULAR_EXPRESSION_CASE_INSENSITIVE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ComparisonType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ComparisonType findValueByNumber(int number) { - return ComparisonType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.MatchingCondition.getDescriptor().getEnumTypes().get(0); - } - - private static final ComparisonType[] VALUES = values(); - - public static ComparisonType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ComparisonType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.MatchingCondition.ComparisonType) - } - - public static final int FIELD_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object field_ = ""; - /** - *
-   * Required. The name of the field that is compared against for the condition.
-   * If 'event_name' is specified this condition will apply to the name of the
-   * event.  Otherwise the condition will apply to a parameter with the
-   * specified name.
-   *
-   * This value cannot contain spaces.
-   * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The field. - */ - @java.lang.Override - public java.lang.String getField() { - java.lang.Object ref = field_; - 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(); - field_ = s; - return s; - } - } - /** - *
-   * Required. The name of the field that is compared against for the condition.
-   * If 'event_name' is specified this condition will apply to the name of the
-   * event.  Otherwise the condition will apply to a parameter with the
-   * specified name.
-   *
-   * This value cannot contain spaces.
-   * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for field. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int COMPARISON_TYPE_FIELD_NUMBER = 2; - private int comparisonType_ = 0; - /** - *
-   * Required. The type of comparison to be applied to the value.
-   * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for comparisonType. - */ - @java.lang.Override public int getComparisonTypeValue() { - return comparisonType_; - } - /** - *
-   * Required. The type of comparison to be applied to the value.
-   * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The comparisonType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType getComparisonType() { - com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType result = com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.forNumber(comparisonType_); - return result == null ? com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-   * Required. The value being compared against for this condition.  The runtime
-   * implementation may perform type coercion of this value to evaluate this
-   * condition based on the type of the parameter value.
-   * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * Required. The value being compared against for this condition.  The runtime
-   * implementation may perform type coercion of this value to evaluate this
-   * condition based on the type of the parameter value.
-   * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEGATED_FIELD_NUMBER = 4; - private boolean negated_ = false; - /** - *
-   * Whether or not the result of the comparison should be negated. For example,
-   * if `negated` is true, then 'equals' comparisons would function as 'not
-   * equals'.
-   * 
- * - * bool negated = 4; - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - - 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(field_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, field_); - } - if (comparisonType_ != com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.COMPARISON_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, comparisonType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_); - } - if (negated_ != false) { - output.writeBool(4, negated_); - } - 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(field_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, field_); - } - if (comparisonType_ != com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.COMPARISON_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, comparisonType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_); - } - if (negated_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, negated_); - } - 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.admin.v1alpha.MatchingCondition)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.MatchingCondition other = (com.google.analytics.admin.v1alpha.MatchingCondition) obj; - - if (!getField() - .equals(other.getField())) return false; - if (comparisonType_ != other.comparisonType_) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getNegated() - != other.getNegated()) 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) + FIELD_FIELD_NUMBER; - hash = (53 * hash) + getField().hashCode(); - hash = (37 * hash) + COMPARISON_TYPE_FIELD_NUMBER; - hash = (53 * hash) + comparisonType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + NEGATED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNegated()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.MatchingCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.MatchingCondition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.MatchingCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.MatchingCondition 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; - } - /** - *
-   * Defines a condition for when an Event Edit or Event Creation rule applies to
-   * an event.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.MatchingCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.MatchingCondition) - com.google.analytics.admin.v1alpha.MatchingConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_MatchingCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.MatchingCondition.class, com.google.analytics.admin.v1alpha.MatchingCondition.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.MatchingCondition.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - field_ = ""; - comparisonType_ = 0; - value_ = ""; - negated_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_MatchingCondition_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MatchingCondition getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MatchingCondition build() { - com.google.analytics.admin.v1alpha.MatchingCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MatchingCondition buildPartial() { - com.google.analytics.admin.v1alpha.MatchingCondition result = new com.google.analytics.admin.v1alpha.MatchingCondition(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.MatchingCondition result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.field_ = field_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.comparisonType_ = comparisonType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.negated_ = negated_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.MatchingCondition) { - return mergeFrom((com.google.analytics.admin.v1alpha.MatchingCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.MatchingCondition other) { - if (other == com.google.analytics.admin.v1alpha.MatchingCondition.getDefaultInstance()) return this; - if (!other.getField().isEmpty()) { - field_ = other.field_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.comparisonType_ != 0) { - setComparisonTypeValue(other.getComparisonTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getNegated() != false) { - setNegated(other.getNegated()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - field_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - comparisonType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - negated_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object field_ = ""; - /** - *
-     * Required. The name of the field that is compared against for the condition.
-     * If 'event_name' is specified this condition will apply to the name of the
-     * event.  Otherwise the condition will apply to a parameter with the
-     * specified name.
-     *
-     * This value cannot contain spaces.
-     * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The field. - */ - public java.lang.String getField() { - java.lang.Object ref = field_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - field_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the field that is compared against for the condition.
-     * If 'event_name' is specified this condition will apply to the name of the
-     * event.  Otherwise the condition will apply to a parameter with the
-     * specified name.
-     *
-     * This value cannot contain spaces.
-     * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for field. - */ - public com.google.protobuf.ByteString - getFieldBytes() { - java.lang.Object ref = field_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - field_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the field that is compared against for the condition.
-     * If 'event_name' is specified this condition will apply to the name of the
-     * event.  Otherwise the condition will apply to a parameter with the
-     * specified name.
-     *
-     * This value cannot contain spaces.
-     * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The field to set. - * @return This builder for chaining. - */ - public Builder setField( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - field_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the field that is compared against for the condition.
-     * If 'event_name' is specified this condition will apply to the name of the
-     * event.  Otherwise the condition will apply to a parameter with the
-     * specified name.
-     *
-     * This value cannot contain spaces.
-     * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearField() { - field_ = getDefaultInstance().getField(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the field that is compared against for the condition.
-     * If 'event_name' is specified this condition will apply to the name of the
-     * event.  Otherwise the condition will apply to a parameter with the
-     * specified name.
-     *
-     * This value cannot contain spaces.
-     * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for field to set. - * @return This builder for chaining. - */ - public Builder setFieldBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - field_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int comparisonType_ = 0; - /** - *
-     * Required. The type of comparison to be applied to the value.
-     * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for comparisonType. - */ - @java.lang.Override public int getComparisonTypeValue() { - return comparisonType_; - } - /** - *
-     * Required. The type of comparison to be applied to the value.
-     * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for comparisonType to set. - * @return This builder for chaining. - */ - public Builder setComparisonTypeValue(int value) { - comparisonType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The type of comparison to be applied to the value.
-     * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The comparisonType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType getComparisonType() { - com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType result = com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.forNumber(comparisonType_); - return result == null ? com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType.UNRECOGNIZED : result; - } - /** - *
-     * Required. The type of comparison to be applied to the value.
-     * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The comparisonType to set. - * @return This builder for chaining. - */ - public Builder setComparisonType(com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - comparisonType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The type of comparison to be applied to the value.
-     * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearComparisonType() { - bitField0_ = (bitField0_ & ~0x00000002); - comparisonType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-     * Required. The value being compared against for this condition.  The runtime
-     * implementation may perform type coercion of this value to evaluate this
-     * condition based on the type of the parameter value.
-     * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The value being compared against for this condition.  The runtime
-     * implementation may perform type coercion of this value to evaluate this
-     * condition based on the type of the parameter value.
-     * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The value being compared against for this condition.  The runtime
-     * implementation may perform type coercion of this value to evaluate this
-     * condition based on the type of the parameter value.
-     * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. The value being compared against for this condition.  The runtime
-     * implementation may perform type coercion of this value to evaluate this
-     * condition based on the type of the parameter value.
-     * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. The value being compared against for this condition.  The runtime
-     * implementation may perform type coercion of this value to evaluate this
-     * condition based on the type of the parameter value.
-     * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private boolean negated_ ; - /** - *
-     * Whether or not the result of the comparison should be negated. For example,
-     * if `negated` is true, then 'equals' comparisons would function as 'not
-     * equals'.
-     * 
- * - * bool negated = 4; - * @return The negated. - */ - @java.lang.Override - public boolean getNegated() { - return negated_; - } - /** - *
-     * Whether or not the result of the comparison should be negated. For example,
-     * if `negated` is true, then 'equals' comparisons would function as 'not
-     * equals'.
-     * 
- * - * bool negated = 4; - * @param value The negated to set. - * @return This builder for chaining. - */ - public Builder setNegated(boolean value) { - - negated_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Whether or not the result of the comparison should be negated. For example,
-     * if `negated` is true, then 'equals' comparisons would function as 'not
-     * equals'.
-     * 
- * - * bool negated = 4; - * @return This builder for chaining. - */ - public Builder clearNegated() { - bitField0_ = (bitField0_ & ~0x00000008); - negated_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.MatchingCondition) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.MatchingCondition) - private static final com.google.analytics.admin.v1alpha.MatchingCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.MatchingCondition(); - } - - public static com.google.analytics.admin.v1alpha.MatchingCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MatchingCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MatchingCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingConditionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingConditionOrBuilder.java deleted file mode 100644 index ffc23d2faa3e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MatchingConditionOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/event_create_and_edit.proto - -package com.google.analytics.admin.v1alpha; - -public interface MatchingConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.MatchingCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the field that is compared against for the condition.
-   * If 'event_name' is specified this condition will apply to the name of the
-   * event.  Otherwise the condition will apply to a parameter with the
-   * specified name.
-   *
-   * This value cannot contain spaces.
-   * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The field. - */ - java.lang.String getField(); - /** - *
-   * Required. The name of the field that is compared against for the condition.
-   * If 'event_name' is specified this condition will apply to the name of the
-   * event.  Otherwise the condition will apply to a parameter with the
-   * specified name.
-   *
-   * This value cannot contain spaces.
-   * 
- * - * string field = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for field. - */ - com.google.protobuf.ByteString - getFieldBytes(); - - /** - *
-   * Required. The type of comparison to be applied to the value.
-   * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for comparisonType. - */ - int getComparisonTypeValue(); - /** - *
-   * Required. The type of comparison to be applied to the value.
-   * 
- * - * .google.analytics.admin.v1alpha.MatchingCondition.ComparisonType comparison_type = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The comparisonType. - */ - com.google.analytics.admin.v1alpha.MatchingCondition.ComparisonType getComparisonType(); - - /** - *
-   * Required. The value being compared against for this condition.  The runtime
-   * implementation may perform type coercion of this value to evaluate this
-   * condition based on the type of the parameter value.
-   * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * Required. The value being compared against for this condition.  The runtime
-   * implementation may perform type coercion of this value to evaluate this
-   * condition based on the type of the parameter value.
-   * 
- * - * string value = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-   * Whether or not the result of the comparison should be negated. For example,
-   * if `negated` is true, then 'equals' comparisons would function as 'not
-   * equals'.
-   * 
- * - * bool negated = 4; - * @return The negated. - */ - boolean getNegated(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java deleted file mode 100644 index fbcf8cce1b7a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A secret value used for sending hits to Measurement Protocol.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} - */ -public final class MeasurementProtocolSecret extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) - MeasurementProtocolSecretOrBuilder { -private static final long serialVersionUID = 0L; - // Use MeasurementProtocolSecret.newBuilder() to construct. - private MeasurementProtocolSecret(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MeasurementProtocolSecret() { - name_ = ""; - displayName_ = ""; - secretValue_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MeasurementProtocolSecret(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SECRET_VALUE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object secretValue_ = ""; - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The secretValue. - */ - @java.lang.Override - public java.lang.String getSecretValue() { - java.lang.Object ref = secretValue_; - 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(); - secretValue_ = s; - return s; - } - } - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for secretValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSecretValueBytes() { - java.lang.Object ref = secretValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secretValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretValue_); - } - 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(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretValue_); - } - 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.admin.v1alpha.MeasurementProtocolSecret)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other = (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getSecretValue() - .equals(other.getSecretValue())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + SECRET_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getSecretValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A secret value used for sending hits to Measurement Protocol.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) - com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - secretValue_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret build() { - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret buildPartial() { - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.secretValue_ = secretValue_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) { - return mergeFrom((com.google.analytics.admin.v1alpha.MeasurementProtocolSecret)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other) { - if (other == com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getSecretValue().isEmpty()) { - secretValue_ = other.secretValue_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - secretValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.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. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object secretValue_ = ""; - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The secretValue. - */ - public java.lang.String getSecretValue() { - java.lang.Object ref = secretValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secretValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for secretValue. - */ - public com.google.protobuf.ByteString - getSecretValueBytes() { - java.lang.Object ref = secretValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secretValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The secretValue to set. - * @return This builder for chaining. - */ - public Builder setSecretValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - secretValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearSecretValue() { - secretValue_ = getDefaultInstance().getSecretValue(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for secretValue to set. - * @return This builder for chaining. - */ - public Builder setSecretValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - secretValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.MeasurementProtocolSecret) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.MeasurementProtocolSecret) - private static final com.google.analytics.admin.v1alpha.MeasurementProtocolSecret DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); - } - - public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeasurementProtocolSecret parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java deleted file mode 100644 index ce20bc2e4000..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface MeasurementProtocolSecretOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.MeasurementProtocolSecret) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The secretValue. - */ - java.lang.String getSecretValue(); - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for secretValue. - */ - com.google.protobuf.ByteString - getSecretValueBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java deleted file mode 100644 index eeaad33ee7af..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValue.java +++ /dev/null @@ -1,721 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * To represent a number.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.NumericValue} - */ -public final class NumericValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.NumericValue) - NumericValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use NumericValue.newBuilder() to construct. - private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NumericValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NumericValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.NumericValue.class, com.google.analytics.admin.v1alpha.NumericValue.Builder.class); - } - - private int oneValueCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneValue_; - public enum OneValueCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INT64_VALUE(1), - DOUBLE_VALUE(2), - ONEVALUE_NOT_SET(0); - private final int value; - private OneValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneValueCase valueOf(int value) { - return forNumber(value); - } - - public static OneValueCase forNumber(int value) { - switch (value) { - case 1: return INT64_VALUE; - case 2: return DOUBLE_VALUE; - case 0: return ONEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneValueCase - getOneValueCase() { - return OneValueCase.forNumber( - oneValueCase_); - } - - public static final int INT64_VALUE_FIELD_NUMBER = 1; - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - @java.lang.Override - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - @java.lang.Override - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oneValueCase_ == 1) { - output.writeInt64( - 1, (long)((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) oneValue_)); - } - 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.CodedOutputStream - .computeInt64Size( - 1, (long)((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) 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.admin.v1alpha.NumericValue)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.NumericValue other = (com.google.analytics.admin.v1alpha.NumericValue) obj; - - if (!getOneValueCase().equals(other.getOneValueCase())) return false; - switch (oneValueCase_) { - case 1: - if (getInt64Value() - != other.getInt64Value()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; - break; - case 0: - default: - } - if (!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) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); - break; - case 2: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.NumericValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.NumericValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.NumericValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * To represent a number.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.NumericValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.NumericValue) - com.google.analytics.admin.v1alpha.NumericValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.NumericValue.class, com.google.analytics.admin.v1alpha.NumericValue.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.NumericValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oneValueCase_ = 0; - oneValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AccessReportProto.internal_static_google_analytics_admin_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue build() { - com.google.analytics.admin.v1alpha.NumericValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue buildPartial() { - com.google.analytics.admin.v1alpha.NumericValue result = new com.google.analytics.admin.v1alpha.NumericValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.NumericValue result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.NumericValue result) { - result.oneValueCase_ = oneValueCase_; - result.oneValue_ = this.oneValue_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.NumericValue) { - return mergeFrom((com.google.analytics.admin.v1alpha.NumericValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.NumericValue other) { - if (other == com.google.analytics.admin.v1alpha.NumericValue.getDefaultInstance()) return this; - switch (other.getOneValueCase()) { - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case ONEVALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - oneValue_ = input.readInt64(); - oneValueCase_ = 1; - break; - } // case 8 - case 17: { - oneValue_ = input.readDouble(); - oneValueCase_ = 2; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - public OneValueCase - getOneValueCase() { - return OneValueCase.forNumber( - oneValueCase_); - } - - public Builder clearOneValue() { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @param value The int64Value to set. - * @return This builder for chaining. - */ - public Builder setInt64Value(long value) { - - oneValueCase_ = 1; - oneValue_ = value; - onChanged(); - return this; - } - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @return This builder for chaining. - */ - public Builder clearInt64Value() { - if (oneValueCase_ == 1) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - - oneValueCase_ = 2; - oneValue_ = value; - onChanged(); - return this; - } - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (oneValueCase_ == 2) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.NumericValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.NumericValue) - private static final com.google.analytics.admin.v1alpha.NumericValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.NumericValue(); - } - - public static com.google.analytics.admin.v1alpha.NumericValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.NumericValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java deleted file mode 100644 index c8ce6c2a70c1..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/NumericValueOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/access_report.proto - -package com.google.analytics.admin.v1alpha; - -public interface NumericValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.NumericValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - boolean hasInt64Value(); - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - long getInt64Value(); - - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - double getDoubleValue(); - - com.google.analytics.admin.v1alpha.NumericValue.OneValueCase getOneValueCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutation.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutation.java deleted file mode 100644 index dd80bdc783d9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ParameterMutation.java +++ /dev/null @@ -1,818 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/event_create_and_edit.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Defines an event parameter to mutate.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ParameterMutation} - */ -public final class ParameterMutation extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ParameterMutation) - ParameterMutationOrBuilder { -private static final long serialVersionUID = 0L; - // Use ParameterMutation.newBuilder() to construct. - private ParameterMutation(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ParameterMutation() { - parameter_ = ""; - parameterValue_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ParameterMutation(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ParameterMutation.class, com.google.analytics.admin.v1alpha.ParameterMutation.Builder.class); - } - - public static final int PARAMETER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parameter_ = ""; - /** - *
-   * Required. The name of the parameter to mutate.
-   * This value must:
-   * * be less than 40 characters.
-   * * be unique across across all mutations within the rule
-   * * consist only of letters, digits or _ (underscores)
-   * For event edit rules, the name may also be set to 'event_name' to modify
-   * the event_name in place.
-   * 
- * - * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parameter. - */ - @java.lang.Override - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - 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(); - parameter_ = s; - return s; - } - } - /** - *
-   * Required. The name of the parameter to mutate.
-   * This value must:
-   * * be less than 40 characters.
-   * * be unique across across all mutations within the rule
-   * * consist only of letters, digits or _ (underscores)
-   * For event edit rules, the name may also be set to 'event_name' to modify
-   * the event_name in place.
-   * 
- * - * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parameter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETER_VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parameterValue_ = ""; - /** - *
-   * Required. The value mutation to perform.
-   * * Must be less than 100 characters.
-   * * To specify a constant value for the param, use the value's string.
-   * * To copy value from another parameter, use syntax like
-   * "[[other_parameter]]" For more details, see this [help center
-   * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
-   * 
- * - * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The parameterValue. - */ - @java.lang.Override - public java.lang.String getParameterValue() { - java.lang.Object ref = parameterValue_; - 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(); - parameterValue_ = s; - return s; - } - } - /** - *
-   * Required. The value mutation to perform.
-   * * Must be less than 100 characters.
-   * * To specify a constant value for the param, use the value's string.
-   * * To copy value from another parameter, use syntax like
-   * "[[other_parameter]]" For more details, see this [help center
-   * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
-   * 
- * - * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parameterValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParameterValueBytes() { - java.lang.Object ref = parameterValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterValue_ = 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(parameter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parameter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterValue_); - } - 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(parameter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parameter_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterValue_); - } - 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.admin.v1alpha.ParameterMutation)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ParameterMutation other = (com.google.analytics.admin.v1alpha.ParameterMutation) obj; - - if (!getParameter() - .equals(other.getParameter())) return false; - if (!getParameterValue() - .equals(other.getParameterValue())) 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) + PARAMETER_FIELD_NUMBER; - hash = (53 * hash) + getParameter().hashCode(); - hash = (37 * hash) + PARAMETER_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getParameterValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ParameterMutation parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ParameterMutation parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ParameterMutation parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ParameterMutation 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; - } - /** - *
-   * Defines an event parameter to mutate.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ParameterMutation} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ParameterMutation) - com.google.analytics.admin.v1alpha.ParameterMutationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_ParameterMutation_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ParameterMutation.class, com.google.analytics.admin.v1alpha.ParameterMutation.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ParameterMutation.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parameter_ = ""; - parameterValue_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.EventCreateAndEdit.internal_static_google_analytics_admin_v1alpha_ParameterMutation_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ParameterMutation getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ParameterMutation build() { - com.google.analytics.admin.v1alpha.ParameterMutation result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ParameterMutation buildPartial() { - com.google.analytics.admin.v1alpha.ParameterMutation result = new com.google.analytics.admin.v1alpha.ParameterMutation(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ParameterMutation result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parameter_ = parameter_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parameterValue_ = parameterValue_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ParameterMutation) { - return mergeFrom((com.google.analytics.admin.v1alpha.ParameterMutation)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ParameterMutation other) { - if (other == com.google.analytics.admin.v1alpha.ParameterMutation.getDefaultInstance()) return this; - if (!other.getParameter().isEmpty()) { - parameter_ = other.parameter_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getParameterValue().isEmpty()) { - parameterValue_ = other.parameterValue_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parameter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parameterValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parameter_ = ""; - /** - *
-     * Required. The name of the parameter to mutate.
-     * This value must:
-     * * be less than 40 characters.
-     * * be unique across across all mutations within the rule
-     * * consist only of letters, digits or _ (underscores)
-     * For event edit rules, the name may also be set to 'event_name' to modify
-     * the event_name in place.
-     * 
- * - * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The parameter. - */ - public java.lang.String getParameter() { - java.lang.Object ref = parameter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the parameter to mutate.
-     * This value must:
-     * * be less than 40 characters.
-     * * be unique across across all mutations within the rule
-     * * consist only of letters, digits or _ (underscores)
-     * For event edit rules, the name may also be set to 'event_name' to modify
-     * the event_name in place.
-     * 
- * - * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parameter. - */ - public com.google.protobuf.ByteString - getParameterBytes() { - java.lang.Object ref = parameter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the parameter to mutate.
-     * This value must:
-     * * be less than 40 characters.
-     * * be unique across across all mutations within the rule
-     * * consist only of letters, digits or _ (underscores)
-     * For event edit rules, the name may also be set to 'event_name' to modify
-     * the event_name in place.
-     * 
- * - * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The parameter to set. - * @return This builder for chaining. - */ - public Builder setParameter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parameter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the parameter to mutate.
-     * This value must:
-     * * be less than 40 characters.
-     * * be unique across across all mutations within the rule
-     * * consist only of letters, digits or _ (underscores)
-     * For event edit rules, the name may also be set to 'event_name' to modify
-     * the event_name in place.
-     * 
- * - * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearParameter() { - parameter_ = getDefaultInstance().getParameter(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the parameter to mutate.
-     * This value must:
-     * * be less than 40 characters.
-     * * be unique across across all mutations within the rule
-     * * consist only of letters, digits or _ (underscores)
-     * For event edit rules, the name may also be set to 'event_name' to modify
-     * the event_name in place.
-     * 
- * - * string parameter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for parameter to set. - * @return This builder for chaining. - */ - public Builder setParameterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parameter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object parameterValue_ = ""; - /** - *
-     * Required. The value mutation to perform.
-     * * Must be less than 100 characters.
-     * * To specify a constant value for the param, use the value's string.
-     * * To copy value from another parameter, use syntax like
-     * "[[other_parameter]]" For more details, see this [help center
-     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
-     * 
- * - * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The parameterValue. - */ - public java.lang.String getParameterValue() { - java.lang.Object ref = parameterValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameterValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The value mutation to perform.
-     * * Must be less than 100 characters.
-     * * To specify a constant value for the param, use the value's string.
-     * * To copy value from another parameter, use syntax like
-     * "[[other_parameter]]" For more details, see this [help center
-     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
-     * 
- * - * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for parameterValue. - */ - public com.google.protobuf.ByteString - getParameterValueBytes() { - java.lang.Object ref = parameterValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The value mutation to perform.
-     * * Must be less than 100 characters.
-     * * To specify a constant value for the param, use the value's string.
-     * * To copy value from another parameter, use syntax like
-     * "[[other_parameter]]" For more details, see this [help center
-     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
-     * 
- * - * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The parameterValue to set. - * @return This builder for chaining. - */ - public Builder setParameterValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parameterValue_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The value mutation to perform.
-     * * Must be less than 100 characters.
-     * * To specify a constant value for the param, use the value's string.
-     * * To copy value from another parameter, use syntax like
-     * "[[other_parameter]]" For more details, see this [help center
-     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
-     * 
- * - * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearParameterValue() { - parameterValue_ = getDefaultInstance().getParameterValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. The value mutation to perform.
-     * * Must be less than 100 characters.
-     * * To specify a constant value for the param, use the value's string.
-     * * To copy value from another parameter, use syntax like
-     * "[[other_parameter]]" For more details, see this [help center
-     * article](https://support.google.com/analytics/answer/10085872#modify-an-event&zippy=%2Cin-this-article%2Cmodify-parameters).
-     * 
- * - * string parameter_value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for parameterValue to set. - * @return This builder for chaining. - */ - public Builder setParameterValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parameterValue_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ParameterMutation) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ParameterMutation) - private static final com.google.analytics.admin.v1alpha.ParameterMutation DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ParameterMutation(); - } - - public static com.google.analytics.admin.v1alpha.ParameterMutation getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParameterMutation parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ParameterMutation getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java deleted file mode 100644 index f840bd611c49..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ /dev/null @@ -1,2897 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing a Google Analytics GA4 property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.Property} - */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.Property) - PropertyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Property.newBuilder() to construct. - private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Property() { - name_ = ""; - propertyType_ = 0; - parent_ = ""; - displayName_ = ""; - industryCategory_ = 0; - timeZone_ = ""; - currencyCode_ = ""; - serviceLevel_ = 0; - account_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Property(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Property_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.Property.class, com.google.analytics.admin.v1alpha.Property.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_TYPE_FIELD_NUMBER = 14; - private int propertyType_ = 0; - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The propertyType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { - com.google.analytics.admin.v1alpha.PropertyType result = com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int PARENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDUSTRY_CATEGORY_FIELD_NUMBER = 6; - private int industryCategory_ = 0; - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return The enum numeric value on the wire for industryCategory. - */ - @java.lang.Override public int getIndustryCategoryValue() { - return industryCategory_; - } - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return The industryCategory. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory() { - com.google.analytics.admin.v1alpha.IndustryCategory result = com.google.analytics.admin.v1alpha.IndustryCategory.forNumber(industryCategory_); - return result == null ? com.google.analytics.admin.v1alpha.IndustryCategory.UNRECOGNIZED : result; - } - - public static final int TIME_ZONE_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object timeZone_ = ""; - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The timeZone. - */ - @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for timeZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENCY_CODE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object currencyCode_ = ""; - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The currencyCode. - */ - @java.lang.Override - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - 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(); - currencyCode_ = s; - return s; - } - } - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The bytes for currencyCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_LEVEL_FIELD_NUMBER = 10; - private int serviceLevel_ = 0; - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for serviceLevel. - */ - @java.lang.Override public int getServiceLevelValue() { - return serviceLevel_; - } - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The serviceLevel. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel() { - com.google.analytics.admin.v1alpha.ServiceLevel result = com.google.analytics.admin.v1alpha.ServiceLevel.forNumber(serviceLevel_); - return result == null ? com.google.analytics.admin.v1alpha.ServiceLevel.UNRECOGNIZED : result; - } - - public static final int DELETE_TIME_FIELD_NUMBER = 11; - private com.google.protobuf.Timestamp deleteTime_; - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deleteTime field is set. - */ - @java.lang.Override - public boolean hasDeleteTime() { - return deleteTime_ != null; - } - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeleteTime() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 12; - private com.google.protobuf.Timestamp expireTime_; - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the expireTime field is set. - */ - @java.lang.Override - public boolean hasExpireTime() { - return expireTime_ != null; - } - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The expireTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExpireTime() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - - public static final int ACCOUNT_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object account_ = ""; - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - 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(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); - } - if (industryCategory_ != com.google.analytics.admin.v1alpha.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED.getNumber()) { - output.writeEnum(6, industryCategory_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); - } - if (serviceLevel_ != com.google.analytics.admin.v1alpha.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { - output.writeEnum(10, serviceLevel_); - } - if (deleteTime_ != null) { - output.writeMessage(11, getDeleteTime()); - } - if (expireTime_ != null) { - output.writeMessage(12, getExpireTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, account_); - } - if (propertyType_ != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(14, propertyType_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); - } - if (industryCategory_ != com.google.analytics.admin.v1alpha.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, industryCategory_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); - } - if (serviceLevel_ != com.google.analytics.admin.v1alpha.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, serviceLevel_); - } - if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getDeleteTime()); - } - if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getExpireTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, account_); - } - if (propertyType_ != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, propertyType_); - } - 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.admin.v1alpha.Property)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.Property other = (com.google.analytics.admin.v1alpha.Property) obj; - - if (!getName() - .equals(other.getName())) return false; - if (propertyType_ != other.propertyType_) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getParent() - .equals(other.getParent())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (industryCategory_ != other.industryCategory_) return false; - if (!getTimeZone() - .equals(other.getTimeZone())) return false; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; - if (serviceLevel_ != other.serviceLevel_) return false; - if (hasDeleteTime() != other.hasDeleteTime()) return false; - if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; - } - if (hasExpireTime() != other.hasExpireTime()) return false; - if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!getAccount() - .equals(other.getAccount())) 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) + PROPERTY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + propertyType_; - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + INDUSTRY_CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + industryCategory_; - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getCurrencyCode().hashCode(); - hash = (37 * hash) + SERVICE_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + serviceLevel_; - if (hasDeleteTime()) { - hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeleteTime().hashCode(); - } - if (hasExpireTime()) { - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - } - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.Property parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.Property parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.Property prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a Google Analytics GA4 property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.Property} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.Property) - com.google.analytics.admin.v1alpha.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Property_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.Property.class, com.google.analytics.admin.v1alpha.Property.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.Property.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - propertyType_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - parent_ = ""; - displayName_ = ""; - industryCategory_ = 0; - timeZone_ = ""; - currencyCode_ = ""; - serviceLevel_ = 0; - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - account_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_Property_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property build() { - com.google.analytics.admin.v1alpha.Property result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property buildPartial() { - com.google.analytics.admin.v1alpha.Property result = new com.google.analytics.admin.v1alpha.Property(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.Property result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.propertyType_ = propertyType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.industryCategory_ = industryCategory_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.timeZone_ = timeZone_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.currencyCode_ = currencyCode_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.serviceLevel_ = serviceLevel_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.account_ = account_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.Property) { - return mergeFrom((com.google.analytics.admin.v1alpha.Property)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.Property other) { - if (other == com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.propertyType_ != 0) { - setPropertyTypeValue(other.getPropertyTypeValue()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.industryCategory_ != 0) { - setIndustryCategoryValue(other.getIndustryCategoryValue()); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getCurrencyCode().isEmpty()) { - currencyCode_ = other.currencyCode_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.serviceLevel_ != 0) { - setServiceLevelValue(other.getServiceLevelValue()); - } - if (other.hasDeleteTime()) { - mergeDeleteTime(other.getDeleteTime()); - } - if (other.hasExpireTime()) { - mergeExpireTime(other.getExpireTime()); - } - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - bitField0_ |= 0x00001000; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 48: { - industryCategory_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 80: { - serviceLevel_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: { - account_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 112: { - propertyType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 112 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.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. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int propertyType_ = 0; - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyTypeValue(int value) { - propertyType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The propertyType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { - com.google.analytics.admin.v1alpha.PropertyType result = com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyType(com.google.analytics.admin.v1alpha.PropertyType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - propertyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearPropertyType() { - bitField0_ = (bitField0_ & ~0x00000002); - propertyType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000008); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private int industryCategory_ = 0; - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return The enum numeric value on the wire for industryCategory. - */ - @java.lang.Override public int getIndustryCategoryValue() { - return industryCategory_; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @param value The enum numeric value on the wire for industryCategory to set. - * @return This builder for chaining. - */ - public Builder setIndustryCategoryValue(int value) { - industryCategory_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return The industryCategory. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory() { - com.google.analytics.admin.v1alpha.IndustryCategory result = com.google.analytics.admin.v1alpha.IndustryCategory.forNumber(industryCategory_); - return result == null ? com.google.analytics.admin.v1alpha.IndustryCategory.UNRECOGNIZED : result; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @param value The industryCategory to set. - * @return This builder for chaining. - */ - public Builder setIndustryCategory(com.google.analytics.admin.v1alpha.IndustryCategory value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - industryCategory_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return This builder for chaining. - */ - public Builder clearIndustryCategory() { - bitField0_ = (bitField0_ & ~0x00000040); - industryCategory_ = 0; - onChanged(); - return this; - } - - private java.lang.Object timeZone_ = ""; - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - timeZone_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - timeZone_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object currencyCode_ = ""; - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @return The currencyCode. - */ - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @return The bytes for currencyCode. - */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @param value The currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - currencyCode_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @return This builder for chaining. - */ - public Builder clearCurrencyCode() { - currencyCode_ = getDefaultInstance().getCurrencyCode(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @param value The bytes for currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - currencyCode_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private int serviceLevel_ = 0; - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for serviceLevel. - */ - @java.lang.Override public int getServiceLevelValue() { - return serviceLevel_; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for serviceLevel to set. - * @return This builder for chaining. - */ - public Builder setServiceLevelValue(int value) { - serviceLevel_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The serviceLevel. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel() { - com.google.analytics.admin.v1alpha.ServiceLevel result = com.google.analytics.admin.v1alpha.ServiceLevel.forNumber(serviceLevel_); - return result == null ? com.google.analytics.admin.v1alpha.ServiceLevel.UNRECOGNIZED : result; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The serviceLevel to set. - * @return This builder for chaining. - */ - public Builder setServiceLevel(com.google.analytics.admin.v1alpha.ServiceLevel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - serviceLevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearServiceLevel() { - bitField0_ = (bitField0_ & ~0x00000200); - serviceLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deleteTime field is set. - */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleteTime. - */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } - } else { - deleteTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000400); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getDeleteTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); - deleteTime_ = null; - } - return deleteTimeBuilder_; - } - - private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the expireTime field is set. - */ - public boolean hasExpireTime() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The expireTime. - */ - public com.google.protobuf.Timestamp getExpireTime() { - if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } else { - return expireTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireTime_ = value; - } else { - expireTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expireTimeBuilder_ == null) { - expireTime_ = builderForValue.build(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getExpireTimeBuilder().mergeFrom(value); - } else { - expireTime_ = value; - } - } else { - expireTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearExpireTime() { - bitField0_ = (bitField0_ & ~0x00000800); - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getExpireTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - if (expireTimeBuilder_ != null) { - return expireTimeBuilder_.getMessageOrBuilder(); - } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - - private java.lang.Object account_ = ""; - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The account. - */ - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @param value The account to set. - * @return This builder for chaining. - */ - public Builder setAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - account_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearAccount() { - account_ = getDefaultInstance().getAccount(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - account_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.Property) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.Property) - private static final com.google.analytics.admin.v1alpha.Property DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.Property(); - } - - public static com.google.analytics.admin.v1alpha.Property getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java deleted file mode 100644 index 0543e8e05787..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ /dev/null @@ -1,355 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface PropertyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.Property) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for propertyType. - */ - int getPropertyTypeValue(); - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The propertyType. - */ - com.google.analytics.admin.v1alpha.PropertyType getPropertyType(); - - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return The enum numeric value on the wire for industryCategory. - */ - int getIndustryCategoryValue(); - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1alpha.IndustryCategory industry_category = 6; - * @return The industryCategory. - */ - com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory(); - - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The timeZone. - */ - java.lang.String getTimeZone(); - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString - getTimeZoneBytes(); - - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The currencyCode. - */ - java.lang.String getCurrencyCode(); - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The bytes for currencyCode. - */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); - - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for serviceLevel. - */ - int getServiceLevelValue(); - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The serviceLevel. - */ - com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel(); - - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deleteTime field is set. - */ - boolean hasDeleteTime(); - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleteTime. - */ - com.google.protobuf.Timestamp getDeleteTime(); - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); - - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the expireTime field is set. - */ - boolean hasExpireTime(); - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The expireTime. - */ - com.google.protobuf.Timestamp getExpireTime(); - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); - - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The account. - */ - java.lang.String getAccount(); - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - com.google.protobuf.ByteString - getAccountBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java deleted file mode 100644 index fea9ebb3be64..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java +++ /dev/null @@ -1,1069 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A virtual resource representing metadata for a GA4 property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.PropertySummary} - */ -public final class PropertySummary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.PropertySummary) - PropertySummaryOrBuilder { -private static final long serialVersionUID = 0L; - // Use PropertySummary.newBuilder() to construct. - private PropertySummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PropertySummary() { - property_ = ""; - displayName_ = ""; - propertyType_ = 0; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PropertySummary(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.PropertySummary.class, com.google.analytics.admin.v1alpha.PropertySummary.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_TYPE_FIELD_NUMBER = 3; - private int propertyType_ = 0; - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return The propertyType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { - com.google.analytics.admin.v1alpha.PropertyType result = com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; - } - - public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (propertyType_ != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, propertyType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (propertyType_ != com.google.analytics.admin.v1alpha.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, propertyType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - 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.admin.v1alpha.PropertySummary)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.PropertySummary other = (com.google.analytics.admin.v1alpha.PropertySummary) obj; - - if (!getProperty() - .equals(other.getProperty())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (propertyType_ != other.propertyType_) return false; - if (!getParent() - .equals(other.getParent())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + PROPERTY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + propertyType_; - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.PropertySummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.PropertySummary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.PropertySummary parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.PropertySummary prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A virtual resource representing metadata for a GA4 property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.PropertySummary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.PropertySummary) - com.google.analytics.admin.v1alpha.PropertySummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.PropertySummary.class, com.google.analytics.admin.v1alpha.PropertySummary.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.PropertySummary.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - displayName_ = ""; - propertyType_ = 0; - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertySummary getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertySummary build() { - com.google.analytics.admin.v1alpha.PropertySummary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertySummary buildPartial() { - com.google.analytics.admin.v1alpha.PropertySummary result = new com.google.analytics.admin.v1alpha.PropertySummary(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.PropertySummary result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.propertyType_ = propertyType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.PropertySummary) { - return mergeFrom((com.google.analytics.admin.v1alpha.PropertySummary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.PropertySummary other) { - if (other == com.google.analytics.admin.v1alpha.PropertySummary.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.propertyType_ != 0) { - setPropertyTypeValue(other.getPropertyTypeValue()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - propertyType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int propertyType_ = 0; - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @param value The enum numeric value on the wire for propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyTypeValue(int value) { - propertyType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return The propertyType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyType getPropertyType() { - com.google.analytics.admin.v1alpha.PropertyType result = com.google.analytics.admin.v1alpha.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1alpha.PropertyType.UNRECOGNIZED : result; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @param value The propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyType(com.google.analytics.admin.v1alpha.PropertyType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - propertyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return This builder for chaining. - */ - public Builder clearPropertyType() { - bitField0_ = (bitField0_ & ~0x00000004); - propertyType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.PropertySummary) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.PropertySummary) - private static final com.google.analytics.admin.v1alpha.PropertySummary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.PropertySummary(); - } - - public static com.google.analytics.admin.v1alpha.PropertySummary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertySummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertySummary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java deleted file mode 100644 index 7ee7b00269f7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummaryOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface PropertySummaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.PropertySummary) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return The enum numeric value on the wire for propertyType. - */ - int getPropertyTypeValue(); - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1alpha.PropertyType property_type = 3; - * @return The propertyType. - */ - com.google.analytics.admin.v1alpha.PropertyType getPropertyType(); - - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java deleted file mode 100644 index 45a56576c7a3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Types of Property resources.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.PropertyType} - */ -public enum PropertyType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Unknown or unspecified property type
-   * 
- * - * PROPERTY_TYPE_UNSPECIFIED = 0; - */ - PROPERTY_TYPE_UNSPECIFIED(0), - /** - *
-   * Ordinary GA4 property
-   * 
- * - * PROPERTY_TYPE_ORDINARY = 1; - */ - PROPERTY_TYPE_ORDINARY(1), - /** - *
-   * GA4 subproperty
-   * 
- * - * PROPERTY_TYPE_SUBPROPERTY = 2; - */ - PROPERTY_TYPE_SUBPROPERTY(2), - /** - *
-   * GA4 rollup property
-   * 
- * - * PROPERTY_TYPE_ROLLUP = 3; - */ - PROPERTY_TYPE_ROLLUP(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Unknown or unspecified property type
-   * 
- * - * PROPERTY_TYPE_UNSPECIFIED = 0; - */ - public static final int PROPERTY_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Ordinary GA4 property
-   * 
- * - * PROPERTY_TYPE_ORDINARY = 1; - */ - public static final int PROPERTY_TYPE_ORDINARY_VALUE = 1; - /** - *
-   * GA4 subproperty
-   * 
- * - * PROPERTY_TYPE_SUBPROPERTY = 2; - */ - public static final int PROPERTY_TYPE_SUBPROPERTY_VALUE = 2; - /** - *
-   * GA4 rollup property
-   * 
- * - * PROPERTY_TYPE_ROLLUP = 3; - */ - public static final int PROPERTY_TYPE_ROLLUP_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 PropertyType 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 PropertyType forNumber(int value) { - switch (value) { - case 0: return PROPERTY_TYPE_UNSPECIFIED; - case 1: return PROPERTY_TYPE_ORDINARY; - case 2: return PROPERTY_TYPE_SUBPROPERTY; - case 3: return PROPERTY_TYPE_ROLLUP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PropertyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PropertyType findValueByNumber(int number) { - return PropertyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(9); - } - - private static final PropertyType[] VALUES = values(); - - public static PropertyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PropertyType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.PropertyType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java deleted file mode 100644 index 43dcaf666c00..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for ProvisionAccountTicket RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} - */ -public final class ProvisionAccountTicketRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) - ProvisionAccountTicketRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProvisionAccountTicketRequest.newBuilder() to construct. - private ProvisionAccountTicketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProvisionAccountTicketRequest() { - redirectUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProvisionAccountTicketRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.class, com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Account account_; - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return account_ != null; - } - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account getAccount() { - return account_ == null ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { - return account_ == null ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } - - public static final int REDIRECT_URI_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object redirectUri_ = ""; - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The redirectUri. - */ - @java.lang.Override - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - 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(); - redirectUri_ = s; - return s; - } - } - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The bytes for redirectUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirectUri_ = 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 (account_ != null) { - output.writeMessage(1, getAccount()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccount()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); - } - 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.admin.v1alpha.ProvisionAccountTicketRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest other = (com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) obj; - - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; - } - if (!getRedirectUri() - .equals(other.getRedirectUri())) 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 (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - } - hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; - hash = (53 * hash) + getRedirectUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ProvisionAccountTicket RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.class, com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - redirectUri_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest build() { - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest buildPartial() { - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest result = new com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.account_ = accountBuilder_ == null - ? account_ - : accountBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.redirectUri_ = redirectUri_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest other) { - if (other == com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest.getDefaultInstance()) return this; - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - if (!other.getRedirectUri().isEmpty()) { - redirectUri_ = other.redirectUri_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAccountFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - redirectUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Account account_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> accountBuilder_; - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return Whether the account field is set. - */ - public boolean hasAccount() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return The account. - */ - public com.google.analytics.admin.v1alpha.Account getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } else { - return accountBuilder_.getMessage(); - } - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - account_ = value; - } else { - accountBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder setAccount( - com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { - if (accountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - account_ != null && - account_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { - getAccountBuilder().mergeFrom(value); - } else { - account_ = value; - } - } else { - accountBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public Builder clearAccount() { - bitField0_ = (bitField0_ & ~0x00000001); - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAccountFieldBuilder().getBuilder(); - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); - } else { - return account_ == null ? - com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; - } - return accountBuilder_; - } - - private java.lang.Object redirectUri_ = ""; - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @return The redirectUri. - */ - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - redirectUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @return The bytes for redirectUri. - */ - public com.google.protobuf.ByteString - getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @param value The redirectUri to set. - * @return This builder for chaining. - */ - public Builder setRedirectUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - redirectUri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @return This builder for chaining. - */ - public Builder clearRedirectUri() { - redirectUri_ = getDefaultInstance().getRedirectUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @param value The bytes for redirectUri to set. - * @return This builder for chaining. - */ - public Builder setRedirectUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - redirectUri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) - private static final com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest(); - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProvisionAccountTicketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java deleted file mode 100644 index 0f9c8d8c41f7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ProvisionAccountTicketRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ProvisionAccountTicketRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - * @return The account. - */ - com.google.analytics.admin.v1alpha.Account getAccount(); - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1; - */ - com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); - - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The redirectUri. - */ - java.lang.String getRedirectUri(); - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The bytes for redirectUri. - */ - com.google.protobuf.ByteString - getRedirectUriBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java deleted file mode 100644 index 94a3a5a8b6f2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for ProvisionAccountTicket RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} - */ -public final class ProvisionAccountTicketResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) - ProvisionAccountTicketResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProvisionAccountTicketResponse.newBuilder() to construct. - private ProvisionAccountTicketResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProvisionAccountTicketResponse() { - accountTicketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProvisionAccountTicketResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.class, com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.Builder.class); - } - - public static final int ACCOUNT_TICKET_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object accountTicketId_ = ""; - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The accountTicketId. - */ - @java.lang.Override - public java.lang.String getAccountTicketId() { - java.lang.Object ref = accountTicketId_; - 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(); - accountTicketId_ = s; - return s; - } - } - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The bytes for accountTicketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountTicketIdBytes() { - java.lang.Object ref = accountTicketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountTicketId_ = 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(accountTicketId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountTicketId_); - } - 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(accountTicketId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountTicketId_); - } - 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.admin.v1alpha.ProvisionAccountTicketResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse other = (com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) obj; - - if (!getAccountTicketId() - .equals(other.getAccountTicketId())) 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) + ACCOUNT_TICKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getAccountTicketId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ProvisionAccountTicket RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.ProvisionAccountTicketResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.class, com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - accountTicketId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_ProvisionAccountTicketResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse build() { - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse buildPartial() { - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse result = new com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.accountTicketId_ = accountTicketId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse other) { - if (other == com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse.getDefaultInstance()) return this; - if (!other.getAccountTicketId().isEmpty()) { - accountTicketId_ = other.accountTicketId_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - accountTicketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object accountTicketId_ = ""; - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @return The accountTicketId. - */ - public java.lang.String getAccountTicketId() { - java.lang.Object ref = accountTicketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountTicketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @return The bytes for accountTicketId. - */ - public com.google.protobuf.ByteString - getAccountTicketIdBytes() { - java.lang.Object ref = accountTicketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountTicketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @param value The accountTicketId to set. - * @return This builder for chaining. - */ - public Builder setAccountTicketId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - accountTicketId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @return This builder for chaining. - */ - public Builder clearAccountTicketId() { - accountTicketId_ = getDefaultInstance().getAccountTicketId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @param value The bytes for accountTicketId to set. - * @return This builder for chaining. - */ - public Builder setAccountTicketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - accountTicketId_ = 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.admin.v1alpha.ProvisionAccountTicketResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) - private static final com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse(); - } - - public static com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProvisionAccountTicketResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java deleted file mode 100644 index 1e662a84da34..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface ProvisionAccountTicketResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ProvisionAccountTicketResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The accountTicketId. - */ - java.lang.String getAccountTicketId(); - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The bytes for accountTicketId. - */ - com.google.protobuf.ByteString - getAccountTicketIdBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java deleted file mode 100644 index bfd25d39e370..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ /dev/null @@ -1,930 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public final class ResourcesProto { - private ResourcesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_Account_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DataStream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/analytics/admin/v1alpha/resourc" + - "es.proto\022\036google.analytics.admin.v1alpha" + - "\032-google/analytics/admin/v1alpha/audienc" + - "e.proto\0322google/analytics/admin/v1alpha/" + - "channel_group.proto\032:google/analytics/ad" + - "min/v1alpha/event_create_and_edit.proto\032" + - "6google/analytics/admin/v1alpha/expanded" + - "_data_set.proto\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\032\037goo" + - "gle/protobuf/timestamp.proto\032\036google/pro" + - "tobuf/wrappers.proto\"\223\002\n\007Account\022\022\n\004name" + - "\030\001 \001(\tB\004\342A\001\003\0225\n\013create_time\030\002 \001(\0132\032.goog" + - "le.protobuf.TimestampB\004\342A\001\003\0225\n\013update_ti" + - "me\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A" + - "\001\003\022\032\n\014display_name\030\004 \001(\tB\004\342A\001\002\022\023\n\013region" + - "_code\030\005 \001(\t\022\025\n\007deleted\030\006 \001(\010B\004\342A\001\003:>\352A;\n" + - "%analyticsadmin.googleapis.com/Account\022\022" + - "accounts/{account}\"\304\005\n\010Property\022\022\n\004name\030" + - "\001 \001(\tB\004\342A\001\003\022I\n\rproperty_type\030\016 \001(\0162,.goo" + - "gle.analytics.admin.v1alpha.PropertyType" + - "B\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\003\0225\n\013update_time\030\004 \001" + - "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\024\n\006" + - "parent\030\002 \001(\tB\004\342A\001\005\022\032\n\014display_name\030\005 \001(\t" + - "B\004\342A\001\002\022K\n\021industry_category\030\006 \001(\01620.goog" + - "le.analytics.admin.v1alpha.IndustryCateg" + - "ory\022\027\n\ttime_zone\030\007 \001(\tB\004\342A\001\002\022\025\n\rcurrency" + - "_code\030\010 \001(\t\022I\n\rservice_level\030\n \001(\0162,.goo" + - "gle.analytics.admin.v1alpha.ServiceLevel" + - "B\004\342A\001\003\0225\n\013delete_time\030\013 \001(\0132\032.google.pro" + - "tobuf.TimestampB\004\342A\001\003\0225\n\013expire_time\030\014 \001" + - "(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022?\n\007" + - "account\030\r \001(\tB.\342A\001\005\372A\'\n%analyticsadmin.g" + - "oogleapis.com/Account:B\352A?\n&analyticsadm" + - "in.googleapis.com/Property\022\025properties/{" + - "property}\"\372\007\n\nDataStream\022S\n\017web_stream_d" + - "ata\030\006 \001(\01328.google.analytics.admin.v1alp" + - "ha.DataStream.WebStreamDataH\000\022b\n\027android" + - "_app_stream_data\030\007 \001(\0132?.google.analytic" + - "s.admin.v1alpha.DataStream.AndroidAppStr" + - "eamDataH\000\022Z\n\023ios_app_stream_data\030\010 \001(\0132;" + - ".google.analytics.admin.v1alpha.DataStre" + - "am.IosAppStreamDataH\000\022\022\n\004name\030\001 \001(\tB\004\342A\001" + - "\003\022N\n\004type\030\002 \001(\01629.google.analytics.admin" + - ".v1alpha.DataStream.DataStreamTypeB\005\342A\002\005" + - "\002\022\024\n\014display_name\030\003 \001(\t\0225\n\013create_time\030\004" + - " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225" + - "\n\013update_time\030\005 \001(\0132\032.google.protobuf.Ti" + - "mestampB\004\342A\001\003\032a\n\rWebStreamData\022\034\n\016measur" + - "ement_id\030\001 \001(\tB\004\342A\001\003\022\035\n\017firebase_app_id\030" + - "\002 \001(\tB\004\342A\001\003\022\023\n\013default_uri\030\003 \001(\t\032Q\n\024Andr" + - "oidAppStreamData\022\035\n\017firebase_app_id\030\001 \001(" + - "\tB\004\342A\001\003\022\032\n\014package_name\030\002 \001(\tB\004\342A\001\005\032K\n\020I" + - "osAppStreamData\022\035\n\017firebase_app_id\030\001 \001(\t" + - "B\004\342A\001\003\022\030\n\tbundle_id\030\002 \001(\tB\005\342A\002\005\002\"}\n\016Data" + - "StreamType\022 \n\034DATA_STREAM_TYPE_UNSPECIFI" + - "ED\020\000\022\023\n\017WEB_DATA_STREAM\020\001\022\033\n\027ANDROID_APP" + - "_DATA_STREAM\020\002\022\027\n\023IOS_APP_DATA_STREAM\020\003:" + - "^\352A[\n(analyticsadmin.googleapis.com/Data" + - "Stream\022/properties/{property}/dataStream" + - "s/{data_stream}B\r\n\013stream_data\"\326\001\n\014Fireb" + - "aseLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\025\n\007project\030\002" + - " \001(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\003:d\352Aa\n*analytic" + - "sadmin.googleapis.com/FirebaseLink\0223prop" + - "erties/{property}/firebaseLinks/{firebas" + - "e_link}\"\253\001\n\rGlobalSiteTag\022\022\n\004name\030\001 \001(\tB" + - "\004\342A\001\003\022\025\n\007snippet\030\002 \001(\tB\004\342A\001\005:o\352Al\n+analy" + - "ticsadmin.googleapis.com/GlobalSiteTag\022=" + - "properties/{property}/dataStreams/{data_" + - "stream}/globalSiteTag\"\236\003\n\rGoogleAdsLink\022" + - "\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\031\n\013customer_id\030\003 \001(\t" + - "B\004\342A\001\005\022 \n\022can_manage_clients\030\004 \001(\010B\004\342A\001\003" + - "\022?\n\033ads_personalization_enabled\030\005 \001(\0132\032." + - "google.protobuf.BoolValue\0225\n\013create_time" + - "\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + - "\0225\n\013update_time\030\010 \001(\0132\032.google.protobuf." + - "TimestampB\004\342A\001\003\022#\n\025creator_email_address" + - "\030\t \001(\tB\004\342A\001\003:h\352Ae\n+analyticsadmin.google" + - "apis.com/GoogleAdsLink\0226properties/{prop" + - "erty}/googleAdsLinks/{google_ads_link}\"\354" + - "\002\n\023DataSharingSettings\022\022\n\004name\030\001 \001(\tB\004\342A" + - "\001\003\022+\n#sharing_with_google_support_enable" + - "d\030\002 \001(\010\0222\n*sharing_with_google_assigned_" + - "sales_enabled\030\003 \001(\010\022-\n%sharing_with_goog" + - "le_any_sales_enabled\030\004 \001(\010\022,\n$sharing_wi" + - "th_google_products_enabled\030\005 \001(\010\022#\n\033shar" + - "ing_with_others_enabled\030\006 \001(\010:^\352A[\n1anal" + - "yticsadmin.googleapis.com/DataSharingSet" + - "tings\022&accounts/{account}/dataSharingSet" + - "tings\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022;" + - "\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.goo" + - "gleapis.com/Account\022\024\n\014display_name\030\003 \001(" + - "\t\022K\n\022property_summaries\030\004 \003(\0132/.google.a" + - "nalytics.admin.v1alpha.PropertySummary:U" + - "\352AR\n,analyticsadmin.googleapis.com/Accou" + - "ntSummary\022\"accountSummaries/{account_sum" + - "mary}\"\273\001\n\017PropertySummary\022=\n\010property\030\001 " + - "\001(\tB+\372A(\n&analyticsadmin.googleapis.com/" + - "Property\022\024\n\014display_name\030\002 \001(\t\022C\n\rproper" + - "ty_type\030\003 \001(\0162,.google.analytics.admin.v" + - "1alpha.PropertyType\022\016\n\006parent\030\004 \001(\t\"\221\002\n\031" + - "MeasurementProtocolSecret\022\022\n\004name\030\001 \001(\tB" + - "\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\032\n\014sec" + - "ret_value\030\003 \001(\tB\004\342A\001\003:\247\001\352A\243\001\n7analyticsa" + - "dmin.googleapis.com/MeasurementProtocolS" + - "ecret\022hproperties/{property}/dataStreams" + - "/{data_stream}/measurementProtocolSecret" + - "s/{measurement_protocol_secret}\"\205\004\n SKAd" + - "NetworkConversionValueSchema\022\022\n\004name\030\001 \001" + - "(\tB\004\342A\001\003\022Q\n\023postback_window_one\030\002 \001(\0132.." + - "google.analytics.admin.v1alpha.PostbackW" + - "indowB\004\342A\001\002\022K\n\023postback_window_two\030\003 \001(\013" + - "2..google.analytics.admin.v1alpha.Postba" + - "ckWindow\022M\n\025postback_window_three\030\004 \001(\0132" + - "..google.analytics.admin.v1alpha.Postbac" + - "kWindow\022\037\n\027apply_conversion_values\030\005 \001(\010" + - ":\274\001\352A\270\001\n>analyticsadmin.googleapis.com/S" + - "KAdNetworkConversionValueSchema\022vpropert" + - "ies/{property}/dataStreams/{data_stream}" + - "/sKAdNetworkConversionValueSchema/{skadn" + - "etwork_conversion_value_schema}\"\207\001\n\016Post" + - "backWindow\022K\n\021conversion_values\030\001 \003(\01320." + - "google.analytics.admin.v1alpha.Conversio" + - "nValues\022(\n postback_window_settings_enab" + - "led\030\002 \001(\010\"\365\001\n\020ConversionValues\022\024\n\014displa" + - "y_name\030\001 \001(\t\022\027\n\nfine_value\030\002 \001(\005H\000\210\001\001\022G\n" + - "\014coarse_value\030\003 \001(\0162+.google.analytics.a" + - "dmin.v1alpha.CoarseValueB\004\342A\001\002\022D\n\016event_" + - "mappings\030\004 \003(\0132,.google.analytics.admin." + - "v1alpha.EventMapping\022\024\n\014lock_enabled\030\005 \001" + - "(\010B\r\n\013_fine_value\"\360\001\n\014EventMapping\022\030\n\nev" + - "ent_name\030\001 \001(\tB\004\342A\001\002\022\034\n\017min_event_count\030" + - "\002 \001(\003H\000\210\001\001\022\034\n\017max_event_count\030\003 \001(\003H\001\210\001\001" + - "\022\034\n\017min_event_value\030\004 \001(\001H\002\210\001\001\022\034\n\017max_ev" + - "ent_value\030\005 \001(\001H\003\210\001\001B\022\n\020_min_event_count" + - "B\022\n\020_max_event_countB\022\n\020_min_event_value" + - "B\022\n\020_max_event_value\"\212\002\n\022ChangeHistoryEv" + - "ent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time\030\002 \001(\0132\032.g" + - "oogle.protobuf.Timestamp\022=\n\nactor_type\030\003" + - " \001(\0162).google.analytics.admin.v1alpha.Ac" + - "torType\022\030\n\020user_actor_email\030\004 \001(\t\022\030\n\020cha" + - "nges_filtered\030\005 \001(\010\022D\n\007changes\030\006 \003(\01323.g" + - "oogle.analytics.admin.v1alpha.ChangeHist" + - "oryChange\"\220\022\n\023ChangeHistoryChange\022\020\n\010res" + - "ource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*.google.ana" + - "lytics.admin.v1alpha.ActionType\022i\n\026resou" + - "rce_before_change\030\003 \001(\0132I.google.analyti" + - "cs.admin.v1alpha.ChangeHistoryChange.Cha" + - "ngeHistoryResource\022h\n\025resource_after_cha" + - "nge\030\004 \001(\0132I.google.analytics.admin.v1alp" + - "ha.ChangeHistoryChange.ChangeHistoryReso" + - "urce\032\325\017\n\025ChangeHistoryResource\022:\n\007accoun" + - "t\030\001 \001(\0132\'.google.analytics.admin.v1alpha" + - ".AccountH\000\022<\n\010property\030\002 \001(\0132(.google.an" + - "alytics.admin.v1alpha.PropertyH\000\022E\n\rfire" + - "base_link\030\006 \001(\0132,.google.analytics.admin" + - ".v1alpha.FirebaseLinkH\000\022H\n\017google_ads_li" + - "nk\030\007 \001(\0132-.google.analytics.admin.v1alph" + - "a.GoogleAdsLinkH\000\022X\n\027google_signals_sett" + - "ings\030\010 \001(\01325.google.analytics.admin.v1al" + - "pha.GoogleSignalsSettingsH\000\022j\n!display_v" + - "ideo_360_advertiser_link\030\t \001(\0132=.google." + - "analytics.admin.v1alpha.DisplayVideo360A" + - "dvertiserLinkH\000\022{\n*display_video_360_adv" + - "ertiser_link_proposal\030\n \001(\0132E.google.ana" + - "lytics.admin.v1alpha.DisplayVideo360Adve" + - "rtiserLinkProposalH\000\022K\n\020conversion_event" + - "\030\013 \001(\0132/.google.analytics.admin.v1alpha." + - "ConversionEventH\000\022`\n\033measurement_protoco" + - "l_secret\030\014 \001(\01329.google.analytics.admin." + - "v1alpha.MeasurementProtocolSecretH\000\022K\n\020c" + - "ustom_dimension\030\r \001(\0132/.google.analytics" + - ".admin.v1alpha.CustomDimensionH\000\022E\n\rcust" + - "om_metric\030\016 \001(\0132,.google.analytics.admin" + - ".v1alpha.CustomMetricH\000\022X\n\027data_retentio" + - "n_settings\030\017 \001(\01325.google.analytics.admi" + - "n.v1alpha.DataRetentionSettingsH\000\022O\n\023sea" + - "rch_ads_360_link\030\020 \001(\01320.google.analytic" + - "s.admin.v1alpha.SearchAds360LinkH\000\022A\n\013da" + - "ta_stream\030\022 \001(\0132*.google.analytics.admin" + - ".v1alpha.DataStreamH\000\022S\n\024attribution_set" + - "tings\030\024 \001(\01323.google.analytics.admin.v1a" + - "lpha.AttributionSettingsH\000\022L\n\021expanded_d" + - "ata_set\030\025 \001(\0132/.google.analytics.admin.v" + - "1alpha.ExpandedDataSetH\000\022E\n\rchannel_grou" + - "p\030\026 \001(\0132,.google.analytics.admin.v1alpha" + - ".ChannelGroupH\000\022E\n\rbigquery_link\030\027 \001(\0132," + - ".google.analytics.admin.v1alpha.BigQuery" + - "LinkH\000\022d\n\035enhanced_measurement_settings\030" + - "\030 \001(\0132;.google.analytics.admin.v1alpha.E" + - "nhancedMeasurementSettingsH\000\022X\n\027data_red" + - "action_settings\030\031 \001(\01325.google.analytics" + - ".admin.v1alpha.DataRedactionSettingsH\000\022o" + - "\n#skadnetwork_conversion_value_schema\030\032 " + - "\001(\0132@.google.analytics.admin.v1alpha.SKA" + - "dNetworkConversionValueSchemaH\000\022C\n\014adsen" + - "se_link\030\033 \001(\0132+.google.analytics.admin.v" + - "1alpha.AdSenseLinkH\000\022<\n\010audience\030\034 \001(\0132(" + - ".google.analytics.admin.v1alpha.Audience" + - "H\000\022L\n\021event_create_rule\030\035 \001(\0132/.google.a" + - "nalytics.admin.v1alpha.EventCreateRuleH\000" + - "B\n\n\010resource\"\344\003\n\035DisplayVideo360Advertis" + - "erLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\033\n\radvertiser" + - "_id\030\002 \001(\tB\004\342A\001\005\022%\n\027advertiser_display_na" + - "me\030\003 \001(\tB\004\342A\001\003\022?\n\033ads_personalization_en" + - "abled\030\004 \001(\0132\032.google.protobuf.BoolValue\022" + - "G\n\035campaign_data_sharing_enabled\030\005 \001(\0132\032" + - ".google.protobuf.BoolValueB\004\342A\001\005\022C\n\031cost" + - "_data_sharing_enabled\030\006 \001(\0132\032.google.pro" + - "tobuf.BoolValueB\004\342A\001\005:\233\001\352A\227\001\n;analyticsa" + - "dmin.googleapis.com/DisplayVideo360Adver" + - "tiserLink\022Xproperties/{property}/display" + - "Video360AdvertiserLinks/{display_video_3" + - "60_advertiser_link}\"\222\005\n%DisplayVideo360A" + - "dvertiserLinkProposal\022\022\n\004name\030\001 \001(\tB\004\342A\001" + - "\003\022\033\n\radvertiser_id\030\002 \001(\tB\004\342A\001\005\022e\n\034link_p" + - "roposal_status_details\030\003 \001(\01329.google.an" + - "alytics.admin.v1alpha.LinkProposalStatus" + - "DetailsB\004\342A\001\003\022%\n\027advertiser_display_name" + - "\030\004 \001(\tB\004\342A\001\003\022\036\n\020validation_email\030\005 \001(\tB\004" + - "\342A\001\004\022E\n\033ads_personalization_enabled\030\006 \001(" + - "\0132\032.google.protobuf.BoolValueB\004\342A\001\005\022G\n\035c" + - "ampaign_data_sharing_enabled\030\007 \001(\0132\032.goo" + - "gle.protobuf.BoolValueB\004\342A\001\005\022C\n\031cost_dat" + - "a_sharing_enabled\030\010 \001(\0132\032.google.protobu" + - "f.BoolValueB\004\342A\001\005:\264\001\352A\260\001\nCanalyticsadmin" + - ".googleapis.com/DisplayVideo360Advertise" + - "rLinkProposal\022iproperties/{property}/dis" + - "playVideo360AdvertiserLinkProposals/{dis" + - "play_video_360_advertiser_link_proposal}" + - "\"\355\003\n\020SearchAds360Link\022\022\n\004name\030\001 \001(\tB\004\342A\001" + - "\003\022\033\n\radvertiser_id\030\002 \001(\tB\004\342A\001\005\022G\n\035campai" + - "gn_data_sharing_enabled\030\003 \001(\0132\032.google.p" + - "rotobuf.BoolValueB\004\342A\001\005\022C\n\031cost_data_sha" + - "ring_enabled\030\004 \001(\0132\032.google.protobuf.Boo" + - "lValueB\004\342A\001\005\022%\n\027advertiser_display_name\030" + - "\005 \001(\tB\004\342A\001\003\022?\n\033ads_personalization_enabl" + - "ed\030\006 \001(\0132\032.google.protobuf.BoolValue\022>\n\032" + - "site_stats_sharing_enabled\030\007 \001(\0132\032.googl" + - "e.protobuf.BoolValue:r\352Ao\n.analyticsadmi" + - "n.googleapis.com/SearchAds360Link\022=prope" + - "rties/{property}/searchAds360Links/{sear" + - "ch_ads_360_link}\"\377\001\n\031LinkProposalStatusD" + - "etails\022m\n link_proposal_initiating_produ" + - "ct\030\001 \001(\0162=.google.analytics.admin.v1alph" + - "a.LinkProposalInitiatingProductB\004\342A\001\003\022\035\n" + - "\017requestor_email\030\002 \001(\tB\004\342A\001\003\022T\n\023link_pro" + - "posal_state\030\003 \001(\01621.google.analytics.adm" + - "in.v1alpha.LinkProposalStateB\004\342A\001\003\"\357\003\n\017C" + - "onversionEvent\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\030\n\nev" + - "ent_name\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time\030\003 \001(" + - "\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\027\n\td" + - "eletable\030\004 \001(\010B\004\342A\001\003\022\024\n\006custom\030\005 \001(\010B\004\342A" + - "\001\003\022g\n\017counting_method\030\006 \001(\0162H.google.ana" + - "lytics.admin.v1alpha.ConversionEvent.Con" + - "versionCountingMethodB\004\342A\001\001\"p\n\030Conversio" + - "nCountingMethod\022*\n&CONVERSION_COUNTING_M" + - "ETHOD_UNSPECIFIED\020\000\022\022\n\016ONCE_PER_EVENT\020\001\022" + - "\024\n\020ONCE_PER_SESSION\020\002:m\352Aj\n-analyticsadm" + - "in.googleapis.com/ConversionEvent\0229prope" + - "rties/{property}/conversionEvents/{conve" + - "rsion_event}\"\242\002\n\025GoogleSignalsSettings\022\022" + - "\n\004name\030\001 \001(\tB\004\342A\001\003\022A\n\005state\030\003 \001(\01622.goog" + - "le.analytics.admin.v1alpha.GoogleSignals" + - "State\022K\n\007consent\030\004 \001(\01624.google.analytic" + - "s.admin.v1alpha.GoogleSignalsConsentB\004\342A" + - "\001\003:e\352Ab\n3analyticsadmin.googleapis.com/G" + - "oogleSignalsSettings\022+properties/{proper" + - "ty}/googleSignalsSettings\"\276\003\n\017CustomDime" + - "nsion\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_n" + - "ame\030\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004" + - "\342A\001\002\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022T\n\005scope" + - "\030\005 \001(\0162>.google.analytics.admin.v1alpha." + - "CustomDimension.DimensionScopeB\005\342A\002\002\005\022*\n" + - "\034disallow_ads_personalization\030\006 \001(\010B\004\342A\001" + - "\001\"P\n\016DimensionScope\022\037\n\033DIMENSION_SCOPE_U" + - "NSPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITE" + - "M\020\003:m\352Aj\n-analyticsadmin.googleapis.com/" + - "CustomDimension\0229properties/{property}/c" + - "ustomDimensions/{custom_dimension}\"\310\006\n\014C" + - "ustomMetric\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016param" + - "eter_name\030\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003" + - " \001(\tB\004\342A\001\002\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022\\\n" + - "\020measurement_unit\030\005 \001(\0162<.google.analyti" + - "cs.admin.v1alpha.CustomMetric.Measuremen" + - "tUnitB\004\342A\001\002\022N\n\005scope\030\006 \001(\01628.google.anal" + - "ytics.admin.v1alpha.CustomMetric.MetricS" + - "copeB\005\342A\002\002\005\022g\n\026restricted_metric_type\030\010 " + - "\003(\0162A.google.analytics.admin.v1alpha.Cus" + - "tomMetric.RestrictedMetricTypeB\004\342A\001\001\"\267\001\n" + - "\017MeasurementUnit\022 \n\034MEASUREMENT_UNIT_UNS" + - "PECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n\010CURRENCY\020\002\022\010" + - "\n\004FEET\020\003\022\n\n\006METERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005" + - "MILES\020\006\022\020\n\014MILLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013" + - "\n\007MINUTES\020\t\022\t\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n" + - "\030METRIC_SCOPE_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_" + - "\n\024RestrictedMetricType\022&\n\"RESTRICTED_MET" + - "RIC_TYPE_UNSPECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n" + - "\014REVENUE_DATA\020\002:d\352Aa\n*analyticsadmin.goo" + - "gleapis.com/CustomMetric\0223properties/{pr" + - "operty}/customMetrics/{custom_metric}\"\303\003" + - "\n\025DataRetentionSettings\022\022\n\004name\030\001 \001(\tB\004\342" + - "A\001\003\022e\n\024event_data_retention\030\002 \001(\0162G.goog" + - "le.analytics.admin.v1alpha.DataRetention" + - "Settings.RetentionDuration\022\'\n\037reset_user" + - "_data_on_new_activity\030\003 \001(\010\"\236\001\n\021Retentio" + - "nDuration\022\"\n\036RETENTION_DURATION_UNSPECIF" + - "IED\020\000\022\016\n\nTWO_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS" + - "\020\003\022\025\n\021TWENTY_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGH" + - "T_MONTHS\020\005\022\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analy" + - "ticsadmin.googleapis.com/DataRetentionSe" + - "ttings\022+properties/{property}/dataRetent" + - "ionSettings\"\252\r\n\023AttributionSettings\022\022\n\004n" + - "ame\030\001 \001(\tB\004\342A\001\003\022\230\001\n,acquisition_conversi" + - "on_event_lookback_window\030\002 \001(\0162\\.google." + - "analytics.admin.v1alpha.AttributionSetti" + - "ngs.AcquisitionConversionEventLookbackWi" + - "ndowB\004\342A\001\002\022\214\001\n&other_conversion_event_lo" + - "okback_window\030\003 \001(\0162V.google.analytics.a" + - "dmin.v1alpha.AttributionSettings.OtherCo" + - "nversionEventLookbackWindowB\004\342A\001\002\022x\n\033rep" + - "orting_attribution_model\030\004 \001(\0162M.google." + - "analytics.admin.v1alpha.AttributionSetti" + - "ngs.ReportingAttributionModelB\004\342A\001\002\022\207\001\n$" + - "ads_web_conversion_data_export_scope\030\005 \001" + - "(\0162S.google.analytics.admin.v1alpha.Attr" + - "ibutionSettings.AdsWebConversionDataExpo" + - "rtScopeB\004\342A\001\002\"\333\001\n(AcquisitionConversionE" + - "ventLookbackWindow\022<\n8ACQUISITION_CONVER" + - "SION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000" + - "\0227\n3ACQUISITION_CONVERSION_EVENT_LOOKBAC" + - "K_WINDOW_7_DAYS\020\001\0228\n4ACQUISITION_CONVERS" + - "ION_EVENT_LOOKBACK_WINDOW_30_DAYS\020\002\"\370\001\n\"" + - "OtherConversionEventLookbackWindow\0226\n2OT" + - "HER_CONVERSION_EVENT_LOOKBACK_WINDOW_UNS" + - "PECIFIED\020\000\0222\n.OTHER_CONVERSION_EVENT_LOO" + - "KBACK_WINDOW_30_DAYS\020\001\0222\n.OTHER_CONVERSI" + - "ON_EVENT_LOOKBACK_WINDOW_60_DAYS\020\002\0222\n.OT" + - "HER_CONVERSION_EVENT_LOOKBACK_WINDOW_90_" + - "DAYS\020\003\"\353\002\n\031ReportingAttributionModel\022+\n\'" + - "REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\020" + - "\000\022)\n%PAID_AND_ORGANIC_CHANNELS_DATA_DRIV" + - "EN\020\001\022(\n$PAID_AND_ORGANIC_CHANNELS_LAST_C" + - "LICK\020\002\022)\n%PAID_AND_ORGANIC_CHANNELS_FIRS" + - "T_CLICK\020\003\022$\n PAID_AND_ORGANIC_CHANNELS_L" + - "INEAR\020\004\022,\n(PAID_AND_ORGANIC_CHANNELS_POS" + - "ITION_BASED\020\005\022(\n$PAID_AND_ORGANIC_CHANNE" + - "LS_TIME_DECAY\020\006\022#\n\037GOOGLE_PAID_CHANNELS_" + - "LAST_CLICK\020\007\"\246\001\n\037AdsWebConversionDataExp" + - "ortScope\0224\n0ADS_WEB_CONVERSION_DATA_EXPO" + - "RT_SCOPE_UNSPECIFIED\020\000\022\024\n\020NOT_SELECTED_Y" + - "ET\020\001\022\035\n\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n\024G" + - "OOGLE_PAID_CHANNELS\020\003:a\352A^\n1analyticsadm" + - "in.googleapis.com/AttributionSettings\022)p" + - "roperties/{property}/attributionSettings" + - "\"\362\001\n\rAccessBinding\022\016\n\004user\030\002 \001(\tH\000\022\022\n\004na" + - "me\030\001 \001(\tB\004\342A\001\003\022\r\n\005roles\030\003 \003(\t:\234\001\352A\230\001\n+an" + - "alyticsadmin.googleapis.com/AccessBindin" + - "g\0222accounts/{account}/accessBindings/{ac" + - "cess_binding}\0225properties/{property}/acc" + - "essBindings/{access_binding}B\017\n\raccess_t" + - "arget\"\213\003\n\014BigQueryLink\022\022\n\004name\030\001 \001(\tB\004\342A" + - "\001\003\022\025\n\007project\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time" + - "\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + - "\022\034\n\024daily_export_enabled\030\004 \001(\010\022 \n\030stream" + - "ing_export_enabled\030\005 \001(\010\022\"\n\032fresh_daily_" + - "export_enabled\030\t \001(\010\022\036\n\026include_advertis" + - "ing_id\030\006 \001(\010\022\026\n\016export_streams\030\007 \003(\t\022\027\n\017" + - "excluded_events\030\010 \003(\t:d\352Aa\n*analyticsadm" + - "in.googleapis.com/BigQueryLink\0223properti" + - "es/{property}/bigQueryLinks/{bigquery_li" + - "nk}\"\365\003\n\033EnhancedMeasurementSettings\022\022\n\004n" + - "ame\030\001 \001(\tB\004\342A\001\003\022\026\n\016stream_enabled\030\002 \001(\010\022" + - "\027\n\017scrolls_enabled\030\003 \001(\010\022\037\n\027outbound_cli" + - "cks_enabled\030\004 \001(\010\022\033\n\023site_search_enabled" + - "\030\005 \001(\010\022 \n\030video_engagement_enabled\030\006 \001(\010" + - "\022\036\n\026file_downloads_enabled\030\007 \001(\010\022\034\n\024page" + - "_changes_enabled\030\010 \001(\010\022!\n\031form_interacti" + - "ons_enabled\030\t \001(\010\022$\n\026search_query_parame" + - "ter\030\n \001(\tB\004\342A\001\002\022\033\n\023uri_query_parameter\030\013" + - " \001(\t:\214\001\352A\210\001\n9analyticsadmin.googleapis.c" + - "om/EnhancedMeasurementSettings\022Kproperti" + - "es/{property}/dataStreams/{data_stream}/" + - "enhancedMeasurementSettings\"D\n\020Connected" + - "SiteTag\022\032\n\014display_name\030\001 \001(\tB\004\342A\001\002\022\024\n\006t" + - "ag_id\030\002 \001(\tB\004\342A\001\002\"\226\002\n\025DataRedactionSetti" + - "ngs\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\037\n\027email_redacti" + - "on_enabled\030\002 \001(\010\022)\n!query_parameter_reda" + - "ction_enabled\030\003 \001(\010\022\034\n\024query_parameter_k" + - "eys\030\004 \003(\t:\177\352A|\n3analyticsadmin.googleapi" + - "s.com/DataRedactionSettings\022Eproperties/" + - "{property}/dataStreams/{data_stream}/dat" + - "aRedactionSettings\"\242\001\n\013AdSenseLink\022\022\n\004na" + - "me\030\001 \001(\tB\004\342A\001\003\022\034\n\016ad_client_code\030\002 \001(\tB\004" + - "\342A\001\005:a\352A^\n)analyticsadmin.googleapis.com" + - "/AdSenseLink\0221properties/{property}/adSe" + - "nseLinks/{adsense_link}\"\220\002\n\030RollupProper" + - "tySourceLink\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\017sour" + - "ce_property\030\002 \001(\tB\004\342A\001\005:\300\001\352A\274\001\n6analytic", - "sadmin.googleapis.com/RollupPropertySour" + - "ceLink\022Mproperties/{property}/rollupProp" + - "ertySourceLinks/{rollup_property_source_" + - "link}*\031rollupPropertySourceLinks2\030rollup" + - "PropertySourceLink*\252\004\n\020IndustryCategory\022" + - "!\n\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAU" + - "TOMOTIVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MA" + - "RKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\n" + - "TECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026A" + - "RTS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_AND_FI" + - "TNESS\020\t\022\030\n\024BOOKS_AND_LITERATURE\020\n\022\022\n\016FOO" + - "D_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOBBIES_AND_" + - "LEISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERN" + - "ET_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020" + - "\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PE" + - "OPLE_AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024" + - "\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENCE\020\026\022\013\n\007SCIE" + - "NCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_EDUCATION\020" + - "\031\022\014\n\010SHOPPING\020\032*f\n\014ServiceLevel\022\035\n\031SERVI" + - "CE_LEVEL_UNSPECIFIED\020\000\022\035\n\031GOOGLE_ANALYTI" + - "CS_STANDARD\020\001\022\030\n\024GOOGLE_ANALYTICS_360\020\002*" + - "J\n\tActorType\022\032\n\026ACTOR_TYPE_UNSPECIFIED\020\000" + - "\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nA" + - "ctionType\022\033\n\027ACTION_TYPE_UNSPECIFIED\020\000\022\013" + - "\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007DELETED\020\003*\213\005" + - "\n\031ChangeHistoryResourceType\022,\n(CHANGE_HI" + - "STORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n\007ACC" + - "OUNT\020\001\022\014\n\010PROPERTY\020\002\022\021\n\rFIREBASE_LINK\020\006\022" + - "\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n\027GOOGLE_SIGNALS_S" + - "ETTINGS\020\010\022\024\n\020CONVERSION_EVENT\020\t\022\037\n\033MEASU" + - "REMENT_PROTOCOL_SECRET\020\n\022\024\n\020CUSTOM_DIMEN" + - "SION\020\013\022\021\n\rCUSTOM_METRIC\020\014\022\033\n\027DATA_RETENT" + - "ION_SETTINGS\020\r\022%\n!DISPLAY_VIDEO_360_ADVE" + - "RTISER_LINK\020\016\022.\n*DISPLAY_VIDEO_360_ADVER" + - "TISER_LINK_PROPOSAL\020\017\022\027\n\023SEARCH_ADS_360_" + - "LINK\020\020\022\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_S" + - "ETTINGS\020\024\022\025\n\021EXPANDED_DATA_SET\020\025\022\021\n\rCHAN" + - "NEL_GROUP\020\026\022!\n\035ENHANCED_MEASUREMENT_SETT" + - "INGS\020\030\022\033\n\027DATA_REDACTION_SETTINGS\020\031\022\'\n#S" + - "KADNETWORK_CONVERSION_VALUE_SCHEMA\020\032\022\020\n\014" + - "ADSENSE_LINK\020\033\022\014\n\010AUDIENCE\020\034\022\025\n\021EVENT_CR" + - "EATE_RULE\020\035*s\n\022GoogleSignalsState\022$\n GOO" + - "GLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GOOGL" + - "E_SIGNALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS_DI" + - "SABLED\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"GOO" + - "GLE_SIGNALS_CONSENT_UNSPECIFIED\020\000\022$\n GOO" + - "GLE_SIGNALS_CONSENT_CONSENTED\020\002\022(\n$GOOGL" + - "E_SIGNALS_CONSENT_NOT_CONSENTED\020\001*{\n\035Lin" + - "kProposalInitiatingProduct\0220\n,LINK_PROPO" + - "SAL_INITIATING_PRODUCT_UNSPECIFIED\020\000\022\024\n\020" + - "GOOGLE_ANALYTICS\020\001\022\022\n\016LINKED_PRODUCT\020\002*\304" + - "\001\n\021LinkProposalState\022#\n\037LINK_PROPOSAL_ST" + - "ATE_UNSPECIFIED\020\000\022)\n%AWAITING_REVIEW_FRO" + - "M_GOOGLE_ANALYTICS\020\001\022\'\n#AWAITING_REVIEW_" + - "FROM_LINKED_PRODUCT\020\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010" + - "DECLINED\020\004\022\013\n\007EXPIRED\020\005\022\014\n\010OBSOLETE\020\006*\202\001" + - "\n\014PropertyType\022\035\n\031PROPERTY_TYPE_UNSPECIF" + - "IED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035\n\031PRO" + - "PERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERTY_TYP" + - "E_ROLLUP\020\003*q\n\013CoarseValue\022\034\n\030COARSE_VALU" + - "E_UNSPECIFIED\020\000\022\024\n\020COARSE_VALUE_LOW\020\001\022\027\n" + - "\023COARSE_VALUE_MEDIUM\020\002\022\025\n\021COARSE_VALUE_H" + - "IGH\020\003Bv\n\"com.google.analytics.admin.v1al" + - "phaB\016ResourcesProtoP\001Z>cloud.google.com/" + - "go/analytics/admin/apiv1alpha/adminpb;ad" + - "minpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(), - com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(), - com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(), - com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1alpha_Account_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_Account_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_Account_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "DisplayName", "RegionCode", "Deleted", }); - internal_static_google_analytics_admin_v1alpha_Property_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_Property_descriptor, - new java.lang.String[] { "Name", "PropertyType", "CreateTime", "UpdateTime", "Parent", "DisplayName", "IndustryCategory", "TimeZone", "CurrencyCode", "ServiceLevel", "DeleteTime", "ExpireTime", "Account", }); - internal_static_google_analytics_admin_v1alpha_DataStream_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_DataStream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DataStream_descriptor, - new java.lang.String[] { "WebStreamData", "AndroidAppStreamData", "IosAppStreamData", "Name", "Type", "DisplayName", "CreateTime", "UpdateTime", "StreamData", }); - internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor = - internal_static_google_analytics_admin_v1alpha_DataStream_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DataStream_WebStreamData_descriptor, - new java.lang.String[] { "MeasurementId", "FirebaseAppId", "DefaultUri", }); - internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor = - internal_static_google_analytics_admin_v1alpha_DataStream_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DataStream_AndroidAppStreamData_descriptor, - new java.lang.String[] { "FirebaseAppId", "PackageName", }); - internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor = - internal_static_google_analytics_admin_v1alpha_DataStream_descriptor.getNestedTypes().get(2); - internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DataStream_IosAppStreamData_descriptor, - new java.lang.String[] { "FirebaseAppId", "BundleId", }); - internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_FirebaseLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor, - new java.lang.String[] { "Name", "Project", "CreateTime", }); - internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor, - new java.lang.String[] { "Name", "Snippet", }); - internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GoogleAdsLink_descriptor, - new java.lang.String[] { "Name", "CustomerId", "CanManageClients", "AdsPersonalizationEnabled", "CreateTime", "UpdateTime", "CreatorEmailAddress", }); - internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1alpha_DataSharingSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor, - new java.lang.String[] { "Name", "SharingWithGoogleSupportEnabled", "SharingWithGoogleAssignedSalesEnabled", "SharingWithGoogleAnySalesEnabled", "SharingWithGoogleProductsEnabled", "SharingWithOthersEnabled", }); - internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1alpha_AccountSummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccountSummary_descriptor, - new java.lang.String[] { "Name", "Account", "DisplayName", "PropertySummaries", }); - internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor, - new java.lang.String[] { "Property", "DisplayName", "PropertyType", "Parent", }); - internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor, - new java.lang.String[] { "Name", "DisplayName", "SecretValue", }); - internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor, - new java.lang.String[] { "Name", "PostbackWindowOne", "PostbackWindowTwo", "PostbackWindowThree", "ApplyConversionValues", }); - internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_admin_v1alpha_PostbackWindow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_PostbackWindow_descriptor, - new java.lang.String[] { "ConversionValues", "PostbackWindowSettingsEnabled", }); - internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_admin_v1alpha_ConversionValues_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ConversionValues_descriptor, - new java.lang.String[] { "DisplayName", "FineValue", "CoarseValue", "EventMappings", "LockEnabled", "FineValue", }); - internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_admin_v1alpha_EventMapping_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_EventMapping_descriptor, - new java.lang.String[] { "EventName", "MinEventCount", "MaxEventCount", "MinEventValue", "MaxEventValue", "MinEventCount", "MaxEventCount", "MinEventValue", "MaxEventValue", }); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor, - new java.lang.String[] { "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", }); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor, - new java.lang.String[] { "Resource", "Action", "ResourceBeforeChange", "ResourceAfterChange", }); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor = - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor, - new java.lang.String[] { "Account", "Property", "FirebaseLink", "GoogleAdsLink", "GoogleSignalsSettings", "DisplayVideo360AdvertiserLink", "DisplayVideo360AdvertiserLinkProposal", "ConversionEvent", "MeasurementProtocolSecret", "CustomDimension", "CustomMetric", "DataRetentionSettings", "SearchAds360Link", "DataStream", "AttributionSettings", "ExpandedDataSet", "ChannelGroup", "BigqueryLink", "EnhancedMeasurementSettings", "DataRedactionSettings", "SkadnetworkConversionValueSchema", "AdsenseLink", "Audience", "EventCreateRule", "Resource", }); - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor, - new java.lang.String[] { "Name", "AdvertiserId", "AdvertiserDisplayName", "AdsPersonalizationEnabled", "CampaignDataSharingEnabled", "CostDataSharingEnabled", }); - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor, - new java.lang.String[] { "Name", "AdvertiserId", "LinkProposalStatusDetails", "AdvertiserDisplayName", "ValidationEmail", "AdsPersonalizationEnabled", "CampaignDataSharingEnabled", "CostDataSharingEnabled", }); - internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor, - new java.lang.String[] { "Name", "AdvertiserId", "CampaignDataSharingEnabled", "CostDataSharingEnabled", "AdvertiserDisplayName", "AdsPersonalizationEnabled", "SiteStatsSharingEnabled", }); - internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor, - new java.lang.String[] { "LinkProposalInitiatingProduct", "RequestorEmail", "LinkProposalState", }); - internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor, - new java.lang.String[] { "Name", "EventName", "CreateTime", "Deletable", "Custom", "CountingMethod", }); - internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor, - new java.lang.String[] { "Name", "State", "Consent", }); - internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor, - new java.lang.String[] { "Name", "ParameterName", "DisplayName", "Description", "Scope", "DisallowAdsPersonalization", }); - internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor, - new java.lang.String[] { "Name", "ParameterName", "DisplayName", "Description", "MeasurementUnit", "Scope", "RestrictedMetricType", }); - internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor, - new java.lang.String[] { "Name", "EventDataRetention", "ResetUserDataOnNewActivity", }); - internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_admin_v1alpha_AttributionSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AttributionSettings_descriptor, - new java.lang.String[] { "Name", "AcquisitionConversionEventLookbackWindow", "OtherConversionEventLookbackWindow", "ReportingAttributionModel", "AdsWebConversionDataExportScope", }); - internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_admin_v1alpha_AccessBinding_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AccessBinding_descriptor, - new java.lang.String[] { "User", "Name", "Roles", "AccessTarget", }); - internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_analytics_admin_v1alpha_BigQueryLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_BigQueryLink_descriptor, - new java.lang.String[] { "Name", "Project", "CreateTime", "DailyExportEnabled", "StreamingExportEnabled", "FreshDailyExportEnabled", "IncludeAdvertisingId", "ExportStreams", "ExcludedEvents", }); - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_EnhancedMeasurementSettings_descriptor, - new java.lang.String[] { "Name", "StreamEnabled", "ScrollsEnabled", "OutboundClicksEnabled", "SiteSearchEnabled", "VideoEngagementEnabled", "FileDownloadsEnabled", "PageChangesEnabled", "FormInteractionsEnabled", "SearchQueryParameter", "UriQueryParameter", }); - internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_ConnectedSiteTag_descriptor, - new java.lang.String[] { "DisplayName", "TagId", }); - internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_DataRedactionSettings_descriptor, - new java.lang.String[] { "Name", "EmailRedactionEnabled", "QueryParameterRedactionEnabled", "QueryParameterKeys", }); - internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_analytics_admin_v1alpha_AdSenseLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_AdSenseLink_descriptor, - new java.lang.String[] { "Name", "AdClientCode", }); - internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor, - new java.lang.String[] { "Name", "SourceProperty", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); - com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(); - com.google.analytics.admin.v1alpha.EventCreateAndEdit.getDescriptor(); - com.google.analytics.admin.v1alpha.ExpandedDataSetProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java deleted file mode 100644 index be6420a21a44..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLink.java +++ /dev/null @@ -1,776 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A link that references a source property under the parent rollup property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RollupPropertySourceLink} - */ -public final class RollupPropertySourceLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RollupPropertySourceLink) - RollupPropertySourceLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use RollupPropertySourceLink.newBuilder() to construct. - private RollupPropertySourceLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RollupPropertySourceLink() { - name_ = ""; - sourceProperty_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RollupPropertySourceLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this RollupPropertySourceLink.
-   * Format:
-   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-   * Format: 'properties/123/rollupPropertySourceLinks/456'
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this RollupPropertySourceLink.
-   * Format:
-   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-   * Format: 'properties/123/rollupPropertySourceLinks/456'
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_PROPERTY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object sourceProperty_ = ""; - /** - *
-   * Immutable. Resource name of the source property.
-   * Format: properties/{property_id}
-   * Example: "properties/789"
-   * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The sourceProperty. - */ - @java.lang.Override - public java.lang.String getSourceProperty() { - java.lang.Object ref = sourceProperty_; - 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(); - sourceProperty_ = s; - return s; - } - } - /** - *
-   * Immutable. Resource name of the source property.
-   * Format: properties/{property_id}
-   * Example: "properties/789"
-   * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for sourceProperty. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSourcePropertyBytes() { - java.lang.Object ref = sourceProperty_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceProperty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceProperty_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sourceProperty_); - } - 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(sourceProperty_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sourceProperty_); - } - 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.admin.v1alpha.RollupPropertySourceLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.RollupPropertySourceLink other = (com.google.analytics.admin.v1alpha.RollupPropertySourceLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getSourceProperty() - .equals(other.getSourceProperty())) 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) + SOURCE_PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getSourceProperty().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.RollupPropertySourceLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link that references a source property under the parent rollup property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RollupPropertySourceLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RollupPropertySourceLink) - com.google.analytics.admin.v1alpha.RollupPropertySourceLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RollupPropertySourceLink.class, com.google.analytics.admin.v1alpha.RollupPropertySourceLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.RollupPropertySourceLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - sourceProperty_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_RollupPropertySourceLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink build() { - com.google.analytics.admin.v1alpha.RollupPropertySourceLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink buildPartial() { - com.google.analytics.admin.v1alpha.RollupPropertySourceLink result = new com.google.analytics.admin.v1alpha.RollupPropertySourceLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.RollupPropertySourceLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.sourceProperty_ = sourceProperty_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.RollupPropertySourceLink) { - return mergeFrom((com.google.analytics.admin.v1alpha.RollupPropertySourceLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.RollupPropertySourceLink other) { - if (other == com.google.analytics.admin.v1alpha.RollupPropertySourceLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSourceProperty().isEmpty()) { - sourceProperty_ = other.sourceProperty_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - sourceProperty_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this RollupPropertySourceLink.
-     * Format:
-     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-     * Format: 'properties/123/rollupPropertySourceLinks/456'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this RollupPropertySourceLink.
-     * Format:
-     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-     * Format: 'properties/123/rollupPropertySourceLinks/456'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this RollupPropertySourceLink.
-     * Format:
-     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-     * Format: 'properties/123/rollupPropertySourceLinks/456'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this RollupPropertySourceLink.
-     * Format:
-     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-     * Format: 'properties/123/rollupPropertySourceLinks/456'
-     * 
- * - * string name = 1 [(.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. Resource name of this RollupPropertySourceLink.
-     * Format:
-     * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-     * Format: 'properties/123/rollupPropertySourceLinks/456'
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object sourceProperty_ = ""; - /** - *
-     * Immutable. Resource name of the source property.
-     * Format: properties/{property_id}
-     * Example: "properties/789"
-     * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The sourceProperty. - */ - public java.lang.String getSourceProperty() { - java.lang.Object ref = sourceProperty_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceProperty_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Resource name of the source property.
-     * Format: properties/{property_id}
-     * Example: "properties/789"
-     * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for sourceProperty. - */ - public com.google.protobuf.ByteString - getSourcePropertyBytes() { - java.lang.Object ref = sourceProperty_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - sourceProperty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Resource name of the source property.
-     * Format: properties/{property_id}
-     * Example: "properties/789"
-     * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The sourceProperty to set. - * @return This builder for chaining. - */ - public Builder setSourceProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - sourceProperty_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of the source property.
-     * Format: properties/{property_id}
-     * Example: "properties/789"
-     * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearSourceProperty() { - sourceProperty_ = getDefaultInstance().getSourceProperty(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of the source property.
-     * Format: properties/{property_id}
-     * Example: "properties/789"
-     * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for sourceProperty to set. - * @return This builder for chaining. - */ - public Builder setSourcePropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - sourceProperty_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RollupPropertySourceLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RollupPropertySourceLink) - private static final com.google.analytics.admin.v1alpha.RollupPropertySourceLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RollupPropertySourceLink(); - } - - public static com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RollupPropertySourceLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RollupPropertySourceLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java deleted file mode 100644 index 15ab8eb248e0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RollupPropertySourceLinkOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -public interface RollupPropertySourceLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RollupPropertySourceLink) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this RollupPropertySourceLink.
-   * Format:
-   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-   * Format: 'properties/123/rollupPropertySourceLinks/456'
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this RollupPropertySourceLink.
-   * Format:
-   * 'properties/{property_id}/rollupPropertySourceLinks/{rollup_property_source_link}'
-   * Format: 'properties/123/rollupPropertySourceLinks/456'
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. Resource name of the source property.
-   * Format: properties/{property_id}
-   * Example: "properties/789"
-   * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The sourceProperty. - */ - java.lang.String getSourceProperty(); - /** - *
-   * Immutable. Resource name of the source property.
-   * Format: properties/{property_id}
-   * Example: "properties/789"
-   * 
- * - * string source_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for sourceProperty. - */ - com.google.protobuf.ByteString - getSourcePropertyBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java deleted file mode 100644 index 7ccc0fe6d575..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequest.java +++ /dev/null @@ -1,3799 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The request for a Data Access Record Report.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportRequest} - */ -public final class RunAccessReportRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportRequest) - RunAccessReportRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use RunAccessReportRequest.newBuilder() to construct. - private RunAccessReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RunAccessReportRequest() { - entity_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - dateRanges_ = java.util.Collections.emptyList(); - timeZone_ = ""; - orderBys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RunAccessReportRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, com.google.analytics.admin.v1alpha.RunAccessReportRequest.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object entity_ = ""; - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The entity. - */ - @java.lang.Override - public java.lang.String getEntity() { - java.lang.Object ref = entity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entity_ = s; - return s; - } - } - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The bytes for entity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEntityBytes() { - java.lang.Object ref = entity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - entity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List dimensions_; - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List metrics_; - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { - return metrics_.get(index); - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder( - int index) { - return metrics_.get(index); - } - - public static final int DATE_RANGES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List dateRanges_; - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List getDateRangesList() { - return dateRanges_; - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List - getDateRangesOrBuilderList() { - return dateRanges_; - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public int getDateRangesCount() { - return dateRanges_.size(); - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { - return dateRanges_.get(index); - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index) { - return dateRanges_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return Whether the dimensionFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionFilter() { - return dimensionFilter_ != null; - } - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { - return dimensionFilter_ == null ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return dimensionFilter_ == null ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 6; - private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return Whether the metricFilter field is set. - */ - @java.lang.Override - public boolean hasMetricFilter() { - return metricFilter_ != null; - } - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { - return metricFilter_ == null ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder() { - return metricFilter_ == null ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } - - public static final int OFFSET_FIELD_NUMBER = 7; - private long offset_ = 0L; - /** - *
-   * The row count of the start row. The first row is counted as row 0. If
-   * offset is unspecified, it is treated as 0. If offset is zero, then this
-   * method will return the first page of results with `limit` entries.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 8; - private long limit_ = 0L; - /** - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   *
-   * The API may return fewer rows than the requested `limit`, if there aren't
-   * as many remaining rows as the `limit`. For instance, there are fewer than
-   * 300 possible values for the dimension `country`, so when reporting on only
-   * `country`, you can't get more than 300 rows, even if you set `limit` to a
-   * higher value.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int TIME_ZONE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object timeZone_ = ""; - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The timeZone. - */ - @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The bytes for timeZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BYS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private java.util.List orderBys_; - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List getOrderBysList() { - return orderBys_; - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List - getOrderBysOrBuilderList() { - return orderBys_; - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public int getOrderBysCount() { - return orderBys_.size(); - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder( - int index) { - return orderBys_.get(index); - } - - public static final int RETURN_ENTITY_QUOTA_FIELD_NUMBER = 11; - private boolean returnEntityQuota_ = false; - /** - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-   * requests, this field must be false.
-   * 
- * - * bool return_entity_quota = 11; - * @return The returnEntityQuota. - */ - @java.lang.Override - public boolean getReturnEntityQuota() { - return returnEntityQuota_; - } - - public static final int INCLUDE_ALL_USERS_FIELD_NUMBER = 12; - private boolean includeAllUsers_ = false; - /** - *
-   * Optional. Determines whether to include users who have never made an API
-   * call in the response. If true, all users with access to the specified
-   * property or account are included in the response, regardless of whether
-   * they have made an API call or not. If false, only the users who have made
-   * an API call will be included.
-   * 
- * - * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The includeAllUsers. - */ - @java.lang.Override - public boolean getIncludeAllUsers() { - return includeAllUsers_; - } - - public static final int EXPAND_GROUPS_FIELD_NUMBER = 13; - private boolean expandGroups_ = false; - /** - *
-   * Optional. Decides whether to return the users within user groups. This
-   * field works only when include_all_users is set to true. If true, it will
-   * return all users with access to the specified property or account.
-   * If false, only the users with direct access will be returned.
-   * 
- * - * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return The expandGroups. - */ - @java.lang.Override - public boolean getExpandGroups() { - return expandGroups_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); - } - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - output.writeMessage(4, dateRanges_.get(i)); - } - if (dimensionFilter_ != null) { - output.writeMessage(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(6, getMetricFilter()); - } - if (offset_ != 0L) { - output.writeInt64(7, offset_); - } - if (limit_ != 0L) { - output.writeInt64(8, limit_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timeZone_); - } - for (int i = 0; i < orderBys_.size(); i++) { - output.writeMessage(10, orderBys_.get(i)); - } - if (returnEntityQuota_ != false) { - output.writeBool(11, returnEntityQuota_); - } - if (includeAllUsers_ != false) { - output.writeBool(12, includeAllUsers_); - } - if (expandGroups_ != false) { - output.writeBool(13, expandGroups_); - } - 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(entity_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_); - } - for (int i = 0; i < dimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, dateRanges_.get(i)); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetricFilter()); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, offset_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, limit_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, timeZone_); - } - for (int i = 0; i < orderBys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, orderBys_.get(i)); - } - if (returnEntityQuota_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, returnEntityQuota_); - } - if (includeAllUsers_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(12, includeAllUsers_); - } - if (expandGroups_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(13, expandGroups_); - } - 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.admin.v1alpha.RunAccessReportRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.RunAccessReportRequest other = (com.google.analytics.admin.v1alpha.RunAccessReportRequest) obj; - - if (!getEntity() - .equals(other.getEntity())) return false; - if (!getDimensionsList() - .equals(other.getDimensionsList())) return false; - if (!getMetricsList() - .equals(other.getMetricsList())) return false; - if (!getDateRangesList() - .equals(other.getDateRangesList())) return false; - if (hasDimensionFilter() != other.hasDimensionFilter()) return false; - if (hasDimensionFilter()) { - if (!getDimensionFilter() - .equals(other.getDimensionFilter())) return false; - } - if (hasMetricFilter() != other.hasMetricFilter()) return false; - if (hasMetricFilter()) { - if (!getMetricFilter() - .equals(other.getMetricFilter())) return false; - } - if (getOffset() - != other.getOffset()) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getTimeZone() - .equals(other.getTimeZone())) return false; - if (!getOrderBysList() - .equals(other.getOrderBysList())) return false; - if (getReturnEntityQuota() - != other.getReturnEntityQuota()) return false; - if (getIncludeAllUsers() - != other.getIncludeAllUsers()) return false; - if (getExpandGroups() - != other.getExpandGroups()) 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) + ENTITY_FIELD_NUMBER; - hash = (53 * hash) + getEntity().hashCode(); - if (getDimensionsCount() > 0) { - hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionsList().hashCode(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - if (getDateRangesCount() > 0) { - hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getDateRangesList().hashCode(); - } - if (hasDimensionFilter()) { - hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilter().hashCode(); - } - if (hasMetricFilter()) { - hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getMetricFilter().hashCode(); - } - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLimit()); - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - if (getOrderBysCount() > 0) { - hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; - hash = (53 * hash) + getOrderBysList().hashCode(); - } - hash = (37 * hash) + RETURN_ENTITY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReturnEntityQuota()); - hash = (37 * hash) + INCLUDE_ALL_USERS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getIncludeAllUsers()); - hash = (37 * hash) + EXPAND_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getExpandGroups()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.RunAccessReportRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request for a Data Access Record Report.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RunAccessReportRequest) - com.google.analytics.admin.v1alpha.RunAccessReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RunAccessReportRequest.class, com.google.analytics.admin.v1alpha.RunAccessReportRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.RunAccessReportRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entity_ = ""; - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - } else { - dateRanges_ = null; - dateRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - dimensionFilter_ = null; - if (dimensionFilterBuilder_ != null) { - dimensionFilterBuilder_.dispose(); - dimensionFilterBuilder_ = null; - } - metricFilter_ = null; - if (metricFilterBuilder_ != null) { - metricFilterBuilder_.dispose(); - metricFilterBuilder_ = null; - } - offset_ = 0L; - limit_ = 0L; - timeZone_ = ""; - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - } else { - orderBys_ = null; - orderBysBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - returnEntityQuota_ = false; - includeAllUsers_ = false; - expandGroups_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportRequest build() { - com.google.analytics.admin.v1alpha.RunAccessReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportRequest buildPartial() { - com.google.analytics.admin.v1alpha.RunAccessReportRequest result = new com.google.analytics.admin.v1alpha.RunAccessReportRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.RunAccessReportRequest result) { - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (dateRangesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.dateRanges_ = dateRanges_; - } else { - result.dateRanges_ = dateRangesBuilder_.build(); - } - if (orderBysBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.orderBys_ = orderBys_; - } else { - result.orderBys_ = orderBysBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.RunAccessReportRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entity_ = entity_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.dimensionFilter_ = dimensionFilterBuilder_ == null - ? dimensionFilter_ - : dimensionFilterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.metricFilter_ = metricFilterBuilder_ == null - ? metricFilter_ - : metricFilterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.offset_ = offset_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.limit_ = limit_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.timeZone_ = timeZone_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.returnEntityQuota_ = returnEntityQuota_; - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.includeAllUsers_ = includeAllUsers_; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.expandGroups_ = expandGroups_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportRequest other) { - if (other == com.google.analytics.admin.v1alpha.RunAccessReportRequest.getDefaultInstance()) return this; - if (!other.getEntity().isEmpty()) { - entity_ = other.entity_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000002); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDimensionsFieldBuilder() : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricsFieldBuilder() : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (dateRangesBuilder_ == null) { - if (!other.dateRanges_.isEmpty()) { - if (dateRanges_.isEmpty()) { - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDateRangesIsMutable(); - dateRanges_.addAll(other.dateRanges_); - } - onChanged(); - } - } else { - if (!other.dateRanges_.isEmpty()) { - if (dateRangesBuilder_.isEmpty()) { - dateRangesBuilder_.dispose(); - dateRangesBuilder_ = null; - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - dateRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDateRangesFieldBuilder() : null; - } else { - dateRangesBuilder_.addAllMessages(other.dateRanges_); - } - } - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (orderBysBuilder_ == null) { - if (!other.orderBys_.isEmpty()) { - if (orderBys_.isEmpty()) { - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureOrderBysIsMutable(); - orderBys_.addAll(other.orderBys_); - } - onChanged(); - } - } else { - if (!other.orderBys_.isEmpty()) { - if (orderBysBuilder_.isEmpty()) { - orderBysBuilder_.dispose(); - orderBysBuilder_ = null; - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000200); - orderBysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrderBysFieldBuilder() : null; - } else { - orderBysBuilder_.addAllMessages(other.orderBys_); - } - } - } - if (other.getReturnEntityQuota() != false) { - setReturnEntityQuota(other.getReturnEntityQuota()); - } - if (other.getIncludeAllUsers() != false) { - setIncludeAllUsers(other.getIncludeAllUsers()); - } - if (other.getExpandGroups() != false) { - setExpandGroups(other.getExpandGroups()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1alpha.AccessDimension m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessDimension.parser(), - extensionRegistry); - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(m); - } else { - dimensionsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.analytics.admin.v1alpha.AccessMetric m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessMetric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - com.google.analytics.admin.v1alpha.AccessDateRange m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessDateRange.parser(), - extensionRegistry); - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(m); - } else { - dateRangesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getDimensionFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getMetricFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - limit_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - com.google.analytics.admin.v1alpha.AccessOrderBy m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessOrderBy.parser(), - extensionRegistry); - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(m); - } else { - orderBysBuilder_.addMessage(m); - } - break; - } // case 82 - case 88: { - returnEntityQuota_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 88 - case 96: { - includeAllUsers_ = input.readBool(); - bitField0_ |= 0x00000800; - break; - } // case 96 - case 104: { - expandGroups_ = input.readBool(); - bitField0_ |= 0x00001000; - break; - } // case 104 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object entity_ = ""; - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @return The entity. - */ - public java.lang.String getEntity() { - java.lang.Object ref = entity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @return The bytes for entity. - */ - public com.google.protobuf.ByteString - getEntityBytes() { - java.lang.Object ref = entity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - entity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @param value The entity to set. - * @return This builder for chaining. - */ - public Builder setEntity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - entity_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @return This builder for chaining. - */ - public Builder clearEntity() { - entity_ = getDefaultInstance().getEntity(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @param value The bytes for entity to set. - * @return This builder for chaining. - */ - public Builder setEntityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - entity_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List dimensions_ = - java.util.Collections.emptyList(); - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dimensions_ = new java.util.ArrayList(dimensions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimension, com.google.analytics.admin.v1alpha.AccessDimension.Builder, com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> dimensionsBuilder_; - - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.admin.v1alpha.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.admin.v1alpha.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension.Builder getDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1alpha.AccessDimension.Builder addDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessDimension.getDefaultInstance()); - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimension, com.google.analytics.admin.v1alpha.AccessDimension.Builder, com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimension, com.google.analytics.admin.v1alpha.AccessDimension.Builder, com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder>( - dimensions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetric, com.google.analytics.admin.v1alpha.AccessMetric.Builder, com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> metricsBuilder_; - - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.admin.v1alpha.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.admin.v1alpha.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.admin.v1alpha.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics( - com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.admin.v1alpha.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric.Builder getMetricsBuilder( - int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1alpha.AccessMetric.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessMetric.getDefaultInstance()); - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetric, com.google.analytics.admin.v1alpha.AccessMetric.Builder, com.google.analytics.admin.v1alpha.AccessMetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetric, com.google.analytics.admin.v1alpha.AccessMetric.Builder, com.google.analytics.admin.v1alpha.AccessMetricOrBuilder>( - metrics_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List dateRanges_ = - java.util.Collections.emptyList(); - private void ensureDateRangesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - dateRanges_ = new java.util.ArrayList(dateRanges_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDateRange, com.google.analytics.admin.v1alpha.AccessDateRange.Builder, com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> dateRangesBuilder_; - - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public java.util.List getDateRangesList() { - if (dateRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dateRanges_); - } else { - return dateRangesBuilder_.getMessageList(); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public int getDateRangesCount() { - if (dateRangesBuilder_ == null) { - return dateRanges_.size(); - } else { - return dateRangesBuilder_.getCount(); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessage(index); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.set(index, value); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges(com.google.analytics.admin.v1alpha.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(index, value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.admin.v1alpha.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder addAllDateRanges( - java.lang.Iterable values) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dateRanges_); - onChanged(); - } else { - dateRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder clearDateRanges() { - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - dateRangesBuilder_.clear(); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public Builder removeDateRanges(int index) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.remove(index); - onChanged(); - } else { - dateRangesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange.Builder getDateRangesBuilder( - int index) { - return getDateRangesFieldBuilder().getBuilder(index); - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); } else { - return dateRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public java.util.List - getDateRangesOrBuilderList() { - if (dateRangesBuilder_ != null) { - return dateRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dateRanges_); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1alpha.AccessDateRange.Builder addDateRangesBuilder( - int index) { - return getDateRangesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessDateRange.getDefaultInstance()); - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDateRange, com.google.analytics.admin.v1alpha.AccessDateRange.Builder, com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDateRange, com.google.analytics.admin.v1alpha.AccessDateRange.Builder, com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder>( - dateRanges_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessFilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> dimensionFilterBuilder_; - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return Whether the dimensionFilter field is set. - */ - public boolean hasDimensionFilter() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return The dimensionFilter. - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } else { - return dimensionFilterBuilder_.getMessage(); - } - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilter_ = value; - } else { - dimensionFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = builderForValue.build(); - } else { - dimensionFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder mergeDimensionFilter(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - dimensionFilter_ != null && - dimensionFilter_ != com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) { - getDimensionFilterBuilder().mergeFrom(value); - } else { - dimensionFilter_ = value; - } - } else { - dimensionFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public Builder clearDimensionFilter() { - bitField0_ = (bitField0_ & ~0x00000010); - dimensionFilter_ = null; - if (dimensionFilterBuilder_ != null) { - dimensionFilterBuilder_.dispose(); - dimensionFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder getDimensionFilterBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getDimensionFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null ? - com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( - getDimensionFilter(), - getParentForChildren(), - isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.admin.v1alpha.AccessFilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> metricFilterBuilder_; - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return Whether the metricFilter field is set. - */ - public boolean hasMetricFilter() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return The metricFilter. - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null ? com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } else { - return metricFilterBuilder_.getMessage(); - } - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder setMetricFilter(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (metricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricFilter_ = value; - } else { - metricFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder setMetricFilter( - com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder builderForValue) { - if (metricFilterBuilder_ == null) { - metricFilter_ = builderForValue.build(); - } else { - metricFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder mergeMetricFilter(com.google.analytics.admin.v1alpha.AccessFilterExpression value) { - if (metricFilterBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - metricFilter_ != null && - metricFilter_ != com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance()) { - getMetricFilterBuilder().mergeFrom(value); - } else { - metricFilter_ = value; - } - } else { - metricFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public Builder clearMetricFilter() { - bitField0_ = (bitField0_ & ~0x00000020); - metricFilter_ = null; - if (metricFilterBuilder_ != null) { - metricFilterBuilder_.dispose(); - metricFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder getMetricFilterBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getMetricFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - public com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null ? - com.google.analytics.admin.v1alpha.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessFilterExpression, com.google.analytics.admin.v1alpha.AccessFilterExpression.Builder, com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder>( - getMetricFilter(), - getParentForChildren(), - isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private long offset_ ; - /** - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(long value) { - - offset_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * @return This builder for chaining. - */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000040); - offset_ = 0L; - onChanged(); - return this; - } - - private long limit_ ; - /** - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     *
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     *
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     *
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * @return This builder for chaining. - */ - public Builder clearLimit() { - bitField0_ = (bitField0_ & ~0x00000080); - limit_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object timeZone_ = ""; - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - timeZone_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - timeZone_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.util.List orderBys_ = - java.util.Collections.emptyList(); - private void ensureOrderBysIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - orderBys_ = new java.util.ArrayList(orderBys_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> orderBysBuilder_; - - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public java.util.List getOrderBysList() { - if (orderBysBuilder_ == null) { - return java.util.Collections.unmodifiableList(orderBys_); - } else { - return orderBysBuilder_.getMessageList(); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public int getOrderBysCount() { - if (orderBysBuilder_ == null) { - return orderBys_.size(); - } else { - return orderBysBuilder_.getCount(); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessage(index); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder setOrderBys( - int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.set(index, value); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder setOrderBys( - int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.set(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys(com.google.analytics.admin.v1alpha.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(value); - onChanged(); - } else { - orderBysBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - int index, com.google.analytics.admin.v1alpha.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(index, value); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - int index, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder addAllOrderBys( - java.lang.Iterable values) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, orderBys_); - onChanged(); - } else { - orderBysBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder clearOrderBys() { - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - orderBysBuilder_.clear(); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public Builder removeOrderBys(int index) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.remove(index); - onChanged(); - } else { - orderBysBuilder_.remove(index); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder getOrderBysBuilder( - int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder( - int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); } else { - return orderBysBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public java.util.List - getOrderBysOrBuilderList() { - if (orderBysBuilder_ != null) { - return orderBysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orderBys_); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1alpha.AccessOrderBy.Builder addOrderBysBuilder( - int index) { - return getOrderBysFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessOrderBy.getDefaultInstance()); - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessOrderBy, com.google.analytics.admin.v1alpha.AccessOrderBy.Builder, com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder>( - orderBys_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - orderBys_ = null; - } - return orderBysBuilder_; - } - - private boolean returnEntityQuota_ ; - /** - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-     * requests, this field must be false.
-     * 
- * - * bool return_entity_quota = 11; - * @return The returnEntityQuota. - */ - @java.lang.Override - public boolean getReturnEntityQuota() { - return returnEntityQuota_; - } - /** - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-     * requests, this field must be false.
-     * 
- * - * bool return_entity_quota = 11; - * @param value The returnEntityQuota to set. - * @return This builder for chaining. - */ - public Builder setReturnEntityQuota(boolean value) { - - returnEntityQuota_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-     * requests, this field must be false.
-     * 
- * - * bool return_entity_quota = 11; - * @return This builder for chaining. - */ - public Builder clearReturnEntityQuota() { - bitField0_ = (bitField0_ & ~0x00000400); - returnEntityQuota_ = false; - onChanged(); - return this; - } - - private boolean includeAllUsers_ ; - /** - *
-     * Optional. Determines whether to include users who have never made an API
-     * call in the response. If true, all users with access to the specified
-     * property or account are included in the response, regardless of whether
-     * they have made an API call or not. If false, only the users who have made
-     * an API call will be included.
-     * 
- * - * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The includeAllUsers. - */ - @java.lang.Override - public boolean getIncludeAllUsers() { - return includeAllUsers_; - } - /** - *
-     * Optional. Determines whether to include users who have never made an API
-     * call in the response. If true, all users with access to the specified
-     * property or account are included in the response, regardless of whether
-     * they have made an API call or not. If false, only the users who have made
-     * an API call will be included.
-     * 
- * - * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The includeAllUsers to set. - * @return This builder for chaining. - */ - public Builder setIncludeAllUsers(boolean value) { - - includeAllUsers_ = value; - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * Optional. Determines whether to include users who have never made an API
-     * call in the response. If true, all users with access to the specified
-     * property or account are included in the response, regardless of whether
-     * they have made an API call or not. If false, only the users who have made
-     * an API call will be included.
-     * 
- * - * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearIncludeAllUsers() { - bitField0_ = (bitField0_ & ~0x00000800); - includeAllUsers_ = false; - onChanged(); - return this; - } - - private boolean expandGroups_ ; - /** - *
-     * Optional. Decides whether to return the users within user groups. This
-     * field works only when include_all_users is set to true. If true, it will
-     * return all users with access to the specified property or account.
-     * If false, only the users with direct access will be returned.
-     * 
- * - * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return The expandGroups. - */ - @java.lang.Override - public boolean getExpandGroups() { - return expandGroups_; - } - /** - *
-     * Optional. Decides whether to return the users within user groups. This
-     * field works only when include_all_users is set to true. If true, it will
-     * return all users with access to the specified property or account.
-     * If false, only the users with direct access will be returned.
-     * 
- * - * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The expandGroups to set. - * @return This builder for chaining. - */ - public Builder setExpandGroups(boolean value) { - - expandGroups_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-     * Optional. Decides whether to return the users within user groups. This
-     * field works only when include_all_users is set to true. If true, it will
-     * return all users with access to the specified property or account.
-     * If false, only the users with direct access will be returned.
-     * 
- * - * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearExpandGroups() { - bitField0_ = (bitField0_ & ~0x00001000); - expandGroups_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RunAccessReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportRequest) - private static final com.google.analytics.admin.v1alpha.RunAccessReportRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportRequest(); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAccessReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java deleted file mode 100644 index 96781ab2bdc3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportRequestOrBuilder.java +++ /dev/null @@ -1,431 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface RunAccessReportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The entity. - */ - java.lang.String getEntity(); - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The bytes for entity. - */ - com.google.protobuf.ByteString - getEntityBytes(); - - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - java.util.List - getDimensionsList(); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - com.google.analytics.admin.v1alpha.AccessDimension getDimensions(int index); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - int getDimensionsCount(); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimension dimensions = 2; - */ - com.google.analytics.admin.v1alpha.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index); - - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - java.util.List - getMetricsList(); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - com.google.analytics.admin.v1alpha.AccessMetric getMetrics(int index); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - int getMetricsCount(); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetric metrics = 3; - */ - com.google.analytics.admin.v1alpha.AccessMetricOrBuilder getMetricsOrBuilder( - int index); - - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - java.util.List - getDateRangesList(); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - com.google.analytics.admin.v1alpha.AccessDateRange getDateRanges(int index); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - int getDateRangesCount(); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - java.util.List - getDateRangesOrBuilderList(); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDateRange date_ranges = 4; - */ - com.google.analytics.admin.v1alpha.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index); - - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return Whether the dimensionFilter field is set. - */ - boolean hasDimensionFilter(); - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - * @return The dimensionFilter. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpression getDimensionFilter(); - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression dimension_filter = 5; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return Whether the metricFilter field is set. - */ - boolean hasMetricFilter(); - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - * @return The metricFilter. - */ - com.google.analytics.admin.v1alpha.AccessFilterExpression getMetricFilter(); - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessFilterExpression metric_filter = 6; - */ - com.google.analytics.admin.v1alpha.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - *
-   * The row count of the start row. The first row is counted as row 0. If
-   * offset is unspecified, it is treated as 0. If offset is zero, then this
-   * method will return the first page of results with `limit` entries.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * @return The offset. - */ - long getOffset(); - - /** - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   *
-   * The API may return fewer rows than the requested `limit`, if there aren't
-   * as many remaining rows as the `limit`. For instance, there are fewer than
-   * 300 possible values for the dimension `country`, so when reporting on only
-   * `country`, you can't get more than 300 rows, even if you set `limit` to a
-   * higher value.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * @return The limit. - */ - long getLimit(); - - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The timeZone. - */ - java.lang.String getTimeZone(); - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString - getTimeZoneBytes(); - - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - java.util.List - getOrderBysList(); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - com.google.analytics.admin.v1alpha.AccessOrderBy getOrderBys(int index); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - int getOrderBysCount(); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessOrderBy order_bys = 10; - */ - com.google.analytics.admin.v1alpha.AccessOrderByOrBuilder getOrderBysOrBuilder( - int index); - - /** - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-   * requests, this field must be false.
-   * 
- * - * bool return_entity_quota = 11; - * @return The returnEntityQuota. - */ - boolean getReturnEntityQuota(); - - /** - *
-   * Optional. Determines whether to include users who have never made an API
-   * call in the response. If true, all users with access to the specified
-   * property or account are included in the response, regardless of whether
-   * they have made an API call or not. If false, only the users who have made
-   * an API call will be included.
-   * 
- * - * bool include_all_users = 12 [(.google.api.field_behavior) = OPTIONAL]; - * @return The includeAllUsers. - */ - boolean getIncludeAllUsers(); - - /** - *
-   * Optional. Decides whether to return the users within user groups. This
-   * field works only when include_all_users is set to true. If true, it will
-   * return all users with access to the specified property or account.
-   * If false, only the users with direct access will be returned.
-   * 
- * - * bool expand_groups = 13 [(.google.api.field_behavior) = OPTIONAL]; - * @return The expandGroups. - */ - boolean getExpandGroups(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java deleted file mode 100644 index d2a24a8b725d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponse.java +++ /dev/null @@ -1,2186 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * The customized Data Access Record Report response.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportResponse} - */ -public final class RunAccessReportResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.RunAccessReportResponse) - RunAccessReportResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use RunAccessReportResponse.newBuilder() to construct. - private RunAccessReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RunAccessReportResponse() { - dimensionHeaders_ = java.util.Collections.emptyList(); - metricHeaders_ = java.util.Collections.emptyList(); - rows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RunAccessReportResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, com.google.analytics.admin.v1alpha.RunAccessReportResponse.Builder.class); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List dimensionHeaders_; - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List getDimensionHeadersList() { - return dimensionHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersOrBuilderList() { - return dimensionHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public int getDimensionHeadersCount() { - return dimensionHeaders_.size(); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index) { - return dimensionHeaders_.get(index); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - return dimensionHeaders_.get(index); - } - - public static final int METRIC_HEADERS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List metricHeaders_; - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List getMetricHeadersList() { - return metricHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List - getMetricHeadersOrBuilderList() { - return metricHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public int getMetricHeadersCount() { - return metricHeaders_.size(); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index) { - return metricHeaders_.get(index); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - return metricHeaders_.get(index); - } - - public static final int ROWS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List rows_; - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRow getRows(int index) { - return rows_.get(index); - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder( - int index) { - return rows_.get(index); - } - - public static final int ROW_COUNT_FIELD_NUMBER = 4; - private int rowCount_ = 0; - /** - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 4; - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - public static final int QUOTA_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1alpha.AccessQuota quota_; - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return Whether the quota field is set. - */ - @java.lang.Override - public boolean hasQuota() { - return quota_ != null; - } - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return The quota. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { - return quota_ == null ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() : quota_; - } - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { - return quota_ == null ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() : quota_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < dimensionHeaders_.size(); i++) { - output.writeMessage(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - output.writeMessage(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(3, rows_.get(i)); - } - if (rowCount_ != 0) { - output.writeInt32(4, rowCount_); - } - if (quota_ != null) { - output.writeMessage(5, getQuota()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensionHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, rows_.get(i)); - } - if (rowCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, rowCount_); - } - if (quota_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getQuota()); - } - size += 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.admin.v1alpha.RunAccessReportResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.RunAccessReportResponse other = (com.google.analytics.admin.v1alpha.RunAccessReportResponse) obj; - - if (!getDimensionHeadersList() - .equals(other.getDimensionHeadersList())) return false; - if (!getMetricHeadersList() - .equals(other.getMetricHeadersList())) return false; - if (!getRowsList() - .equals(other.getRowsList())) return false; - if (getRowCount() - != other.getRowCount()) return false; - if (hasQuota() != other.hasQuota()) return false; - if (hasQuota()) { - if (!getQuota() - .equals(other.getQuota())) return false; - } - if (!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 (getDimensionHeadersCount() > 0) { - hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionHeadersList().hashCode(); - } - if (getMetricHeadersCount() > 0) { - hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getMetricHeadersList().hashCode(); - } - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getRowCount(); - if (hasQuota()) { - hash = (37 * hash) + QUOTA_FIELD_NUMBER; - hash = (53 * hash) + getQuota().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.RunAccessReportResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The customized Data Access Record Report response.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.RunAccessReportResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.RunAccessReportResponse) - com.google.analytics.admin.v1alpha.RunAccessReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.RunAccessReportResponse.class, com.google.analytics.admin.v1alpha.RunAccessReportResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.RunAccessReportResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - } else { - dimensionHeaders_ = null; - dimensionHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - } else { - metricHeaders_ = null; - metricHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - } else { - rows_ = null; - rowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - rowCount_ = 0; - quota_ = null; - if (quotaBuilder_ != null) { - quotaBuilder_.dispose(); - quotaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportResponse build() { - com.google.analytics.admin.v1alpha.RunAccessReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportResponse buildPartial() { - com.google.analytics.admin.v1alpha.RunAccessReportResponse result = new com.google.analytics.admin.v1alpha.RunAccessReportResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.RunAccessReportResponse result) { - if (dimensionHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionHeaders_ = dimensionHeaders_; - } else { - result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); - } - if (metricHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricHeaders_ = metricHeaders_; - } else { - result.metricHeaders_ = metricHeadersBuilder_.build(); - } - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.RunAccessReportResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.rowCount_ = rowCount_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.quota_ = quotaBuilder_ == null - ? quota_ - : quotaBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.RunAccessReportResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.RunAccessReportResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.RunAccessReportResponse other) { - if (other == com.google.analytics.admin.v1alpha.RunAccessReportResponse.getDefaultInstance()) return this; - if (dimensionHeadersBuilder_ == null) { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeaders_.isEmpty()) { - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.addAll(other.dimensionHeaders_); - } - onChanged(); - } - } else { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeadersBuilder_.isEmpty()) { - dimensionHeadersBuilder_.dispose(); - dimensionHeadersBuilder_ = null; - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDimensionHeadersFieldBuilder() : null; - } else { - dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); - } - } - } - if (metricHeadersBuilder_ == null) { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeaders_.isEmpty()) { - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricHeadersIsMutable(); - metricHeaders_.addAll(other.metricHeaders_); - } - onChanged(); - } - } else { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeadersBuilder_.isEmpty()) { - metricHeadersBuilder_.dispose(); - metricHeadersBuilder_ = null; - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - metricHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricHeadersFieldBuilder() : null; - } else { - metricHeadersBuilder_.addAllMessages(other.metricHeaders_); - } - } - } - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowsFieldBuilder() : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - if (other.getRowCount() != 0) { - setRowCount(other.getRowCount()); - } - if (other.hasQuota()) { - mergeQuota(other.getQuota()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.AccessDimensionHeader m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessDimensionHeader.parser(), - extensionRegistry); - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(m); - } else { - dimensionHeadersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1alpha.AccessMetricHeader m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessMetricHeader.parser(), - extensionRegistry); - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(m); - } else { - metricHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.analytics.admin.v1alpha.AccessRow m = - input.readMessage( - com.google.analytics.admin.v1alpha.AccessRow.parser(), - extensionRegistry); - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(m); - } else { - rowsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: { - rowCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getQuotaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List dimensionHeaders_ = - java.util.Collections.emptyList(); - private void ensureDimensionHeadersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = new java.util.ArrayList(dimensionHeaders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimensionHeader, com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> dimensionHeadersBuilder_; - - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public java.util.List getDimensionHeadersList() { - if (dimensionHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } else { - return dimensionHeadersBuilder_.getMessageList(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public int getDimensionHeadersCount() { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.size(); - } else { - return dimensionHeadersBuilder_.getCount(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessage(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders(com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addAllDimensionHeaders( - java.lang.Iterable values) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dimensionHeaders_); - onChanged(); - } else { - dimensionHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder clearDimensionHeaders() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionHeadersBuilder_.clear(); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public Builder removeDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.remove(index); - onChanged(); - } else { - dimensionHeadersBuilder_.remove(index); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder getDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().getBuilder(index); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); } else { - return dimensionHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersOrBuilderList() { - if (dimensionHeadersBuilder_ != null) { - return dimensionHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessDimensionHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimensionHeader, com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessDimensionHeader, com.google.analytics.admin.v1alpha.AccessDimensionHeader.Builder, com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder>( - dimensionHeaders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionHeaders_ = null; - } - return dimensionHeadersBuilder_; - } - - private java.util.List metricHeaders_ = - java.util.Collections.emptyList(); - private void ensureMetricHeadersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = new java.util.ArrayList(metricHeaders_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetricHeader, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder> metricHeadersBuilder_; - - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public java.util.List getMetricHeadersList() { - if (metricHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricHeaders_); - } else { - return metricHeadersBuilder_.getMessageList(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public int getMetricHeadersCount() { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.size(); - } else { - return metricHeadersBuilder_.getCount(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessage(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.admin.v1alpha.AccessMetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, value); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders(com.google.analytics.admin.v1alpha.AccessMetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.admin.v1alpha.AccessMetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder addAllMetricHeaders( - java.lang.Iterable values) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricHeaders_); - onChanged(); - } else { - metricHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder clearMetricHeaders() { - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricHeadersBuilder_.clear(); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public Builder removeMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.remove(index); - onChanged(); - } else { - metricHeadersBuilder_.remove(index); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder getMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().getBuilder(index); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); } else { - return metricHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersOrBuilderList() { - if (metricHeadersBuilder_ != null) { - return metricHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricHeaders_); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessMetricHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetricHeader, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessMetricHeader, com.google.analytics.admin.v1alpha.AccessMetricHeader.Builder, com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder>( - metricHeaders_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricHeaders_ = null; - } - return metricHeadersBuilder_; - } - - private java.util.List rows_ = - java.util.Collections.emptyList(); - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessRow, com.google.analytics.admin.v1alpha.AccessRow.Builder, com.google.analytics.admin.v1alpha.AccessRowOrBuilder> rowsBuilder_; - - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1alpha.AccessRow getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.admin.v1alpha.AccessRow value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder addRows(com.google.analytics.admin.v1alpha.AccessRow value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.admin.v1alpha.AccessRow value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder addRows( - com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.admin.v1alpha.AccessRow.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); - onChanged(); - } else { - rowsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1alpha.AccessRow.Builder getRowsBuilder( - int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder( - int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1alpha.AccessRow.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()); - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1alpha.AccessRow.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.AccessRow.getDefaultInstance()); - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - public java.util.List - getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessRow, com.google.analytics.admin.v1alpha.AccessRow.Builder, com.google.analytics.admin.v1alpha.AccessRowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessRow, com.google.analytics.admin.v1alpha.AccessRow.Builder, com.google.analytics.admin.v1alpha.AccessRowOrBuilder>( - rows_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private int rowCount_ ; - /** - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 4; - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - /** - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 4; - * @param value The rowCount to set. - * @return This builder for chaining. - */ - public Builder setRowCount(int value) { - - rowCount_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 4; - * @return This builder for chaining. - */ - public Builder clearRowCount() { - bitField0_ = (bitField0_ & ~0x00000008); - rowCount_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.AccessQuota quota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuota, com.google.analytics.admin.v1alpha.AccessQuota.Builder, com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> quotaBuilder_; - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return Whether the quota field is set. - */ - public boolean hasQuota() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return The quota. - */ - public com.google.analytics.admin.v1alpha.AccessQuota getQuota() { - if (quotaBuilder_ == null) { - return quota_ == null ? com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() : quota_; - } else { - return quotaBuilder_.getMessage(); - } - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder setQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { - if (quotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quota_ = value; - } else { - quotaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder setQuota( - com.google.analytics.admin.v1alpha.AccessQuota.Builder builderForValue) { - if (quotaBuilder_ == null) { - quota_ = builderForValue.build(); - } else { - quotaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder mergeQuota(com.google.analytics.admin.v1alpha.AccessQuota value) { - if (quotaBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - quota_ != null && - quota_ != com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance()) { - getQuotaBuilder().mergeFrom(value); - } else { - quota_ = value; - } - } else { - quotaBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public Builder clearQuota() { - bitField0_ = (bitField0_ & ~0x00000010); - quota_ = null; - if (quotaBuilder_ != null) { - quotaBuilder_.dispose(); - quotaBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public com.google.analytics.admin.v1alpha.AccessQuota.Builder getQuotaBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getQuotaFieldBuilder().getBuilder(); - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - public com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder() { - if (quotaBuilder_ != null) { - return quotaBuilder_.getMessageOrBuilder(); - } else { - return quota_ == null ? - com.google.analytics.admin.v1alpha.AccessQuota.getDefaultInstance() : quota_; - } - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuota, com.google.analytics.admin.v1alpha.AccessQuota.Builder, com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder> - getQuotaFieldBuilder() { - if (quotaBuilder_ == null) { - quotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessQuota, com.google.analytics.admin.v1alpha.AccessQuota.Builder, com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder>( - getQuota(), - getParentForChildren(), - isClean()); - quota_ = null; - } - return quotaBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.RunAccessReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.RunAccessReportResponse) - private static final com.google.analytics.admin.v1alpha.RunAccessReportResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.RunAccessReportResponse(); - } - - public static com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAccessReportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.RunAccessReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java deleted file mode 100644 index 761123d052e1..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/RunAccessReportResponseOrBuilder.java +++ /dev/null @@ -1,208 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface RunAccessReportResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.RunAccessReportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - java.util.List - getDimensionHeadersList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - com.google.analytics.admin.v1alpha.AccessDimensionHeader getDimensionHeaders(int index); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - int getDimensionHeadersCount(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - java.util.List - getDimensionHeadersOrBuilderList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessDimensionHeader dimension_headers = 1; - */ - com.google.analytics.admin.v1alpha.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index); - - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - com.google.analytics.admin.v1alpha.AccessMetricHeader getMetricHeaders(int index); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - int getMetricHeadersCount(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersOrBuilderList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessMetricHeader metric_headers = 2; - */ - com.google.analytics.admin.v1alpha.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index); - - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - java.util.List - getRowsList(); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - com.google.analytics.admin.v1alpha.AccessRow getRows(int index); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - int getRowsCount(); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - java.util.List - getRowsOrBuilderList(); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.AccessRow rows = 3; - */ - com.google.analytics.admin.v1alpha.AccessRowOrBuilder getRowsOrBuilder( - int index); - - /** - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 4; - * @return The rowCount. - */ - int getRowCount(); - - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return Whether the quota field is set. - */ - boolean hasQuota(); - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - * @return The quota. - */ - com.google.analytics.admin.v1alpha.AccessQuota getQuota(); - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessQuota quota = 5; - */ - com.google.analytics.admin.v1alpha.AccessQuotaOrBuilder getQuotaOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java deleted file mode 100644 index 4f6f5b7ebed7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java +++ /dev/null @@ -1,1584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * SKAdNetwork conversion value schema of an iOS stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema} - */ -public final class SKAdNetworkConversionValueSchema extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) - SKAdNetworkConversionValueSchemaOrBuilder { -private static final long serialVersionUID = 0L; - // Use SKAdNetworkConversionValueSchema.newBuilder() to construct. - private SKAdNetworkConversionValueSchema(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SKAdNetworkConversionValueSchema() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SKAdNetworkConversionValueSchema(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
-   * stream, and there can be at most one such child under an iOS stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
-   * stream, and there can be at most one such child under an iOS stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POSTBACK_WINDOW_ONE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowOne_; - /** - *
-   * Required. The conversion value settings for the first postback window.
-   * These differ from values for postback window two and three in that they
-   * contain a "Fine" grained conversion value (a numeric value).
-   *
-   * Conversion values for this postback window must be set.  The other windows
-   * are optional and may inherit this window's settings if unset or disabled.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the postbackWindowOne field is set. - */ - @java.lang.Override - public boolean hasPostbackWindowOne() { - return postbackWindowOne_ != null; - } - /** - *
-   * Required. The conversion value settings for the first postback window.
-   * These differ from values for postback window two and three in that they
-   * contain a "Fine" grained conversion value (a numeric value).
-   *
-   * Conversion values for this postback window must be set.  The other windows
-   * are optional and may inherit this window's settings if unset or disabled.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The postbackWindowOne. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowOne() { - return postbackWindowOne_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowOne_; - } - /** - *
-   * Required. The conversion value settings for the first postback window.
-   * These differ from values for postback window two and three in that they
-   * contain a "Fine" grained conversion value (a numeric value).
-   *
-   * Conversion values for this postback window must be set.  The other windows
-   * are optional and may inherit this window's settings if unset or disabled.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowOneOrBuilder() { - return postbackWindowOne_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowOne_; - } - - public static final int POSTBACK_WINDOW_TWO_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowTwo_; - /** - *
-   * The conversion value settings for the second postback window.
-   *
-   * This field should only be configured if there is a need to define different
-   * conversion values for this postback window.
-   *
-   * If enable_postback_window_settings is set to false for this postback
-   * window, the values from postback_window_one will be used.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @return Whether the postbackWindowTwo field is set. - */ - @java.lang.Override - public boolean hasPostbackWindowTwo() { - return postbackWindowTwo_ != null; - } - /** - *
-   * The conversion value settings for the second postback window.
-   *
-   * This field should only be configured if there is a need to define different
-   * conversion values for this postback window.
-   *
-   * If enable_postback_window_settings is set to false for this postback
-   * window, the values from postback_window_one will be used.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @return The postbackWindowTwo. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowTwo() { - return postbackWindowTwo_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowTwo_; - } - /** - *
-   * The conversion value settings for the second postback window.
-   *
-   * This field should only be configured if there is a need to define different
-   * conversion values for this postback window.
-   *
-   * If enable_postback_window_settings is set to false for this postback
-   * window, the values from postback_window_one will be used.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowTwoOrBuilder() { - return postbackWindowTwo_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowTwo_; - } - - public static final int POSTBACK_WINDOW_THREE_FIELD_NUMBER = 4; - private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowThree_; - /** - *
-   * The conversion value settings for the third postback window.
-   *
-   * This field should only be set if the user chose to define different
-   * conversion values for this postback window. It is allowed to configure
-   * window 3 without setting window 2. In case window 1 & 2 settings are set
-   * and enable_postback_window_settings for this postback window is set to
-   * false, the schema will inherit settings from postback_window_two.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @return Whether the postbackWindowThree field is set. - */ - @java.lang.Override - public boolean hasPostbackWindowThree() { - return postbackWindowThree_ != null; - } - /** - *
-   * The conversion value settings for the third postback window.
-   *
-   * This field should only be set if the user chose to define different
-   * conversion values for this postback window. It is allowed to configure
-   * window 3 without setting window 2. In case window 1 & 2 settings are set
-   * and enable_postback_window_settings for this postback window is set to
-   * false, the schema will inherit settings from postback_window_two.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @return The postbackWindowThree. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowThree() { - return postbackWindowThree_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowThree_; - } - /** - *
-   * The conversion value settings for the third postback window.
-   *
-   * This field should only be set if the user chose to define different
-   * conversion values for this postback window. It is allowed to configure
-   * window 3 without setting window 2. In case window 1 & 2 settings are set
-   * and enable_postback_window_settings for this postback window is set to
-   * false, the schema will inherit settings from postback_window_two.
-   * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowThreeOrBuilder() { - return postbackWindowThree_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowThree_; - } - - public static final int APPLY_CONVERSION_VALUES_FIELD_NUMBER = 5; - private boolean applyConversionValues_ = false; - /** - *
-   * If enabled, the GA SDK will set conversion values using this schema
-   * definition, and schema will be exported to any Google Ads accounts linked
-   * to this property. If disabled, the GA SDK will not automatically set
-   * conversion values, and also the schema will not be exported to Ads.
-   * 
- * - * bool apply_conversion_values = 5; - * @return The applyConversionValues. - */ - @java.lang.Override - public boolean getApplyConversionValues() { - return applyConversionValues_; - } - - 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 (postbackWindowOne_ != null) { - output.writeMessage(2, getPostbackWindowOne()); - } - if (postbackWindowTwo_ != null) { - output.writeMessage(3, getPostbackWindowTwo()); - } - if (postbackWindowThree_ != null) { - output.writeMessage(4, getPostbackWindowThree()); - } - if (applyConversionValues_ != false) { - output.writeBool(5, applyConversionValues_); - } - 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 (postbackWindowOne_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPostbackWindowOne()); - } - if (postbackWindowTwo_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getPostbackWindowTwo()); - } - if (postbackWindowThree_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getPostbackWindowThree()); - } - if (applyConversionValues_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, applyConversionValues_); - } - 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.admin.v1alpha.SKAdNetworkConversionValueSchema)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema other = (com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasPostbackWindowOne() != other.hasPostbackWindowOne()) return false; - if (hasPostbackWindowOne()) { - if (!getPostbackWindowOne() - .equals(other.getPostbackWindowOne())) return false; - } - if (hasPostbackWindowTwo() != other.hasPostbackWindowTwo()) return false; - if (hasPostbackWindowTwo()) { - if (!getPostbackWindowTwo() - .equals(other.getPostbackWindowTwo())) return false; - } - if (hasPostbackWindowThree() != other.hasPostbackWindowThree()) return false; - if (hasPostbackWindowThree()) { - if (!getPostbackWindowThree() - .equals(other.getPostbackWindowThree())) return false; - } - if (getApplyConversionValues() - != other.getApplyConversionValues()) 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(); - if (hasPostbackWindowOne()) { - hash = (37 * hash) + POSTBACK_WINDOW_ONE_FIELD_NUMBER; - hash = (53 * hash) + getPostbackWindowOne().hashCode(); - } - if (hasPostbackWindowTwo()) { - hash = (37 * hash) + POSTBACK_WINDOW_TWO_FIELD_NUMBER; - hash = (53 * hash) + getPostbackWindowTwo().hashCode(); - } - if (hasPostbackWindowThree()) { - hash = (37 * hash) + POSTBACK_WINDOW_THREE_FIELD_NUMBER; - hash = (53 * hash) + getPostbackWindowThree().hashCode(); - } - hash = (37 * hash) + APPLY_CONVERSION_VALUES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApplyConversionValues()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema 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; - } - /** - *
-   * SKAdNetwork conversion value schema of an iOS stream.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.class, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - postbackWindowOne_ = null; - if (postbackWindowOneBuilder_ != null) { - postbackWindowOneBuilder_.dispose(); - postbackWindowOneBuilder_ = null; - } - postbackWindowTwo_ = null; - if (postbackWindowTwoBuilder_ != null) { - postbackWindowTwoBuilder_.dispose(); - postbackWindowTwoBuilder_ = null; - } - postbackWindowThree_ = null; - if (postbackWindowThreeBuilder_ != null) { - postbackWindowThreeBuilder_.dispose(); - postbackWindowThreeBuilder_ = null; - } - applyConversionValues_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SKAdNetworkConversionValueSchema_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema build() { - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema buildPartial() { - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema result = new com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.postbackWindowOne_ = postbackWindowOneBuilder_ == null - ? postbackWindowOne_ - : postbackWindowOneBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.postbackWindowTwo_ = postbackWindowTwoBuilder_ == null - ? postbackWindowTwo_ - : postbackWindowTwoBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.postbackWindowThree_ = postbackWindowThreeBuilder_ == null - ? postbackWindowThree_ - : postbackWindowThreeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.applyConversionValues_ = applyConversionValues_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) { - return mergeFrom((com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema other) { - if (other == com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasPostbackWindowOne()) { - mergePostbackWindowOne(other.getPostbackWindowOne()); - } - if (other.hasPostbackWindowTwo()) { - mergePostbackWindowTwo(other.getPostbackWindowTwo()); - } - if (other.hasPostbackWindowThree()) { - mergePostbackWindowThree(other.getPostbackWindowThree()); - } - if (other.getApplyConversionValues() != false) { - setApplyConversionValues(other.getApplyConversionValues()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getPostbackWindowOneFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getPostbackWindowTwoFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getPostbackWindowThreeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - applyConversionValues_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
-     * stream, and there can be at most one such child under an iOS stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
-     * stream, and there can be at most one such child under an iOS stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
-     * stream, and there can be at most one such child under an iOS stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
-     * stream, and there can be at most one such child under an iOS stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * 
- * - * string name = 1 [(.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. Resource name of the schema. This will be child of ONLY an iOS
-     * stream, and there can be at most one such child under an iOS stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowOne_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> postbackWindowOneBuilder_; - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the postbackWindowOne field is set. - */ - public boolean hasPostbackWindowOne() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The postbackWindowOne. - */ - public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowOne() { - if (postbackWindowOneBuilder_ == null) { - return postbackWindowOne_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowOne_; - } else { - return postbackWindowOneBuilder_.getMessage(); - } - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setPostbackWindowOne(com.google.analytics.admin.v1alpha.PostbackWindow value) { - if (postbackWindowOneBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - postbackWindowOne_ = value; - } else { - postbackWindowOneBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setPostbackWindowOne( - com.google.analytics.admin.v1alpha.PostbackWindow.Builder builderForValue) { - if (postbackWindowOneBuilder_ == null) { - postbackWindowOne_ = builderForValue.build(); - } else { - postbackWindowOneBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergePostbackWindowOne(com.google.analytics.admin.v1alpha.PostbackWindow value) { - if (postbackWindowOneBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - postbackWindowOne_ != null && - postbackWindowOne_ != com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) { - getPostbackWindowOneBuilder().mergeFrom(value); - } else { - postbackWindowOne_ = value; - } - } else { - postbackWindowOneBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearPostbackWindowOne() { - bitField0_ = (bitField0_ & ~0x00000002); - postbackWindowOne_ = null; - if (postbackWindowOneBuilder_ != null) { - postbackWindowOneBuilder_.dispose(); - postbackWindowOneBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.PostbackWindow.Builder getPostbackWindowOneBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getPostbackWindowOneFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowOneOrBuilder() { - if (postbackWindowOneBuilder_ != null) { - return postbackWindowOneBuilder_.getMessageOrBuilder(); - } else { - return postbackWindowOne_ == null ? - com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowOne_; - } - } - /** - *
-     * Required. The conversion value settings for the first postback window.
-     * These differ from values for postback window two and three in that they
-     * contain a "Fine" grained conversion value (a numeric value).
-     *
-     * Conversion values for this postback window must be set.  The other windows
-     * are optional and may inherit this window's settings if unset or disabled.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_one = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> - getPostbackWindowOneFieldBuilder() { - if (postbackWindowOneBuilder_ == null) { - postbackWindowOneBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder>( - getPostbackWindowOne(), - getParentForChildren(), - isClean()); - postbackWindowOne_ = null; - } - return postbackWindowOneBuilder_; - } - - private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowTwo_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> postbackWindowTwoBuilder_; - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @return Whether the postbackWindowTwo field is set. - */ - public boolean hasPostbackWindowTwo() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - * @return The postbackWindowTwo. - */ - public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowTwo() { - if (postbackWindowTwoBuilder_ == null) { - return postbackWindowTwo_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowTwo_; - } else { - return postbackWindowTwoBuilder_.getMessage(); - } - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - public Builder setPostbackWindowTwo(com.google.analytics.admin.v1alpha.PostbackWindow value) { - if (postbackWindowTwoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - postbackWindowTwo_ = value; - } else { - postbackWindowTwoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - public Builder setPostbackWindowTwo( - com.google.analytics.admin.v1alpha.PostbackWindow.Builder builderForValue) { - if (postbackWindowTwoBuilder_ == null) { - postbackWindowTwo_ = builderForValue.build(); - } else { - postbackWindowTwoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - public Builder mergePostbackWindowTwo(com.google.analytics.admin.v1alpha.PostbackWindow value) { - if (postbackWindowTwoBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - postbackWindowTwo_ != null && - postbackWindowTwo_ != com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) { - getPostbackWindowTwoBuilder().mergeFrom(value); - } else { - postbackWindowTwo_ = value; - } - } else { - postbackWindowTwoBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - public Builder clearPostbackWindowTwo() { - bitField0_ = (bitField0_ & ~0x00000004); - postbackWindowTwo_ = null; - if (postbackWindowTwoBuilder_ != null) { - postbackWindowTwoBuilder_.dispose(); - postbackWindowTwoBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - public com.google.analytics.admin.v1alpha.PostbackWindow.Builder getPostbackWindowTwoBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getPostbackWindowTwoFieldBuilder().getBuilder(); - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowTwoOrBuilder() { - if (postbackWindowTwoBuilder_ != null) { - return postbackWindowTwoBuilder_.getMessageOrBuilder(); - } else { - return postbackWindowTwo_ == null ? - com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowTwo_; - } - } - /** - *
-     * The conversion value settings for the second postback window.
-     *
-     * This field should only be configured if there is a need to define different
-     * conversion values for this postback window.
-     *
-     * If enable_postback_window_settings is set to false for this postback
-     * window, the values from postback_window_one will be used.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_two = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> - getPostbackWindowTwoFieldBuilder() { - if (postbackWindowTwoBuilder_ == null) { - postbackWindowTwoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder>( - getPostbackWindowTwo(), - getParentForChildren(), - isClean()); - postbackWindowTwo_ = null; - } - return postbackWindowTwoBuilder_; - } - - private com.google.analytics.admin.v1alpha.PostbackWindow postbackWindowThree_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> postbackWindowThreeBuilder_; - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @return Whether the postbackWindowThree field is set. - */ - public boolean hasPostbackWindowThree() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - * @return The postbackWindowThree. - */ - public com.google.analytics.admin.v1alpha.PostbackWindow getPostbackWindowThree() { - if (postbackWindowThreeBuilder_ == null) { - return postbackWindowThree_ == null ? com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowThree_; - } else { - return postbackWindowThreeBuilder_.getMessage(); - } - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - public Builder setPostbackWindowThree(com.google.analytics.admin.v1alpha.PostbackWindow value) { - if (postbackWindowThreeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - postbackWindowThree_ = value; - } else { - postbackWindowThreeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - public Builder setPostbackWindowThree( - com.google.analytics.admin.v1alpha.PostbackWindow.Builder builderForValue) { - if (postbackWindowThreeBuilder_ == null) { - postbackWindowThree_ = builderForValue.build(); - } else { - postbackWindowThreeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - public Builder mergePostbackWindowThree(com.google.analytics.admin.v1alpha.PostbackWindow value) { - if (postbackWindowThreeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - postbackWindowThree_ != null && - postbackWindowThree_ != com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance()) { - getPostbackWindowThreeBuilder().mergeFrom(value); - } else { - postbackWindowThree_ = value; - } - } else { - postbackWindowThreeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - public Builder clearPostbackWindowThree() { - bitField0_ = (bitField0_ & ~0x00000008); - postbackWindowThree_ = null; - if (postbackWindowThreeBuilder_ != null) { - postbackWindowThreeBuilder_.dispose(); - postbackWindowThreeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - public com.google.analytics.admin.v1alpha.PostbackWindow.Builder getPostbackWindowThreeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getPostbackWindowThreeFieldBuilder().getBuilder(); - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - public com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder getPostbackWindowThreeOrBuilder() { - if (postbackWindowThreeBuilder_ != null) { - return postbackWindowThreeBuilder_.getMessageOrBuilder(); - } else { - return postbackWindowThree_ == null ? - com.google.analytics.admin.v1alpha.PostbackWindow.getDefaultInstance() : postbackWindowThree_; - } - } - /** - *
-     * The conversion value settings for the third postback window.
-     *
-     * This field should only be set if the user chose to define different
-     * conversion values for this postback window. It is allowed to configure
-     * window 3 without setting window 2. In case window 1 & 2 settings are set
-     * and enable_postback_window_settings for this postback window is set to
-     * false, the schema will inherit settings from postback_window_two.
-     * 
- * - * .google.analytics.admin.v1alpha.PostbackWindow postback_window_three = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder> - getPostbackWindowThreeFieldBuilder() { - if (postbackWindowThreeBuilder_ == null) { - postbackWindowThreeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.PostbackWindow, com.google.analytics.admin.v1alpha.PostbackWindow.Builder, com.google.analytics.admin.v1alpha.PostbackWindowOrBuilder>( - getPostbackWindowThree(), - getParentForChildren(), - isClean()); - postbackWindowThree_ = null; - } - return postbackWindowThreeBuilder_; - } - - private boolean applyConversionValues_ ; - /** - *
-     * If enabled, the GA SDK will set conversion values using this schema
-     * definition, and schema will be exported to any Google Ads accounts linked
-     * to this property. If disabled, the GA SDK will not automatically set
-     * conversion values, and also the schema will not be exported to Ads.
-     * 
- * - * bool apply_conversion_values = 5; - * @return The applyConversionValues. - */ - @java.lang.Override - public boolean getApplyConversionValues() { - return applyConversionValues_; - } - /** - *
-     * If enabled, the GA SDK will set conversion values using this schema
-     * definition, and schema will be exported to any Google Ads accounts linked
-     * to this property. If disabled, the GA SDK will not automatically set
-     * conversion values, and also the schema will not be exported to Ads.
-     * 
- * - * bool apply_conversion_values = 5; - * @param value The applyConversionValues to set. - * @return This builder for chaining. - */ - public Builder setApplyConversionValues(boolean value) { - - applyConversionValues_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * If enabled, the GA SDK will set conversion values using this schema
-     * definition, and schema will be exported to any Google Ads accounts linked
-     * to this property. If disabled, the GA SDK will not automatically set
-     * conversion values, and also the schema will not be exported to Ads.
-     * 
- * - * bool apply_conversion_values = 5; - * @return This builder for chaining. - */ - public Builder clearApplyConversionValues() { - bitField0_ = (bitField0_ & ~0x00000010); - applyConversionValues_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema) - private static final com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema(); - } - - public static com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SKAdNetworkConversionValueSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java deleted file mode 100644 index a8124d783f51..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java +++ /dev/null @@ -1,1964 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A link between a GA4 property and a Search Ads 360 entity.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SearchAds360Link} - */ -public final class SearchAds360Link extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchAds360Link) - SearchAds360LinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchAds360Link.newBuilder() to construct. - private SearchAds360Link(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchAds360Link() { - name_ = ""; - advertiserId_ = ""; - advertiserDisplayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchAds360Link(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SearchAds360Link.class, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. The resource name for this SearchAds360Link resource.
-   * Format: properties/{propertyId}/searchAds360Links/{linkId}
-   *
-   * Note: linkId is not the Search Ads 360 advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. The resource name for this SearchAds360Link resource.
-   * Format: properties/{propertyId}/searchAds360Links/{linkId}
-   *
-   * Note: linkId is not the Search Ads 360 advertiser ID
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADVERTISER_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object advertiserId_ = ""; - /** - *
-   * Immutable. This field represents the Advertiser ID of the Search Ads 360
-   * Advertiser. that has been linked.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The advertiserId. - */ - @java.lang.Override - public java.lang.String getAdvertiserId() { - java.lang.Object ref = advertiserId_; - 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(); - advertiserId_ = s; - return s; - } - } - /** - *
-   * Immutable. This field represents the Advertiser ID of the Search Ads 360
-   * Advertiser. that has been linked.
-   * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for advertiserId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAdvertiserIdBytes() { - java.lang.Object ref = advertiserId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 3; - private com.google.protobuf.BoolValue campaignDataSharingEnabled_; - /** - *
-   * Immutable. Enables the import of campaign data from Search Ads 360 into the
-   * GA4 property. After link creation, this can only be updated from the Search
-   * Ads 360 product.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the campaignDataSharingEnabled field is set. - */ - @java.lang.Override - public boolean hasCampaignDataSharingEnabled() { - return campaignDataSharingEnabled_ != null; - } - /** - *
-   * Immutable. Enables the import of campaign data from Search Ads 360 into the
-   * GA4 property. After link creation, this can only be updated from the Search
-   * Ads 360 product.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The campaignDataSharingEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - /** - *
-   * Immutable. Enables the import of campaign data from Search Ads 360 into the
-   * GA4 property. After link creation, this can only be updated from the Search
-   * Ads 360 product.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - - public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 4; - private com.google.protobuf.BoolValue costDataSharingEnabled_; - /** - *
-   * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-   * property. This can only be enabled if campaign_data_sharing_enabled is
-   * enabled. After link creation, this can only be updated from
-   * the Search Ads 360 product.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the costDataSharingEnabled field is set. - */ - @java.lang.Override - public boolean hasCostDataSharingEnabled() { - return costDataSharingEnabled_ != null; - } - /** - *
-   * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-   * property. This can only be enabled if campaign_data_sharing_enabled is
-   * enabled. After link creation, this can only be updated from
-   * the Search Ads 360 product.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The costDataSharingEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getCostDataSharingEnabled() { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - /** - *
-   * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-   * property. This can only be enabled if campaign_data_sharing_enabled is
-   * enabled. After link creation, this can only be updated from
-   * the Search Ads 360 product.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - - public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object advertiserDisplayName_ = ""; - /** - *
-   * Output only. The display name of the Search Ads 360 Advertiser.
-   * Allows users to easily identify the linked resource.
-   * 
- * - * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The advertiserDisplayName. - */ - @java.lang.Override - public java.lang.String getAdvertiserDisplayName() { - java.lang.Object ref = advertiserDisplayName_; - 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(); - advertiserDisplayName_ = s; - return s; - } - } - /** - *
-   * Output only. The display name of the Search Ads 360 Advertiser.
-   * Allows users to easily identify the linked resource.
-   * 
- * - * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for advertiserDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes() { - java.lang.Object ref = advertiserDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 6; - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - /** - *
-   * Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return Whether the adsPersonalizationEnabled field is set. - */ - @java.lang.Override - public boolean hasAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ != null; - } - /** - *
-   * Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return The adsPersonalizationEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - /** - *
-   * Enables personalized advertising features with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - - public static final int SITE_STATS_SHARING_ENABLED_FIELD_NUMBER = 7; - private com.google.protobuf.BoolValue siteStatsSharingEnabled_; - /** - *
-   * Enables export of site stats with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return Whether the siteStatsSharingEnabled field is set. - */ - @java.lang.Override - public boolean hasSiteStatsSharingEnabled() { - return siteStatsSharingEnabled_ != null; - } - /** - *
-   * Enables export of site stats with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return The siteStatsSharingEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getSiteStatsSharingEnabled() { - return siteStatsSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : siteStatsSharingEnabled_; - } - /** - *
-   * Enables export of site stats with this integration.
-   * If this field is not set on create, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getSiteStatsSharingEnabledOrBuilder() { - return siteStatsSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : siteStatsSharingEnabled_; - } - - 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(advertiserId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); - } - if (campaignDataSharingEnabled_ != null) { - output.writeMessage(3, getCampaignDataSharingEnabled()); - } - if (costDataSharingEnabled_ != null) { - output.writeMessage(4, getCostDataSharingEnabled()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, advertiserDisplayName_); - } - if (adsPersonalizationEnabled_ != null) { - output.writeMessage(6, getAdsPersonalizationEnabled()); - } - if (siteStatsSharingEnabled_ != null) { - output.writeMessage(7, getSiteStatsSharingEnabled()); - } - 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(advertiserId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); - } - if (campaignDataSharingEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCampaignDataSharingEnabled()); - } - if (costDataSharingEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCostDataSharingEnabled()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, advertiserDisplayName_); - } - if (adsPersonalizationEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getAdsPersonalizationEnabled()); - } - if (siteStatsSharingEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getSiteStatsSharingEnabled()); - } - 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.admin.v1alpha.SearchAds360Link)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SearchAds360Link other = (com.google.analytics.admin.v1alpha.SearchAds360Link) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAdvertiserId() - .equals(other.getAdvertiserId())) return false; - if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; - if (hasCampaignDataSharingEnabled()) { - if (!getCampaignDataSharingEnabled() - .equals(other.getCampaignDataSharingEnabled())) return false; - } - if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; - if (hasCostDataSharingEnabled()) { - if (!getCostDataSharingEnabled() - .equals(other.getCostDataSharingEnabled())) return false; - } - if (!getAdvertiserDisplayName() - .equals(other.getAdvertiserDisplayName())) return false; - if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; - if (hasAdsPersonalizationEnabled()) { - if (!getAdsPersonalizationEnabled() - .equals(other.getAdsPersonalizationEnabled())) return false; - } - if (hasSiteStatsSharingEnabled() != other.hasSiteStatsSharingEnabled()) return false; - if (hasSiteStatsSharingEnabled()) { - if (!getSiteStatsSharingEnabled() - .equals(other.getSiteStatsSharingEnabled())) 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) + ADVERTISER_ID_FIELD_NUMBER; - hash = (53 * hash) + getAdvertiserId().hashCode(); - if (hasCampaignDataSharingEnabled()) { - hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); - } - if (hasCostDataSharingEnabled()) { - hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); - } - hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); - if (hasAdsPersonalizationEnabled()) { - hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); - } - if (hasSiteStatsSharingEnabled()) { - hash = (37 * hash) + SITE_STATS_SHARING_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getSiteStatsSharingEnabled().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SearchAds360Link parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SearchAds360Link prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 property and a Search Ads 360 entity.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SearchAds360Link} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchAds360Link) - com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SearchAds360Link_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SearchAds360Link.class, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SearchAds360Link.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - advertiserId_ = ""; - campaignDataSharingEnabled_ = null; - if (campaignDataSharingEnabledBuilder_ != null) { - campaignDataSharingEnabledBuilder_.dispose(); - campaignDataSharingEnabledBuilder_ = null; - } - costDataSharingEnabled_ = null; - if (costDataSharingEnabledBuilder_ != null) { - costDataSharingEnabledBuilder_.dispose(); - costDataSharingEnabledBuilder_ = null; - } - advertiserDisplayName_ = ""; - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - siteStatsSharingEnabled_ = null; - if (siteStatsSharingEnabledBuilder_ != null) { - siteStatsSharingEnabledBuilder_.dispose(); - siteStatsSharingEnabledBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.ResourcesProto.internal_static_google_analytics_admin_v1alpha_SearchAds360Link_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link build() { - com.google.analytics.admin.v1alpha.SearchAds360Link result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link buildPartial() { - com.google.analytics.admin.v1alpha.SearchAds360Link result = new com.google.analytics.admin.v1alpha.SearchAds360Link(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SearchAds360Link result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.advertiserId_ = advertiserId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.campaignDataSharingEnabled_ = campaignDataSharingEnabledBuilder_ == null - ? campaignDataSharingEnabled_ - : campaignDataSharingEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.costDataSharingEnabled_ = costDataSharingEnabledBuilder_ == null - ? costDataSharingEnabled_ - : costDataSharingEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.advertiserDisplayName_ = advertiserDisplayName_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_ == null - ? adsPersonalizationEnabled_ - : adsPersonalizationEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.siteStatsSharingEnabled_ = siteStatsSharingEnabledBuilder_ == null - ? siteStatsSharingEnabled_ - : siteStatsSharingEnabledBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SearchAds360Link) { - return mergeFrom((com.google.analytics.admin.v1alpha.SearchAds360Link)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SearchAds360Link other) { - if (other == com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAdvertiserId().isEmpty()) { - advertiserId_ = other.advertiserId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCampaignDataSharingEnabled()) { - mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); - } - if (other.hasCostDataSharingEnabled()) { - mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); - } - if (!other.getAdvertiserDisplayName().isEmpty()) { - advertiserDisplayName_ = other.advertiserDisplayName_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.hasAdsPersonalizationEnabled()) { - mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); - } - if (other.hasSiteStatsSharingEnabled()) { - mergeSiteStatsSharingEnabled(other.getSiteStatsSharingEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - advertiserId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCampaignDataSharingEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getCostDataSharingEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - advertiserDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getSiteStatsSharingEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. The resource name for this SearchAds360Link resource.
-     * Format: properties/{propertyId}/searchAds360Links/{linkId}
-     *
-     * Note: linkId is not the Search Ads 360 advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The resource name for this SearchAds360Link resource.
-     * Format: properties/{propertyId}/searchAds360Links/{linkId}
-     *
-     * Note: linkId is not the Search Ads 360 advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The resource name for this SearchAds360Link resource.
-     * Format: properties/{propertyId}/searchAds360Links/{linkId}
-     *
-     * Note: linkId is not the Search Ads 360 advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. The resource name for this SearchAds360Link resource.
-     * Format: properties/{propertyId}/searchAds360Links/{linkId}
-     *
-     * Note: linkId is not the Search Ads 360 advertiser ID
-     * 
- * - * string name = 1 [(.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. The resource name for this SearchAds360Link resource.
-     * Format: properties/{propertyId}/searchAds360Links/{linkId}
-     *
-     * Note: linkId is not the Search Ads 360 advertiser ID
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object advertiserId_ = ""; - /** - *
-     * Immutable. This field represents the Advertiser ID of the Search Ads 360
-     * Advertiser. that has been linked.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The advertiserId. - */ - public java.lang.String getAdvertiserId() { - java.lang.Object ref = advertiserId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - advertiserId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. This field represents the Advertiser ID of the Search Ads 360
-     * Advertiser. that has been linked.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for advertiserId. - */ - public com.google.protobuf.ByteString - getAdvertiserIdBytes() { - java.lang.Object ref = advertiserId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. This field represents the Advertiser ID of the Search Ads 360
-     * Advertiser. that has been linked.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The advertiserId to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - advertiserId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. This field represents the Advertiser ID of the Search Ads 360
-     * Advertiser. that has been linked.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearAdvertiserId() { - advertiserId_ = getDefaultInstance().getAdvertiserId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. This field represents the Advertiser ID of the Search Ads 360
-     * Advertiser. that has been linked.
-     * 
- * - * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for advertiserId to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - advertiserId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue campaignDataSharingEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> campaignDataSharingEnabledBuilder_; - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the campaignDataSharingEnabled field is set. - */ - public boolean hasCampaignDataSharingEnabled() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The campaignDataSharingEnabled. - */ - public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { - if (campaignDataSharingEnabledBuilder_ == null) { - return campaignDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } else { - return campaignDataSharingEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (campaignDataSharingEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - campaignDataSharingEnabled_ = value; - } else { - campaignDataSharingEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCampaignDataSharingEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabled_ = builderForValue.build(); - } else { - campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (campaignDataSharingEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - campaignDataSharingEnabled_ != null && - campaignDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCampaignDataSharingEnabledBuilder().mergeFrom(value); - } else { - campaignDataSharingEnabled_ = value; - } - } else { - campaignDataSharingEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearCampaignDataSharingEnabled() { - bitField0_ = (bitField0_ & ~0x00000004); - campaignDataSharingEnabled_ = null; - if (campaignDataSharingEnabledBuilder_ != null) { - campaignDataSharingEnabledBuilder_.dispose(); - campaignDataSharingEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { - if (campaignDataSharingEnabledBuilder_ != null) { - return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); - } else { - return campaignDataSharingEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : campaignDataSharingEnabled_; - } - } - /** - *
-     * Immutable. Enables the import of campaign data from Search Ads 360 into the
-     * GA4 property. After link creation, this can only be updated from the Search
-     * Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue campaign_data_sharing_enabled = 3 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCampaignDataSharingEnabledFieldBuilder() { - if (campaignDataSharingEnabledBuilder_ == null) { - campaignDataSharingEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCampaignDataSharingEnabled(), - getParentForChildren(), - isClean()); - campaignDataSharingEnabled_ = null; - } - return campaignDataSharingEnabledBuilder_; - } - - private com.google.protobuf.BoolValue costDataSharingEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> costDataSharingEnabledBuilder_; - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the costDataSharingEnabled field is set. - */ - public boolean hasCostDataSharingEnabled() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The costDataSharingEnabled. - */ - public com.google.protobuf.BoolValue getCostDataSharingEnabled() { - if (costDataSharingEnabledBuilder_ == null) { - return costDataSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } else { - return costDataSharingEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (costDataSharingEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - costDataSharingEnabled_ = value; - } else { - costDataSharingEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder setCostDataSharingEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabled_ = builderForValue.build(); - } else { - costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { - if (costDataSharingEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - costDataSharingEnabled_ != null && - costDataSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getCostDataSharingEnabledBuilder().mergeFrom(value); - } else { - costDataSharingEnabled_ = value; - } - } else { - costDataSharingEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public Builder clearCostDataSharingEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - costDataSharingEnabled_ = null; - if (costDataSharingEnabledBuilder_ != null) { - costDataSharingEnabledBuilder_.dispose(); - costDataSharingEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getCostDataSharingEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { - if (costDataSharingEnabledBuilder_ != null) { - return costDataSharingEnabledBuilder_.getMessageOrBuilder(); - } else { - return costDataSharingEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : costDataSharingEnabled_; - } - } - /** - *
-     * Immutable. Enables the import of cost data from Search Ads 360 to the GA4
-     * property. This can only be enabled if campaign_data_sharing_enabled is
-     * enabled. After link creation, this can only be updated from
-     * the Search Ads 360 product.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue cost_data_sharing_enabled = 4 [(.google.api.field_behavior) = IMMUTABLE]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getCostDataSharingEnabledFieldBuilder() { - if (costDataSharingEnabledBuilder_ == null) { - costDataSharingEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getCostDataSharingEnabled(), - getParentForChildren(), - isClean()); - costDataSharingEnabled_ = null; - } - return costDataSharingEnabledBuilder_; - } - - private java.lang.Object advertiserDisplayName_ = ""; - /** - *
-     * Output only. The display name of the Search Ads 360 Advertiser.
-     * Allows users to easily identify the linked resource.
-     * 
- * - * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The advertiserDisplayName. - */ - public java.lang.String getAdvertiserDisplayName() { - java.lang.Object ref = advertiserDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - advertiserDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The display name of the Search Ads 360 Advertiser.
-     * Allows users to easily identify the linked resource.
-     * 
- * - * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for advertiserDisplayName. - */ - public com.google.protobuf.ByteString - getAdvertiserDisplayNameBytes() { - java.lang.Object ref = advertiserDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - advertiserDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The display name of the Search Ads 360 Advertiser.
-     * Allows users to easily identify the linked resource.
-     * 
- * - * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The advertiserDisplayName to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - advertiserDisplayName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. The display name of the Search Ads 360 Advertiser.
-     * Allows users to easily identify the linked resource.
-     * 
- * - * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearAdvertiserDisplayName() { - advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Output only. The display name of the Search Ads 360 Advertiser.
-     * Allows users to easily identify the linked resource.
-     * 
- * - * string advertiser_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for advertiserDisplayName to set. - * @return This builder for chaining. - */ - public Builder setAdvertiserDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - advertiserDisplayName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> adsPersonalizationEnabledBuilder_; - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return Whether the adsPersonalizationEnabled field is set. - */ - public boolean hasAdsPersonalizationEnabled() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - * @return The adsPersonalizationEnabled. - */ - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - if (adsPersonalizationEnabledBuilder_ == null) { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } else { - return adsPersonalizationEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adsPersonalizationEnabled_ = value; - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - public Builder setAdsPersonalizationEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = builderForValue.build(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - adsPersonalizationEnabled_ != null && - adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getAdsPersonalizationEnabledBuilder().mergeFrom(value); - } else { - adsPersonalizationEnabled_ = value; - } - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - public Builder clearAdsPersonalizationEnabled() { - bitField0_ = (bitField0_ & ~0x00000020); - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - if (adsPersonalizationEnabledBuilder_ != null) { - return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); - } else { - return adsPersonalizationEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - } - /** - *
-     * Enables personalized advertising features with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getAdsPersonalizationEnabledFieldBuilder() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getAdsPersonalizationEnabled(), - getParentForChildren(), - isClean()); - adsPersonalizationEnabled_ = null; - } - return adsPersonalizationEnabledBuilder_; - } - - private com.google.protobuf.BoolValue siteStatsSharingEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> siteStatsSharingEnabledBuilder_; - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return Whether the siteStatsSharingEnabled field is set. - */ - public boolean hasSiteStatsSharingEnabled() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - * @return The siteStatsSharingEnabled. - */ - public com.google.protobuf.BoolValue getSiteStatsSharingEnabled() { - if (siteStatsSharingEnabledBuilder_ == null) { - return siteStatsSharingEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : siteStatsSharingEnabled_; - } else { - return siteStatsSharingEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - public Builder setSiteStatsSharingEnabled(com.google.protobuf.BoolValue value) { - if (siteStatsSharingEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - siteStatsSharingEnabled_ = value; - } else { - siteStatsSharingEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - public Builder setSiteStatsSharingEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (siteStatsSharingEnabledBuilder_ == null) { - siteStatsSharingEnabled_ = builderForValue.build(); - } else { - siteStatsSharingEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - public Builder mergeSiteStatsSharingEnabled(com.google.protobuf.BoolValue value) { - if (siteStatsSharingEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - siteStatsSharingEnabled_ != null && - siteStatsSharingEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getSiteStatsSharingEnabledBuilder().mergeFrom(value); - } else { - siteStatsSharingEnabled_ = value; - } - } else { - siteStatsSharingEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - public Builder clearSiteStatsSharingEnabled() { - bitField0_ = (bitField0_ & ~0x00000040); - siteStatsSharingEnabled_ = null; - if (siteStatsSharingEnabledBuilder_ != null) { - siteStatsSharingEnabledBuilder_.dispose(); - siteStatsSharingEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - public com.google.protobuf.BoolValue.Builder getSiteStatsSharingEnabledBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getSiteStatsSharingEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - public com.google.protobuf.BoolValueOrBuilder getSiteStatsSharingEnabledOrBuilder() { - if (siteStatsSharingEnabledBuilder_ != null) { - return siteStatsSharingEnabledBuilder_.getMessageOrBuilder(); - } else { - return siteStatsSharingEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : siteStatsSharingEnabled_; - } - } - /** - *
-     * Enables export of site stats with this integration.
-     * If this field is not set on create, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue site_stats_sharing_enabled = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getSiteStatsSharingEnabledFieldBuilder() { - if (siteStatsSharingEnabledBuilder_ == null) { - siteStatsSharingEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getSiteStatsSharingEnabled(), - getParentForChildren(), - isClean()); - siteStatsSharingEnabled_ = null; - } - return siteStatsSharingEnabledBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SearchAds360Link) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchAds360Link) - private static final com.google.analytics.admin.v1alpha.SearchAds360Link DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchAds360Link(); - } - - public static com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchAds360Link parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java deleted file mode 100644 index a90875daa8e3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java +++ /dev/null @@ -1,2442 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for SearchChangeHistoryEvents RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} - */ -public final class SearchChangeHistoryEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) - SearchChangeHistoryEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchChangeHistoryEventsRequest.newBuilder() to construct. - private SearchChangeHistoryEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchChangeHistoryEventsRequest() { - account_ = ""; - property_ = ""; - resourceType_ = java.util.Collections.emptyList(); - action_ = java.util.Collections.emptyList(); - actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchChangeHistoryEventsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object account_ = ""; - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List resourceType_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType> resourceType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>() { - public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType convert(java.lang.Integer from) { - com.google.analytics.admin.v1alpha.ChangeHistoryResourceType result = com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.forNumber(from); - return result == null ? com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.UNRECOGNIZED : result; - } - }; - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the resourceType. - */ - @java.lang.Override - public java.util.List getResourceTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>(resourceType_, resourceType_converter_); - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of resourceType. - */ - @java.lang.Override - public int getResourceTypeCount() { - return resourceType_.size(); - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The resourceType at the given index. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { - return resourceType_converter_.convert(resourceType_.get(index)); - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for resourceType. - */ - @java.lang.Override - public java.util.List - getResourceTypeValueList() { - return resourceType_; - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of resourceType at the given index. - */ - @java.lang.Override - public int getResourceTypeValue(int index) { - return resourceType_.get(index); - } - private int resourceTypeMemoizedSerializedSize; - - public static final int ACTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List action_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType> action_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>() { - public com.google.analytics.admin.v1alpha.ActionType convert(java.lang.Integer from) { - com.google.analytics.admin.v1alpha.ActionType result = com.google.analytics.admin.v1alpha.ActionType.forNumber(from); - return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; - } - }; - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the action. - */ - @java.lang.Override - public java.util.List getActionList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>(action_, action_converter_); - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of action. - */ - @java.lang.Override - public int getActionCount() { - return action_.size(); - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The action at the given index. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { - return action_converter_.convert(action_.get(index)); - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for action. - */ - @java.lang.Override - public java.util.List - getActionValueList() { - return action_; - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of action at the given index. - */ - @java.lang.Override - public int getActionValue(int index) { - return action_.get(index); - } - private int actionMemoizedSerializedSize; - - public static final int ACTOR_EMAIL_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the actorEmail. - */ - public com.google.protobuf.ProtocolStringList - getActorEmailList() { - return actorEmail_; - } - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of actorEmail. - */ - public int getActorEmailCount() { - return actorEmail_.size(); - } - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The actorEmail at the given index. - */ - public java.lang.String getActorEmail(int index) { - return actorEmail_.get(index); - } - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the actorEmail at the given index. - */ - public com.google.protobuf.ByteString - getActorEmailBytes(int index) { - return actorEmail_.getByteString(index); - } - - public static final int EARLIEST_CHANGE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp earliestChangeTime_; - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the earliestChangeTime field is set. - */ - @java.lang.Override - public boolean hasEarliestChangeTime() { - return earliestChangeTime_ != null; - } - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The earliestChangeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEarliestChangeTime() { - return earliestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { - return earliestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } - - public static final int LATEST_CHANGE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp latestChangeTime_; - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the latestChangeTime field is set. - */ - @java.lang.Override - public boolean hasLatestChangeTime() { - return latestChangeTime_ != null; - } - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The latestChangeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLatestChangeTime() { - return latestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { - return latestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 8; - private int pageSize_ = 0; - /** - *
-   * Optional. The maximum number of ChangeHistoryEvent items to return.
-   * The service may return fewer than this value, even if there are additional
-   * pages. If unspecified, at most 50 items will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); - } - if (getResourceTypeList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(resourceTypeMemoizedSerializedSize); - } - for (int i = 0; i < resourceType_.size(); i++) { - output.writeEnumNoTag(resourceType_.get(i)); - } - if (getActionList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(actionMemoizedSerializedSize); - } - for (int i = 0; i < action_.size(); i++) { - output.writeEnumNoTag(action_.get(i)); - } - for (int i = 0; i < actorEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorEmail_.getRaw(i)); - } - if (earliestChangeTime_ != null) { - output.writeMessage(6, getEarliestChangeTime()); - } - if (latestChangeTime_ != null) { - output.writeMessage(7, getLatestChangeTime()); - } - if (pageSize_ != 0) { - output.writeInt32(8, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); - } - 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(account_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); - } - { - int dataSize = 0; - for (int i = 0; i < resourceType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(resourceType_.get(i)); - } - size += dataSize; - if (!getResourceTypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }resourceTypeMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < action_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(action_.get(i)); - } - size += dataSize; - if (!getActionList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }actionMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < actorEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(actorEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getActorEmailList().size(); - } - if (earliestChangeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getEarliestChangeTime()); - } - if (latestChangeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLatestChangeTime()); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); - } - 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.admin.v1alpha.SearchChangeHistoryEventsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other = (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) obj; - - if (!getAccount() - .equals(other.getAccount())) return false; - if (!getProperty() - .equals(other.getProperty())) return false; - if (!resourceType_.equals(other.resourceType_)) return false; - if (!action_.equals(other.action_)) return false; - if (!getActorEmailList() - .equals(other.getActorEmailList())) return false; - if (hasEarliestChangeTime() != other.hasEarliestChangeTime()) return false; - if (hasEarliestChangeTime()) { - if (!getEarliestChangeTime() - .equals(other.getEarliestChangeTime())) return false; - } - if (hasLatestChangeTime() != other.hasLatestChangeTime()) return false; - if (hasLatestChangeTime()) { - if (!getLatestChangeTime() - .equals(other.getLatestChangeTime())) return false; - } - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getResourceTypeCount() > 0) { - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_.hashCode(); - } - if (getActionCount() > 0) { - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + action_.hashCode(); - } - if (getActorEmailCount() > 0) { - hash = (37 * hash) + ACTOR_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getActorEmailList().hashCode(); - } - if (hasEarliestChangeTime()) { - hash = (37 * hash) + EARLIEST_CHANGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEarliestChangeTime().hashCode(); - } - if (hasLatestChangeTime()) { - hash = (37 * hash) + LATEST_CHANGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getLatestChangeTime().hashCode(); - } - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for SearchChangeHistoryEvents RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - account_ = ""; - property_ = ""; - resourceType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - action_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - earliestChangeTime_ = null; - if (earliestChangeTimeBuilder_ != null) { - earliestChangeTimeBuilder_.dispose(); - earliestChangeTimeBuilder_ = null; - } - latestChangeTime_ = null; - if (latestChangeTimeBuilder_ != null) { - latestChangeTimeBuilder_.dispose(); - latestChangeTimeBuilder_ = null; - } - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest build() { - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest buildPartial() { - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result) { - if (((bitField0_ & 0x00000004) != 0)) { - resourceType_ = java.util.Collections.unmodifiableList(resourceType_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.resourceType_ = resourceType_; - if (((bitField0_ & 0x00000008) != 0)) { - action_ = java.util.Collections.unmodifiableList(action_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.action_ = action_; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.account_ = account_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - actorEmail_.makeImmutable(); - result.actorEmail_ = actorEmail_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.earliestChangeTime_ = earliestChangeTimeBuilder_ == null - ? earliestChangeTime_ - : earliestChangeTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.latestChangeTime_ = latestChangeTimeBuilder_ == null - ? latestChangeTime_ - : latestChangeTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other) { - if (other == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.getDefaultInstance()) return this; - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.resourceType_.isEmpty()) { - if (resourceType_.isEmpty()) { - resourceType_ = other.resourceType_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureResourceTypeIsMutable(); - resourceType_.addAll(other.resourceType_); - } - onChanged(); - } - if (!other.action_.isEmpty()) { - if (action_.isEmpty()) { - action_ = other.action_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureActionIsMutable(); - action_.addAll(other.action_); - } - onChanged(); - } - if (!other.actorEmail_.isEmpty()) { - if (actorEmail_.isEmpty()) { - actorEmail_ = other.actorEmail_; - bitField0_ |= 0x00000010; - } else { - ensureActorEmailIsMutable(); - actorEmail_.addAll(other.actorEmail_); - } - onChanged(); - } - if (other.hasEarliestChangeTime()) { - mergeEarliestChangeTime(other.getEarliestChangeTime()); - } - if (other.hasLatestChangeTime()) { - mergeLatestChangeTime(other.getLatestChangeTime()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000100; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - account_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - int tmpRaw = input.readEnum(); - ensureResourceTypeIsMutable(); - resourceType_.add(tmpRaw); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureResourceTypeIsMutable(); - resourceType_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: { - int tmpRaw = input.readEnum(); - ensureActionIsMutable(); - action_.add(tmpRaw); - break; - } // case 32 - case 34: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureActionIsMutable(); - action_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureActorEmailIsMutable(); - actorEmail_.add(s); - break; - } // case 42 - case 50: { - input.readMessage( - getEarliestChangeTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getLatestChangeTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object account_ = ""; - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The account. - */ - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The account to set. - * @return This builder for chaining. - */ - public Builder setAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - account_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearAccount() { - account_ = getDefaultInstance().getAccount(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - account_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object property_ = ""; - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List resourceType_ = - java.util.Collections.emptyList(); - private void ensureResourceTypeIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - resourceType_ = new java.util.ArrayList(resourceType_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the resourceType. - */ - public java.util.List getResourceTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>(resourceType_, resourceType_converter_); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of resourceType. - */ - public int getResourceTypeCount() { - return resourceType_.size(); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The resourceType at the given index. - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { - return resourceType_converter_.convert(resourceType_.get(index)); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceTypeIsMutable(); - resourceType_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The resourceType to add. - * @return This builder for chaining. - */ - public Builder addResourceType(com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceTypeIsMutable(); - resourceType_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The resourceType to add. - * @return This builder for chaining. - */ - public Builder addAllResourceType( - java.lang.Iterable values) { - ensureResourceTypeIsMutable(); - for (com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value : values) { - resourceType_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearResourceType() { - resourceType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for resourceType. - */ - public java.util.List - getResourceTypeValueList() { - return java.util.Collections.unmodifiableList(resourceType_); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of resourceType at the given index. - */ - public int getResourceTypeValue(int index) { - return resourceType_.get(index); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue( - int index, int value) { - ensureResourceTypeIsMutable(); - resourceType_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for resourceType to add. - * @return This builder for chaining. - */ - public Builder addResourceTypeValue(int value) { - ensureResourceTypeIsMutable(); - resourceType_.add(value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The enum numeric values on the wire for resourceType to add. - * @return This builder for chaining. - */ - public Builder addAllResourceTypeValue( - java.lang.Iterable values) { - ensureResourceTypeIsMutable(); - for (int value : values) { - resourceType_.add(value); - } - onChanged(); - return this; - } - - private java.util.List action_ = - java.util.Collections.emptyList(); - private void ensureActionIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - action_ = new java.util.ArrayList(action_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the action. - */ - public java.util.List getActionList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>(action_, action_converter_); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of action. - */ - public int getActionCount() { - return action_.size(); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The action at the given index. - */ - public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { - return action_converter_.convert(action_.get(index)); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction( - int index, com.google.analytics.admin.v1alpha.ActionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionIsMutable(); - action_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The action to add. - * @return This builder for chaining. - */ - public Builder addAction(com.google.analytics.admin.v1alpha.ActionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionIsMutable(); - action_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The action to add. - * @return This builder for chaining. - */ - public Builder addAllAction( - java.lang.Iterable values) { - ensureActionIsMutable(); - for (com.google.analytics.admin.v1alpha.ActionType value : values) { - action_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAction() { - action_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for action. - */ - public java.util.List - getActionValueList() { - return java.util.Collections.unmodifiableList(action_); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of action at the given index. - */ - public int getActionValue(int index) { - return action_.get(index); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue( - int index, int value) { - ensureActionIsMutable(); - action_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for action to add. - * @return This builder for chaining. - */ - public Builder addActionValue(int value) { - ensureActionIsMutable(); - action_.add(value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The enum numeric values on the wire for action to add. - * @return This builder for chaining. - */ - public Builder addAllActionValue( - java.lang.Iterable values) { - ensureActionIsMutable(); - for (int value : values) { - action_.add(value); - } - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureActorEmailIsMutable() { - if (!actorEmail_.isModifiable()) { - actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); - } - bitField0_ |= 0x00000010; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the actorEmail. - */ - public com.google.protobuf.ProtocolStringList - getActorEmailList() { - actorEmail_.makeImmutable(); - return actorEmail_; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of actorEmail. - */ - public int getActorEmailCount() { - return actorEmail_.size(); - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The actorEmail at the given index. - */ - public java.lang.String getActorEmail(int index) { - return actorEmail_.get(index); - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the actorEmail at the given index. - */ - public com.google.protobuf.ByteString - getActorEmailBytes(int index) { - return actorEmail_.getByteString(index); - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The actorEmail to set. - * @return This builder for chaining. - */ - public Builder setActorEmail( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureActorEmailIsMutable(); - actorEmail_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The actorEmail to add. - * @return This builder for chaining. - */ - public Builder addActorEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureActorEmailIsMutable(); - actorEmail_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The actorEmail to add. - * @return This builder for chaining. - */ - public Builder addAllActorEmail( - java.lang.Iterable values) { - ensureActorEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actorEmail_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearActorEmail() { - actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes of the actorEmail to add. - * @return This builder for chaining. - */ - public Builder addActorEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureActorEmailIsMutable(); - actorEmail_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp earliestChangeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestChangeTimeBuilder_; - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the earliestChangeTime field is set. - */ - public boolean hasEarliestChangeTime() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The earliestChangeTime. - */ - public com.google.protobuf.Timestamp getEarliestChangeTime() { - if (earliestChangeTimeBuilder_ == null) { - return earliestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } else { - return earliestChangeTimeBuilder_.getMessage(); - } - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEarliestChangeTime(com.google.protobuf.Timestamp value) { - if (earliestChangeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - earliestChangeTime_ = value; - } else { - earliestChangeTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEarliestChangeTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTime_ = builderForValue.build(); - } else { - earliestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeEarliestChangeTime(com.google.protobuf.Timestamp value) { - if (earliestChangeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - earliestChangeTime_ != null && - earliestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getEarliestChangeTimeBuilder().mergeFrom(value); - } else { - earliestChangeTime_ = value; - } - } else { - earliestChangeTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearEarliestChangeTime() { - bitField0_ = (bitField0_ & ~0x00000020); - earliestChangeTime_ = null; - if (earliestChangeTimeBuilder_ != null) { - earliestChangeTimeBuilder_.dispose(); - earliestChangeTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Timestamp.Builder getEarliestChangeTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEarliestChangeTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { - if (earliestChangeTimeBuilder_ != null) { - return earliestChangeTimeBuilder_.getMessageOrBuilder(); - } else { - return earliestChangeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getEarliestChangeTimeFieldBuilder() { - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEarliestChangeTime(), - getParentForChildren(), - isClean()); - earliestChangeTime_ = null; - } - return earliestChangeTimeBuilder_; - } - - private com.google.protobuf.Timestamp latestChangeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestChangeTimeBuilder_; - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the latestChangeTime field is set. - */ - public boolean hasLatestChangeTime() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The latestChangeTime. - */ - public com.google.protobuf.Timestamp getLatestChangeTime() { - if (latestChangeTimeBuilder_ == null) { - return latestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } else { - return latestChangeTimeBuilder_.getMessage(); - } - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setLatestChangeTime(com.google.protobuf.Timestamp value) { - if (latestChangeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - latestChangeTime_ = value; - } else { - latestChangeTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setLatestChangeTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (latestChangeTimeBuilder_ == null) { - latestChangeTime_ = builderForValue.build(); - } else { - latestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeLatestChangeTime(com.google.protobuf.Timestamp value) { - if (latestChangeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - latestChangeTime_ != null && - latestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getLatestChangeTimeBuilder().mergeFrom(value); - } else { - latestChangeTime_ = value; - } - } else { - latestChangeTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearLatestChangeTime() { - bitField0_ = (bitField0_ & ~0x00000040); - latestChangeTime_ = null; - if (latestChangeTimeBuilder_ != null) { - latestChangeTimeBuilder_.dispose(); - latestChangeTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Timestamp.Builder getLatestChangeTimeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getLatestChangeTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { - if (latestChangeTimeBuilder_ != null) { - return latestChangeTimeBuilder_.getMessageOrBuilder(); - } else { - return latestChangeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getLatestChangeTimeFieldBuilder() { - if (latestChangeTimeBuilder_ == null) { - latestChangeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLatestChangeTime(), - getParentForChildren(), - isClean()); - latestChangeTime_ = null; - } - return latestChangeTimeBuilder_; - } - - private int pageSize_ ; - /** - *
-     * Optional. The maximum number of ChangeHistoryEvent items to return.
-     * The service may return fewer than this value, even if there are additional
-     * pages. If unspecified, at most 50 items will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * Optional. The maximum number of ChangeHistoryEvent items to return.
-     * The service may return fewer than this value, even if there are additional
-     * pages. If unspecified, at most 50 items will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Optional. The maximum number of ChangeHistoryEvent items to return.
-     * The service may return fewer than this value, even if there are additional
-     * pages. If unspecified, at most 50 items will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000080); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) - private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchChangeHistoryEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java deleted file mode 100644 index f65896529a82..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java +++ /dev/null @@ -1,301 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface SearchChangeHistoryEventsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The account. - */ - java.lang.String getAccount(); - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - com.google.protobuf.ByteString - getAccountBytes(); - - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the resourceType. - */ - java.util.List getResourceTypeList(); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of resourceType. - */ - int getResourceTypeCount(); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The resourceType at the given index. - */ - com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for resourceType. - */ - java.util.List - getResourceTypeValueList(); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of resourceType at the given index. - */ - int getResourceTypeValue(int index); - - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the action. - */ - java.util.List getActionList(); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of action. - */ - int getActionCount(); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The action at the given index. - */ - com.google.analytics.admin.v1alpha.ActionType getAction(int index); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for action. - */ - java.util.List - getActionValueList(); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of action at the given index. - */ - int getActionValue(int index); - - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the actorEmail. - */ - java.util.List - getActorEmailList(); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of actorEmail. - */ - int getActorEmailCount(); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The actorEmail at the given index. - */ - java.lang.String getActorEmail(int index); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the actorEmail at the given index. - */ - com.google.protobuf.ByteString - getActorEmailBytes(int index); - - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the earliestChangeTime field is set. - */ - boolean hasEarliestChangeTime(); - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The earliestChangeTime. - */ - com.google.protobuf.Timestamp getEarliestChangeTime(); - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder(); - - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the latestChangeTime field is set. - */ - boolean hasLatestChangeTime(); - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The latestChangeTime. - */ - com.google.protobuf.Timestamp getLatestChangeTime(); - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder(); - - /** - *
-   * Optional. The maximum number of ChangeHistoryEvent items to return.
-   * The service may return fewer than this value, even if there are additional
-   * pages. If unspecified, at most 50 items will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java deleted file mode 100644 index 9418222503ff..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for SearchAccounts RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} - */ -public final class SearchChangeHistoryEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) - SearchChangeHistoryEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchChangeHistoryEventsResponse.newBuilder() to construct. - private SearchChangeHistoryEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchChangeHistoryEventsResponse() { - changeHistoryEvents_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchChangeHistoryEventsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); - } - - public static final int CHANGE_HISTORY_EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List changeHistoryEvents_; - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public java.util.List getChangeHistoryEventsList() { - return changeHistoryEvents_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public java.util.List - getChangeHistoryEventsOrBuilderList() { - return changeHistoryEvents_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public int getChangeHistoryEventsCount() { - return changeHistoryEvents_.size(); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { - return changeHistoryEvents_.get(index); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( - int index) { - return changeHistoryEvents_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < changeHistoryEvents_.size(); i++) { - output.writeMessage(1, changeHistoryEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < changeHistoryEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, changeHistoryEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1alpha.SearchChangeHistoryEventsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other = (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) obj; - - if (!getChangeHistoryEventsList() - .equals(other.getChangeHistoryEventsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getChangeHistoryEventsCount() > 0) { - hash = (37 * hash) + CHANGE_HISTORY_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getChangeHistoryEventsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for SearchAccounts RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (changeHistoryEventsBuilder_ == null) { - changeHistoryEvents_ = java.util.Collections.emptyList(); - } else { - changeHistoryEvents_ = null; - changeHistoryEventsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse build() { - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse buildPartial() { - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result) { - if (changeHistoryEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.changeHistoryEvents_ = changeHistoryEvents_; - } else { - result.changeHistoryEvents_ = changeHistoryEventsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other) { - if (other == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.getDefaultInstance()) return this; - if (changeHistoryEventsBuilder_ == null) { - if (!other.changeHistoryEvents_.isEmpty()) { - if (changeHistoryEvents_.isEmpty()) { - changeHistoryEvents_ = other.changeHistoryEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.addAll(other.changeHistoryEvents_); - } - onChanged(); - } - } else { - if (!other.changeHistoryEvents_.isEmpty()) { - if (changeHistoryEventsBuilder_.isEmpty()) { - changeHistoryEventsBuilder_.dispose(); - changeHistoryEventsBuilder_ = null; - changeHistoryEvents_ = other.changeHistoryEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - changeHistoryEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangeHistoryEventsFieldBuilder() : null; - } else { - changeHistoryEventsBuilder_.addAllMessages(other.changeHistoryEvents_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.ChangeHistoryEvent m = - input.readMessage( - com.google.analytics.admin.v1alpha.ChangeHistoryEvent.parser(), - extensionRegistry); - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(m); - } else { - changeHistoryEventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List changeHistoryEvents_ = - java.util.Collections.emptyList(); - private void ensureChangeHistoryEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - changeHistoryEvents_ = new java.util.ArrayList(changeHistoryEvents_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryEvent, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> changeHistoryEventsBuilder_; - - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public java.util.List getChangeHistoryEventsList() { - if (changeHistoryEventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(changeHistoryEvents_); - } else { - return changeHistoryEventsBuilder_.getMessageList(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public int getChangeHistoryEventsCount() { - if (changeHistoryEventsBuilder_ == null) { - return changeHistoryEvents_.size(); - } else { - return changeHistoryEventsBuilder_.getCount(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { - if (changeHistoryEventsBuilder_ == null) { - return changeHistoryEvents_.get(index); - } else { - return changeHistoryEventsBuilder_.getMessage(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder setChangeHistoryEvents( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { - if (changeHistoryEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.set(index, value); - onChanged(); - } else { - changeHistoryEventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder setChangeHistoryEvents( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.set(index, builderForValue.build()); - onChanged(); - } else { - changeHistoryEventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents(com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { - if (changeHistoryEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(value); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { - if (changeHistoryEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(index, value); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents( - com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(builderForValue.build()); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents( - int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(index, builderForValue.build()); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addAllChangeHistoryEvents( - java.lang.Iterable values) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changeHistoryEvents_); - onChanged(); - } else { - changeHistoryEventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder clearChangeHistoryEvents() { - if (changeHistoryEventsBuilder_ == null) { - changeHistoryEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - changeHistoryEventsBuilder_.clear(); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public Builder removeChangeHistoryEvents(int index) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.remove(index); - onChanged(); - } else { - changeHistoryEventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder getChangeHistoryEventsBuilder( - int index) { - return getChangeHistoryEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( - int index) { - if (changeHistoryEventsBuilder_ == null) { - return changeHistoryEvents_.get(index); } else { - return changeHistoryEventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public java.util.List - getChangeHistoryEventsOrBuilderList() { - if (changeHistoryEventsBuilder_ != null) { - return changeHistoryEventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(changeHistoryEvents_); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder addChangeHistoryEventsBuilder() { - return getChangeHistoryEventsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder addChangeHistoryEventsBuilder( - int index) { - return getChangeHistoryEventsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - public java.util.List - getChangeHistoryEventsBuilderList() { - return getChangeHistoryEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryEvent, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> - getChangeHistoryEventsFieldBuilder() { - if (changeHistoryEventsBuilder_ == null) { - changeHistoryEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChangeHistoryEvent, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder>( - changeHistoryEvents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - changeHistoryEvents_ = null; - } - return changeHistoryEventsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) - private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); - } - - public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchChangeHistoryEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java deleted file mode 100644 index bcf0e3b0ad08..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface SearchChangeHistoryEventsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - java.util.List - getChangeHistoryEventsList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - int getChangeHistoryEventsCount(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - java.util.List - getChangeHistoryEventsOrBuilderList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; - */ - com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java deleted file mode 100644 index 6af0b872d616..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/resources.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Various levels of service for Google Analytics.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.ServiceLevel} - */ -public enum ServiceLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Service level not specified or invalid.
-   * 
- * - * SERVICE_LEVEL_UNSPECIFIED = 0; - */ - SERVICE_LEVEL_UNSPECIFIED(0), - /** - *
-   * The standard version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_STANDARD = 1; - */ - GOOGLE_ANALYTICS_STANDARD(1), - /** - *
-   * The paid, premium version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_360 = 2; - */ - GOOGLE_ANALYTICS_360(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Service level not specified or invalid.
-   * 
- * - * SERVICE_LEVEL_UNSPECIFIED = 0; - */ - public static final int SERVICE_LEVEL_UNSPECIFIED_VALUE = 0; - /** - *
-   * The standard version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_STANDARD = 1; - */ - public static final int GOOGLE_ANALYTICS_STANDARD_VALUE = 1; - /** - *
-   * The paid, premium version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_360 = 2; - */ - public static final int GOOGLE_ANALYTICS_360_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ServiceLevel 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 ServiceLevel forNumber(int value) { - switch (value) { - case 0: return SERVICE_LEVEL_UNSPECIFIED; - case 1: return GOOGLE_ANALYTICS_STANDARD; - case 2: return GOOGLE_ANALYTICS_360; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServiceLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ServiceLevel findValueByNumber(int number) { - return ServiceLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(1); - } - - private static final ServiceLevel[] VALUES = values(); - - public static ServiceLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ServiceLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ServiceLevel) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequest.java deleted file mode 100644 index e9453273cd0c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequest.java +++ /dev/null @@ -1,681 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request for setting the opt out status for the automated GA4 setup process.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} - */ -public final class SetAutomatedGa4ConfigurationOptOutRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) - SetAutomatedGa4ConfigurationOptOutRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() to construct. - private SetAutomatedGa4ConfigurationOptOutRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetAutomatedGa4ConfigurationOptOutRequest() { - property_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetAutomatedGa4ConfigurationOptOutRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.class, com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Required. The UA property to set the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Required. The UA property to set the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OPT_OUT_FIELD_NUMBER = 2; - private boolean optOut_ = false; - /** - *
-   * The status to set.
-   * 
- * - * bool opt_out = 2; - * @return The optOut. - */ - @java.lang.Override - public boolean getOptOut() { - return optOut_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (optOut_ != false) { - output.writeBool(2, optOut_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (optOut_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, optOut_); - } - 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.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest other = (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) return false; - if (getOptOut() - != other.getOptOut()) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (37 * hash) + OPT_OUT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOptOut()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request for setting the opt out status for the automated GA4 setup process.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.class, com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - optOut_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest build() { - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest buildPartial() { - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest result = new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.optOut_ = optOut_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest other) { - if (other == com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getOptOut() != false) { - setOptOut(other.getOptOut()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - optOut_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * Required. The UA property to set the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The UA property to set the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The UA property to set the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The UA property to set the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The UA property to set the opt out status. Note this request uses
-     * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-     * Format: properties/{internalWebPropertyId}
-     * Example: properties/1234
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean optOut_ ; - /** - *
-     * The status to set.
-     * 
- * - * bool opt_out = 2; - * @return The optOut. - */ - @java.lang.Override - public boolean getOptOut() { - return optOut_; - } - /** - *
-     * The status to set.
-     * 
- * - * bool opt_out = 2; - * @param value The optOut to set. - * @return This builder for chaining. - */ - public Builder setOptOut(boolean value) { - - optOut_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The status to set.
-     * 
- * - * bool opt_out = 2; - * @return This builder for chaining. - */ - public Builder clearOptOut() { - bitField0_ = (bitField0_ & ~0x00000002); - optOut_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) - private static final com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest(); - } - - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetAutomatedGa4ConfigurationOptOutRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequestOrBuilder.java deleted file mode 100644 index 7b29653f0ddb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutRequestOrBuilder.java +++ /dev/null @@ -1,45 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface SetAutomatedGa4ConfigurationOptOutRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The UA property to set the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Required. The UA property to set the opt out status. Note this request uses
-   * the internal property ID, not the tracking ID of the form UA-XXXXXX-YY.
-   * Format: properties/{internalWebPropertyId}
-   * Example: properties/1234
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * The status to set.
-   * 
- * - * bool opt_out = 2; - * @return The optOut. - */ - boolean getOptOut(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponse.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponse.java deleted file mode 100644 index 6301ec97340c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponse.java +++ /dev/null @@ -1,408 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Response message for setting the opt out status for the automated GA4 setup
- * process.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} - */ -public final class SetAutomatedGa4ConfigurationOptOutResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) - SetAutomatedGa4ConfigurationOptOutResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SetAutomatedGa4ConfigurationOptOutResponse.newBuilder() to construct. - private SetAutomatedGa4ConfigurationOptOutResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SetAutomatedGa4ConfigurationOptOutResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SetAutomatedGa4ConfigurationOptOutResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.class, com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.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.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse other = (com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) 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.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for setting the opt out status for the automated GA4 setup
-   * process.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.class, com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_SetAutomatedGa4ConfigurationOptOutResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse build() { - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse buildPartial() { - com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse result = new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) { - return mergeFrom((com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse other) { - if (other == com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) - private static final com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse(); - } - - public static com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetAutomatedGa4ConfigurationOptOutResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponseOrBuilder.java deleted file mode 100644 index 7071a6e05cca..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SetAutomatedGa4ConfigurationOptOutResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface SetAutomatedGa4ConfigurationOptOutResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SetAutomatedGa4ConfigurationOptOutResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java deleted file mode 100644 index ec02cbb08801..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilter.java +++ /dev/null @@ -1,1279 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A resource message representing a GA4 Subproperty event filter.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilter} - */ -public final class SubpropertyEventFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilter) - SubpropertyEventFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use SubpropertyEventFilter.newBuilder() to construct. - private SubpropertyEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SubpropertyEventFilter() { - name_ = ""; - applyToProperty_ = ""; - filterClauses_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SubpropertyEventFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Format:
-   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-   * Example: properties/1234/subpropertyEventFilters/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Format:
-   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-   * Example: properties/1234/subpropertyEventFilters/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int APPLY_TO_PROPERTY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object applyToProperty_ = ""; - /** - *
-   * Immutable. Resource name of the Subproperty that uses this filter.
-   * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the applyToProperty field is set. - */ - @java.lang.Override - public boolean hasApplyToProperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-   * Immutable. Resource name of the Subproperty that uses this filter.
-   * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The applyToProperty. - */ - @java.lang.Override - public java.lang.String getApplyToProperty() { - java.lang.Object ref = applyToProperty_; - 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(); - applyToProperty_ = s; - return s; - } - } - /** - *
-   * Immutable. Resource name of the Subproperty that uses this filter.
-   * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for applyToProperty. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getApplyToPropertyBytes() { - java.lang.Object ref = applyToProperty_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - applyToProperty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_CLAUSES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List filterClauses_; - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public java.util.List getFilterClausesList() { - return filterClauses_; - } - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public java.util.List - getFilterClausesOrBuilderList() { - return filterClauses_; - } - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public int getFilterClausesCount() { - return filterClauses_.size(); - } - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses(int index) { - return filterClauses_.get(index); - } - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder getFilterClausesOrBuilder( - int index) { - return filterClauses_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, applyToProperty_); - } - for (int i = 0; i < filterClauses_.size(); i++) { - output.writeMessage(3, filterClauses_.get(i)); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, applyToProperty_); - } - for (int i = 0; i < filterClauses_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, filterClauses_.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.admin.v1alpha.SubpropertyEventFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SubpropertyEventFilter other = (com.google.analytics.admin.v1alpha.SubpropertyEventFilter) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasApplyToProperty() != other.hasApplyToProperty()) return false; - if (hasApplyToProperty()) { - if (!getApplyToProperty() - .equals(other.getApplyToProperty())) return false; - } - if (!getFilterClausesList() - .equals(other.getFilterClausesList())) 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(); - if (hasApplyToProperty()) { - hash = (37 * hash) + APPLY_TO_PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getApplyToProperty().hashCode(); - } - if (getFilterClausesCount() > 0) { - hash = (37 * hash) + FILTER_CLAUSES_FIELD_NUMBER; - hash = (53 * hash) + getFilterClausesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SubpropertyEventFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a GA4 Subproperty event filter.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilter) - com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - applyToProperty_ = ""; - if (filterClausesBuilder_ == null) { - filterClauses_ = java.util.Collections.emptyList(); - } else { - filterClauses_ = null; - filterClausesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter build() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter buildPartial() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilter result = new com.google.analytics.admin.v1alpha.SubpropertyEventFilter(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.SubpropertyEventFilter result) { - if (filterClausesBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - filterClauses_ = java.util.Collections.unmodifiableList(filterClauses_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.filterClauses_ = filterClauses_; - } else { - result.filterClauses_ = filterClausesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.applyToProperty_ = applyToProperty_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilter other) { - if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasApplyToProperty()) { - applyToProperty_ = other.applyToProperty_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (filterClausesBuilder_ == null) { - if (!other.filterClauses_.isEmpty()) { - if (filterClauses_.isEmpty()) { - filterClauses_ = other.filterClauses_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureFilterClausesIsMutable(); - filterClauses_.addAll(other.filterClauses_); - } - onChanged(); - } - } else { - if (!other.filterClauses_.isEmpty()) { - if (filterClausesBuilder_.isEmpty()) { - filterClausesBuilder_.dispose(); - filterClausesBuilder_ = null; - filterClauses_ = other.filterClauses_; - bitField0_ = (bitField0_ & ~0x00000004); - filterClausesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFilterClausesFieldBuilder() : null; - } else { - filterClausesBuilder_.addAllMessages(other.filterClauses_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - applyToProperty_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause m = - input.readMessage( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.parser(), - extensionRegistry); - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.add(m); - } else { - filterClausesBuilder_.addMessage(m); - } - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Format:
-     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-     * Example: properties/1234/subpropertyEventFilters/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Format:
-     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-     * Example: properties/1234/subpropertyEventFilters/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Format:
-     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-     * Example: properties/1234/subpropertyEventFilters/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Format:
-     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-     * Example: properties/1234/subpropertyEventFilters/5678
-     * 
- * - * string name = 1 [(.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. Format:
-     * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-     * Example: properties/1234/subpropertyEventFilters/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object applyToProperty_ = ""; - /** - *
-     * Immutable. Resource name of the Subproperty that uses this filter.
-     * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the applyToProperty field is set. - */ - public boolean hasApplyToProperty() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Immutable. Resource name of the Subproperty that uses this filter.
-     * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The applyToProperty. - */ - public java.lang.String getApplyToProperty() { - java.lang.Object ref = applyToProperty_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - applyToProperty_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Resource name of the Subproperty that uses this filter.
-     * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for applyToProperty. - */ - public com.google.protobuf.ByteString - getApplyToPropertyBytes() { - java.lang.Object ref = applyToProperty_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - applyToProperty_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Resource name of the Subproperty that uses this filter.
-     * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The applyToProperty to set. - * @return This builder for chaining. - */ - public Builder setApplyToProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - applyToProperty_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of the Subproperty that uses this filter.
-     * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearApplyToProperty() { - applyToProperty_ = getDefaultInstance().getApplyToProperty(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of the Subproperty that uses this filter.
-     * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for applyToProperty to set. - * @return This builder for chaining. - */ - public Builder setApplyToPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - applyToProperty_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List filterClauses_ = - java.util.Collections.emptyList(); - private void ensureFilterClausesIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - filterClauses_ = new java.util.ArrayList(filterClauses_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> filterClausesBuilder_; - - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List getFilterClausesList() { - if (filterClausesBuilder_ == null) { - return java.util.Collections.unmodifiableList(filterClauses_); - } else { - return filterClausesBuilder_.getMessageList(); - } - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public int getFilterClausesCount() { - if (filterClausesBuilder_ == null) { - return filterClauses_.size(); - } else { - return filterClausesBuilder_.getCount(); - } - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses(int index) { - if (filterClausesBuilder_ == null) { - return filterClauses_.get(index); - } else { - return filterClausesBuilder_.getMessage(index); - } - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder setFilterClauses( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { - if (filterClausesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterClausesIsMutable(); - filterClauses_.set(index, value); - onChanged(); - } else { - filterClausesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder setFilterClauses( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.set(index, builderForValue.build()); - onChanged(); - } else { - filterClausesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses(com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { - if (filterClausesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterClausesIsMutable(); - filterClauses_.add(value); - onChanged(); - } else { - filterClausesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause value) { - if (filterClausesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterClausesIsMutable(); - filterClauses_.add(index, value); - onChanged(); - } else { - filterClausesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.add(builderForValue.build()); - onChanged(); - } else { - filterClausesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterClauses( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder builderForValue) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.add(index, builderForValue.build()); - onChanged(); - } else { - filterClausesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addAllFilterClauses( - java.lang.Iterable values) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filterClauses_); - onChanged(); - } else { - filterClausesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder clearFilterClauses() { - if (filterClausesBuilder_ == null) { - filterClauses_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - filterClausesBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder removeFilterClauses(int index) { - if (filterClausesBuilder_ == null) { - ensureFilterClausesIsMutable(); - filterClauses_.remove(index); - onChanged(); - } else { - filterClausesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder getFilterClausesBuilder( - int index) { - return getFilterClausesFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder getFilterClausesOrBuilder( - int index) { - if (filterClausesBuilder_ == null) { - return filterClauses_.get(index); } else { - return filterClausesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List - getFilterClausesOrBuilderList() { - if (filterClausesBuilder_ != null) { - return filterClausesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filterClauses_); - } - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder addFilterClausesBuilder() { - return getFilterClausesFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()); - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder addFilterClausesBuilder( - int index) { - return getFilterClausesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()); - } - /** - *
-     * Required. Unordered list. Filter clauses that define the
-     * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-     * data is sent to the subproperty.
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List - getFilterClausesBuilderList() { - return getFilterClausesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder> - getFilterClausesFieldBuilder() { - if (filterClausesBuilder_ == null) { - filterClausesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder>( - filterClauses_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - filterClauses_ = null; - } - return filterClausesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilter) - private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilter(); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubpropertyEventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java deleted file mode 100644 index c72d72f353d3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClause.java +++ /dev/null @@ -1,929 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A clause for defining a filter. A filter may be inclusive (events satisfying
- * the filter clause are included in the subproperty's data) or exclusive
- * (events satisfying the filter clause are excluded from the subproperty's
- * data).
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterClause} - */ -public final class SubpropertyEventFilterClause extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) - SubpropertyEventFilterClauseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SubpropertyEventFilterClause.newBuilder() to construct. - private SubpropertyEventFilterClause(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SubpropertyEventFilterClause() { - filterClauseType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SubpropertyEventFilterClause(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder.class); - } - - /** - *
-   * Specifies whether this is an include or exclude filter clause.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType} - */ - public enum FilterClauseType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Filter clause type unknown or not specified.
-     * 
- * - * FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; - */ - FILTER_CLAUSE_TYPE_UNSPECIFIED(0), - /** - *
-     * Events will be included in the Sub property if the filter clause is met.
-     * 
- * - * INCLUDE = 1; - */ - INCLUDE(1), - /** - *
-     * Events will be excluded from the Sub property if the filter clause is
-     * met.
-     * 
- * - * EXCLUDE = 2; - */ - EXCLUDE(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Filter clause type unknown or not specified.
-     * 
- * - * FILTER_CLAUSE_TYPE_UNSPECIFIED = 0; - */ - public static final int FILTER_CLAUSE_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Events will be included in the Sub property if the filter clause is met.
-     * 
- * - * INCLUDE = 1; - */ - public static final int INCLUDE_VALUE = 1; - /** - *
-     * Events will be excluded from the Sub property if the filter clause is
-     * met.
-     * 
- * - * EXCLUDE = 2; - */ - public static final int EXCLUDE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static FilterClauseType 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 FilterClauseType forNumber(int value) { - switch (value) { - case 0: return FILTER_CLAUSE_TYPE_UNSPECIFIED; - case 1: return INCLUDE; - case 2: return EXCLUDE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - FilterClauseType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public FilterClauseType findValueByNumber(int number) { - return FilterClauseType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDescriptor().getEnumTypes().get(0); - } - - private static final FilterClauseType[] VALUES = values(); - - public static FilterClauseType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private FilterClauseType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType) - } - - public static final int FILTER_CLAUSE_TYPE_FIELD_NUMBER = 1; - private int filterClauseType_ = 0; - /** - *
-   * Required. The type for the filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for filterClauseType. - */ - @java.lang.Override public int getFilterClauseTypeValue() { - return filterClauseType_; - } - /** - *
-   * Required. The type for the filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filterClauseType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType getFilterClauseType() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType result = com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.forNumber(filterClauseType_); - return result == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.UNRECOGNIZED : result; - } - - public static final int FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filterExpression_; - /** - *
-   * Required. The logical expression for what events are sent to the
-   * subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the filterExpression field is set. - */ - @java.lang.Override - public boolean hasFilterExpression() { - return filterExpression_ != null; - } - /** - *
-   * Required. The logical expression for what events are sent to the
-   * subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The filterExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpression() { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() : filterExpression_; - } - /** - *
-   * Required. The logical expression for what events are sent to the
-   * subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getFilterExpressionOrBuilder() { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() : filterExpression_; - } - - 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 (filterClauseType_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.FILTER_CLAUSE_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, filterClauseType_); - } - if (filterExpression_ != null) { - output.writeMessage(2, getFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (filterClauseType_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.FILTER_CLAUSE_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, filterClauseType_); - } - if (filterExpression_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFilterExpression()); - } - 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.admin.v1alpha.SubpropertyEventFilterClause)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause other = (com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause) obj; - - if (filterClauseType_ != other.filterClauseType_) return false; - if (hasFilterExpression() != other.hasFilterExpression()) return false; - if (hasFilterExpression()) { - if (!getFilterExpression() - .equals(other.getFilterExpression())) 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) + FILTER_CLAUSE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + filterClauseType_; - if (hasFilterExpression()) { - hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A clause for defining a filter. A filter may be inclusive (events satisfying
-   * the filter clause are included in the subproperty's data) or exclusive
-   * (events satisfying the filter clause are excluded from the subproperty's
-   * data).
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterClause} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filterClauseType_ = 0; - filterExpression_ = null; - if (filterExpressionBuilder_ != null) { - filterExpressionBuilder_.dispose(); - filterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause build() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause buildPartial() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filterClauseType_ = filterClauseType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.filterExpression_ = filterExpressionBuilder_ == null - ? filterExpression_ - : filterExpressionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause) { - return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause other) { - if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.getDefaultInstance()) return this; - if (other.filterClauseType_ != 0) { - setFilterClauseTypeValue(other.getFilterClauseTypeValue()); - } - if (other.hasFilterExpression()) { - mergeFilterExpression(other.getFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - filterClauseType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int filterClauseType_ = 0; - /** - *
-     * Required. The type for the filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for filterClauseType. - */ - @java.lang.Override public int getFilterClauseTypeValue() { - return filterClauseType_; - } - /** - *
-     * Required. The type for the filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for filterClauseType to set. - * @return This builder for chaining. - */ - public Builder setFilterClauseTypeValue(int value) { - filterClauseType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The type for the filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filterClauseType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType getFilterClauseType() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType result = com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.forNumber(filterClauseType_); - return result == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType.UNRECOGNIZED : result; - } - /** - *
-     * Required. The type for the filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The filterClauseType to set. - * @return This builder for chaining. - */ - public Builder setFilterClauseType(com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - filterClauseType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The type for the filter clause.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearFilterClauseType() { - bitField0_ = (bitField0_ & ~0x00000001); - filterClauseType_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> filterExpressionBuilder_; - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the filterExpression field is set. - */ - public boolean hasFilterExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The filterExpression. - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpression() { - if (filterExpressionBuilder_ == null) { - return filterExpression_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() : filterExpression_; - } else { - return filterExpressionBuilder_.getMessage(); - } - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFilterExpression(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterExpression_ = value; - } else { - filterExpressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFilterExpression( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder builderForValue) { - if (filterExpressionBuilder_ == null) { - filterExpression_ = builderForValue.build(); - } else { - filterExpressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeFilterExpression(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - filterExpression_ != null && - filterExpression_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance()) { - getFilterExpressionBuilder().mergeFrom(value); - } else { - filterExpression_ = value; - } - } else { - filterExpressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearFilterExpression() { - bitField0_ = (bitField0_ & ~0x00000002); - filterExpression_ = null; - if (filterExpressionBuilder_ != null) { - filterExpressionBuilder_.dispose(); - filterExpressionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder getFilterExpressionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFilterExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getFilterExpressionOrBuilder() { - if (filterExpressionBuilder_ != null) { - return filterExpressionBuilder_.getMessageOrBuilder(); - } else { - return filterExpression_ == null ? - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance() : filterExpression_; - } - } - /** - *
-     * Required. The logical expression for what events are sent to the
-     * subproperty.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> - getFilterExpressionFieldBuilder() { - if (filterExpressionBuilder_ == null) { - filterExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( - getFilterExpression(), - getParentForChildren(), - isClean()); - filterExpression_ = null; - } - return filterExpressionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) - private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause(); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubpropertyEventFilterClause parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java deleted file mode 100644 index 5289c739d375..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterClauseOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -public interface SubpropertyEventFilterClauseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterClause) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The type for the filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for filterClauseType. - */ - int getFilterClauseTypeValue(); - /** - *
-   * Required. The type for the filter clause.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType filter_clause_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filterClauseType. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause.FilterClauseType getFilterClauseType(); - - /** - *
-   * Required. The logical expression for what events are sent to the
-   * subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the filterExpression field is set. - */ - boolean hasFilterExpression(); - /** - *
-   * Required. The logical expression for what events are sent to the
-   * subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The filterExpression. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpression(); - /** - *
-   * Required. The logical expression for what events are sent to the
-   * subproperty.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expression = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getFilterExpressionOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java deleted file mode 100644 index 17647dbd71bd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterCondition.java +++ /dev/null @@ -1,2072 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A specific filter expression
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition} - */ -public final class SubpropertyEventFilterCondition extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) - SubpropertyEventFilterConditionOrBuilder { -private static final long serialVersionUID = 0L; - // Use SubpropertyEventFilterCondition.newBuilder() to construct. - private SubpropertyEventFilterCondition(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SubpropertyEventFilterCondition() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SubpropertyEventFilterCondition(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder.class); - } - - public interface StringFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - int getMatchTypeValue(); - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType getMatchType(); - - /** - *
-     * Required. The string value used for the matching.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-     * Required. The string value used for the matching.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-     * Optional. If true, the string value is case sensitive. If false, the
-     * match is case-insensitive.
-     * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter} - */ - public static final class StringFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) - StringFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use StringFilter.newBuilder() to construct. - private StringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private StringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new StringFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder.class); - } - - /** - *
-     * How the filter will be used to determine a match.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType} - */ - public enum MatchType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Match type unknown or not specified.
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - BEGINS_WITH(2), - /** - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - ENDS_WITH(3), - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - CONTAINS(4), - /** - *
-       * Full regular expression matches with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - *
-       * Partial regular expression matches with the string value.
-       * 
- * - * PARTIAL_REGEXP = 6; - */ - PARTIAL_REGEXP(6), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Match type unknown or not specified.
-       * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Exact match of the string value.
-       * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - *
-       * Begins with the string value.
-       * 
- * - * BEGINS_WITH = 2; - */ - public static final int BEGINS_WITH_VALUE = 2; - /** - *
-       * Ends with the string value.
-       * 
- * - * ENDS_WITH = 3; - */ - public static final int ENDS_WITH_VALUE = 3; - /** - *
-       * Contains the string value.
-       * 
- * - * CONTAINS = 4; - */ - public static final int CONTAINS_VALUE = 4; - /** - *
-       * Full regular expression matches with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - *
-       * Partial regular expression matches with the string value.
-       * 
- * - * PARTIAL_REGEXP = 6; - */ - public static final int PARTIAL_REGEXP_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: return MATCH_TYPE_UNSPECIFIED; - case 1: return EXACT; - case 2: return BEGINS_WITH; - case 3: return ENDS_WITH; - case 4: return CONTAINS; - case 5: return FULL_REGEXP; - case 6: return PARTIAL_REGEXP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_ = 0; - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-     * Required. The match type for the string filter.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-     * Required. The string value used for the matching.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-     * Required. The string value used for the matching.
-     * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; - private boolean caseSensitive_ = false; - /** - *
-     * Optional. If true, the string value is case sensitive. If false, the
-     * match is case-insensitive.
-     * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (matchType_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (caseSensitive_ != false) { - output.writeBool(3, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); - } - size += 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.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter other = (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - matchType_ = 0; - value_ = ""; - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter build() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter buildPartial() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.matchType_ = matchType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) { - return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter other) { - if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance()) return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - matchType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int matchType_ = 0; - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - matchType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType result = com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType.UNRECOGNIZED : result; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Required. The match type for the string filter.
-       * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.MatchType match_type = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMatchType() { - bitField0_ = (bitField0_ & ~0x00000001); - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-       * Required. The string value used for the matching.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. The string value used for the matching.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. The string value used for the matching.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. The string value used for the matching.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Required. The string value used for the matching.
-       * 
- * - * string value = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-       * Optional. If true, the string value is case sensitive. If false, the
-       * match is case-insensitive.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-       * Optional. If true, the string value is case sensitive. If false, the
-       * match is case-insensitive.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Optional. If true, the string value is case sensitive. If false, the
-       * match is case-insensitive.
-       * 
- * - * bool case_sensitive = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000004); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) - private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter(); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int oneFilterCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneFilter_; - public enum OneFilterCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - NULL_FILTER(2), - STRING_FILTER(3), - ONEFILTER_NOT_SET(0); - private final int value; - private OneFilterCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneFilterCase valueOf(int value) { - return forNumber(value); - } - - public static OneFilterCase forNumber(int value) { - switch (value) { - case 2: return NULL_FILTER; - case 3: return STRING_FILTER; - case 0: return ONEFILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public static final int NULL_FILTER_FIELD_NUMBER = 2; - /** - *
-   * A filter for null values.
-   * 
- * - * bool null_filter = 2; - * @return Whether the nullFilter field is set. - */ - @java.lang.Override - public boolean hasNullFilter() { - return oneFilterCase_ == 2; - } - /** - *
-   * A filter for null values.
-   * 
- * - * bool null_filter = 2; - * @return The nullFilter. - */ - @java.lang.Override - public boolean getNullFilter() { - if (oneFilterCase_ == 2) { - return (java.lang.Boolean) oneFilter_; - } - return false; - } - - public static final int STRING_FILTER_FIELD_NUMBER = 3; - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 3; - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getStringFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance(); - } - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance(); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; - /** - *
-   * Required. The field that is being filtered.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - *
-   * Required. The field that is being filtered.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 2) { - output.writeBool( - 2, (boolean)((java.lang.Boolean) oneFilter_)); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_); - } - 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(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize( - 2, (boolean)((java.lang.Boolean) oneFilter_)); - } - if (oneFilterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_); - } - 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.admin.v1alpha.SubpropertyEventFilterCondition)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition other = (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) obj; - - if (!getFieldName() - .equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 2: - if (getNullFilter() - != other.getNullFilter()) return false; - break; - case 3: - if (!getStringFilter() - .equals(other.getStringFilter())) 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(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (oneFilterCase_) { - case 2: - hash = (37 * hash) + NULL_FILTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getNullFilter()); - break; - case 3: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A specific filter expression
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterCondition} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) - com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - fieldName_ = ""; - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition build() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition buildPartial() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.fieldName_ = fieldName_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition result) { - result.oneFilterCase_ = oneFilterCase_; - result.oneFilter_ = this.oneFilter_; - if (oneFilterCase_ == 3 && - stringFilterBuilder_ != null) { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) { - return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition other) { - if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000004; - onChanged(); - } - switch (other.getOneFilterCase()) { - case NULL_FILTER: { - setNullFilter(other.getNullFilter()); - break; - } - case STRING_FILTER: { - mergeStringFilter(other.getStringFilter()); - break; - } - case ONEFILTER_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - fieldName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 10 - case 16: { - oneFilter_ = input.readBool(); - oneFilterCase_ = 2; - break; - } // case 16 - case 26: { - input.readMessage( - getStringFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public Builder clearOneFilter() { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-     * A filter for null values.
-     * 
- * - * bool null_filter = 2; - * @return Whether the nullFilter field is set. - */ - public boolean hasNullFilter() { - return oneFilterCase_ == 2; - } - /** - *
-     * A filter for null values.
-     * 
- * - * bool null_filter = 2; - * @return The nullFilter. - */ - public boolean getNullFilter() { - if (oneFilterCase_ == 2) { - return (java.lang.Boolean) oneFilter_; - } - return false; - } - /** - *
-     * A filter for null values.
-     * 
- * - * bool null_filter = 2; - * @param value The nullFilter to set. - * @return This builder for chaining. - */ - public Builder setNullFilter(boolean value) { - - oneFilterCase_ = 2; - oneFilter_ = value; - onChanged(); - return this; - } - /** - *
-     * A filter for null values.
-     * 
- * - * bool null_filter = 2; - * @return This builder for chaining. - */ - public Builder clearNullFilter() { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder> stringFilterBuilder_; - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 3; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - public Builder setStringFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - public Builder setStringFilter( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - public Builder mergeStringFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3 && - oneFilter_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.newBuilder((com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for a string-type dimension that matches a particular pattern.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder>( - (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - return stringFilterBuilder_; - } - - private java.lang.Object fieldName_ = ""; - /** - *
-     * Required. The field that is being filtered.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The field that is being filtered.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The field that is being filtered.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. The field that is being filtered.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. The field that is being filtered.
-     * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) - private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition(); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubpropertyEventFilterCondition parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java deleted file mode 100644 index 6e70622019b1..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterConditionOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -public interface SubpropertyEventFilterConditionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A filter for null values.
-   * 
- * - * bool null_filter = 2; - * @return Whether the nullFilter field is set. - */ - boolean hasNullFilter(); - /** - *
-   * A filter for null values.
-   * 
- * - * bool null_filter = 2; - * @return The nullFilter. - */ - boolean getNullFilter(); - - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - * @return The stringFilter. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter getStringFilter(); - /** - *
-   * A filter for a string-type dimension that matches a particular pattern.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilter string_filter = 3; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - *
-   * Required. The field that is being filtered.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
-   * Required. The field that is being filtered.
-   * 
- * - * string field_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.OneFilterCase getOneFilterCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java deleted file mode 100644 index 2a5d090b4ea4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpression.java +++ /dev/null @@ -1,1304 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A logical expression of Subproperty event filters.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpression} - */ -public final class SubpropertyEventFilterExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) - SubpropertyEventFilterExpressionOrBuilder { -private static final long serialVersionUID = 0L; - // Use SubpropertyEventFilterExpression.newBuilder() to construct. - private SubpropertyEventFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SubpropertyEventFilterExpression() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SubpropertyEventFilterExpression(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder.class); - } - - private int exprCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object expr_; - public enum ExprCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - OR_GROUP(1), - NOT_EXPRESSION(2), - FILTER_CONDITION(3), - EXPR_NOT_SET(0); - private final int value; - private ExprCase(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 ExprCase valueOf(int value) { - return forNumber(value); - } - - public static ExprCase forNumber(int value) { - switch (value) { - case 1: return OR_GROUP; - case 2: return NOT_EXPRESSION; - case 3: return FILTER_CONDITION; - case 0: return EXPR_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public static final int OR_GROUP_FIELD_NUMBER = 1; - /** - *
-   * A list of expressions to OR’ed together. Must only contain
-   * not_expression or filter_condition expressions.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 1; - } - /** - *
-   * A list of expressions to OR’ed together. Must only contain
-   * not_expression or filter_condition expressions.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * A list of expressions to OR’ed together. Must only contain
-   * not_expression or filter_condition expressions.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 2; - /** - *
-   * A filter expression to be NOT'ed (inverted, complemented). It can only
-   * include a filter. This cannot be set on the top level
-   * SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 2; - } - /** - *
-   * A filter expression to be NOT'ed (inverted, complemented). It can only
-   * include a filter. This cannot be set on the top level
-   * SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); - } - /** - *
-   * A filter expression to be NOT'ed (inverted, complemented). It can only
-   * include a filter. This cannot be set on the top level
-   * SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); - } - - public static final int FILTER_CONDITION_FIELD_NUMBER = 3; - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @return Whether the filterCondition field is set. - */ - @java.lang.Override - public boolean hasFilterCondition() { - return exprCase_ == 3; - } - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @return The filterCondition. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); - } - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder getFilterConditionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (exprCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (exprCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_); - } - if (exprCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_); - } - 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.admin.v1alpha.SubpropertyEventFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression other = (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) obj; - - if (!getExprCase().equals(other.getExprCase())) return false; - switch (exprCase_) { - case 1: - if (!getOrGroup() - .equals(other.getOrGroup())) return false; - break; - case 2: - if (!getNotExpression() - .equals(other.getNotExpression())) return false; - break; - case 3: - if (!getFilterCondition() - .equals(other.getFilterCondition())) 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 (exprCase_) { - case 1: - hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getOrGroup().hashCode(); - break; - case 2: - hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getNotExpression().hashCode(); - break; - case 3: - hash = (37 * hash) + FILTER_CONDITION_FIELD_NUMBER; - hash = (53 * hash) + getFilterCondition().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A logical expression of Subproperty event filters.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (filterConditionBuilder_ != null) { - filterConditionBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression build() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression buildPartial() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression result) { - result.exprCase_ = exprCase_; - result.expr_ = this.expr_; - if (exprCase_ == 1 && - orGroupBuilder_ != null) { - result.expr_ = orGroupBuilder_.build(); - } - if (exprCase_ == 2 && - notExpressionBuilder_ != null) { - result.expr_ = notExpressionBuilder_.build(); - } - if (exprCase_ == 3 && - filterConditionBuilder_ != null) { - result.expr_ = filterConditionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) { - return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression other) { - if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance()) return this; - switch (other.getExprCase()) { - case OR_GROUP: { - mergeOrGroup(other.getOrGroup()); - break; - } - case NOT_EXPRESSION: { - mergeNotExpression(other.getNotExpression()); - break; - } - case FILTER_CONDITION: { - mergeFilterCondition(other.getFilterCondition()); - break; - } - case EXPR_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getOrGroupFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getNotExpressionFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getFilterConditionFieldBuilder().getBuilder(), - extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int exprCase_ = 0; - private java.lang.Object expr_; - public ExprCase - getExprCase() { - return ExprCase.forNumber( - exprCase_); - } - - public Builder clearExpr() { - exprCase_ = 0; - expr_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder> orGroupBuilder_; - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 1; - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - public Builder setOrGroup(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - public Builder setOrGroup( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - public Builder mergeOrGroup(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 1 && - expr_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.newBuilder((com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - public Builder clearOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 1) { - exprCase_ = 0; - expr_ = null; - } - orGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((exprCase_ == 1) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * A list of expressions to OR’ed together. Must only contain
-     * not_expression or filter_condition expressions.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> notExpressionBuilder_; - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 2; - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - public Builder setNotExpression(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - public Builder setNotExpression( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - public Builder mergeNotExpression(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 2 && - expr_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.newBuilder((com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - public Builder clearNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 2) { - exprCase_ = 0; - expr_ = null; - } - notExpressionBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((exprCase_ == 2) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * A filter expression to be NOT'ed (inverted, complemented). It can only
-     * include a filter. This cannot be set on the top level
-     * SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( - (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder> filterConditionBuilder_; - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @return Whether the filterCondition field is set. - */ - @java.lang.Override - public boolean hasFilterCondition() { - return exprCase_ == 3; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @return The filterCondition. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition() { - if (filterConditionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return filterConditionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); - } - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - public Builder setFilterCondition(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition value) { - if (filterConditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - filterConditionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - public Builder setFilterCondition( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder builderForValue) { - if (filterConditionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - filterConditionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - public Builder mergeFilterCondition(com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition value) { - if (filterConditionBuilder_ == null) { - if (exprCase_ == 3 && - expr_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance()) { - expr_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.newBuilder((com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_) - .mergeFrom(value).buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - filterConditionBuilder_.mergeFrom(value); - } else { - filterConditionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - public Builder clearFilterCondition() { - if (filterConditionBuilder_ == null) { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 3) { - exprCase_ = 0; - expr_ = null; - } - filterConditionBuilder_.clear(); - } - return this; - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder getFilterConditionBuilder() { - return getFilterConditionFieldBuilder().getBuilder(); - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder getFilterConditionOrBuilder() { - if ((exprCase_ == 3) && (filterConditionBuilder_ != null)) { - return filterConditionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_; - } - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); - } - } - /** - *
-     * Creates a filter that matches a specific event. This cannot be set on the
-     * top level SubpropertyEventFilterExpression.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder> - getFilterConditionFieldBuilder() { - if (filterConditionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.getDefaultInstance(); - } - filterConditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition, com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder>( - (com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - return filterConditionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) - private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression(); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubpropertyEventFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java deleted file mode 100644 index ccd2c57e7a40..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * A list of Subproperty event filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList} - */ -public final class SubpropertyEventFilterExpressionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) - SubpropertyEventFilterExpressionListOrBuilder { -private static final long serialVersionUID = 0L; - // Use SubpropertyEventFilterExpressionList.newBuilder() to construct. - private SubpropertyEventFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SubpropertyEventFilterExpressionList() { - filterExpressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SubpropertyEventFilterExpressionList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder.class); - } - - public static final int FILTER_EXPRESSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List filterExpressions_; - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public java.util.List getFilterExpressionsList() { - return filterExpressions_; - } - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public java.util.List - getFilterExpressionsOrBuilderList() { - return filterExpressions_; - } - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public int getFilterExpressionsCount() { - return filterExpressions_.size(); - } - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions(int index) { - return filterExpressions_.get(index); - } - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - return filterExpressions_.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 < filterExpressions_.size(); i++) { - output.writeMessage(1, filterExpressions_.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 < filterExpressions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, filterExpressions_.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.admin.v1alpha.SubpropertyEventFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList other = (com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) obj; - - if (!getFilterExpressionsList() - .equals(other.getFilterExpressionsList())) 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 (getFilterExpressionsCount() > 0) { - hash = (37 * hash) + FILTER_EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A list of Subproperty event filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.class, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - } else { - filterExpressions_ = null; - filterExpressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterProto.internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList build() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList buildPartial() { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result) { - if (filterExpressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = java.util.Collections.unmodifiableList(filterExpressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.filterExpressions_ = filterExpressions_; - } else { - result.filterExpressions_ = filterExpressionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) { - return mergeFrom((com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList other) { - if (other == com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList.getDefaultInstance()) return this; - if (filterExpressionsBuilder_ == null) { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressions_.isEmpty()) { - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFilterExpressionsIsMutable(); - filterExpressions_.addAll(other.filterExpressions_); - } - onChanged(); - } - } else { - if (!other.filterExpressions_.isEmpty()) { - if (filterExpressionsBuilder_.isEmpty()) { - filterExpressionsBuilder_.dispose(); - filterExpressionsBuilder_ = null; - filterExpressions_ = other.filterExpressions_; - bitField0_ = (bitField0_ & ~0x00000001); - filterExpressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFilterExpressionsFieldBuilder() : null; - } else { - filterExpressionsBuilder_.addAllMessages(other.filterExpressions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression m = - input.readMessage( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.parser(), - extensionRegistry); - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(m); - } else { - filterExpressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List filterExpressions_ = - java.util.Collections.emptyList(); - private void ensureFilterExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - filterExpressions_ = new java.util.ArrayList(filterExpressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> filterExpressionsBuilder_; - - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List getFilterExpressionsList() { - if (filterExpressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(filterExpressions_); - } else { - return filterExpressionsBuilder_.getMessageList(); - } - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public int getFilterExpressionsCount() { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.size(); - } else { - return filterExpressionsBuilder_.getCount(); - } - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); - } else { - return filterExpressionsBuilder_.getMessage(index); - } - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder setFilterExpressions( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.set(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterExpressions(com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression value) { - if (filterExpressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, value); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterExpressions( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addFilterExpressions( - int index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder builderForValue) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.add(index, builderForValue.build()); - onChanged(); - } else { - filterExpressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder addAllFilterExpressions( - java.lang.Iterable values) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, filterExpressions_); - onChanged(); - } else { - filterExpressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder clearFilterExpressions() { - if (filterExpressionsBuilder_ == null) { - filterExpressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - filterExpressionsBuilder_.clear(); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public Builder removeFilterExpressions(int index) { - if (filterExpressionsBuilder_ == null) { - ensureFilterExpressionsIsMutable(); - filterExpressions_.remove(index); - onChanged(); - } else { - filterExpressionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder getFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().getBuilder(index); - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index) { - if (filterExpressionsBuilder_ == null) { - return filterExpressions_.get(index); } else { - return filterExpressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List - getFilterExpressionsOrBuilderList() { - if (filterExpressionsBuilder_ != null) { - return filterExpressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(filterExpressions_); - } - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder addFilterExpressionsBuilder() { - return getFilterExpressionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance()); - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder addFilterExpressionsBuilder( - int index) { - return getFilterExpressionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.getDefaultInstance()); - } - /** - *
-     * Required. Unordered list. A list of Subproperty event filter expressions
-     * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - public java.util.List - getFilterExpressionsBuilderList() { - return getFilterExpressionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder> - getFilterExpressionsFieldBuilder() { - if (filterExpressionsBuilder_ == null) { - filterExpressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder>( - filterExpressions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - filterExpressions_ = null; - } - return filterExpressionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) - private static final com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList(); - } - - public static com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SubpropertyEventFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java deleted file mode 100644 index 46338f33a0d2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -public interface SubpropertyEventFilterExpressionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - java.util.List - getFilterExpressionsList(); - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getFilterExpressions(int index); - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - int getFilterExpressionsCount(); - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - java.util.List - getFilterExpressionsOrBuilderList(); - /** - *
-   * Required. Unordered list. A list of Subproperty event filter expressions
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression filter_expressions = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getFilterExpressionsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java deleted file mode 100644 index 032c3f5e5e80..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterExpressionOrBuilder.java +++ /dev/null @@ -1,104 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -public interface SubpropertyEventFilterExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of expressions to OR’ed together. Must only contain
-   * not_expression or filter_condition expressions.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - *
-   * A list of expressions to OR’ed together. Must only contain
-   * not_expression or filter_condition expressions.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - * @return The orGroup. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList getOrGroup(); - /** - *
-   * A list of expressions to OR’ed together. Must only contain
-   * not_expression or filter_condition expressions.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionList or_group = 1; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - *
-   * A filter expression to be NOT'ed (inverted, complemented). It can only
-   * include a filter. This cannot be set on the top level
-   * SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - *
-   * A filter expression to be NOT'ed (inverted, complemented). It can only
-   * include a filter. This cannot be set on the top level
-   * SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - * @return The notExpression. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression getNotExpression(); - /** - *
-   * A filter expression to be NOT'ed (inverted, complemented). It can only
-   * include a filter. This cannot be set on the top level
-   * SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterExpression not_expression = 2; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @return Whether the filterCondition field is set. - */ - boolean hasFilterCondition(); - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - * @return The filterCondition. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterCondition getFilterCondition(); - /** - *
-   * Creates a filter that matches a specific event. This cannot be set on the
-   * top level SubpropertyEventFilterExpression.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilterCondition filter_condition = 3; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterConditionOrBuilder getFilterConditionOrBuilder(); - - com.google.analytics.admin.v1alpha.SubpropertyEventFilterExpression.ExprCase getExprCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java deleted file mode 100644 index 67dd076c4b83..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterOrBuilder.java +++ /dev/null @@ -1,116 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -public interface SubpropertyEventFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SubpropertyEventFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Format:
-   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-   * Example: properties/1234/subpropertyEventFilters/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Format:
-   * properties/{ordinary_property_id}/subpropertyEventFilters/{sub_property_event_filter}
-   * Example: properties/1234/subpropertyEventFilters/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. Resource name of the Subproperty that uses this filter.
-   * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return Whether the applyToProperty field is set. - */ - boolean hasApplyToProperty(); - /** - *
-   * Immutable. Resource name of the Subproperty that uses this filter.
-   * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The applyToProperty. - */ - java.lang.String getApplyToProperty(); - /** - *
-   * Immutable. Resource name of the Subproperty that uses this filter.
-   * 
- * - * optional string apply_to_property = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for applyToProperty. - */ - com.google.protobuf.ByteString - getApplyToPropertyBytes(); - - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - java.util.List - getFilterClausesList(); - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClause getFilterClauses(int index); - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - int getFilterClausesCount(); - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - java.util.List - getFilterClausesOrBuilderList(); - /** - *
-   * Required. Unordered list. Filter clauses that define the
-   * SubpropertyEventFilter. All clauses are AND'ed together to determine what
-   * data is sent to the subproperty.
-   * 
- * - * repeated .google.analytics.admin.v1alpha.SubpropertyEventFilterClause filter_clauses = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = UNORDERED_LIST]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterClauseOrBuilder getFilterClausesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java deleted file mode 100644 index bca42651cbf9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SubpropertyEventFilterProto.java +++ /dev/null @@ -1,160 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/subproperty_event_filter.proto - -package com.google.analytics.admin.v1alpha; - -public final class SubpropertyEventFilterProto { - private SubpropertyEventFilterProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n=google/analytics/admin/v1alpha/subprop" + - "erty_event_filter.proto\022\036google.analytic" + - "s.admin.v1alpha\032\037google/api/field_behavi" + - "or.proto\032\031google/api/resource.proto\"\205\004\n\037" + - "SubpropertyEventFilterCondition\022\025\n\013null_" + - "filter\030\002 \001(\010H\000\022e\n\rstring_filter\030\003 \001(\0132L." + - "google.analytics.admin.v1alpha.Subproper" + - "tyEventFilterCondition.StringFilterH\000\022\030\n" + - "\nfield_name\030\001 \001(\tB\004\342A\001\002\032\273\002\n\014StringFilter" + - "\022p\n\nmatch_type\030\001 \001(\0162V.google.analytics." + - "admin.v1alpha.SubpropertyEventFilterCond" + - "ition.StringFilter.MatchTypeB\004\342A\001\002\022\023\n\005va" + - "lue\030\002 \001(\tB\004\342A\001\002\022\034\n\016case_sensitive\030\003 \001(\010B" + - "\004\342A\001\001\"\205\001\n\tMatchType\022\032\n\026MATCH_TYPE_UNSPEC" + - "IFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002\022\r\n\tE" + - "NDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_REGEXP\020" + - "\005\022\022\n\016PARTIAL_REGEXP\020\006B\014\n\none_filter\"\275\002\n " + - "SubpropertyEventFilterExpression\022X\n\010or_g" + - "roup\030\001 \001(\0132D.google.analytics.admin.v1al" + - "pha.SubpropertyEventFilterExpressionList" + - "H\000\022Z\n\016not_expression\030\002 \001(\0132@.google.anal" + - "ytics.admin.v1alpha.SubpropertyEventFilt" + - "erExpressionH\000\022[\n\020filter_condition\030\003 \001(\013" + - "2?.google.analytics.admin.v1alpha.Subpro" + - "pertyEventFilterConditionH\000B\006\n\004expr\"\213\001\n$" + - "SubpropertyEventFilterExpressionList\022c\n\022" + - "filter_expressions\030\001 \003(\0132@.google.analyt" + - "ics.admin.v1alpha.SubpropertyEventFilter" + - "ExpressionB\005\342A\002\002\006\"\304\002\n\034SubpropertyEventFi" + - "lterClause\022o\n\022filter_clause_type\030\001 \001(\0162M" + - ".google.analytics.admin.v1alpha.Subprope" + - "rtyEventFilterClause.FilterClauseTypeB\004\342" + - "A\001\002\022a\n\021filter_expression\030\002 \001(\0132@.google." + - "analytics.admin.v1alpha.SubpropertyEvent" + - "FilterExpressionB\004\342A\001\002\"P\n\020FilterClauseTy" + - "pe\022\"\n\036FILTER_CLAUSE_TYPE_UNSPECIFIED\020\000\022\013" + - "\n\007INCLUDE\020\001\022\013\n\007EXCLUDE\020\002\"\376\002\n\026Subproperty" + - "EventFilter\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022$\n\021apply" + - "_to_property\030\002 \001(\tB\004\342A\001\005H\000\210\001\001\022[\n\016filter_" + - "clauses\030\003 \003(\0132<.google.analytics.admin.v" + - "1alpha.SubpropertyEventFilterClauseB\005\342A\002" + - "\002\006:\266\001\352A\262\001\n4analyticsadmin.googleapis.com" + - "/SubpropertyEventFilter\022Iproperties/{pro" + - "perty}/subpropertyEventFilters/{sub_prop" + - "erty_event_filter}*\027subpropertyEventFilt" + - "ers2\026subpropertyEventFilterB\024\n\022_apply_to" + - "_propertyB\203\001\n\"com.google.analytics.admin" + - ".v1alphaB\033SubpropertyEventFilterProtoP\001Z" + - ">cloud.google.com/go/analytics/admin/api" + - "v1alpha/adminpb;adminpbb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor, - new java.lang.String[] { "NullFilter", "StringFilter", "FieldName", "OneFilter", }); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor = - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterCondition_StringFilter_descriptor, - new java.lang.String[] { "MatchType", "Value", "CaseSensitive", }); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpression_descriptor, - new java.lang.String[] { "OrGroup", "NotExpression", "FilterCondition", "Expr", }); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterExpressionList_descriptor, - new java.lang.String[] { "FilterExpressions", }); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilterClause_descriptor, - new java.lang.String[] { "FilterClauseType", "FilterExpression", }); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_SubpropertyEventFilter_descriptor, - new java.lang.String[] { "Name", "ApplyToProperty", "FilterClauses", "ApplyToProperty", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java deleted file mode 100644 index dad589a40b6d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequest.java +++ /dev/null @@ -1,642 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateAccessBinding RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccessBindingRequest} - */ -public final class UpdateAccessBindingRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) - UpdateAccessBindingRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateAccessBindingRequest.newBuilder() to construct. - private UpdateAccessBindingRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateAccessBindingRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateAccessBindingRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder.class); - } - - public static final int ACCESS_BINDING_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; - /** - *
-   * Required. The access binding to update.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the accessBinding field is set. - */ - @java.lang.Override - public boolean hasAccessBinding() { - return accessBinding_ != null; - } - /** - *
-   * Required. The access binding to update.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The accessBinding. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { - return accessBinding_ == null ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } - /** - *
-   * Required. The access binding to update.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { - return accessBinding_ == null ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } - - 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 (accessBinding_ != null) { - output.writeMessage(1, getAccessBinding()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (accessBinding_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccessBinding()); - } - 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.admin.v1alpha.UpdateAccessBindingRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest other = (com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) obj; - - if (hasAccessBinding() != other.hasAccessBinding()) return false; - if (hasAccessBinding()) { - if (!getAccessBinding() - .equals(other.getAccessBinding())) 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 (hasAccessBinding()) { - hash = (37 * hash) + ACCESS_BINDING_FIELD_NUMBER; - hash = (53 * hash) + getAccessBinding().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateAccessBinding RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccessBindingRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.class, com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - accessBinding_ = null; - if (accessBindingBuilder_ != null) { - accessBindingBuilder_.dispose(); - accessBindingBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccessBindingRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest build() { - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result = new com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.accessBinding_ = accessBindingBuilder_ == null - ? accessBinding_ - : accessBindingBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest.getDefaultInstance()) return this; - if (other.hasAccessBinding()) { - mergeAccessBinding(other.getAccessBinding()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAccessBindingFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.AccessBinding accessBinding_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> accessBindingBuilder_; - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the accessBinding field is set. - */ - public boolean hasAccessBinding() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The accessBinding. - */ - public com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding() { - if (accessBindingBuilder_ == null) { - return accessBinding_ == null ? com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } else { - return accessBindingBuilder_.getMessage(); - } - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - accessBinding_ = value; - } else { - accessBindingBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccessBinding( - com.google.analytics.admin.v1alpha.AccessBinding.Builder builderForValue) { - if (accessBindingBuilder_ == null) { - accessBinding_ = builderForValue.build(); - } else { - accessBindingBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAccessBinding(com.google.analytics.admin.v1alpha.AccessBinding value) { - if (accessBindingBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - accessBinding_ != null && - accessBinding_ != com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance()) { - getAccessBindingBuilder().mergeFrom(value); - } else { - accessBinding_ = value; - } - } else { - accessBindingBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAccessBinding() { - bitField0_ = (bitField0_ & ~0x00000001); - accessBinding_ = null; - if (accessBindingBuilder_ != null) { - accessBindingBuilder_.dispose(); - accessBindingBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AccessBinding.Builder getAccessBindingBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAccessBindingFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder() { - if (accessBindingBuilder_ != null) { - return accessBindingBuilder_.getMessageOrBuilder(); - } else { - return accessBinding_ == null ? - com.google.analytics.admin.v1alpha.AccessBinding.getDefaultInstance() : accessBinding_; - } - } - /** - *
-     * Required. The access binding to update.
-     * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder> - getAccessBindingFieldBuilder() { - if (accessBindingBuilder_ == null) { - accessBindingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AccessBinding, com.google.analytics.admin.v1alpha.AccessBinding.Builder, com.google.analytics.admin.v1alpha.AccessBindingOrBuilder>( - getAccessBinding(), - getParentForChildren(), - isClean()); - accessBinding_ = null; - } - return accessBindingBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) - private static final com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAccessBindingRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccessBindingRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java deleted file mode 100644 index 0a7243cedca3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccessBindingRequestOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateAccessBindingRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAccessBindingRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The access binding to update.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the accessBinding field is set. - */ - boolean hasAccessBinding(); - /** - *
-   * Required. The access binding to update.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The accessBinding. - */ - com.google.analytics.admin.v1alpha.AccessBinding getAccessBinding(); - /** - *
-   * Required. The access binding to update.
-   * 
- * - * .google.analytics.admin.v1alpha.AccessBinding access_binding = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AccessBindingOrBuilder getAccessBindingOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java deleted file mode 100644 index e399dfbc1cb9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateAccount RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccountRequest} - */ -public final class UpdateAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAccountRequest) - UpdateAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateAccountRequest.newBuilder() to construct. - private UpdateAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateAccountRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateAccountRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAccountRequest.class, com.google.analytics.admin.v1alpha.UpdateAccountRequest.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Account account_; - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return account_ != null; - } - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Account getAccount() { - return account_ == null ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { - return account_ == null ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (account_ != null) { - output.writeMessage(1, getAccount()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccount()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateAccountRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateAccountRequest other = (com.google.analytics.admin.v1alpha.UpdateAccountRequest) obj; - - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateAccount RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAccountRequest) - com.google.analytics.admin.v1alpha.UpdateAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAccountRequest.class, com.google.analytics.admin.v1alpha.UpdateAccountRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateAccountRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccountRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccountRequest build() { - com.google.analytics.admin.v1alpha.UpdateAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccountRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateAccountRequest result = new com.google.analytics.admin.v1alpha.UpdateAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateAccountRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.account_ = accountBuilder_ == null - ? account_ - : accountBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateAccountRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAccountRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateAccountRequest.getDefaultInstance()) return this; - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAccountFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Account account_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> accountBuilder_; - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the account field is set. - */ - public boolean hasAccount() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The account. - */ - public com.google.analytics.admin.v1alpha.Account getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } else { - return accountBuilder_.getMessage(); - } - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - account_ = value; - } else { - accountBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccount( - com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { - if (accountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - account_ != null && - account_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { - getAccountBuilder().mergeFrom(value); - } else { - account_ = value; - } - } else { - accountBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAccount() { - bitField0_ = (bitField0_ & ~0x00000001); - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAccountFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); - } else { - return account_ == null ? - com.google.analytics.admin.v1alpha.Account.getDefaultInstance() : account_; - } - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Account, com.google.analytics.admin.v1alpha.Account.Builder, com.google.analytics.admin.v1alpha.AccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; - } - return accountBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAccountRequest) - private static final com.google.analytics.admin.v1alpha.UpdateAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAccountRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java deleted file mode 100644 index 2e301a0b3748..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The account. - */ - com.google.analytics.admin.v1alpha.Account getAccount(); - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1alpha.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java deleted file mode 100644 index bb6fc713e081..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateAttributionSettings RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} - */ -public final class UpdateAttributionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) - UpdateAttributionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateAttributionSettingsRequest.newBuilder() to construct. - private UpdateAttributionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateAttributionSettingsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateAttributionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.Builder.class); - } - - public static final int ATTRIBUTION_SETTINGS_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AttributionSettings attributionSettings_; - /** - *
-   * Required. The attribution settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the attributionSettings field is set. - */ - @java.lang.Override - public boolean hasAttributionSettings() { - return attributionSettings_ != null; - } - /** - *
-   * Required. The attribution settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The attributionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { - return attributionSettings_ == null ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() : attributionSettings_; - } - /** - *
-   * Required. The attribution settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder() { - return attributionSettings_ == null ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() : attributionSettings_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (attributionSettings_ != null) { - output.writeMessage(1, getAttributionSettings()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (attributionSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAttributionSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateAttributionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest other = (com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) obj; - - if (hasAttributionSettings() != other.hasAttributionSettings()) return false; - if (hasAttributionSettings()) { - if (!getAttributionSettings() - .equals(other.getAttributionSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasAttributionSettings()) { - hash = (37 * hash) + ATTRIBUTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getAttributionSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateAttributionSettings RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - attributionSettings_ = null; - if (attributionSettingsBuilder_ != null) { - attributionSettingsBuilder_.dispose(); - attributionSettingsBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAttributionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest build() { - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result = new com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.attributionSettings_ = attributionSettingsBuilder_ == null - ? attributionSettings_ - : attributionSettingsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest.getDefaultInstance()) return this; - if (other.hasAttributionSettings()) { - mergeAttributionSettings(other.getAttributionSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAttributionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.AttributionSettings attributionSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AttributionSettings, com.google.analytics.admin.v1alpha.AttributionSettings.Builder, com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> attributionSettingsBuilder_; - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the attributionSettings field is set. - */ - public boolean hasAttributionSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The attributionSettings. - */ - public com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings() { - if (attributionSettingsBuilder_ == null) { - return attributionSettings_ == null ? com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() : attributionSettings_; - } else { - return attributionSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAttributionSettings(com.google.analytics.admin.v1alpha.AttributionSettings value) { - if (attributionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - attributionSettings_ = value; - } else { - attributionSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAttributionSettings( - com.google.analytics.admin.v1alpha.AttributionSettings.Builder builderForValue) { - if (attributionSettingsBuilder_ == null) { - attributionSettings_ = builderForValue.build(); - } else { - attributionSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAttributionSettings(com.google.analytics.admin.v1alpha.AttributionSettings value) { - if (attributionSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - attributionSettings_ != null && - attributionSettings_ != com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance()) { - getAttributionSettingsBuilder().mergeFrom(value); - } else { - attributionSettings_ = value; - } - } else { - attributionSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAttributionSettings() { - bitField0_ = (bitField0_ & ~0x00000001); - attributionSettings_ = null; - if (attributionSettingsBuilder_ != null) { - attributionSettingsBuilder_.dispose(); - attributionSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AttributionSettings.Builder getAttributionSettingsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAttributionSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder() { - if (attributionSettingsBuilder_ != null) { - return attributionSettingsBuilder_.getMessageOrBuilder(); - } else { - return attributionSettings_ == null ? - com.google.analytics.admin.v1alpha.AttributionSettings.getDefaultInstance() : attributionSettings_; - } - } - /** - *
-     * Required. The attribution settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AttributionSettings, com.google.analytics.admin.v1alpha.AttributionSettings.Builder, com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder> - getAttributionSettingsFieldBuilder() { - if (attributionSettingsBuilder_ == null) { - attributionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AttributionSettings, com.google.analytics.admin.v1alpha.AttributionSettings.Builder, com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder>( - getAttributionSettings(), - getParentForChildren(), - isClean()); - attributionSettings_ = null; - } - return attributionSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) - private static final com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAttributionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java deleted file mode 100644 index 0752845cf767..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAttributionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateAttributionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAttributionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The attribution settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the attributionSettings field is set. - */ - boolean hasAttributionSettings(); - /** - *
-   * Required. The attribution settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The attributionSettings. - */ - com.google.analytics.admin.v1alpha.AttributionSettings getAttributionSettings(); - /** - *
-   * Required. The attribution settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.AttributionSettings attribution_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AttributionSettingsOrBuilder getAttributionSettingsOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java deleted file mode 100644 index 2a02501ab74e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateAudience RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAudienceRequest} - */ -public final class UpdateAudienceRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateAudienceRequest) - UpdateAudienceRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateAudienceRequest.newBuilder() to construct. - private UpdateAudienceRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateAudienceRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateAudienceRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, com.google.analytics.admin.v1alpha.UpdateAudienceRequest.Builder.class); - } - - public static final int AUDIENCE_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Audience audience_; - /** - *
-   * Required. The audience to update.
-   * The audience's `name` field is used to identify the audience to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audience field is set. - */ - @java.lang.Override - public boolean hasAudience() { - return audience_ != null; - } - /** - *
-   * Required. The audience to update.
-   * The audience's `name` field is used to identify the audience to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The audience. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Audience getAudience() { - return audience_ == null ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } - /** - *
-   * Required. The audience to update.
-   * The audience's `name` field is used to identify the audience to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { - return audience_ == null ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (audience_ != null) { - output.writeMessage(1, getAudience()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (audience_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAudience()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateAudienceRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateAudienceRequest other = (com.google.analytics.admin.v1alpha.UpdateAudienceRequest) obj; - - if (hasAudience() != other.hasAudience()) return false; - if (hasAudience()) { - if (!getAudience() - .equals(other.getAudience())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasAudience()) { - hash = (37 * hash) + AUDIENCE_FIELD_NUMBER; - hash = (53 * hash) + getAudience().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateAudienceRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateAudience RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateAudienceRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateAudienceRequest) - com.google.analytics.admin.v1alpha.UpdateAudienceRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateAudienceRequest.class, com.google.analytics.admin.v1alpha.UpdateAudienceRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateAudienceRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - audience_ = null; - if (audienceBuilder_ != null) { - audienceBuilder_.dispose(); - audienceBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateAudienceRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateAudienceRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAudienceRequest build() { - com.google.analytics.admin.v1alpha.UpdateAudienceRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAudienceRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateAudienceRequest result = new com.google.analytics.admin.v1alpha.UpdateAudienceRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateAudienceRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.audience_ = audienceBuilder_ == null - ? audience_ - : audienceBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateAudienceRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateAudienceRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateAudienceRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateAudienceRequest.getDefaultInstance()) return this; - if (other.hasAudience()) { - mergeAudience(other.getAudience()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAudienceFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Audience audience_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> audienceBuilder_; - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audience field is set. - */ - public boolean hasAudience() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The audience. - */ - public com.google.analytics.admin.v1alpha.Audience getAudience() { - if (audienceBuilder_ == null) { - return audience_ == null ? com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } else { - return audienceBuilder_.getMessage(); - } - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAudience(com.google.analytics.admin.v1alpha.Audience value) { - if (audienceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - audience_ = value; - } else { - audienceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAudience( - com.google.analytics.admin.v1alpha.Audience.Builder builderForValue) { - if (audienceBuilder_ == null) { - audience_ = builderForValue.build(); - } else { - audienceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAudience(com.google.analytics.admin.v1alpha.Audience value) { - if (audienceBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - audience_ != null && - audience_ != com.google.analytics.admin.v1alpha.Audience.getDefaultInstance()) { - getAudienceBuilder().mergeFrom(value); - } else { - audience_ = value; - } - } else { - audienceBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAudience() { - bitField0_ = (bitField0_ & ~0x00000001); - audience_ = null; - if (audienceBuilder_ != null) { - audienceBuilder_.dispose(); - audienceBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.Audience.Builder getAudienceBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAudienceFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder() { - if (audienceBuilder_ != null) { - return audienceBuilder_.getMessageOrBuilder(); - } else { - return audience_ == null ? - com.google.analytics.admin.v1alpha.Audience.getDefaultInstance() : audience_; - } - } - /** - *
-     * Required. The audience to update.
-     * The audience's `name` field is used to identify the audience to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder> - getAudienceFieldBuilder() { - if (audienceBuilder_ == null) { - audienceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Audience, com.google.analytics.admin.v1alpha.Audience.Builder, com.google.analytics.admin.v1alpha.AudienceOrBuilder>( - getAudience(), - getParentForChildren(), - isClean()); - audience_ = null; - } - return audienceBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateAudienceRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateAudienceRequest) - private static final com.google.analytics.admin.v1alpha.UpdateAudienceRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateAudienceRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAudienceRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateAudienceRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java deleted file mode 100644 index 731c2b05dd0d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAudienceRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateAudienceRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateAudienceRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The audience to update.
-   * The audience's `name` field is used to identify the audience to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the audience field is set. - */ - boolean hasAudience(); - /** - *
-   * Required. The audience to update.
-   * The audience's `name` field is used to identify the audience to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The audience. - */ - com.google.analytics.admin.v1alpha.Audience getAudience(); - /** - *
-   * Required. The audience to update.
-   * The audience's `name` field is used to identify the audience to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Audience audience = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.AudienceOrBuilder getAudienceOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequest.java deleted file mode 100644 index f433ddfd8c2e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateChannelGroup RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateChannelGroupRequest} - */ -public final class UpdateChannelGroupRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) - UpdateChannelGroupRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateChannelGroupRequest.newBuilder() to construct. - private UpdateChannelGroupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateChannelGroupRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateChannelGroupRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.class, com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.Builder.class); - } - - public static final int CHANNEL_GROUP_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; - /** - *
-   * Required. The ChannelGroup to update.
-   * The resource's `name` field is used to identify the ChannelGroup to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the channelGroup field is set. - */ - @java.lang.Override - public boolean hasChannelGroup() { - return channelGroup_ != null; - } - /** - *
-   * Required. The ChannelGroup to update.
-   * The resource's `name` field is used to identify the ChannelGroup to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The channelGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { - return channelGroup_ == null ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } - /** - *
-   * Required. The ChannelGroup to update.
-   * The resource's `name` field is used to identify the ChannelGroup to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { - return channelGroup_ == null ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (channelGroup_ != null) { - output.writeMessage(1, getChannelGroup()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (channelGroup_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getChannelGroup()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateChannelGroupRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest other = (com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest) obj; - - if (hasChannelGroup() != other.hasChannelGroup()) return false; - if (hasChannelGroup()) { - if (!getChannelGroup() - .equals(other.getChannelGroup())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasChannelGroup()) { - hash = (37 * hash) + CHANNEL_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getChannelGroup().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateChannelGroup RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateChannelGroupRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.class, com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - channelGroup_ = null; - if (channelGroupBuilder_ != null) { - channelGroupBuilder_.dispose(); - channelGroupBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateChannelGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest build() { - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest result = new com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.channelGroup_ = channelGroupBuilder_ == null - ? channelGroup_ - : channelGroupBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest.getDefaultInstance()) return this; - if (other.hasChannelGroup()) { - mergeChannelGroup(other.getChannelGroup()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getChannelGroupFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.ChannelGroup channelGroup_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> channelGroupBuilder_; - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the channelGroup field is set. - */ - public boolean hasChannelGroup() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The channelGroup. - */ - public com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup() { - if (channelGroupBuilder_ == null) { - return channelGroup_ == null ? com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } else { - return channelGroupBuilder_.getMessage(); - } - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - channelGroup_ = value; - } else { - channelGroupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setChannelGroup( - com.google.analytics.admin.v1alpha.ChannelGroup.Builder builderForValue) { - if (channelGroupBuilder_ == null) { - channelGroup_ = builderForValue.build(); - } else { - channelGroupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeChannelGroup(com.google.analytics.admin.v1alpha.ChannelGroup value) { - if (channelGroupBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - channelGroup_ != null && - channelGroup_ != com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance()) { - getChannelGroupBuilder().mergeFrom(value); - } else { - channelGroup_ = value; - } - } else { - channelGroupBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearChannelGroup() { - bitField0_ = (bitField0_ & ~0x00000001); - channelGroup_ = null; - if (channelGroupBuilder_ != null) { - channelGroupBuilder_.dispose(); - channelGroupBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ChannelGroup.Builder getChannelGroupBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getChannelGroupFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder() { - if (channelGroupBuilder_ != null) { - return channelGroupBuilder_.getMessageOrBuilder(); - } else { - return channelGroup_ == null ? - com.google.analytics.admin.v1alpha.ChannelGroup.getDefaultInstance() : channelGroup_; - } - } - /** - *
-     * Required. The ChannelGroup to update.
-     * The resource's `name` field is used to identify the ChannelGroup to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder> - getChannelGroupFieldBuilder() { - if (channelGroupBuilder_ == null) { - channelGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ChannelGroup, com.google.analytics.admin.v1alpha.ChannelGroup.Builder, com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder>( - getChannelGroup(), - getParentForChildren(), - isClean()); - channelGroup_ = null; - } - return channelGroupBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) - private static final com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateChannelGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateChannelGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequestOrBuilder.java deleted file mode 100644 index 2ead129c83d4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateChannelGroupRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateChannelGroupRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateChannelGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The ChannelGroup to update.
-   * The resource's `name` field is used to identify the ChannelGroup to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the channelGroup field is set. - */ - boolean hasChannelGroup(); - /** - *
-   * Required. The ChannelGroup to update.
-   * The resource's `name` field is used to identify the ChannelGroup to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The channelGroup. - */ - com.google.analytics.admin.v1alpha.ChannelGroup getChannelGroup(); - /** - *
-   * Required. The ChannelGroup to update.
-   * The resource's `name` field is used to identify the ChannelGroup to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ChannelGroup channel_group = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ChannelGroupOrBuilder getChannelGroupOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequest.java deleted file mode 100644 index 6c8c3e050b1f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateConversionEventRequest} - */ -public final class UpdateConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateConversionEventRequest) - UpdateConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateConversionEventRequest.newBuilder() to construct. - private UpdateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateConversionEventRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.class, com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.Builder.class); - } - - public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return conversionEvent_ != null; - } - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { - return conversionEvent_ == null ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { - return conversionEvent_ == null ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (conversionEvent_ != null) { - output.writeMessage(1, getConversionEvent()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conversionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConversionEvent()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest other = (com.google.analytics.admin.v1alpha.UpdateConversionEventRequest) obj; - - if (hasConversionEvent() != other.hasConversionEvent()) return false; - if (hasConversionEvent()) { - if (!getConversionEvent() - .equals(other.getConversionEvent())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasConversionEvent()) { - hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getConversionEvent().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateConversionEventRequest) - com.google.analytics.admin.v1alpha.UpdateConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.class, com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest build() { - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateConversionEventRequest result = new com.google.analytics.admin.v1alpha.UpdateConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.conversionEvent_ = conversionEventBuilder_ == null - ? conversionEvent_ - : conversionEventBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateConversionEventRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateConversionEventRequest.getDefaultInstance()) return this; - if (other.hasConversionEvent()) { - mergeConversionEvent(other.getConversionEvent()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getConversionEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> conversionEventBuilder_; - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - public boolean hasConversionEvent() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { - if (conversionEventBuilder_ == null) { - return conversionEvent_ == null ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } else { - return conversionEventBuilder_.getMessage(); - } - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conversionEvent_ = value; - } else { - conversionEventBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent( - com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { - if (conversionEventBuilder_ == null) { - conversionEvent_ = builderForValue.build(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - conversionEvent_ != null && - conversionEvent_ != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { - getConversionEventBuilder().mergeFrom(value); - } else { - conversionEvent_ = value; - } - } else { - conversionEventBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearConversionEvent() { - bitField0_ = (bitField0_ & ~0x00000001); - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getConversionEventFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { - if (conversionEventBuilder_ != null) { - return conversionEventBuilder_.getMessageOrBuilder(); - } else { - return conversionEvent_ == null ? - com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> - getConversionEventFieldBuilder() { - if (conversionEventBuilder_ == null) { - conversionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( - getConversionEvent(), - getParentForChildren(), - isClean()); - conversionEvent_ = null; - } - return conversionEventBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateConversionEventRequest) - private static final com.google.analytics.admin.v1alpha.UpdateConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateConversionEventRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequestOrBuilder.java deleted file mode 100644 index 100fc60cc686..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - boolean hasConversionEvent(); - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java deleted file mode 100644 index 6a933be39fa4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} - */ -public final class UpdateCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) - UpdateCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateCustomDimensionRequest.newBuilder() to construct. - private UpdateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateCustomDimensionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); - } - - public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @return Whether the customDimension field is set. - */ - @java.lang.Override - public boolean hasCustomDimension() { - return customDimension_ != null; - } - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @return The customDimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { - return customDimension_ == null ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - return customDimension_ == null ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (customDimension_ != null) { - output.writeMessage(1, getCustomDimension()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (customDimension_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomDimension()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other = (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) obj; - - if (hasCustomDimension() != other.hasCustomDimension()) return false; - if (hasCustomDimension()) { - if (!getCustomDimension() - .equals(other.getCustomDimension())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasCustomDimension()) { - hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getCustomDimension().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest build() { - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.customDimension_ = customDimensionBuilder_ == null - ? customDimension_ - : customDimensionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance()) return this; - if (other.hasCustomDimension()) { - mergeCustomDimension(other.getCustomDimension()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCustomDimensionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> customDimensionBuilder_; - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @return Whether the customDimension field is set. - */ - public boolean hasCustomDimension() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @return The customDimension. - */ - public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { - if (customDimensionBuilder_ == null) { - return customDimension_ == null ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } else { - return customDimensionBuilder_.getMessage(); - } - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customDimension_ = value; - } else { - customDimensionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public Builder setCustomDimension( - com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { - if (customDimensionBuilder_ == null) { - customDimension_ = builderForValue.build(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customDimension_ != null && - customDimension_ != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { - getCustomDimensionBuilder().mergeFrom(value); - } else { - customDimension_ = value; - } - } else { - customDimensionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public Builder clearCustomDimension() { - bitField0_ = (bitField0_ & ~0x00000001); - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCustomDimensionFieldBuilder().getBuilder(); - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - if (customDimensionBuilder_ != null) { - return customDimensionBuilder_.getMessageOrBuilder(); - } else { - return customDimension_ == null ? - com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() : customDimension_; - } - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> - getCustomDimensionFieldBuilder() { - if (customDimensionBuilder_ == null) { - customDimensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomDimension, com.google.analytics.admin.v1alpha.CustomDimension.Builder, com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( - getCustomDimension(), - getParentForChildren(), - isClean()); - customDimension_ = null; - } - return customDimensionBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) - private static final com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index c4e90f4160af..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @return Whether the customDimension field is set. - */ - boolean hasCustomDimension(); - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - * @return The customDimension. - */ - com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; - */ - com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java deleted file mode 100644 index 86fdeb3de364..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} - */ -public final class UpdateCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) - UpdateCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateCustomMetricRequest.newBuilder() to construct. - private UpdateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateCustomMetricRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); - } - - public static final int CUSTOM_METRIC_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return Whether the customMetric field is set. - */ - @java.lang.Override - public boolean hasCustomMetric() { - return customMetric_ != null; - } - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return The customMetric. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { - return customMetric_ == null ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { - return customMetric_ == null ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (customMetric_ != null) { - output.writeMessage(1, getCustomMetric()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (customMetric_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomMetric()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other = (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) obj; - - if (hasCustomMetric() != other.hasCustomMetric()) return false; - if (hasCustomMetric()) { - if (!getCustomMetric() - .equals(other.getCustomMetric())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasCustomMetric()) { - hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; - hash = (53 * hash) + getCustomMetric().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest build() { - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.customMetric_ = customMetricBuilder_ == null - ? customMetric_ - : customMetricBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance()) return this; - if (other.hasCustomMetric()) { - mergeCustomMetric(other.getCustomMetric()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCustomMetricFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> customMetricBuilder_; - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return Whether the customMetric field is set. - */ - public boolean hasCustomMetric() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return The customMetric. - */ - public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { - if (customMetricBuilder_ == null) { - return customMetric_ == null ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } else { - return customMetricBuilder_.getMessage(); - } - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customMetric_ = value; - } else { - customMetricBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public Builder setCustomMetric( - com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { - if (customMetricBuilder_ == null) { - customMetric_ = builderForValue.build(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customMetric_ != null && - customMetric_ != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { - getCustomMetricBuilder().mergeFrom(value); - } else { - customMetric_ = value; - } - } else { - customMetricBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public Builder clearCustomMetric() { - bitField0_ = (bitField0_ & ~0x00000001); - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCustomMetricFieldBuilder().getBuilder(); - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { - if (customMetricBuilder_ != null) { - return customMetricBuilder_.getMessageOrBuilder(); - } else { - return customMetric_ == null ? - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() : customMetric_; - } - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> - getCustomMetricFieldBuilder() { - if (customMetricBuilder_ == null) { - customMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.CustomMetric, com.google.analytics.admin.v1alpha.CustomMetric.Builder, com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( - getCustomMetric(), - getParentForChildren(), - isClean()); - customMetric_ = null; - } - return customMetricBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) - private static final com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java deleted file mode 100644 index b82467f135cf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return Whether the customMetric field is set. - */ - boolean hasCustomMetric(); - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - * @return The customMetric. - */ - com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; - */ - com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java deleted file mode 100644 index 958e22434662..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateDataRedactionSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest} - */ -public final class UpdateDataRedactionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) - UpdateDataRedactionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateDataRedactionSettingsRequest.newBuilder() to construct. - private UpdateDataRedactionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateDataRedactionSettingsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateDataRedactionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.Builder.class); - } - - public static final int DATA_REDACTION_SETTINGS_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.DataRedactionSettings dataRedactionSettings_; - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRedactionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRedactionSettings() { - return dataRedactionSettings_ != null; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRedactionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { - return dataRedactionSettings_ == null ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() : dataRedactionSettings_; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder getDataRedactionSettingsOrBuilder() { - return dataRedactionSettings_ == null ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() : dataRedactionSettings_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (dataRedactionSettings_ != null) { - output.writeMessage(1, getDataRedactionSettings()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataRedactionSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataRedactionSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateDataRedactionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest other = (com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) obj; - - if (hasDataRedactionSettings() != other.hasDataRedactionSettings()) return false; - if (hasDataRedactionSettings()) { - if (!getDataRedactionSettings() - .equals(other.getDataRedactionSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasDataRedactionSettings()) { - hash = (37 * hash) + DATA_REDACTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDataRedactionSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateDataRedactionSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataRedactionSettings_ = null; - if (dataRedactionSettingsBuilder_ != null) { - dataRedactionSettingsBuilder_.dispose(); - dataRedactionSettingsBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRedactionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest build() { - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result = new com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataRedactionSettings_ = dataRedactionSettingsBuilder_ == null - ? dataRedactionSettings_ - : dataRedactionSettingsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest.getDefaultInstance()) return this; - if (other.hasDataRedactionSettings()) { - mergeDataRedactionSettings(other.getDataRedactionSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDataRedactionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.DataRedactionSettings dataRedactionSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRedactionSettings, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> dataRedactionSettingsBuilder_; - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRedactionSettings field is set. - */ - public boolean hasDataRedactionSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRedactionSettings. - */ - public com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings() { - if (dataRedactionSettingsBuilder_ == null) { - return dataRedactionSettings_ == null ? com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() : dataRedactionSettings_; - } else { - return dataRedactionSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataRedactionSettings(com.google.analytics.admin.v1alpha.DataRedactionSettings value) { - if (dataRedactionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataRedactionSettings_ = value; - } else { - dataRedactionSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataRedactionSettings( - com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder builderForValue) { - if (dataRedactionSettingsBuilder_ == null) { - dataRedactionSettings_ = builderForValue.build(); - } else { - dataRedactionSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDataRedactionSettings(com.google.analytics.admin.v1alpha.DataRedactionSettings value) { - if (dataRedactionSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dataRedactionSettings_ != null && - dataRedactionSettings_ != com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance()) { - getDataRedactionSettingsBuilder().mergeFrom(value); - } else { - dataRedactionSettings_ = value; - } - } else { - dataRedactionSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDataRedactionSettings() { - bitField0_ = (bitField0_ & ~0x00000001); - dataRedactionSettings_ = null; - if (dataRedactionSettingsBuilder_ != null) { - dataRedactionSettingsBuilder_.dispose(); - dataRedactionSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder getDataRedactionSettingsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDataRedactionSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder getDataRedactionSettingsOrBuilder() { - if (dataRedactionSettingsBuilder_ != null) { - return dataRedactionSettingsBuilder_.getMessageOrBuilder(); - } else { - return dataRedactionSettings_ == null ? - com.google.analytics.admin.v1alpha.DataRedactionSettings.getDefaultInstance() : dataRedactionSettings_; - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRedactionSettings, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder> - getDataRedactionSettingsFieldBuilder() { - if (dataRedactionSettingsBuilder_ == null) { - dataRedactionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRedactionSettings, com.google.analytics.admin.v1alpha.DataRedactionSettings.Builder, com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder>( - getDataRedactionSettings(), - getParentForChildren(), - isClean()); - dataRedactionSettings_ = null; - } - return dataRedactionSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) - private static final com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataRedactionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java deleted file mode 100644 index 616bd9c9a4ff..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRedactionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateDataRedactionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataRedactionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRedactionSettings field is set. - */ - boolean hasDataRedactionSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRedactionSettings. - */ - com.google.analytics.admin.v1alpha.DataRedactionSettings getDataRedactionSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRedactionSettings data_redaction_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.DataRedactionSettingsOrBuilder getDataRedactionSettingsOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java deleted file mode 100644 index 8b286f4fa42a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateDataRetentionSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} - */ -public final class UpdateDataRetentionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) - UpdateDataRetentionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateDataRetentionSettingsRequest.newBuilder() to construct. - private UpdateDataRetentionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateDataRetentionSettingsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateDataRetentionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.Builder.class); - } - - public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.DataRetentionSettings dataRetentionSettings_; - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRetentionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRetentionSettings() { - return dataRetentionSettings_ != null; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRetentionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { - return dataRetentionSettings_ == null ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - return dataRetentionSettings_ == null ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (dataRetentionSettings_ != null) { - output.writeMessage(1, getDataRetentionSettings()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataRetentionSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataRetentionSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateDataRetentionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest other = (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) obj; - - if (hasDataRetentionSettings() != other.hasDataRetentionSettings()) return false; - if (hasDataRetentionSettings()) { - if (!getDataRetentionSettings() - .equals(other.getDataRetentionSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasDataRetentionSettings()) { - hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDataRetentionSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateDataRetentionSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataRetentionSettings_ = null; - if (dataRetentionSettingsBuilder_ != null) { - dataRetentionSettingsBuilder_.dispose(); - dataRetentionSettingsBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest build() { - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result = new com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataRetentionSettings_ = dataRetentionSettingsBuilder_ == null - ? dataRetentionSettings_ - : dataRetentionSettingsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.getDefaultInstance()) return this; - if (other.hasDataRetentionSettings()) { - mergeDataRetentionSettings(other.getDataRetentionSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDataRetentionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.DataRetentionSettings dataRetentionSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRetentionSettings, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> dataRetentionSettingsBuilder_; - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRetentionSettings field is set. - */ - public boolean hasDataRetentionSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRetentionSettings. - */ - public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { - if (dataRetentionSettingsBuilder_ == null) { - return dataRetentionSettings_ == null ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } else { - return dataRetentionSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataRetentionSettings(com.google.analytics.admin.v1alpha.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataRetentionSettings_ = value; - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataRetentionSettings( - com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder builderForValue) { - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettings_ = builderForValue.build(); - } else { - dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDataRetentionSettings(com.google.analytics.admin.v1alpha.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dataRetentionSettings_ != null && - dataRetentionSettings_ != com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance()) { - getDataRetentionSettingsBuilder().mergeFrom(value); - } else { - dataRetentionSettings_ = value; - } - } else { - dataRetentionSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDataRetentionSettings() { - bitField0_ = (bitField0_ & ~0x00000001); - dataRetentionSettings_ = null; - if (dataRetentionSettingsBuilder_ != null) { - dataRetentionSettingsBuilder_.dispose(); - dataRetentionSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder getDataRetentionSettingsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDataRetentionSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - if (dataRetentionSettingsBuilder_ != null) { - return dataRetentionSettingsBuilder_.getMessageOrBuilder(); - } else { - return dataRetentionSettings_ == null ? - com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRetentionSettings, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> - getDataRetentionSettingsFieldBuilder() { - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataRetentionSettings, com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder>( - getDataRetentionSettings(), - getParentForChildren(), - isClean()); - dataRetentionSettings_ = null; - } - return dataRetentionSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) - private static final com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataRetentionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index 62f3e92351af..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateDataRetentionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRetentionSettings field is set. - */ - boolean hasDataRetentionSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRetentionSettings. - */ - com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java deleted file mode 100644 index f0f9dc390d71..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataStreamRequest} - */ -public final class UpdateDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - UpdateDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateDataStreamRequest.newBuilder() to construct. - private UpdateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateDataStreamRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.Builder.class); - } - - public static final int DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return dataStream_ != null; - } - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - return dataStream_ == null ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - return dataStream_ == null ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dataStream_ != null) { - output.writeMessage(1, getDataStream()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataStream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataStream()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += 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.admin.v1alpha.UpdateDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest other = (com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) obj; - - if (hasDataStream() != other.hasDataStream()) return false; - if (hasDataStream()) { - if (!getDataStream() - .equals(other.getDataStream())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (!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 (hasDataStream()) { - hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getDataStream().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - com.google.analytics.admin.v1alpha.UpdateDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.class, com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest build() { - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result = new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataStream_ = dataStreamBuilder_ == null - ? dataStream_ - : dataStreamBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateDataStreamRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateDataStreamRequest.getDefaultInstance()) return this; - if (other.hasDataStream()) { - mergeDataStream(other.getDataStream()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDataStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.DataStream dataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> dataStreamBuilder_; - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return Whether the dataStream field is set. - */ - public boolean hasDataStream() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return The dataStream. - */ - public com.google.analytics.admin.v1alpha.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - return dataStream_ == null ? com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } else { - return dataStreamBuilder_.getMessage(); - } - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder setDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataStream_ = value; - } else { - dataStreamBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder setDataStream( - com.google.analytics.admin.v1alpha.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - dataStream_ = builderForValue.build(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder mergeDataStream(com.google.analytics.admin.v1alpha.DataStream value) { - if (dataStreamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dataStream_ != null && - dataStream_ != com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance()) { - getDataStreamBuilder().mergeFrom(value); - } else { - dataStream_ = value; - } - } else { - dataStreamBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public Builder clearDataStream() { - bitField0_ = (bitField0_ & ~0x00000001); - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public com.google.analytics.admin.v1alpha.DataStream.Builder getDataStreamBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDataStreamFieldBuilder().getBuilder(); - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - public com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder() { - if (dataStreamBuilder_ != null) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - return dataStream_ == null ? - com.google.analytics.admin.v1alpha.DataStream.getDefaultInstance() : dataStream_; - } - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - dataStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DataStream, com.google.analytics.admin.v1alpha.DataStream.Builder, com.google.analytics.admin.v1alpha.DataStreamOrBuilder>( - getDataStream(), - getParentForChildren(), - isClean()); - dataStream_ = null; - } - return dataStreamBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.UpdateDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java deleted file mode 100644 index cd38517641d5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - * @return The dataStream. - */ - com.google.analytics.admin.v1alpha.DataStream getDataStream(); - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1alpha.DataStream data_stream = 1; - */ - com.google.analytics.admin.v1alpha.DataStreamOrBuilder getDataStreamOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java deleted file mode 100644 index e055a6387072..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateDisplayVideo360AdvertiserLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} - */ -public final class UpdateDisplayVideo360AdvertiserLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) - UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. - private UpdateDisplayVideo360AdvertiserLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateDisplayVideo360AdvertiserLinkRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateDisplayVideo360AdvertiserLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink_; - /** - *
-   * The DisplayVideo360AdvertiserLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - @java.lang.Override - public boolean hasDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink_ != null; - } - /** - *
-   * The DisplayVideo360AdvertiserLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return The displayVideo360AdvertiserLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - /** - *
-   * The DisplayVideo360AdvertiserLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (displayVideo360AdvertiserLink_ != null) { - output.writeMessage(1, getDisplayVideo360AdvertiserLink()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (displayVideo360AdvertiserLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDisplayVideo360AdvertiserLink()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest other = (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) obj; - - if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) return false; - if (hasDisplayVideo360AdvertiserLink()) { - if (!getDisplayVideo360AdvertiserLink() - .equals(other.getDisplayVideo360AdvertiserLink())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasDisplayVideo360AdvertiserLink()) { - hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; - hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateDisplayVideo360AdvertiserLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayVideo360AdvertiserLink_ = null; - if (displayVideo360AdvertiserLinkBuilder_ != null) { - displayVideo360AdvertiserLinkBuilder_.dispose(); - displayVideo360AdvertiserLinkBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest build() { - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result = new com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_ == null - ? displayVideo360AdvertiserLink_ - : displayVideo360AdvertiserLinkBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance()) return this; - if (other.hasDisplayVideo360AdvertiserLink()) { - mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> displayVideo360AdvertiserLinkBuilder_; - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - public boolean hasDisplayVideo360AdvertiserLink() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return The displayVideo360AdvertiserLink. - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - return displayVideo360AdvertiserLink_ == null ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } else { - return displayVideo360AdvertiserLinkBuilder_.getMessage(); - } - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder setDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - displayVideo360AdvertiserLink_ = value; - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder setDisplayVideo360AdvertiserLink( - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLink_ = builderForValue.build(); - } else { - displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder mergeDisplayVideo360AdvertiserLink(com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - displayVideo360AdvertiserLink_ != null && - displayVideo360AdvertiserLink_ != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()) { - getDisplayVideo360AdvertiserLinkBuilder().mergeFrom(value); - } else { - displayVideo360AdvertiserLink_ = value; - } - } else { - displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public Builder clearDisplayVideo360AdvertiserLink() { - bitField0_ = (bitField0_ & ~0x00000001); - displayVideo360AdvertiserLink_ = null; - if (displayVideo360AdvertiserLinkBuilder_ != null) { - displayVideo360AdvertiserLinkBuilder_.dispose(); - displayVideo360AdvertiserLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder getDisplayVideo360AdvertiserLinkBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder() { - if (displayVideo360AdvertiserLinkBuilder_ != null) { - return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); - } else { - return displayVideo360AdvertiserLink_ == null ? - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() : displayVideo360AdvertiserLink_; - } - } - /** - *
-     * The DisplayVideo360AdvertiserLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> - getDisplayVideo360AdvertiserLinkFieldBuilder() { - if (displayVideo360AdvertiserLinkBuilder_ == null) { - displayVideo360AdvertiserLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( - getDisplayVideo360AdvertiserLink(), - getParentForChildren(), - isClean()); - displayVideo360AdvertiserLink_ = null; - } - return displayVideo360AdvertiserLinkBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) - private static final com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDisplayVideo360AdvertiserLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java deleted file mode 100644 index 66ea7e522c4a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The DisplayVideo360AdvertiserLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return Whether the displayVideo360AdvertiserLink field is set. - */ - boolean hasDisplayVideo360AdvertiserLink(); - /** - *
-   * The DisplayVideo360AdvertiserLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - * @return The displayVideo360AdvertiserLink. - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(); - /** - *
-   * The DisplayVideo360AdvertiserLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; - */ - com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder getDisplayVideo360AdvertiserLinkOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java deleted file mode 100644 index aba7307adacf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateEnhancedMeasurementSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} - */ -public final class UpdateEnhancedMeasurementSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - UpdateEnhancedMeasurementSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateEnhancedMeasurementSettingsRequest.newBuilder() to construct. - private UpdateEnhancedMeasurementSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateEnhancedMeasurementSettingsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateEnhancedMeasurementSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder.class); - } - - public static final int ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhancedMeasurementSettings_; - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the enhancedMeasurementSettings field is set. - */ - @java.lang.Override - public boolean hasEnhancedMeasurementSettings() { - return enhancedMeasurementSettings_ != null; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enhancedMeasurementSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings() { - return enhancedMeasurementSettings_ == null ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() : enhancedMeasurementSettings_; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder getEnhancedMeasurementSettingsOrBuilder() { - return enhancedMeasurementSettings_ == null ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() : enhancedMeasurementSettings_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (enhancedMeasurementSettings_ != null) { - output.writeMessage(1, getEnhancedMeasurementSettings()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (enhancedMeasurementSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEnhancedMeasurementSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += 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.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other = (com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) obj; - - if (hasEnhancedMeasurementSettings() != other.hasEnhancedMeasurementSettings()) return false; - if (hasEnhancedMeasurementSettings()) { - if (!getEnhancedMeasurementSettings() - .equals(other.getEnhancedMeasurementSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (!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 (hasEnhancedMeasurementSettings()) { - hash = (37 * hash) + ENHANCED_MEASUREMENT_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getEnhancedMeasurementSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateEnhancedMeasurementSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - enhancedMeasurementSettings_ = null; - if (enhancedMeasurementSettingsBuilder_ != null) { - enhancedMeasurementSettingsBuilder_.dispose(); - enhancedMeasurementSettingsBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest build() { - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result = new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.enhancedMeasurementSettings_ = enhancedMeasurementSettingsBuilder_ == null - ? enhancedMeasurementSettings_ - : enhancedMeasurementSettingsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest.getDefaultInstance()) return this; - if (other.hasEnhancedMeasurementSettings()) { - mergeEnhancedMeasurementSettings(other.getEnhancedMeasurementSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getEnhancedMeasurementSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhancedMeasurementSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> enhancedMeasurementSettingsBuilder_; - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the enhancedMeasurementSettings field is set. - */ - public boolean hasEnhancedMeasurementSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enhancedMeasurementSettings. - */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings() { - if (enhancedMeasurementSettingsBuilder_ == null) { - return enhancedMeasurementSettings_ == null ? com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() : enhancedMeasurementSettings_; - } else { - return enhancedMeasurementSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - enhancedMeasurementSettings_ = value; - } else { - enhancedMeasurementSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder builderForValue) { - if (enhancedMeasurementSettingsBuilder_ == null) { - enhancedMeasurementSettings_ = builderForValue.build(); - } else { - enhancedMeasurementSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeEnhancedMeasurementSettings(com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings value) { - if (enhancedMeasurementSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - enhancedMeasurementSettings_ != null && - enhancedMeasurementSettings_ != com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance()) { - getEnhancedMeasurementSettingsBuilder().mergeFrom(value); - } else { - enhancedMeasurementSettings_ = value; - } - } else { - enhancedMeasurementSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearEnhancedMeasurementSettings() { - bitField0_ = (bitField0_ & ~0x00000001); - enhancedMeasurementSettings_ = null; - if (enhancedMeasurementSettingsBuilder_ != null) { - enhancedMeasurementSettingsBuilder_.dispose(); - enhancedMeasurementSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder getEnhancedMeasurementSettingsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEnhancedMeasurementSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder getEnhancedMeasurementSettingsOrBuilder() { - if (enhancedMeasurementSettingsBuilder_ != null) { - return enhancedMeasurementSettingsBuilder_.getMessageOrBuilder(); - } else { - return enhancedMeasurementSettings_ == null ? - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.getDefaultInstance() : enhancedMeasurementSettings_; - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder> - getEnhancedMeasurementSettingsFieldBuilder() { - if (enhancedMeasurementSettingsBuilder_ == null) { - enhancedMeasurementSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings.Builder, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder>( - getEnhancedMeasurementSettings(), - getParentForChildren(), - isClean()); - enhancedMeasurementSettings_ = null; - } - return enhancedMeasurementSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - private static final com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEnhancedMeasurementSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java deleted file mode 100644 index e38c265b1273..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateEnhancedMeasurementSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the enhancedMeasurementSettings field is set. - */ - boolean hasEnhancedMeasurementSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The enhancedMeasurementSettings. - */ - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsOrBuilder getEnhancedMeasurementSettingsOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequest.java deleted file mode 100644 index e254d946e8b9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateEventCreateRule RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} - */ -public final class UpdateEventCreateRuleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) - UpdateEventCreateRuleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateEventCreateRuleRequest.newBuilder() to construct. - private UpdateEventCreateRuleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateEventCreateRuleRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateEventCreateRuleRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.Builder.class); - } - - public static final int EVENT_CREATE_RULE_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; - /** - *
-   * Required. The EventCreateRule to update.
-   * The resource's `name` field is used to identify the EventCreateRule to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the eventCreateRule field is set. - */ - @java.lang.Override - public boolean hasEventCreateRule() { - return eventCreateRule_ != null; - } - /** - *
-   * Required. The EventCreateRule to update.
-   * The resource's `name` field is used to identify the EventCreateRule to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventCreateRule. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { - return eventCreateRule_ == null ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } - /** - *
-   * Required. The EventCreateRule to update.
-   * The resource's `name` field is used to identify the EventCreateRule to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { - return eventCreateRule_ == null ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (eventCreateRule_ != null) { - output.writeMessage(1, getEventCreateRule()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (eventCreateRule_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getEventCreateRule()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateEventCreateRuleRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest other = (com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) obj; - - if (hasEventCreateRule() != other.hasEventCreateRule()) return false; - if (hasEventCreateRule()) { - if (!getEventCreateRule() - .equals(other.getEventCreateRule())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasEventCreateRule()) { - hash = (37 * hash) + EVENT_CREATE_RULE_FIELD_NUMBER; - hash = (53 * hash) + getEventCreateRule().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateEventCreateRule RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.class, com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - eventCreateRule_ = null; - if (eventCreateRuleBuilder_ != null) { - eventCreateRuleBuilder_.dispose(); - eventCreateRuleBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateEventCreateRuleRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest build() { - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest result = new com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.eventCreateRule_ = eventCreateRuleBuilder_ == null - ? eventCreateRule_ - : eventCreateRuleBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest.getDefaultInstance()) return this; - if (other.hasEventCreateRule()) { - mergeEventCreateRule(other.getEventCreateRule()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getEventCreateRuleFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.EventCreateRule eventCreateRule_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> eventCreateRuleBuilder_; - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the eventCreateRule field is set. - */ - public boolean hasEventCreateRule() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventCreateRule. - */ - public com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule() { - if (eventCreateRuleBuilder_ == null) { - return eventCreateRule_ == null ? com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } else { - return eventCreateRuleBuilder_.getMessage(); - } - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRuleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eventCreateRule_ = value; - } else { - eventCreateRuleBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setEventCreateRule( - com.google.analytics.admin.v1alpha.EventCreateRule.Builder builderForValue) { - if (eventCreateRuleBuilder_ == null) { - eventCreateRule_ = builderForValue.build(); - } else { - eventCreateRuleBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeEventCreateRule(com.google.analytics.admin.v1alpha.EventCreateRule value) { - if (eventCreateRuleBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - eventCreateRule_ != null && - eventCreateRule_ != com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance()) { - getEventCreateRuleBuilder().mergeFrom(value); - } else { - eventCreateRule_ = value; - } - } else { - eventCreateRuleBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearEventCreateRule() { - bitField0_ = (bitField0_ & ~0x00000001); - eventCreateRule_ = null; - if (eventCreateRuleBuilder_ != null) { - eventCreateRuleBuilder_.dispose(); - eventCreateRuleBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.EventCreateRule.Builder getEventCreateRuleBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getEventCreateRuleFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder() { - if (eventCreateRuleBuilder_ != null) { - return eventCreateRuleBuilder_.getMessageOrBuilder(); - } else { - return eventCreateRule_ == null ? - com.google.analytics.admin.v1alpha.EventCreateRule.getDefaultInstance() : eventCreateRule_; - } - } - /** - *
-     * Required. The EventCreateRule to update.
-     * The resource's `name` field is used to identify the EventCreateRule to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder> - getEventCreateRuleFieldBuilder() { - if (eventCreateRuleBuilder_ == null) { - eventCreateRuleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.EventCreateRule, com.google.analytics.admin.v1alpha.EventCreateRule.Builder, com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder>( - getEventCreateRule(), - getParentForChildren(), - isClean()); - eventCreateRule_ = null; - } - return eventCreateRuleBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) - private static final com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEventCreateRuleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequestOrBuilder.java deleted file mode 100644 index efd05c20aa94..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEventCreateRuleRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateEventCreateRuleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateEventCreateRuleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The EventCreateRule to update.
-   * The resource's `name` field is used to identify the EventCreateRule to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the eventCreateRule field is set. - */ - boolean hasEventCreateRule(); - /** - *
-   * Required. The EventCreateRule to update.
-   * The resource's `name` field is used to identify the EventCreateRule to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The eventCreateRule. - */ - com.google.analytics.admin.v1alpha.EventCreateRule getEventCreateRule(); - /** - *
-   * Required. The EventCreateRule to update.
-   * The resource's `name` field is used to identify the EventCreateRule to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.EventCreateRule event_create_rule = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.EventCreateRuleOrBuilder getEventCreateRuleOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java deleted file mode 100644 index f0f99d6b1343..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateExpandedDataSet RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest} - */ -public final class UpdateExpandedDataSetRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) - UpdateExpandedDataSetRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateExpandedDataSetRequest.newBuilder() to construct. - private UpdateExpandedDataSetRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateExpandedDataSetRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateExpandedDataSetRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.Builder.class); - } - - public static final int EXPANDED_DATA_SET_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; - /** - *
-   * Required. The ExpandedDataSet to update.
-   * The resource's `name` field is used to identify the ExpandedDataSet to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expandedDataSet field is set. - */ - @java.lang.Override - public boolean hasExpandedDataSet() { - return expandedDataSet_ != null; - } - /** - *
-   * Required. The ExpandedDataSet to update.
-   * The resource's `name` field is used to identify the ExpandedDataSet to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The expandedDataSet. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { - return expandedDataSet_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } - /** - *
-   * Required. The ExpandedDataSet to update.
-   * The resource's `name` field is used to identify the ExpandedDataSet to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { - return expandedDataSet_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (expandedDataSet_ != null) { - output.writeMessage(1, getExpandedDataSet()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (expandedDataSet_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getExpandedDataSet()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateExpandedDataSetRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest other = (com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) obj; - - if (hasExpandedDataSet() != other.hasExpandedDataSet()) return false; - if (hasExpandedDataSet()) { - if (!getExpandedDataSet() - .equals(other.getExpandedDataSet())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasExpandedDataSet()) { - hash = (37 * hash) + EXPANDED_DATA_SET_FIELD_NUMBER; - hash = (53 * hash) + getExpandedDataSet().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateExpandedDataSet RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.class, com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - expandedDataSet_ = null; - if (expandedDataSetBuilder_ != null) { - expandedDataSetBuilder_.dispose(); - expandedDataSetBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateExpandedDataSetRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest build() { - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result = new com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.expandedDataSet_ = expandedDataSetBuilder_ == null - ? expandedDataSet_ - : expandedDataSetBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest.getDefaultInstance()) return this; - if (other.hasExpandedDataSet()) { - mergeExpandedDataSet(other.getExpandedDataSet()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getExpandedDataSetFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.ExpandedDataSet expandedDataSet_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> expandedDataSetBuilder_; - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expandedDataSet field is set. - */ - public boolean hasExpandedDataSet() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The expandedDataSet. - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet() { - if (expandedDataSetBuilder_ == null) { - return expandedDataSet_ == null ? com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } else { - return expandedDataSetBuilder_.getMessage(); - } - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expandedDataSet_ = value; - } else { - expandedDataSetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setExpandedDataSet( - com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder builderForValue) { - if (expandedDataSetBuilder_ == null) { - expandedDataSet_ = builderForValue.build(); - } else { - expandedDataSetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeExpandedDataSet(com.google.analytics.admin.v1alpha.ExpandedDataSet value) { - if (expandedDataSetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - expandedDataSet_ != null && - expandedDataSet_ != com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance()) { - getExpandedDataSetBuilder().mergeFrom(value); - } else { - expandedDataSet_ = value; - } - } else { - expandedDataSetBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearExpandedDataSet() { - bitField0_ = (bitField0_ & ~0x00000001); - expandedDataSet_ = null; - if (expandedDataSetBuilder_ != null) { - expandedDataSetBuilder_.dispose(); - expandedDataSetBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder getExpandedDataSetBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getExpandedDataSetFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder() { - if (expandedDataSetBuilder_ != null) { - return expandedDataSetBuilder_.getMessageOrBuilder(); - } else { - return expandedDataSet_ == null ? - com.google.analytics.admin.v1alpha.ExpandedDataSet.getDefaultInstance() : expandedDataSet_; - } - } - /** - *
-     * Required. The ExpandedDataSet to update.
-     * The resource's `name` field is used to identify the ExpandedDataSet to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder> - getExpandedDataSetFieldBuilder() { - if (expandedDataSetBuilder_ == null) { - expandedDataSetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.ExpandedDataSet, com.google.analytics.admin.v1alpha.ExpandedDataSet.Builder, com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder>( - getExpandedDataSet(), - getParentForChildren(), - isClean()); - expandedDataSet_ = null; - } - return expandedDataSetBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) - private static final com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateExpandedDataSetRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java deleted file mode 100644 index 4a3698b7463b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateExpandedDataSetRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateExpandedDataSetRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateExpandedDataSetRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The ExpandedDataSet to update.
-   * The resource's `name` field is used to identify the ExpandedDataSet to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the expandedDataSet field is set. - */ - boolean hasExpandedDataSet(); - /** - *
-   * Required. The ExpandedDataSet to update.
-   * The resource's `name` field is used to identify the ExpandedDataSet to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The expandedDataSet. - */ - com.google.analytics.admin.v1alpha.ExpandedDataSet getExpandedDataSet(); - /** - *
-   * Required. The ExpandedDataSet to update.
-   * The resource's `name` field is used to identify the ExpandedDataSet to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.ExpandedDataSet expanded_data_set = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.ExpandedDataSetOrBuilder getExpandedDataSetOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java deleted file mode 100644 index b167c3cf3a3f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,907 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateGoogleAdsLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} - */ -public final class UpdateGoogleAdsLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) - UpdateGoogleAdsLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateGoogleAdsLinkRequest.newBuilder() to construct. - private UpdateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateGoogleAdsLinkRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateGoogleAdsLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.Builder.class); - } - - public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return googleAdsLink_ != null; - } - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (googleAdsLink_ != null) { - output.writeMessage(1, getGoogleAdsLink()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (googleAdsLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGoogleAdsLink()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateGoogleAdsLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest other = (com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) obj; - - if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; - if (hasGoogleAdsLink()) { - if (!getGoogleAdsLink() - .equals(other.getGoogleAdsLink())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasGoogleAdsLink()) { - hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLink().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateGoogleAdsLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest build() { - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest result = new com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.googleAdsLink_ = googleAdsLinkBuilder_ == null - ? googleAdsLink_ - : googleAdsLinkBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest.getDefaultInstance()) return this; - if (other.hasGoogleAdsLink()) { - mergeGoogleAdsLink(other.getGoogleAdsLink()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getGoogleAdsLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.GoogleAdsLink googleAdsLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> googleAdsLinkBuilder_; - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @return Whether the googleAdsLink field is set. - */ - public boolean hasGoogleAdsLink() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @return The googleAdsLink. - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - return googleAdsLink_ == null ? com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } else { - return googleAdsLinkBuilder_.getMessage(); - } - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - googleAdsLink_ = value; - } else { - googleAdsLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public Builder setGoogleAdsLink( - com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = builderForValue.build(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - googleAdsLink_ != null && - googleAdsLink_ != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { - getGoogleAdsLinkBuilder().mergeFrom(value); - } else { - googleAdsLink_ = value; - } - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public Builder clearGoogleAdsLink() { - bitField0_ = (bitField0_ & ~0x00000001); - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getGoogleAdsLinkFieldBuilder().getBuilder(); - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if (googleAdsLinkBuilder_ != null) { - return googleAdsLinkBuilder_.getMessageOrBuilder(); - } else { - return googleAdsLink_ == null ? - com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> - getGoogleAdsLinkFieldBuilder() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleAdsLink, com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( - getGoogleAdsLink(), - getParentForChildren(), - isClean()); - googleAdsLink_ = null; - } - return googleAdsLinkBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) - private static final com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGoogleAdsLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 87e490bf5052..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateGoogleAdsLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @return Whether the googleAdsLink field is set. - */ - boolean hasGoogleAdsLink(); - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - * @return The googleAdsLink. - */ - com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 1; - */ - com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java deleted file mode 100644 index fa71a092092f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateGoogleSignalsSettings RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} - */ -public final class UpdateGoogleSignalsSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) - UpdateGoogleSignalsSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateGoogleSignalsSettingsRequest.newBuilder() to construct. - private UpdateGoogleSignalsSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateGoogleSignalsSettingsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateGoogleSignalsSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); - } - - public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleSignalsSettings field is set. - */ - @java.lang.Override - public boolean hasGoogleSignalsSettings() { - return googleSignalsSettings_ != null; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleSignalsSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { - return googleSignalsSettings_ == null ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() : googleSignalsSettings_; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder getGoogleSignalsSettingsOrBuilder() { - return googleSignalsSettings_ == null ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() : googleSignalsSettings_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (googleSignalsSettings_ != null) { - output.writeMessage(1, getGoogleSignalsSettings()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (googleSignalsSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGoogleSignalsSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateGoogleSignalsSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other = (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) obj; - - if (hasGoogleSignalsSettings() != other.hasGoogleSignalsSettings()) return false; - if (hasGoogleSignalsSettings()) { - if (!getGoogleSignalsSettings() - .equals(other.getGoogleSignalsSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasGoogleSignalsSettings()) { - hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateGoogleSignalsSettings RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - googleSignalsSettings_ = null; - if (googleSignalsSettingsBuilder_ != null) { - googleSignalsSettingsBuilder_.dispose(); - googleSignalsSettingsBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest build() { - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.googleSignalsSettings_ = googleSignalsSettingsBuilder_ == null - ? googleSignalsSettings_ - : googleSignalsSettingsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.getDefaultInstance()) return this; - if (other.hasGoogleSignalsSettings()) { - mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getGoogleSignalsSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleSignalsSettings, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> googleSignalsSettingsBuilder_; - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleSignalsSettings field is set. - */ - public boolean hasGoogleSignalsSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleSignalsSettings. - */ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { - if (googleSignalsSettingsBuilder_ == null) { - return googleSignalsSettings_ == null ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() : googleSignalsSettings_; - } else { - return googleSignalsSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGoogleSignalsSettings(com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { - if (googleSignalsSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - googleSignalsSettings_ = value; - } else { - googleSignalsSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { - if (googleSignalsSettingsBuilder_ == null) { - googleSignalsSettings_ = builderForValue.build(); - } else { - googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeGoogleSignalsSettings(com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { - if (googleSignalsSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - googleSignalsSettings_ != null && - googleSignalsSettings_ != com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance()) { - getGoogleSignalsSettingsBuilder().mergeFrom(value); - } else { - googleSignalsSettings_ = value; - } - } else { - googleSignalsSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearGoogleSignalsSettings() { - bitField0_ = (bitField0_ & ~0x00000001); - googleSignalsSettings_ = null; - if (googleSignalsSettingsBuilder_ != null) { - googleSignalsSettingsBuilder_.dispose(); - googleSignalsSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder getGoogleSignalsSettingsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getGoogleSignalsSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder getGoogleSignalsSettingsOrBuilder() { - if (googleSignalsSettingsBuilder_ != null) { - return googleSignalsSettingsBuilder_.getMessageOrBuilder(); - } else { - return googleSignalsSettings_ == null ? - com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() : googleSignalsSettings_; - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleSignalsSettings, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> - getGoogleSignalsSettingsFieldBuilder() { - if (googleSignalsSettingsBuilder_ == null) { - googleSignalsSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.GoogleSignalsSettings, com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( - getGoogleSignalsSettings(), - getParentForChildren(), - isClean()); - googleSignalsSettings_ = null; - } - return googleSignalsSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) - private static final com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGoogleSignalsSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java deleted file mode 100644 index d4a392e1f893..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateGoogleSignalsSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleSignalsSettings field is set. - */ - boolean hasGoogleSignalsSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleSignalsSettings. - */ - com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder getGoogleSignalsSettingsOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java deleted file mode 100644 index e05308fa017f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,883 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} - */ -public final class UpdateMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) - UpdateMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateMeasurementProtocolSecretRequest.newBuilder() to construct. - private UpdateMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateMeasurementProtocolSecretRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return measurementProtocolSecret_ != null; - } - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (measurementProtocolSecret_ != null) { - output.writeMessage(1, getMeasurementProtocolSecret()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (measurementProtocolSecret_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMeasurementProtocolSecret()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) obj; - - if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; - if (hasMeasurementProtocolSecret()) { - if (!getMeasurementProtocolSecret() - .equals(other.getMeasurementProtocolSecret())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasMeasurementProtocolSecret()) { - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_ == null - ? measurementProtocolSecret_ - : measurementProtocolSecretBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (other.hasMeasurementProtocolSecret()) { - mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretBuilder_; - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - public boolean hasMeasurementProtocolSecret() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } else { - return measurementProtocolSecretBuilder_.getMessage(); - } - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - measurementProtocolSecret_ = value; - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = builderForValue.build(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeMeasurementProtocolSecret(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - measurementProtocolSecret_ != null && - measurementProtocolSecret_ != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()) { - getMeasurementProtocolSecretBuilder().mergeFrom(value); - } else { - measurementProtocolSecret_ = value; - } - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearMeasurementProtocolSecret() { - bitField0_ = (bitField0_ & ~0x00000001); - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMeasurementProtocolSecretFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if (measurementProtocolSecretBuilder_ != null) { - return measurementProtocolSecretBuilder_.getMessageOrBuilder(); - } else { - return measurementProtocolSecret_ == null ? - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretFieldBuilder() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( - getMeasurementProtocolSecret(), - getParentForChildren(), - isClean()); - measurementProtocolSecret_ = null; - } - return measurementProtocolSecretBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index 4f6aee3e437f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - boolean hasMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java deleted file mode 100644 index 6076b08e1feb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdatePropertyRequest} - */ -public final class UpdatePropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdatePropertyRequest) - UpdatePropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdatePropertyRequest.newBuilder() to construct. - private UpdatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdatePropertyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdatePropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest.class, com.google.analytics.admin.v1alpha.UpdatePropertyRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.Property property_; - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return property_ != null; - } - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.Property getProperty() { - return property_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { - return property_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (property_ != null) { - output.writeMessage(1, getProperty()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdatePropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdatePropertyRequest other = (com.google.analytics.admin.v1alpha.UpdatePropertyRequest) obj; - - if (hasProperty() != other.hasProperty()) return false; - if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasProperty()) { - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdatePropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdatePropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdatePropertyRequest) - com.google.analytics.admin.v1alpha.UpdatePropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest.class, com.google.analytics.admin.v1alpha.UpdatePropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdatePropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdatePropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdatePropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdatePropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdatePropertyRequest build() { - com.google.analytics.admin.v1alpha.UpdatePropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdatePropertyRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdatePropertyRequest result = new com.google.analytics.admin.v1alpha.UpdatePropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdatePropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = propertyBuilder_ == null - ? property_ - : propertyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdatePropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdatePropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdatePropertyRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdatePropertyRequest.getDefaultInstance()) return this; - if (other.hasProperty()) { - mergeProperty(other.getProperty()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getPropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.Property property_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> propertyBuilder_; - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - public boolean hasProperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - public com.google.analytics.admin.v1alpha.Property getProperty() { - if (propertyBuilder_ == null) { - return property_ == null ? com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } else { - return propertyBuilder_.getMessage(); - } - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - property_ = value; - } else { - propertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty( - com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { - if (propertyBuilder_ == null) { - property_ = builderForValue.build(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { - if (propertyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - property_ != null && - property_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { - getPropertyBuilder().mergeFrom(value); - } else { - property_ = value; - } - } else { - propertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearProperty() { - bitField0_ = (bitField0_ & ~0x00000001); - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPropertyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { - if (propertyBuilder_ != null) { - return propertyBuilder_.getMessageOrBuilder(); - } else { - return property_ == null ? - com.google.analytics.admin.v1alpha.Property.getDefaultInstance() : property_; - } - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder> - getPropertyFieldBuilder() { - if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.Property, com.google.analytics.admin.v1alpha.Property.Builder, com.google.analytics.admin.v1alpha.PropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); - property_ = null; - } - return propertyBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdatePropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdatePropertyRequest) - private static final com.google.analytics.admin.v1alpha.UpdatePropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdatePropertyRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdatePropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdatePropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java deleted file mode 100644 index f4d196b98e7a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdatePropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdatePropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - boolean hasProperty(); - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - com.google.analytics.admin.v1alpha.Property getProperty(); - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1alpha.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.java deleted file mode 100644 index 2f38328dbef3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequest.java +++ /dev/null @@ -1,883 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateSKAdNetworkConversionValueSchema RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest} - */ -public final class UpdateSKAdNetworkConversionValueSchemaRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) - UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() to construct. - private UpdateSKAdNetworkConversionValueSchemaRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateSKAdNetworkConversionValueSchemaRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateSKAdNetworkConversionValueSchemaRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - public static final int SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema_; - /** - *
-   * Required. SKAdNetwork conversion value schema to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - @java.lang.Override - public boolean hasSkadnetworkConversionValueSchema() { - return skadnetworkConversionValueSchema_ != null; - } - /** - *
-   * Required. SKAdNetwork conversion value schema to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The skadnetworkConversionValueSchema. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema() { - return skadnetworkConversionValueSchema_ == null ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } - /** - *
-   * Required. SKAdNetwork conversion value schema to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder() { - return skadnetworkConversionValueSchema_ == null ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (skadnetworkConversionValueSchema_ != null) { - output.writeMessage(1, getSkadnetworkConversionValueSchema()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (skadnetworkConversionValueSchema_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSkadnetworkConversionValueSchema()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest other = (com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) obj; - - if (hasSkadnetworkConversionValueSchema() != other.hasSkadnetworkConversionValueSchema()) return false; - if (hasSkadnetworkConversionValueSchema()) { - if (!getSkadnetworkConversionValueSchema() - .equals(other.getSkadnetworkConversionValueSchema())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasSkadnetworkConversionValueSchema()) { - hash = (37 * hash) + SKADNETWORK_CONVERSION_VALUE_SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSkadnetworkConversionValueSchema().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateSKAdNetworkConversionValueSchema RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.class, com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - skadnetworkConversionValueSchema_ = null; - if (skadnetworkConversionValueSchemaBuilder_ != null) { - skadnetworkConversionValueSchemaBuilder_.dispose(); - skadnetworkConversionValueSchemaBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSKAdNetworkConversionValueSchemaRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest build() { - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest result = new com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.skadnetworkConversionValueSchema_ = skadnetworkConversionValueSchemaBuilder_ == null - ? skadnetworkConversionValueSchema_ - : skadnetworkConversionValueSchemaBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest.getDefaultInstance()) return this; - if (other.hasSkadnetworkConversionValueSchema()) { - mergeSkadnetworkConversionValueSchema(other.getSkadnetworkConversionValueSchema()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetworkConversionValueSchema_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> skadnetworkConversionValueSchemaBuilder_; - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - public boolean hasSkadnetworkConversionValueSchema() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The skadnetworkConversionValueSchema. - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema() { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - return skadnetworkConversionValueSchema_ == null ? com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } else { - return skadnetworkConversionValueSchemaBuilder_.getMessage(); - } - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSkadnetworkConversionValueSchema(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - skadnetworkConversionValueSchema_ = value; - } else { - skadnetworkConversionValueSchemaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSkadnetworkConversionValueSchema( - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder builderForValue) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - skadnetworkConversionValueSchema_ = builderForValue.build(); - } else { - skadnetworkConversionValueSchemaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeSkadnetworkConversionValueSchema(com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema value) { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - skadnetworkConversionValueSchema_ != null && - skadnetworkConversionValueSchema_ != com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance()) { - getSkadnetworkConversionValueSchemaBuilder().mergeFrom(value); - } else { - skadnetworkConversionValueSchema_ = value; - } - } else { - skadnetworkConversionValueSchemaBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSkadnetworkConversionValueSchema() { - bitField0_ = (bitField0_ & ~0x00000001); - skadnetworkConversionValueSchema_ = null; - if (skadnetworkConversionValueSchemaBuilder_ != null) { - skadnetworkConversionValueSchemaBuilder_.dispose(); - skadnetworkConversionValueSchemaBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder getSkadnetworkConversionValueSchemaBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSkadnetworkConversionValueSchemaFieldBuilder().getBuilder(); - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder() { - if (skadnetworkConversionValueSchemaBuilder_ != null) { - return skadnetworkConversionValueSchemaBuilder_.getMessageOrBuilder(); - } else { - return skadnetworkConversionValueSchema_ == null ? - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.getDefaultInstance() : skadnetworkConversionValueSchema_; - } - } - /** - *
-     * Required. SKAdNetwork conversion value schema to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder> - getSkadnetworkConversionValueSchemaFieldBuilder() { - if (skadnetworkConversionValueSchemaBuilder_ == null) { - skadnetworkConversionValueSchemaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema.Builder, com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder>( - getSkadnetworkConversionValueSchema(), - getParentForChildren(), - isClean()); - skadnetworkConversionValueSchema_ = null; - } - return skadnetworkConversionValueSchemaBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) - private static final com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSKAdNetworkConversionValueSchemaRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder.java deleted file mode 100644 index cb10b633c004..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateSKAdNetworkConversionValueSchemaRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateSKAdNetworkConversionValueSchemaRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. SKAdNetwork conversion value schema to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the skadnetworkConversionValueSchema field is set. - */ - boolean hasSkadnetworkConversionValueSchema(); - /** - *
-   * Required. SKAdNetwork conversion value schema to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The skadnetworkConversionValueSchema. - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema getSkadnetworkConversionValueSchema(); - /** - *
-   * Required. SKAdNetwork conversion value schema to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchema skadnetwork_conversion_value_schema = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaOrBuilder getSkadnetworkConversionValueSchemaOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequest.java deleted file mode 100644 index 910655595d55..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateSearchAds360Link RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} - */ -public final class UpdateSearchAds360LinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) - UpdateSearchAds360LinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateSearchAds360LinkRequest.newBuilder() to construct. - private UpdateSearchAds360LinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateSearchAds360LinkRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateSearchAds360LinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.Builder.class); - } - - public static final int SEARCH_ADS_360_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; - /** - *
-   * The SearchAds360Link to update
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return Whether the searchAds360Link field is set. - */ - @java.lang.Override - public boolean hasSearchAds360Link() { - return searchAds360Link_ != null; - } - /** - *
-   * The SearchAds360Link to update
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return The searchAds360Link. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { - return searchAds360Link_ == null ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } - /** - *
-   * The SearchAds360Link to update
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder() { - return searchAds360Link_ == null ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (searchAds360Link_ != null) { - output.writeMessage(1, getSearchAds360Link()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (searchAds360Link_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSearchAds360Link()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateSearchAds360LinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest other = (com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) obj; - - if (hasSearchAds360Link() != other.hasSearchAds360Link()) return false; - if (hasSearchAds360Link()) { - if (!getSearchAds360Link() - .equals(other.getSearchAds360Link())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasSearchAds360Link()) { - hash = (37 * hash) + SEARCH_ADS_360_LINK_FIELD_NUMBER; - hash = (53 * hash) + getSearchAds360Link().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateSearchAds360Link RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.class, com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - searchAds360Link_ = null; - if (searchAds360LinkBuilder_ != null) { - searchAds360LinkBuilder_.dispose(); - searchAds360LinkBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSearchAds360LinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest build() { - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest result = new com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.searchAds360Link_ = searchAds360LinkBuilder_ == null - ? searchAds360Link_ - : searchAds360LinkBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest.getDefaultInstance()) return this; - if (other.hasSearchAds360Link()) { - mergeSearchAds360Link(other.getSearchAds360Link()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getSearchAds360LinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.SearchAds360Link searchAds360Link_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> searchAds360LinkBuilder_; - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return Whether the searchAds360Link field is set. - */ - public boolean hasSearchAds360Link() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return The searchAds360Link. - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link() { - if (searchAds360LinkBuilder_ == null) { - return searchAds360Link_ == null ? com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } else { - return searchAds360LinkBuilder_.getMessage(); - } - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - public Builder setSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - searchAds360Link_ = value; - } else { - searchAds360LinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - public Builder setSearchAds360Link( - com.google.analytics.admin.v1alpha.SearchAds360Link.Builder builderForValue) { - if (searchAds360LinkBuilder_ == null) { - searchAds360Link_ = builderForValue.build(); - } else { - searchAds360LinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - public Builder mergeSearchAds360Link(com.google.analytics.admin.v1alpha.SearchAds360Link value) { - if (searchAds360LinkBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - searchAds360Link_ != null && - searchAds360Link_ != com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance()) { - getSearchAds360LinkBuilder().mergeFrom(value); - } else { - searchAds360Link_ = value; - } - } else { - searchAds360LinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - public Builder clearSearchAds360Link() { - bitField0_ = (bitField0_ & ~0x00000001); - searchAds360Link_ = null; - if (searchAds360LinkBuilder_ != null) { - searchAds360LinkBuilder_.dispose(); - searchAds360LinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - public com.google.analytics.admin.v1alpha.SearchAds360Link.Builder getSearchAds360LinkBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSearchAds360LinkFieldBuilder().getBuilder(); - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - public com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder() { - if (searchAds360LinkBuilder_ != null) { - return searchAds360LinkBuilder_.getMessageOrBuilder(); - } else { - return searchAds360Link_ == null ? - com.google.analytics.admin.v1alpha.SearchAds360Link.getDefaultInstance() : searchAds360Link_; - } - } - /** - *
-     * The SearchAds360Link to update
-     * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder> - getSearchAds360LinkFieldBuilder() { - if (searchAds360LinkBuilder_ == null) { - searchAds360LinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SearchAds360Link, com.google.analytics.admin.v1alpha.SearchAds360Link.Builder, com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder>( - getSearchAds360Link(), - getParentForChildren(), - isClean()); - searchAds360Link_ = null; - } - return searchAds360LinkBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) - private static final com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSearchAds360LinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequestOrBuilder.java deleted file mode 100644 index 7646b1ae113a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSearchAds360LinkRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateSearchAds360LinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The SearchAds360Link to update
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return Whether the searchAds360Link field is set. - */ - boolean hasSearchAds360Link(); - /** - *
-   * The SearchAds360Link to update
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - * @return The searchAds360Link. - */ - com.google.analytics.admin.v1alpha.SearchAds360Link getSearchAds360Link(); - /** - *
-   * The SearchAds360Link to update
-   * 
- * - * .google.analytics.admin.v1alpha.SearchAds360Link search_ads_360_link = 1; - */ - com.google.analytics.admin.v1alpha.SearchAds360LinkOrBuilder getSearchAds360LinkOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java deleted file mode 100644 index f72fad9c8ae3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequest.java +++ /dev/null @@ -1,907 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - *
- * Request message for UpdateSubpropertyEventFilter RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest} - */ -public final class UpdateSubpropertyEventFilterRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) - UpdateSubpropertyEventFilterRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateSubpropertyEventFilterRequest.newBuilder() to construct. - private UpdateSubpropertyEventFilterRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateSubpropertyEventFilterRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateSubpropertyEventFilterRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.Builder.class); - } - - public static final int SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - /** - *
-   * Required. The subproperty event filter to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subpropertyEventFilter field is set. - */ - @java.lang.Override - public boolean hasSubpropertyEventFilter() { - return subpropertyEventFilter_ != null; - } - /** - *
-   * Required. The subproperty event filter to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The subpropertyEventFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - /** - *
-   * Required. The subproperty event filter to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to update. Field names must be in snake case
-   * (for example, "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to update. Field names must be in snake case
-   * (for example, "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to update. Field names must be in snake case
-   * (for example, "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (subpropertyEventFilter_ != null) { - output.writeMessage(1, getSubpropertyEventFilter()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (subpropertyEventFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getSubpropertyEventFilter()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1alpha.UpdateSubpropertyEventFilterRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest other = (com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) obj; - - if (hasSubpropertyEventFilter() != other.hasSubpropertyEventFilter()) return false; - if (hasSubpropertyEventFilter()) { - if (!getSubpropertyEventFilter() - .equals(other.getSubpropertyEventFilter())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasSubpropertyEventFilter()) { - hash = (37 * hash) + SUBPROPERTY_EVENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSubpropertyEventFilter().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateSubpropertyEventFilter RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) - com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.class, com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto.internal_static_google_analytics_admin_v1alpha_UpdateSubpropertyEventFilterRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest build() { - com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result = new com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.subpropertyEventFilter_ = subpropertyEventFilterBuilder_ == null - ? subpropertyEventFilter_ - : subpropertyEventFilterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest other) { - if (other == com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest.getDefaultInstance()) return this; - if (other.hasSubpropertyEventFilter()) { - mergeSubpropertyEventFilter(other.getSubpropertyEventFilter()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getSubpropertyEventFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1alpha.SubpropertyEventFilter subpropertyEventFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> subpropertyEventFilterBuilder_; - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subpropertyEventFilter field is set. - */ - public boolean hasSubpropertyEventFilter() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The subpropertyEventFilter. - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter() { - if (subpropertyEventFilterBuilder_ == null) { - return subpropertyEventFilter_ == null ? com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } else { - return subpropertyEventFilterBuilder_.getMessage(); - } - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - subpropertyEventFilter_ = value; - } else { - subpropertyEventFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setSubpropertyEventFilter( - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder builderForValue) { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilter_ = builderForValue.build(); - } else { - subpropertyEventFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeSubpropertyEventFilter(com.google.analytics.admin.v1alpha.SubpropertyEventFilter value) { - if (subpropertyEventFilterBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - subpropertyEventFilter_ != null && - subpropertyEventFilter_ != com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance()) { - getSubpropertyEventFilterBuilder().mergeFrom(value); - } else { - subpropertyEventFilter_ = value; - } - } else { - subpropertyEventFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearSubpropertyEventFilter() { - bitField0_ = (bitField0_ & ~0x00000001); - subpropertyEventFilter_ = null; - if (subpropertyEventFilterBuilder_ != null) { - subpropertyEventFilterBuilder_.dispose(); - subpropertyEventFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder getSubpropertyEventFilterBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getSubpropertyEventFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder() { - if (subpropertyEventFilterBuilder_ != null) { - return subpropertyEventFilterBuilder_.getMessageOrBuilder(); - } else { - return subpropertyEventFilter_ == null ? - com.google.analytics.admin.v1alpha.SubpropertyEventFilter.getDefaultInstance() : subpropertyEventFilter_; - } - } - /** - *
-     * Required. The subproperty event filter to update.
-     * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder> - getSubpropertyEventFilterFieldBuilder() { - if (subpropertyEventFilterBuilder_ == null) { - subpropertyEventFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.SubpropertyEventFilter, com.google.analytics.admin.v1alpha.SubpropertyEventFilter.Builder, com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder>( - getSubpropertyEventFilter(), - getParentForChildren(), - isClean()); - subpropertyEventFilter_ = null; - } - return subpropertyEventFilterBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to update. Field names must be in snake case
-     * (for example, "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) - private static final com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest(); - } - - public static com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateSubpropertyEventFilterRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java deleted file mode 100644 index a463244ea5e2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1alpha/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateSubpropertyEventFilterRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface UpdateSubpropertyEventFilterRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The subproperty event filter to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the subpropertyEventFilter field is set. - */ - boolean hasSubpropertyEventFilter(); - /** - *
-   * Required. The subproperty event filter to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The subpropertyEventFilter. - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilter getSubpropertyEventFilter(); - /** - *
-   * Required. The subproperty event filter to update.
-   * 
- * - * .google.analytics.admin.v1alpha.SubpropertyEventFilter subproperty_event_filter = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1alpha.SubpropertyEventFilterOrBuilder getSubpropertyEventFilterOrBuilder(); - - /** - *
-   * Required. The list of fields to update. Field names must be in snake case
-   * (for example, "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to update. Field names must be in snake case
-   * (for example, "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to update. Field names must be in snake case
-   * (for example, "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java b/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java deleted file mode 100644 index 54ffe27e2844..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceSettings.java +++ /dev/null @@ -1,827 +0,0 @@ -/* - * 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. - */ - -package com.google.analytics.admin.v1beta; - -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1beta.stub.AnalyticsAdminServiceStubSettings; -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link AnalyticsAdminServiceClient}. - * - *

The default instance has everything set to sensible defaults: - * - *

    - *
  • The default service address (analyticsadmin.googleapis.com) and default port (443) are - * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. - *
- * - *

The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

For example, to set the total timeout of getAccount to 30 seconds: - * - *

{@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
- * AnalyticsAdminServiceSettings.Builder analyticsAdminServiceSettingsBuilder =
- *     AnalyticsAdminServiceSettings.newBuilder();
- * analyticsAdminServiceSettingsBuilder
- *     .getAccountSettings()
- *     .setRetrySettings(
- *         analyticsAdminServiceSettingsBuilder
- *             .getAccountSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AnalyticsAdminServiceSettings analyticsAdminServiceSettings =
- *     analyticsAdminServiceSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AnalyticsAdminServiceSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to getAccount. */ - public UnaryCallSettings getAccountSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getAccountSettings(); - } - - /** Returns the object with the settings used for calls to listAccounts. */ - public PagedCallSettings - listAccountsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountsSettings(); - } - - /** Returns the object with the settings used for calls to deleteAccount. */ - public UnaryCallSettings deleteAccountSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteAccountSettings(); - } - - /** Returns the object with the settings used for calls to updateAccount. */ - public UnaryCallSettings updateAccountSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateAccountSettings(); - } - - /** Returns the object with the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings - provisionAccountTicketSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).provisionAccountTicketSettings(); - } - - /** Returns the object with the settings used for calls to listAccountSummaries. */ - public PagedCallSettings< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listAccountSummariesSettings(); - } - - /** Returns the object with the settings used for calls to getProperty. */ - public UnaryCallSettings getPropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getPropertySettings(); - } - - /** Returns the object with the settings used for calls to listProperties. */ - public PagedCallSettings< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listPropertiesSettings(); - } - - /** Returns the object with the settings used for calls to createProperty. */ - public UnaryCallSettings createPropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createPropertySettings(); - } - - /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deletePropertySettings(); - } - - /** Returns the object with the settings used for calls to updateProperty. */ - public UnaryCallSettings updatePropertySettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updatePropertySettings(); - } - - /** Returns the object with the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings createFirebaseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings deleteFirebaseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteFirebaseLinkSettings(); - } - - /** Returns the object with the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listFirebaseLinksSettings(); - } - - /** Returns the object with the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings - createGoogleAdsLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createGoogleAdsLinkSettings(); - } - - /** Returns the object with the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings - updateGoogleAdsLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateGoogleAdsLinkSettings(); - } - - /** Returns the object with the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings deleteGoogleAdsLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteGoogleAdsLinkSettings(); - } - - /** Returns the object with the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listGoogleAdsLinksSettings(); - } - - /** Returns the object with the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings - getDataSharingSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings(); - } - - /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings - getMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .listMeasurementProtocolSecretsSettings(); - } - - /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings - createMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings - deleteMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .deleteMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings - updateMeasurementProtocolSecretSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateMeasurementProtocolSecretSettings(); - } - - /** Returns the object with the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .acknowledgeUserDataCollectionSettings(); - } - - /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .searchChangeHistoryEventsSettings(); - } - - /** Returns the object with the settings used for calls to createConversionEvent. */ - public UnaryCallSettings - createConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to updateConversionEvent. */ - public UnaryCallSettings - updateConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to getConversionEvent. */ - public UnaryCallSettings - getConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings deleteConversionEventSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConversionEventSettings(); - } - - /** Returns the object with the settings used for calls to listConversionEvents. */ - public PagedCallSettings< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings(); - } - - /** Returns the object with the settings used for calls to createCustomDimension. */ - public UnaryCallSettings - createCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings - updateCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to listCustomDimensions. */ - public PagedCallSettings< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomDimensionsSettings(); - } - - /** Returns the object with the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings archiveCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to getCustomDimension. */ - public UnaryCallSettings - getCustomDimensionSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomDimensionSettings(); - } - - /** Returns the object with the settings used for calls to createCustomMetric. */ - public UnaryCallSettings createCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings updateCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to listCustomMetrics. */ - public PagedCallSettings< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomMetricsSettings(); - } - - /** Returns the object with the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings archiveCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to getCustomMetric. */ - public UnaryCallSettings getCustomMetricSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings(); - } - - /** Returns the object with the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings - getDataRetentionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .getDataRetentionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings - updateDataRetentionSettingsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .updateDataRetentionSettingsSettings(); - } - - /** Returns the object with the settings used for calls to createDataStream. */ - public UnaryCallSettings createDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to deleteDataStream. */ - public UnaryCallSettings deleteDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to updateDataStream. */ - public UnaryCallSettings updateDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to listDataStreams. */ - public PagedCallSettings< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listDataStreamsSettings(); - } - - /** Returns the object with the settings used for calls to getDataStream. */ - public UnaryCallSettings getDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataStreamSettings(); - } - - /** Returns the object with the settings used for calls to runAccessReport. */ - public UnaryCallSettings - runAccessReportSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).runAccessReportSettings(); - } - - public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) - throws IOException { - return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return AnalyticsAdminServiceStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return AnalyticsAdminServiceStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return AnalyticsAdminServiceStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AnalyticsAdminServiceStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AnalyticsAdminServiceSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for AnalyticsAdminServiceSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(AnalyticsAdminServiceStubSettings.newBuilder(clientContext)); - } - - protected Builder(AnalyticsAdminServiceSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(AnalyticsAdminServiceStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(AnalyticsAdminServiceStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(AnalyticsAdminServiceStubSettings.newHttpJsonBuilder()); - } - - public AnalyticsAdminServiceStubSettings.Builder getStubSettingsBuilder() { - return ((AnalyticsAdminServiceStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to getAccount. */ - public UnaryCallSettings.Builder getAccountSettings() { - return getStubSettingsBuilder().getAccountSettings(); - } - - /** Returns the builder for the settings used for calls to listAccounts. */ - public PagedCallSettings.Builder< - ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> - listAccountsSettings() { - return getStubSettingsBuilder().listAccountsSettings(); - } - - /** Returns the builder for the settings used for calls to deleteAccount. */ - public UnaryCallSettings.Builder deleteAccountSettings() { - return getStubSettingsBuilder().deleteAccountSettings(); - } - - /** Returns the builder for the settings used for calls to updateAccount. */ - public UnaryCallSettings.Builder updateAccountSettings() { - return getStubSettingsBuilder().updateAccountSettings(); - } - - /** Returns the builder for the settings used for calls to provisionAccountTicket. */ - public UnaryCallSettings.Builder - provisionAccountTicketSettings() { - return getStubSettingsBuilder().provisionAccountTicketSettings(); - } - - /** Returns the builder for the settings used for calls to listAccountSummaries. */ - public PagedCallSettings.Builder< - ListAccountSummariesRequest, - ListAccountSummariesResponse, - ListAccountSummariesPagedResponse> - listAccountSummariesSettings() { - return getStubSettingsBuilder().listAccountSummariesSettings(); - } - - /** Returns the builder for the settings used for calls to getProperty. */ - public UnaryCallSettings.Builder getPropertySettings() { - return getStubSettingsBuilder().getPropertySettings(); - } - - /** Returns the builder for the settings used for calls to listProperties. */ - public PagedCallSettings.Builder< - ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> - listPropertiesSettings() { - return getStubSettingsBuilder().listPropertiesSettings(); - } - - /** Returns the builder for the settings used for calls to createProperty. */ - public UnaryCallSettings.Builder createPropertySettings() { - return getStubSettingsBuilder().createPropertySettings(); - } - - /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { - return getStubSettingsBuilder().deletePropertySettings(); - } - - /** Returns the builder for the settings used for calls to updateProperty. */ - public UnaryCallSettings.Builder updatePropertySettings() { - return getStubSettingsBuilder().updatePropertySettings(); - } - - /** Returns the builder for the settings used for calls to createFirebaseLink. */ - public UnaryCallSettings.Builder - createFirebaseLinkSettings() { - return getStubSettingsBuilder().createFirebaseLinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ - public UnaryCallSettings.Builder - deleteFirebaseLinkSettings() { - return getStubSettingsBuilder().deleteFirebaseLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listFirebaseLinks. */ - public PagedCallSettings.Builder< - ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> - listFirebaseLinksSettings() { - return getStubSettingsBuilder().listFirebaseLinksSettings(); - } - - /** Returns the builder for the settings used for calls to createGoogleAdsLink. */ - public UnaryCallSettings.Builder - createGoogleAdsLinkSettings() { - return getStubSettingsBuilder().createGoogleAdsLinkSettings(); - } - - /** Returns the builder for the settings used for calls to updateGoogleAdsLink. */ - public UnaryCallSettings.Builder - updateGoogleAdsLinkSettings() { - return getStubSettingsBuilder().updateGoogleAdsLinkSettings(); - } - - /** Returns the builder for the settings used for calls to deleteGoogleAdsLink. */ - public UnaryCallSettings.Builder - deleteGoogleAdsLinkSettings() { - return getStubSettingsBuilder().deleteGoogleAdsLinkSettings(); - } - - /** Returns the builder for the settings used for calls to listGoogleAdsLinks. */ - public PagedCallSettings.Builder< - ListGoogleAdsLinksRequest, ListGoogleAdsLinksResponse, ListGoogleAdsLinksPagedResponse> - listGoogleAdsLinksSettings() { - return getStubSettingsBuilder().listGoogleAdsLinksSettings(); - } - - /** Returns the builder for the settings used for calls to getDataSharingSettings. */ - public UnaryCallSettings.Builder - getDataSharingSettingsSettings() { - return getStubSettingsBuilder().getDataSharingSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - getMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().getMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ - public PagedCallSettings.Builder< - ListMeasurementProtocolSecretsRequest, - ListMeasurementProtocolSecretsResponse, - ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsSettings() { - return getStubSettingsBuilder().listMeasurementProtocolSecretsSettings(); - } - - /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().createMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder - deleteMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().deleteMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ - public UnaryCallSettings.Builder< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretSettings() { - return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings(); - } - - /** Returns the builder for the settings used for calls to acknowledgeUserDataCollection. */ - public UnaryCallSettings.Builder< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionSettings() { - return getStubSettingsBuilder().acknowledgeUserDataCollectionSettings(); - } - - /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ - public PagedCallSettings.Builder< - SearchChangeHistoryEventsRequest, - SearchChangeHistoryEventsResponse, - SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsSettings() { - return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); - } - - /** Returns the builder for the settings used for calls to createConversionEvent. */ - public UnaryCallSettings.Builder - createConversionEventSettings() { - return getStubSettingsBuilder().createConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to updateConversionEvent. */ - public UnaryCallSettings.Builder - updateConversionEventSettings() { - return getStubSettingsBuilder().updateConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to getConversionEvent. */ - public UnaryCallSettings.Builder - getConversionEventSettings() { - return getStubSettingsBuilder().getConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to deleteConversionEvent. */ - public UnaryCallSettings.Builder - deleteConversionEventSettings() { - return getStubSettingsBuilder().deleteConversionEventSettings(); - } - - /** Returns the builder for the settings used for calls to listConversionEvents. */ - public PagedCallSettings.Builder< - ListConversionEventsRequest, - ListConversionEventsResponse, - ListConversionEventsPagedResponse> - listConversionEventsSettings() { - return getStubSettingsBuilder().listConversionEventsSettings(); - } - - /** Returns the builder for the settings used for calls to createCustomDimension. */ - public UnaryCallSettings.Builder - createCustomDimensionSettings() { - return getStubSettingsBuilder().createCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to updateCustomDimension. */ - public UnaryCallSettings.Builder - updateCustomDimensionSettings() { - return getStubSettingsBuilder().updateCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to listCustomDimensions. */ - public PagedCallSettings.Builder< - ListCustomDimensionsRequest, - ListCustomDimensionsResponse, - ListCustomDimensionsPagedResponse> - listCustomDimensionsSettings() { - return getStubSettingsBuilder().listCustomDimensionsSettings(); - } - - /** Returns the builder for the settings used for calls to archiveCustomDimension. */ - public UnaryCallSettings.Builder - archiveCustomDimensionSettings() { - return getStubSettingsBuilder().archiveCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to getCustomDimension. */ - public UnaryCallSettings.Builder - getCustomDimensionSettings() { - return getStubSettingsBuilder().getCustomDimensionSettings(); - } - - /** Returns the builder for the settings used for calls to createCustomMetric. */ - public UnaryCallSettings.Builder - createCustomMetricSettings() { - return getStubSettingsBuilder().createCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to updateCustomMetric. */ - public UnaryCallSettings.Builder - updateCustomMetricSettings() { - return getStubSettingsBuilder().updateCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to listCustomMetrics. */ - public PagedCallSettings.Builder< - ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> - listCustomMetricsSettings() { - return getStubSettingsBuilder().listCustomMetricsSettings(); - } - - /** Returns the builder for the settings used for calls to archiveCustomMetric. */ - public UnaryCallSettings.Builder - archiveCustomMetricSettings() { - return getStubSettingsBuilder().archiveCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to getCustomMetric. */ - public UnaryCallSettings.Builder - getCustomMetricSettings() { - return getStubSettingsBuilder().getCustomMetricSettings(); - } - - /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ - public UnaryCallSettings.Builder - getDataRetentionSettingsSettings() { - return getStubSettingsBuilder().getDataRetentionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ - public UnaryCallSettings.Builder - updateDataRetentionSettingsSettings() { - return getStubSettingsBuilder().updateDataRetentionSettingsSettings(); - } - - /** Returns the builder for the settings used for calls to createDataStream. */ - public UnaryCallSettings.Builder - createDataStreamSettings() { - return getStubSettingsBuilder().createDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to deleteDataStream. */ - public UnaryCallSettings.Builder deleteDataStreamSettings() { - return getStubSettingsBuilder().deleteDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to updateDataStream. */ - public UnaryCallSettings.Builder - updateDataStreamSettings() { - return getStubSettingsBuilder().updateDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to listDataStreams. */ - public PagedCallSettings.Builder< - ListDataStreamsRequest, ListDataStreamsResponse, ListDataStreamsPagedResponse> - listDataStreamsSettings() { - return getStubSettingsBuilder().listDataStreamsSettings(); - } - - /** Returns the builder for the settings used for calls to getDataStream. */ - public UnaryCallSettings.Builder getDataStreamSettings() { - return getStubSettingsBuilder().getDataStreamSettings(); - } - - /** Returns the builder for the settings used for calls to runAccessReport. */ - public UnaryCallSettings.Builder - runAccessReportSettings() { - return getStubSettingsBuilder().runAccessReportSettings(); - } - - @Override - public AnalyticsAdminServiceSettings build() throws IOException { - return new AnalyticsAdminServiceSettings(this); - } - } -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java b/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java deleted file mode 100644 index b7072d94c9fd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/google-analytics-admin/src/main/java/com/google/analytics/admin/v1beta/stub/GrpcAnalyticsAdminServiceStub.java +++ /dev/null @@ -1,1995 +0,0 @@ -/* - * 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. - */ - -package com.google.analytics.admin.v1beta.stub; - -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListAccountsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListDataStreamsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; -import static com.google.analytics.admin.v1beta.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; - -import com.google.analytics.admin.v1beta.Account; -import com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest; -import com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse; -import com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest; -import com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest; -import com.google.analytics.admin.v1beta.ConversionEvent; -import com.google.analytics.admin.v1beta.CreateConversionEventRequest; -import com.google.analytics.admin.v1beta.CreateCustomDimensionRequest; -import com.google.analytics.admin.v1beta.CreateCustomMetricRequest; -import com.google.analytics.admin.v1beta.CreateDataStreamRequest; -import com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest; -import com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1beta.CreatePropertyRequest; -import com.google.analytics.admin.v1beta.CustomDimension; -import com.google.analytics.admin.v1beta.CustomMetric; -import com.google.analytics.admin.v1beta.DataRetentionSettings; -import com.google.analytics.admin.v1beta.DataSharingSettings; -import com.google.analytics.admin.v1beta.DataStream; -import com.google.analytics.admin.v1beta.DeleteAccountRequest; -import com.google.analytics.admin.v1beta.DeleteConversionEventRequest; -import com.google.analytics.admin.v1beta.DeleteDataStreamRequest; -import com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest; -import com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest; -import com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1beta.DeletePropertyRequest; -import com.google.analytics.admin.v1beta.FirebaseLink; -import com.google.analytics.admin.v1beta.GetAccountRequest; -import com.google.analytics.admin.v1beta.GetConversionEventRequest; -import com.google.analytics.admin.v1beta.GetCustomDimensionRequest; -import com.google.analytics.admin.v1beta.GetCustomMetricRequest; -import com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest; -import com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest; -import com.google.analytics.admin.v1beta.GetDataStreamRequest; -import com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1beta.GetPropertyRequest; -import com.google.analytics.admin.v1beta.GoogleAdsLink; -import com.google.analytics.admin.v1beta.ListAccountSummariesRequest; -import com.google.analytics.admin.v1beta.ListAccountSummariesResponse; -import com.google.analytics.admin.v1beta.ListAccountsRequest; -import com.google.analytics.admin.v1beta.ListAccountsResponse; -import com.google.analytics.admin.v1beta.ListConversionEventsRequest; -import com.google.analytics.admin.v1beta.ListConversionEventsResponse; -import com.google.analytics.admin.v1beta.ListCustomDimensionsRequest; -import com.google.analytics.admin.v1beta.ListCustomDimensionsResponse; -import com.google.analytics.admin.v1beta.ListCustomMetricsRequest; -import com.google.analytics.admin.v1beta.ListCustomMetricsResponse; -import com.google.analytics.admin.v1beta.ListDataStreamsRequest; -import com.google.analytics.admin.v1beta.ListDataStreamsResponse; -import com.google.analytics.admin.v1beta.ListFirebaseLinksRequest; -import com.google.analytics.admin.v1beta.ListFirebaseLinksResponse; -import com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest; -import com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse; -import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest; -import com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse; -import com.google.analytics.admin.v1beta.ListPropertiesRequest; -import com.google.analytics.admin.v1beta.ListPropertiesResponse; -import com.google.analytics.admin.v1beta.MeasurementProtocolSecret; -import com.google.analytics.admin.v1beta.Property; -import com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest; -import com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse; -import com.google.analytics.admin.v1beta.RunAccessReportRequest; -import com.google.analytics.admin.v1beta.RunAccessReportResponse; -import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest; -import com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse; -import com.google.analytics.admin.v1beta.UpdateAccountRequest; -import com.google.analytics.admin.v1beta.UpdateConversionEventRequest; -import com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest; -import com.google.analytics.admin.v1beta.UpdateCustomMetricRequest; -import com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest; -import com.google.analytics.admin.v1beta.UpdateDataStreamRequest; -import com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest; -import com.google.analytics.admin.v1beta.UpdatePropertyRequest; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the AnalyticsAdminService service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { - private static final MethodDescriptor getAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetAccount") - .setRequestMarshaller(ProtoUtils.marshaller(GetAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listAccountsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/ListAccounts") - .setRequestMarshaller(ProtoUtils.marshaller(ListAccountsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAccountsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/DeleteAccount") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Account.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ProvisionAccountTicketRequest, ProvisionAccountTicketResponse> - provisionAccountTicketMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ProvisionAccountTicket") - .setRequestMarshaller( - ProtoUtils.marshaller(ProvisionAccountTicketRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ProvisionAccountTicketResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listAccountSummariesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListAccountSummaries") - .setRequestMarshaller( - ProtoUtils.marshaller(ListAccountSummariesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListAccountSummariesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getPropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.admin.v1beta.AnalyticsAdminService/GetProperty") - .setRequestMarshaller(ProtoUtils.marshaller(GetPropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listPropertiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListProperties") - .setRequestMarshaller( - ProtoUtils.marshaller(ListPropertiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListPropertiesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createPropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateProperty") - .setRequestMarshaller( - ProtoUtils.marshaller(CreatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deletePropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteProperty") - .setRequestMarshaller( - ProtoUtils.marshaller(DeletePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updatePropertyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateProperty") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createFirebaseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateFirebaseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteFirebaseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteFirebaseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listFirebaseLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListFirebaseLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListFirebaseLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListFirebaseLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createGoogleAdsLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateGoogleAdsLink") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateGoogleAdsLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateGoogleAdsLink") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(GoogleAdsLink.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteGoogleAdsLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteGoogleAdsLink") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listGoogleAdsLinksMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListGoogleAdsLinks") - .setRequestMarshaller( - ProtoUtils.marshaller(ListGoogleAdsLinksRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListGoogleAdsLinksResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDataSharingSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataSharingSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDataSharingSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - getMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller(GetMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListMeasurementProtocolSecrets") - .setRequestMarshaller( - ProtoUtils.marshaller(ListMeasurementProtocolSecretsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller( - ListMeasurementProtocolSecretsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - createMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller( - CreateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller( - DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> - updateMeasurementProtocolSecretMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateMeasurementProtocolSecret") - .setRequestMarshaller( - ProtoUtils.marshaller( - UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionMethodDescriptor = - MethodDescriptor - . - newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/AcknowledgeUserDataCollection") - .setRequestMarshaller( - ProtoUtils.marshaller(AcknowledgeUserDataCollectionRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AcknowledgeUserDataCollectionResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> - searchChangeHistoryEventsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/SearchChangeHistoryEvents") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchChangeHistoryEventsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(GetConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteConversionEventMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteConversionEvent") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listConversionEventsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListConversionEvents") - .setRequestMarshaller( - ProtoUtils.marshaller(ListConversionEventsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listCustomDimensionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomDimensions") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCustomDimensionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListCustomDimensionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - archiveCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(ArchiveCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getCustomDimensionMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomDimension") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listCustomMetricsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListCustomMetrics") - .setRequestMarshaller( - ProtoUtils.marshaller(ListCustomMetricsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListCustomMetricsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - archiveCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ArchiveCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(ArchiveCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getCustomMetricMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetCustomMetric") - .setRequestMarshaller( - ProtoUtils.marshaller(GetCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDataRetentionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataRetentionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateDataRetentionSettingsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataRetentionSettings") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/CreateDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/DeleteDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/UpdateDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listDataStreamsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/ListDataStreams") - .setRequestMarshaller( - ProtoUtils.marshaller(ListDataStreamsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListDataStreamsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/GetDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(GetDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(DataStream.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - runAccessReportMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1beta.AnalyticsAdminService/RunAccessReport") - .setRequestMarshaller( - ProtoUtils.marshaller(RunAccessReportRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RunAccessReportResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable getAccountCallable; - private final UnaryCallable listAccountsCallable; - private final UnaryCallable - listAccountsPagedCallable; - private final UnaryCallable deleteAccountCallable; - private final UnaryCallable updateAccountCallable; - private final UnaryCallable - provisionAccountTicketCallable; - private final UnaryCallable - listAccountSummariesCallable; - private final UnaryCallable - listAccountSummariesPagedCallable; - private final UnaryCallable getPropertyCallable; - private final UnaryCallable listPropertiesCallable; - private final UnaryCallable - listPropertiesPagedCallable; - private final UnaryCallable createPropertyCallable; - private final UnaryCallable deletePropertyCallable; - private final UnaryCallable updatePropertyCallable; - private final UnaryCallable createFirebaseLinkCallable; - private final UnaryCallable deleteFirebaseLinkCallable; - private final UnaryCallable - listFirebaseLinksCallable; - private final UnaryCallable - listFirebaseLinksPagedCallable; - private final UnaryCallable - createGoogleAdsLinkCallable; - private final UnaryCallable - updateGoogleAdsLinkCallable; - private final UnaryCallable deleteGoogleAdsLinkCallable; - private final UnaryCallable - listGoogleAdsLinksCallable; - private final UnaryCallable - listGoogleAdsLinksPagedCallable; - private final UnaryCallable - getDataSharingSettingsCallable; - private final UnaryCallable - getMeasurementProtocolSecretCallable; - private final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable; - private final UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable; - private final UnaryCallable - createMeasurementProtocolSecretCallable; - private final UnaryCallable - deleteMeasurementProtocolSecretCallable; - private final UnaryCallable - updateMeasurementProtocolSecretCallable; - private final UnaryCallable< - AcknowledgeUserDataCollectionRequest, AcknowledgeUserDataCollectionResponse> - acknowledgeUserDataCollectionCallable; - private final UnaryCallable - searchChangeHistoryEventsCallable; - private final UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable; - private final UnaryCallable - createConversionEventCallable; - private final UnaryCallable - updateConversionEventCallable; - private final UnaryCallable - getConversionEventCallable; - private final UnaryCallable deleteConversionEventCallable; - private final UnaryCallable - listConversionEventsCallable; - private final UnaryCallable - listConversionEventsPagedCallable; - private final UnaryCallable - createCustomDimensionCallable; - private final UnaryCallable - updateCustomDimensionCallable; - private final UnaryCallable - listCustomDimensionsCallable; - private final UnaryCallable - listCustomDimensionsPagedCallable; - private final UnaryCallable archiveCustomDimensionCallable; - private final UnaryCallable - getCustomDimensionCallable; - private final UnaryCallable createCustomMetricCallable; - private final UnaryCallable updateCustomMetricCallable; - private final UnaryCallable - listCustomMetricsCallable; - private final UnaryCallable - listCustomMetricsPagedCallable; - private final UnaryCallable archiveCustomMetricCallable; - private final UnaryCallable getCustomMetricCallable; - private final UnaryCallable - getDataRetentionSettingsCallable; - private final UnaryCallable - updateDataRetentionSettingsCallable; - private final UnaryCallable createDataStreamCallable; - private final UnaryCallable deleteDataStreamCallable; - private final UnaryCallable updateDataStreamCallable; - private final UnaryCallable - listDataStreamsCallable; - private final UnaryCallable - listDataStreamsPagedCallable; - private final UnaryCallable getDataStreamCallable; - private final UnaryCallable - runAccessReportCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcAnalyticsAdminServiceStub create( - AnalyticsAdminServiceStubSettings settings) throws IOException { - return new GrpcAnalyticsAdminServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcAnalyticsAdminServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcAnalyticsAdminServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcAnalyticsAdminServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcAnalyticsAdminServiceStub, using the given settings. This is - * protected so that it is easy to make a subclass, but otherwise, the static factory methods - * should be preferred. - */ - protected GrpcAnalyticsAdminServiceStub( - AnalyticsAdminServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings getAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAccountMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings listAccountsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountsMethodDescriptor) - .build(); - GrpcCallSettings deleteAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteAccountMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateAccountMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("account.name", String.valueOf(request.getAccount().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - provisionAccountTicketTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(provisionAccountTicketMethodDescriptor) - .build(); - GrpcCallSettings - listAccountSummariesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listAccountSummariesMethodDescriptor) - .build(); - GrpcCallSettings getPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPropertyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listPropertiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listPropertiesMethodDescriptor) - .build(); - GrpcCallSettings createPropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPropertyMethodDescriptor) - .build(); - GrpcCallSettings deletePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updatePropertyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updatePropertyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("property.name", String.valueOf(request.getProperty().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listFirebaseLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listFirebaseLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "google_ads_link.name", - String.valueOf(request.getGoogleAdsLink().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteGoogleAdsLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteGoogleAdsLinkMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listGoogleAdsLinksTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listGoogleAdsLinksMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getDataSharingSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataSharingSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listMeasurementProtocolSecretsTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - deleteMeasurementProtocolSecretTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateMeasurementProtocolSecretTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "measurement_protocol_secret.name", - String.valueOf(request.getMeasurementProtocolSecret().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - acknowledgeUserDataCollectionTransportSettings = - GrpcCallSettings - . - newBuilder() - .setMethodDescriptor(acknowledgeUserDataCollectionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("property", String.valueOf(request.getProperty())); - return builder.build(); - }) - .build(); - GrpcCallSettings - searchChangeHistoryEventsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("account", String.valueOf(request.getAccount())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "conversion_event.name", - String.valueOf(request.getConversionEvent().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteConversionEventTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteConversionEventMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listConversionEventsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listConversionEventsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - createCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "custom_dimension.name", - String.valueOf(request.getCustomDimension().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listCustomDimensionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomDimensionsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings archiveCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getCustomDimensionTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomDimensionMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listCustomMetricsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listCustomMetricsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings archiveCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(archiveCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getCustomMetricTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getCustomMetricMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - getDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - updateDataRetentionSettingsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "data_retention_settings.name", - String.valueOf(request.getDataRetentionSettings().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings createDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings updateDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "data_stream.name", String.valueOf(request.getDataStream().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listDataStreamsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listDataStreamsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .build(); - GrpcCallSettings getDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getDataStreamMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - runAccessReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runAccessReportMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("entity", String.valueOf(request.getEntity())); - return builder.build(); - }) - .build(); - - this.getAccountCallable = - callableFactory.createUnaryCallable( - getAccountTransportSettings, settings.getAccountSettings(), clientContext); - this.listAccountsCallable = - callableFactory.createUnaryCallable( - listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); - this.listAccountsPagedCallable = - callableFactory.createPagedCallable( - listAccountsTransportSettings, settings.listAccountsSettings(), clientContext); - this.deleteAccountCallable = - callableFactory.createUnaryCallable( - deleteAccountTransportSettings, settings.deleteAccountSettings(), clientContext); - this.updateAccountCallable = - callableFactory.createUnaryCallable( - updateAccountTransportSettings, settings.updateAccountSettings(), clientContext); - this.provisionAccountTicketCallable = - callableFactory.createUnaryCallable( - provisionAccountTicketTransportSettings, - settings.provisionAccountTicketSettings(), - clientContext); - this.listAccountSummariesCallable = - callableFactory.createUnaryCallable( - listAccountSummariesTransportSettings, - settings.listAccountSummariesSettings(), - clientContext); - this.listAccountSummariesPagedCallable = - callableFactory.createPagedCallable( - listAccountSummariesTransportSettings, - settings.listAccountSummariesSettings(), - clientContext); - this.getPropertyCallable = - callableFactory.createUnaryCallable( - getPropertyTransportSettings, settings.getPropertySettings(), clientContext); - this.listPropertiesCallable = - callableFactory.createUnaryCallable( - listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); - this.listPropertiesPagedCallable = - callableFactory.createPagedCallable( - listPropertiesTransportSettings, settings.listPropertiesSettings(), clientContext); - this.createPropertyCallable = - callableFactory.createUnaryCallable( - createPropertyTransportSettings, settings.createPropertySettings(), clientContext); - this.deletePropertyCallable = - callableFactory.createUnaryCallable( - deletePropertyTransportSettings, settings.deletePropertySettings(), clientContext); - this.updatePropertyCallable = - callableFactory.createUnaryCallable( - updatePropertyTransportSettings, settings.updatePropertySettings(), clientContext); - this.createFirebaseLinkCallable = - callableFactory.createUnaryCallable( - createFirebaseLinkTransportSettings, - settings.createFirebaseLinkSettings(), - clientContext); - this.deleteFirebaseLinkCallable = - callableFactory.createUnaryCallable( - deleteFirebaseLinkTransportSettings, - settings.deleteFirebaseLinkSettings(), - clientContext); - this.listFirebaseLinksCallable = - callableFactory.createUnaryCallable( - listFirebaseLinksTransportSettings, - settings.listFirebaseLinksSettings(), - clientContext); - this.listFirebaseLinksPagedCallable = - callableFactory.createPagedCallable( - listFirebaseLinksTransportSettings, - settings.listFirebaseLinksSettings(), - clientContext); - this.createGoogleAdsLinkCallable = - callableFactory.createUnaryCallable( - createGoogleAdsLinkTransportSettings, - settings.createGoogleAdsLinkSettings(), - clientContext); - this.updateGoogleAdsLinkCallable = - callableFactory.createUnaryCallable( - updateGoogleAdsLinkTransportSettings, - settings.updateGoogleAdsLinkSettings(), - clientContext); - this.deleteGoogleAdsLinkCallable = - callableFactory.createUnaryCallable( - deleteGoogleAdsLinkTransportSettings, - settings.deleteGoogleAdsLinkSettings(), - clientContext); - this.listGoogleAdsLinksCallable = - callableFactory.createUnaryCallable( - listGoogleAdsLinksTransportSettings, - settings.listGoogleAdsLinksSettings(), - clientContext); - this.listGoogleAdsLinksPagedCallable = - callableFactory.createPagedCallable( - listGoogleAdsLinksTransportSettings, - settings.listGoogleAdsLinksSettings(), - clientContext); - this.getDataSharingSettingsCallable = - callableFactory.createUnaryCallable( - getDataSharingSettingsTransportSettings, - settings.getDataSharingSettingsSettings(), - clientContext); - this.getMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - getMeasurementProtocolSecretTransportSettings, - settings.getMeasurementProtocolSecretSettings(), - clientContext); - this.listMeasurementProtocolSecretsCallable = - callableFactory.createUnaryCallable( - listMeasurementProtocolSecretsTransportSettings, - settings.listMeasurementProtocolSecretsSettings(), - clientContext); - this.listMeasurementProtocolSecretsPagedCallable = - callableFactory.createPagedCallable( - listMeasurementProtocolSecretsTransportSettings, - settings.listMeasurementProtocolSecretsSettings(), - clientContext); - this.createMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - createMeasurementProtocolSecretTransportSettings, - settings.createMeasurementProtocolSecretSettings(), - clientContext); - this.deleteMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - deleteMeasurementProtocolSecretTransportSettings, - settings.deleteMeasurementProtocolSecretSettings(), - clientContext); - this.updateMeasurementProtocolSecretCallable = - callableFactory.createUnaryCallable( - updateMeasurementProtocolSecretTransportSettings, - settings.updateMeasurementProtocolSecretSettings(), - clientContext); - this.acknowledgeUserDataCollectionCallable = - callableFactory.createUnaryCallable( - acknowledgeUserDataCollectionTransportSettings, - settings.acknowledgeUserDataCollectionSettings(), - clientContext); - this.searchChangeHistoryEventsCallable = - callableFactory.createUnaryCallable( - searchChangeHistoryEventsTransportSettings, - settings.searchChangeHistoryEventsSettings(), - clientContext); - this.searchChangeHistoryEventsPagedCallable = - callableFactory.createPagedCallable( - searchChangeHistoryEventsTransportSettings, - settings.searchChangeHistoryEventsSettings(), - clientContext); - this.createConversionEventCallable = - callableFactory.createUnaryCallable( - createConversionEventTransportSettings, - settings.createConversionEventSettings(), - clientContext); - this.updateConversionEventCallable = - callableFactory.createUnaryCallable( - updateConversionEventTransportSettings, - settings.updateConversionEventSettings(), - clientContext); - this.getConversionEventCallable = - callableFactory.createUnaryCallable( - getConversionEventTransportSettings, - settings.getConversionEventSettings(), - clientContext); - this.deleteConversionEventCallable = - callableFactory.createUnaryCallable( - deleteConversionEventTransportSettings, - settings.deleteConversionEventSettings(), - clientContext); - this.listConversionEventsCallable = - callableFactory.createUnaryCallable( - listConversionEventsTransportSettings, - settings.listConversionEventsSettings(), - clientContext); - this.listConversionEventsPagedCallable = - callableFactory.createPagedCallable( - listConversionEventsTransportSettings, - settings.listConversionEventsSettings(), - clientContext); - this.createCustomDimensionCallable = - callableFactory.createUnaryCallable( - createCustomDimensionTransportSettings, - settings.createCustomDimensionSettings(), - clientContext); - this.updateCustomDimensionCallable = - callableFactory.createUnaryCallable( - updateCustomDimensionTransportSettings, - settings.updateCustomDimensionSettings(), - clientContext); - this.listCustomDimensionsCallable = - callableFactory.createUnaryCallable( - listCustomDimensionsTransportSettings, - settings.listCustomDimensionsSettings(), - clientContext); - this.listCustomDimensionsPagedCallable = - callableFactory.createPagedCallable( - listCustomDimensionsTransportSettings, - settings.listCustomDimensionsSettings(), - clientContext); - this.archiveCustomDimensionCallable = - callableFactory.createUnaryCallable( - archiveCustomDimensionTransportSettings, - settings.archiveCustomDimensionSettings(), - clientContext); - this.getCustomDimensionCallable = - callableFactory.createUnaryCallable( - getCustomDimensionTransportSettings, - settings.getCustomDimensionSettings(), - clientContext); - this.createCustomMetricCallable = - callableFactory.createUnaryCallable( - createCustomMetricTransportSettings, - settings.createCustomMetricSettings(), - clientContext); - this.updateCustomMetricCallable = - callableFactory.createUnaryCallable( - updateCustomMetricTransportSettings, - settings.updateCustomMetricSettings(), - clientContext); - this.listCustomMetricsCallable = - callableFactory.createUnaryCallable( - listCustomMetricsTransportSettings, - settings.listCustomMetricsSettings(), - clientContext); - this.listCustomMetricsPagedCallable = - callableFactory.createPagedCallable( - listCustomMetricsTransportSettings, - settings.listCustomMetricsSettings(), - clientContext); - this.archiveCustomMetricCallable = - callableFactory.createUnaryCallable( - archiveCustomMetricTransportSettings, - settings.archiveCustomMetricSettings(), - clientContext); - this.getCustomMetricCallable = - callableFactory.createUnaryCallable( - getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext); - this.getDataRetentionSettingsCallable = - callableFactory.createUnaryCallable( - getDataRetentionSettingsTransportSettings, - settings.getDataRetentionSettingsSettings(), - clientContext); - this.updateDataRetentionSettingsCallable = - callableFactory.createUnaryCallable( - updateDataRetentionSettingsTransportSettings, - settings.updateDataRetentionSettingsSettings(), - clientContext); - this.createDataStreamCallable = - callableFactory.createUnaryCallable( - createDataStreamTransportSettings, settings.createDataStreamSettings(), clientContext); - this.deleteDataStreamCallable = - callableFactory.createUnaryCallable( - deleteDataStreamTransportSettings, settings.deleteDataStreamSettings(), clientContext); - this.updateDataStreamCallable = - callableFactory.createUnaryCallable( - updateDataStreamTransportSettings, settings.updateDataStreamSettings(), clientContext); - this.listDataStreamsCallable = - callableFactory.createUnaryCallable( - listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); - this.listDataStreamsPagedCallable = - callableFactory.createPagedCallable( - listDataStreamsTransportSettings, settings.listDataStreamsSettings(), clientContext); - this.getDataStreamCallable = - callableFactory.createUnaryCallable( - getDataStreamTransportSettings, settings.getDataStreamSettings(), clientContext); - this.runAccessReportCallable = - callableFactory.createUnaryCallable( - runAccessReportTransportSettings, settings.runAccessReportSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable getAccountCallable() { - return getAccountCallable; - } - - @Override - public UnaryCallable listAccountsCallable() { - return listAccountsCallable; - } - - @Override - public UnaryCallable listAccountsPagedCallable() { - return listAccountsPagedCallable; - } - - @Override - public UnaryCallable deleteAccountCallable() { - return deleteAccountCallable; - } - - @Override - public UnaryCallable updateAccountCallable() { - return updateAccountCallable; - } - - @Override - public UnaryCallable - provisionAccountTicketCallable() { - return provisionAccountTicketCallable; - } - - @Override - public UnaryCallable - listAccountSummariesCallable() { - return listAccountSummariesCallable; - } - - @Override - public UnaryCallable - listAccountSummariesPagedCallable() { - return listAccountSummariesPagedCallable; - } - - @Override - public UnaryCallable getPropertyCallable() { - return getPropertyCallable; - } - - @Override - public UnaryCallable listPropertiesCallable() { - return listPropertiesCallable; - } - - @Override - public UnaryCallable - listPropertiesPagedCallable() { - return listPropertiesPagedCallable; - } - - @Override - public UnaryCallable createPropertyCallable() { - return createPropertyCallable; - } - - @Override - public UnaryCallable deletePropertyCallable() { - return deletePropertyCallable; - } - - @Override - public UnaryCallable updatePropertyCallable() { - return updatePropertyCallable; - } - - @Override - public UnaryCallable createFirebaseLinkCallable() { - return createFirebaseLinkCallable; - } - - @Override - public UnaryCallable deleteFirebaseLinkCallable() { - return deleteFirebaseLinkCallable; - } - - @Override - public UnaryCallable - listFirebaseLinksCallable() { - return listFirebaseLinksCallable; - } - - @Override - public UnaryCallable - listFirebaseLinksPagedCallable() { - return listFirebaseLinksPagedCallable; - } - - @Override - public UnaryCallable createGoogleAdsLinkCallable() { - return createGoogleAdsLinkCallable; - } - - @Override - public UnaryCallable updateGoogleAdsLinkCallable() { - return updateGoogleAdsLinkCallable; - } - - @Override - public UnaryCallable deleteGoogleAdsLinkCallable() { - return deleteGoogleAdsLinkCallable; - } - - @Override - public UnaryCallable - listGoogleAdsLinksCallable() { - return listGoogleAdsLinksCallable; - } - - @Override - public UnaryCallable - listGoogleAdsLinksPagedCallable() { - return listGoogleAdsLinksPagedCallable; - } - - @Override - public UnaryCallable - getDataSharingSettingsCallable() { - return getDataSharingSettingsCallable; - } - - @Override - public UnaryCallable - getMeasurementProtocolSecretCallable() { - return getMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> - listMeasurementProtocolSecretsCallable() { - return listMeasurementProtocolSecretsCallable; - } - - @Override - public UnaryCallable< - ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> - listMeasurementProtocolSecretsPagedCallable() { - return listMeasurementProtocolSecretsPagedCallable; - } - - @Override - public UnaryCallable - createMeasurementProtocolSecretCallable() { - return createMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable - deleteMeasurementProtocolSecretCallable() { - return deleteMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable - updateMeasurementProtocolSecretCallable() { - return updateMeasurementProtocolSecretCallable; - } - - @Override - public UnaryCallable - acknowledgeUserDataCollectionCallable() { - return acknowledgeUserDataCollectionCallable; - } - - @Override - public UnaryCallable - searchChangeHistoryEventsCallable() { - return searchChangeHistoryEventsCallable; - } - - @Override - public UnaryCallable - searchChangeHistoryEventsPagedCallable() { - return searchChangeHistoryEventsPagedCallable; - } - - @Override - public UnaryCallable - createConversionEventCallable() { - return createConversionEventCallable; - } - - @Override - public UnaryCallable - updateConversionEventCallable() { - return updateConversionEventCallable; - } - - @Override - public UnaryCallable getConversionEventCallable() { - return getConversionEventCallable; - } - - @Override - public UnaryCallable deleteConversionEventCallable() { - return deleteConversionEventCallable; - } - - @Override - public UnaryCallable - listConversionEventsCallable() { - return listConversionEventsCallable; - } - - @Override - public UnaryCallable - listConversionEventsPagedCallable() { - return listConversionEventsPagedCallable; - } - - @Override - public UnaryCallable - createCustomDimensionCallable() { - return createCustomDimensionCallable; - } - - @Override - public UnaryCallable - updateCustomDimensionCallable() { - return updateCustomDimensionCallable; - } - - @Override - public UnaryCallable - listCustomDimensionsCallable() { - return listCustomDimensionsCallable; - } - - @Override - public UnaryCallable - listCustomDimensionsPagedCallable() { - return listCustomDimensionsPagedCallable; - } - - @Override - public UnaryCallable archiveCustomDimensionCallable() { - return archiveCustomDimensionCallable; - } - - @Override - public UnaryCallable getCustomDimensionCallable() { - return getCustomDimensionCallable; - } - - @Override - public UnaryCallable createCustomMetricCallable() { - return createCustomMetricCallable; - } - - @Override - public UnaryCallable updateCustomMetricCallable() { - return updateCustomMetricCallable; - } - - @Override - public UnaryCallable - listCustomMetricsCallable() { - return listCustomMetricsCallable; - } - - @Override - public UnaryCallable - listCustomMetricsPagedCallable() { - return listCustomMetricsPagedCallable; - } - - @Override - public UnaryCallable archiveCustomMetricCallable() { - return archiveCustomMetricCallable; - } - - @Override - public UnaryCallable getCustomMetricCallable() { - return getCustomMetricCallable; - } - - @Override - public UnaryCallable - getDataRetentionSettingsCallable() { - return getDataRetentionSettingsCallable; - } - - @Override - public UnaryCallable - updateDataRetentionSettingsCallable() { - return updateDataRetentionSettingsCallable; - } - - @Override - public UnaryCallable createDataStreamCallable() { - return createDataStreamCallable; - } - - @Override - public UnaryCallable deleteDataStreamCallable() { - return deleteDataStreamCallable; - } - - @Override - public UnaryCallable updateDataStreamCallable() { - return updateDataStreamCallable; - } - - @Override - public UnaryCallable listDataStreamsCallable() { - return listDataStreamsCallable; - } - - @Override - public UnaryCallable - listDataStreamsPagedCallable() { - return listDataStreamsPagedCallable; - } - - @Override - public UnaryCallable getDataStreamCallable() { - return getDataStreamCallable; - } - - @Override - public UnaryCallable runAccessReportCallable() { - return runAccessReportCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java b/owl-bot-staging/java-analytics-admin/v1beta/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java deleted file mode 100644 index 94b90a4fbe95..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/grpc-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminServiceGrpc.java +++ /dev/null @@ -1,4611 +0,0 @@ -package com.google.analytics.admin.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *

- * Service Interface for the Analytics Admin API (GA4).
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/admin/v1beta/analytics_admin.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AnalyticsAdminServiceGrpc { - - private AnalyticsAdminServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.analytics.admin.v1beta.AnalyticsAdminService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getGetAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAccount", - requestType = com.google.analytics.admin.v1beta.GetAccountRequest.class, - responseType = com.google.analytics.admin.v1beta.Account.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetAccountMethod() { - io.grpc.MethodDescriptor getGetAccountMethod; - if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetAccountMethod = AnalyticsAdminServiceGrpc.getGetAccountMethod) == null) { - AnalyticsAdminServiceGrpc.getGetAccountMethod = getGetAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.Account.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetAccount")) - .build(); - } - } - } - return getGetAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAccountsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAccounts", - requestType = com.google.analytics.admin.v1beta.ListAccountsRequest.class, - responseType = com.google.analytics.admin.v1beta.ListAccountsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAccountsMethod() { - io.grpc.MethodDescriptor getListAccountsMethod; - if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAccountsMethod = AnalyticsAdminServiceGrpc.getListAccountsMethod) == null) { - AnalyticsAdminServiceGrpc.getListAccountsMethod = getListAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListAccountsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListAccountsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccounts")) - .build(); - } - } - } - return getListAccountsMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteAccount", - requestType = com.google.analytics.admin.v1beta.DeleteAccountRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteAccountMethod() { - io.grpc.MethodDescriptor getDeleteAccountMethod; - if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteAccountMethod = AnalyticsAdminServiceGrpc.getDeleteAccountMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteAccountMethod = getDeleteAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DeleteAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteAccount")) - .build(); - } - } - } - return getDeleteAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateAccount", - requestType = com.google.analytics.admin.v1beta.UpdateAccountRequest.class, - responseType = com.google.analytics.admin.v1beta.Account.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateAccountMethod() { - io.grpc.MethodDescriptor getUpdateAccountMethod; - if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateAccountMethod = AnalyticsAdminServiceGrpc.getUpdateAccountMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateAccountMethod = getUpdateAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.Account.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateAccount")) - .build(); - } - } - } - return getUpdateAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getProvisionAccountTicketMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ProvisionAccountTicket", - requestType = com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.class, - responseType = com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getProvisionAccountTicketMethod() { - io.grpc.MethodDescriptor getProvisionAccountTicketMethod; - if ((getProvisionAccountTicketMethod = AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getProvisionAccountTicketMethod = AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod) == null) { - AnalyticsAdminServiceGrpc.getProvisionAccountTicketMethod = getProvisionAccountTicketMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProvisionAccountTicket")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ProvisionAccountTicket")) - .build(); - } - } - } - return getProvisionAccountTicketMethod; - } - - private static volatile io.grpc.MethodDescriptor getListAccountSummariesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListAccountSummaries", - requestType = com.google.analytics.admin.v1beta.ListAccountSummariesRequest.class, - responseType = com.google.analytics.admin.v1beta.ListAccountSummariesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListAccountSummariesMethod() { - io.grpc.MethodDescriptor getListAccountSummariesMethod; - if ((getListAccountSummariesMethod = AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListAccountSummariesMethod = AnalyticsAdminServiceGrpc.getListAccountSummariesMethod) == null) { - AnalyticsAdminServiceGrpc.getListAccountSummariesMethod = getListAccountSummariesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccountSummaries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListAccountSummariesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListAccountSummariesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListAccountSummaries")) - .build(); - } - } - } - return getListAccountSummariesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetPropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetProperty", - requestType = com.google.analytics.admin.v1beta.GetPropertyRequest.class, - responseType = com.google.analytics.admin.v1beta.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetPropertyMethod() { - io.grpc.MethodDescriptor getGetPropertyMethod; - if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetPropertyMethod = AnalyticsAdminServiceGrpc.getGetPropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getGetPropertyMethod = getGetPropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetPropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetProperty")) - .build(); - } - } - } - return getGetPropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getListPropertiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListProperties", - requestType = com.google.analytics.admin.v1beta.ListPropertiesRequest.class, - responseType = com.google.analytics.admin.v1beta.ListPropertiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListPropertiesMethod() { - io.grpc.MethodDescriptor getListPropertiesMethod; - if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListPropertiesMethod = AnalyticsAdminServiceGrpc.getListPropertiesMethod) == null) { - AnalyticsAdminServiceGrpc.getListPropertiesMethod = getListPropertiesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListProperties")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListPropertiesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListPropertiesResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListProperties")) - .build(); - } - } - } - return getListPropertiesMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreatePropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateProperty", - requestType = com.google.analytics.admin.v1beta.CreatePropertyRequest.class, - responseType = com.google.analytics.admin.v1beta.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreatePropertyMethod() { - io.grpc.MethodDescriptor getCreatePropertyMethod; - if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreatePropertyMethod = AnalyticsAdminServiceGrpc.getCreatePropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getCreatePropertyMethod = getCreatePropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateProperty")) - .build(); - } - } - } - return getCreatePropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeletePropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteProperty", - requestType = com.google.analytics.admin.v1beta.DeletePropertyRequest.class, - responseType = com.google.analytics.admin.v1beta.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeletePropertyMethod() { - io.grpc.MethodDescriptor getDeletePropertyMethod; - if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getDeletePropertyMethod = getDeletePropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DeletePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteProperty")) - .build(); - } - } - } - return getDeletePropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdatePropertyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateProperty", - requestType = com.google.analytics.admin.v1beta.UpdatePropertyRequest.class, - responseType = com.google.analytics.admin.v1beta.Property.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdatePropertyMethod() { - io.grpc.MethodDescriptor getUpdatePropertyMethod; - if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdatePropertyMethod = AnalyticsAdminServiceGrpc.getUpdatePropertyMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdatePropertyMethod = getUpdatePropertyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateProperty")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdatePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.Property.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateProperty")) - .build(); - } - } - } - return getUpdatePropertyMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateFirebaseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateFirebaseLink", - requestType = com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.class, - responseType = com.google.analytics.admin.v1beta.FirebaseLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateFirebaseLinkMethod() { - io.grpc.MethodDescriptor getCreateFirebaseLinkMethod; - if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateFirebaseLinkMethod = getCreateFirebaseLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateFirebaseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateFirebaseLink")) - .build(); - } - } - } - return getCreateFirebaseLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteFirebaseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteFirebaseLink", - requestType = com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteFirebaseLinkMethod() { - io.grpc.MethodDescriptor getDeleteFirebaseLinkMethod; - if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteFirebaseLinkMethod = getDeleteFirebaseLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteFirebaseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteFirebaseLink")) - .build(); - } - } - } - return getDeleteFirebaseLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListFirebaseLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListFirebaseLinks", - requestType = com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.class, - responseType = com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListFirebaseLinksMethod() { - io.grpc.MethodDescriptor getListFirebaseLinksMethod; - if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListFirebaseLinksMethod = AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListFirebaseLinksMethod = getListFirebaseLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListFirebaseLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListFirebaseLinks")) - .build(); - } - } - } - return getListFirebaseLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateGoogleAdsLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateGoogleAdsLink", - requestType = com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.class, - responseType = com.google.analytics.admin.v1beta.GoogleAdsLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateGoogleAdsLinkMethod() { - io.grpc.MethodDescriptor getCreateGoogleAdsLinkMethod; - if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateGoogleAdsLinkMethod = getCreateGoogleAdsLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateGoogleAdsLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateGoogleAdsLink")) - .build(); - } - } - } - return getCreateGoogleAdsLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateGoogleAdsLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleAdsLink", - requestType = com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.class, - responseType = com.google.analytics.admin.v1beta.GoogleAdsLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateGoogleAdsLinkMethod() { - io.grpc.MethodDescriptor getUpdateGoogleAdsLinkMethod; - if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateGoogleAdsLinkMethod = getUpdateGoogleAdsLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateGoogleAdsLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateGoogleAdsLink")) - .build(); - } - } - } - return getUpdateGoogleAdsLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteGoogleAdsLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteGoogleAdsLink", - requestType = com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteGoogleAdsLinkMethod() { - io.grpc.MethodDescriptor getDeleteGoogleAdsLinkMethod; - if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteGoogleAdsLinkMethod = AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteGoogleAdsLinkMethod = getDeleteGoogleAdsLinkMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteGoogleAdsLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteGoogleAdsLink")) - .build(); - } - } - } - return getDeleteGoogleAdsLinkMethod; - } - - private static volatile io.grpc.MethodDescriptor getListGoogleAdsLinksMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListGoogleAdsLinks", - requestType = com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.class, - responseType = com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListGoogleAdsLinksMethod() { - io.grpc.MethodDescriptor getListGoogleAdsLinksMethod; - if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListGoogleAdsLinksMethod = AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getListGoogleAdsLinksMethod = getListGoogleAdsLinksMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListGoogleAdsLinks")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListGoogleAdsLinks")) - .build(); - } - } - } - return getListGoogleAdsLinksMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataSharingSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataSharingSettings", - requestType = com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.class, - responseType = com.google.analytics.admin.v1beta.DataSharingSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataSharingSettingsMethod() { - io.grpc.MethodDescriptor getGetDataSharingSettingsMethod; - if ((getGetDataSharingSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDataSharingSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDataSharingSettingsMethod = getGetDataSharingSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataSharingSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DataSharingSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataSharingSettings")) - .build(); - } - } - } - return getGetDataSharingSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.class, - responseType = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getGetMeasurementProtocolSecretMethod; - if ((getGetMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod = getGetMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetMeasurementProtocolSecret")) - .build(); - } - } - } - return getGetMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getListMeasurementProtocolSecretsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListMeasurementProtocolSecrets", - requestType = com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.class, - responseType = com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListMeasurementProtocolSecretsMethod() { - io.grpc.MethodDescriptor getListMeasurementProtocolSecretsMethod; - if ((getListMeasurementProtocolSecretsMethod = AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListMeasurementProtocolSecretsMethod = AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) == null) { - AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod = getListMeasurementProtocolSecretsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListMeasurementProtocolSecrets")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListMeasurementProtocolSecrets")) - .build(); - } - } - } - return getListMeasurementProtocolSecretsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.class, - responseType = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getCreateMeasurementProtocolSecretMethod; - if ((getCreateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod = getCreateMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateMeasurementProtocolSecret")) - .build(); - } - } - } - return getCreateMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getDeleteMeasurementProtocolSecretMethod; - if ((getDeleteMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod = getDeleteMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteMeasurementProtocolSecret")) - .build(); - } - } - } - return getDeleteMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateMeasurementProtocolSecretMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateMeasurementProtocolSecret", - requestType = com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.class, - responseType = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateMeasurementProtocolSecretMethod() { - io.grpc.MethodDescriptor getUpdateMeasurementProtocolSecretMethod; - if ((getUpdateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateMeasurementProtocolSecretMethod = AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod = getUpdateMeasurementProtocolSecretMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateMeasurementProtocolSecret")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateMeasurementProtocolSecret")) - .build(); - } - } - } - return getUpdateMeasurementProtocolSecretMethod; - } - - private static volatile io.grpc.MethodDescriptor getAcknowledgeUserDataCollectionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "AcknowledgeUserDataCollection", - requestType = com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.class, - responseType = com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getAcknowledgeUserDataCollectionMethod() { - io.grpc.MethodDescriptor getAcknowledgeUserDataCollectionMethod; - if ((getAcknowledgeUserDataCollectionMethod = AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getAcknowledgeUserDataCollectionMethod = AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod) == null) { - AnalyticsAdminServiceGrpc.getAcknowledgeUserDataCollectionMethod = getAcknowledgeUserDataCollectionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "AcknowledgeUserDataCollection")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("AcknowledgeUserDataCollection")) - .build(); - } - } - } - return getAcknowledgeUserDataCollectionMethod; - } - - private static volatile io.grpc.MethodDescriptor getSearchChangeHistoryEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchChangeHistoryEvents", - requestType = com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.class, - responseType = com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSearchChangeHistoryEventsMethod() { - io.grpc.MethodDescriptor getSearchChangeHistoryEventsMethod; - if ((getSearchChangeHistoryEventsMethod = AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getSearchChangeHistoryEventsMethod = AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) == null) { - AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod = getSearchChangeHistoryEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchChangeHistoryEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("SearchChangeHistoryEvents")) - .build(); - } - } - } - return getSearchChangeHistoryEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateConversionEvent", - requestType = com.google.analytics.admin.v1beta.CreateConversionEventRequest.class, - responseType = com.google.analytics.admin.v1beta.ConversionEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateConversionEventMethod() { - io.grpc.MethodDescriptor getCreateConversionEventMethod; - if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateConversionEventMethod = getCreateConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateConversionEvent")) - .build(); - } - } - } - return getCreateConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateConversionEvent", - requestType = com.google.analytics.admin.v1beta.UpdateConversionEventRequest.class, - responseType = com.google.analytics.admin.v1beta.ConversionEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateConversionEventMethod() { - io.grpc.MethodDescriptor getUpdateConversionEventMethod; - if ((getUpdateConversionEventMethod = AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateConversionEventMethod = AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateConversionEventMethod = getUpdateConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateConversionEvent")) - .build(); - } - } - } - return getUpdateConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetConversionEvent", - requestType = com.google.analytics.admin.v1beta.GetConversionEventRequest.class, - responseType = com.google.analytics.admin.v1beta.ConversionEvent.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetConversionEventMethod() { - io.grpc.MethodDescriptor getGetConversionEventMethod; - if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getGetConversionEventMethod = getGetConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetConversionEvent")) - .build(); - } - } - } - return getGetConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteConversionEventMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteConversionEvent", - requestType = com.google.analytics.admin.v1beta.DeleteConversionEventRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteConversionEventMethod() { - io.grpc.MethodDescriptor getDeleteConversionEventMethod; - if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod = getDeleteConversionEventMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteConversionEvent")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DeleteConversionEventRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteConversionEvent")) - .build(); - } - } - } - return getDeleteConversionEventMethod; - } - - private static volatile io.grpc.MethodDescriptor getListConversionEventsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListConversionEvents", - requestType = com.google.analytics.admin.v1beta.ListConversionEventsRequest.class, - responseType = com.google.analytics.admin.v1beta.ListConversionEventsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConversionEventsMethod() { - io.grpc.MethodDescriptor getListConversionEventsMethod; - if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) == null) { - AnalyticsAdminServiceGrpc.getListConversionEventsMethod = getListConversionEventsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConversionEvents")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListConversionEventsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListConversionEventsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListConversionEvents")) - .build(); - } - } - } - return getListConversionEventsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomDimension", - requestType = com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1beta.CustomDimension.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomDimensionMethod() { - io.grpc.MethodDescriptor getCreateCustomDimensionMethod; - if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod = getCreateCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomDimension")) - .build(); - } - } - } - return getCreateCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomDimension", - requestType = com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1beta.CustomDimension.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomDimensionMethod() { - io.grpc.MethodDescriptor getUpdateCustomDimensionMethod; - if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod = getUpdateCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomDimension")) - .build(); - } - } - } - return getUpdateCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomDimensionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomDimensions", - requestType = com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.class, - responseType = com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomDimensionsMethod() { - io.grpc.MethodDescriptor getListCustomDimensionsMethod; - if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) == null) { - AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod = getListCustomDimensionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomDimensions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomDimensions")) - .build(); - } - } - } - return getListCustomDimensionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getArchiveCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomDimension", - requestType = com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getArchiveCustomDimensionMethod() { - io.grpc.MethodDescriptor getArchiveCustomDimensionMethod; - if ((getArchiveCustomDimensionMethod = AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getArchiveCustomDimensionMethod = AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod = getArchiveCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ArchiveCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomDimension")) - .build(); - } - } - } - return getArchiveCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomDimensionMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomDimension", - requestType = com.google.analytics.admin.v1beta.GetCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1beta.CustomDimension.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomDimensionMethod() { - io.grpc.MethodDescriptor getGetCustomDimensionMethod; - if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) == null) { - AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod = getGetCustomDimensionMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomDimension")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetCustomDimensionRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomDimension")) - .build(); - } - } - } - return getGetCustomDimensionMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomMetric", - requestType = com.google.analytics.admin.v1beta.CreateCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1beta.CustomMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateCustomMetricMethod() { - io.grpc.MethodDescriptor getCreateCustomMetricMethod; - if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod = getCreateCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomMetric")) - .build(); - } - } - } - return getCreateCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomMetric", - requestType = com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1beta.CustomMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateCustomMetricMethod() { - io.grpc.MethodDescriptor getUpdateCustomMetricMethod; - if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod = getUpdateCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomMetric")) - .build(); - } - } - } - return getUpdateCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getListCustomMetricsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomMetrics", - requestType = com.google.analytics.admin.v1beta.ListCustomMetricsRequest.class, - responseType = com.google.analytics.admin.v1beta.ListCustomMetricsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListCustomMetricsMethod() { - io.grpc.MethodDescriptor getListCustomMetricsMethod; - if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) == null) { - AnalyticsAdminServiceGrpc.getListCustomMetricsMethod = getListCustomMetricsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomMetrics")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListCustomMetricsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListCustomMetricsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomMetrics")) - .build(); - } - } - } - return getListCustomMetricsMethod; - } - - private static volatile io.grpc.MethodDescriptor getArchiveCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomMetric", - requestType = com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getArchiveCustomMetricMethod() { - io.grpc.MethodDescriptor getArchiveCustomMetricMethod; - if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod = getArchiveCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ArchiveCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomMetric")) - .build(); - } - } - } - return getArchiveCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetCustomMetricMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomMetric", - requestType = com.google.analytics.admin.v1beta.GetCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1beta.CustomMetric.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetCustomMetricMethod() { - io.grpc.MethodDescriptor getGetCustomMetricMethod; - if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) { - AnalyticsAdminServiceGrpc.getGetCustomMetricMethod = getGetCustomMetricMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomMetric")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetCustomMetricRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomMetric")) - .build(); - } - } - } - return getGetCustomMetricMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataRetentionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataRetentionSettings", - requestType = com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.class, - responseType = com.google.analytics.admin.v1beta.DataRetentionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataRetentionSettingsMethod() { - io.grpc.MethodDescriptor getGetDataRetentionSettingsMethod; - if ((getGetDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod = getGetDataRetentionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataRetentionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataRetentionSettings")) - .build(); - } - } - } - return getGetDataRetentionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDataRetentionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataRetentionSettings", - requestType = com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.class, - responseType = com.google.analytics.admin.v1beta.DataRetentionSettings.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDataRetentionSettingsMethod() { - io.grpc.MethodDescriptor getUpdateDataRetentionSettingsMethod; - if ((getUpdateDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateDataRetentionSettingsMethod = AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod = getUpdateDataRetentionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataRetentionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataRetentionSettings")) - .build(); - } - } - } - return getUpdateDataRetentionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateDataStream", - requestType = com.google.analytics.admin.v1beta.CreateDataStreamRequest.class, - responseType = com.google.analytics.admin.v1beta.DataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateDataStreamMethod() { - io.grpc.MethodDescriptor getCreateDataStreamMethod; - if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateDataStreamMethod = AnalyticsAdminServiceGrpc.getCreateDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateDataStreamMethod = getCreateDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.CreateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DataStream.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("CreateDataStream")) - .build(); - } - } - } - return getCreateDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteDataStream", - requestType = com.google.analytics.admin.v1beta.DeleteDataStreamRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteDataStreamMethod() { - io.grpc.MethodDescriptor getDeleteDataStreamMethod; - if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getDeleteDataStreamMethod = AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getDeleteDataStreamMethod = getDeleteDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DeleteDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteDataStream")) - .build(); - } - } - } - return getDeleteDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateDataStream", - requestType = com.google.analytics.admin.v1beta.UpdateDataStreamRequest.class, - responseType = com.google.analytics.admin.v1beta.DataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateDataStreamMethod() { - io.grpc.MethodDescriptor getUpdateDataStreamMethod; - if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateDataStreamMethod = AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateDataStreamMethod = getUpdateDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.UpdateDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DataStream.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateDataStream")) - .build(); - } - } - } - return getUpdateDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getListDataStreamsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListDataStreams", - requestType = com.google.analytics.admin.v1beta.ListDataStreamsRequest.class, - responseType = com.google.analytics.admin.v1beta.ListDataStreamsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListDataStreamsMethod() { - io.grpc.MethodDescriptor getListDataStreamsMethod; - if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListDataStreamsMethod = AnalyticsAdminServiceGrpc.getListDataStreamsMethod) == null) { - AnalyticsAdminServiceGrpc.getListDataStreamsMethod = getListDataStreamsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDataStreams")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListDataStreamsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.ListDataStreamsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("ListDataStreams")) - .build(); - } - } - } - return getListDataStreamsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetDataStream", - requestType = com.google.analytics.admin.v1beta.GetDataStreamRequest.class, - responseType = com.google.analytics.admin.v1beta.DataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetDataStreamMethod() { - io.grpc.MethodDescriptor getGetDataStreamMethod; - if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetDataStreamMethod = AnalyticsAdminServiceGrpc.getGetDataStreamMethod) == null) { - AnalyticsAdminServiceGrpc.getGetDataStreamMethod = getGetDataStreamMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.GetDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.DataStream.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("GetDataStream")) - .build(); - } - } - } - return getGetDataStreamMethod; - } - - private static volatile io.grpc.MethodDescriptor getRunAccessReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunAccessReport", - requestType = com.google.analytics.admin.v1beta.RunAccessReportRequest.class, - responseType = com.google.analytics.admin.v1beta.RunAccessReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getRunAccessReportMethod() { - io.grpc.MethodDescriptor getRunAccessReportMethod; - if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getRunAccessReportMethod = AnalyticsAdminServiceGrpc.getRunAccessReportMethod) == null) { - AnalyticsAdminServiceGrpc.getRunAccessReportMethod = getRunAccessReportMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAccessReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.RunAccessReportRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1beta.RunAccessReportResponse.getDefaultInstance())) - .setSchemaDescriptor(new AnalyticsAdminServiceMethodDescriptorSupplier("RunAccessReport")) - .build(); - } - } - } - return getRunAccessReportMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnalyticsAdminServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AnalyticsAdminServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - default void getAccount(com.google.analytics.admin.v1beta.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - default void listAccounts(com.google.analytics.admin.v1beta.ListAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccountsMethod(), responseObserver); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - default void deleteAccount(com.google.analytics.admin.v1beta.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteAccountMethod(), responseObserver); - } - - /** - *
-     * Updates an account.
-     * 
- */ - default void updateAccount(com.google.analytics.admin.v1beta.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAccountMethod(), responseObserver); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - default void provisionAccountTicket(com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProvisionAccountTicketMethod(), responseObserver); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - default void listAccountSummaries(com.google.analytics.admin.v1beta.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAccountSummariesMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - default void getProperty(com.google.analytics.admin.v1beta.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetPropertyMethod(), responseObserver); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - default void listProperties(com.google.analytics.admin.v1beta.ListPropertiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListPropertiesMethod(), responseObserver); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - default void createProperty(com.google.analytics.admin.v1beta.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreatePropertyMethod(), responseObserver); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - default void deleteProperty(com.google.analytics.admin.v1beta.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeletePropertyMethod(), responseObserver); - } - - /** - *
-     * Updates a property.
-     * 
- */ - default void updateProperty(com.google.analytics.admin.v1beta.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdatePropertyMethod(), responseObserver); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - default void createFirebaseLink(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateFirebaseLinkMethod(), responseObserver); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - default void deleteFirebaseLink(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteFirebaseLinkMethod(), responseObserver); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - default void listFirebaseLinks(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListFirebaseLinksMethod(), responseObserver); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - default void createGoogleAdsLink(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateGoogleAdsLinkMethod(), responseObserver); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - default void updateGoogleAdsLink(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateGoogleAdsLinkMethod(), responseObserver); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - default void deleteGoogleAdsLink(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteGoogleAdsLinkMethod(), responseObserver); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - default void listGoogleAdsLinks(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListGoogleAdsLinksMethod(), responseObserver); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - default void getDataSharingSettings(com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataSharingSettingsMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - default void getMeasurementProtocolSecret(com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - default void listMeasurementProtocolSecrets(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListMeasurementProtocolSecretsMethod(), responseObserver); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - default void createMeasurementProtocolSecret(com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - default void deleteMeasurementProtocolSecret(com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - default void updateMeasurementProtocolSecret(com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMeasurementProtocolSecretMethod(), responseObserver); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - default void acknowledgeUserDataCollection(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAcknowledgeUserDataCollectionMethod(), responseObserver); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - default void searchChangeHistoryEvents(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSearchChangeHistoryEventsMethod(), responseObserver); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - default void createConversionEvent(com.google.analytics.admin.v1beta.CreateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConversionEventMethod(), responseObserver); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - default void updateConversionEvent(com.google.analytics.admin.v1beta.UpdateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConversionEventMethod(), responseObserver); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - default void getConversionEvent(com.google.analytics.admin.v1beta.GetConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConversionEventMethod(), responseObserver); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - default void deleteConversionEvent(com.google.analytics.admin.v1beta.DeleteConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteConversionEventMethod(), responseObserver); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - default void listConversionEvents(com.google.analytics.admin.v1beta.ListConversionEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConversionEventsMethod(), responseObserver); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - default void createCustomDimension(com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - default void updateCustomDimension(com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - default void listCustomDimensions(com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomDimensionsMethod(), responseObserver); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - default void archiveCustomDimension(com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getArchiveCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - default void getCustomDimension(com.google.analytics.admin.v1beta.GetCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomDimensionMethod(), responseObserver); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - default void createCustomMetric(com.google.analytics.admin.v1beta.CreateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - default void updateCustomMetric(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - default void listCustomMetrics(com.google.analytics.admin.v1beta.ListCustomMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListCustomMetricsMethod(), responseObserver); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - default void archiveCustomMetric(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getArchiveCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - default void getCustomMetric(com.google.analytics.admin.v1beta.GetCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetCustomMetricMethod(), responseObserver); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - default void getDataRetentionSettings(com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataRetentionSettingsMethod(), responseObserver); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - default void updateDataRetentionSettings(com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDataRetentionSettingsMethod(), responseObserver); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - default void createDataStream(com.google.analytics.admin.v1beta.CreateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDataStreamMethod(), responseObserver); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - default void deleteDataStream(com.google.analytics.admin.v1beta.DeleteDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDataStreamMethod(), responseObserver); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - default void updateDataStream(com.google.analytics.admin.v1beta.UpdateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDataStreamMethod(), responseObserver); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - default void listDataStreams(com.google.analytics.admin.v1beta.ListDataStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDataStreamsMethod(), responseObserver); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - default void getDataStream(com.google.analytics.admin.v1beta.GetDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDataStreamMethod(), responseObserver); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - default void runAccessReport(com.google.analytics.admin.v1beta.RunAccessReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRunAccessReportMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static abstract class AnalyticsAdminServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return AnalyticsAdminServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AnalyticsAdminServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); - } - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - public void getAccount(com.google.analytics.admin.v1beta.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public void listAccounts(com.google.analytics.admin.v1beta.ListAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public void deleteAccount(com.google.analytics.admin.v1beta.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates an account.
-     * 
- */ - public void updateAccount(com.google.analytics.admin.v1beta.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public void provisionAccountTicket(com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public void listAccountSummaries(com.google.analytics.admin.v1beta.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public void getProperty(com.google.analytics.admin.v1beta.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public void listProperties(com.google.analytics.admin.v1beta.ListPropertiesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public void createProperty(com.google.analytics.admin.v1beta.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - public void deleteProperty(com.google.analytics.admin.v1beta.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a property.
-     * 
- */ - public void updateProperty(com.google.analytics.admin.v1beta.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public void createFirebaseLink(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public void deleteFirebaseLink(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public void listFirebaseLinks(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public void createGoogleAdsLink(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public void updateGoogleAdsLink(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public void deleteGoogleAdsLink(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - public void listGoogleAdsLinks(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - public void getDataSharingSettings(com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - public void getMeasurementProtocolSecret(com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - public void listMeasurementProtocolSecrets(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - public void createMeasurementProtocolSecret(com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public void deleteMeasurementProtocolSecret(com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - public void updateMeasurementProtocolSecret(com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - public void acknowledgeUserDataCollection(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - public void searchChangeHistoryEvents(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - public void createConversionEvent(com.google.analytics.admin.v1beta.CreateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - public void updateConversionEvent(com.google.analytics.admin.v1beta.UpdateConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - public void getConversionEvent(com.google.analytics.admin.v1beta.GetConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - public void deleteConversionEvent(com.google.analytics.admin.v1beta.DeleteConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - public void listConversionEvents(com.google.analytics.admin.v1beta.ListConversionEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - public void createCustomDimension(com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - public void updateCustomDimension(com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - public void listCustomDimensions(com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - public void archiveCustomDimension(com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - public void getCustomDimension(com.google.analytics.admin.v1beta.GetCustomDimensionRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - public void createCustomMetric(com.google.analytics.admin.v1beta.CreateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - public void updateCustomMetric(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - public void listCustomMetrics(com.google.analytics.admin.v1beta.ListCustomMetricsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - public void archiveCustomMetric(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - public void getCustomMetric(com.google.analytics.admin.v1beta.GetCustomMetricRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - public void getDataRetentionSettings(com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - public void updateDataRetentionSettings(com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - public void createDataStream(com.google.analytics.admin.v1beta.CreateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - public void deleteDataStream(com.google.analytics.admin.v1beta.DeleteDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - public void updateDataStream(com.google.analytics.admin.v1beta.UpdateDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - public void listDataStreams(com.google.analytics.admin.v1beta.ListDataStreamsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - public void getDataStream(com.google.analytics.admin.v1beta.GetDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - public void runAccessReport(com.google.analytics.admin.v1beta.RunAccessReportRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AnalyticsAdminServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - public com.google.analytics.admin.v1beta.Account getAccount(com.google.analytics.admin.v1beta.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccountMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListAccountsResponse listAccounts(com.google.analytics.admin.v1beta.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountsMethod(), getCallOptions(), request); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public com.google.protobuf.Empty deleteAccount(com.google.analytics.admin.v1beta.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccountMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates an account.
-     * 
- */ - public com.google.analytics.admin.v1beta.Account updateAccount(com.google.analytics.admin.v1beta.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAccountMethod(), getCallOptions(), request); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse provisionAccountTicket(com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListAccountSummariesResponse listAccountSummaries(com.google.analytics.admin.v1beta.ListAccountSummariesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public com.google.analytics.admin.v1beta.Property getProperty(com.google.analytics.admin.v1beta.GetPropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListPropertiesResponse listProperties(com.google.analytics.admin.v1beta.ListPropertiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPropertiesMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public com.google.analytics.admin.v1beta.Property createProperty(com.google.analytics.admin.v1beta.CreatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - public com.google.analytics.admin.v1beta.Property deleteProperty(com.google.analytics.admin.v1beta.DeletePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.Property updateProperty(com.google.analytics.admin.v1beta.UpdatePropertyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.analytics.admin.v1beta.FirebaseLink createFirebaseLink(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public com.google.protobuf.Empty deleteFirebaseLink(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse listFirebaseLinks(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public com.google.analytics.admin.v1beta.GoogleAdsLink createGoogleAdsLink(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public com.google.analytics.admin.v1beta.GoogleAdsLink updateGoogleAdsLink(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public com.google.protobuf.Empty deleteGoogleAdsLink(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse listGoogleAdsLinks(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - public com.google.analytics.admin.v1beta.DataSharingSettings getDataSharingSettings(com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret(com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse listMeasurementProtocolSecrets(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret createMeasurementProtocolSecret(com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public com.google.protobuf.Empty deleteMeasurementProtocolSecret(com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret updateMeasurementProtocolSecret(com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse acknowledgeUserDataCollection(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAcknowledgeUserDataCollectionMethod(), getCallOptions(), request); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse searchChangeHistoryEvents(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - public com.google.analytics.admin.v1beta.ConversionEvent createConversionEvent(com.google.analytics.admin.v1beta.CreateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - public com.google.analytics.admin.v1beta.ConversionEvent updateConversionEvent(com.google.analytics.admin.v1beta.UpdateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent(com.google.analytics.admin.v1beta.GetConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - public com.google.protobuf.Empty deleteConversionEvent(com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListConversionEventsResponse listConversionEvents(com.google.analytics.admin.v1beta.ListConversionEventsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversionEventsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - public com.google.analytics.admin.v1beta.CustomDimension createCustomDimension(com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.CustomDimension updateCustomDimension(com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse listCustomDimensions(com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - public com.google.protobuf.Empty archiveCustomDimension(com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension(com.google.analytics.admin.v1beta.GetCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - public com.google.analytics.admin.v1beta.CustomMetric createCustomMetric(com.google.analytics.admin.v1beta.CreateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.CustomMetric updateCustomMetric(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListCustomMetricsResponse listCustomMetrics(com.google.analytics.admin.v1beta.ListCustomMetricsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - public com.google.protobuf.Empty archiveCustomMetric(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric(com.google.analytics.admin.v1beta.GetCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings(com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataRetentionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - public com.google.analytics.admin.v1beta.DataRetentionSettings updateDataRetentionSettings(com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - public com.google.analytics.admin.v1beta.DataStream createDataStream(com.google.analytics.admin.v1beta.CreateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - public com.google.protobuf.Empty deleteDataStream(com.google.analytics.admin.v1beta.DeleteDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.DataStream updateDataStream(com.google.analytics.admin.v1beta.UpdateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - public com.google.analytics.admin.v1beta.ListDataStreamsResponse listDataStreams(com.google.analytics.admin.v1beta.ListDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListDataStreamsMethod(), getCallOptions(), request); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - public com.google.analytics.admin.v1beta.DataStream getDataStream(com.google.analytics.admin.v1beta.GetDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataStreamMethod(), getCallOptions(), request); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - public com.google.analytics.admin.v1beta.RunAccessReportResponse runAccessReport(com.google.analytics.admin.v1beta.RunAccessReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunAccessReportMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service AnalyticsAdminService. - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AnalyticsAdminServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lookup for a single Account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getAccount( - com.google.analytics.admin.v1beta.GetAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAccounts( - com.google.analytics.admin.v1beta.ListAccountsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); - } - - /** - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteAccount( - com.google.analytics.admin.v1beta.DeleteAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates an account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateAccount( - com.google.analytics.admin.v1beta.UpdateAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); - } - - /** - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture provisionAccountTicket( - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listAccountSummaries( - com.google.analytics.admin.v1beta.ListAccountSummariesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getProperty( - com.google.analytics.admin.v1beta.GetPropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listProperties( - com.google.analytics.admin.v1beta.ListPropertiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createProperty( - com.google.analytics.admin.v1beta.CreatePropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not a GA4 Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteProperty( - com.google.analytics.admin.v1beta.DeletePropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateProperty( - com.google.analytics.admin.v1beta.UpdatePropertyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createFirebaseLink( - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteFirebaseLink( - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listFirebaseLinks( - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createGoogleAdsLink( - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateGoogleAdsLink( - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteGoogleAdsLink( - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists GoogleAdsLinks on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listGoogleAdsLinks( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); - } - - /** - *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataSharingSettings( - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listMeasurementProtocolSecrets( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a measurement protocol secret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes target MeasurementProtocolSecret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a measurement protocol secret.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), request); - } - - /** - *
-     * Acknowledges the terms of user data collection for the specified property.
-     * This acknowledgement must be completed (either in the Google Analytics UI
-     * or through this API) before MeasurementProtocolSecret resources may be
-     * created.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture acknowledgeUserDataCollection( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAcknowledgeUserDataCollectionMethod(), getCallOptions()), request); - } - - /** - *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture searchChangeHistoryEvents( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a conversion event with the specified attributes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createConversionEvent( - com.google.analytics.admin.v1beta.CreateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a conversion event with the specified attributes.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateConversionEvent( - com.google.analytics.admin.v1beta.UpdateConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Retrieve a single conversion event.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getConversionEvent( - com.google.analytics.admin.v1beta.GetConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a conversion event in a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteConversionEvent( - com.google.analytics.admin.v1beta.DeleteConversionEventRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listConversionEvents( - com.google.analytics.admin.v1beta.ListConversionEventsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a CustomDimension.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomDimension( - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a CustomDimension on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomDimension( - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists CustomDimensions on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomDimensions( - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request); - } - - /** - *
-     * Archives a CustomDimension on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture archiveCustomDimension( - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single CustomDimension.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomDimension( - com.google.analytics.admin.v1beta.GetCustomDimensionRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a CustomMetric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createCustomMetric( - com.google.analytics.admin.v1beta.CreateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a CustomMetric on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateCustomMetric( - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists CustomMetrics on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listCustomMetrics( - com.google.analytics.admin.v1beta.ListCustomMetricsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request); - } - - /** - *
-     * Archives a CustomMetric on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture archiveCustomMetric( - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single CustomMetric.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getCustomMetric( - com.google.analytics.admin.v1beta.GetCustomMetricRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns the singleton data retention settings for this property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataRetentionSettings( - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates the singleton data retention settings for this property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataRetentionSettings( - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request); - } - - /** - *
-     * Creates a DataStream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createDataStream( - com.google.analytics.admin.v1beta.CreateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a DataStream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteDataStream( - com.google.analytics.admin.v1beta.DeleteDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a DataStream on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateDataStream( - com.google.analytics.admin.v1beta.UpdateDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists DataStreams on a property.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listDataStreams( - com.google.analytics.admin.v1beta.ListDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListDataStreamsMethod(), getCallOptions()), request); - } - - /** - *
-     * Lookup for a single DataStream.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getDataStream( - com.google.analytics.admin.v1beta.GetDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataStreamMethod(), getCallOptions()), request); - } - - /** - *
-     * Returns a customized report of data access records. The report provides
-     * records of each time a user reads Google Analytics reporting data. Access
-     * records are retained for up to 2 years.
-     * Data Access Reports can be requested for a property. The property must be
-     * in Google Analytics 360. This method is only available to Administrators.
-     * These data access records include GA4 UI Reporting, GA4 UI Explorations,
-     * GA4 Data API, and other products like Firebase & Admob that can retrieve
-     * data from Google Analytics through a linkage. These records don't include
-     * property configuration changes like adding a stream or changing a
-     * property's time zone. For configuration change history, see
-     * [searchChangeHistoryEvents](https://developers.google.com/analytics/devguides/config/admin/v1/rest/v1alpha/accounts/searchChangeHistoryEvents).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture runAccessReport( - com.google.analytics.admin.v1beta.RunAccessReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunAccessReportMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_GET_ACCOUNT = 0; - private static final int METHODID_LIST_ACCOUNTS = 1; - private static final int METHODID_DELETE_ACCOUNT = 2; - private static final int METHODID_UPDATE_ACCOUNT = 3; - private static final int METHODID_PROVISION_ACCOUNT_TICKET = 4; - private static final int METHODID_LIST_ACCOUNT_SUMMARIES = 5; - private static final int METHODID_GET_PROPERTY = 6; - private static final int METHODID_LIST_PROPERTIES = 7; - private static final int METHODID_CREATE_PROPERTY = 8; - private static final int METHODID_DELETE_PROPERTY = 9; - private static final int METHODID_UPDATE_PROPERTY = 10; - private static final int METHODID_CREATE_FIREBASE_LINK = 11; - private static final int METHODID_DELETE_FIREBASE_LINK = 12; - private static final int METHODID_LIST_FIREBASE_LINKS = 13; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 14; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 15; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 16; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 17; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 18; - private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 19; - private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 20; - private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 21; - private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 22; - private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 23; - private static final int METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION = 24; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 25; - private static final int METHODID_CREATE_CONVERSION_EVENT = 26; - private static final int METHODID_UPDATE_CONVERSION_EVENT = 27; - private static final int METHODID_GET_CONVERSION_EVENT = 28; - private static final int METHODID_DELETE_CONVERSION_EVENT = 29; - private static final int METHODID_LIST_CONVERSION_EVENTS = 30; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 31; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 32; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 33; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 34; - private static final int METHODID_GET_CUSTOM_DIMENSION = 35; - private static final int METHODID_CREATE_CUSTOM_METRIC = 36; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 37; - private static final int METHODID_LIST_CUSTOM_METRICS = 38; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 39; - private static final int METHODID_GET_CUSTOM_METRIC = 40; - private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 41; - private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 42; - private static final int METHODID_CREATE_DATA_STREAM = 43; - private static final int METHODID_DELETE_DATA_STREAM = 44; - private static final int METHODID_UPDATE_DATA_STREAM = 45; - private static final int METHODID_LIST_DATA_STREAMS = 46; - private static final int METHODID_GET_DATA_STREAM = 47; - private static final int METHODID_RUN_ACCESS_REPORT = 48; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_GET_ACCOUNT: - serviceImpl.getAccount((com.google.analytics.admin.v1beta.GetAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCOUNTS: - serviceImpl.listAccounts((com.google.analytics.admin.v1beta.ListAccountsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ACCOUNT: - serviceImpl.deleteAccount((com.google.analytics.admin.v1beta.DeleteAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ACCOUNT: - serviceImpl.updateAccount((com.google.analytics.admin.v1beta.UpdateAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PROVISION_ACCOUNT_TICKET: - serviceImpl.provisionAccountTicket((com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ACCOUNT_SUMMARIES: - serviceImpl.listAccountSummaries((com.google.analytics.admin.v1beta.ListAccountSummariesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_PROPERTY: - serviceImpl.getProperty((com.google.analytics.admin.v1beta.GetPropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_PROPERTIES: - serviceImpl.listProperties((com.google.analytics.admin.v1beta.ListPropertiesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_PROPERTY: - serviceImpl.createProperty((com.google.analytics.admin.v1beta.CreatePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_PROPERTY: - serviceImpl.deleteProperty((com.google.analytics.admin.v1beta.DeletePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_PROPERTY: - serviceImpl.updateProperty((com.google.analytics.admin.v1beta.UpdatePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_FIREBASE_LINK: - serviceImpl.createFirebaseLink((com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_FIREBASE_LINK: - serviceImpl.deleteFirebaseLink((com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_FIREBASE_LINKS: - serviceImpl.listFirebaseLinks((com.google.analytics.admin.v1beta.ListFirebaseLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_GOOGLE_ADS_LINK: - serviceImpl.createGoogleAdsLink((com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_GOOGLE_ADS_LINK: - serviceImpl.updateGoogleAdsLink((com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_GOOGLE_ADS_LINK: - serviceImpl.deleteGoogleAdsLink((com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_GOOGLE_ADS_LINKS: - serviceImpl.listGoogleAdsLinks((com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_SHARING_SETTINGS: - serviceImpl.getDataSharingSettings((com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.getMeasurementProtocolSecret((com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS: - serviceImpl.listMeasurementProtocolSecrets((com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.createMeasurementProtocolSecret((com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.deleteMeasurementProtocolSecret((com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET: - serviceImpl.updateMeasurementProtocolSecret((com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION: - serviceImpl.acknowledgeUserDataCollection((com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: - serviceImpl.searchChangeHistoryEvents((com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CONVERSION_EVENT: - serviceImpl.createConversionEvent((com.google.analytics.admin.v1beta.CreateConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONVERSION_EVENT: - serviceImpl.updateConversionEvent((com.google.analytics.admin.v1beta.UpdateConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONVERSION_EVENT: - serviceImpl.getConversionEvent((com.google.analytics.admin.v1beta.GetConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONVERSION_EVENT: - serviceImpl.deleteConversionEvent((com.google.analytics.admin.v1beta.DeleteConversionEventRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONVERSION_EVENTS: - serviceImpl.listConversionEvents((com.google.analytics.admin.v1beta.ListConversionEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_DIMENSION: - serviceImpl.createCustomDimension((com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_DIMENSION: - serviceImpl.updateCustomDimension((com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_DIMENSIONS: - serviceImpl.listCustomDimensions((com.google.analytics.admin.v1beta.ListCustomDimensionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ARCHIVE_CUSTOM_DIMENSION: - serviceImpl.archiveCustomDimension((com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_DIMENSION: - serviceImpl.getCustomDimension((com.google.analytics.admin.v1beta.GetCustomDimensionRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_CUSTOM_METRIC: - serviceImpl.createCustomMetric((com.google.analytics.admin.v1beta.CreateCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CUSTOM_METRIC: - serviceImpl.updateCustomMetric((com.google.analytics.admin.v1beta.UpdateCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CUSTOM_METRICS: - serviceImpl.listCustomMetrics((com.google.analytics.admin.v1beta.ListCustomMetricsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ARCHIVE_CUSTOM_METRIC: - serviceImpl.archiveCustomMetric((com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CUSTOM_METRIC: - serviceImpl.getCustomMetric((com.google.analytics.admin.v1beta.GetCustomMetricRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_RETENTION_SETTINGS: - serviceImpl.getDataRetentionSettings((com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DATA_RETENTION_SETTINGS: - serviceImpl.updateDataRetentionSettings((com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_DATA_STREAM: - serviceImpl.createDataStream((com.google.analytics.admin.v1beta.CreateDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_DATA_STREAM: - serviceImpl.deleteDataStream((com.google.analytics.admin.v1beta.DeleteDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_DATA_STREAM: - serviceImpl.updateDataStream((com.google.analytics.admin.v1beta.UpdateDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_DATA_STREAMS: - serviceImpl.listDataStreams((com.google.analytics.admin.v1beta.ListDataStreamsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_DATA_STREAM: - serviceImpl.getDataStream((com.google.analytics.admin.v1beta.GetDataStreamRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_RUN_ACCESS_REPORT: - serviceImpl.runAccessReport((com.google.analytics.admin.v1beta.RunAccessReportRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetAccountRequest, - com.google.analytics.admin.v1beta.Account>( - service, METHODID_GET_ACCOUNT))) - .addMethod( - getListAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListAccountsRequest, - com.google.analytics.admin.v1beta.ListAccountsResponse>( - service, METHODID_LIST_ACCOUNTS))) - .addMethod( - getDeleteAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteAccountRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_ACCOUNT))) - .addMethod( - getUpdateAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateAccountRequest, - com.google.analytics.admin.v1beta.Account>( - service, METHODID_UPDATE_ACCOUNT))) - .addMethod( - getProvisionAccountTicketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest, - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse>( - service, METHODID_PROVISION_ACCOUNT_TICKET))) - .addMethod( - getListAccountSummariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListAccountSummariesRequest, - com.google.analytics.admin.v1beta.ListAccountSummariesResponse>( - service, METHODID_LIST_ACCOUNT_SUMMARIES))) - .addMethod( - getGetPropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetPropertyRequest, - com.google.analytics.admin.v1beta.Property>( - service, METHODID_GET_PROPERTY))) - .addMethod( - getListPropertiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListPropertiesRequest, - com.google.analytics.admin.v1beta.ListPropertiesResponse>( - service, METHODID_LIST_PROPERTIES))) - .addMethod( - getCreatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreatePropertyRequest, - com.google.analytics.admin.v1beta.Property>( - service, METHODID_CREATE_PROPERTY))) - .addMethod( - getDeletePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeletePropertyRequest, - com.google.analytics.admin.v1beta.Property>( - service, METHODID_DELETE_PROPERTY))) - .addMethod( - getUpdatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdatePropertyRequest, - com.google.analytics.admin.v1beta.Property>( - service, METHODID_UPDATE_PROPERTY))) - .addMethod( - getCreateFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest, - com.google.analytics.admin.v1beta.FirebaseLink>( - service, METHODID_CREATE_FIREBASE_LINK))) - .addMethod( - getDeleteFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_FIREBASE_LINK))) - .addMethod( - getListFirebaseLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest, - com.google.analytics.admin.v1beta.ListFirebaseLinksResponse>( - service, METHODID_LIST_FIREBASE_LINKS))) - .addMethod( - getCreateGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest, - com.google.analytics.admin.v1beta.GoogleAdsLink>( - service, METHODID_CREATE_GOOGLE_ADS_LINK))) - .addMethod( - getUpdateGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest, - com.google.analytics.admin.v1beta.GoogleAdsLink>( - service, METHODID_UPDATE_GOOGLE_ADS_LINK))) - .addMethod( - getDeleteGoogleAdsLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_GOOGLE_ADS_LINK))) - .addMethod( - getListGoogleAdsLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest, - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse>( - service, METHODID_LIST_GOOGLE_ADS_LINKS))) - .addMethod( - getGetDataSharingSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest, - com.google.analytics.admin.v1beta.DataSharingSettings>( - service, METHODID_GET_DATA_SHARING_SETTINGS))) - .addMethod( - getGetMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest, - com.google.analytics.admin.v1beta.MeasurementProtocolSecret>( - service, METHODID_GET_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getListMeasurementProtocolSecretsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest, - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse>( - service, METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS))) - .addMethod( - getCreateMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest, - com.google.analytics.admin.v1beta.MeasurementProtocolSecret>( - service, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getDeleteMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getUpdateMeasurementProtocolSecretMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest, - com.google.analytics.admin.v1beta.MeasurementProtocolSecret>( - service, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) - .addMethod( - getAcknowledgeUserDataCollectionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest, - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse>( - service, METHODID_ACKNOWLEDGE_USER_DATA_COLLECTION))) - .addMethod( - getSearchChangeHistoryEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest, - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse>( - service, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) - .addMethod( - getCreateConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateConversionEventRequest, - com.google.analytics.admin.v1beta.ConversionEvent>( - service, METHODID_CREATE_CONVERSION_EVENT))) - .addMethod( - getUpdateConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateConversionEventRequest, - com.google.analytics.admin.v1beta.ConversionEvent>( - service, METHODID_UPDATE_CONVERSION_EVENT))) - .addMethod( - getGetConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetConversionEventRequest, - com.google.analytics.admin.v1beta.ConversionEvent>( - service, METHODID_GET_CONVERSION_EVENT))) - .addMethod( - getDeleteConversionEventMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteConversionEventRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_CONVERSION_EVENT))) - .addMethod( - getListConversionEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListConversionEventsRequest, - com.google.analytics.admin.v1beta.ListConversionEventsResponse>( - service, METHODID_LIST_CONVERSION_EVENTS))) - .addMethod( - getCreateCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest, - com.google.analytics.admin.v1beta.CustomDimension>( - service, METHODID_CREATE_CUSTOM_DIMENSION))) - .addMethod( - getUpdateCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest, - com.google.analytics.admin.v1beta.CustomDimension>( - service, METHODID_UPDATE_CUSTOM_DIMENSION))) - .addMethod( - getListCustomDimensionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest, - com.google.analytics.admin.v1beta.ListCustomDimensionsResponse>( - service, METHODID_LIST_CUSTOM_DIMENSIONS))) - .addMethod( - getArchiveCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest, - com.google.protobuf.Empty>( - service, METHODID_ARCHIVE_CUSTOM_DIMENSION))) - .addMethod( - getGetCustomDimensionMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetCustomDimensionRequest, - com.google.analytics.admin.v1beta.CustomDimension>( - service, METHODID_GET_CUSTOM_DIMENSION))) - .addMethod( - getCreateCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateCustomMetricRequest, - com.google.analytics.admin.v1beta.CustomMetric>( - service, METHODID_CREATE_CUSTOM_METRIC))) - .addMethod( - getUpdateCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest, - com.google.analytics.admin.v1beta.CustomMetric>( - service, METHODID_UPDATE_CUSTOM_METRIC))) - .addMethod( - getListCustomMetricsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListCustomMetricsRequest, - com.google.analytics.admin.v1beta.ListCustomMetricsResponse>( - service, METHODID_LIST_CUSTOM_METRICS))) - .addMethod( - getArchiveCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest, - com.google.protobuf.Empty>( - service, METHODID_ARCHIVE_CUSTOM_METRIC))) - .addMethod( - getGetCustomMetricMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetCustomMetricRequest, - com.google.analytics.admin.v1beta.CustomMetric>( - service, METHODID_GET_CUSTOM_METRIC))) - .addMethod( - getGetDataRetentionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest, - com.google.analytics.admin.v1beta.DataRetentionSettings>( - service, METHODID_GET_DATA_RETENTION_SETTINGS))) - .addMethod( - getUpdateDataRetentionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest, - com.google.analytics.admin.v1beta.DataRetentionSettings>( - service, METHODID_UPDATE_DATA_RETENTION_SETTINGS))) - .addMethod( - getCreateDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.CreateDataStreamRequest, - com.google.analytics.admin.v1beta.DataStream>( - service, METHODID_CREATE_DATA_STREAM))) - .addMethod( - getDeleteDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.DeleteDataStreamRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_DATA_STREAM))) - .addMethod( - getUpdateDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.UpdateDataStreamRequest, - com.google.analytics.admin.v1beta.DataStream>( - service, METHODID_UPDATE_DATA_STREAM))) - .addMethod( - getListDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.ListDataStreamsRequest, - com.google.analytics.admin.v1beta.ListDataStreamsResponse>( - service, METHODID_LIST_DATA_STREAMS))) - .addMethod( - getGetDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.GetDataStreamRequest, - com.google.analytics.admin.v1beta.DataStream>( - service, METHODID_GET_DATA_STREAM))) - .addMethod( - getRunAccessReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1beta.RunAccessReportRequest, - com.google.analytics.admin.v1beta.RunAccessReportResponse>( - service, METHODID_RUN_ACCESS_REPORT))) - .build(); - } - - private static abstract class AnalyticsAdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AnalyticsAdminServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AnalyticsAdminService"); - } - } - - private static final class AnalyticsAdminServiceFileDescriptorSupplier - extends AnalyticsAdminServiceBaseDescriptorSupplier { - AnalyticsAdminServiceFileDescriptorSupplier() {} - } - - private static final class AnalyticsAdminServiceMethodDescriptorSupplier - extends AnalyticsAdminServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - AnalyticsAdminServiceMethodDescriptorSupplier(java.lang.String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AnalyticsAdminServiceFileDescriptorSupplier()) - .addMethod(getGetAccountMethod()) - .addMethod(getListAccountsMethod()) - .addMethod(getDeleteAccountMethod()) - .addMethod(getUpdateAccountMethod()) - .addMethod(getProvisionAccountTicketMethod()) - .addMethod(getListAccountSummariesMethod()) - .addMethod(getGetPropertyMethod()) - .addMethod(getListPropertiesMethod()) - .addMethod(getCreatePropertyMethod()) - .addMethod(getDeletePropertyMethod()) - .addMethod(getUpdatePropertyMethod()) - .addMethod(getCreateFirebaseLinkMethod()) - .addMethod(getDeleteFirebaseLinkMethod()) - .addMethod(getListFirebaseLinksMethod()) - .addMethod(getCreateGoogleAdsLinkMethod()) - .addMethod(getUpdateGoogleAdsLinkMethod()) - .addMethod(getDeleteGoogleAdsLinkMethod()) - .addMethod(getListGoogleAdsLinksMethod()) - .addMethod(getGetDataSharingSettingsMethod()) - .addMethod(getGetMeasurementProtocolSecretMethod()) - .addMethod(getListMeasurementProtocolSecretsMethod()) - .addMethod(getCreateMeasurementProtocolSecretMethod()) - .addMethod(getDeleteMeasurementProtocolSecretMethod()) - .addMethod(getUpdateMeasurementProtocolSecretMethod()) - .addMethod(getAcknowledgeUserDataCollectionMethod()) - .addMethod(getSearchChangeHistoryEventsMethod()) - .addMethod(getCreateConversionEventMethod()) - .addMethod(getUpdateConversionEventMethod()) - .addMethod(getGetConversionEventMethod()) - .addMethod(getDeleteConversionEventMethod()) - .addMethod(getListConversionEventsMethod()) - .addMethod(getCreateCustomDimensionMethod()) - .addMethod(getUpdateCustomDimensionMethod()) - .addMethod(getListCustomDimensionsMethod()) - .addMethod(getArchiveCustomDimensionMethod()) - .addMethod(getGetCustomDimensionMethod()) - .addMethod(getCreateCustomMetricMethod()) - .addMethod(getUpdateCustomMetricMethod()) - .addMethod(getListCustomMetricsMethod()) - .addMethod(getArchiveCustomMetricMethod()) - .addMethod(getGetCustomMetricMethod()) - .addMethod(getGetDataRetentionSettingsMethod()) - .addMethod(getUpdateDataRetentionSettingsMethod()) - .addMethod(getCreateDataStreamMethod()) - .addMethod(getDeleteDataStreamMethod()) - .addMethod(getUpdateDataStreamMethod()) - .addMethod(getListDataStreamsMethod()) - .addMethod(getGetDataStreamMethod()) - .addMethod(getRunAccessReportMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilter.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilter.java deleted file mode 100644 index 201a4f7bc627..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilter.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * To express that the result needs to be between two numbers (inclusive).
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessBetweenFilter} - */ -public final class AccessBetweenFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessBetweenFilter) - AccessBetweenFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessBetweenFilter.newBuilder() to construct. - private AccessBetweenFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessBetweenFilter() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessBetweenFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessBetweenFilter.class, com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder.class); - } - - public static final int FROM_VALUE_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.NumericValue fromValue_; - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return Whether the fromValue field is set. - */ - @java.lang.Override - public boolean hasFromValue() { - return fromValue_ != null; - } - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return The fromValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValue getFromValue() { - return fromValue_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : fromValue_; - } - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValueOrBuilder getFromValueOrBuilder() { - return fromValue_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : fromValue_; - } - - public static final int TO_VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.NumericValue toValue_; - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return Whether the toValue field is set. - */ - @java.lang.Override - public boolean hasToValue() { - return toValue_ != null; - } - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return The toValue. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValue getToValue() { - return toValue_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : toValue_; - } - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValueOrBuilder getToValueOrBuilder() { - return toValue_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : toValue_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (fromValue_ != null) { - output.writeMessage(1, getFromValue()); - } - if (toValue_ != null) { - output.writeMessage(2, getToValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fromValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getFromValue()); - } - if (toValue_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getToValue()); - } - size += 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.admin.v1beta.AccessBetweenFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessBetweenFilter other = (com.google.analytics.admin.v1beta.AccessBetweenFilter) obj; - - if (hasFromValue() != other.hasFromValue()) return false; - if (hasFromValue()) { - if (!getFromValue() - .equals(other.getFromValue())) return false; - } - if (hasToValue() != other.hasToValue()) return false; - if (hasToValue()) { - if (!getToValue() - .equals(other.getToValue())) return false; - } - if (!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 (hasFromValue()) { - hash = (37 * hash) + FROM_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getFromValue().hashCode(); - } - if (hasToValue()) { - hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getToValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessBetweenFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessBetweenFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * To express that the result needs to be between two numbers (inclusive).
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessBetweenFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessBetweenFilter) - com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessBetweenFilter.class, com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessBetweenFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - fromValue_ = null; - if (fromValueBuilder_ != null) { - fromValueBuilder_.dispose(); - fromValueBuilder_ = null; - } - toValue_ = null; - if (toValueBuilder_ != null) { - toValueBuilder_.dispose(); - toValueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilter build() { - com.google.analytics.admin.v1beta.AccessBetweenFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilter buildPartial() { - com.google.analytics.admin.v1beta.AccessBetweenFilter result = new com.google.analytics.admin.v1beta.AccessBetweenFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessBetweenFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.fromValue_ = fromValueBuilder_ == null - ? fromValue_ - : fromValueBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.toValue_ = toValueBuilder_ == null - ? toValue_ - : toValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessBetweenFilter) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessBetweenFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessBetweenFilter other) { - if (other == com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance()) return this; - if (other.hasFromValue()) { - mergeFromValue(other.getFromValue()); - } - if (other.hasToValue()) { - mergeToValue(other.getToValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getFromValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getToValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.NumericValue fromValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder> fromValueBuilder_; - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return Whether the fromValue field is set. - */ - public boolean hasFromValue() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return The fromValue. - */ - public com.google.analytics.admin.v1beta.NumericValue getFromValue() { - if (fromValueBuilder_ == null) { - return fromValue_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : fromValue_; - } else { - return fromValueBuilder_.getMessage(); - } - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - public Builder setFromValue(com.google.analytics.admin.v1beta.NumericValue value) { - if (fromValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - fromValue_ = value; - } else { - fromValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - public Builder setFromValue( - com.google.analytics.admin.v1beta.NumericValue.Builder builderForValue) { - if (fromValueBuilder_ == null) { - fromValue_ = builderForValue.build(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - public Builder mergeFromValue(com.google.analytics.admin.v1beta.NumericValue value) { - if (fromValueBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - fromValue_ != null && - fromValue_ != com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) { - getFromValueBuilder().mergeFrom(value); - } else { - fromValue_ = value; - } - } else { - fromValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - public Builder clearFromValue() { - bitField0_ = (bitField0_ & ~0x00000001); - fromValue_ = null; - if (fromValueBuilder_ != null) { - fromValueBuilder_.dispose(); - fromValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - public com.google.analytics.admin.v1beta.NumericValue.Builder getFromValueBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getFromValueFieldBuilder().getBuilder(); - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - public com.google.analytics.admin.v1beta.NumericValueOrBuilder getFromValueOrBuilder() { - if (fromValueBuilder_ != null) { - return fromValueBuilder_.getMessageOrBuilder(); - } else { - return fromValue_ == null ? - com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : fromValue_; - } - } - /** - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder> - getFromValueFieldBuilder() { - if (fromValueBuilder_ == null) { - fromValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder>( - getFromValue(), - getParentForChildren(), - isClean()); - fromValue_ = null; - } - return fromValueBuilder_; - } - - private com.google.analytics.admin.v1beta.NumericValue toValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder> toValueBuilder_; - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return Whether the toValue field is set. - */ - public boolean hasToValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return The toValue. - */ - public com.google.analytics.admin.v1beta.NumericValue getToValue() { - if (toValueBuilder_ == null) { - return toValue_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : toValue_; - } else { - return toValueBuilder_.getMessage(); - } - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - public Builder setToValue(com.google.analytics.admin.v1beta.NumericValue value) { - if (toValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - toValue_ = value; - } else { - toValueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - public Builder setToValue( - com.google.analytics.admin.v1beta.NumericValue.Builder builderForValue) { - if (toValueBuilder_ == null) { - toValue_ = builderForValue.build(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - public Builder mergeToValue(com.google.analytics.admin.v1beta.NumericValue value) { - if (toValueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - toValue_ != null && - toValue_ != com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) { - getToValueBuilder().mergeFrom(value); - } else { - toValue_ = value; - } - } else { - toValueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - public Builder clearToValue() { - bitField0_ = (bitField0_ & ~0x00000002); - toValue_ = null; - if (toValueBuilder_ != null) { - toValueBuilder_.dispose(); - toValueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - public com.google.analytics.admin.v1beta.NumericValue.Builder getToValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getToValueFieldBuilder().getBuilder(); - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - public com.google.analytics.admin.v1beta.NumericValueOrBuilder getToValueOrBuilder() { - if (toValueBuilder_ != null) { - return toValueBuilder_.getMessageOrBuilder(); - } else { - return toValue_ == null ? - com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : toValue_; - } - } - /** - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder> - getToValueFieldBuilder() { - if (toValueBuilder_ == null) { - toValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder>( - getToValue(), - getParentForChildren(), - isClean()); - toValue_ = null; - } - return toValueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessBetweenFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessBetweenFilter) - private static final com.google.analytics.admin.v1beta.AccessBetweenFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessBetweenFilter(); - } - - public static com.google.analytics.admin.v1beta.AccessBetweenFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessBetweenFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilterOrBuilder.java deleted file mode 100644 index 19ba5298988b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessBetweenFilterOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessBetweenFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessBetweenFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return Whether the fromValue field is set. - */ - boolean hasFromValue(); - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - * @return The fromValue. - */ - com.google.analytics.admin.v1beta.NumericValue getFromValue(); - /** - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue from_value = 1; - */ - com.google.analytics.admin.v1beta.NumericValueOrBuilder getFromValueOrBuilder(); - - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return Whether the toValue field is set. - */ - boolean hasToValue(); - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - * @return The toValue. - */ - com.google.analytics.admin.v1beta.NumericValue getToValue(); - /** - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue to_value = 2; - */ - com.google.analytics.admin.v1beta.NumericValueOrBuilder getToValueOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRange.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRange.java deleted file mode 100644 index 54a36ad788c0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRange.java +++ /dev/null @@ -1,783 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A contiguous range of days: startDate, startDate + 1, ..., endDate.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDateRange} - */ -public final class AccessDateRange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDateRange) - AccessDateRangeOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDateRange.newBuilder() to construct. - private AccessDateRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDateRange() { - startDate_ = ""; - endDate_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDateRange(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDateRange.class, com.google.analytics.admin.v1beta.AccessDateRange.Builder.class); - } - - public static final int START_DATE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object startDate_ = ""; - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The startDate. - */ - @java.lang.Override - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } - } - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The bytes for startDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int END_DATE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object endDate_ = ""; - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The endDate. - */ - @java.lang.Override - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } - } - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The bytes for endDate. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); - } - 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(startDate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); - } - size += 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.admin.v1beta.AccessDateRange)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessDateRange other = (com.google.analytics.admin.v1beta.AccessDateRange) obj; - - if (!getStartDate() - .equals(other.getStartDate())) return false; - if (!getEndDate() - .equals(other.getEndDate())) 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) + START_DATE_FIELD_NUMBER; - hash = (53 * hash) + getStartDate().hashCode(); - hash = (37 * hash) + END_DATE_FIELD_NUMBER; - hash = (53 * hash) + getEndDate().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessDateRange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessDateRange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDateRange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessDateRange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A contiguous range of days: startDate, startDate + 1, ..., endDate.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDateRange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDateRange) - com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDateRange.class, com.google.analytics.admin.v1beta.AccessDateRange.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessDateRange.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - startDate_ = ""; - endDate_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDateRange getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDateRange build() { - com.google.analytics.admin.v1beta.AccessDateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDateRange buildPartial() { - com.google.analytics.admin.v1beta.AccessDateRange result = new com.google.analytics.admin.v1beta.AccessDateRange(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessDateRange result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.startDate_ = startDate_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.endDate_ = endDate_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessDateRange) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessDateRange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDateRange other) { - if (other == com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance()) return this; - if (!other.getStartDate().isEmpty()) { - startDate_ = other.startDate_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEndDate().isEmpty()) { - endDate_ = other.endDate_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - startDate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - endDate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object startDate_ = ""; - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @return The startDate. - */ - public java.lang.String getStartDate() { - java.lang.Object ref = startDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - startDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @return The bytes for startDate. - */ - public com.google.protobuf.ByteString - getStartDateBytes() { - java.lang.Object ref = startDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - startDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @param value The startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - startDate_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @return This builder for chaining. - */ - public Builder clearStartDate() { - startDate_ = getDefaultInstance().getStartDate(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-     * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-     * accepted, and in that case, the date is inferred based on the current time
-     * in the request's time zone.
-     * 
- * - * string start_date = 1; - * @param value The bytes for startDate to set. - * @return This builder for chaining. - */ - public Builder setStartDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - startDate_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object endDate_ = ""; - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @return The endDate. - */ - public java.lang.String getEndDate() { - java.lang.Object ref = endDate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - endDate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @return The bytes for endDate. - */ - public com.google.protobuf.ByteString - getEndDateBytes() { - java.lang.Object ref = endDate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - endDate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @param value The endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDate( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - endDate_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @return This builder for chaining. - */ - public Builder clearEndDate() { - endDate_ = getDefaultInstance().getEndDate(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-     * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-     * also accepted, and in that case, the date is inferred based on the current
-     * time in the request's time zone.
-     * 
- * - * string end_date = 2; - * @param value The bytes for endDate to set. - * @return This builder for chaining. - */ - public Builder setEndDateBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - endDate_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessDateRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDateRange) - private static final com.google.analytics.admin.v1beta.AccessDateRange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDateRange(); - } - - public static com.google.analytics.admin.v1beta.AccessDateRange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDateRange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDateRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRangeOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRangeOrBuilder.java deleted file mode 100644 index 9397d52064b9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDateRangeOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessDateRangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDateRange) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The startDate. - */ - java.lang.String getStartDate(); - /** - *
-   * The inclusive start date for the query in the format `YYYY-MM-DD`. Cannot
-   * be after `endDate`. The format `NdaysAgo`, `yesterday`, or `today` is also
-   * accepted, and in that case, the date is inferred based on the current time
-   * in the request's time zone.
-   * 
- * - * string start_date = 1; - * @return The bytes for startDate. - */ - com.google.protobuf.ByteString - getStartDateBytes(); - - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The endDate. - */ - java.lang.String getEndDate(); - /** - *
-   * The inclusive end date for the query in the format `YYYY-MM-DD`. Cannot
-   * be before `startDate`. The format `NdaysAgo`, `yesterday`, or `today` is
-   * also accepted, and in that case, the date is inferred based on the current
-   * time in the request's time zone.
-   * 
- * - * string end_date = 2; - * @return The bytes for endDate. - */ - com.google.protobuf.ByteString - getEndDateBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimension.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimension.java deleted file mode 100644 index 1d11fc441c56..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimension.java +++ /dev/null @@ -1,609 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Dimensions are attributes of your data. For example, the dimension
- * `userEmail` indicates the email of the user that accessed reporting data.
- * Dimension values in report responses are strings.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDimension} - */ -public final class AccessDimension extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDimension) - AccessDimensionOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDimension.newBuilder() to construct. - private AccessDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDimension() { - dimensionName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDimension(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDimension.class, com.google.analytics.admin.v1beta.AccessDimension.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object dimensionName_ = ""; - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - 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.admin.v1beta.AccessDimension)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessDimension other = (com.google.analytics.admin.v1beta.AccessDimension) 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.admin.v1beta.AccessDimension parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessDimension parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessDimension parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDimension parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessDimension prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Dimensions are attributes of your data. For example, the dimension
-   * `userEmail` indicates the email of the user that accessed reporting data.
-   * Dimension values in report responses are strings.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDimension} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDimension) - com.google.analytics.admin.v1beta.AccessDimensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDimension.class, com.google.analytics.admin.v1beta.AccessDimension.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessDimension.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dimensionName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimension getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimension build() { - com.google.analytics.admin.v1beta.AccessDimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimension buildPartial() { - com.google.analytics.admin.v1beta.AccessDimension result = new com.google.analytics.admin.v1beta.AccessDimension(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessDimension result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dimensionName_ = dimensionName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessDimension) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessDimension)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDimension other) { - if (other == com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - dimensionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object dimensionName_ = ""; - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - dimensionName_ = getDefaultInstance().getDimensionName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The API name of the dimension. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of dimensions supported in this API.
-     *
-     * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-     * 
- * - * string dimension_name = 1; - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - dimensionName_ = value; - 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.admin.v1beta.AccessDimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDimension) - private static final com.google.analytics.admin.v1beta.AccessDimension DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDimension(); - } - - public static com.google.analytics.admin.v1beta.AccessDimension getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeader.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeader.java deleted file mode 100644 index 176ae41d7c47..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeader.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Describes a dimension column in the report. Dimensions requested in a report
- * produce column entries within rows and DimensionHeaders. However, dimensions
- * used exclusively within filters or expressions do not produce columns in a
- * report; correspondingly, those dimensions do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionHeader} - */ -public final class AccessDimensionHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDimensionHeader) - AccessDimensionHeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDimensionHeader.newBuilder() to construct. - private AccessDimensionHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDimensionHeader() { - dimensionName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDimensionHeader(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDimensionHeader.class, com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder.class); - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object dimensionName_ = ""; - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - 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.admin.v1beta.AccessDimensionHeader)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessDimensionHeader other = (com.google.analytics.admin.v1beta.AccessDimensionHeader) 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.admin.v1beta.AccessDimensionHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDimensionHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessDimensionHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes a dimension column in the report. Dimensions requested in a report
-   * produce column entries within rows and DimensionHeaders. However, dimensions
-   * used exclusively within filters or expressions do not produce columns in a
-   * report; correspondingly, those dimensions do not produce headers.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDimensionHeader) - com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDimensionHeader.class, com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessDimensionHeader.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dimensionName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionHeader getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionHeader build() { - com.google.analytics.admin.v1beta.AccessDimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionHeader buildPartial() { - com.google.analytics.admin.v1beta.AccessDimensionHeader result = new com.google.analytics.admin.v1beta.AccessDimensionHeader(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessDimensionHeader result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dimensionName_ = dimensionName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessDimensionHeader) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessDimensionHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDimensionHeader other) { - if (other == com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - dimensionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object dimensionName_ = ""; - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - dimensionName_ = getDefaultInstance().getDimensionName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The dimension's name; for example 'userEmail'.
-     * 
- * - * string dimension_name = 1; - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - dimensionName_ = value; - 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.admin.v1beta.AccessDimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDimensionHeader) - private static final com.google.analytics.admin.v1beta.AccessDimensionHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDimensionHeader(); - } - - public static com.google.analytics.admin.v1beta.AccessDimensionHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimensionHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeaderOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeaderOrBuilder.java deleted file mode 100644 index 11e73700f1be..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionHeaderOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessDimensionHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDimensionHeader) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - *
-   * The dimension's name; for example 'userEmail'.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString - getDimensionNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionOrBuilder.java deleted file mode 100644 index 24d401f006ed..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessDimensionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDimension) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - *
-   * The API name of the dimension. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of dimensions supported in this API.
-   *
-   * Dimensions are referenced by name in `dimensionFilter` and `orderBys`.
-   * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString - getDimensionNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValue.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValue.java deleted file mode 100644 index 9ca07d8ba92c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValue.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The value of a dimension.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionValue} - */ -public final class AccessDimensionValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessDimensionValue) - AccessDimensionValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessDimensionValue.newBuilder() to construct. - private AccessDimensionValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessDimensionValue() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessDimensionValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDimensionValue.class, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - 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(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - 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.admin.v1beta.AccessDimensionValue)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessDimensionValue other = (com.google.analytics.admin.v1beta.AccessDimensionValue) obj; - - if (!getValue() - .equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessDimensionValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessDimensionValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The value of a dimension.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessDimensionValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessDimensionValue) - com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessDimensionValue.class, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessDimensionValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionValue build() { - com.google.analytics.admin.v1beta.AccessDimensionValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionValue buildPartial() { - com.google.analytics.admin.v1beta.AccessDimensionValue result = new com.google.analytics.admin.v1beta.AccessDimensionValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessDimensionValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessDimensionValue) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessDimensionValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessDimensionValue other) { - if (other == com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object value_ = ""; - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The dimension value. For example, this value may be 'France' for the
-     * 'country' dimension.
-     * 
- * - * string value = 1; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - 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.admin.v1beta.AccessDimensionValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessDimensionValue) - private static final com.google.analytics.admin.v1beta.AccessDimensionValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessDimensionValue(); - } - - public static com.google.analytics.admin.v1beta.AccessDimensionValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessDimensionValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValueOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValueOrBuilder.java deleted file mode 100644 index 1c4db70bba9d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessDimensionValueOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessDimensionValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessDimensionValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * The dimension value. For example, this value may be 'France' for the
-   * 'country' dimension.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilter.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilter.java deleted file mode 100644 index 3111beeec872..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilter.java +++ /dev/null @@ -1,1676 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessFilter} - */ -public final class AccessFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessFilter) - AccessFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessFilter.newBuilder() to construct. - private AccessFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessFilter.class, com.google.analytics.admin.v1beta.AccessFilter.Builder.class); - } - - private int oneFilterCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneFilter_; - public enum OneFilterCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STRING_FILTER(2), - IN_LIST_FILTER(3), - NUMERIC_FILTER(4), - BETWEEN_FILTER(5), - ONEFILTER_NOT_SET(0); - private final int value; - private OneFilterCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneFilterCase valueOf(int value) { - return forNumber(value); - } - - public static OneFilterCase forNumber(int value) { - switch (value) { - case 2: return STRING_FILTER; - case 3: return IN_LIST_FILTER; - case 4: return NUMERIC_FILTER; - case 5: return BETWEEN_FILTER; - case 0: return ONEFILTER_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public static final int STRING_FILTER_FIELD_NUMBER = 2; - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilter getStringFilter() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); - } - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilter getInListFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); - } - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilter getNumericFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); - } - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); - } - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); - } - - public static final int FIELD_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object fieldName_ = ""; - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_); - } - 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(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_); - } - 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.admin.v1beta.AccessFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessFilter other = (com.google.analytics.admin.v1beta.AccessFilter) obj; - - if (!getFieldName() - .equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 2: - if (!getStringFilter() - .equals(other.getStringFilter())) return false; - break; - case 3: - if (!getInListFilter() - .equals(other.getInListFilter())) return false; - break; - case 4: - if (!getNumericFilter() - .equals(other.getNumericFilter())) return false; - break; - case 5: - if (!getBetweenFilter() - .equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!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) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (oneFilterCase_) { - case 2: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 4: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * An expression to filter dimension or metric values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessFilter) - com.google.analytics.admin.v1beta.AccessFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessFilter.class, com.google.analytics.admin.v1beta.AccessFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - fieldName_ = ""; - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilter build() { - com.google.analytics.admin.v1beta.AccessFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilter buildPartial() { - com.google.analytics.admin.v1beta.AccessFilter result = new com.google.analytics.admin.v1beta.AccessFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.fieldName_ = fieldName_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1beta.AccessFilter result) { - result.oneFilterCase_ = oneFilterCase_; - result.oneFilter_ = this.oneFilter_; - if (oneFilterCase_ == 2 && - stringFilterBuilder_ != null) { - result.oneFilter_ = stringFilterBuilder_.build(); - } - if (oneFilterCase_ == 3 && - inListFilterBuilder_ != null) { - result.oneFilter_ = inListFilterBuilder_.build(); - } - if (oneFilterCase_ == 4 && - numericFilterBuilder_ != null) { - result.oneFilter_ = numericFilterBuilder_.build(); - } - if (oneFilterCase_ == 5 && - betweenFilterBuilder_ != null) { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessFilter) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessFilter other) { - if (other == com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - bitField0_ |= 0x00000010; - onChanged(); - } - switch (other.getOneFilterCase()) { - case STRING_FILTER: { - mergeStringFilter(other.getStringFilter()); - break; - } - case IN_LIST_FILTER: { - mergeInListFilter(other.getInListFilter()); - break; - } - case NUMERIC_FILTER: { - mergeNumericFilter(other.getNumericFilter()); - break; - } - case BETWEEN_FILTER: { - mergeBetweenFilter(other.getBetweenFilter()); - break; - } - case ONEFILTER_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - fieldName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 10 - case 18: { - input.readMessage( - getStringFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getInListFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getNumericFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: { - input.readMessage( - getBetweenFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneFilterCase_ = 0; - private java.lang.Object oneFilter_; - public OneFilterCase - getOneFilterCase() { - return OneFilterCase.forNumber( - oneFilterCase_); - } - - public Builder clearOneFilter() { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessStringFilter, com.google.analytics.admin.v1beta.AccessStringFilter.Builder, com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder> stringFilterBuilder_; - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 2) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); - } - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - public Builder setStringFilter(com.google.analytics.admin.v1beta.AccessStringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - public Builder setStringFilter( - com.google.analytics.admin.v1beta.AccessStringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - public Builder mergeStringFilter(com.google.analytics.admin.v1beta.AccessStringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2 && - oneFilter_ != com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessStringFilter.newBuilder((com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 2) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 2; - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - public com.google.analytics.admin.v1beta.AccessStringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); - } - } - /** - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessStringFilter, com.google.analytics.admin.v1beta.AccessStringFilter.Builder, com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 2)) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessStringFilter, com.google.analytics.admin.v1beta.AccessStringFilter.Builder, com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder>( - (com.google.analytics.admin.v1beta.AccessStringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 2; - onChanged(); - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessInListFilter, com.google.analytics.admin.v1beta.AccessInListFilter.Builder, com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder> inListFilterBuilder_; - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - public Builder setInListFilter(com.google.analytics.admin.v1beta.AccessInListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - public Builder setInListFilter( - com.google.analytics.admin.v1beta.AccessInListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - public Builder mergeInListFilter(com.google.analytics.admin.v1beta.AccessInListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3 && - oneFilter_ != com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessInListFilter.newBuilder((com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 3; - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - public com.google.analytics.admin.v1beta.AccessInListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessInListFilter, com.google.analytics.admin.v1beta.AccessInListFilter.Builder, com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessInListFilter, com.google.analytics.admin.v1beta.AccessInListFilter.Builder, com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder>( - (com.google.analytics.admin.v1beta.AccessInListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessNumericFilter, com.google.analytics.admin.v1beta.AccessNumericFilter.Builder, com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder> numericFilterBuilder_; - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter(com.google.analytics.admin.v1beta.AccessNumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter( - com.google.analytics.admin.v1beta.AccessNumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - public Builder mergeNumericFilter(com.google.analytics.admin.v1beta.AccessNumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4 && - oneFilter_ != com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessNumericFilter.newBuilder((com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - public com.google.analytics.admin.v1beta.AccessNumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessNumericFilter, com.google.analytics.admin.v1beta.AccessNumericFilter.Builder, com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessNumericFilter, com.google.analytics.admin.v1beta.AccessNumericFilter.Builder, com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder>( - (com.google.analytics.admin.v1beta.AccessNumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessBetweenFilter, com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder, com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder> betweenFilterBuilder_; - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter(com.google.analytics.admin.v1beta.AccessBetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter( - com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - public Builder mergeBetweenFilter(com.google.analytics.admin.v1beta.AccessBetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5 && - oneFilter_ != com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance()) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessBetweenFilter.newBuilder((com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_) - .mergeFrom(value).buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - public com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_; - } - return com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); - } - } - /** - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessBetweenFilter, com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder, com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.admin.v1beta.AccessBetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessBetweenFilter, com.google.analytics.admin.v1beta.AccessBetweenFilter.Builder, com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder>( - (com.google.analytics.admin.v1beta.AccessBetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - return betweenFilterBuilder_; - } - - private java.lang.Object fieldName_ = ""; - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - fieldName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - fieldName_ = getDefaultInstance().getFieldName(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * The dimension name or metric name.
-     * 
- * - * string field_name = 1; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - fieldName_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessFilter) - private static final com.google.analytics.admin.v1beta.AccessFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessFilter(); - } - - public static com.google.analytics.admin.v1beta.AccessFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpression.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpression.java deleted file mode 100644 index 4ca74b22e266..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpression.java +++ /dev/null @@ -1,1526 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Expresses dimension or metric filters. The fields in the same expression need
- * to be either all dimensions or all metrics.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpression} - */ -public final class AccessFilterExpression extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessFilterExpression) - AccessFilterExpressionOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessFilterExpression.newBuilder() to construct. - private AccessFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessFilterExpression() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessFilterExpression(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessFilterExpression.class, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder.class); - } - - private int oneExpressionCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneExpression_; - public enum OneExpressionCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AND_GROUP(1), - OR_GROUP(2), - NOT_EXPRESSION(3), - ACCESS_FILTER(4), - ONEEXPRESSION_NOT_SET(0); - private final int value; - private OneExpressionCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneExpressionCase valueOf(int value) { - return forNumber(value); - } - - public static OneExpressionCase forNumber(int value) { - switch (value) { - case 1: return AND_GROUP; - case 2: return OR_GROUP; - case 3: return NOT_EXPRESSION; - case 4: return ACCESS_FILTER; - case 0: return ONEEXPRESSION_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneExpressionCase - getOneExpressionCase() { - return OneExpressionCase.forNumber( - oneExpressionCase_); - } - - public static final int AND_GROUP_FIELD_NUMBER = 1; - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return oneExpressionCase_ == 1; - } - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList getAndGroup() { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return oneExpressionCase_ == 2; - } - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList getOrGroup() { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return oneExpressionCase_ == 3; - } - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression getNotExpression() { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); - } - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); - } - - public static final int ACCESS_FILTER_FIELD_NUMBER = 4; - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return Whether the accessFilter field is set. - */ - @java.lang.Override - public boolean hasAccessFilter() { - return oneExpressionCase_ == 4; - } - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return The accessFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilter getAccessFilter() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); - } - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterOrBuilder getAccessFilterOrBuilder() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oneExpressionCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_); - } - if (oneExpressionCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneExpressionCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_); - } - if (oneExpressionCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_); - } - if (oneExpressionCase_ == 4) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_); - } - 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.admin.v1beta.AccessFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessFilterExpression other = (com.google.analytics.admin.v1beta.AccessFilterExpression) obj; - - if (!getOneExpressionCase().equals(other.getOneExpressionCase())) return false; - switch (oneExpressionCase_) { - case 1: - if (!getAndGroup() - .equals(other.getAndGroup())) return false; - break; - case 2: - if (!getOrGroup() - .equals(other.getOrGroup())) return false; - break; - case 3: - if (!getNotExpression() - .equals(other.getNotExpression())) return false; - break; - case 4: - if (!getAccessFilter() - .equals(other.getAccessFilter())) return false; - break; - case 0: - default: - } - if (!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 (oneExpressionCase_) { - case 1: - hash = (37 * hash) + AND_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getAndGroup().hashCode(); - break; - case 2: - hash = (37 * hash) + OR_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getOrGroup().hashCode(); - break; - case 3: - hash = (37 * hash) + NOT_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getNotExpression().hashCode(); - break; - case 4: - hash = (37 * hash) + ACCESS_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getAccessFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Expresses dimension or metric filters. The fields in the same expression need
-   * to be either all dimensions or all metrics.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpression} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessFilterExpression) - com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessFilterExpression.class, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessFilterExpression.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (accessFilterBuilder_ != null) { - accessFilterBuilder_.clear(); - } - oneExpressionCase_ = 0; - oneExpression_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression build() { - com.google.analytics.admin.v1beta.AccessFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression buildPartial() { - com.google.analytics.admin.v1beta.AccessFilterExpression result = new com.google.analytics.admin.v1beta.AccessFilterExpression(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessFilterExpression result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1beta.AccessFilterExpression result) { - result.oneExpressionCase_ = oneExpressionCase_; - result.oneExpression_ = this.oneExpression_; - if (oneExpressionCase_ == 1 && - andGroupBuilder_ != null) { - result.oneExpression_ = andGroupBuilder_.build(); - } - if (oneExpressionCase_ == 2 && - orGroupBuilder_ != null) { - result.oneExpression_ = orGroupBuilder_.build(); - } - if (oneExpressionCase_ == 3 && - notExpressionBuilder_ != null) { - result.oneExpression_ = notExpressionBuilder_.build(); - } - if (oneExpressionCase_ == 4 && - accessFilterBuilder_ != null) { - result.oneExpression_ = accessFilterBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessFilterExpression) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessFilterExpression)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessFilterExpression other) { - if (other == com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) return this; - switch (other.getOneExpressionCase()) { - case AND_GROUP: { - mergeAndGroup(other.getAndGroup()); - break; - } - case OR_GROUP: { - mergeOrGroup(other.getOrGroup()); - break; - } - case NOT_EXPRESSION: { - mergeNotExpression(other.getNotExpression()); - break; - } - case ACCESS_FILTER: { - mergeAccessFilter(other.getAccessFilter()); - break; - } - case ONEEXPRESSION_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAndGroupFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getOrGroupFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 2; - break; - } // case 18 - case 26: { - input.readMessage( - getNotExpressionFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 3; - break; - } // case 26 - case 34: { - input.readMessage( - getAccessFilterFieldBuilder().getBuilder(), - extensionRegistry); - oneExpressionCase_ = 4; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneExpressionCase_ = 0; - private java.lang.Object oneExpression_; - public OneExpressionCase - getOneExpressionCase() { - return OneExpressionCase.forNumber( - oneExpressionCase_); - } - - public Builder clearOneExpression() { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpressionList, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> andGroupBuilder_; - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return oneExpressionCase_ == 1; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - oneExpressionCase_ = 1; - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 1; - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (oneExpressionCase_ == 1 && - oneExpression_ != com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilterExpressionList.newBuilder((com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 1; - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - public Builder clearAndGroup() { - if (andGroupBuilder_ == null) { - if (oneExpressionCase_ == 1) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 1) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - andGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((oneExpressionCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the and_group has an AND relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpressionList, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(oneExpressionCase_ == 1)) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpressionList, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 1; - onChanged(); - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpressionList, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> orGroupBuilder_; - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return oneExpressionCase_ == 2; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - oneExpressionCase_ = 2; - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 2; - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup(com.google.analytics.admin.v1beta.AccessFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (oneExpressionCase_ == 2 && - oneExpression_ != com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilterExpressionList.newBuilder((com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 2; - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - public Builder clearOrGroup() { - if (orGroupBuilder_ == null) { - if (oneExpressionCase_ == 2) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 2) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - orGroupBuilder_.clear(); - } - return this; - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((oneExpressionCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - } - /** - *
-     * Each of the FilterExpressions in the or_group has an OR relationship.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpressionList, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(oneExpressionCase_ == 2)) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpressionList, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder>( - (com.google.analytics.admin.v1beta.AccessFilterExpressionList) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 2; - onChanged(); - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> notExpressionBuilder_; - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return oneExpressionCase_ == 3; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - public Builder setNotExpression(com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - oneExpressionCase_ = 3; - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 3; - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - public Builder mergeNotExpression(com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (oneExpressionCase_ == 3 && - oneExpression_ != com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilterExpression.newBuilder((com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 3; - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - public Builder clearNotExpression() { - if (notExpressionBuilder_ == null) { - if (oneExpressionCase_ == 3) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 3) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - notExpressionBuilder_.clear(); - } - return this; - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((oneExpressionCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 3) { - return (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); - } - } - /** - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(oneExpressionCase_ == 3)) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( - (com.google.analytics.admin.v1beta.AccessFilterExpression) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 3; - onChanged(); - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilter, com.google.analytics.admin.v1beta.AccessFilter.Builder, com.google.analytics.admin.v1beta.AccessFilterOrBuilder> accessFilterBuilder_; - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return Whether the accessFilter field is set. - */ - @java.lang.Override - public boolean hasAccessFilter() { - return oneExpressionCase_ == 4; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return The accessFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilter getAccessFilter() { - if (accessFilterBuilder_ == null) { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); - } else { - if (oneExpressionCase_ == 4) { - return accessFilterBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); - } - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - public Builder setAccessFilter(com.google.analytics.admin.v1beta.AccessFilter value) { - if (accessFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneExpression_ = value; - onChanged(); - } else { - accessFilterBuilder_.setMessage(value); - } - oneExpressionCase_ = 4; - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - public Builder setAccessFilter( - com.google.analytics.admin.v1beta.AccessFilter.Builder builderForValue) { - if (accessFilterBuilder_ == null) { - oneExpression_ = builderForValue.build(); - onChanged(); - } else { - accessFilterBuilder_.setMessage(builderForValue.build()); - } - oneExpressionCase_ = 4; - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - public Builder mergeAccessFilter(com.google.analytics.admin.v1beta.AccessFilter value) { - if (accessFilterBuilder_ == null) { - if (oneExpressionCase_ == 4 && - oneExpression_ != com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance()) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilter.newBuilder((com.google.analytics.admin.v1beta.AccessFilter) oneExpression_) - .mergeFrom(value).buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 4) { - accessFilterBuilder_.mergeFrom(value); - } else { - accessFilterBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 4; - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - public Builder clearAccessFilter() { - if (accessFilterBuilder_ == null) { - if (oneExpressionCase_ == 4) { - oneExpressionCase_ = 0; - oneExpression_ = null; - onChanged(); - } - } else { - if (oneExpressionCase_ == 4) { - oneExpressionCase_ = 0; - oneExpression_ = null; - } - accessFilterBuilder_.clear(); - } - return this; - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - public com.google.analytics.admin.v1beta.AccessFilter.Builder getAccessFilterBuilder() { - return getAccessFilterFieldBuilder().getBuilder(); - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterOrBuilder getAccessFilterOrBuilder() { - if ((oneExpressionCase_ == 4) && (accessFilterBuilder_ != null)) { - return accessFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_; - } - return com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); - } - } - /** - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilter, com.google.analytics.admin.v1beta.AccessFilter.Builder, com.google.analytics.admin.v1beta.AccessFilterOrBuilder> - getAccessFilterFieldBuilder() { - if (accessFilterBuilder_ == null) { - if (!(oneExpressionCase_ == 4)) { - oneExpression_ = com.google.analytics.admin.v1beta.AccessFilter.getDefaultInstance(); - } - accessFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilter, com.google.analytics.admin.v1beta.AccessFilter.Builder, com.google.analytics.admin.v1beta.AccessFilterOrBuilder>( - (com.google.analytics.admin.v1beta.AccessFilter) oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 4; - onChanged(); - return accessFilterBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessFilterExpression) - private static final com.google.analytics.admin.v1beta.AccessFilterExpression DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessFilterExpression(); - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionList.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionList.java deleted file mode 100644 index 00b5c4d89265..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionList.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A list of filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpressionList} - */ -public final class AccessFilterExpressionList extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessFilterExpressionList) - AccessFilterExpressionListOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessFilterExpressionList.newBuilder() to construct. - private AccessFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessFilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessFilterExpressionList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessFilterExpressionList.class, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List expressions_; - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List getExpressionsList() { - return expressions_; - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsOrBuilderList() { - return expressions_; - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( - int index) { - return expressions_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < expressions_.size(); i++) { - output.writeMessage(1, expressions_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < expressions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, expressions_.get(i)); - } - size += 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.admin.v1beta.AccessFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessFilterExpressionList other = (com.google.analytics.admin.v1beta.AccessFilterExpressionList) obj; - - if (!getExpressionsList() - .equals(other.getExpressionsList())) 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 (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A list of filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessFilterExpressionList} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessFilterExpressionList) - com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessFilterExpressionList.class, com.google.analytics.admin.v1beta.AccessFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessFilterExpressionList.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList build() { - com.google.analytics.admin.v1beta.AccessFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList buildPartial() { - com.google.analytics.admin.v1beta.AccessFilterExpressionList result = new com.google.analytics.admin.v1beta.AccessFilterExpressionList(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.AccessFilterExpressionList result) { - if (expressionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - expressions_ = java.util.Collections.unmodifiableList(expressions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.expressions_ = expressions_; - } else { - result.expressions_ = expressionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessFilterExpressionList result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessFilterExpressionList) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessFilterExpressionList)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessFilterExpressionList other) { - if (other == com.google.analytics.admin.v1beta.AccessFilterExpressionList.getDefaultInstance()) return this; - if (expressionsBuilder_ == null) { - if (!other.expressions_.isEmpty()) { - if (expressions_.isEmpty()) { - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExpressionsIsMutable(); - expressions_.addAll(other.expressions_); - } - onChanged(); - } - } else { - if (!other.expressions_.isEmpty()) { - if (expressionsBuilder_.isEmpty()) { - expressionsBuilder_.dispose(); - expressionsBuilder_ = null; - expressions_ = other.expressions_; - bitField0_ = (bitField0_ & ~0x00000001); - expressionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getExpressionsFieldBuilder() : null; - } else { - expressionsBuilder_.addAllMessages(other.expressions_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.AccessFilterExpression m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessFilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List expressions_ = - java.util.Collections.emptyList(); - private void ensureExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - expressions_ = new java.util.ArrayList(expressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> expressionsBuilder_; - - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public java.util.List getExpressionsList() { - if (expressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expressions_); - } else { - return expressionsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public int getExpressionsCount() { - if (expressionsBuilder_ == null) { - return expressions_.size(); - } else { - return expressionsBuilder_.getCount(); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression getExpressions(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.set(index, value); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.set(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions(com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(value); - onChanged(); - } else { - expressionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(index, value); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions( - com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder addAllExpressions( - java.lang.Iterable values) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, expressions_); - onChanged(); - } else { - expressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder clearExpressions() { - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expressionsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public Builder removeExpressions(int index) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.remove(index); - onChanged(); - } else { - expressionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder getExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( - int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); } else { - return expressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsOrBuilderList() { - if (expressionsBuilder_ != null) { - return expressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expressions_); - } - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder addExpressionsBuilder() { - return getExpressionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder addExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()); - } - /** - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( - expressions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - expressions_ = null; - } - return expressionsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessFilterExpressionList) - private static final com.google.analytics.admin.v1beta.AccessFilterExpressionList DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessFilterExpressionList(); - } - - public static com.google.analytics.admin.v1beta.AccessFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionListOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionListOrBuilder.java deleted file mode 100644 index 01770bbf7559..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessFilterExpressionListOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - java.util.List - getExpressionsList(); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - com.google.analytics.admin.v1beta.AccessFilterExpression getExpressions(int index); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - int getExpressionsCount(); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - java.util.List - getExpressionsOrBuilderList(); - /** - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessFilterExpression expressions = 1; - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getExpressionsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionOrBuilder.java deleted file mode 100644 index c4424edc64b2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterExpressionOrBuilder.java +++ /dev/null @@ -1,122 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessFilterExpressionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - * @return The andGroup. - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionList getAndGroup(); - /** - *
-   * Each of the FilterExpressions in the and_group has an AND relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList and_group = 1; - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - * @return The orGroup. - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionList getOrGroup(); - /** - *
-   * Each of the FilterExpressions in the or_group has an OR relationship.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpressionList or_group = 2; - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - * @return The notExpression. - */ - com.google.analytics.admin.v1beta.AccessFilterExpression getNotExpression(); - /** - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression not_expression = 3; - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return Whether the accessFilter field is set. - */ - boolean hasAccessFilter(); - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - * @return The accessFilter. - */ - com.google.analytics.admin.v1beta.AccessFilter getAccessFilter(); - /** - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilter access_filter = 4; - */ - com.google.analytics.admin.v1beta.AccessFilterOrBuilder getAccessFilterOrBuilder(); - - com.google.analytics.admin.v1beta.AccessFilterExpression.OneExpressionCase getOneExpressionCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterOrBuilder.java deleted file mode 100644 index b3d8205fdf66..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessFilterOrBuilder.java +++ /dev/null @@ -1,139 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - * @return The stringFilter. - */ - com.google.analytics.admin.v1beta.AccessStringFilter getStringFilter(); - /** - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter string_filter = 2; - */ - com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder getStringFilterOrBuilder(); - - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - * @return The inListFilter. - */ - com.google.analytics.admin.v1beta.AccessInListFilter getInListFilter(); - /** - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessInListFilter in_list_filter = 3; - */ - com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder getInListFilterOrBuilder(); - - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - * @return The numericFilter. - */ - com.google.analytics.admin.v1beta.AccessNumericFilter getNumericFilter(); - /** - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter numeric_filter = 4; - */ - com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - * @return The betweenFilter. - */ - com.google.analytics.admin.v1beta.AccessBetweenFilter getBetweenFilter(); - /** - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessBetweenFilter between_filter = 5; - */ - com.google.analytics.admin.v1beta.AccessBetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - com.google.analytics.admin.v1beta.AccessFilter.OneFilterCase getOneFilterCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilter.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilter.java deleted file mode 100644 index 8398b5afc5a6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilter.java +++ /dev/null @@ -1,737 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The result needs to be in a list of string values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessInListFilter} - */ -public final class AccessInListFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessInListFilter) - AccessInListFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessInListFilter.newBuilder() to construct. - private AccessInListFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessInListFilter() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessInListFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessInListFilter.class, com.google.analytics.admin.v1beta.AccessInListFilter.Builder.class); - } - - public static final int VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - return values_; - } - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 2; - private boolean caseSensitive_ = false; - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 2; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < values_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, values_.getRaw(i)); - } - if (caseSensitive_ != false) { - output.writeBool(2, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, caseSensitive_); - } - size += 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.admin.v1beta.AccessInListFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessInListFilter other = (com.google.analytics.admin.v1beta.AccessInListFilter) obj; - - if (!getValuesList() - .equals(other.getValuesList())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) 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 (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessInListFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessInListFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessInListFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessInListFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The result needs to be in a list of string values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessInListFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessInListFilter) - com.google.analytics.admin.v1beta.AccessInListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessInListFilter.class, com.google.analytics.admin.v1beta.AccessInListFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessInListFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilter build() { - com.google.analytics.admin.v1beta.AccessInListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilter buildPartial() { - com.google.analytics.admin.v1beta.AccessInListFilter result = new com.google.analytics.admin.v1beta.AccessInListFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessInListFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - values_.makeImmutable(); - result.values_ = values_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessInListFilter) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessInListFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessInListFilter other) { - if (other == com.google.analytics.admin.v1beta.AccessInListFilter.getDefaultInstance()) return this; - if (!other.values_.isEmpty()) { - if (values_.isEmpty()) { - values_ = other.values_; - bitField0_ |= 0x00000001; - } else { - ensureValuesIsMutable(); - values_.addAll(other.values_); - } - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - case 16: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringArrayList values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureValuesIsMutable() { - if (!values_.isModifiable()) { - values_ = new com.google.protobuf.LazyStringArrayList(values_); - } - bitField0_ |= 0x00000001; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @return A list containing the values. - */ - public com.google.protobuf.ProtocolStringList - getValuesList() { - values_.makeImmutable(); - return values_; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @return The count of values. - */ - public int getValuesCount() { - return values_.size(); - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - public java.lang.String getValues(int index) { - return values_.get(index); - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { - return values_.getByteString(index); - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param index The index to set the value at. - * @param value The values to set. - * @return This builder for chaining. - */ - public Builder setValues( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param value The values to add. - * @return This builder for chaining. - */ - public Builder addValues( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param values The values to add. - * @return This builder for chaining. - */ - public Builder addAllValues( - java.lang.Iterable values) { - ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @return This builder for chaining. - */ - public Builder clearValues() { - values_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - *
-     * The list of string values. Must be non-empty.
-     * 
- * - * repeated string values = 1; - * @param value The bytes of the values to add. - * @return This builder for chaining. - */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureValuesIsMutable(); - values_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 2; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000002); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessInListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessInListFilter) - private static final com.google.analytics.admin.v1beta.AccessInListFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessInListFilter(); - } - - public static com.google.analytics.admin.v1beta.AccessInListFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessInListFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessInListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilterOrBuilder.java deleted file mode 100644 index ce9722f9cda7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessInListFilterOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessInListFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessInListFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return A list containing the values. - */ - java.util.List - getValuesList(); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @return The count of values. - */ - int getValuesCount(); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the element to return. - * @return The values at the given index. - */ - java.lang.String getValues(int index); - /** - *
-   * The list of string values. Must be non-empty.
-   * 
- * - * repeated string values = 1; - * @param index The index of the value to return. - * @return The bytes of the values at the given index. - */ - com.google.protobuf.ByteString - getValuesBytes(int index); - - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 2; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetric.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetric.java deleted file mode 100644 index f1319ed90125..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetric.java +++ /dev/null @@ -1,607 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The quantitative measurements of a report. For example, the metric
- * `accessCount` is the total number of data access records.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessMetric} - */ -public final class AccessMetric extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessMetric) - AccessMetricOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessMetric.newBuilder() to construct. - private AccessMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessMetric() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessMetric(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessMetric.class, com.google.analytics.admin.v1beta.AccessMetric.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object metricName_ = ""; - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - 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(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - 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.admin.v1beta.AccessMetric)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessMetric other = (com.google.analytics.admin.v1beta.AccessMetric) obj; - - if (!getMetricName() - .equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessMetric parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessMetric parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessMetric parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessMetric prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The quantitative measurements of a report. For example, the metric
-   * `accessCount` is the total number of data access records.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessMetric} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessMetric) - com.google.analytics.admin.v1beta.AccessMetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessMetric.class, com.google.analytics.admin.v1beta.AccessMetric.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessMetric.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - metricName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetric getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetric build() { - com.google.analytics.admin.v1beta.AccessMetric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetric buildPartial() { - com.google.analytics.admin.v1beta.AccessMetric result = new com.google.analytics.admin.v1beta.AccessMetric(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessMetric result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.metricName_ = metricName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessMetric) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessMetric)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessMetric other) { - if (other == com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance()) return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - metricName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @return This builder for chaining. - */ - public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The API name of the metric. See [Data Access
-     * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-     * for the list of metrics supported in this API.
-     *
-     * Metrics are referenced by name in `metricFilter` & `orderBys`.
-     * 
- * - * string metric_name = 1; - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - metricName_ = value; - 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.admin.v1beta.AccessMetric) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessMetric) - private static final com.google.analytics.admin.v1beta.AccessMetric DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessMetric(); - } - - public static com.google.analytics.admin.v1beta.AccessMetric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeader.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeader.java deleted file mode 100644 index 925c28e9f246..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeader.java +++ /dev/null @@ -1,583 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Describes a metric column in the report. Visible metrics requested in a
- * report produce column entries within rows and MetricHeaders. However,
- * metrics used exclusively within filters or expressions do not produce columns
- * in a report; correspondingly, those metrics do not produce headers.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricHeader} - */ -public final class AccessMetricHeader extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessMetricHeader) - AccessMetricHeaderOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessMetricHeader.newBuilder() to construct. - private AccessMetricHeader(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessMetricHeader() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessMetricHeader(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessMetricHeader.class, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object metricName_ = ""; - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - 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(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - 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.admin.v1beta.AccessMetricHeader)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessMetricHeader other = (com.google.analytics.admin.v1beta.AccessMetricHeader) obj; - - if (!getMetricName() - .equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessMetricHeader parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessMetricHeader prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Describes a metric column in the report. Visible metrics requested in a
-   * report produce column entries within rows and MetricHeaders. However,
-   * metrics used exclusively within filters or expressions do not produce columns
-   * in a report; correspondingly, those metrics do not produce headers.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricHeader} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessMetricHeader) - com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessMetricHeader.class, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessMetricHeader.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - metricName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricHeader getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricHeader build() { - com.google.analytics.admin.v1beta.AccessMetricHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricHeader buildPartial() { - com.google.analytics.admin.v1beta.AccessMetricHeader result = new com.google.analytics.admin.v1beta.AccessMetricHeader(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessMetricHeader result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.metricName_ = metricName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessMetricHeader) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessMetricHeader)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessMetricHeader other) { - if (other == com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance()) return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - metricName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @return This builder for chaining. - */ - public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The metric's name; for example 'accessCount'.
-     * 
- * - * string metric_name = 1; - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - metricName_ = value; - 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.admin.v1beta.AccessMetricHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessMetricHeader) - private static final com.google.analytics.admin.v1beta.AccessMetricHeader DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessMetricHeader(); - } - - public static com.google.analytics.admin.v1beta.AccessMetricHeader getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetricHeader parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeaderOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeaderOrBuilder.java deleted file mode 100644 index b22b13f656df..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricHeaderOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessMetricHeaderOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessMetricHeader) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-   * The metric's name; for example 'accessCount'.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricOrBuilder.java deleted file mode 100644 index 16a0a01ba706..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessMetricOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessMetric) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-   * The API name of the metric. See [Data Access
-   * Schema](https://developers.google.com/analytics/devguides/config/admin/v1/access-api-schema)
-   * for the list of metrics supported in this API.
-   *
-   * Metrics are referenced by name in `metricFilter` & `orderBys`.
-   * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValue.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValue.java deleted file mode 100644 index 40b88bab39cd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValue.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The value of a metric.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricValue} - */ -public final class AccessMetricValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessMetricValue) - AccessMetricValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessMetricValue.newBuilder() to construct. - private AccessMetricValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessMetricValue() { - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessMetricValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessMetricValue.class, com.google.analytics.admin.v1beta.AccessMetricValue.Builder.class); - } - - public static final int VALUE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); - } - 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(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); - } - 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.admin.v1beta.AccessMetricValue)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessMetricValue other = (com.google.analytics.admin.v1beta.AccessMetricValue) obj; - - if (!getValue() - .equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessMetricValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessMetricValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessMetricValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessMetricValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The value of a metric.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessMetricValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessMetricValue) - com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessMetricValue.class, com.google.analytics.admin.v1beta.AccessMetricValue.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessMetricValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - value_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricValue build() { - com.google.analytics.admin.v1beta.AccessMetricValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricValue buildPartial() { - com.google.analytics.admin.v1beta.AccessMetricValue result = new com.google.analytics.admin.v1beta.AccessMetricValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessMetricValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.value_ = value_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessMetricValue) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessMetricValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessMetricValue other) { - if (other == com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance()) return this; - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object value_ = ""; - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The measurement value. For example, this value may be '13'.
-     * 
- * - * string value = 1; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - 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.admin.v1beta.AccessMetricValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessMetricValue) - private static final com.google.analytics.admin.v1beta.AccessMetricValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessMetricValue(); - } - - public static com.google.analytics.admin.v1beta.AccessMetricValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessMetricValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValueOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValueOrBuilder.java deleted file mode 100644 index 07277214c5db..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessMetricValueOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessMetricValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessMetricValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * The measurement value. For example, this value may be '13'.
-   * 
- * - * string value = 1; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilter.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilter.java deleted file mode 100644 index a8be99f84b56..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilter.java +++ /dev/null @@ -1,960 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Filters for numeric or date values.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessNumericFilter} - */ -public final class AccessNumericFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessNumericFilter) - AccessNumericFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessNumericFilter.newBuilder() to construct. - private AccessNumericFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessNumericFilter() { - operation_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessNumericFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessNumericFilter.class, com.google.analytics.admin.v1beta.AccessNumericFilter.Builder.class); - } - - /** - *
-   * The operation applied to a numeric filter.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.AccessNumericFilter.Operation} - */ - public enum Operation - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unspecified.
-     * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - OPERATION_UNSPECIFIED(0), - /** - *
-     * Equal
-     * 
- * - * EQUAL = 1; - */ - EQUAL(1), - /** - *
-     * Less than
-     * 
- * - * LESS_THAN = 2; - */ - LESS_THAN(2), - /** - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - LESS_THAN_OR_EQUAL(3), - /** - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 4; - */ - GREATER_THAN(4), - /** - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - GREATER_THAN_OR_EQUAL(5), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unspecified.
-     * 
- * - * OPERATION_UNSPECIFIED = 0; - */ - public static final int OPERATION_UNSPECIFIED_VALUE = 0; - /** - *
-     * Equal
-     * 
- * - * EQUAL = 1; - */ - public static final int EQUAL_VALUE = 1; - /** - *
-     * Less than
-     * 
- * - * LESS_THAN = 2; - */ - public static final int LESS_THAN_VALUE = 2; - /** - *
-     * Less than or equal
-     * 
- * - * LESS_THAN_OR_EQUAL = 3; - */ - public static final int LESS_THAN_OR_EQUAL_VALUE = 3; - /** - *
-     * Greater than
-     * 
- * - * GREATER_THAN = 4; - */ - public static final int GREATER_THAN_VALUE = 4; - /** - *
-     * Greater than or equal
-     * 
- * - * GREATER_THAN_OR_EQUAL = 5; - */ - public static final int GREATER_THAN_OR_EQUAL_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Operation valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Operation forNumber(int value) { - switch (value) { - case 0: return OPERATION_UNSPECIFIED; - case 1: return EQUAL; - case 2: return LESS_THAN; - case 3: return LESS_THAN_OR_EQUAL; - case 4: return GREATER_THAN; - case 5: return GREATER_THAN_OR_EQUAL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Operation> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Operation findValueByNumber(int number) { - return Operation.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessNumericFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final Operation[] VALUES = values(); - - public static Operation valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Operation(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.AccessNumericFilter.Operation) - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private int operation_ = 0; - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override public int getOperationValue() { - return operation_; - } - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return The operation. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.AccessNumericFilter.Operation getOperation() { - com.google.analytics.admin.v1beta.AccessNumericFilter.Operation result = com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.forNumber(operation_); - return result == null ? com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.NumericValue value_; - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - * @return Whether the value field is set. - */ - @java.lang.Override - public boolean hasValue() { - return value_ != null; - } - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - * @return The value. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValue getValue() { - return value_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : value_; - } - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValueOrBuilder getValueOrBuilder() { - return value_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : value_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (operation_ != com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED.getNumber()) { - output.writeEnum(1, operation_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operation_ != com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.OPERATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, operation_); - } - if (value_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getValue()); - } - size += 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.admin.v1beta.AccessNumericFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessNumericFilter other = (com.google.analytics.admin.v1beta.AccessNumericFilter) obj; - - if (operation_ != other.operation_) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue() - .equals(other.getValue())) 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) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + operation_; - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessNumericFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessNumericFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Filters for numeric or date values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessNumericFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessNumericFilter) - com.google.analytics.admin.v1beta.AccessNumericFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessNumericFilter.class, com.google.analytics.admin.v1beta.AccessNumericFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessNumericFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - operation_ = 0; - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilter build() { - com.google.analytics.admin.v1beta.AccessNumericFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilter buildPartial() { - com.google.analytics.admin.v1beta.AccessNumericFilter result = new com.google.analytics.admin.v1beta.AccessNumericFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessNumericFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.operation_ = operation_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = valueBuilder_ == null - ? value_ - : valueBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessNumericFilter) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessNumericFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessNumericFilter other) { - if (other == com.google.analytics.admin.v1beta.AccessNumericFilter.getDefaultInstance()) return this; - if (other.operation_ != 0) { - setOperationValue(other.getOperationValue()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - operation_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - input.readMessage( - getValueFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int operation_ = 0; - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return The enum numeric value on the wire for operation. - */ - @java.lang.Override public int getOperationValue() { - return operation_; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @param value The enum numeric value on the wire for operation to set. - * @return This builder for chaining. - */ - public Builder setOperationValue(int value) { - operation_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilter.Operation getOperation() { - com.google.analytics.admin.v1beta.AccessNumericFilter.Operation result = com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.forNumber(operation_); - return result == null ? com.google.analytics.admin.v1beta.AccessNumericFilter.Operation.UNRECOGNIZED : result; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(com.google.analytics.admin.v1beta.AccessNumericFilter.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - operation_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return This builder for chaining. - */ - public Builder clearOperation() { - bitField0_ = (bitField0_ & ~0x00000001); - operation_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.NumericValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder> valueBuilder_; - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - * @return Whether the value field is set. - */ - public boolean hasValue() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - * @return The value. - */ - public com.google.analytics.admin.v1beta.NumericValue getValue() { - if (valueBuilder_ == null) { - return value_ == null ? com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - public Builder setValue(com.google.analytics.admin.v1beta.NumericValue value) { - if (valueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - value_ = value; - } else { - valueBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - public Builder setValue( - com.google.analytics.admin.v1beta.NumericValue.Builder builderForValue) { - if (valueBuilder_ == null) { - value_ = builderForValue.build(); - } else { - valueBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - public Builder mergeValue(com.google.analytics.admin.v1beta.NumericValue value) { - if (valueBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - value_ != null && - value_ != com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) { - getValueBuilder().mergeFrom(value); - } else { - value_ = value; - } - } else { - valueBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - public Builder clearValue() { - bitField0_ = (bitField0_ & ~0x00000002); - value_ = null; - if (valueBuilder_ != null) { - valueBuilder_.dispose(); - valueBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - public com.google.analytics.admin.v1beta.NumericValue.Builder getValueBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - public com.google.analytics.admin.v1beta.NumericValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null ? - com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance() : value_; - } - } - /** - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.NumericValue, com.google.analytics.admin.v1beta.NumericValue.Builder, com.google.analytics.admin.v1beta.NumericValueOrBuilder>( - getValue(), - getParentForChildren(), - isClean()); - value_ = null; - } - return valueBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessNumericFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessNumericFilter) - private static final com.google.analytics.admin.v1beta.AccessNumericFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessNumericFilter(); - } - - public static com.google.analytics.admin.v1beta.AccessNumericFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessNumericFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessNumericFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilterOrBuilder.java deleted file mode 100644 index e05ea52f14ee..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessNumericFilterOrBuilder.java +++ /dev/null @@ -1,55 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessNumericFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessNumericFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return The enum numeric value on the wire for operation. - */ - int getOperationValue(); - /** - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessNumericFilter.Operation operation = 1; - * @return The operation. - */ - com.google.analytics.admin.v1beta.AccessNumericFilter.Operation getOperation(); - - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - * @return The value. - */ - com.google.analytics.admin.v1beta.NumericValue getValue(); - /** - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.admin.v1beta.NumericValue value = 2; - */ - com.google.analytics.admin.v1beta.NumericValueOrBuilder getValueOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderBy.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderBy.java deleted file mode 100644 index c6e79adae06e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderBy.java +++ /dev/null @@ -1,2596 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Order bys define how rows will be sorted in the response. For example,
- * ordering rows by descending access count is one ordering, and ordering rows
- * by the country string is a different ordering.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy} - */ -public final class AccessOrderBy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessOrderBy) - AccessOrderByOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessOrderBy.newBuilder() to construct. - private AccessOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessOrderBy() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessOrderBy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessOrderBy.class, com.google.analytics.admin.v1beta.AccessOrderBy.Builder.class); - } - - public interface MetricOrderByOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - java.lang.String getMetricName(); - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - com.google.protobuf.ByteString - getMetricNameBytes(); - } - /** - *
-   * Sorts by metric values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy} - */ - public static final class MetricOrderBy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) - MetricOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use MetricOrderBy.newBuilder() to construct. - private MetricOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MetricOrderBy() { - metricName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MetricOrderBy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.class, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder.class); - } - - public static final int METRIC_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object metricName_ = ""; - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The metricName. - */ - @java.lang.Override - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } - } - /** - *
-     * A metric name in the request to order by.
-     * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); - } - 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(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - 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.admin.v1beta.AccessOrderBy.MetricOrderBy)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy other = (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) obj; - - if (!getMetricName() - .equals(other.getMetricName())) 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) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Sorts by metric values.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.class, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - metricName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy build() { - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy buildPartial() { - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy result = new com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.metricName_ = metricName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy other) { - if (other == com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance()) return this; - if (!other.getMetricName().isEmpty()) { - metricName_ = other.metricName_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object metricName_ = ""; - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @return The metricName. - */ - public java.lang.String getMetricName() { - java.lang.Object ref = metricName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - metricName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @return The bytes for metricName. - */ - public com.google.protobuf.ByteString - getMetricNameBytes() { - java.lang.Object ref = metricName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - metricName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @param value The metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - metricName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @return This builder for chaining. - */ - public Builder clearMetricName() { - metricName_ = getDefaultInstance().getMetricName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A metric name in the request to order by.
-       * 
- * - * string metric_name = 1; - * @param value The bytes for metricName to set. - * @return This builder for chaining. - */ - public Builder setMetricNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - metricName_ = value; - 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.admin.v1beta.AccessOrderBy.MetricOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) - private static final com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy(); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MetricOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface DimensionOrderByOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - java.lang.String getDimensionName(); - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - com.google.protobuf.ByteString - getDimensionNameBytes(); - - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The enum numeric value on the wire for orderType. - */ - int getOrderTypeValue(); - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The orderType. - */ - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType getOrderType(); - } - /** - *
-   * Sorts by dimension values.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy} - */ - public static final class DimensionOrderBy extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) - DimensionOrderByOrBuilder { - private static final long serialVersionUID = 0L; - // Use DimensionOrderBy.newBuilder() to construct. - private DimensionOrderBy(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DimensionOrderBy() { - dimensionName_ = ""; - orderType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DimensionOrderBy(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.class, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder.class); - } - - /** - *
-     * Rule to order the string dimension values by.
-     * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType} - */ - public enum OrderType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - ORDER_TYPE_UNSPECIFIED(0), - /** - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - ALPHANUMERIC(1), - /** - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - CASE_INSENSITIVE_ALPHANUMERIC(2), - /** - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - NUMERIC(3), - UNRECOGNIZED(-1), - ; - - /** - *
-       * Unspecified.
-       * 
- * - * ORDER_TYPE_UNSPECIFIED = 0; - */ - public static final int ORDER_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-       * Alphanumeric sort by Unicode code point. For example, "2" < "A" < "X" <
-       * "b" < "z".
-       * 
- * - * ALPHANUMERIC = 1; - */ - public static final int ALPHANUMERIC_VALUE = 1; - /** - *
-       * Case insensitive alphanumeric sort by lower case Unicode code point.
-       * For example, "2" < "A" < "b" < "X" < "z".
-       * 
- * - * CASE_INSENSITIVE_ALPHANUMERIC = 2; - */ - public static final int CASE_INSENSITIVE_ALPHANUMERIC_VALUE = 2; - /** - *
-       * Dimension values are converted to numbers before sorting. For example
-       * in NUMERIC sort, "25" < "100", and in `ALPHANUMERIC` sort, "100" <
-       * "25". Non-numeric dimension values all have equal ordering value below
-       * all numeric values.
-       * 
- * - * NUMERIC = 3; - */ - public static final int NUMERIC_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OrderType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static OrderType forNumber(int value) { - switch (value) { - case 0: return ORDER_TYPE_UNSPECIFIED; - case 1: return ALPHANUMERIC; - case 2: return CASE_INSENSITIVE_ALPHANUMERIC; - case 3: return NUMERIC; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - OrderType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public OrderType findValueByNumber(int number) { - return OrderType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDescriptor().getEnumTypes().get(0); - } - - private static final OrderType[] VALUES = values(); - - public static OrderType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private OrderType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType) - } - - public static final int DIMENSION_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object dimensionName_ = ""; - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - @java.lang.Override - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } - } - /** - *
-     * A dimension name in the request to order by.
-     * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_TYPE_FIELD_NUMBER = 2; - private int orderType_ = 0; - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override public int getOrderTypeValue() { - return orderType_; - } - /** - *
-     * Controls the rule for dimension value ordering.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The orderType. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType getOrderType() { - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType result = com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.forNumber(orderType_); - return result == null ? com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - if (orderType_ != com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, orderType_); - } - 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_); - } - if (orderType_ != com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, orderType_); - } - 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.admin.v1beta.AccessOrderBy.DimensionOrderBy)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy other = (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) obj; - - if (!getDimensionName() - .equals(other.getDimensionName())) return false; - if (orderType_ != other.orderType_) 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 = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + orderType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Sorts by dimension values.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.class, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dimensionName_ = ""; - orderType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy build() { - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy buildPartial() { - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy result = new com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dimensionName_ = dimensionName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.orderType_ = orderType_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy other) { - if (other == com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.orderType_ != 0) { - setOrderTypeValue(other.getOrderTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - dimensionName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - orderType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object dimensionName_ = ""; - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @return The dimensionName. - */ - public java.lang.String getDimensionName() { - java.lang.Object ref = dimensionName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dimensionName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @return The bytes for dimensionName. - */ - public com.google.protobuf.ByteString - getDimensionNameBytes() { - java.lang.Object ref = dimensionName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - dimensionName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @param value The dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @return This builder for chaining. - */ - public Builder clearDimensionName() { - dimensionName_ = getDefaultInstance().getDimensionName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * A dimension name in the request to order by.
-       * 
- * - * string dimension_name = 1; - * @param value The bytes for dimensionName to set. - * @return This builder for chaining. - */ - public Builder setDimensionNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - dimensionName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int orderType_ = 0; - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The enum numeric value on the wire for orderType. - */ - @java.lang.Override public int getOrderTypeValue() { - return orderType_; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param value The enum numeric value on the wire for orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderTypeValue(int value) { - orderType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType getOrderType() { - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType result = com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.forNumber(orderType_); - return result == null ? com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED : result; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @param value The orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderType(com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - orderType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.OrderType order_type = 2; - * @return This builder for chaining. - */ - public Builder clearOrderType() { - bitField0_ = (bitField0_ & ~0x00000002); - orderType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) - private static final com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy(); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DimensionOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int oneOrderByCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object oneOrderBy_; - public enum OneOrderByCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - METRIC(1), - DIMENSION(2), - ONEORDERBY_NOT_SET(0); - private final int value; - private OneOrderByCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneOrderByCase valueOf(int value) { - return forNumber(value); - } - - public static OneOrderByCase forNumber(int value) { - switch (value) { - case 1: return METRIC; - case 2: return DIMENSION; - case 0: return ONEORDERBY_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneOrderByCase - getOneOrderByCase() { - return OneOrderByCase.forNumber( - oneOrderByCase_); - } - - public static final int METRIC_FIELD_NUMBER = 1; - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getMetric() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - - public static final int DIMENSION_FIELD_NUMBER = 2; - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDimension() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - - public static final int DESC_FIELD_NUMBER = 3; - private boolean desc_ = false; - /** - *
-   * If true, sorts by descending order. If false or unspecified, sorts in
-   * ascending order.
-   * 
- * - * bool desc = 3; - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oneOrderByCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_); - } - if (desc_ != false) { - output.writeBool(3, desc_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneOrderByCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_); - } - if (desc_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, desc_); - } - 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.admin.v1beta.AccessOrderBy)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessOrderBy other = (com.google.analytics.admin.v1beta.AccessOrderBy) obj; - - if (getDesc() - != other.getDesc()) return false; - if (!getOneOrderByCase().equals(other.getOneOrderByCase())) return false; - switch (oneOrderByCase_) { - case 1: - if (!getMetric() - .equals(other.getMetric())) return false; - break; - case 2: - if (!getDimension() - .equals(other.getDimension())) return false; - break; - case 0: - default: - } - if (!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) + DESC_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDesc()); - switch (oneOrderByCase_) { - case 1: - hash = (37 * hash) + METRIC_FIELD_NUMBER; - hash = (53 * hash) + getMetric().hashCode(); - break; - case 2: - hash = (37 * hash) + DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getDimension().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessOrderBy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessOrderBy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Order bys define how rows will be sorted in the response. For example,
-   * ordering rows by descending access count is one ordering, and ordering rows
-   * by the country string is a different ordering.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessOrderBy} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessOrderBy) - com.google.analytics.admin.v1beta.AccessOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessOrderBy.class, com.google.analytics.admin.v1beta.AccessOrderBy.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessOrderBy.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (metricBuilder_ != null) { - metricBuilder_.clear(); - } - if (dimensionBuilder_ != null) { - dimensionBuilder_.clear(); - } - desc_ = false; - oneOrderByCase_ = 0; - oneOrderBy_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy build() { - com.google.analytics.admin.v1beta.AccessOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy buildPartial() { - com.google.analytics.admin.v1beta.AccessOrderBy result = new com.google.analytics.admin.v1beta.AccessOrderBy(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessOrderBy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.desc_ = desc_; - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1beta.AccessOrderBy result) { - result.oneOrderByCase_ = oneOrderByCase_; - result.oneOrderBy_ = this.oneOrderBy_; - if (oneOrderByCase_ == 1 && - metricBuilder_ != null) { - result.oneOrderBy_ = metricBuilder_.build(); - } - if (oneOrderByCase_ == 2 && - dimensionBuilder_ != null) { - result.oneOrderBy_ = dimensionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessOrderBy) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessOrderBy)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessOrderBy other) { - if (other == com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance()) return this; - if (other.getDesc() != false) { - setDesc(other.getDesc()); - } - switch (other.getOneOrderByCase()) { - case METRIC: { - mergeMetric(other.getMetric()); - break; - } - case DIMENSION: { - mergeDimension(other.getDimension()); - break; - } - case ONEORDERBY_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getMetricFieldBuilder().getBuilder(), - extensionRegistry); - oneOrderByCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getDimensionFieldBuilder().getBuilder(), - extensionRegistry); - oneOrderByCase_ = 2; - break; - } // case 18 - case 24: { - desc_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneOrderByCase_ = 0; - private java.lang.Object oneOrderBy_; - public OneOrderByCase - getOneOrderByCase() { - return OneOrderByCase.forNumber( - oneOrderByCase_); - } - - public Builder clearOneOrderBy() { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder> metricBuilder_; - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return Whether the metric field is set. - */ - @java.lang.Override - public boolean hasMetric() { - return oneOrderByCase_ == 1; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 1) { - return metricBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric(com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - metricBuilder_.setMessage(value); - } - oneOrderByCase_ = 1; - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric( - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder builderForValue) { - if (metricBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - metricBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 1; - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder mergeMetric(com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1 && - oneOrderBy_ != com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance()) { - oneOrderBy_ = com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.newBuilder((com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_) - .mergeFrom(value).buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 1) { - metricBuilder_.mergeFrom(value); - } else { - metricBuilder_.setMessage(value); - } - } - oneOrderByCase_ = 1; - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - public Builder clearMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 1) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - metricBuilder_.clear(); - } - return this; - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder getMetricBuilder() { - return getMetricFieldBuilder().getBuilder(); - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { - return metricBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder> - getMetricFieldBuilder() { - if (metricBuilder_ == null) { - if (!(oneOrderByCase_ == 1)) { - oneOrderBy_ = com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.getDefaultInstance(); - } - metricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder>( - (com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 1; - onChanged(); - return metricBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder> dimensionBuilder_; - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return Whether the dimension field is set. - */ - @java.lang.Override - public boolean hasDimension() { - return oneOrderByCase_ == 2; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 2) { - return dimensionBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension(com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneOrderBy_ = value; - onChanged(); - } else { - dimensionBuilder_.setMessage(value); - } - oneOrderByCase_ = 2; - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension( - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder builderForValue) { - if (dimensionBuilder_ == null) { - oneOrderBy_ = builderForValue.build(); - onChanged(); - } else { - dimensionBuilder_.setMessage(builderForValue.build()); - } - oneOrderByCase_ = 2; - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder mergeDimension(com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2 && - oneOrderBy_ != com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance()) { - oneOrderBy_ = com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.newBuilder((com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_) - .mergeFrom(value).buildPartial(); - } else { - oneOrderBy_ = value; - } - onChanged(); - } else { - if (oneOrderByCase_ == 2) { - dimensionBuilder_.mergeFrom(value); - } else { - dimensionBuilder_.setMessage(value); - } - } - oneOrderByCase_ = 2; - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public Builder clearDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - onChanged(); - } - } else { - if (oneOrderByCase_ == 2) { - oneOrderByCase_ = 0; - oneOrderBy_ = null; - } - dimensionBuilder_.clear(); - } - return this; - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder getDimensionBuilder() { - return getDimensionFieldBuilder().getBuilder(); - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder() { - if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { - return dimensionBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder> - getDimensionFieldBuilder() { - if (dimensionBuilder_ == null) { - if (!(oneOrderByCase_ == 2)) { - oneOrderBy_ = com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.getDefaultInstance(); - } - dimensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder>( - (com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 2; - onChanged(); - return dimensionBuilder_; - } - - private boolean desc_ ; - /** - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * @return The desc. - */ - @java.lang.Override - public boolean getDesc() { - return desc_; - } - /** - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * @param value The desc to set. - * @return This builder for chaining. - */ - public Builder setDesc(boolean value) { - - desc_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * If true, sorts by descending order. If false or unspecified, sorts in
-     * ascending order.
-     * 
- * - * bool desc = 3; - * @return This builder for chaining. - */ - public Builder clearDesc() { - bitField0_ = (bitField0_ & ~0x00000004); - desc_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessOrderBy) - private static final com.google.analytics.admin.v1beta.AccessOrderBy DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessOrderBy(); - } - - public static com.google.analytics.admin.v1beta.AccessOrderBy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessOrderBy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderByOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderByOrBuilder.java deleted file mode 100644 index 57f77f1708a3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessOrderByOrBuilder.java +++ /dev/null @@ -1,76 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessOrderByOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessOrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return Whether the metric field is set. - */ - boolean hasMetric(); - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - * @return The metric. - */ - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy getMetric(); - /** - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.MetricOrderBy metric = 1; - */ - com.google.analytics.admin.v1beta.AccessOrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); - - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return Whether the dimension field is set. - */ - boolean hasDimension(); - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - * @return The dimension. - */ - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy getDimension(); - /** - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderBy dimension = 2; - */ - com.google.analytics.admin.v1beta.AccessOrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder(); - - /** - *
-   * If true, sorts by descending order. If false or unspecified, sorts in
-   * ascending order.
-   * 
- * - * bool desc = 3; - * @return The desc. - */ - boolean getDesc(); - - com.google.analytics.admin.v1beta.AccessOrderBy.OneOrderByCase getOneOrderByCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuota.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuota.java deleted file mode 100644 index db3a2176dc52..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuota.java +++ /dev/null @@ -1,1646 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Current state of all quotas for this Analytics property. If any quota for a
- * property is exhausted, all requests to that property will return Resource
- * Exhausted errors.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessQuota} - */ -public final class AccessQuota extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessQuota) - AccessQuotaOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessQuota.newBuilder() to construct. - private AccessQuota(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessQuota() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessQuota(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessQuota.class, com.google.analytics.admin.v1beta.AccessQuota.Builder.class); - } - - public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerDay_; - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return Whether the tokensPerDay field is set. - */ - @java.lang.Override - public boolean hasTokensPerDay() { - return tokensPerDay_ != null; - } - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return The tokensPerDay. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerDay() { - return tokensPerDay_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { - return tokensPerDay_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } - - public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerHour_; - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return Whether the tokensPerHour field is set. - */ - @java.lang.Override - public boolean hasTokensPerHour() { - return tokensPerHour_ != null; - } - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return The tokensPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerHour() { - return tokensPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { - return tokensPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } - - public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1beta.AccessQuotaStatus concurrentRequests_; - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return Whether the concurrentRequests field is set. - */ - @java.lang.Override - public boolean hasConcurrentRequests() { - return concurrentRequests_ != null; - } - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return The concurrentRequests. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus getConcurrentRequests() { - return concurrentRequests_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - return concurrentRequests_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } - - public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; - private com.google.analytics.admin.v1beta.AccessQuotaStatus serverErrorsPerProjectPerHour_; - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - @java.lang.Override - public boolean hasServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ != null; - } - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return The serverErrorsPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus getServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getServerErrorsPerProjectPerHourOrBuilder() { - return serverErrorsPerProjectPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } - - public static final int TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerProjectPerHour_; - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return Whether the tokensPerProjectPerHour field is set. - */ - @java.lang.Override - public boolean hasTokensPerProjectPerHour() { - return tokensPerProjectPerHour_ != null; - } - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return The tokensPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerProjectPerHour() { - return tokensPerProjectPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder() { - return tokensPerProjectPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (tokensPerDay_ != null) { - output.writeMessage(1, getTokensPerDay()); - } - if (tokensPerHour_ != null) { - output.writeMessage(2, getTokensPerHour()); - } - if (concurrentRequests_ != null) { - output.writeMessage(3, getConcurrentRequests()); - } - if (serverErrorsPerProjectPerHour_ != null) { - output.writeMessage(4, getServerErrorsPerProjectPerHour()); - } - if (tokensPerProjectPerHour_ != null) { - output.writeMessage(5, getTokensPerProjectPerHour()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tokensPerDay_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getTokensPerDay()); - } - if (tokensPerHour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getTokensPerHour()); - } - if (concurrentRequests_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getConcurrentRequests()); - } - if (serverErrorsPerProjectPerHour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getServerErrorsPerProjectPerHour()); - } - if (tokensPerProjectPerHour_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getTokensPerProjectPerHour()); - } - 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.admin.v1beta.AccessQuota)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessQuota other = (com.google.analytics.admin.v1beta.AccessQuota) obj; - - if (hasTokensPerDay() != other.hasTokensPerDay()) return false; - if (hasTokensPerDay()) { - if (!getTokensPerDay() - .equals(other.getTokensPerDay())) return false; - } - if (hasTokensPerHour() != other.hasTokensPerHour()) return false; - if (hasTokensPerHour()) { - if (!getTokensPerHour() - .equals(other.getTokensPerHour())) return false; - } - if (hasConcurrentRequests() != other.hasConcurrentRequests()) return false; - if (hasConcurrentRequests()) { - if (!getConcurrentRequests() - .equals(other.getConcurrentRequests())) return false; - } - if (hasServerErrorsPerProjectPerHour() != other.hasServerErrorsPerProjectPerHour()) return false; - if (hasServerErrorsPerProjectPerHour()) { - if (!getServerErrorsPerProjectPerHour() - .equals(other.getServerErrorsPerProjectPerHour())) return false; - } - if (hasTokensPerProjectPerHour() != other.hasTokensPerProjectPerHour()) return false; - if (hasTokensPerProjectPerHour()) { - if (!getTokensPerProjectPerHour() - .equals(other.getTokensPerProjectPerHour())) 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 (hasTokensPerDay()) { - hash = (37 * hash) + TOKENS_PER_DAY_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerDay().hashCode(); - } - if (hasTokensPerHour()) { - hash = (37 * hash) + TOKENS_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerHour().hashCode(); - } - if (hasConcurrentRequests()) { - hash = (37 * hash) + CONCURRENT_REQUESTS_FIELD_NUMBER; - hash = (53 * hash) + getConcurrentRequests().hashCode(); - } - if (hasServerErrorsPerProjectPerHour()) { - hash = (37 * hash) + SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getServerErrorsPerProjectPerHour().hashCode(); - } - if (hasTokensPerProjectPerHour()) { - hash = (37 * hash) + TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerProjectPerHour().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessQuota parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessQuota parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessQuota parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessQuota prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Current state of all quotas for this Analytics property. If any quota for a
-   * property is exhausted, all requests to that property will return Resource
-   * Exhausted errors.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessQuota} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessQuota) - com.google.analytics.admin.v1beta.AccessQuotaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessQuota.class, com.google.analytics.admin.v1beta.AccessQuota.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessQuota.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tokensPerDay_ = null; - if (tokensPerDayBuilder_ != null) { - tokensPerDayBuilder_.dispose(); - tokensPerDayBuilder_ = null; - } - tokensPerHour_ = null; - if (tokensPerHourBuilder_ != null) { - tokensPerHourBuilder_.dispose(); - tokensPerHourBuilder_ = null; - } - concurrentRequests_ = null; - if (concurrentRequestsBuilder_ != null) { - concurrentRequestsBuilder_.dispose(); - concurrentRequestsBuilder_ = null; - } - serverErrorsPerProjectPerHour_ = null; - if (serverErrorsPerProjectPerHourBuilder_ != null) { - serverErrorsPerProjectPerHourBuilder_.dispose(); - serverErrorsPerProjectPerHourBuilder_ = null; - } - tokensPerProjectPerHour_ = null; - if (tokensPerProjectPerHourBuilder_ != null) { - tokensPerProjectPerHourBuilder_.dispose(); - tokensPerProjectPerHourBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuota getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuota build() { - com.google.analytics.admin.v1beta.AccessQuota result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuota buildPartial() { - com.google.analytics.admin.v1beta.AccessQuota result = new com.google.analytics.admin.v1beta.AccessQuota(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessQuota result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tokensPerDay_ = tokensPerDayBuilder_ == null - ? tokensPerDay_ - : tokensPerDayBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tokensPerHour_ = tokensPerHourBuilder_ == null - ? tokensPerHour_ - : tokensPerHourBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.concurrentRequests_ = concurrentRequestsBuilder_ == null - ? concurrentRequests_ - : concurrentRequestsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.serverErrorsPerProjectPerHour_ = serverErrorsPerProjectPerHourBuilder_ == null - ? serverErrorsPerProjectPerHour_ - : serverErrorsPerProjectPerHourBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.tokensPerProjectPerHour_ = tokensPerProjectPerHourBuilder_ == null - ? tokensPerProjectPerHour_ - : tokensPerProjectPerHourBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessQuota) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessQuota)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessQuota other) { - if (other == com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance()) return this; - if (other.hasTokensPerDay()) { - mergeTokensPerDay(other.getTokensPerDay()); - } - if (other.hasTokensPerHour()) { - mergeTokensPerHour(other.getTokensPerHour()); - } - if (other.hasConcurrentRequests()) { - mergeConcurrentRequests(other.getConcurrentRequests()); - } - if (other.hasServerErrorsPerProjectPerHour()) { - mergeServerErrorsPerProjectPerHour(other.getServerErrorsPerProjectPerHour()); - } - if (other.hasTokensPerProjectPerHour()) { - mergeTokensPerProjectPerHour(other.getTokensPerProjectPerHour()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getTokensPerDayFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getTokensPerHourFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getConcurrentRequestsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - input.readMessage( - getTokensPerProjectPerHourFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerDay_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> tokensPerDayBuilder_; - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return Whether the tokensPerDay field is set. - */ - public boolean hasTokensPerDay() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return The tokensPerDay. - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - return tokensPerDay_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } else { - return tokensPerDayBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerDay_ = value; - } else { - tokensPerDayBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay( - com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerDayBuilder_ == null) { - tokensPerDay_ = builderForValue.build(); - } else { - tokensPerDayBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder mergeTokensPerDay(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - tokensPerDay_ != null && - tokensPerDay_ != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { - getTokensPerDayBuilder().mergeFrom(value); - } else { - tokensPerDay_ = value; - } - } else { - tokensPerDayBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - public Builder clearTokensPerDay() { - bitField0_ = (bitField0_ & ~0x00000001); - tokensPerDay_ = null; - if (tokensPerDayBuilder_ != null) { - tokensPerDayBuilder_.dispose(); - tokensPerDayBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder getTokensPerDayBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getTokensPerDayFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder() { - if (tokensPerDayBuilder_ != null) { - return tokensPerDayBuilder_.getMessageOrBuilder(); - } else { - return tokensPerDay_ == null ? - com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerDay_; - } - } - /** - *
-     * Properties can use 250,000 tokens per day. Most requests consume fewer than
-     * 10 tokens.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> - getTokensPerDayFieldBuilder() { - if (tokensPerDayBuilder_ == null) { - tokensPerDayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( - getTokensPerDay(), - getParentForChildren(), - isClean()); - tokensPerDay_ = null; - } - return tokensPerDayBuilder_; - } - - private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> tokensPerHourBuilder_; - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return Whether the tokensPerHour field is set. - */ - public boolean hasTokensPerHour() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return The tokensPerHour. - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - return tokensPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } else { - return tokensPerHourBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerHour_ = value; - } else { - tokensPerHourBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour( - com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerHourBuilder_ == null) { - tokensPerHour_ = builderForValue.build(); - } else { - tokensPerHourBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder mergeTokensPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - tokensPerHour_ != null && - tokensPerHour_ != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { - getTokensPerHourBuilder().mergeFrom(value); - } else { - tokensPerHour_ = value; - } - } else { - tokensPerHourBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - public Builder clearTokensPerHour() { - bitField0_ = (bitField0_ & ~0x00000002); - tokensPerHour_ = null; - if (tokensPerHourBuilder_ != null) { - tokensPerHourBuilder_.dispose(); - tokensPerHourBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder getTokensPerHourBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getTokensPerHourFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder() { - if (tokensPerHourBuilder_ != null) { - return tokensPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerHour_ == null ? - com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerHour_; - } - } - /** - *
-     * Properties can use 50,000 tokens per hour. An API request consumes a single
-     * number of tokens, and that number is deducted from all of the hourly,
-     * daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> - getTokensPerHourFieldBuilder() { - if (tokensPerHourBuilder_ == null) { - tokensPerHourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( - getTokensPerHour(), - getParentForChildren(), - isClean()); - tokensPerHour_ = null; - } - return tokensPerHourBuilder_; - } - - private com.google.analytics.admin.v1beta.AccessQuotaStatus concurrentRequests_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> concurrentRequestsBuilder_; - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return Whether the concurrentRequests field is set. - */ - public boolean hasConcurrentRequests() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return The concurrentRequests. - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus getConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - return concurrentRequests_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } else { - return concurrentRequestsBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - concurrentRequests_ = value; - } else { - concurrentRequestsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests( - com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { - if (concurrentRequestsBuilder_ == null) { - concurrentRequests_ = builderForValue.build(); - } else { - concurrentRequestsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder mergeConcurrentRequests(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - concurrentRequests_ != null && - concurrentRequests_ != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { - getConcurrentRequestsBuilder().mergeFrom(value); - } else { - concurrentRequests_ = value; - } - } else { - concurrentRequestsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - public Builder clearConcurrentRequests() { - bitField0_ = (bitField0_ & ~0x00000004); - concurrentRequests_ = null; - if (concurrentRequestsBuilder_ != null) { - concurrentRequestsBuilder_.dispose(); - concurrentRequestsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder getConcurrentRequestsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getConcurrentRequestsFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - if (concurrentRequestsBuilder_ != null) { - return concurrentRequestsBuilder_.getMessageOrBuilder(); - } else { - return concurrentRequests_ == null ? - com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : concurrentRequests_; - } - } - /** - *
-     * Properties can use up to 50 concurrent requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> - getConcurrentRequestsFieldBuilder() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequestsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( - getConcurrentRequests(), - getParentForChildren(), - isClean()); - concurrentRequests_ = null; - } - return concurrentRequestsBuilder_; - } - - private com.google.analytics.admin.v1beta.AccessQuotaStatus serverErrorsPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> serverErrorsPerProjectPerHourBuilder_; - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - public boolean hasServerErrorsPerProjectPerHour() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return The serverErrorsPerProjectPerHour. - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus getServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - return serverErrorsPerProjectPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } else { - return serverErrorsPerProjectPerHourBuilder_.getMessage(); - } - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder setServerErrorsPerProjectPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serverErrorsPerProjectPerHour_ = value; - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHour_ = builderForValue.build(); - } else { - serverErrorsPerProjectPerHourBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder mergeServerErrorsPerProjectPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - serverErrorsPerProjectPerHour_ != null && - serverErrorsPerProjectPerHour_ != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { - getServerErrorsPerProjectPerHourBuilder().mergeFrom(value); - } else { - serverErrorsPerProjectPerHour_ = value; - } - } else { - serverErrorsPerProjectPerHourBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public Builder clearServerErrorsPerProjectPerHour() { - bitField0_ = (bitField0_ & ~0x00000008); - serverErrorsPerProjectPerHour_ = null; - if (serverErrorsPerProjectPerHourBuilder_ != null) { - serverErrorsPerProjectPerHourBuilder_.dispose(); - serverErrorsPerProjectPerHourBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder getServerErrorsPerProjectPerHourBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(); - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getServerErrorsPerProjectPerHourOrBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ != null) { - return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return serverErrorsPerProjectPerHour_ == null ? - com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : serverErrorsPerProjectPerHour_; - } - } - /** - *
-     * Properties and cloud project pairs can have up to 50 server errors per
-     * hour.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> - getServerErrorsPerProjectPerHourFieldBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( - getServerErrorsPerProjectPerHour(), - getParentForChildren(), - isClean()); - serverErrorsPerProjectPerHour_ = null; - } - return serverErrorsPerProjectPerHourBuilder_; - } - - private com.google.analytics.admin.v1beta.AccessQuotaStatus tokensPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> tokensPerProjectPerHourBuilder_; - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return Whether the tokensPerProjectPerHour field is set. - */ - public boolean hasTokensPerProjectPerHour() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return The tokensPerProjectPerHour. - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerProjectPerHour() { - if (tokensPerProjectPerHourBuilder_ == null) { - return tokensPerProjectPerHour_ == null ? com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } else { - return tokensPerProjectPerHourBuilder_.getMessage(); - } - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder setTokensPerProjectPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (tokensPerProjectPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerProjectPerHour_ = value; - } else { - tokensPerProjectPerHourBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder setTokensPerProjectPerHour( - com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder builderForValue) { - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHour_ = builderForValue.build(); - } else { - tokensPerProjectPerHourBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder mergeTokensPerProjectPerHour(com.google.analytics.admin.v1beta.AccessQuotaStatus value) { - if (tokensPerProjectPerHourBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - tokensPerProjectPerHour_ != null && - tokensPerProjectPerHour_ != com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) { - getTokensPerProjectPerHourBuilder().mergeFrom(value); - } else { - tokensPerProjectPerHour_ = value; - } - } else { - tokensPerProjectPerHourBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public Builder clearTokensPerProjectPerHour() { - bitField0_ = (bitField0_ & ~0x00000010); - tokensPerProjectPerHour_ = null; - if (tokensPerProjectPerHourBuilder_ != null) { - tokensPerProjectPerHourBuilder_.dispose(); - tokensPerProjectPerHourBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder getTokensPerProjectPerHourBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getTokensPerProjectPerHourFieldBuilder().getBuilder(); - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - public com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder() { - if (tokensPerProjectPerHourBuilder_ != null) { - return tokensPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerProjectPerHour_ == null ? - com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance() : tokensPerProjectPerHour_; - } - } - /** - *
-     * Properties can use up to 25% of their tokens per project per hour. This
-     * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-     * hour. An API request consumes a single number of tokens, and that number is
-     * deducted from all of the hourly, daily, and per project hourly quotas.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder> - getTokensPerProjectPerHourFieldBuilder() { - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHourBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuotaStatus, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder, com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder>( - getTokensPerProjectPerHour(), - getParentForChildren(), - isClean()); - tokensPerProjectPerHour_ = null; - } - return tokensPerProjectPerHourBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessQuota) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessQuota) - private static final com.google.analytics.admin.v1beta.AccessQuota DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessQuota(); - } - - public static com.google.analytics.admin.v1beta.AccessQuota getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessQuota parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuota getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaOrBuilder.java deleted file mode 100644 index 58c6298388d0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaOrBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessQuotaOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessQuota) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return Whether the tokensPerDay field is set. - */ - boolean hasTokensPerDay(); - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - * @return The tokensPerDay. - */ - com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerDay(); - /** - *
-   * Properties can use 250,000 tokens per day. Most requests consume fewer than
-   * 10 tokens.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_day = 1; - */ - com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerDayOrBuilder(); - - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return Whether the tokensPerHour field is set. - */ - boolean hasTokensPerHour(); - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - * @return The tokensPerHour. - */ - com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerHour(); - /** - *
-   * Properties can use 50,000 tokens per hour. An API request consumes a single
-   * number of tokens, and that number is deducted from all of the hourly,
-   * daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_hour = 2; - */ - com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerHourOrBuilder(); - - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return Whether the concurrentRequests field is set. - */ - boolean hasConcurrentRequests(); - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - * @return The concurrentRequests. - */ - com.google.analytics.admin.v1beta.AccessQuotaStatus getConcurrentRequests(); - /** - *
-   * Properties can use up to 50 concurrent requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus concurrent_requests = 3; - */ - com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getConcurrentRequestsOrBuilder(); - - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return Whether the serverErrorsPerProjectPerHour field is set. - */ - boolean hasServerErrorsPerProjectPerHour(); - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - * @return The serverErrorsPerProjectPerHour. - */ - com.google.analytics.admin.v1beta.AccessQuotaStatus getServerErrorsPerProjectPerHour(); - /** - *
-   * Properties and cloud project pairs can have up to 50 server errors per
-   * hour.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus server_errors_per_project_per_hour = 4; - */ - com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getServerErrorsPerProjectPerHourOrBuilder(); - - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return Whether the tokensPerProjectPerHour field is set. - */ - boolean hasTokensPerProjectPerHour(); - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - * @return The tokensPerProjectPerHour. - */ - com.google.analytics.admin.v1beta.AccessQuotaStatus getTokensPerProjectPerHour(); - /** - *
-   * Properties can use up to 25% of their tokens per project per hour. This
-   * amounts to Analytics 360 Properties can use 12,500 tokens per project per
-   * hour. An API request consumes a single number of tokens, and that number is
-   * deducted from all of the hourly, daily, and per project hourly quotas.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuotaStatus tokens_per_project_per_hour = 5; - */ - com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatus.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatus.java deleted file mode 100644 index 50b67cb7eaff..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatus.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Current state for a particular quota group.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessQuotaStatus} - */ -public final class AccessQuotaStatus extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessQuotaStatus) - AccessQuotaStatusOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessQuotaStatus.newBuilder() to construct. - private AccessQuotaStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessQuotaStatus() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessQuotaStatus(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessQuotaStatus.class, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder.class); - } - - public static final int CONSUMED_FIELD_NUMBER = 1; - private int consumed_ = 0; - /** - *
-   * Quota consumed by this request.
-   * 
- * - * int32 consumed = 1; - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - - public static final int REMAINING_FIELD_NUMBER = 2; - private int remaining_ = 0; - /** - *
-   * Quota remaining after this request.
-   * 
- * - * int32 remaining = 2; - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (consumed_ != 0) { - output.writeInt32(1, consumed_); - } - if (remaining_ != 0) { - output.writeInt32(2, remaining_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (consumed_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, consumed_); - } - if (remaining_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, remaining_); - } - size += 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.admin.v1beta.AccessQuotaStatus)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessQuotaStatus other = (com.google.analytics.admin.v1beta.AccessQuotaStatus) obj; - - if (getConsumed() - != other.getConsumed()) return false; - if (getRemaining() - != other.getRemaining()) 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) + CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + getConsumed(); - hash = (37 * hash) + REMAINING_FIELD_NUMBER; - hash = (53 * hash) + getRemaining(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessQuotaStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessQuotaStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Current state for a particular quota group.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessQuotaStatus} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessQuotaStatus) - com.google.analytics.admin.v1beta.AccessQuotaStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessQuotaStatus.class, com.google.analytics.admin.v1beta.AccessQuotaStatus.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessQuotaStatus.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - consumed_ = 0; - remaining_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus build() { - com.google.analytics.admin.v1beta.AccessQuotaStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus buildPartial() { - com.google.analytics.admin.v1beta.AccessQuotaStatus result = new com.google.analytics.admin.v1beta.AccessQuotaStatus(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessQuotaStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.consumed_ = consumed_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.remaining_ = remaining_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessQuotaStatus) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessQuotaStatus)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessQuotaStatus other) { - if (other == com.google.analytics.admin.v1beta.AccessQuotaStatus.getDefaultInstance()) return this; - if (other.getConsumed() != 0) { - setConsumed(other.getConsumed()); - } - if (other.getRemaining() != 0) { - setRemaining(other.getRemaining()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - consumed_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: { - remaining_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int consumed_ ; - /** - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * @return The consumed. - */ - @java.lang.Override - public int getConsumed() { - return consumed_; - } - /** - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * @param value The consumed to set. - * @return This builder for chaining. - */ - public Builder setConsumed(int value) { - - consumed_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Quota consumed by this request.
-     * 
- * - * int32 consumed = 1; - * @return This builder for chaining. - */ - public Builder clearConsumed() { - bitField0_ = (bitField0_ & ~0x00000001); - consumed_ = 0; - onChanged(); - return this; - } - - private int remaining_ ; - /** - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * @return The remaining. - */ - @java.lang.Override - public int getRemaining() { - return remaining_; - } - /** - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * @param value The remaining to set. - * @return This builder for chaining. - */ - public Builder setRemaining(int value) { - - remaining_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Quota remaining after this request.
-     * 
- * - * int32 remaining = 2; - * @return This builder for chaining. - */ - public Builder clearRemaining() { - bitField0_ = (bitField0_ & ~0x00000002); - remaining_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessQuotaStatus) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessQuotaStatus) - private static final com.google.analytics.admin.v1beta.AccessQuotaStatus DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessQuotaStatus(); - } - - public static com.google.analytics.admin.v1beta.AccessQuotaStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessQuotaStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatusOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatusOrBuilder.java deleted file mode 100644 index 8fa97e450526..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessQuotaStatusOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessQuotaStatusOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessQuotaStatus) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Quota consumed by this request.
-   * 
- * - * int32 consumed = 1; - * @return The consumed. - */ - int getConsumed(); - - /** - *
-   * Quota remaining after this request.
-   * 
- * - * int32 remaining = 2; - * @return The remaining. - */ - int getRemaining(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java deleted file mode 100644 index 95d61b5bee8b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessReportProto.java +++ /dev/null @@ -1,349 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public final class AccessReportProto { - private AccessReportProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n1google/analytics/admin/v1beta/access_r" + - "eport.proto\022\035google.analytics.admin.v1be" + - "ta\")\n\017AccessDimension\022\026\n\016dimension_name\030" + - "\001 \001(\t\"#\n\014AccessMetric\022\023\n\013metric_name\030\001 \001" + - "(\t\"7\n\017AccessDateRange\022\022\n\nstart_date\030\001 \001(" + - "\t\022\020\n\010end_date\030\002 \001(\t\"\340\002\n\026AccessFilterExpr" + - "ession\022N\n\tand_group\030\001 \001(\01329.google.analy" + - "tics.admin.v1beta.AccessFilterExpression" + - "ListH\000\022M\n\010or_group\030\002 \001(\01329.google.analyt" + - "ics.admin.v1beta.AccessFilterExpressionL" + - "istH\000\022O\n\016not_expression\030\003 \001(\01325.google.a" + - "nalytics.admin.v1beta.AccessFilterExpres" + - "sionH\000\022D\n\raccess_filter\030\004 \001(\0132+.google.a" + - "nalytics.admin.v1beta.AccessFilterH\000B\020\n\016" + - "one_expression\"h\n\032AccessFilterExpression" + - "List\022J\n\013expressions\030\001 \003(\01325.google.analy" + - "tics.admin.v1beta.AccessFilterExpression" + - "\"\345\002\n\014AccessFilter\022J\n\rstring_filter\030\002 \001(\013" + - "21.google.analytics.admin.v1beta.AccessS" + - "tringFilterH\000\022K\n\016in_list_filter\030\003 \001(\01321." + - "google.analytics.admin.v1beta.AccessInLi" + - "stFilterH\000\022L\n\016numeric_filter\030\004 \001(\01322.goo" + - "gle.analytics.admin.v1beta.AccessNumeric" + - "FilterH\000\022L\n\016between_filter\030\005 \001(\01322.googl" + - "e.analytics.admin.v1beta.AccessBetweenFi" + - "lterH\000\022\022\n\nfield_name\030\001 \001(\tB\014\n\none_filter" + - "\"\224\002\n\022AccessStringFilter\022O\n\nmatch_type\030\001 " + - "\001(\0162;.google.analytics.admin.v1beta.Acce" + - "ssStringFilter.MatchType\022\r\n\005value\030\002 \001(\t\022" + - "\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n" + - "\026MATCH_TYPE_UNSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013" + - "BEGINS_WITH\020\002\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS" + - "\020\004\022\017\n\013FULL_REGEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\"" + - "<\n\022AccessInListFilter\022\016\n\006values\030\001 \003(\t\022\026\n" + - "\016case_sensitive\030\002 \001(\010\"\252\002\n\023AccessNumericF" + - "ilter\022O\n\toperation\030\001 \001(\0162<.google.analyt" + - "ics.admin.v1beta.AccessNumericFilter.Ope" + - "ration\022:\n\005value\030\002 \001(\0132+.google.analytics" + - ".admin.v1beta.NumericValue\"\205\001\n\tOperation" + - "\022\031\n\025OPERATION_UNSPECIFIED\020\000\022\t\n\005EQUAL\020\001\022\r" + - "\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN_OR_EQUAL\020\003\022\020\n" + - "\014GREATER_THAN\020\004\022\031\n\025GREATER_THAN_OR_EQUAL" + - "\020\005\"\225\001\n\023AccessBetweenFilter\022?\n\nfrom_value" + - "\030\001 \001(\0132+.google.analytics.admin.v1beta.N" + - "umericValue\022=\n\010to_value\030\002 \001(\0132+.google.a" + - "nalytics.admin.v1beta.NumericValue\"J\n\014Nu" + - "mericValue\022\025\n\013int64_value\030\001 \001(\003H\000\022\026\n\014dou" + - "ble_value\030\002 \001(\001H\000B\013\n\tone_value\"\352\003\n\rAcces" + - "sOrderBy\022L\n\006metric\030\001 \001(\0132:.google.analyt" + - "ics.admin.v1beta.AccessOrderBy.MetricOrd" + - "erByH\000\022R\n\tdimension\030\002 \001(\0132=.google.analy" + - "tics.admin.v1beta.AccessOrderBy.Dimensio" + - "nOrderByH\000\022\014\n\004desc\030\003 \001(\010\032$\n\rMetricOrderB" + - "y\022\023\n\013metric_name\030\001 \001(\t\032\362\001\n\020DimensionOrde" + - "rBy\022\026\n\016dimension_name\030\001 \001(\t\022[\n\norder_typ" + - "e\030\002 \001(\0162G.google.analytics.admin.v1beta." + - "AccessOrderBy.DimensionOrderBy.OrderType" + - "\"i\n\tOrderType\022\032\n\026ORDER_TYPE_UNSPECIFIED\020" + - "\000\022\020\n\014ALPHANUMERIC\020\001\022!\n\035CASE_INSENSITIVE_" + - "ALPHANUMERIC\020\002\022\013\n\007NUMERIC\020\003B\016\n\014one_order" + - "_by\"/\n\025AccessDimensionHeader\022\026\n\016dimensio" + - "n_name\030\001 \001(\t\")\n\022AccessMetricHeader\022\023\n\013me" + - "tric_name\030\001 \001(\t\"\243\001\n\tAccessRow\022M\n\020dimensi" + - "on_values\030\001 \003(\01323.google.analytics.admin" + - ".v1beta.AccessDimensionValue\022G\n\rmetric_v" + - "alues\030\002 \003(\01320.google.analytics.admin.v1b" + - "eta.AccessMetricValue\"%\n\024AccessDimension" + - "Value\022\r\n\005value\030\001 \001(\t\"\"\n\021AccessMetricValu" + - "e\022\r\n\005value\030\001 \001(\t\"\246\003\n\013AccessQuota\022H\n\016toke" + - "ns_per_day\030\001 \001(\01320.google.analytics.admi" + - "n.v1beta.AccessQuotaStatus\022I\n\017tokens_per" + - "_hour\030\002 \001(\01320.google.analytics.admin.v1b" + - "eta.AccessQuotaStatus\022M\n\023concurrent_requ" + - "ests\030\003 \001(\01320.google.analytics.admin.v1be" + - "ta.AccessQuotaStatus\022\\\n\"server_errors_pe" + - "r_project_per_hour\030\004 \001(\01320.google.analyt" + - "ics.admin.v1beta.AccessQuotaStatus\022U\n\033to" + - "kens_per_project_per_hour\030\005 \001(\01320.google" + - ".analytics.admin.v1beta.AccessQuotaStatu" + - "s\"8\n\021AccessQuotaStatus\022\020\n\010consumed\030\001 \001(\005" + - "\022\021\n\tremaining\030\002 \001(\005B|\n!com.google.analyt" + - "ics.admin.v1betaB\021AccessReportProtoP\001ZBg" + - "oogle.golang.org/genproto/googleapis/ana" + - "lytics/admin/v1beta;adminb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1beta_AccessDimension_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessDimension_descriptor, - new java.lang.String[] { "DimensionName", }); - internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1beta_AccessMetric_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessMetric_descriptor, - new java.lang.String[] { "MetricName", }); - internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1beta_AccessDateRange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessDateRange_descriptor, - new java.lang.String[] { "StartDate", "EndDate", }); - internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1beta_AccessFilterExpression_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessFilterExpression_descriptor, - new java.lang.String[] { "AndGroup", "OrGroup", "NotExpression", "AccessFilter", "OneExpression", }); - internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessFilterExpressionList_descriptor, - new java.lang.String[] { "Expressions", }); - internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1beta_AccessFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessFilter_descriptor, - new java.lang.String[] { "StringFilter", "InListFilter", "NumericFilter", "BetweenFilter", "FieldName", "OneFilter", }); - internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor, - new java.lang.String[] { "MatchType", "Value", "CaseSensitive", }); - internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1beta_AccessInListFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessInListFilter_descriptor, - new java.lang.String[] { "Values", "CaseSensitive", }); - internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1beta_AccessNumericFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessNumericFilter_descriptor, - new java.lang.String[] { "Operation", "Value", }); - internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessBetweenFilter_descriptor, - new java.lang.String[] { "FromValue", "ToValue", }); - internal_static_google_analytics_admin_v1beta_NumericValue_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_NumericValue_descriptor, - new java.lang.String[] { "Int64Value", "DoubleValue", "OneValue", }); - internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_admin_v1beta_AccessOrderBy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor, - new java.lang.String[] { "Metric", "Dimension", "Desc", "OneOrderBy", }); - internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor = - internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessOrderBy_MetricOrderBy_descriptor, - new java.lang.String[] { "MetricName", }); - internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor = - internal_static_google_analytics_admin_v1beta_AccessOrderBy_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessOrderBy_DimensionOrderBy_descriptor, - new java.lang.String[] { "DimensionName", "OrderType", }); - internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessDimensionHeader_descriptor, - new java.lang.String[] { "DimensionName", }); - internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_admin_v1beta_AccessMetricHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessMetricHeader_descriptor, - new java.lang.String[] { "MetricName", }); - internal_static_google_analytics_admin_v1beta_AccessRow_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessRow_descriptor, - new java.lang.String[] { "DimensionValues", "MetricValues", }); - internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1beta_AccessDimensionValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessDimensionValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1beta_AccessMetricValue_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessMetricValue_descriptor, - new java.lang.String[] { "Value", }); - internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1beta_AccessQuota_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessQuota_descriptor, - new java.lang.String[] { "TokensPerDay", "TokensPerHour", "ConcurrentRequests", "ServerErrorsPerProjectPerHour", "TokensPerProjectPerHour", }); - internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccessQuotaStatus_descriptor, - new java.lang.String[] { "Consumed", "Remaining", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRow.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRow.java deleted file mode 100644 index a4aa2bbba423..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRow.java +++ /dev/null @@ -1,1347 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Access report data for each row.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessRow} - */ -public final class AccessRow extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessRow) - AccessRowOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessRow.newBuilder() to construct. - private AccessRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessRow() { - dimensionValues_ = java.util.Collections.emptyList(); - metricValues_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessRow(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessRow.class, com.google.analytics.admin.v1beta.AccessRow.Builder.class); - } - - public static final int DIMENSION_VALUES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List dimensionValues_; - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List getDimensionValuesList() { - return dimensionValues_; - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public java.util.List - getDimensionValuesOrBuilderList() { - return dimensionValues_; - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public int getDimensionValuesCount() { - return dimensionValues_.size(); - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionValue getDimensionValues(int index) { - return dimensionValues_.get(index); - } - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - return dimensionValues_.get(index); - } - - public static final int METRIC_VALUES_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List metricValues_; - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List getMetricValuesList() { - return metricValues_; - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List - getMetricValuesOrBuilderList() { - return metricValues_; - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public int getMetricValuesCount() { - return metricValues_.size(); - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricValue getMetricValues(int index) { - return metricValues_.get(index); - } - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder getMetricValuesOrBuilder( - int index) { - return metricValues_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < dimensionValues_.size(); i++) { - output.writeMessage(1, dimensionValues_.get(i)); - } - for (int i = 0; i < metricValues_.size(); i++) { - output.writeMessage(2, metricValues_.get(i)); - } - 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)); - } - for (int i = 0; i < metricValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metricValues_.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.admin.v1beta.AccessRow)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessRow other = (com.google.analytics.admin.v1beta.AccessRow) obj; - - if (!getDimensionValuesList() - .equals(other.getDimensionValuesList())) return false; - if (!getMetricValuesList() - .equals(other.getMetricValuesList())) 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(); - } - if (getMetricValuesCount() > 0) { - hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getMetricValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessRow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessRow parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessRow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessRow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Access report data for each row.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessRow} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessRow) - com.google.analytics.admin.v1beta.AccessRowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessRow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessRow.class, com.google.analytics.admin.v1beta.AccessRow.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessRow.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - } else { - dimensionValues_ = null; - dimensionValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - } else { - metricValues_ = null; - metricValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessRow_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessRow getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessRow build() { - com.google.analytics.admin.v1beta.AccessRow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessRow buildPartial() { - com.google.analytics.admin.v1beta.AccessRow result = new com.google.analytics.admin.v1beta.AccessRow(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.AccessRow result) { - if (dimensionValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = java.util.Collections.unmodifiableList(dimensionValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionValues_ = dimensionValues_; - } else { - result.dimensionValues_ = dimensionValuesBuilder_.build(); - } - if (metricValuesBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricValues_ = java.util.Collections.unmodifiableList(metricValues_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricValues_ = metricValues_; - } else { - result.metricValues_ = metricValuesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessRow result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessRow) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessRow)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessRow other) { - if (other == com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance()) return this; - if (dimensionValuesBuilder_ == null) { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValues_.isEmpty()) { - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionValuesIsMutable(); - dimensionValues_.addAll(other.dimensionValues_); - } - onChanged(); - } - } else { - if (!other.dimensionValues_.isEmpty()) { - if (dimensionValuesBuilder_.isEmpty()) { - dimensionValuesBuilder_.dispose(); - dimensionValuesBuilder_ = null; - dimensionValues_ = other.dimensionValues_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDimensionValuesFieldBuilder() : null; - } else { - dimensionValuesBuilder_.addAllMessages(other.dimensionValues_); - } - } - } - if (metricValuesBuilder_ == null) { - if (!other.metricValues_.isEmpty()) { - if (metricValues_.isEmpty()) { - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricValuesIsMutable(); - metricValues_.addAll(other.metricValues_); - } - onChanged(); - } - } else { - if (!other.metricValues_.isEmpty()) { - if (metricValuesBuilder_.isEmpty()) { - metricValuesBuilder_.dispose(); - metricValuesBuilder_ = null; - metricValues_ = other.metricValues_; - bitField0_ = (bitField0_ & ~0x00000002); - metricValuesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricValuesFieldBuilder() : null; - } else { - metricValuesBuilder_.addAllMessages(other.metricValues_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.AccessDimensionValue m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessDimensionValue.parser(), - extensionRegistry); - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(m); - } else { - dimensionValuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1beta.AccessMetricValue m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessMetricValue.parser(), - extensionRegistry); - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(m); - } else { - metricValuesBuilder_.addMessage(m); - } - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List dimensionValues_ = - java.util.Collections.emptyList(); - private void ensureDimensionValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionValues_ = new java.util.ArrayList(dimensionValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimensionValue, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder, com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder> dimensionValuesBuilder_; - - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public java.util.List getDimensionValuesList() { - if (dimensionValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionValues_); - } else { - return dimensionValuesBuilder_.getMessageList(); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public int getDimensionValuesCount() { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.size(); - } else { - return dimensionValuesBuilder_.getCount(); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionValue getDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); - } else { - return dimensionValuesBuilder_.getMessage(index); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.admin.v1beta.AccessDimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues(com.google.analytics.admin.v1beta.AccessDimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.admin.v1beta.AccessDimensionValue value) { - if (dimensionValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, value); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.analytics.admin.v1beta.AccessDimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder builderForValue) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder addAllDimensionValues( - java.lang.Iterable values) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dimensionValues_); - onChanged(); - } else { - dimensionValuesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder clearDimensionValues() { - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionValuesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public Builder removeDimensionValues(int index) { - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.remove(index); - onChanged(); - } else { - dimensionValuesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionValue.Builder getDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( - int index) { - if (dimensionValuesBuilder_ == null) { - return dimensionValues_.get(index); } else { - return dimensionValuesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesOrBuilderList() { - if (dimensionValuesBuilder_ != null) { - return dimensionValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionValues_); - } - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionValue.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance()); - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionValue.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessDimensionValue.getDefaultInstance()); - } - /** - *
-     * List of dimension values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimensionValue, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder, com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimensionValue, com.google.analytics.admin.v1beta.AccessDimensionValue.Builder, com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder>( - dimensionValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionValues_ = null; - } - return dimensionValuesBuilder_; - } - - private java.util.List metricValues_ = - java.util.Collections.emptyList(); - private void ensureMetricValuesIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricValues_ = new java.util.ArrayList(metricValues_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetricValue, com.google.analytics.admin.v1beta.AccessMetricValue.Builder, com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder> metricValuesBuilder_; - - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public java.util.List getMetricValuesList() { - if (metricValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricValues_); - } else { - return metricValuesBuilder_.getMessageList(); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public int getMetricValuesCount() { - if (metricValuesBuilder_ == null) { - return metricValues_.size(); - } else { - return metricValuesBuilder_.getCount(); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricValue getMetricValues(int index) { - if (metricValuesBuilder_ == null) { - return metricValues_.get(index); - } else { - return metricValuesBuilder_.getMessage(index); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder setMetricValues( - int index, com.google.analytics.admin.v1beta.AccessMetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.set(index, value); - onChanged(); - } else { - metricValuesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder setMetricValues( - int index, com.google.analytics.admin.v1beta.AccessMetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.set(index, builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues(com.google.analytics.admin.v1beta.AccessMetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.add(value); - onChanged(); - } else { - metricValuesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues( - int index, com.google.analytics.admin.v1beta.AccessMetricValue value) { - if (metricValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricValuesIsMutable(); - metricValues_.add(index, value); - onChanged(); - } else { - metricValuesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues( - com.google.analytics.admin.v1beta.AccessMetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder addMetricValues( - int index, com.google.analytics.admin.v1beta.AccessMetricValue.Builder builderForValue) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(index, builderForValue.build()); - onChanged(); - } else { - metricValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder addAllMetricValues( - java.lang.Iterable values) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricValues_); - onChanged(); - } else { - metricValuesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder clearMetricValues() { - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricValuesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public Builder removeMetricValues(int index) { - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.remove(index); - onChanged(); - } else { - metricValuesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricValue.Builder getMetricValuesBuilder( - int index) { - return getMetricValuesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder getMetricValuesOrBuilder( - int index) { - if (metricValuesBuilder_ == null) { - return metricValues_.get(index); } else { - return metricValuesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesOrBuilderList() { - if (metricValuesBuilder_ != null) { - return metricValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricValues_); - } - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricValue.Builder addMetricValuesBuilder() { - return getMetricValuesFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance()); - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricValue.Builder addMetricValuesBuilder( - int index) { - return getMetricValuesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessMetricValue.getDefaultInstance()); - } - /** - *
-     * List of metric values. These values are in the same order as specified
-     * in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesBuilderList() { - return getMetricValuesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetricValue, com.google.analytics.admin.v1beta.AccessMetricValue.Builder, com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder> - getMetricValuesFieldBuilder() { - if (metricValuesBuilder_ == null) { - metricValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetricValue, com.google.analytics.admin.v1beta.AccessMetricValue.Builder, com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder>( - metricValues_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricValues_ = null; - } - return metricValuesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessRow) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessRow) - private static final com.google.analytics.admin.v1beta.AccessRow DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessRow(); - } - - public static com.google.analytics.admin.v1beta.AccessRow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessRow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessRow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRowOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRowOrBuilder.java deleted file mode 100644 index 0d20041d7ffe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessRowOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessRowOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessRow) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - java.util.List - getDimensionValuesList(); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - com.google.analytics.admin.v1beta.AccessDimensionValue getDimensionValues(int index); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - int getDimensionValuesCount(); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - java.util.List - getDimensionValuesOrBuilderList(); - /** - *
-   * List of dimension values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionValue dimension_values = 1; - */ - com.google.analytics.admin.v1beta.AccessDimensionValueOrBuilder getDimensionValuesOrBuilder( - int index); - - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - java.util.List - getMetricValuesList(); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - com.google.analytics.admin.v1beta.AccessMetricValue getMetricValues(int index); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - int getMetricValuesCount(); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - java.util.List - getMetricValuesOrBuilderList(); - /** - *
-   * List of metric values. These values are in the same order as specified
-   * in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricValue metric_values = 2; - */ - com.google.analytics.admin.v1beta.AccessMetricValueOrBuilder getMetricValuesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilter.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilter.java deleted file mode 100644 index a29a4145e50d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilter.java +++ /dev/null @@ -1,995 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The filter for strings.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessStringFilter} - */ -public final class AccessStringFilter extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccessStringFilter) - AccessStringFilterOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccessStringFilter.newBuilder() to construct. - private AccessStringFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccessStringFilter() { - matchType_ = 0; - value_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccessStringFilter(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessStringFilter.class, com.google.analytics.admin.v1beta.AccessStringFilter.Builder.class); - } - - /** - *
-   * The match type of a string filter.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.AccessStringFilter.MatchType} - */ - public enum MatchType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Unspecified
-     * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - MATCH_TYPE_UNSPECIFIED(0), - /** - *
-     * Exact match of the string value.
-     * 
- * - * EXACT = 1; - */ - EXACT(1), - /** - *
-     * Begins with the string value.
-     * 
- * - * BEGINS_WITH = 2; - */ - BEGINS_WITH(2), - /** - *
-     * Ends with the string value.
-     * 
- * - * ENDS_WITH = 3; - */ - ENDS_WITH(3), - /** - *
-     * Contains the string value.
-     * 
- * - * CONTAINS = 4; - */ - CONTAINS(4), - /** - *
-     * Full match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - *
-     * Partial match for the regular expression with the string value.
-     * 
- * - * PARTIAL_REGEXP = 6; - */ - PARTIAL_REGEXP(6), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Unspecified
-     * 
- * - * MATCH_TYPE_UNSPECIFIED = 0; - */ - public static final int MATCH_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Exact match of the string value.
-     * 
- * - * EXACT = 1; - */ - public static final int EXACT_VALUE = 1; - /** - *
-     * Begins with the string value.
-     * 
- * - * BEGINS_WITH = 2; - */ - public static final int BEGINS_WITH_VALUE = 2; - /** - *
-     * Ends with the string value.
-     * 
- * - * ENDS_WITH = 3; - */ - public static final int ENDS_WITH_VALUE = 3; - /** - *
-     * Contains the string value.
-     * 
- * - * CONTAINS = 4; - */ - public static final int CONTAINS_VALUE = 4; - /** - *
-     * Full match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - *
-     * Partial match for the regular expression with the string value.
-     * 
- * - * PARTIAL_REGEXP = 6; - */ - public static final int PARTIAL_REGEXP_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static MatchType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static MatchType forNumber(int value) { - switch (value) { - case 0: return MATCH_TYPE_UNSPECIFIED; - case 1: return EXACT; - case 2: return BEGINS_WITH; - case 3: return ENDS_WITH; - case 4: return CONTAINS; - case 5: return FULL_REGEXP; - case 6: return PARTIAL_REGEXP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MatchType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MatchType findValueByNumber(int number) { - return MatchType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessStringFilter.getDescriptor().getEnumTypes().get(0); - } - - private static final MatchType[] VALUES = values(); - - public static MatchType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MatchType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.AccessStringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_ = 0; - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return The matchType. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.AccessStringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1beta.AccessStringFilter.MatchType result = com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.UNRECOGNIZED : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object value_ = ""; - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The value. - */ - @java.lang.Override - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } - } - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The bytes for value. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; - private boolean caseSensitive_ = false; - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 3; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (matchType_ != com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); - } - if (caseSensitive_ != false) { - output.writeBool(3, caseSensitive_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ != com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.MATCH_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, matchType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, caseSensitive_); - } - size += 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.admin.v1beta.AccessStringFilter)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccessStringFilter other = (com.google.analytics.admin.v1beta.AccessStringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue() - .equals(other.getValue())) return false; - if (getCaseSensitive() - != other.getCaseSensitive()) 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) + MATCH_TYPE_FIELD_NUMBER; - hash = (53 * hash) + matchType_; - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccessStringFilter parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccessStringFilter parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccessStringFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccessStringFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The filter for strings.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccessStringFilter} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccessStringFilter) - com.google.analytics.admin.v1beta.AccessStringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessStringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccessStringFilter.class, com.google.analytics.admin.v1beta.AccessStringFilter.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccessStringFilter.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - matchType_ = 0; - value_ = ""; - caseSensitive_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_AccessStringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilter getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilter build() { - com.google.analytics.admin.v1beta.AccessStringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilter buildPartial() { - com.google.analytics.admin.v1beta.AccessStringFilter result = new com.google.analytics.admin.v1beta.AccessStringFilter(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccessStringFilter result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.matchType_ = matchType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.value_ = value_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.caseSensitive_ = caseSensitive_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccessStringFilter) { - return mergeFrom((com.google.analytics.admin.v1beta.AccessStringFilter)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccessStringFilter other) { - if (other == com.google.analytics.admin.v1beta.AccessStringFilter.getDefaultInstance()) return this; - if (other.matchType_ != 0) { - setMatchTypeValue(other.getMatchTypeValue()); - } - if (!other.getValue().isEmpty()) { - value_ = other.value_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getCaseSensitive() != false) { - setCaseSensitive(other.getCaseSensitive()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - matchType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - value_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - caseSensitive_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int matchType_ = 0; - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return The enum numeric value on the wire for matchType. - */ - @java.lang.Override public int getMatchTypeValue() { - return matchType_; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @param value The enum numeric value on the wire for matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchTypeValue(int value) { - matchType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilter.MatchType getMatchType() { - com.google.analytics.admin.v1beta.AccessStringFilter.MatchType result = com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.forNumber(matchType_); - return result == null ? com.google.analytics.admin.v1beta.AccessStringFilter.MatchType.UNRECOGNIZED : result; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType(com.google.analytics.admin.v1beta.AccessStringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return This builder for chaining. - */ - public Builder clearMatchType() { - bitField0_ = (bitField0_ & ~0x00000001); - matchType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object value_ = ""; - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @return The value. - */ - public java.lang.String getValue() { - java.lang.Object ref = value_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - value_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @return The bytes for value. - */ - public com.google.protobuf.ByteString - getValueBytes() { - java.lang.Object ref = value_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - value_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @param value The value to set. - * @return This builder for chaining. - */ - public Builder setValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @return This builder for chaining. - */ - public Builder clearValue() { - value_ = getDefaultInstance().getValue(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * The string value used for the matching.
-     * 
- * - * string value = 2; - * @param value The bytes for value to set. - * @return This builder for chaining. - */ - public Builder setValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - value_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean caseSensitive_ ; - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * @return The caseSensitive. - */ - @java.lang.Override - public boolean getCaseSensitive() { - return caseSensitive_; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * @param value The caseSensitive to set. - * @return This builder for chaining. - */ - public Builder setCaseSensitive(boolean value) { - - caseSensitive_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * If true, the string value is case sensitive.
-     * 
- * - * bool case_sensitive = 3; - * @return This builder for chaining. - */ - public Builder clearCaseSensitive() { - bitField0_ = (bitField0_ & ~0x00000004); - caseSensitive_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccessStringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccessStringFilter) - private static final com.google.analytics.admin.v1beta.AccessStringFilter DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccessStringFilter(); - } - - public static com.google.analytics.admin.v1beta.AccessStringFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccessStringFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessStringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilterOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilterOrBuilder.java deleted file mode 100644 index 01cee15b215f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccessStringFilterOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface AccessStringFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccessStringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return The enum numeric value on the wire for matchType. - */ - int getMatchTypeValue(); - /** - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessStringFilter.MatchType match_type = 1; - * @return The matchType. - */ - com.google.analytics.admin.v1beta.AccessStringFilter.MatchType getMatchType(); - - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The value. - */ - java.lang.String getValue(); - /** - *
-   * The string value used for the matching.
-   * 
- * - * string value = 2; - * @return The bytes for value. - */ - com.google.protobuf.ByteString - getValueBytes(); - - /** - *
-   * If true, the string value is case sensitive.
-   * 
- * - * bool case_sensitive = 3; - * @return The caseSensitive. - */ - boolean getCaseSensitive(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java deleted file mode 100644 index ef4062f92a2e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Account.java +++ /dev/null @@ -1,1464 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A resource message representing a Google Analytics account.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.Account} - */ -public final class Account extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.Account) - AccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use Account.newBuilder() to construct. - private Account(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Account() { - name_ = ""; - displayName_ = ""; - regionCode_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Account(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Account_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.Account.class, com.google.analytics.admin.v1beta.Account.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REGION_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object regionCode_ = ""; - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The regionCode. - */ - @java.lang.Override - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - 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(); - regionCode_ = s; - return s; - } - } - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The bytes for regionCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DELETED_FIELD_NUMBER = 6; - private boolean deleted_ = false; - /** - *
-   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-   * accounts are excluded from List results unless specifically requested.
-   * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleted. - */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; - } - - 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 (createTime_ != null) { - output.writeMessage(2, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(3, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionCode_); - } - if (deleted_ != false) { - output.writeBool(6, deleted_); - } - 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 (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionCode_); - } - if (deleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, deleted_); - } - 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.admin.v1beta.Account)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.Account other = (com.google.analytics.admin.v1beta.Account) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getRegionCode() - .equals(other.getRegionCode())) return false; - if (getDeleted() - != other.getDeleted()) 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(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + REGION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getRegionCode().hashCode(); - hash = (37 * hash) + DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeleted()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.Account parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.Account parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Account parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.Account parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Account parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.Account parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Account parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.Account parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.Account parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.Account parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Account parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.Account parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.Account prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a Google Analytics account.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.Account} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.Account) - com.google.analytics.admin.v1beta.AccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Account_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.Account.class, com.google.analytics.admin.v1beta.Account.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.Account.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - displayName_ = ""; - regionCode_ = ""; - deleted_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Account_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Account getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Account build() { - com.google.analytics.admin.v1beta.Account result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Account buildPartial() { - com.google.analytics.admin.v1beta.Account result = new com.google.analytics.admin.v1beta.Account(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.Account result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.regionCode_ = regionCode_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.deleted_ = deleted_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.Account) { - return mergeFrom((com.google.analytics.admin.v1beta.Account)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.Account other) { - if (other == com.google.analytics.admin.v1beta.Account.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getRegionCode().isEmpty()) { - regionCode_ = other.regionCode_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getDeleted() != false) { - setDeleted(other.getDeleted()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - regionCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: { - deleted_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.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. Resource name of this account.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this account was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when account payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this account.
-     * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object regionCode_ = ""; - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @return The regionCode. - */ - public java.lang.String getRegionCode() { - java.lang.Object ref = regionCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - regionCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @return The bytes for regionCode. - */ - public com.google.protobuf.ByteString - getRegionCodeBytes() { - java.lang.Object ref = regionCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - regionCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @param value The regionCode to set. - * @return This builder for chaining. - */ - public Builder setRegionCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - regionCode_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @return This builder for chaining. - */ - public Builder clearRegionCode() { - regionCode_ = getDefaultInstance().getRegionCode(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Country of business. Must be a Unicode CLDR region code.
-     * 
- * - * string region_code = 5; - * @param value The bytes for regionCode to set. - * @return This builder for chaining. - */ - public Builder setRegionCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - regionCode_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean deleted_ ; - /** - *
-     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-     * accounts are excluded from List results unless specifically requested.
-     * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleted. - */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; - } - /** - *
-     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-     * accounts are excluded from List results unless specifically requested.
-     * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The deleted to set. - * @return This builder for chaining. - */ - public Builder setDeleted(boolean value) { - - deleted_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-     * accounts are excluded from List results unless specifically requested.
-     * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearDeleted() { - bitField0_ = (bitField0_ & ~0x00000020); - deleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.Account) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.Account) - private static final com.google.analytics.admin.v1beta.Account DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.Account(); - } - - public static com.google.analytics.admin.v1beta.Account getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Account parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Account getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java deleted file mode 100644 index d29ffee1eb04..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountOrBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface AccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.Account) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this account.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this account was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when account payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Human-readable display name for this account.
-   * 
- * - * string display_name = 4 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The regionCode. - */ - java.lang.String getRegionCode(); - /** - *
-   * Country of business. Must be a Unicode CLDR region code.
-   * 
- * - * string region_code = 5; - * @return The bytes for regionCode. - */ - com.google.protobuf.ByteString - getRegionCodeBytes(); - - /** - *
-   * Output only. Indicates whether this Account is soft-deleted or not. Deleted
-   * accounts are excluded from List results unless specifically requested.
-   * 
- * - * bool deleted = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleted. - */ - boolean getDeleted(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java deleted file mode 100644 index dbb69c0af968..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummary.java +++ /dev/null @@ -1,1381 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A virtual resource representing an overview of an account and
- * all its child GA4 properties.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccountSummary} - */ -public final class AccountSummary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AccountSummary) - AccountSummaryOrBuilder { -private static final long serialVersionUID = 0L; - // Use AccountSummary.newBuilder() to construct. - private AccountSummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AccountSummary() { - name_ = ""; - account_ = ""; - displayName_ = ""; - propertySummaries_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AccountSummary(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccountSummary.class, com.google.analytics.admin.v1beta.AccountSummary.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @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; - } - } - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @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 ACCOUNT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object account_ = ""; - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_SUMMARIES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List propertySummaries_; - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public java.util.List getPropertySummariesList() { - return propertySummaries_; - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public java.util.List - getPropertySummariesOrBuilderList() { - return propertySummaries_; - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public int getPropertySummariesCount() { - return propertySummaries_.size(); - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertySummary getPropertySummaries(int index) { - return propertySummaries_.get(index); - } - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertySummaryOrBuilder getPropertySummariesOrBuilder( - int index) { - return propertySummaries_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - for (int i = 0; i < propertySummaries_.size(); i++) { - output.writeMessage(4, propertySummaries_.get(i)); - } - 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(account_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - for (int i = 0; i < propertySummaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, propertySummaries_.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.admin.v1beta.AccountSummary)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AccountSummary other = (com.google.analytics.admin.v1beta.AccountSummary) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAccount() - .equals(other.getAccount())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getPropertySummariesList() - .equals(other.getPropertySummariesList())) 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) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (getPropertySummariesCount() > 0) { - hash = (37 * hash) + PROPERTY_SUMMARIES_FIELD_NUMBER; - hash = (53 * hash) + getPropertySummariesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AccountSummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AccountSummary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AccountSummary parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AccountSummary prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A virtual resource representing an overview of an account and
-   * all its child GA4 properties.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AccountSummary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AccountSummary) - com.google.analytics.admin.v1beta.AccountSummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AccountSummary.class, com.google.analytics.admin.v1beta.AccountSummary.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AccountSummary.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - account_ = ""; - displayName_ = ""; - if (propertySummariesBuilder_ == null) { - propertySummaries_ = java.util.Collections.emptyList(); - } else { - propertySummaries_ = null; - propertySummariesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountSummary getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountSummary build() { - com.google.analytics.admin.v1beta.AccountSummary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountSummary buildPartial() { - com.google.analytics.admin.v1beta.AccountSummary result = new com.google.analytics.admin.v1beta.AccountSummary(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.AccountSummary result) { - if (propertySummariesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - propertySummaries_ = java.util.Collections.unmodifiableList(propertySummaries_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.propertySummaries_ = propertySummaries_; - } else { - result.propertySummaries_ = propertySummariesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AccountSummary result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.account_ = account_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AccountSummary) { - return mergeFrom((com.google.analytics.admin.v1beta.AccountSummary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AccountSummary other) { - if (other == com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (propertySummariesBuilder_ == null) { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummaries_.isEmpty()) { - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePropertySummariesIsMutable(); - propertySummaries_.addAll(other.propertySummaries_); - } - onChanged(); - } - } else { - if (!other.propertySummaries_.isEmpty()) { - if (propertySummariesBuilder_.isEmpty()) { - propertySummariesBuilder_.dispose(); - propertySummariesBuilder_ = null; - propertySummaries_ = other.propertySummaries_; - bitField0_ = (bitField0_ & ~0x00000008); - propertySummariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertySummariesFieldBuilder() : null; - } else { - propertySummariesBuilder_.addAllMessages(other.propertySummaries_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - account_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - com.google.analytics.admin.v1beta.PropertySummary m = - input.readMessage( - com.google.analytics.admin.v1beta.PropertySummary.parser(), - extensionRegistry); - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.add(m); - } else { - propertySummariesBuilder_.addMessage(m); - } - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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; - } - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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; - } - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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; - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Resource name for this account summary.
-     * Format: accountSummaries/{account_id}
-     * Example: "accountSummaries/1000"
-     * 
- * - * string name = 1; - * @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 account_ = ""; - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The account. - */ - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @param value The account to set. - * @return This builder for chaining. - */ - public Builder setAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - account_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearAccount() { - account_ = getDefaultInstance().getAccount(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Resource name of account referred to by this account summary
-     * Format: accounts/{account_id}
-     * Example: "accounts/1000"
-     * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - account_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Display name for the account referred to in this account summary.
-     * 
- * - * string display_name = 3; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List propertySummaries_ = - java.util.Collections.emptyList(); - private void ensurePropertySummariesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - propertySummaries_ = new java.util.ArrayList(propertySummaries_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.PropertySummary, com.google.analytics.admin.v1beta.PropertySummary.Builder, com.google.analytics.admin.v1beta.PropertySummaryOrBuilder> propertySummariesBuilder_; - - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public java.util.List getPropertySummariesList() { - if (propertySummariesBuilder_ == null) { - return java.util.Collections.unmodifiableList(propertySummaries_); - } else { - return propertySummariesBuilder_.getMessageList(); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public int getPropertySummariesCount() { - if (propertySummariesBuilder_ == null) { - return propertySummaries_.size(); - } else { - return propertySummariesBuilder_.getCount(); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1beta.PropertySummary getPropertySummaries(int index) { - if (propertySummariesBuilder_ == null) { - return propertySummaries_.get(index); - } else { - return propertySummariesBuilder_.getMessage(index); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder setPropertySummaries( - int index, com.google.analytics.admin.v1beta.PropertySummary value) { - if (propertySummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertySummariesIsMutable(); - propertySummaries_.set(index, value); - onChanged(); - } else { - propertySummariesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder setPropertySummaries( - int index, com.google.analytics.admin.v1beta.PropertySummary.Builder builderForValue) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.set(index, builderForValue.build()); - onChanged(); - } else { - propertySummariesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries(com.google.analytics.admin.v1beta.PropertySummary value) { - if (propertySummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertySummariesIsMutable(); - propertySummaries_.add(value); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries( - int index, com.google.analytics.admin.v1beta.PropertySummary value) { - if (propertySummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertySummariesIsMutable(); - propertySummaries_.add(index, value); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries( - com.google.analytics.admin.v1beta.PropertySummary.Builder builderForValue) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.add(builderForValue.build()); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder addPropertySummaries( - int index, com.google.analytics.admin.v1beta.PropertySummary.Builder builderForValue) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.add(index, builderForValue.build()); - onChanged(); - } else { - propertySummariesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder addAllPropertySummaries( - java.lang.Iterable values) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, propertySummaries_); - onChanged(); - } else { - propertySummariesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder clearPropertySummaries() { - if (propertySummariesBuilder_ == null) { - propertySummaries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - propertySummariesBuilder_.clear(); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public Builder removePropertySummaries(int index) { - if (propertySummariesBuilder_ == null) { - ensurePropertySummariesIsMutable(); - propertySummaries_.remove(index); - onChanged(); - } else { - propertySummariesBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1beta.PropertySummary.Builder getPropertySummariesBuilder( - int index) { - return getPropertySummariesFieldBuilder().getBuilder(index); - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1beta.PropertySummaryOrBuilder getPropertySummariesOrBuilder( - int index) { - if (propertySummariesBuilder_ == null) { - return propertySummaries_.get(index); } else { - return propertySummariesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public java.util.List - getPropertySummariesOrBuilderList() { - if (propertySummariesBuilder_ != null) { - return propertySummariesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(propertySummaries_); - } - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1beta.PropertySummary.Builder addPropertySummariesBuilder() { - return getPropertySummariesFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance()); - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public com.google.analytics.admin.v1beta.PropertySummary.Builder addPropertySummariesBuilder( - int index) { - return getPropertySummariesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance()); - } - /** - *
-     * List of summaries for child accounts of this account.
-     * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - public java.util.List - getPropertySummariesBuilderList() { - return getPropertySummariesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.PropertySummary, com.google.analytics.admin.v1beta.PropertySummary.Builder, com.google.analytics.admin.v1beta.PropertySummaryOrBuilder> - getPropertySummariesFieldBuilder() { - if (propertySummariesBuilder_ == null) { - propertySummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.PropertySummary, com.google.analytics.admin.v1beta.PropertySummary.Builder, com.google.analytics.admin.v1beta.PropertySummaryOrBuilder>( - propertySummaries_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - propertySummaries_ = null; - } - return propertySummariesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AccountSummary) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AccountSummary) - private static final com.google.analytics.admin.v1beta.AccountSummary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AccountSummary(); - } - - public static com.google.analytics.admin.v1beta.AccountSummary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AccountSummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountSummary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java deleted file mode 100644 index 5aece5d820bf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AccountSummaryOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface AccountSummaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AccountSummary) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Resource name for this account summary.
-   * Format: accountSummaries/{account_id}
-   * Example: "accountSummaries/1000"
-   * 
- * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The account. - */ - java.lang.String getAccount(); - /** - *
-   * Resource name of account referred to by this account summary
-   * Format: accounts/{account_id}
-   * Example: "accounts/1000"
-   * 
- * - * string account = 2 [(.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - com.google.protobuf.ByteString - getAccountBytes(); - - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Display name for the account referred to in this account summary.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - java.util.List - getPropertySummariesList(); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - com.google.analytics.admin.v1beta.PropertySummary getPropertySummaries(int index); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - int getPropertySummariesCount(); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - java.util.List - getPropertySummariesOrBuilderList(); - /** - *
-   * List of summaries for child accounts of this account.
-   * 
- * - * repeated .google.analytics.admin.v1beta.PropertySummary property_summaries = 4; - */ - com.google.analytics.admin.v1beta.PropertySummaryOrBuilder getPropertySummariesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java deleted file mode 100644 index a7b49c28bce1..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequest.java +++ /dev/null @@ -1,790 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for AcknowledgeUserDataCollection RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} - */ -public final class AcknowledgeUserDataCollectionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) - AcknowledgeUserDataCollectionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use AcknowledgeUserDataCollectionRequest.newBuilder() to construct. - private AcknowledgeUserDataCollectionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AcknowledgeUserDataCollectionRequest() { - property_ = ""; - acknowledgement_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AcknowledgeUserDataCollectionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.class, com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACKNOWLEDGEMENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object acknowledgement_ = ""; - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acknowledgement. - */ - @java.lang.Override - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } - } - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for acknowledgement. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgement_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(acknowledgement_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acknowledgement_); - } - size += 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.admin.v1beta.AcknowledgeUserDataCollectionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest other = (com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) obj; - - if (!getProperty() - .equals(other.getProperty())) return false; - if (!getAcknowledgement() - .equals(other.getAcknowledgement())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (37 * hash) + ACKNOWLEDGEMENT_FIELD_NUMBER; - hash = (53 * hash) + getAcknowledgement().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for AcknowledgeUserDataCollection RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.class, com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - acknowledgement_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest build() { - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest buildPartial() { - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest result = new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.acknowledgement_ = acknowledgement_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest other) { - if (other == com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getAcknowledgement().isEmpty()) { - acknowledgement_ = other.acknowledgement_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - acknowledgement_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The property for which to acknowledge user data collection.
-     * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object acknowledgement_ = ""; - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acknowledgement. - */ - public java.lang.String getAcknowledgement() { - java.lang.Object ref = acknowledgement_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - acknowledgement_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for acknowledgement. - */ - public com.google.protobuf.ByteString - getAcknowledgementBytes() { - java.lang.Object ref = acknowledgement_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - acknowledgement_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgement( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - acknowledgement_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearAcknowledgement() { - acknowledgement_ = getDefaultInstance().getAcknowledgement(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. An acknowledgement that the caller of this method understands the
-     * terms of user data collection.
-     *
-     * This field must contain the exact value:
-     * "I acknowledge that I have the necessary privacy disclosures and rights
-     * from my end users for the collection and processing of their data,
-     * including the association of such data with the visitation information
-     * Google Analytics collects from my site and/or app property."
-     * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for acknowledgement to set. - * @return This builder for chaining. - */ - public Builder setAcknowledgementBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - acknowledgement_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) - private static final com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest(); - } - - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeUserDataCollectionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java deleted file mode 100644 index c9250b46bba3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionRequestOrBuilder.java +++ /dev/null @@ -1,63 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface AcknowledgeUserDataCollectionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Required. The property for which to acknowledge user data collection.
-   * 
- * - * string property = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The acknowledgement. - */ - java.lang.String getAcknowledgement(); - /** - *
-   * Required. An acknowledgement that the caller of this method understands the
-   * terms of user data collection.
-   *
-   * This field must contain the exact value:
-   * "I acknowledge that I have the necessary privacy disclosures and rights
-   * from my end users for the collection and processing of their data,
-   * including the association of such data with the visitation information
-   * Google Analytics collects from my site and/or app property."
-   * 
- * - * string acknowledgement = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for acknowledgement. - */ - com.google.protobuf.ByteString - getAcknowledgementBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java deleted file mode 100644 index 5f308d856880..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponse.java +++ /dev/null @@ -1,406 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for AcknowledgeUserDataCollection RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} - */ -public final class AcknowledgeUserDataCollectionResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) - AcknowledgeUserDataCollectionResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use AcknowledgeUserDataCollectionResponse.newBuilder() to construct. - private AcknowledgeUserDataCollectionResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AcknowledgeUserDataCollectionResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AcknowledgeUserDataCollectionResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.class, com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - 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.admin.v1beta.AcknowledgeUserDataCollectionResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse other = (com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) 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.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for AcknowledgeUserDataCollection RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.class, com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse build() { - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse buildPartial() { - com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse result = new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse other) { - if (other == com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse.getDefaultInstance()) return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) - private static final com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse(); - } - - public static com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AcknowledgeUserDataCollectionResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java deleted file mode 100644 index becd2ed551ea..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AcknowledgeUserDataCollectionResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface AcknowledgeUserDataCollectionResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.AcknowledgeUserDataCollectionResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java deleted file mode 100644 index c8d2a2e43ffe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActionType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Types of actions that may change a resource.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.ActionType} - */ -public enum ActionType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Action type unknown or not specified.
-   * 
- * - * ACTION_TYPE_UNSPECIFIED = 0; - */ - ACTION_TYPE_UNSPECIFIED(0), - /** - *
-   * Resource was created in this change.
-   * 
- * - * CREATED = 1; - */ - CREATED(1), - /** - *
-   * Resource was updated in this change.
-   * 
- * - * UPDATED = 2; - */ - UPDATED(2), - /** - *
-   * Resource was deleted in this change.
-   * 
- * - * DELETED = 3; - */ - DELETED(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Action type unknown or not specified.
-   * 
- * - * ACTION_TYPE_UNSPECIFIED = 0; - */ - public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Resource was created in this change.
-   * 
- * - * CREATED = 1; - */ - public static final int CREATED_VALUE = 1; - /** - *
-   * Resource was updated in this change.
-   * 
- * - * UPDATED = 2; - */ - public static final int UPDATED_VALUE = 2; - /** - *
-   * Resource was deleted in this change.
-   * 
- * - * DELETED = 3; - */ - public static final int DELETED_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 ActionType 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 ActionType forNumber(int value) { - switch (value) { - case 0: return ACTION_TYPE_UNSPECIFIED; - case 1: return CREATED; - case 2: return UPDATED; - case 3: return DELETED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ActionType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ActionType findValueByNumber(int number) { - return ActionType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(3); - } - - private static final ActionType[] VALUES = values(); - - public static ActionType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ActionType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ActionType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java deleted file mode 100644 index ecdc1b7da4f4..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ActorType.java +++ /dev/null @@ -1,168 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Different kinds of actors that can make changes to Google Analytics
- * resources.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.ActorType} - */ -public enum ActorType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Unknown or unspecified actor type.
-   * 
- * - * ACTOR_TYPE_UNSPECIFIED = 0; - */ - ACTOR_TYPE_UNSPECIFIED(0), - /** - *
-   * Changes made by the user specified in actor_email.
-   * 
- * - * USER = 1; - */ - USER(1), - /** - *
-   * Changes made by the Google Analytics system.
-   * 
- * - * SYSTEM = 2; - */ - SYSTEM(2), - /** - *
-   * Changes made by Google Analytics support team staff.
-   * 
- * - * SUPPORT = 3; - */ - SUPPORT(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Unknown or unspecified actor type.
-   * 
- * - * ACTOR_TYPE_UNSPECIFIED = 0; - */ - public static final int ACTOR_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Changes made by the user specified in actor_email.
-   * 
- * - * USER = 1; - */ - public static final int USER_VALUE = 1; - /** - *
-   * Changes made by the Google Analytics system.
-   * 
- * - * SYSTEM = 2; - */ - public static final int SYSTEM_VALUE = 2; - /** - *
-   * Changes made by Google Analytics support team staff.
-   * 
- * - * SUPPORT = 3; - */ - public static final int SUPPORT_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 ActorType 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 ActorType forNumber(int value) { - switch (value) { - case 0: return ACTOR_TYPE_UNSPECIFIED; - case 1: return USER; - case 2: return SYSTEM; - case 3: return SUPPORT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ActorType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ActorType findValueByNumber(int number) { - return ActorType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(2); - } - - private static final ActorType[] VALUES = values(); - - public static ActorType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ActorType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ActorType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java deleted file mode 100644 index 0069f2e50441..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/AnalyticsAdminProto.java +++ /dev/null @@ -1,1253 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public final class AnalyticsAdminProto { - private AnalyticsAdminProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/analytics/admin/v1beta/analytic" + - "s_admin.proto\022\035google.analytics.admin.v1" + - "beta\0321google/analytics/admin/v1beta/acce" + - "ss_report.proto\032-google/analytics/admin/" + - "v1beta/resources.proto\032\034google/api/annot" + - "ations.proto\032\027google/api/client.proto\032\037g" + - "oogle/api/field_behavior.proto\032\031google/a" + - "pi/resource.proto\032\033google/protobuf/empty" + - ".proto\032 google/protobuf/field_mask.proto" + - "\032\037google/protobuf/timestamp.proto\"\236\004\n\026Ru" + - "nAccessReportRequest\022\016\n\006entity\030\001 \001(\t\022B\n\n" + - "dimensions\030\002 \003(\0132..google.analytics.admi" + - "n.v1beta.AccessDimension\022<\n\007metrics\030\003 \003(" + - "\0132+.google.analytics.admin.v1beta.Access" + - "Metric\022C\n\013date_ranges\030\004 \003(\0132..google.ana" + - "lytics.admin.v1beta.AccessDateRange\022O\n\020d" + - "imension_filter\030\005 \001(\01325.google.analytics" + - ".admin.v1beta.AccessFilterExpression\022L\n\r" + - "metric_filter\030\006 \001(\01325.google.analytics.a" + - "dmin.v1beta.AccessFilterExpression\022\016\n\006of" + - "fset\030\007 \001(\003\022\r\n\005limit\030\010 \001(\003\022\021\n\ttime_zone\030\t" + - " \001(\t\022?\n\torder_bys\030\n \003(\0132,.google.analyti" + - "cs.admin.v1beta.AccessOrderBy\022\033\n\023return_" + - "entity_quota\030\013 \001(\010\"\273\002\n\027RunAccessReportRe" + - "sponse\022O\n\021dimension_headers\030\001 \003(\01324.goog" + - "le.analytics.admin.v1beta.AccessDimensio" + - "nHeader\022I\n\016metric_headers\030\002 \003(\01321.google" + - ".analytics.admin.v1beta.AccessMetricHead" + - "er\0226\n\004rows\030\003 \003(\0132(.google.analytics.admi" + - "n.v1beta.AccessRow\022\021\n\trow_count\030\004 \001(\005\0229\n" + - "\005quota\030\005 \001(\0132*.google.analytics.admin.v1" + - "beta.AccessQuota\"Q\n\021GetAccountRequest\022<\n" + - "\004name\030\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.goo" + - "gleapis.com/Account\"R\n\023ListAccountsReque" + - "st\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token\030\002 \001(" + - "\t\022\024\n\014show_deleted\030\003 \001(\010\"i\n\024ListAccountsR" + - "esponse\0228\n\010accounts\030\001 \003(\0132&.google.analy" + - "tics.admin.v1beta.Account\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"T\n\024DeleteAccountRequest\022<\n\004na" + - "me\030\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.google" + - "apis.com/Account\"\214\001\n\024UpdateAccountReques" + - "t\022=\n\007account\030\001 \001(\0132&.google.analytics.ad" + - "min.v1beta.AccountB\004\342A\001\002\0225\n\013update_mask\030" + - "\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"" + - "n\n\035ProvisionAccountTicketRequest\0227\n\007acco" + - "unt\030\001 \001(\0132&.google.analytics.admin.v1bet" + - "a.Account\022\024\n\014redirect_uri\030\002 \001(\t\";\n\036Provi" + - "sionAccountTicketResponse\022\031\n\021account_tic" + - "ket_id\030\001 \001(\t\"S\n\022GetPropertyRequest\022=\n\004na" + - "me\030\001 \001(\tB/\342A\001\002\372A(\n&analyticsadmin.google" + - "apis.com/Property\"j\n\025ListPropertiesReque" + - "st\022\024\n\006filter\030\001 \001(\tB\004\342A\001\002\022\021\n\tpage_size\030\002 " + - "\001(\005\022\022\n\npage_token\030\003 \001(\t\022\024\n\014show_deleted\030" + - "\004 \001(\010\"n\n\026ListPropertiesResponse\022;\n\nprope" + - "rties\030\001 \003(\0132\'.google.analytics.admin.v1b" + - "eta.Property\022\027\n\017next_page_token\030\002 \001(\t\"\217\001" + - "\n\025UpdatePropertyRequest\022?\n\010property\030\001 \001(" + - "\0132\'.google.analytics.admin.v1beta.Proper" + - "tyB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.google.p" + - "rotobuf.FieldMaskB\004\342A\001\002\"X\n\025CreatePropert" + - "yRequest\022?\n\010property\030\001 \001(\0132\'.google.anal" + - "ytics.admin.v1beta.PropertyB\004\342A\001\002\"V\n\025Del" + - "etePropertyRequest\022=\n\004name\030\001 \001(\tB/\342A\001\002\372A" + - "(\n&analyticsadmin.googleapis.com/Propert" + - "y\"\252\001\n\031CreateFirebaseLinkRequest\022C\n\006paren" + - "t\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googlea" + - "pis.com/FirebaseLink\022H\n\rfirebase_link\030\002 " + - "\001(\0132+.google.analytics.admin.v1beta.Fire" + - "baseLinkB\004\342A\001\002\"^\n\031DeleteFirebaseLinkRequ" + - "est\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*analyticsadm" + - "in.googleapis.com/FirebaseLink\"\206\001\n\030ListF" + - "irebaseLinksRequest\022C\n\006parent\030\001 \001(\tB3\342A\001" + - "\002\372A,\022*analyticsadmin.googleapis.com/Fire" + - "baseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + - "n\030\003 \001(\t\"y\n\031ListFirebaseLinksResponse\022C\n\016" + - "firebase_links\030\001 \003(\0132+.google.analytics." + - "admin.v1beta.FirebaseLink\022\027\n\017next_page_t" + - "oken\030\002 \001(\t\"\257\001\n\032CreateGoogleAdsLinkReques" + - "t\022D\n\006parent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsadm" + - "in.googleapis.com/GoogleAdsLink\022K\n\017googl" + - "e_ads_link\030\002 \001(\0132,.google.analytics.admi" + - "n.v1beta.GoogleAdsLinkB\004\342A\001\002\"\232\001\n\032UpdateG" + - "oogleAdsLinkRequest\022E\n\017google_ads_link\030\001" + - " \001(\0132,.google.analytics.admin.v1beta.Goo" + - "gleAdsLink\0225\n\013update_mask\030\002 \001(\0132\032.google" + - ".protobuf.FieldMaskB\004\342A\001\002\"`\n\032DeleteGoogl" + - "eAdsLinkRequest\022B\n\004name\030\001 \001(\tB4\342A\001\002\372A-\n+" + - "analyticsadmin.googleapis.com/GoogleAdsL" + - "ink\"\210\001\n\031ListGoogleAdsLinksRequest\022D\n\006par" + - "ent\030\001 \001(\tB4\342A\001\002\372A-\022+analyticsadmin.googl" + - "eapis.com/GoogleAdsLink\022\021\n\tpage_size\030\002 \001" + - "(\005\022\022\n\npage_token\030\003 \001(\t\"}\n\032ListGoogleAdsL" + - "inksResponse\022F\n\020google_ads_links\030\001 \003(\0132," + - ".google.analytics.admin.v1beta.GoogleAds" + - "Link\022\027\n\017next_page_token\030\002 \001(\t\"i\n\035GetData" + - "SharingSettingsRequest\022H\n\004name\030\001 \001(\tB:\342A" + - "\001\002\372A3\n1analyticsadmin.googleapis.com/Dat" + - "aSharingSettings\"D\n\033ListAccountSummaries" + - "Request\022\021\n\tpage_size\030\001 \001(\005\022\022\n\npage_token" + - "\030\002 \001(\t\"\201\001\n\034ListAccountSummariesResponse\022" + - "H\n\021account_summaries\030\001 \003(\0132-.google.anal" + - "ytics.admin.v1beta.AccountSummary\022\027\n\017nex" + - "t_page_token\030\002 \001(\t\"\210\001\n$AcknowledgeUserDa" + - "taCollectionRequest\022A\n\010property\030\001 \001(\tB/\342" + - "A\001\002\372A(\n&analyticsadmin.googleapis.com/Pr" + - "operty\022\035\n\017acknowledgement\030\002 \001(\tB\004\342A\001\002\"\'\n" + - "%AcknowledgeUserDataCollectionResponse\"\212" + - "\004\n SearchChangeHistoryEventsRequest\022?\n\007a" + - "ccount\030\001 \001(\tB.\342A\001\002\372A\'\n%analyticsadmin.go" + - "ogleapis.com/Account\022A\n\010property\030\002 \001(\tB/" + - "\342A\001\001\372A(\n&analyticsadmin.googleapis.com/P" + - "roperty\022U\n\rresource_type\030\003 \003(\01628.google." + - "analytics.admin.v1beta.ChangeHistoryReso" + - "urceTypeB\004\342A\001\001\022?\n\006action\030\004 \003(\0162).google." + - "analytics.admin.v1beta.ActionTypeB\004\342A\001\001\022" + - "\031\n\013actor_email\030\005 \003(\tB\004\342A\001\001\022>\n\024earliest_c" + - "hange_time\030\006 \001(\0132\032.google.protobuf.Times" + - "tampB\004\342A\001\001\022<\n\022latest_change_time\030\007 \001(\0132\032" + - ".google.protobuf.TimestampB\004\342A\001\001\022\027\n\tpage" + - "_size\030\010 \001(\005B\004\342A\001\001\022\030\n\npage_token\030\t \001(\tB\004\342" + - "A\001\001\"\216\001\n!SearchChangeHistoryEventsRespons" + - "e\022P\n\025change_history_events\030\001 \003(\01321.googl" + - "e.analytics.admin.v1beta.ChangeHistoryEv" + - "ent\022\027\n\017next_page_token\030\002 \001(\t\"u\n#GetMeasu" + - "rementProtocolSecretRequest\022N\n\004name\030\001 \001(" + - "\tB@\342A\001\002\372A9\n7analyticsadmin.googleapis.co" + - "m/MeasurementProtocolSecret\"\337\001\n&CreateMe" + - "asurementProtocolSecretRequest\022P\n\006parent" + - "\030\001 \001(\tB@\342A\001\002\372A9\0227analyticsadmin.googleap" + - "is.com/MeasurementProtocolSecret\022c\n\033meas" + - "urement_protocol_secret\030\002 \001(\01328.google.a" + - "nalytics.admin.v1beta.MeasurementProtoco" + - "lSecretB\004\342A\001\002\"x\n&DeleteMeasurementProtoc" + - "olSecretRequest\022N\n\004name\030\001 \001(\tB@\342A\001\002\372A9\n7" + - "analyticsadmin.googleapis.com/Measuremen" + - "tProtocolSecret\"\304\001\n&UpdateMeasurementPro" + - "tocolSecretRequest\022c\n\033measurement_protoc" + - "ol_secret\030\001 \001(\01328.google.analytics.admin" + - ".v1beta.MeasurementProtocolSecretB\004\342A\001\002\022" + - "5\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMaskB\004\342A\001\002\"\240\001\n%ListMeasurementProtoc" + - "olSecretsRequest\022P\n\006parent\030\001 \001(\tB@\342A\001\002\372A" + - "9\0227analyticsadmin.googleapis.com/Measure" + - "mentProtocolSecret\022\021\n\tpage_size\030\002 \001(\005\022\022\n" + - "\npage_token\030\003 \001(\t\"\241\001\n&ListMeasurementPro" + - "tocolSecretsResponse\022^\n\034measurement_prot" + - "ocol_secrets\030\001 \003(\01328.google.analytics.ad" + - "min.v1beta.MeasurementProtocolSecret\022\027\n\017" + - "next_page_token\030\002 \001(\t\"\266\001\n\034CreateConversi" + - "onEventRequest\022N\n\020conversion_event\030\001 \001(\013" + - "2..google.analytics.admin.v1beta.Convers" + - "ionEventB\004\342A\001\002\022F\n\006parent\030\002 \001(\tB6\342A\001\002\372A/\022" + - "-analyticsadmin.googleapis.com/Conversio" + - "nEvent\"\245\001\n\034UpdateConversionEventRequest\022" + - "N\n\020conversion_event\030\001 \001(\0132..google.analy" + - "tics.admin.v1beta.ConversionEventB\004\342A\001\002\022" + - "5\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + - "ieldMaskB\004\342A\001\002\"a\n\031GetConversionEventRequ" + - "est\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analyticsadm" + - "in.googleapis.com/ConversionEvent\"d\n\034Del" + - "eteConversionEventRequest\022D\n\004name\030\001 \001(\tB" + - "6\342A\001\002\372A/\n-analyticsadmin.googleapis.com/" + - "ConversionEvent\"\214\001\n\033ListConversionEvents" + - "Request\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analyt" + - "icsadmin.googleapis.com/ConversionEvent\022" + - "\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\202" + - "\001\n\034ListConversionEventsResponse\022I\n\021conve" + - "rsion_events\030\001 \003(\0132..google.analytics.ad" + - "min.v1beta.ConversionEvent\022\027\n\017next_page_" + - "token\030\002 \001(\t\"\266\001\n\034CreateCustomDimensionReq" + - "uest\022F\n\006parent\030\001 \001(\tB6\342A\001\002\372A/\022-analytics" + - "admin.googleapis.com/CustomDimension\022N\n\020" + - "custom_dimension\030\002 \001(\0132..google.analytic" + - "s.admin.v1beta.CustomDimensionB\004\342A\001\002\"\237\001\n" + - "\034UpdateCustomDimensionRequest\022H\n\020custom_" + - "dimension\030\001 \001(\0132..google.analytics.admin" + - ".v1beta.CustomDimension\0225\n\013update_mask\030\002" + - " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\002\"\214" + - "\001\n\033ListCustomDimensionsRequest\022F\n\006parent" + - "\030\001 \001(\tB6\342A\001\002\372A/\022-analyticsadmin.googleap" + - "is.com/CustomDimension\022\021\n\tpage_size\030\002 \001(" + - "\005\022\022\n\npage_token\030\003 \001(\t\"\202\001\n\034ListCustomDime" + - "nsionsResponse\022I\n\021custom_dimensions\030\001 \003(" + - "\0132..google.analytics.admin.v1beta.Custom" + - "Dimension\022\027\n\017next_page_token\030\002 \001(\t\"e\n\035Ar" + - "chiveCustomDimensionRequest\022D\n\004name\030\001 \001(" + - "\tB6\342A\001\002\372A/\n-analyticsadmin.googleapis.co" + - "m/CustomDimension\"a\n\031GetCustomDimensionR" + - "equest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-analytics" + - "admin.googleapis.com/CustomDimension\"\252\001\n" + - "\031CreateCustomMetricRequest\022C\n\006parent\030\001 \001" + - "(\tB3\342A\001\002\372A,\022*analyticsadmin.googleapis.c" + - "om/CustomMetric\022H\n\rcustom_metric\030\002 \001(\0132+" + - ".google.analytics.admin.v1beta.CustomMet" + - "ricB\004\342A\001\002\"\226\001\n\031UpdateCustomMetricRequest\022" + - "B\n\rcustom_metric\030\001 \001(\0132+.google.analytic" + - "s.admin.v1beta.CustomMetric\0225\n\013update_ma" + - "sk\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A" + - "\001\002\"\206\001\n\030ListCustomMetricsRequest\022C\n\006paren" + - "t\030\001 \001(\tB3\342A\001\002\372A,\022*analyticsadmin.googlea" + - "pis.com/CustomMetric\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\"y\n\031ListCustomMetrics" + - "Response\022C\n\016custom_metrics\030\001 \003(\0132+.googl" + - "e.analytics.admin.v1beta.CustomMetric\022\027\n" + - "\017next_page_token\030\002 \001(\t\"_\n\032ArchiveCustomM" + - "etricRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*ana" + - "lyticsadmin.googleapis.com/CustomMetric\"" + - "[\n\026GetCustomMetricRequest\022A\n\004name\030\001 \001(\tB" + - "3\342A\001\002\372A,\n*analyticsadmin.googleapis.com/" + - "CustomMetric\"m\n\037GetDataRetentionSettings" + - "Request\022J\n\004name\030\001 \001(\tB<\342A\001\002\372A5\n3analytic" + - "sadmin.googleapis.com/DataRetentionSetti" + - "ngs\"\270\001\n\"UpdateDataRetentionSettingsReque" + - "st\022[\n\027data_retention_settings\030\001 \001(\01324.go" + - "ogle.analytics.admin.v1beta.DataRetentio" + - "nSettingsB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.g" + - "oogle.protobuf.FieldMaskB\004\342A\001\002\"\242\001\n\027Creat" + - "eDataStreamRequest\022A\n\006parent\030\001 \001(\tB1\342A\001\002" + - "\372A*\022(analyticsadmin.googleapis.com/DataS" + - "tream\022D\n\013data_stream\030\002 \001(\0132).google.anal" + - "ytics.admin.v1beta.DataStreamB\004\342A\001\002\"Z\n\027D" + - "eleteDataStreamRequest\022?\n\004name\030\001 \001(\tB1\342A" + - "\001\002\372A*\n(analyticsadmin.googleapis.com/Dat" + - "aStream\"\220\001\n\027UpdateDataStreamRequest\022>\n\013d" + - "ata_stream\030\001 \001(\0132).google.analytics.admi" + - "n.v1beta.DataStream\0225\n\013update_mask\030\002 \001(\013" + - "2\032.google.protobuf.FieldMaskB\004\342A\001\002\"\202\001\n\026L" + - "istDataStreamsRequest\022A\n\006parent\030\001 \001(\tB1\342" + - "A\001\002\372A*\022(analyticsadmin.googleapis.com/Da" + - "taStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" + - "n\030\003 \001(\t\"s\n\027ListDataStreamsResponse\022?\n\014da" + - "ta_streams\030\001 \003(\0132).google.analytics.admi" + - "n.v1beta.DataStream\022\027\n\017next_page_token\030\002" + - " \001(\t\"W\n\024GetDataStreamRequest\022?\n\004name\030\001 \001" + - "(\tB1\342A\001\002\372A*\n(analyticsadmin.googleapis.c" + - "om/DataStream2\333P\n\025AnalyticsAdminService\022" + - "\220\001\n\nGetAccount\0220.google.analytics.admin." + - "v1beta.GetAccountRequest\032&.google.analyt" + - "ics.admin.v1beta.Account\"(\332A\004name\202\323\344\223\002\033\022" + - "\031/v1beta/{name=accounts/*}\022\221\001\n\014ListAccou" + - "nts\0222.google.analytics.admin.v1beta.List" + - "AccountsRequest\0323.google.analytics.admin" + - ".v1beta.ListAccountsResponse\"\030\202\323\344\223\002\022\022\020/v" + - "1beta/accounts\022\206\001\n\rDeleteAccount\0223.googl" + - "e.analytics.admin.v1beta.DeleteAccountRe" + - "quest\032\026.google.protobuf.Empty\"(\332A\004name\202\323" + - "\344\223\002\033*\031/v1beta/{name=accounts/*}\022\266\001\n\rUpda" + - "teAccount\0223.google.analytics.admin.v1bet" + - "a.UpdateAccountRequest\032&.google.analytic" + - "s.admin.v1beta.Account\"H\332A\023account,updat" + - "e_mask\202\323\344\223\002,2!/v1beta/{account.name=acco" + - "unts/*}:\007account\022\311\001\n\026ProvisionAccountTic" + - "ket\022<.google.analytics.admin.v1beta.Prov" + - "isionAccountTicketRequest\032=.google.analy" + - "tics.admin.v1beta.ProvisionAccountTicket" + - "Response\"2\202\323\344\223\002,\"\'/v1beta/accounts:provi" + - "sionAccountTicket:\001*\022\261\001\n\024ListAccountSumm" + - "aries\022:.google.analytics.admin.v1beta.Li" + - "stAccountSummariesRequest\032;.google.analy" + - "tics.admin.v1beta.ListAccountSummariesRe" + - "sponse\" \202\323\344\223\002\032\022\030/v1beta/accountSummaries" + - "\022\225\001\n\013GetProperty\0221.google.analytics.admi" + - "n.v1beta.GetPropertyRequest\032\'.google.ana" + - "lytics.admin.v1beta.Property\"*\332A\004name\202\323\344" + - "\223\002\035\022\033/v1beta/{name=properties/*}\022\231\001\n\016Lis" + - "tProperties\0224.google.analytics.admin.v1b" + - "eta.ListPropertiesRequest\0325.google.analy" + - "tics.admin.v1beta.ListPropertiesResponse" + - "\"\032\202\323\344\223\002\024\022\022/v1beta/properties\022\240\001\n\016CreateP" + - "roperty\0224.google.analytics.admin.v1beta." + - "CreatePropertyRequest\032\'.google.analytics" + - ".admin.v1beta.Property\"/\332A\010property\202\323\344\223\002" + - "\036\"\022/v1beta/properties:\010property\022\233\001\n\016Dele" + - "teProperty\0224.google.analytics.admin.v1be" + - "ta.DeletePropertyRequest\032\'.google.analyt" + - "ics.admin.v1beta.Property\"*\332A\004name\202\323\344\223\002\035" + - "*\033/v1beta/{name=properties/*}\022\276\001\n\016Update" + - "Property\0224.google.analytics.admin.v1beta" + - ".UpdatePropertyRequest\032\'.google.analytic" + - "s.admin.v1beta.Property\"M\332A\024property,upd" + - "ate_mask\202\323\344\223\00202$/v1beta/{property.name=p" + - "roperties/*}:\010property\022\326\001\n\022CreateFirebas" + - "eLink\0228.google.analytics.admin.v1beta.Cr" + - "eateFirebaseLinkRequest\032+.google.analyti" + - "cs.admin.v1beta.FirebaseLink\"Y\332A\024parent," + - "firebase_link\202\323\344\223\002<\"+/v1beta/{parent=pro" + - "perties/*}/firebaseLinks:\rfirebase_link\022" + - "\242\001\n\022DeleteFirebaseLink\0228.google.analytic" + - "s.admin.v1beta.DeleteFirebaseLinkRequest" + - "\032\026.google.protobuf.Empty\":\332A\004name\202\323\344\223\002-*" + - "+/v1beta/{name=properties/*/firebaseLink" + - "s/*}\022\304\001\n\021ListFirebaseLinks\0227.google.anal" + - "ytics.admin.v1beta.ListFirebaseLinksRequ" + - "est\0328.google.analytics.admin.v1beta.List" + - "FirebaseLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+" + - "/v1beta/{parent=properties/*}/firebaseLi" + - "nks\022\336\001\n\023CreateGoogleAdsLink\0229.google.ana" + - "lytics.admin.v1beta.CreateGoogleAdsLinkR" + - "equest\032,.google.analytics.admin.v1beta.G" + - "oogleAdsLink\"^\332A\026parent,google_ads_link\202" + - "\323\344\223\002?\",/v1beta/{parent=properties/*}/goo" + - "gleAdsLinks:\017google_ads_link\022\363\001\n\023UpdateG" + - "oogleAdsLink\0229.google.analytics.admin.v1" + - "beta.UpdateGoogleAdsLinkRequest\032,.google" + - ".analytics.admin.v1beta.GoogleAdsLink\"s\332" + - "A\033google_ads_link,update_mask\202\323\344\223\002O2.google.analytics." + - "admin.v1beta.GetDataRetentionSettingsReq" + - "uest\0324.google.analytics.admin.v1beta.Dat" + - "aRetentionSettings\"@\332A\004name\202\323\344\223\0023\0221/v1be" + - "ta/{name=properties/*/dataRetentionSetti" + - "ngs}\022\251\002\n\033UpdateDataRetentionSettings\022A.g" + - "oogle.analytics.admin.v1beta.UpdateDataR" + - "etentionSettingsRequest\0324.google.analyti" + - "cs.admin.v1beta.DataRetentionSettings\"\220\001" + - "\332A#data_retention_settings,update_mask\202\323" + - "\344\223\002d2I/v1beta/{data_retention_settings.n" + - "ame=properties/*/dataRetentionSettings}:" + - "\027data_retention_settings\022\312\001\n\020CreateDataS" + - "tream\0226.google.analytics.admin.v1beta.Cr" + - "eateDataStreamRequest\032).google.analytics" + - ".admin.v1beta.DataStream\"S\332A\022parent,data" + - "_stream\202\323\344\223\0028\")/v1beta/{parent=propertie" + - "s/*}/dataStreams:\013data_stream\022\234\001\n\020Delete" + - "DataStream\0226.google.analytics.admin.v1be" + - "ta.DeleteDataStreamRequest\032\026.google.prot" + - "obuf.Empty\"8\332A\004name\202\323\344\223\002+*)/v1beta/{name" + - "=properties/*/dataStreams/*}\022\333\001\n\020UpdateD" + - "ataStream\0226.google.analytics.admin.v1bet" + - "a.UpdateDataStreamRequest\032).google.analy" + - "tics.admin.v1beta.DataStream\"d\332A\027data_st" + - "ream,update_mask\202\323\344\223\002D25/v1beta/{data_st" + - "ream.name=properties/*/dataStreams/*}:\013d" + - "ata_stream\022\274\001\n\017ListDataStreams\0225.google." + - "analytics.admin.v1beta.ListDataStreamsRe" + - "quest\0326.google.analytics.admin.v1beta.Li" + - "stDataStreamsResponse\":\332A\006parent\202\323\344\223\002+\022)" + - "/v1beta/{parent=properties/*}/dataStream" + - "s\022\251\001\n\rGetDataStream\0223.google.analytics.a" + - "dmin.v1beta.GetDataStreamRequest\032).googl" + - "e.analytics.admin.v1beta.DataStream\"8\332A\004" + - "name\202\323\344\223\002+\022)/v1beta/{name=properties/*/d" + - "ataStreams/*}\022\354\001\n\017RunAccessReport\0225.goog" + - "le.analytics.admin.v1beta.RunAccessRepor" + - "tRequest\0326.google.analytics.admin.v1beta" + - ".RunAccessReportResponse\"j\202\323\344\223\002d\"-/v1bet" + - "a/{entity=properties/*}:runAccessReport:" + - "\001*Z0\"+/v1beta/{entity=accounts/*}:runAcc" + - "essReport:\001*\032\204\001\312A\035analyticsadmin.googlea" + - "pis.com\322Aahttps://www.googleapis.com/aut" + - "h/analytics.edit,https://www.googleapis." + - "com/auth/analytics.readonlyB~\n!com.googl" + - "e.analytics.admin.v1betaB\023AnalyticsAdmin" + - "ProtoP\001ZBgoogle.golang.org/genproto/goog" + - "leapis/analytics/admin/v1beta;adminb\006pro" + - "to3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.analytics.admin.v1beta.AccessReportProto.getDescriptor(), - com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor, - new java.lang.String[] { "Entity", "Dimensions", "Metrics", "DateRanges", "DimensionFilter", "MetricFilter", "Offset", "Limit", "TimeZone", "OrderBys", "ReturnEntityQuota", }); - internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor, - new java.lang.String[] { "DimensionHeaders", "MetricHeaders", "Rows", "RowCount", "Quota", }); - internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor, - new java.lang.String[] { "Accounts", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor, - new java.lang.String[] { "Account", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor, - new java.lang.String[] { "Account", "RedirectUri", }); - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor, - new java.lang.String[] { "AccountTicketId", }); - internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor, - new java.lang.String[] { "Filter", "PageSize", "PageToken", "ShowDeleted", }); - internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor, - new java.lang.String[] { "Properties", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor, - new java.lang.String[] { "Property", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor, - new java.lang.String[] { "Property", }); - internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor, - new java.lang.String[] { "Parent", "FirebaseLink", }); - internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor, - new java.lang.String[] { "FirebaseLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { "Parent", "GoogleAdsLink", }); - internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { "GoogleAdsLink", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor, - new java.lang.String[] { "GoogleAdsLinks", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor, - new java.lang.String[] { "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor, - new java.lang.String[] { "AccountSummaries", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionRequest_descriptor, - new java.lang.String[] { "Property", "Acknowledgement", }); - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AcknowledgeUserDataCollectionResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor, - new java.lang.String[] { "Account", "Property", "ResourceType", "Action", "ActorEmail", "EarliestChangeTime", "LatestChangeTime", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor, - new java.lang.String[] { "ChangeHistoryEvents", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "Parent", "MeasurementProtocolSecret", }); - internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor, - new java.lang.String[] { "MeasurementProtocolSecret", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor, - new java.lang.String[] { "MeasurementProtocolSecrets", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor, - new java.lang.String[] { "ConversionEvent", "Parent", }); - internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor, - new java.lang.String[] { "ConversionEvent", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor, - new java.lang.String[] { "ConversionEvents", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor, - new java.lang.String[] { "Parent", "CustomDimension", }); - internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor, - new java.lang.String[] { "CustomDimension", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor, - new java.lang.String[] { "CustomDimensions", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor, - new java.lang.String[] { "Parent", "CustomMetric", }); - internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor, - new java.lang.String[] { "CustomMetric", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor, - new java.lang.String[] { "CustomMetrics", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); - internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor, - new java.lang.String[] { "DataRetentionSettings", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(57); - internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor, - new java.lang.String[] { "Parent", "DataStream", }); - internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(58); - internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(59); - internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor, - new java.lang.String[] { "DataStream", "UpdateMask", }); - internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(60); - internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(61); - internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor, - new java.lang.String[] { "DataStreams", "NextPageToken", }); - internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(62); - internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor, - new java.lang.String[] { "Name", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.analytics.admin.v1beta.AccessReportProto.getDescriptor(); - com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java deleted file mode 100644 index 0fb9dee82922..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ArchiveCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} - */ -public final class ArchiveCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) - ArchiveCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ArchiveCustomDimensionRequest.newBuilder() to construct. - private ArchiveCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArchiveCustomDimensionRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ArchiveCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.class, com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.ArchiveCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest other = (com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ArchiveCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.class, com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest build() { - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest result = new com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to archive.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.ArchiveCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) - private static final com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArchiveCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java deleted file mode 100644 index fa96da2f857f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ArchiveCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ArchiveCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomDimension to archive.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java deleted file mode 100644 index 09035fb6a541..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ArchiveCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomMetricRequest} - */ -public final class ArchiveCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) - ArchiveCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ArchiveCustomMetricRequest.newBuilder() to construct. - private ArchiveCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ArchiveCustomMetricRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ArchiveCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.class, com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.ArchiveCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest other = (com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ArchiveCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ArchiveCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.class, com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ArchiveCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest build() { - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest result = new com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to archive.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.ArchiveCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) - private static final com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ArchiveCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ArchiveCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java deleted file mode 100644 index 2057fe0da3b3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ArchiveCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ArchiveCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ArchiveCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomMetric to archive.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java deleted file mode 100644 index 4eca19641363..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChange.java +++ /dev/null @@ -1,3936 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A description of a change to a single Google Analytics resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange} - */ -public final class ChangeHistoryChange extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ChangeHistoryChange) - ChangeHistoryChangeOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChangeHistoryChange.newBuilder() to construct. - private ChangeHistoryChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChangeHistoryChange() { - resource_ = ""; - action_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeHistoryChange(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ChangeHistoryChange.class, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder.class); - } - - public interface ChangeHistoryResourceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return The account. - */ - com.google.analytics.admin.v1beta.Account getAccount(); - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder(); - - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - * @return Whether the property field is set. - */ - boolean hasProperty(); - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - * @return The property. - */ - com.google.analytics.admin.v1beta.Property getProperty(); - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder(); - - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return Whether the firebaseLink field is set. - */ - boolean hasFirebaseLink(); - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return The firebaseLink. - */ - com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink(); - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); - - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return Whether the googleAdsLink field is set. - */ - boolean hasGoogleAdsLink(); - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return The googleAdsLink. - */ - com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink(); - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); - - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return Whether the conversionEvent field is set. - */ - boolean hasConversionEvent(); - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return The conversionEvent. - */ - com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent(); - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder(); - - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return Whether the measurementProtocolSecret field is set. - */ - boolean hasMeasurementProtocolSecret(); - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return The measurementProtocolSecret. - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret(); - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder(); - - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return Whether the dataRetentionSettings field is set. - */ - boolean hasDataRetentionSettings(); - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return The dataRetentionSettings. - */ - com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings(); - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder(); - - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return The dataStream. - */ - com.google.analytics.admin.v1beta.DataStream getDataStream(); - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder(); - - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); - } - /** - *
-   * A snapshot of a resource as before or after the result of a change in
-   * change history.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} - */ - public static final class ChangeHistoryResource extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) - ChangeHistoryResourceOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeHistoryResource.newBuilder() to construct. - private ChangeHistoryResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChangeHistoryResource() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeHistoryResource(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.class, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder.class); - } - - private int resourceCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object resource_; - public enum ResourceCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - ACCOUNT(1), - PROPERTY(2), - FIREBASE_LINK(6), - GOOGLE_ADS_LINK(7), - CONVERSION_EVENT(11), - MEASUREMENT_PROTOCOL_SECRET(12), - DATA_RETENTION_SETTINGS(15), - DATA_STREAM(18), - RESOURCE_NOT_SET(0); - private final int value; - private ResourceCase(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 ResourceCase valueOf(int value) { - return forNumber(value); - } - - public static ResourceCase forNumber(int value) { - switch (value) { - case 1: return ACCOUNT; - case 2: return PROPERTY; - case 6: return FIREBASE_LINK; - case 7: return GOOGLE_ADS_LINK; - case 11: return CONVERSION_EVENT; - case 12: return MEASUREMENT_PROTOCOL_SECRET; - case 15: return DATA_RETENTION_SETTINGS; - case 18: return DATA_STREAM; - case 0: return RESOURCE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public ResourceCase - getResourceCase() { - return ResourceCase.forNumber( - resourceCase_); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return resourceCase_ == 1; - } - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Account getAccount() { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1beta.Account) resource_; - } - return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); - } - /** - *
-     * A snapshot of an Account resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1beta.Account) resource_; - } - return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); - } - - public static final int PROPERTY_FIELD_NUMBER = 2; - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return resourceCase_ == 2; - } - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Property getProperty() { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1beta.Property) resource_; - } - return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); - } - /** - *
-     * A snapshot of a Property resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1beta.Property) resource_; - } - return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); - } - - public static final int FIREBASE_LINK_FIELD_NUMBER = 6; - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return Whether the firebaseLink field is set. - */ - @java.lang.Override - public boolean hasFirebaseLink() { - return resourceCase_ == 6; - } - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return The firebaseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); - } - /** - *
-     * A snapshot of a FirebaseLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); - } - - public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 7; - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return resourceCase_ == 7; - } - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); - } - /** - *
-     * A snapshot of a GoogleAdsLink resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); - } - - public static final int CONVERSION_EVENT_FIELD_NUMBER = 11; - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return resourceCase_ == 11; - } - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); - } - /** - *
-     * A snapshot of a ConversionEvent resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); - } - - public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 12; - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return resourceCase_ == 12; - } - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); - } - /** - *
-     * A snapshot of a MeasurementProtocolSecret resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); - } - - public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 15; - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return Whether the dataRetentionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRetentionSettings() { - return resourceCase_ == 15; - } - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return The dataRetentionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); - } - /** - *
-     * A snapshot of a data retention settings resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); - } - - public static final int DATA_STREAM_FIELD_NUMBER = 18; - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return resourceCase_ == 18; - } - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream getDataStream() { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1beta.DataStream) resource_; - } - return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); - } - /** - *
-     * A snapshot of a DataStream resource in change history.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1beta.DataStream) resource_; - } - return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (resourceCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1beta.Account) resource_); - } - if (resourceCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1beta.Property) resource_); - } - if (resourceCase_ == 6) { - output.writeMessage(6, (com.google.analytics.admin.v1beta.FirebaseLink) resource_); - } - if (resourceCase_ == 7) { - output.writeMessage(7, (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_); - } - if (resourceCase_ == 11) { - output.writeMessage(11, (com.google.analytics.admin.v1beta.ConversionEvent) resource_); - } - if (resourceCase_ == 12) { - output.writeMessage(12, (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_); - } - if (resourceCase_ == 15) { - output.writeMessage(15, (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_); - } - if (resourceCase_ == 18) { - output.writeMessage(18, (com.google.analytics.admin.v1beta.DataStream) resource_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (resourceCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.analytics.admin.v1beta.Account) resource_); - } - if (resourceCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.analytics.admin.v1beta.Property) resource_); - } - if (resourceCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.analytics.admin.v1beta.FirebaseLink) resource_); - } - if (resourceCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_); - } - if (resourceCase_ == 11) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, (com.google.analytics.admin.v1beta.ConversionEvent) resource_); - } - if (resourceCase_ == 12) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_); - } - if (resourceCase_ == 15) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(15, (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_); - } - if (resourceCase_ == 18) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(18, (com.google.analytics.admin.v1beta.DataStream) resource_); - } - 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.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource other = (com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) obj; - - if (!getResourceCase().equals(other.getResourceCase())) return false; - switch (resourceCase_) { - case 1: - if (!getAccount() - .equals(other.getAccount())) return false; - break; - case 2: - if (!getProperty() - .equals(other.getProperty())) return false; - break; - case 6: - if (!getFirebaseLink() - .equals(other.getFirebaseLink())) return false; - break; - case 7: - if (!getGoogleAdsLink() - .equals(other.getGoogleAdsLink())) return false; - break; - case 11: - if (!getConversionEvent() - .equals(other.getConversionEvent())) return false; - break; - case 12: - if (!getMeasurementProtocolSecret() - .equals(other.getMeasurementProtocolSecret())) return false; - break; - case 15: - if (!getDataRetentionSettings() - .equals(other.getDataRetentionSettings())) return false; - break; - case 18: - if (!getDataStream() - .equals(other.getDataStream())) 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 (resourceCase_) { - case 1: - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - break; - case 2: - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - break; - case 6: - hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseLink().hashCode(); - break; - case 7: - hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLink().hashCode(); - break; - case 11: - hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getConversionEvent().hashCode(); - break; - case 12: - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); - break; - case 15: - hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDataRetentionSettings().hashCode(); - break; - case 18: - hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getDataStream().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * A snapshot of a resource as before or after the result of a change in
-     * change history.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.class, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accountBuilder_ != null) { - accountBuilder_.clear(); - } - if (propertyBuilder_ != null) { - propertyBuilder_.clear(); - } - if (firebaseLinkBuilder_ != null) { - firebaseLinkBuilder_.clear(); - } - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.clear(); - } - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.clear(); - } - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.clear(); - } - if (dataRetentionSettingsBuilder_ != null) { - dataRetentionSettingsBuilder_.clear(); - } - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.clear(); - } - resourceCase_ = 0; - resource_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource build() { - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource buildPartial() { - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result = new com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource result) { - result.resourceCase_ = resourceCase_; - result.resource_ = this.resource_; - if (resourceCase_ == 1 && - accountBuilder_ != null) { - result.resource_ = accountBuilder_.build(); - } - if (resourceCase_ == 2 && - propertyBuilder_ != null) { - result.resource_ = propertyBuilder_.build(); - } - if (resourceCase_ == 6 && - firebaseLinkBuilder_ != null) { - result.resource_ = firebaseLinkBuilder_.build(); - } - if (resourceCase_ == 7 && - googleAdsLinkBuilder_ != null) { - result.resource_ = googleAdsLinkBuilder_.build(); - } - if (resourceCase_ == 11 && - conversionEventBuilder_ != null) { - result.resource_ = conversionEventBuilder_.build(); - } - if (resourceCase_ == 12 && - measurementProtocolSecretBuilder_ != null) { - result.resource_ = measurementProtocolSecretBuilder_.build(); - } - if (resourceCase_ == 15 && - dataRetentionSettingsBuilder_ != null) { - result.resource_ = dataRetentionSettingsBuilder_.build(); - } - if (resourceCase_ == 18 && - dataStreamBuilder_ != null) { - result.resource_ = dataStreamBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) { - return mergeFrom((com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource other) { - if (other == com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance()) return this; - switch (other.getResourceCase()) { - case ACCOUNT: { - mergeAccount(other.getAccount()); - break; - } - case PROPERTY: { - mergeProperty(other.getProperty()); - break; - } - case FIREBASE_LINK: { - mergeFirebaseLink(other.getFirebaseLink()); - break; - } - case GOOGLE_ADS_LINK: { - mergeGoogleAdsLink(other.getGoogleAdsLink()); - break; - } - case CONVERSION_EVENT: { - mergeConversionEvent(other.getConversionEvent()); - break; - } - case MEASUREMENT_PROTOCOL_SECRET: { - mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); - break; - } - case DATA_RETENTION_SETTINGS: { - mergeDataRetentionSettings(other.getDataRetentionSettings()); - break; - } - case DATA_STREAM: { - mergeDataStream(other.getDataStream()); - break; - } - case RESOURCE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAccountFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 1; - break; - } // case 10 - case 18: { - input.readMessage( - getPropertyFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 2; - break; - } // case 18 - case 50: { - input.readMessage( - getFirebaseLinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getGoogleAdsLinkFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 7; - break; - } // case 58 - case 90: { - input.readMessage( - getConversionEventFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 11; - break; - } // case 90 - case 98: { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 12; - break; - } // case 98 - case 122: { - input.readMessage( - getDataRetentionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 15; - break; - } // case 122 - case 146: { - input.readMessage( - getDataStreamFieldBuilder().getBuilder(), - extensionRegistry); - resourceCase_ = 18; - break; - } // case 146 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int resourceCase_ = 0; - private java.lang.Object resource_; - public ResourceCase - getResourceCase() { - return ResourceCase.forNumber( - resourceCase_); - } - - public Builder clearResource() { - resourceCase_ = 0; - resource_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> accountBuilder_; - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return resourceCase_ == 1; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Account getAccount() { - if (accountBuilder_ == null) { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1beta.Account) resource_; - } - return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); - } else { - if (resourceCase_ == 1) { - return accountBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder setAccount(com.google.analytics.admin.v1beta.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - accountBuilder_.setMessage(value); - } - resourceCase_ = 1; - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder setAccount( - com.google.analytics.admin.v1beta.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 1; - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder mergeAccount(com.google.analytics.admin.v1beta.Account value) { - if (accountBuilder_ == null) { - if (resourceCase_ == 1 && - resource_ != com.google.analytics.admin.v1beta.Account.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.Account.newBuilder((com.google.analytics.admin.v1beta.Account) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 1) { - accountBuilder_.mergeFrom(value); - } else { - accountBuilder_.setMessage(value); - } - } - resourceCase_ = 1; - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder clearAccount() { - if (accountBuilder_ == null) { - if (resourceCase_ == 1) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 1) { - resourceCase_ = 0; - resource_ = null; - } - accountBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public com.google.analytics.admin.v1beta.Account.Builder getAccountBuilder() { - return getAccountFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { - if ((resourceCase_ == 1) && (accountBuilder_ != null)) { - return accountBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 1) { - return (com.google.analytics.admin.v1beta.Account) resource_; - } - return com.google.analytics.admin.v1beta.Account.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of an Account resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - if (!(resourceCase_ == 1)) { - resource_ = com.google.analytics.admin.v1beta.Account.getDefaultInstance(); - } - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder>( - (com.google.analytics.admin.v1beta.Account) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 1; - onChanged(); - return accountBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> propertyBuilder_; - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return resourceCase_ == 2; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Property getProperty() { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1beta.Property) resource_; - } - return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); - } else { - if (resourceCase_ == 2) { - return propertyBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - public Builder setProperty(com.google.analytics.admin.v1beta.Property value) { - if (propertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - propertyBuilder_.setMessage(value); - } - resourceCase_ = 2; - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - public Builder setProperty( - com.google.analytics.admin.v1beta.Property.Builder builderForValue) { - if (propertyBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 2; - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - public Builder mergeProperty(com.google.analytics.admin.v1beta.Property value) { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2 && - resource_ != com.google.analytics.admin.v1beta.Property.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.Property.newBuilder((com.google.analytics.admin.v1beta.Property) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 2) { - propertyBuilder_.mergeFrom(value); - } else { - propertyBuilder_.setMessage(value); - } - } - resourceCase_ = 2; - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - public Builder clearProperty() { - if (propertyBuilder_ == null) { - if (resourceCase_ == 2) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 2) { - resourceCase_ = 0; - resource_ = null; - } - propertyBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - public com.google.analytics.admin.v1beta.Property.Builder getPropertyBuilder() { - return getPropertyFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { - if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { - return propertyBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 2) { - return (com.google.analytics.admin.v1beta.Property) resource_; - } - return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a Property resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.Property property = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> - getPropertyFieldBuilder() { - if (propertyBuilder_ == null) { - if (!(resourceCase_ == 2)) { - resource_ = com.google.analytics.admin.v1beta.Property.getDefaultInstance(); - } - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder>( - (com.google.analytics.admin.v1beta.Property) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 2; - onChanged(); - return propertyBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> firebaseLinkBuilder_; - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return Whether the firebaseLink field is set. - */ - @java.lang.Override - public boolean hasFirebaseLink() { - return resourceCase_ == 6; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - * @return The firebaseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); - } else { - if (resourceCase_ == 6) { - return firebaseLinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - public Builder setFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(value); - } - resourceCase_ = 6; - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - public Builder setFirebaseLink( - com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { - if (firebaseLinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - firebaseLinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 6; - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - public Builder mergeFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (resourceCase_ == 6 && - resource_ != com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.FirebaseLink.newBuilder((com.google.analytics.admin.v1beta.FirebaseLink) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 6) { - firebaseLinkBuilder_.mergeFrom(value); - } else { - firebaseLinkBuilder_.setMessage(value); - } - } - resourceCase_ = 6; - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - public Builder clearFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - if (resourceCase_ == 6) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 6) { - resourceCase_ = 0; - resource_ = null; - } - firebaseLinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - public com.google.analytics.admin.v1beta.FirebaseLink.Builder getFirebaseLinkBuilder() { - return getFirebaseLinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - if ((resourceCase_ == 6) && (firebaseLinkBuilder_ != null)) { - return firebaseLinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 6) { - return (com.google.analytics.admin.v1beta.FirebaseLink) resource_; - } - return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a FirebaseLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> - getFirebaseLinkFieldBuilder() { - if (firebaseLinkBuilder_ == null) { - if (!(resourceCase_ == 6)) { - resource_ = com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); - } - firebaseLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder>( - (com.google.analytics.admin.v1beta.FirebaseLink) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 6; - onChanged(); - return firebaseLinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> googleAdsLinkBuilder_; - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return resourceCase_ == 7; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); - } else { - if (resourceCase_ == 7) { - return googleAdsLinkBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - public Builder setGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - resourceCase_ = 7; - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - public Builder setGoogleAdsLink( - com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinkBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 7; - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (resourceCase_ == 7 && - resource_ != com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.GoogleAdsLink.newBuilder((com.google.analytics.admin.v1beta.GoogleAdsLink) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 7) { - googleAdsLinkBuilder_.mergeFrom(value); - } else { - googleAdsLinkBuilder_.setMessage(value); - } - } - resourceCase_ = 7; - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - public Builder clearGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - if (resourceCase_ == 7) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 7) { - resourceCase_ = 0; - resource_ = null; - } - googleAdsLinkBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - return getGoogleAdsLinkFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if ((resourceCase_ == 7) && (googleAdsLinkBuilder_ != null)) { - return googleAdsLinkBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 7) { - return (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_; - } - return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a GoogleAdsLink resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> - getGoogleAdsLinkFieldBuilder() { - if (googleAdsLinkBuilder_ == null) { - if (!(resourceCase_ == 7)) { - resource_ = com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); - } - googleAdsLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( - (com.google.analytics.admin.v1beta.GoogleAdsLink) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 7; - onChanged(); - return googleAdsLinkBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> conversionEventBuilder_; - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return resourceCase_ == 11; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { - if (conversionEventBuilder_ == null) { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); - } else { - if (resourceCase_ == 11) { - return conversionEventBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - public Builder setConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - conversionEventBuilder_.setMessage(value); - } - resourceCase_ = 11; - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - public Builder setConversionEvent( - com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { - if (conversionEventBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 11; - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - public Builder mergeConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (resourceCase_ == 11 && - resource_ != com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.ConversionEvent.newBuilder((com.google.analytics.admin.v1beta.ConversionEvent) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 11) { - conversionEventBuilder_.mergeFrom(value); - } else { - conversionEventBuilder_.setMessage(value); - } - } - resourceCase_ = 11; - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - public Builder clearConversionEvent() { - if (conversionEventBuilder_ == null) { - if (resourceCase_ == 11) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 11) { - resourceCase_ = 0; - resource_ = null; - } - conversionEventBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventBuilder() { - return getConversionEventFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { - if ((resourceCase_ == 11) && (conversionEventBuilder_ != null)) { - return conversionEventBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 11) { - return (com.google.analytics.admin.v1beta.ConversionEvent) resource_; - } - return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a ConversionEvent resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 11; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> - getConversionEventFieldBuilder() { - if (conversionEventBuilder_ == null) { - if (!(resourceCase_ == 11)) { - resource_ = com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); - } - conversionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( - (com.google.analytics.admin.v1beta.ConversionEvent) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 11; - onChanged(); - return conversionEventBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretBuilder_; - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return resourceCase_ == 12; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); - } else { - if (resourceCase_ == 12) { - return measurementProtocolSecretBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder setMeasurementProtocolSecret(com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - resourceCase_ = 12; - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder setMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 12; - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder mergeMeasurementProtocolSecret(com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (resourceCase_ == 12 && - resource_ != com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.newBuilder((com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 12) { - measurementProtocolSecretBuilder_.mergeFrom(value); - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - } - resourceCase_ = 12; - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public Builder clearMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - if (resourceCase_ == 12) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 12) { - resourceCase_ = 0; - resource_ = null; - } - measurementProtocolSecretBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder() { - return getMeasurementProtocolSecretFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if ((resourceCase_ == 12) && (measurementProtocolSecretBuilder_ != null)) { - return measurementProtocolSecretBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 12) { - return (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_; - } - return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a MeasurementProtocolSecret resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretFieldBuilder() { - if (measurementProtocolSecretBuilder_ == null) { - if (!(resourceCase_ == 12)) { - resource_ = com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); - } - measurementProtocolSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( - (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 12; - onChanged(); - return measurementProtocolSecretBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataRetentionSettings, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> dataRetentionSettingsBuilder_; - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return Whether the dataRetentionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRetentionSettings() { - return resourceCase_ == 15; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - * @return The dataRetentionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { - if (dataRetentionSettingsBuilder_ == null) { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); - } else { - if (resourceCase_ == 15) { - return dataRetentionSettingsBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - public Builder setDataRetentionSettings(com.google.analytics.admin.v1beta.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - resourceCase_ = 15; - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - public Builder setDataRetentionSettings( - com.google.analytics.admin.v1beta.DataRetentionSettings.Builder builderForValue) { - if (dataRetentionSettingsBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 15; - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - public Builder mergeDataRetentionSettings(com.google.analytics.admin.v1beta.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (resourceCase_ == 15 && - resource_ != com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.DataRetentionSettings.newBuilder((com.google.analytics.admin.v1beta.DataRetentionSettings) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 15) { - dataRetentionSettingsBuilder_.mergeFrom(value); - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - } - resourceCase_ = 15; - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - public Builder clearDataRetentionSettings() { - if (dataRetentionSettingsBuilder_ == null) { - if (resourceCase_ == 15) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 15) { - resourceCase_ = 0; - resource_ = null; - } - dataRetentionSettingsBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - public com.google.analytics.admin.v1beta.DataRetentionSettings.Builder getDataRetentionSettingsBuilder() { - return getDataRetentionSettingsFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - if ((resourceCase_ == 15) && (dataRetentionSettingsBuilder_ != null)) { - return dataRetentionSettingsBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 15) { - return (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_; - } - return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a data retention settings resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 15; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataRetentionSettings, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> - getDataRetentionSettingsFieldBuilder() { - if (dataRetentionSettingsBuilder_ == null) { - if (!(resourceCase_ == 15)) { - resource_ = com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); - } - dataRetentionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataRetentionSettings, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder>( - (com.google.analytics.admin.v1beta.DataRetentionSettings) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 15; - onChanged(); - return dataRetentionSettingsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> dataStreamBuilder_; - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return resourceCase_ == 18; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1beta.DataStream) resource_; - } - return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); - } else { - if (resourceCase_ == 18) { - return dataStreamBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - public Builder setDataStream(com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - onChanged(); - } else { - dataStreamBuilder_.setMessage(value); - } - resourceCase_ = 18; - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - public Builder setDataStream( - com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - resource_ = builderForValue.build(); - onChanged(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - resourceCase_ = 18; - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - public Builder mergeDataStream(com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamBuilder_ == null) { - if (resourceCase_ == 18 && - resource_ != com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) { - resource_ = com.google.analytics.admin.v1beta.DataStream.newBuilder((com.google.analytics.admin.v1beta.DataStream) resource_) - .mergeFrom(value).buildPartial(); - } else { - resource_ = value; - } - onChanged(); - } else { - if (resourceCase_ == 18) { - dataStreamBuilder_.mergeFrom(value); - } else { - dataStreamBuilder_.setMessage(value); - } - } - resourceCase_ = 18; - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - public Builder clearDataStream() { - if (dataStreamBuilder_ == null) { - if (resourceCase_ == 18) { - resourceCase_ = 0; - resource_ = null; - onChanged(); - } - } else { - if (resourceCase_ == 18) { - resourceCase_ = 0; - resource_ = null; - } - dataStreamBuilder_.clear(); - } - return this; - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { - return getDataStreamFieldBuilder().getBuilder(); - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { - if ((resourceCase_ == 18) && (dataStreamBuilder_ != null)) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - if (resourceCase_ == 18) { - return (com.google.analytics.admin.v1beta.DataStream) resource_; - } - return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); - } - } - /** - *
-       * A snapshot of a DataStream resource in change history.
-       * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 18; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - if (!(resourceCase_ == 18)) { - resource_ = com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); - } - dataStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder>( - (com.google.analytics.admin.v1beta.DataStream) resource_, - getParentForChildren(), - isClean()); - resource_ = null; - } - resourceCase_ = 18; - onChanged(); - return dataStreamBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource) - private static final com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource(); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChangeHistoryResource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int RESOURCE_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object resource_ = ""; - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - 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(); - resource_ = s; - return s; - } - } - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACTION_FIELD_NUMBER = 2; - private int action_ = 0; - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override public int getActionValue() { - return action_; - } - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @return The action. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.ActionType getAction() { - com.google.analytics.admin.v1beta.ActionType result = com.google.analytics.admin.v1beta.ActionType.forNumber(action_); - return result == null ? com.google.analytics.admin.v1beta.ActionType.UNRECOGNIZED : result; - } - - public static final int RESOURCE_BEFORE_CHANGE_FIELD_NUMBER = 3; - private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resourceBeforeChange_; - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return Whether the resourceBeforeChange field is set. - */ - @java.lang.Override - public boolean hasResourceBeforeChange() { - return resourceBeforeChange_ != null; - } - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return The resourceBeforeChange. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getResourceBeforeChange() { - return resourceBeforeChange_ == null ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceBeforeChangeOrBuilder() { - return resourceBeforeChange_ == null ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } - - public static final int RESOURCE_AFTER_CHANGE_FIELD_NUMBER = 4; - private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resourceAfterChange_; - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return Whether the resourceAfterChange field is set. - */ - @java.lang.Override - public boolean hasResourceAfterChange() { - return resourceAfterChange_ != null; - } - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return The resourceAfterChange. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getResourceAfterChange() { - return resourceAfterChange_ == null ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceAfterChangeOrBuilder() { - return resourceAfterChange_ == null ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } - - 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(resource_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); - } - if (action_ != com.google.analytics.admin.v1beta.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, action_); - } - if (resourceBeforeChange_ != null) { - output.writeMessage(3, getResourceBeforeChange()); - } - if (resourceAfterChange_ != null) { - output.writeMessage(4, getResourceAfterChange()); - } - 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(resource_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); - } - if (action_ != com.google.analytics.admin.v1beta.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, action_); - } - if (resourceBeforeChange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getResourceBeforeChange()); - } - if (resourceAfterChange_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getResourceAfterChange()); - } - 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.admin.v1beta.ChangeHistoryChange)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ChangeHistoryChange other = (com.google.analytics.admin.v1beta.ChangeHistoryChange) obj; - - if (!getResource() - .equals(other.getResource())) return false; - if (action_ != other.action_) return false; - if (hasResourceBeforeChange() != other.hasResourceBeforeChange()) return false; - if (hasResourceBeforeChange()) { - if (!getResourceBeforeChange() - .equals(other.getResourceBeforeChange())) return false; - } - if (hasResourceAfterChange() != other.hasResourceAfterChange()) return false; - if (hasResourceAfterChange()) { - if (!getResourceAfterChange() - .equals(other.getResourceAfterChange())) 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) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + action_; - if (hasResourceBeforeChange()) { - hash = (37 * hash) + RESOURCE_BEFORE_CHANGE_FIELD_NUMBER; - hash = (53 * hash) + getResourceBeforeChange().hashCode(); - } - if (hasResourceAfterChange()) { - hash = (37 * hash) + RESOURCE_AFTER_CHANGE_FIELD_NUMBER; - hash = (53 * hash) + getResourceAfterChange().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryChange parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ChangeHistoryChange prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A description of a change to a single Google Analytics resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryChange} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ChangeHistoryChange) - com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ChangeHistoryChange.class, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ChangeHistoryChange.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - resource_ = ""; - action_ = 0; - resourceBeforeChange_ = null; - if (resourceBeforeChangeBuilder_ != null) { - resourceBeforeChangeBuilder_.dispose(); - resourceBeforeChangeBuilder_ = null; - } - resourceAfterChange_ = null; - if (resourceAfterChangeBuilder_ != null) { - resourceAfterChangeBuilder_.dispose(); - resourceAfterChangeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange build() { - com.google.analytics.admin.v1beta.ChangeHistoryChange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange buildPartial() { - com.google.analytics.admin.v1beta.ChangeHistoryChange result = new com.google.analytics.admin.v1beta.ChangeHistoryChange(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ChangeHistoryChange result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.resource_ = resource_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.action_ = action_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.resourceBeforeChange_ = resourceBeforeChangeBuilder_ == null - ? resourceBeforeChange_ - : resourceBeforeChangeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.resourceAfterChange_ = resourceAfterChangeBuilder_ == null - ? resourceAfterChange_ - : resourceAfterChangeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ChangeHistoryChange) { - return mergeFrom((com.google.analytics.admin.v1beta.ChangeHistoryChange)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ChangeHistoryChange other) { - if (other == com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance()) return this; - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.action_ != 0) { - setActionValue(other.getActionValue()); - } - if (other.hasResourceBeforeChange()) { - mergeResourceBeforeChange(other.getResourceBeforeChange()); - } - if (other.hasResourceAfterChange()) { - mergeResourceAfterChange(other.getResourceAfterChange()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - action_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - input.readMessage( - getResourceBeforeChangeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getResourceAfterChangeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object resource_ = ""; - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString - getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - resource_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @return This builder for chaining. - */ - public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Resource name of the resource whose changes are described by this entry.
-     * 
- * - * string resource = 1; - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - resource_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int action_ = 0; - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @return The enum numeric value on the wire for action. - */ - @java.lang.Override public int getActionValue() { - return action_; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue(int value) { - action_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @return The action. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ActionType getAction() { - com.google.analytics.admin.v1beta.ActionType result = com.google.analytics.admin.v1beta.ActionType.forNumber(action_); - return result == null ? com.google.analytics.admin.v1beta.ActionType.UNRECOGNIZED : result; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction(com.google.analytics.admin.v1beta.ActionType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - action_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The type of action that changed this resource.
-     * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @return This builder for chaining. - */ - public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000002); - action_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resourceBeforeChange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> resourceBeforeChangeBuilder_; - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return Whether the resourceBeforeChange field is set. - */ - public boolean hasResourceBeforeChange() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return The resourceBeforeChange. - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getResourceBeforeChange() { - if (resourceBeforeChangeBuilder_ == null) { - return resourceBeforeChange_ == null ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } else { - return resourceBeforeChangeBuilder_.getMessage(); - } - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder setResourceBeforeChange(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceBeforeChangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceBeforeChange_ = value; - } else { - resourceBeforeChangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder setResourceBeforeChange( - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue) { - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChange_ = builderForValue.build(); - } else { - resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder mergeResourceBeforeChange(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceBeforeChangeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - resourceBeforeChange_ != null && - resourceBeforeChange_ != com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance()) { - getResourceBeforeChangeBuilder().mergeFrom(value); - } else { - resourceBeforeChange_ = value; - } - } else { - resourceBeforeChangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public Builder clearResourceBeforeChange() { - bitField0_ = (bitField0_ & ~0x00000004); - resourceBeforeChange_ = null; - if (resourceBeforeChangeBuilder_ != null) { - resourceBeforeChangeBuilder_.dispose(); - resourceBeforeChangeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder getResourceBeforeChangeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getResourceBeforeChangeFieldBuilder().getBuilder(); - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceBeforeChangeOrBuilder() { - if (resourceBeforeChangeBuilder_ != null) { - return resourceBeforeChangeBuilder_.getMessageOrBuilder(); - } else { - return resourceBeforeChange_ == null ? - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceBeforeChange_; - } - } - /** - *
-     * Resource contents from before the change was made. If this resource was
-     * created in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> - getResourceBeforeChangeFieldBuilder() { - if (resourceBeforeChangeBuilder_ == null) { - resourceBeforeChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>( - getResourceBeforeChange(), - getParentForChildren(), - isClean()); - resourceBeforeChange_ = null; - } - return resourceBeforeChangeBuilder_; - } - - private com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resourceAfterChange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> resourceAfterChangeBuilder_; - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return Whether the resourceAfterChange field is set. - */ - public boolean hasResourceAfterChange() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return The resourceAfterChange. - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getResourceAfterChange() { - if (resourceAfterChangeBuilder_ == null) { - return resourceAfterChange_ == null ? com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } else { - return resourceAfterChangeBuilder_.getMessage(); - } - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder setResourceAfterChange(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceAfterChangeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - resourceAfterChange_ = value; - } else { - resourceAfterChangeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder setResourceAfterChange( - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder builderForValue) { - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChange_ = builderForValue.build(); - } else { - resourceAfterChangeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder mergeResourceAfterChange(com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource value) { - if (resourceAfterChangeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - resourceAfterChange_ != null && - resourceAfterChange_ != com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance()) { - getResourceAfterChangeBuilder().mergeFrom(value); - } else { - resourceAfterChange_ = value; - } - } else { - resourceAfterChangeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public Builder clearResourceAfterChange() { - bitField0_ = (bitField0_ & ~0x00000008); - resourceAfterChange_ = null; - if (resourceAfterChangeBuilder_ != null) { - resourceAfterChangeBuilder_.dispose(); - resourceAfterChangeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder getResourceAfterChangeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getResourceAfterChangeFieldBuilder().getBuilder(); - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceAfterChangeOrBuilder() { - if (resourceAfterChangeBuilder_ != null) { - return resourceAfterChangeBuilder_.getMessageOrBuilder(); - } else { - return resourceAfterChange_ == null ? - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.getDefaultInstance() : resourceAfterChange_; - } - } - /** - *
-     * Resource contents from after the change was made. If this resource was
-     * deleted in this change, this field will be missing.
-     * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> - getResourceAfterChangeFieldBuilder() { - if (resourceAfterChangeBuilder_ == null) { - resourceAfterChangeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder>( - getResourceAfterChange(), - getParentForChildren(), - isClean()); - resourceAfterChange_ = null; - } - return resourceAfterChangeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ChangeHistoryChange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ChangeHistoryChange) - private static final com.google.analytics.admin.v1beta.ChangeHistoryChange DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ChangeHistoryChange(); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryChange getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChangeHistoryChange parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java deleted file mode 100644 index 8105ff643efb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryChangeOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface ChangeHistoryChangeOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ChangeHistoryChange) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The resource. - */ - java.lang.String getResource(); - /** - *
-   * Resource name of the resource whose changes are described by this entry.
-   * 
- * - * string resource = 1; - * @return The bytes for resource. - */ - com.google.protobuf.ByteString - getResourceBytes(); - - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @return The enum numeric value on the wire for action. - */ - int getActionValue(); - /** - *
-   * The type of action that changed this resource.
-   * 
- * - * .google.analytics.admin.v1beta.ActionType action = 2; - * @return The action. - */ - com.google.analytics.admin.v1beta.ActionType getAction(); - - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return Whether the resourceBeforeChange field is set. - */ - boolean hasResourceBeforeChange(); - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - * @return The resourceBeforeChange. - */ - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getResourceBeforeChange(); - /** - *
-   * Resource contents from before the change was made. If this resource was
-   * created in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; - */ - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceBeforeChangeOrBuilder(); - - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return Whether the resourceAfterChange field is set. - */ - boolean hasResourceAfterChange(); - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - * @return The resourceAfterChange. - */ - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource getResourceAfterChange(); - /** - *
-   * Resource contents from after the change was made. If this resource was
-   * deleted in this change, this field will be missing.
-   * 
- * - * .google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; - */ - com.google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResourceOrBuilder getResourceAfterChangeOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java deleted file mode 100644 index 340fe89e26de..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEvent.java +++ /dev/null @@ -1,1668 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A set of changes within a Google Analytics account or its child properties
- * that resulted from the same cause. Common causes would be updates made in the
- * Google Analytics UI, changes from customer support, or automatic Google
- * Analytics system changes.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryEvent} - */ -public final class ChangeHistoryEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ChangeHistoryEvent) - ChangeHistoryEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use ChangeHistoryEvent.newBuilder() to construct. - private ChangeHistoryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChangeHistoryEvent() { - id_ = ""; - actorType_ = 0; - userActorEmail_ = ""; - changes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeHistoryEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ChangeHistoryEvent.class, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - 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(); - id_ = s; - return s; - } - } - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANGE_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp changeTime_; - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return Whether the changeTime field is set. - */ - @java.lang.Override - public boolean hasChangeTime() { - return changeTime_ != null; - } - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return The changeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getChangeTime() { - return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { - return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } - - public static final int ACTOR_TYPE_FIELD_NUMBER = 3; - private int actorType_ = 0; - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return The enum numeric value on the wire for actorType. - */ - @java.lang.Override public int getActorTypeValue() { - return actorType_; - } - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return The actorType. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.ActorType getActorType() { - com.google.analytics.admin.v1beta.ActorType result = com.google.analytics.admin.v1beta.ActorType.forNumber(actorType_); - return result == null ? com.google.analytics.admin.v1beta.ActorType.UNRECOGNIZED : result; - } - - public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object userActorEmail_ = ""; - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The userActorEmail. - */ - @java.lang.Override - public java.lang.String getUserActorEmail() { - java.lang.Object ref = userActorEmail_; - 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(); - userActorEmail_ = s; - return s; - } - } - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The bytes for userActorEmail. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUserActorEmailBytes() { - java.lang.Object ref = userActorEmail_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userActorEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHANGES_FILTERED_FIELD_NUMBER = 5; - private boolean changesFiltered_ = false; - /** - *
-   * If true, then the list of changes returned was filtered, and does not
-   * represent all changes that occurred in this event.
-   * 
- * - * bool changes_filtered = 5; - * @return The changesFiltered. - */ - @java.lang.Override - public boolean getChangesFiltered() { - return changesFiltered_; - } - - public static final int CHANGES_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private java.util.List changes_; - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public java.util.List getChangesList() { - return changes_; - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public java.util.List - getChangesOrBuilderList() { - return changes_; - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public int getChangesCount() { - return changes_.size(); - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChange getChanges(int index) { - return changes_.get(index); - } - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder getChangesOrBuilder( - int index) { - return changes_.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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (changeTime_ != null) { - output.writeMessage(2, getChangeTime()); - } - if (actorType_ != com.google.analytics.admin.v1beta.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, actorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_); - } - if (changesFiltered_ != false) { - output.writeBool(5, changesFiltered_); - } - for (int i = 0; i < changes_.size(); i++) { - output.writeMessage(6, changes_.get(i)); - } - 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(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (changeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getChangeTime()); - } - if (actorType_ != com.google.analytics.admin.v1beta.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, actorType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_); - } - if (changesFiltered_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, changesFiltered_); - } - for (int i = 0; i < changes_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, changes_.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.admin.v1beta.ChangeHistoryEvent)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ChangeHistoryEvent other = (com.google.analytics.admin.v1beta.ChangeHistoryEvent) obj; - - if (!getId() - .equals(other.getId())) return false; - if (hasChangeTime() != other.hasChangeTime()) return false; - if (hasChangeTime()) { - if (!getChangeTime() - .equals(other.getChangeTime())) return false; - } - if (actorType_ != other.actorType_) return false; - if (!getUserActorEmail() - .equals(other.getUserActorEmail())) return false; - if (getChangesFiltered() - != other.getChangesFiltered()) return false; - if (!getChangesList() - .equals(other.getChangesList())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - if (hasChangeTime()) { - hash = (37 * hash) + CHANGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getChangeTime().hashCode(); - } - hash = (37 * hash) + ACTOR_TYPE_FIELD_NUMBER; - hash = (53 * hash) + actorType_; - hash = (37 * hash) + USER_ACTOR_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getUserActorEmail().hashCode(); - hash = (37 * hash) + CHANGES_FILTERED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getChangesFiltered()); - if (getChangesCount() > 0) { - hash = (37 * hash) + CHANGES_FIELD_NUMBER; - hash = (53 * hash) + getChangesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ChangeHistoryEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A set of changes within a Google Analytics account or its child properties
-   * that resulted from the same cause. Common causes would be updates made in the
-   * Google Analytics UI, changes from customer support, or automatic Google
-   * Analytics system changes.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ChangeHistoryEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ChangeHistoryEvent) - com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ChangeHistoryEvent.class, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ChangeHistoryEvent.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - changeTime_ = null; - if (changeTimeBuilder_ != null) { - changeTimeBuilder_.dispose(); - changeTimeBuilder_ = null; - } - actorType_ = 0; - userActorEmail_ = ""; - changesFiltered_ = false; - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - } else { - changes_ = null; - changesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryEvent getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryEvent build() { - com.google.analytics.admin.v1beta.ChangeHistoryEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryEvent buildPartial() { - com.google.analytics.admin.v1beta.ChangeHistoryEvent result = new com.google.analytics.admin.v1beta.ChangeHistoryEvent(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ChangeHistoryEvent result) { - if (changesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - changes_ = java.util.Collections.unmodifiableList(changes_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.changes_ = changes_; - } else { - result.changes_ = changesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ChangeHistoryEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.changeTime_ = changeTimeBuilder_ == null - ? changeTime_ - : changeTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.actorType_ = actorType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.userActorEmail_ = userActorEmail_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.changesFiltered_ = changesFiltered_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ChangeHistoryEvent) { - return mergeFrom((com.google.analytics.admin.v1beta.ChangeHistoryEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ChangeHistoryEvent other) { - if (other == com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasChangeTime()) { - mergeChangeTime(other.getChangeTime()); - } - if (other.actorType_ != 0) { - setActorTypeValue(other.getActorTypeValue()); - } - if (!other.getUserActorEmail().isEmpty()) { - userActorEmail_ = other.userActorEmail_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.getChangesFiltered() != false) { - setChangesFiltered(other.getChangesFiltered()); - } - if (changesBuilder_ == null) { - if (!other.changes_.isEmpty()) { - if (changes_.isEmpty()) { - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureChangesIsMutable(); - changes_.addAll(other.changes_); - } - onChanged(); - } - } else { - if (!other.changes_.isEmpty()) { - if (changesBuilder_.isEmpty()) { - changesBuilder_.dispose(); - changesBuilder_ = null; - changes_ = other.changes_; - bitField0_ = (bitField0_ & ~0x00000020); - changesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangesFieldBuilder() : null; - } else { - changesBuilder_.addAllMessages(other.changes_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getChangeTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - actorType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - userActorEmail_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - changesFiltered_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: { - com.google.analytics.admin.v1beta.ChangeHistoryChange m = - input.readMessage( - com.google.analytics.admin.v1beta.ChangeHistoryChange.parser(), - extensionRegistry); - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(m); - } else { - changesBuilder_.addMessage(m); - } - break; - } // case 50 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object id_ = ""; - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * ID of this change history event. This ID is unique across Google Analytics.
-     * 
- * - * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp changeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> changeTimeBuilder_; - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return Whether the changeTime field is set. - */ - public boolean hasChangeTime() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return The changeTime. - */ - public com.google.protobuf.Timestamp getChangeTime() { - if (changeTimeBuilder_ == null) { - return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } else { - return changeTimeBuilder_.getMessage(); - } - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder setChangeTime(com.google.protobuf.Timestamp value) { - if (changeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - changeTime_ = value; - } else { - changeTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder setChangeTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (changeTimeBuilder_ == null) { - changeTime_ = builderForValue.build(); - } else { - changeTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder mergeChangeTime(com.google.protobuf.Timestamp value) { - if (changeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - changeTime_ != null && - changeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getChangeTimeBuilder().mergeFrom(value); - } else { - changeTime_ = value; - } - } else { - changeTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public Builder clearChangeTime() { - bitField0_ = (bitField0_ & ~0x00000002); - changeTime_ = null; - if (changeTimeBuilder_ != null) { - changeTimeBuilder_.dispose(); - changeTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getChangeTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { - if (changeTimeBuilder_ != null) { - return changeTimeBuilder_.getMessageOrBuilder(); - } else { - return changeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; - } - } - /** - *
-     * Time when change was made.
-     * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getChangeTimeFieldBuilder() { - if (changeTimeBuilder_ == null) { - changeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getChangeTime(), - getParentForChildren(), - isClean()); - changeTime_ = null; - } - return changeTimeBuilder_; - } - - private int actorType_ = 0; - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return The enum numeric value on the wire for actorType. - */ - @java.lang.Override public int getActorTypeValue() { - return actorType_; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @param value The enum numeric value on the wire for actorType to set. - * @return This builder for chaining. - */ - public Builder setActorTypeValue(int value) { - actorType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return The actorType. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ActorType getActorType() { - com.google.analytics.admin.v1beta.ActorType result = com.google.analytics.admin.v1beta.ActorType.forNumber(actorType_); - return result == null ? com.google.analytics.admin.v1beta.ActorType.UNRECOGNIZED : result; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @param value The actorType to set. - * @return This builder for chaining. - */ - public Builder setActorType(com.google.analytics.admin.v1beta.ActorType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - actorType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The type of actor that made this change.
-     * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return This builder for chaining. - */ - public Builder clearActorType() { - bitField0_ = (bitField0_ & ~0x00000004); - actorType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object userActorEmail_ = ""; - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @return The userActorEmail. - */ - public java.lang.String getUserActorEmail() { - java.lang.Object ref = userActorEmail_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - userActorEmail_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @return The bytes for userActorEmail. - */ - public com.google.protobuf.ByteString - getUserActorEmailBytes() { - java.lang.Object ref = userActorEmail_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - userActorEmail_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @param value The userActorEmail to set. - * @return This builder for chaining. - */ - public Builder setUserActorEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - userActorEmail_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @return This builder for chaining. - */ - public Builder clearUserActorEmail() { - userActorEmail_ = getDefaultInstance().getUserActorEmail(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Email address of the Google account that made the change. This will be a
-     * valid email address if the actor field is set to USER, and empty otherwise.
-     * Google accounts that have been deleted will cause an error.
-     * 
- * - * string user_actor_email = 4; - * @param value The bytes for userActorEmail to set. - * @return This builder for chaining. - */ - public Builder setUserActorEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - userActorEmail_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private boolean changesFiltered_ ; - /** - *
-     * If true, then the list of changes returned was filtered, and does not
-     * represent all changes that occurred in this event.
-     * 
- * - * bool changes_filtered = 5; - * @return The changesFiltered. - */ - @java.lang.Override - public boolean getChangesFiltered() { - return changesFiltered_; - } - /** - *
-     * If true, then the list of changes returned was filtered, and does not
-     * represent all changes that occurred in this event.
-     * 
- * - * bool changes_filtered = 5; - * @param value The changesFiltered to set. - * @return This builder for chaining. - */ - public Builder setChangesFiltered(boolean value) { - - changesFiltered_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * If true, then the list of changes returned was filtered, and does not
-     * represent all changes that occurred in this event.
-     * 
- * - * bool changes_filtered = 5; - * @return This builder for chaining. - */ - public Builder clearChangesFiltered() { - bitField0_ = (bitField0_ & ~0x00000010); - changesFiltered_ = false; - onChanged(); - return this; - } - - private java.util.List changes_ = - java.util.Collections.emptyList(); - private void ensureChangesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - changes_ = new java.util.ArrayList(changes_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder> changesBuilder_; - - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public java.util.List getChangesList() { - if (changesBuilder_ == null) { - return java.util.Collections.unmodifiableList(changes_); - } else { - return changesBuilder_.getMessageList(); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public int getChangesCount() { - if (changesBuilder_ == null) { - return changes_.size(); - } else { - return changesBuilder_.getCount(); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange getChanges(int index) { - if (changesBuilder_ == null) { - return changes_.get(index); - } else { - return changesBuilder_.getMessage(index); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder setChanges( - int index, com.google.analytics.admin.v1beta.ChangeHistoryChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.set(index, value); - onChanged(); - } else { - changesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder setChanges( - int index, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.set(index, builderForValue.build()); - onChanged(); - } else { - changesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder addChanges(com.google.analytics.admin.v1beta.ChangeHistoryChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.add(value); - onChanged(); - } else { - changesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder addChanges( - int index, com.google.analytics.admin.v1beta.ChangeHistoryChange value) { - if (changesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangesIsMutable(); - changes_.add(index, value); - onChanged(); - } else { - changesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder addChanges( - com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(builderForValue.build()); - onChanged(); - } else { - changesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder addChanges( - int index, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder builderForValue) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.add(index, builderForValue.build()); - onChanged(); - } else { - changesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder addAllChanges( - java.lang.Iterable values) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changes_); - onChanged(); - } else { - changesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder clearChanges() { - if (changesBuilder_ == null) { - changes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - changesBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public Builder removeChanges(int index) { - if (changesBuilder_ == null) { - ensureChangesIsMutable(); - changes_.remove(index); - onChanged(); - } else { - changesBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder getChangesBuilder( - int index) { - return getChangesFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder getChangesOrBuilder( - int index) { - if (changesBuilder_ == null) { - return changes_.get(index); } else { - return changesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public java.util.List - getChangesOrBuilderList() { - if (changesBuilder_ != null) { - return changesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(changes_); - } - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder addChangesBuilder() { - return getChangesFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance()); - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder addChangesBuilder( - int index) { - return getChangesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.ChangeHistoryChange.getDefaultInstance()); - } - /** - *
-     * A list of changes made in this change history event that fit the filters
-     * specified in SearchChangeHistoryEventsRequest.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - public java.util.List - getChangesBuilderList() { - return getChangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder> - getChangesFieldBuilder() { - if (changesBuilder_ == null) { - changesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryChange, com.google.analytics.admin.v1beta.ChangeHistoryChange.Builder, com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder>( - changes_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - changes_ = null; - } - return changesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ChangeHistoryEvent) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ChangeHistoryEvent) - private static final com.google.analytics.admin.v1beta.ChangeHistoryEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ChangeHistoryEvent(); - } - - public static com.google.analytics.admin.v1beta.ChangeHistoryEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ChangeHistoryEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java deleted file mode 100644 index 943a67fea3dc..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryEventOrBuilder.java +++ /dev/null @@ -1,159 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface ChangeHistoryEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ChangeHistoryEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * ID of this change history event. This ID is unique across Google Analytics.
-   * 
- * - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return Whether the changeTime field is set. - */ - boolean hasChangeTime(); - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - * @return The changeTime. - */ - com.google.protobuf.Timestamp getChangeTime(); - /** - *
-   * Time when change was made.
-   * 
- * - * .google.protobuf.Timestamp change_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder(); - - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return The enum numeric value on the wire for actorType. - */ - int getActorTypeValue(); - /** - *
-   * The type of actor that made this change.
-   * 
- * - * .google.analytics.admin.v1beta.ActorType actor_type = 3; - * @return The actorType. - */ - com.google.analytics.admin.v1beta.ActorType getActorType(); - - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The userActorEmail. - */ - java.lang.String getUserActorEmail(); - /** - *
-   * Email address of the Google account that made the change. This will be a
-   * valid email address if the actor field is set to USER, and empty otherwise.
-   * Google accounts that have been deleted will cause an error.
-   * 
- * - * string user_actor_email = 4; - * @return The bytes for userActorEmail. - */ - com.google.protobuf.ByteString - getUserActorEmailBytes(); - - /** - *
-   * If true, then the list of changes returned was filtered, and does not
-   * represent all changes that occurred in this event.
-   * 
- * - * bool changes_filtered = 5; - * @return The changesFiltered. - */ - boolean getChangesFiltered(); - - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - java.util.List - getChangesList(); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - com.google.analytics.admin.v1beta.ChangeHistoryChange getChanges(int index); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - int getChangesCount(); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - java.util.List - getChangesOrBuilderList(); - /** - *
-   * A list of changes made in this change history event that fit the filters
-   * specified in SearchChangeHistoryEventsRequest.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryChange changes = 6; - */ - com.google.analytics.admin.v1beta.ChangeHistoryChangeOrBuilder getChangesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java deleted file mode 100644 index 42fdd78fdf1a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ChangeHistoryResourceType.java +++ /dev/null @@ -1,320 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Types of resources whose changes may be returned from change history.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.ChangeHistoryResourceType} - */ -public enum ChangeHistoryResourceType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Resource type unknown or not specified.
-   * 
- * - * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED(0), - /** - *
-   * Account resource
-   * 
- * - * ACCOUNT = 1; - */ - ACCOUNT(1), - /** - *
-   * Property resource
-   * 
- * - * PROPERTY = 2; - */ - PROPERTY(2), - /** - *
-   * FirebaseLink resource
-   * 
- * - * FIREBASE_LINK = 6; - */ - FIREBASE_LINK(6), - /** - *
-   * GoogleAdsLink resource
-   * 
- * - * GOOGLE_ADS_LINK = 7; - */ - GOOGLE_ADS_LINK(7), - /** - *
-   * GoogleSignalsSettings resource
-   * 
- * - * GOOGLE_SIGNALS_SETTINGS = 8; - */ - GOOGLE_SIGNALS_SETTINGS(8), - /** - *
-   * ConversionEvent resource
-   * 
- * - * CONVERSION_EVENT = 9; - */ - CONVERSION_EVENT(9), - /** - *
-   * MeasurementProtocolSecret resource
-   * 
- * - * MEASUREMENT_PROTOCOL_SECRET = 10; - */ - MEASUREMENT_PROTOCOL_SECRET(10), - /** - *
-   * DataRetentionSettings resource
-   * 
- * - * DATA_RETENTION_SETTINGS = 13; - */ - DATA_RETENTION_SETTINGS(13), - /** - *
-   * DisplayVideo360AdvertiserLink resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - DISPLAY_VIDEO_360_ADVERTISER_LINK(14), - /** - *
-   * DisplayVideo360AdvertiserLinkProposal resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(15), - /** - *
-   * DataStream resource
-   * 
- * - * DATA_STREAM = 18; - */ - DATA_STREAM(18), - /** - *
-   * AttributionSettings resource
-   * 
- * - * ATTRIBUTION_SETTINGS = 20; - */ - ATTRIBUTION_SETTINGS(20), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Resource type unknown or not specified.
-   * 
- * - * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Account resource
-   * 
- * - * ACCOUNT = 1; - */ - public static final int ACCOUNT_VALUE = 1; - /** - *
-   * Property resource
-   * 
- * - * PROPERTY = 2; - */ - public static final int PROPERTY_VALUE = 2; - /** - *
-   * FirebaseLink resource
-   * 
- * - * FIREBASE_LINK = 6; - */ - public static final int FIREBASE_LINK_VALUE = 6; - /** - *
-   * GoogleAdsLink resource
-   * 
- * - * GOOGLE_ADS_LINK = 7; - */ - public static final int GOOGLE_ADS_LINK_VALUE = 7; - /** - *
-   * GoogleSignalsSettings resource
-   * 
- * - * GOOGLE_SIGNALS_SETTINGS = 8; - */ - public static final int GOOGLE_SIGNALS_SETTINGS_VALUE = 8; - /** - *
-   * ConversionEvent resource
-   * 
- * - * CONVERSION_EVENT = 9; - */ - public static final int CONVERSION_EVENT_VALUE = 9; - /** - *
-   * MeasurementProtocolSecret resource
-   * 
- * - * MEASUREMENT_PROTOCOL_SECRET = 10; - */ - public static final int MEASUREMENT_PROTOCOL_SECRET_VALUE = 10; - /** - *
-   * DataRetentionSettings resource
-   * 
- * - * DATA_RETENTION_SETTINGS = 13; - */ - public static final int DATA_RETENTION_SETTINGS_VALUE = 13; - /** - *
-   * DisplayVideo360AdvertiserLink resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK = 14; - */ - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_VALUE = 14; - /** - *
-   * DisplayVideo360AdvertiserLinkProposal resource
-   * 
- * - * DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL = 15; - */ - public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_VALUE = 15; - /** - *
-   * DataStream resource
-   * 
- * - * DATA_STREAM = 18; - */ - public static final int DATA_STREAM_VALUE = 18; - /** - *
-   * AttributionSettings resource
-   * 
- * - * ATTRIBUTION_SETTINGS = 20; - */ - public static final int ATTRIBUTION_SETTINGS_VALUE = 20; - - - 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 ChangeHistoryResourceType 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 ChangeHistoryResourceType forNumber(int value) { - switch (value) { - case 0: return CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED; - case 1: return ACCOUNT; - case 2: return PROPERTY; - case 6: return FIREBASE_LINK; - case 7: return GOOGLE_ADS_LINK; - case 8: return GOOGLE_SIGNALS_SETTINGS; - case 9: return CONVERSION_EVENT; - case 10: return MEASUREMENT_PROTOCOL_SECRET; - case 13: return DATA_RETENTION_SETTINGS; - case 14: return DISPLAY_VIDEO_360_ADVERTISER_LINK; - case 15: return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; - case 18: return DATA_STREAM; - case 20: return ATTRIBUTION_SETTINGS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ChangeHistoryResourceType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ChangeHistoryResourceType findValueByNumber(int number) { - return ChangeHistoryResourceType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(4); - } - - private static final ChangeHistoryResourceType[] VALUES = values(); - - public static ChangeHistoryResourceType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ChangeHistoryResourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ChangeHistoryResourceType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java deleted file mode 100644 index 6290c5f58536..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEvent.java +++ /dev/null @@ -1,1458 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A conversion event in a Google Analytics property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ConversionEvent} - */ -public final class ConversionEvent extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ConversionEvent) - ConversionEventOrBuilder { -private static final long serialVersionUID = 0L; - // Use ConversionEvent.newBuilder() to construct. - private ConversionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ConversionEvent() { - name_ = ""; - eventName_ = ""; - countingMethod_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ConversionEvent(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ConversionEvent.class, com.google.analytics.admin.v1beta.ConversionEvent.Builder.class); - } - - /** - *
-   * The method by which conversions will be counted across multiple events
-   * within a session.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod} - */ - public enum ConversionCountingMethod - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Counting method not specified.
-     * 
- * - * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - CONVERSION_COUNTING_METHOD_UNSPECIFIED(0), - /** - *
-     * Each Event instance is considered a Conversion.
-     * 
- * - * ONCE_PER_EVENT = 1; - */ - ONCE_PER_EVENT(1), - /** - *
-     * An Event instance is considered a Conversion at most once per session per
-     * user.
-     * 
- * - * ONCE_PER_SESSION = 2; - */ - ONCE_PER_SESSION(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Counting method not specified.
-     * 
- * - * CONVERSION_COUNTING_METHOD_UNSPECIFIED = 0; - */ - public static final int CONVERSION_COUNTING_METHOD_UNSPECIFIED_VALUE = 0; - /** - *
-     * Each Event instance is considered a Conversion.
-     * 
- * - * ONCE_PER_EVENT = 1; - */ - public static final int ONCE_PER_EVENT_VALUE = 1; - /** - *
-     * An Event instance is considered a Conversion at most once per session per
-     * user.
-     * 
- * - * ONCE_PER_SESSION = 2; - */ - public static final int ONCE_PER_SESSION_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ConversionCountingMethod 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 ConversionCountingMethod forNumber(int value) { - switch (value) { - case 0: return CONVERSION_COUNTING_METHOD_UNSPECIFIED; - case 1: return ONCE_PER_EVENT; - case 2: return ONCE_PER_SESSION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ConversionCountingMethod> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ConversionCountingMethod findValueByNumber(int number) { - return ConversionCountingMethod.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ConversionEvent.getDescriptor().getEnumTypes().get(0); - } - - private static final ConversionCountingMethod[] VALUES = values(); - - public static ConversionCountingMethod valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ConversionCountingMethod(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object eventName_ = ""; - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - 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(); - eventName_ = s; - return s; - } - } - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int DELETABLE_FIELD_NUMBER = 4; - private boolean deletable_ = false; - /** - *
-   * Output only. If set, this event can currently be deleted with
-   * DeleteConversionEvent.
-   * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deletable. - */ - @java.lang.Override - public boolean getDeletable() { - return deletable_; - } - - public static final int CUSTOM_FIELD_NUMBER = 5; - private boolean custom_ = false; - /** - *
-   * Output only. If set to true, this conversion event refers to a custom
-   * event.  If set to false, this conversion event refers to a default event in
-   * GA. Default events typically have special meaning in GA. Default events are
-   * usually created for you by the GA system, but in some cases can be created
-   * by property admins. Custom events count towards the maximum number of
-   * custom conversion events that may be created per property.
-   * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The custom. - */ - @java.lang.Override - public boolean getCustom() { - return custom_; - } - - public static final int COUNTING_METHOD_FIELD_NUMBER = 6; - private int countingMethod_ = 0; - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for countingMethod. - */ - @java.lang.Override public int getCountingMethodValue() { - return countingMethod_; - } - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The countingMethod. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod getCountingMethod() { - com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod result = com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.forNumber(countingMethod_); - return result == null ? com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (deletable_ != false) { - output.writeBool(4, deletable_); - } - if (custom_ != false) { - output.writeBool(5, custom_); - } - if (countingMethod_ != com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.CONVERSION_COUNTING_METHOD_UNSPECIFIED.getNumber()) { - output.writeEnum(6, countingMethod_); - } - 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(eventName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - if (deletable_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, deletable_); - } - if (custom_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, custom_); - } - if (countingMethod_ != com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.CONVERSION_COUNTING_METHOD_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, countingMethod_); - } - 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.admin.v1beta.ConversionEvent)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ConversionEvent other = (com.google.analytics.admin.v1beta.ConversionEvent) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getEventName() - .equals(other.getEventName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (getDeletable() - != other.getDeletable()) return false; - if (getCustom() - != other.getCustom()) return false; - if (countingMethod_ != other.countingMethod_) 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) + EVENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - hash = (37 * hash) + DELETABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeletable()); - hash = (37 * hash) + CUSTOM_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCustom()); - hash = (37 * hash) + COUNTING_METHOD_FIELD_NUMBER; - hash = (53 * hash) + countingMethod_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ConversionEvent parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ConversionEvent parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ConversionEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ConversionEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A conversion event in a Google Analytics property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ConversionEvent} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ConversionEvent) - com.google.analytics.admin.v1beta.ConversionEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ConversionEvent.class, com.google.analytics.admin.v1beta.ConversionEvent.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ConversionEvent.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - eventName_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - deletable_ = false; - custom_ = false; - countingMethod_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent build() { - com.google.analytics.admin.v1beta.ConversionEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent buildPartial() { - com.google.analytics.admin.v1beta.ConversionEvent result = new com.google.analytics.admin.v1beta.ConversionEvent(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ConversionEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventName_ = eventName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.deletable_ = deletable_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.custom_ = custom_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.countingMethod_ = countingMethod_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ConversionEvent) { - return mergeFrom((com.google.analytics.admin.v1beta.ConversionEvent)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ConversionEvent other) { - if (other == com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEventName().isEmpty()) { - eventName_ = other.eventName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.getDeletable() != false) { - setDeletable(other.getDeletable()); - } - if (other.getCustom() != false) { - setCustom(other.getCustom()); - } - if (other.countingMethod_ != 0) { - setCountingMethodValue(other.getCountingMethodValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - deletable_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - custom_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - countingMethod_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.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. Resource name of this conversion event.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object eventName_ = ""; - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString - getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - eventName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearEventName() { - eventName_ = getDefaultInstance().getEventName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. The event name for this conversion event.
-     * Examples: 'click', 'purchase'
-     * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - eventName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this conversion event was created in the property.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private boolean deletable_ ; - /** - *
-     * Output only. If set, this event can currently be deleted with
-     * DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deletable. - */ - @java.lang.Override - public boolean getDeletable() { - return deletable_; - } - /** - *
-     * Output only. If set, this event can currently be deleted with
-     * DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The deletable to set. - * @return This builder for chaining. - */ - public Builder setDeletable(boolean value) { - - deletable_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, this event can currently be deleted with
-     * DeleteConversionEvent.
-     * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearDeletable() { - bitField0_ = (bitField0_ & ~0x00000008); - deletable_ = false; - onChanged(); - return this; - } - - private boolean custom_ ; - /** - *
-     * Output only. If set to true, this conversion event refers to a custom
-     * event.  If set to false, this conversion event refers to a default event in
-     * GA. Default events typically have special meaning in GA. Default events are
-     * usually created for you by the GA system, but in some cases can be created
-     * by property admins. Custom events count towards the maximum number of
-     * custom conversion events that may be created per property.
-     * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The custom. - */ - @java.lang.Override - public boolean getCustom() { - return custom_; - } - /** - *
-     * Output only. If set to true, this conversion event refers to a custom
-     * event.  If set to false, this conversion event refers to a default event in
-     * GA. Default events typically have special meaning in GA. Default events are
-     * usually created for you by the GA system, but in some cases can be created
-     * by property admins. Custom events count towards the maximum number of
-     * custom conversion events that may be created per property.
-     * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The custom to set. - * @return This builder for chaining. - */ - public Builder setCustom(boolean value) { - - custom_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. If set to true, this conversion event refers to a custom
-     * event.  If set to false, this conversion event refers to a default event in
-     * GA. Default events typically have special meaning in GA. Default events are
-     * usually created for you by the GA system, but in some cases can be created
-     * by property admins. Custom events count towards the maximum number of
-     * custom conversion events that may be created per property.
-     * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCustom() { - bitField0_ = (bitField0_ & ~0x00000010); - custom_ = false; - onChanged(); - return this; - } - - private int countingMethod_ = 0; - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for countingMethod. - */ - @java.lang.Override public int getCountingMethodValue() { - return countingMethod_; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for countingMethod to set. - * @return This builder for chaining. - */ - public Builder setCountingMethodValue(int value) { - countingMethod_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The countingMethod. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod getCountingMethod() { - com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod result = com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.forNumber(countingMethod_); - return result == null ? com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod.UNRECOGNIZED : result; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The countingMethod to set. - * @return This builder for chaining. - */ - public Builder setCountingMethod(com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - countingMethod_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Optional. The method by which conversions will be counted across multiple
-     * events within a session. If this value is not provided, it will be set to
-     * `ONCE_PER_EVENT`.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearCountingMethod() { - bitField0_ = (bitField0_ & ~0x00000020); - countingMethod_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ConversionEvent) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ConversionEvent) - private static final com.google.analytics.admin.v1beta.ConversionEvent DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ConversionEvent(); - } - - public static com.google.analytics.admin.v1beta.ConversionEvent getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ConversionEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java deleted file mode 100644 index aed72cab8271..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ConversionEventOrBuilder.java +++ /dev/null @@ -1,129 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface ConversionEventOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ConversionEvent) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this conversion event.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The eventName. - */ - java.lang.String getEventName(); - /** - *
-   * Immutable. The event name for this conversion event.
-   * Examples: 'click', 'purchase'
-   * 
- * - * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for eventName. - */ - com.google.protobuf.ByteString - getEventNameBytes(); - - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this conversion event was created in the property.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. If set, this event can currently be deleted with
-   * DeleteConversionEvent.
-   * 
- * - * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deletable. - */ - boolean getDeletable(); - - /** - *
-   * Output only. If set to true, this conversion event refers to a custom
-   * event.  If set to false, this conversion event refers to a default event in
-   * GA. Default events typically have special meaning in GA. Default events are
-   * usually created for you by the GA system, but in some cases can be created
-   * by property admins. Custom events count towards the maximum number of
-   * custom conversion events that may be created per property.
-   * 
- * - * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The custom. - */ - boolean getCustom(); - - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for countingMethod. - */ - int getCountingMethodValue(); - /** - *
-   * Optional. The method by which conversions will be counted across multiple
-   * events within a session. If this value is not provided, it will be set to
-   * `ONCE_PER_EVENT`.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod counting_method = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The countingMethod. - */ - com.google.analytics.admin.v1beta.ConversionEvent.ConversionCountingMethod getCountingMethod(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java deleted file mode 100644 index 6d57f5e77ba8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateConversionEventRequest} - */ -public final class CreateConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateConversionEventRequest) - CreateConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateConversionEventRequest.newBuilder() to construct. - private CreateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateConversionEventRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateConversionEventRequest.class, com.google.analytics.admin.v1beta.CreateConversionEventRequest.Builder.class); - } - - public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return conversionEvent_ != null; - } - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { - return conversionEvent_ == null ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { - return conversionEvent_ == null ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - - public static final int PARENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (conversionEvent_ != null) { - output.writeMessage(1, getConversionEvent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conversionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConversionEvent()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - 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.admin.v1beta.CreateConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreateConversionEventRequest other = (com.google.analytics.admin.v1beta.CreateConversionEventRequest) obj; - - if (hasConversionEvent() != other.hasConversionEvent()) return false; - if (hasConversionEvent()) { - if (!getConversionEvent() - .equals(other.getConversionEvent())) return false; - } - if (!getParent() - .equals(other.getParent())) 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 (hasConversionEvent()) { - hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getConversionEvent().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreateConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateConversionEventRequest) - com.google.analytics.admin.v1beta.CreateConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateConversionEventRequest.class, com.google.analytics.admin.v1beta.CreateConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreateConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreateConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateConversionEventRequest build() { - com.google.analytics.admin.v1beta.CreateConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateConversionEventRequest buildPartial() { - com.google.analytics.admin.v1beta.CreateConversionEventRequest result = new com.google.analytics.admin.v1beta.CreateConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreateConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.conversionEvent_ = conversionEventBuilder_ == null - ? conversionEvent_ - : conversionEventBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreateConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreateConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateConversionEventRequest other) { - if (other == com.google.analytics.admin.v1beta.CreateConversionEventRequest.getDefaultInstance()) return this; - if (other.hasConversionEvent()) { - mergeConversionEvent(other.getConversionEvent()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getConversionEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> conversionEventBuilder_; - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - public boolean hasConversionEvent() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { - if (conversionEventBuilder_ == null) { - return conversionEvent_ == null ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } else { - return conversionEventBuilder_.getMessage(); - } - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conversionEvent_ = value; - } else { - conversionEventBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent( - com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { - if (conversionEventBuilder_ == null) { - conversionEvent_ = builderForValue.build(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - conversionEvent_ != null && - conversionEvent_ != com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) { - getConversionEventBuilder().mergeFrom(value); - } else { - conversionEvent_ = value; - } - } else { - conversionEventBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearConversionEvent() { - bitField0_ = (bitField0_ & ~0x00000001); - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getConversionEventFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { - if (conversionEventBuilder_ != null) { - return conversionEventBuilder_.getMessageOrBuilder(); - } else { - return conversionEvent_ == null ? - com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - } - /** - *
-     * Required. The conversion event to create.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> - getConversionEventFieldBuilder() { - if (conversionEventBuilder_ == null) { - conversionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( - getConversionEvent(), - getParentForChildren(), - isClean()); - conversionEvent_ = null; - } - return conversionEventBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property where this conversion
-     * event will be created. Format: properties/123
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateConversionEventRequest) - private static final com.google.analytics.admin.v1beta.CreateConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateConversionEventRequest(); - } - - public static com.google.analytics.admin.v1beta.CreateConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java deleted file mode 100644 index 421851dc7c96..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreateConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - boolean hasConversionEvent(); - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent(); - /** - *
-   * Required. The conversion event to create.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder(); - - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the parent property where this conversion
-   * event will be created. Format: properties/123
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java deleted file mode 100644 index f86a67e7791c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomDimensionRequest} - */ -public final class CreateCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateCustomDimensionRequest) - CreateCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateCustomDimensionRequest.newBuilder() to construct. - private CreateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateCustomDimensionRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.class, com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.CustomDimension customDimension_; - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customDimension field is set. - */ - @java.lang.Override - public boolean hasCustomDimension() { - return customDimension_ != null; - } - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customDimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { - return customDimension_ == null ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - return customDimension_ == null ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (customDimension_ != null) { - output.writeMessage(2, getCustomDimension()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (customDimension_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomDimension()); - } - 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.admin.v1beta.CreateCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest other = (com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasCustomDimension() != other.hasCustomDimension()) return false; - if (hasCustomDimension()) { - if (!getCustomDimension() - .equals(other.getCustomDimension())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasCustomDimension()) { - hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getCustomDimension().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreateCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateCustomDimensionRequest) - com.google.analytics.admin.v1beta.CreateCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.class, com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest build() { - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1beta.CreateCustomDimensionRequest result = new com.google.analytics.admin.v1beta.CreateCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreateCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.customDimension_ = customDimensionBuilder_ == null - ? customDimension_ - : customDimensionBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreateCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreateCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1beta.CreateCustomDimensionRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCustomDimension()) { - mergeCustomDimension(other.getCustomDimension()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomDimensionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.CustomDimension customDimension_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> customDimensionBuilder_; - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customDimension field is set. - */ - public boolean hasCustomDimension() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customDimension. - */ - public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { - if (customDimensionBuilder_ == null) { - return customDimension_ == null ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } else { - return customDimensionBuilder_.getMessage(); - } - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customDimension_ = value; - } else { - customDimensionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomDimension( - com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { - if (customDimensionBuilder_ == null) { - customDimension_ = builderForValue.build(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - customDimension_ != null && - customDimension_ != com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()) { - getCustomDimensionBuilder().mergeFrom(value); - } else { - customDimension_ = value; - } - } else { - customDimensionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearCustomDimension() { - bitField0_ = (bitField0_ & ~0x00000002); - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.CustomDimension.Builder getCustomDimensionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCustomDimensionFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - if (customDimensionBuilder_ != null) { - return customDimensionBuilder_.getMessageOrBuilder(); - } else { - return customDimension_ == null ? - com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } - } - /** - *
-     * Required. The CustomDimension to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> - getCustomDimensionFieldBuilder() { - if (customDimensionBuilder_ == null) { - customDimensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder>( - getCustomDimension(), - getParentForChildren(), - isClean()); - customDimension_ = null; - } - return customDimensionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateCustomDimensionRequest) - private static final com.google.analytics.admin.v1beta.CreateCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1beta.CreateCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index d24b60dcb03f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreateCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customDimension field is set. - */ - boolean hasCustomDimension(); - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customDimension. - */ - com.google.analytics.admin.v1beta.CustomDimension getCustomDimension(); - /** - *
-   * Required. The CustomDimension to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java deleted file mode 100644 index 4fabc21d5b01..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomMetricRequest} - */ -public final class CreateCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateCustomMetricRequest) - CreateCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateCustomMetricRequest.newBuilder() to construct. - private CreateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateCustomMetricRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateCustomMetricRequest.class, com.google.analytics.admin.v1beta.CreateCustomMetricRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOM_METRIC_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.CustomMetric customMetric_; - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customMetric field is set. - */ - @java.lang.Override - public boolean hasCustomMetric() { - return customMetric_ != null; - } - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customMetric. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { - return customMetric_ == null ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { - return customMetric_ == null ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (customMetric_ != null) { - output.writeMessage(2, getCustomMetric()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (customMetric_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCustomMetric()); - } - 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.admin.v1beta.CreateCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreateCustomMetricRequest other = (com.google.analytics.admin.v1beta.CreateCustomMetricRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasCustomMetric() != other.hasCustomMetric()) return false; - if (hasCustomMetric()) { - if (!getCustomMetric() - .equals(other.getCustomMetric())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasCustomMetric()) { - hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; - hash = (53 * hash) + getCustomMetric().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreateCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateCustomMetricRequest) - com.google.analytics.admin.v1beta.CreateCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateCustomMetricRequest.class, com.google.analytics.admin.v1beta.CreateCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreateCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreateCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomMetricRequest build() { - com.google.analytics.admin.v1beta.CreateCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1beta.CreateCustomMetricRequest result = new com.google.analytics.admin.v1beta.CreateCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreateCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.customMetric_ = customMetricBuilder_ == null - ? customMetric_ - : customMetricBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreateCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreateCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1beta.CreateCustomMetricRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasCustomMetric()) { - mergeCustomMetric(other.getCustomMetric()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getCustomMetricFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.CustomMetric customMetric_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder> customMetricBuilder_; - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customMetric field is set. - */ - public boolean hasCustomMetric() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customMetric. - */ - public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { - if (customMetricBuilder_ == null) { - return customMetric_ == null ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } else { - return customMetricBuilder_.getMessage(); - } - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customMetric_ = value; - } else { - customMetricBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setCustomMetric( - com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { - if (customMetricBuilder_ == null) { - customMetric_ = builderForValue.build(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - customMetric_ != null && - customMetric_ != com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()) { - getCustomMetricBuilder().mergeFrom(value); - } else { - customMetric_ = value; - } - } else { - customMetricBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearCustomMetric() { - bitField0_ = (bitField0_ & ~0x00000002); - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.CustomMetric.Builder getCustomMetricBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getCustomMetricFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { - if (customMetricBuilder_ != null) { - return customMetricBuilder_.getMessageOrBuilder(); - } else { - return customMetric_ == null ? - com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } - } - /** - *
-     * Required. The CustomMetric to create.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder> - getCustomMetricFieldBuilder() { - if (customMetricBuilder_ == null) { - customMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder>( - getCustomMetric(), - getParentForChildren(), - isClean()); - customMetric_ = null; - } - return customMetricBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateCustomMetricRequest) - private static final com.google.analytics.admin.v1beta.CreateCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1beta.CreateCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java deleted file mode 100644 index 617aa3db8120..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreateCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the customMetric field is set. - */ - boolean hasCustomMetric(); - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The customMetric. - */ - com.google.analytics.admin.v1beta.CustomMetric getCustomMetric(); - /** - *
-   * Required. The CustomMetric to create.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java deleted file mode 100644 index d72e508670d3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateDataStreamRequest} - */ -public final class CreateDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateDataStreamRequest) - CreateDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateDataStreamRequest.newBuilder() to construct. - private CreateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateDataStreamRequest.class, com.google.analytics.admin.v1beta.CreateDataStreamRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_STREAM_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.DataStream dataStream_; - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return dataStream_ != null; - } - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream getDataStream() { - return dataStream_ == null ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { - return dataStream_ == null ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (dataStream_ != null) { - output.writeMessage(2, getDataStream()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (dataStream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getDataStream()); - } - 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.admin.v1beta.CreateDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreateDataStreamRequest other = (com.google.analytics.admin.v1beta.CreateDataStreamRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasDataStream() != other.hasDataStream()) return false; - if (hasDataStream()) { - if (!getDataStream() - .equals(other.getDataStream())) return false; - } - if (!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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasDataStream()) { - hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getDataStream().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreateDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateDataStreamRequest) - com.google.analytics.admin.v1beta.CreateDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateDataStreamRequest.class, com.google.analytics.admin.v1beta.CreateDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreateDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreateDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateDataStreamRequest build() { - com.google.analytics.admin.v1beta.CreateDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateDataStreamRequest buildPartial() { - com.google.analytics.admin.v1beta.CreateDataStreamRequest result = new com.google.analytics.admin.v1beta.CreateDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreateDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataStream_ = dataStreamBuilder_ == null - ? dataStream_ - : dataStreamBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreateDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreateDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateDataStreamRequest other) { - if (other == com.google.analytics.admin.v1beta.CreateDataStreamRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasDataStream()) { - mergeDataStream(other.getDataStream()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getDataStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.DataStream dataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> dataStreamBuilder_; - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataStream field is set. - */ - public boolean hasDataStream() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataStream. - */ - public com.google.analytics.admin.v1beta.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - return dataStream_ == null ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } else { - return dataStreamBuilder_.getMessage(); - } - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataStream(com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataStream_ = value; - } else { - dataStreamBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataStream( - com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - dataStream_ = builderForValue.build(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDataStream(com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - dataStream_ != null && - dataStream_ != com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) { - getDataStreamBuilder().mergeFrom(value); - } else { - dataStream_ = value; - } - } else { - dataStreamBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDataStream() { - bitField0_ = (bitField0_ & ~0x00000002); - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getDataStreamFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { - if (dataStreamBuilder_ != null) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - return dataStream_ == null ? - com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } - } - /** - *
-     * Required. The DataStream to create.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - dataStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder>( - getDataStream(), - getParentForChildren(), - isClean()); - dataStream_ = null; - } - return dataStreamBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateDataStreamRequest) - private static final com.google.analytics.admin.v1beta.CreateDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateDataStreamRequest(); - } - - public static com.google.analytics.admin.v1beta.CreateDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java deleted file mode 100644 index 62f65fa742ce..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreateDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataStream. - */ - com.google.analytics.admin.v1beta.DataStream getDataStream(); - /** - *
-   * Required. The DataStream to create.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java deleted file mode 100644 index cf9c2fd72204..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateFirebaseLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateFirebaseLinkRequest} - */ -public final class CreateFirebaseLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) - CreateFirebaseLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateFirebaseLinkRequest.newBuilder() to construct. - private CreateFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateFirebaseLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateFirebaseLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.class, com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIREBASE_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.FirebaseLink firebaseLink_; - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the firebaseLink field is set. - */ - @java.lang.Override - public boolean hasFirebaseLink() { - return firebaseLink_ != null; - } - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The firebaseLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { - return firebaseLink_ == null ? com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() : firebaseLink_; - } - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - return firebaseLink_ == null ? com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() : firebaseLink_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (firebaseLink_ != null) { - output.writeMessage(2, getFirebaseLink()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (firebaseLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getFirebaseLink()); - } - 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.admin.v1beta.CreateFirebaseLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest other = (com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasFirebaseLink() != other.hasFirebaseLink()) return false; - if (hasFirebaseLink()) { - if (!getFirebaseLink() - .equals(other.getFirebaseLink())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasFirebaseLink()) { - hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateFirebaseLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateFirebaseLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.class, com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - firebaseLink_ = null; - if (firebaseLinkBuilder_ != null) { - firebaseLinkBuilder_.dispose(); - firebaseLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest build() { - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest buildPartial() { - com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest result = new com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.firebaseLink_ = firebaseLinkBuilder_ == null - ? firebaseLink_ - : firebaseLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest other) { - if (other == com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasFirebaseLink()) { - mergeFirebaseLink(other.getFirebaseLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getFirebaseLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.FirebaseLink firebaseLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> firebaseLinkBuilder_; - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the firebaseLink field is set. - */ - public boolean hasFirebaseLink() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The firebaseLink. - */ - public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - return firebaseLink_ == null ? com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() : firebaseLink_; - } else { - return firebaseLinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - firebaseLink_ = value; - } else { - firebaseLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setFirebaseLink( - com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = builderForValue.build(); - } else { - firebaseLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeFirebaseLink(com.google.analytics.admin.v1beta.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - firebaseLink_ != null && - firebaseLink_ != com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()) { - getFirebaseLinkBuilder().mergeFrom(value); - } else { - firebaseLink_ = value; - } - } else { - firebaseLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearFirebaseLink() { - bitField0_ = (bitField0_ & ~0x00000002); - firebaseLink_ = null; - if (firebaseLinkBuilder_ != null) { - firebaseLinkBuilder_.dispose(); - firebaseLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.FirebaseLink.Builder getFirebaseLinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFirebaseLinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - if (firebaseLinkBuilder_ != null) { - return firebaseLinkBuilder_.getMessageOrBuilder(); - } else { - return firebaseLink_ == null ? - com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance() : firebaseLink_; - } - } - /** - *
-     * Required. The Firebase link to create.
-     * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> - getFirebaseLinkFieldBuilder() { - if (firebaseLinkBuilder_ == null) { - firebaseLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder>( - getFirebaseLink(), - getParentForChildren(), - isClean()); - firebaseLink_ = null; - } - return firebaseLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) - private static final com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest(); - } - - public static com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateFirebaseLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateFirebaseLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index 1639b9b77ea5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreateFirebaseLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateFirebaseLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the firebaseLink field is set. - */ - boolean hasFirebaseLink(); - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The firebaseLink. - */ - com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLink(); - /** - *
-   * Required. The Firebase link to create.
-   * 
- * - * .google.analytics.admin.v1beta.FirebaseLink firebase_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java deleted file mode 100644 index 6014c3e70c78..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,806 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateGoogleAdsLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} - */ -public final class CreateGoogleAdsLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) - CreateGoogleAdsLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateGoogleAdsLinkRequest.newBuilder() to construct. - private CreateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateGoogleAdsLinkRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateGoogleAdsLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return googleAdsLink_ != null; - } - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (googleAdsLink_ != null) { - output.writeMessage(2, getGoogleAdsLink()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (googleAdsLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getGoogleAdsLink()); - } - 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.admin.v1beta.CreateGoogleAdsLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest other = (com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; - if (hasGoogleAdsLink()) { - if (!getGoogleAdsLink() - .equals(other.getGoogleAdsLink())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasGoogleAdsLink()) { - hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLink().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateGoogleAdsLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest build() { - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest buildPartial() { - com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest result = new com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.googleAdsLink_ = googleAdsLinkBuilder_ == null - ? googleAdsLink_ - : googleAdsLinkBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest other) { - if (other == com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasGoogleAdsLink()) { - mergeGoogleAdsLink(other.getGoogleAdsLink()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getGoogleAdsLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> googleAdsLinkBuilder_; - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleAdsLink field is set. - */ - public boolean hasGoogleAdsLink() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleAdsLink. - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - return googleAdsLink_ == null ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } else { - return googleAdsLinkBuilder_.getMessage(); - } - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - googleAdsLink_ = value; - } else { - googleAdsLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setGoogleAdsLink( - com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = builderForValue.build(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - googleAdsLink_ != null && - googleAdsLink_ != com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) { - getGoogleAdsLinkBuilder().mergeFrom(value); - } else { - googleAdsLink_ = value; - } - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearGoogleAdsLink() { - bitField0_ = (bitField0_ & ~0x00000002); - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getGoogleAdsLinkFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if (googleAdsLinkBuilder_ != null) { - return googleAdsLinkBuilder_.getMessageOrBuilder(); - } else { - return googleAdsLink_ == null ? - com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - } - /** - *
-     * Required. The GoogleAdsLink to create.
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> - getGoogleAdsLinkFieldBuilder() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( - getGoogleAdsLink(), - getParentForChildren(), - isClean()); - googleAdsLink_ = null; - } - return googleAdsLinkBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) - private static final com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest(); - } - - public static com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateGoogleAdsLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 840a0f30b0b2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreateGoogleAdsLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateGoogleAdsLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the googleAdsLink field is set. - */ - boolean hasGoogleAdsLink(); - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The googleAdsLink. - */ - com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink(); - /** - *
-   * Required. The GoogleAdsLink to create.
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java deleted file mode 100644 index 28d5228827e2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} - */ -public final class CreateMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) - CreateMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateMeasurementProtocolSecretRequest.newBuilder() to construct. - private CreateMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateMeasurementProtocolSecretRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 2; - private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return measurementProtocolSecret_ != null; - } - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (measurementProtocolSecret_ != null) { - output.writeMessage(2, getMeasurementProtocolSecret()); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (measurementProtocolSecret_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getMeasurementProtocolSecret()); - } - 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.admin.v1beta.CreateMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; - if (hasMeasurementProtocolSecret()) { - if (!getMeasurementProtocolSecret() - .equals(other.getMeasurementProtocolSecret())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - if (hasMeasurementProtocolSecret()) { - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_ == null - ? measurementProtocolSecret_ - : measurementProtocolSecretBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasMeasurementProtocolSecret()) { - mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The parent resource where this secret will be created.
-     * Format: properties/{property}/dataStreams/{dataStream}
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretBuilder_; - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - public boolean hasMeasurementProtocolSecret() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } else { - return measurementProtocolSecretBuilder_.getMessage(); - } - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret(com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - measurementProtocolSecret_ = value; - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = builderForValue.build(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeMeasurementProtocolSecret(com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - measurementProtocolSecret_ != null && - measurementProtocolSecret_ != com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()) { - getMeasurementProtocolSecretBuilder().mergeFrom(value); - } else { - measurementProtocolSecret_ = value; - } - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearMeasurementProtocolSecret() { - bitField0_ = (bitField0_ & ~0x00000002); - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getMeasurementProtocolSecretFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if (measurementProtocolSecretBuilder_ != null) { - return measurementProtocolSecretBuilder_.getMessageOrBuilder(); - } else { - return measurementProtocolSecret_ == null ? - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - } - /** - *
-     * Required. The measurement protocol secret to create.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretFieldBuilder() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( - getMeasurementProtocolSecret(), - getParentForChildren(), - isClean()); - measurementProtocolSecret_ = null; - } - return measurementProtocolSecretBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index c2202d8c206a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreateMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreateMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The parent resource where this secret will be created.
-   * Format: properties/{property}/dataStreams/{dataStream}
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - boolean hasMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to create.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java deleted file mode 100644 index bba4aec3645a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequest.java +++ /dev/null @@ -1,654 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for CreateProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreatePropertyRequest} - */ -public final class CreatePropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CreatePropertyRequest) - CreatePropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreatePropertyRequest.newBuilder() to construct. - private CreatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreatePropertyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreatePropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreatePropertyRequest.class, com.google.analytics.admin.v1beta.CreatePropertyRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.Property property_; - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return property_ != null; - } - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Property getProperty() { - return property_ == null ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { - return property_ == null ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } - - 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 (property_ != null) { - output.writeMessage(1, getProperty()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); - } - 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.admin.v1beta.CreatePropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CreatePropertyRequest other = (com.google.analytics.admin.v1beta.CreatePropertyRequest) obj; - - if (hasProperty() != other.hasProperty()) return false; - if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) 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 (hasProperty()) { - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CreatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CreatePropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for CreateProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CreatePropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CreatePropertyRequest) - com.google.analytics.admin.v1beta.CreatePropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CreatePropertyRequest.class, com.google.analytics.admin.v1beta.CreatePropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CreatePropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_CreatePropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreatePropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CreatePropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreatePropertyRequest build() { - com.google.analytics.admin.v1beta.CreatePropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreatePropertyRequest buildPartial() { - com.google.analytics.admin.v1beta.CreatePropertyRequest result = new com.google.analytics.admin.v1beta.CreatePropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CreatePropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = propertyBuilder_ == null - ? property_ - : propertyBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CreatePropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.CreatePropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CreatePropertyRequest other) { - if (other == com.google.analytics.admin.v1beta.CreatePropertyRequest.getDefaultInstance()) return this; - if (other.hasProperty()) { - mergeProperty(other.getProperty()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getPropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.Property property_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> propertyBuilder_; - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - public boolean hasProperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - public com.google.analytics.admin.v1beta.Property getProperty() { - if (propertyBuilder_ == null) { - return property_ == null ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } else { - return propertyBuilder_.getMessage(); - } - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty(com.google.analytics.admin.v1beta.Property value) { - if (propertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - property_ = value; - } else { - propertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty( - com.google.analytics.admin.v1beta.Property.Builder builderForValue) { - if (propertyBuilder_ == null) { - property_ = builderForValue.build(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeProperty(com.google.analytics.admin.v1beta.Property value) { - if (propertyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - property_ != null && - property_ != com.google.analytics.admin.v1beta.Property.getDefaultInstance()) { - getPropertyBuilder().mergeFrom(value); - } else { - property_ = value; - } - } else { - propertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearProperty() { - bitField0_ = (bitField0_ & ~0x00000001); - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.Property.Builder getPropertyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPropertyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { - if (propertyBuilder_ != null) { - return propertyBuilder_.getMessageOrBuilder(); - } else { - return property_ == null ? - com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } - } - /** - *
-     * Required. The property to create.
-     * Note: the supplied property must specify its parent.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> - getPropertyFieldBuilder() { - if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); - property_ = null; - } - return propertyBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CreatePropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CreatePropertyRequest) - private static final com.google.analytics.admin.v1beta.CreatePropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CreatePropertyRequest(); - } - - public static com.google.analytics.admin.v1beta.CreatePropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CreatePropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java deleted file mode 100644 index 8ab88dcabcfe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CreatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface CreatePropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CreatePropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - boolean hasProperty(); - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - com.google.analytics.admin.v1beta.Property getProperty(); - /** - *
-   * Required. The property to create.
-   * Note: the supplied property must specify its parent.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java deleted file mode 100644 index cfb013222ec9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimension.java +++ /dev/null @@ -1,1567 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A definition for a CustomDimension.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CustomDimension} - */ -public final class CustomDimension extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CustomDimension) - CustomDimensionOrBuilder { -private static final long serialVersionUID = 0L; - // Use CustomDimension.newBuilder() to construct. - private CustomDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CustomDimension() { - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - scope_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CustomDimension(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CustomDimension.class, com.google.analytics.admin.v1beta.CustomDimension.Builder.class); - } - - /** - *
-   * Valid values for the scope of this dimension.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.CustomDimension.DimensionScope} - */ - public enum DimensionScope - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - DIMENSION_SCOPE_UNSPECIFIED(0), - /** - *
-     * Dimension scoped to an event.
-     * 
- * - * EVENT = 1; - */ - EVENT(1), - /** - *
-     * Dimension scoped to a user.
-     * 
- * - * USER = 2; - */ - USER(2), - /** - *
-     * Dimension scoped to eCommerce items
-     * 
- * - * ITEM = 3; - */ - ITEM(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * DIMENSION_SCOPE_UNSPECIFIED = 0; - */ - public static final int DIMENSION_SCOPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Dimension scoped to an event.
-     * 
- * - * EVENT = 1; - */ - public static final int EVENT_VALUE = 1; - /** - *
-     * Dimension scoped to a user.
-     * 
- * - * USER = 2; - */ - public static final int USER_VALUE = 2; - /** - *
-     * Dimension scoped to eCommerce items
-     * 
- * - * ITEM = 3; - */ - public static final int ITEM_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 DimensionScope 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 DimensionScope forNumber(int value) { - switch (value) { - case 0: return DIMENSION_SCOPE_UNSPECIFIED; - case 1: return EVENT; - case 2: return USER; - case 3: return ITEM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DimensionScope> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DimensionScope findValueByNumber(int number) { - return DimensionScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.CustomDimension.getDescriptor().getEnumTypes().get(0); - } - - private static final DimensionScope[] VALUES = values(); - - public static DimensionScope valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DimensionScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomDimension.DimensionScope) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETER_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parameterName_ = ""; - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - @java.lang.Override - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - 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(); - parameterName_ = s; - return s; - } - } - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPE_FIELD_NUMBER = 5; - private int scope_ = 0; - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.CustomDimension.DimensionScope getScope() { - com.google.analytics.admin.v1beta.CustomDimension.DimensionScope result = com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.UNRECOGNIZED : result; - } - - public static final int DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER = 6; - private boolean disallowAdsPersonalization_ = false; - /** - *
-   * Optional. If set to true, sets this dimension as NPA and excludes it from
-   * ads personalization.
-   *
-   * This is currently only supported by user-scoped custom dimensions.
-   * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The disallowAdsPersonalization. - */ - @java.lang.Override - public boolean getDisallowAdsPersonalization() { - return disallowAdsPersonalization_; - } - - 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(parameterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (scope_ != com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.DIMENSION_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, scope_); - } - if (disallowAdsPersonalization_ != false) { - output.writeBool(6, disallowAdsPersonalization_); - } - 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(parameterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (scope_ != com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.DIMENSION_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, scope_); - } - if (disallowAdsPersonalization_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, disallowAdsPersonalization_); - } - 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.admin.v1beta.CustomDimension)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CustomDimension other = (com.google.analytics.admin.v1beta.CustomDimension) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getParameterName() - .equals(other.getParameterName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (scope_ != other.scope_) return false; - if (getDisallowAdsPersonalization() - != other.getDisallowAdsPersonalization()) 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) + PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getParameterName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - hash = (37 * hash) + DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisallowAdsPersonalization()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CustomDimension parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CustomDimension parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CustomDimension parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CustomDimension prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A definition for a CustomDimension.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CustomDimension} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CustomDimension) - com.google.analytics.admin.v1beta.CustomDimensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CustomDimension.class, com.google.analytics.admin.v1beta.CustomDimension.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CustomDimension.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - scope_ = 0; - disallowAdsPersonalization_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension build() { - com.google.analytics.admin.v1beta.CustomDimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension buildPartial() { - com.google.analytics.admin.v1beta.CustomDimension result = new com.google.analytics.admin.v1beta.CustomDimension(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CustomDimension result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parameterName_ = parameterName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.scope_ = scope_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.disallowAdsPersonalization_ = disallowAdsPersonalization_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CustomDimension) { - return mergeFrom((com.google.analytics.admin.v1beta.CustomDimension)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CustomDimension other) { - if (other == com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - if (other.getDisallowAdsPersonalization() != false) { - setDisallowAdsPersonalization(other.getDisallowAdsPersonalization()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parameterName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - scope_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - disallowAdsPersonalization_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.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. Resource name for this CustomDimension resource.
-     * Format: properties/{property}/customDimensions/{customDimension}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object parameterName_ = ""; - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearParameterName() { - parameterName_ = getDefaultInstance().getParameterName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging parameter name for this custom dimension.
-     *
-     * If this is a user-scoped dimension, then this is the user property name.
-     * If this is an event-scoped dimension, then this is the event parameter
-     * name.
-     *
-     * If this is an item-scoped dimension, then this is the parameter
-     * name found in the eCommerce items array.
-     *
-     * May only contain alphanumeric and underscore characters, starting with a
-     * letter. Max length of 24 characters for user-scoped dimensions, 40
-     * characters for event-scoped dimensions.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom dimension as shown in the Analytics
-     * UI. Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension. Max length of 150
-     * characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int scope_ = 0; - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension.DimensionScope getScope() { - com.google.analytics.admin.v1beta.CustomDimension.DimensionScope result = com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1beta.CustomDimension.DimensionScope.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.analytics.admin.v1beta.CustomDimension.DimensionScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this dimension.
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000010); - scope_ = 0; - onChanged(); - return this; - } - - private boolean disallowAdsPersonalization_ ; - /** - *
-     * Optional. If set to true, sets this dimension as NPA and excludes it from
-     * ads personalization.
-     *
-     * This is currently only supported by user-scoped custom dimensions.
-     * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The disallowAdsPersonalization. - */ - @java.lang.Override - public boolean getDisallowAdsPersonalization() { - return disallowAdsPersonalization_; - } - /** - *
-     * Optional. If set to true, sets this dimension as NPA and excludes it from
-     * ads personalization.
-     *
-     * This is currently only supported by user-scoped custom dimensions.
-     * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The disallowAdsPersonalization to set. - * @return This builder for chaining. - */ - public Builder setDisallowAdsPersonalization(boolean value) { - - disallowAdsPersonalization_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set to true, sets this dimension as NPA and excludes it from
-     * ads personalization.
-     *
-     * This is currently only supported by user-scoped custom dimensions.
-     * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDisallowAdsPersonalization() { - bitField0_ = (bitField0_ & ~0x00000020); - disallowAdsPersonalization_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CustomDimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CustomDimension) - private static final com.google.analytics.admin.v1beta.CustomDimension DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CustomDimension(); - } - - public static com.google.analytics.admin.v1beta.CustomDimension getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomDimension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java deleted file mode 100644 index 3445a5d03596..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomDimensionOrBuilder.java +++ /dev/null @@ -1,155 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface CustomDimensionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CustomDimension) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this CustomDimension resource.
-   * Format: properties/{property}/customDimensions/{customDimension}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - java.lang.String getParameterName(); - /** - *
-   * Required. Immutable. Tagging parameter name for this custom dimension.
-   *
-   * If this is a user-scoped dimension, then this is the user property name.
-   * If this is an event-scoped dimension, then this is the event parameter
-   * name.
-   *
-   * If this is an item-scoped dimension, then this is the parameter
-   * name found in the eCommerce items array.
-   *
-   * May only contain alphanumeric and underscore characters, starting with a
-   * letter. Max length of 24 characters for user-scoped dimensions, 40
-   * characters for event-scoped dimensions.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - com.google.protobuf.ByteString - getParameterNameBytes(); - - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Display name for this custom dimension as shown in the Analytics
-   * UI. Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Optional. Description for this custom dimension. Max length of 150
-   * characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Required. Immutable. The scope of this dimension.
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - com.google.analytics.admin.v1beta.CustomDimension.DimensionScope getScope(); - - /** - *
-   * Optional. If set to true, sets this dimension as NPA and excludes it from
-   * ads personalization.
-   *
-   * This is currently only supported by user-scoped custom dimensions.
-   * 
- * - * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The disallowAdsPersonalization. - */ - boolean getDisallowAdsPersonalization(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java deleted file mode 100644 index 7403e7d4e7b6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetric.java +++ /dev/null @@ -1,2319 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A definition for a custom metric.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CustomMetric} - */ -public final class CustomMetric extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.CustomMetric) - CustomMetricOrBuilder { -private static final long serialVersionUID = 0L; - // Use CustomMetric.newBuilder() to construct. - private CustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CustomMetric() { - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - measurementUnit_ = 0; - scope_ = 0; - restrictedMetricType_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CustomMetric(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CustomMetric.class, com.google.analytics.admin.v1beta.CustomMetric.Builder.class); - } - - /** - *
-   * Possible types of representing the custom metric's value.
-   *
-   * Currency representation may change in the future, requiring a breaking API
-   * change.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.CustomMetric.MeasurementUnit} - */ - public enum MeasurementUnit - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * MeasurementUnit unspecified or missing.
-     * 
- * - * MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - MEASUREMENT_UNIT_UNSPECIFIED(0), - /** - *
-     * This metric uses default units.
-     * 
- * - * STANDARD = 1; - */ - STANDARD(1), - /** - *
-     * This metric measures a currency.
-     * 
- * - * CURRENCY = 2; - */ - CURRENCY(2), - /** - *
-     * This metric measures feet.
-     * 
- * - * FEET = 3; - */ - FEET(3), - /** - *
-     * This metric measures meters.
-     * 
- * - * METERS = 4; - */ - METERS(4), - /** - *
-     * This metric measures kilometers.
-     * 
- * - * KILOMETERS = 5; - */ - KILOMETERS(5), - /** - *
-     * This metric measures miles.
-     * 
- * - * MILES = 6; - */ - MILES(6), - /** - *
-     * This metric measures milliseconds.
-     * 
- * - * MILLISECONDS = 7; - */ - MILLISECONDS(7), - /** - *
-     * This metric measures seconds.
-     * 
- * - * SECONDS = 8; - */ - SECONDS(8), - /** - *
-     * This metric measures minutes.
-     * 
- * - * MINUTES = 9; - */ - MINUTES(9), - /** - *
-     * This metric measures hours.
-     * 
- * - * HOURS = 10; - */ - HOURS(10), - UNRECOGNIZED(-1), - ; - - /** - *
-     * MeasurementUnit unspecified or missing.
-     * 
- * - * MEASUREMENT_UNIT_UNSPECIFIED = 0; - */ - public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUE = 0; - /** - *
-     * This metric uses default units.
-     * 
- * - * STANDARD = 1; - */ - public static final int STANDARD_VALUE = 1; - /** - *
-     * This metric measures a currency.
-     * 
- * - * CURRENCY = 2; - */ - public static final int CURRENCY_VALUE = 2; - /** - *
-     * This metric measures feet.
-     * 
- * - * FEET = 3; - */ - public static final int FEET_VALUE = 3; - /** - *
-     * This metric measures meters.
-     * 
- * - * METERS = 4; - */ - public static final int METERS_VALUE = 4; - /** - *
-     * This metric measures kilometers.
-     * 
- * - * KILOMETERS = 5; - */ - public static final int KILOMETERS_VALUE = 5; - /** - *
-     * This metric measures miles.
-     * 
- * - * MILES = 6; - */ - public static final int MILES_VALUE = 6; - /** - *
-     * This metric measures milliseconds.
-     * 
- * - * MILLISECONDS = 7; - */ - public static final int MILLISECONDS_VALUE = 7; - /** - *
-     * This metric measures seconds.
-     * 
- * - * SECONDS = 8; - */ - public static final int SECONDS_VALUE = 8; - /** - *
-     * This metric measures minutes.
-     * 
- * - * MINUTES = 9; - */ - public static final int MINUTES_VALUE = 9; - /** - *
-     * This metric measures hours.
-     * 
- * - * HOURS = 10; - */ - public static final int HOURS_VALUE = 10; - - - 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 MeasurementUnit 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 MeasurementUnit forNumber(int value) { - switch (value) { - case 0: return MEASUREMENT_UNIT_UNSPECIFIED; - case 1: return STANDARD; - case 2: return CURRENCY; - case 3: return FEET; - case 4: return METERS; - case 5: return KILOMETERS; - case 6: return MILES; - case 7: return MILLISECONDS; - case 8: return SECONDS; - case 9: return MINUTES; - case 10: return HOURS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MeasurementUnit> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MeasurementUnit findValueByNumber(int number) { - return MeasurementUnit.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.CustomMetric.getDescriptor().getEnumTypes().get(0); - } - - private static final MeasurementUnit[] VALUES = values(); - - public static MeasurementUnit valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MeasurementUnit(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomMetric.MeasurementUnit) - } - - /** - *
-   * The scope of this metric.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.CustomMetric.MetricScope} - */ - public enum MetricScope - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * METRIC_SCOPE_UNSPECIFIED = 0; - */ - METRIC_SCOPE_UNSPECIFIED(0), - /** - *
-     * Metric scoped to an event.
-     * 
- * - * EVENT = 1; - */ - EVENT(1), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Scope unknown or not specified.
-     * 
- * - * METRIC_SCOPE_UNSPECIFIED = 0; - */ - public static final int METRIC_SCOPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Metric scoped to an event.
-     * 
- * - * EVENT = 1; - */ - public static final int EVENT_VALUE = 1; - - - 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 MetricScope 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 MetricScope forNumber(int value) { - switch (value) { - case 0: return METRIC_SCOPE_UNSPECIFIED; - case 1: return EVENT; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - MetricScope> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MetricScope findValueByNumber(int number) { - return MetricScope.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.CustomMetric.getDescriptor().getEnumTypes().get(1); - } - - private static final MetricScope[] VALUES = values(); - - public static MetricScope valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private MetricScope(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomMetric.MetricScope) - } - - /** - *
-   * Labels that mark the data in this custom metric as data that should be
-   * restricted to specific users.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType} - */ - public enum RestrictedMetricType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Type unknown or unspecified.
-     * 
- * - * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - RESTRICTED_METRIC_TYPE_UNSPECIFIED(0), - /** - *
-     * Metric reports cost data.
-     * 
- * - * COST_DATA = 1; - */ - COST_DATA(1), - /** - *
-     * Metric reports revenue data.
-     * 
- * - * REVENUE_DATA = 2; - */ - REVENUE_DATA(2), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Type unknown or unspecified.
-     * 
- * - * RESTRICTED_METRIC_TYPE_UNSPECIFIED = 0; - */ - public static final int RESTRICTED_METRIC_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Metric reports cost data.
-     * 
- * - * COST_DATA = 1; - */ - public static final int COST_DATA_VALUE = 1; - /** - *
-     * Metric reports revenue data.
-     * 
- * - * REVENUE_DATA = 2; - */ - public static final int REVENUE_DATA_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RestrictedMetricType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RestrictedMetricType forNumber(int value) { - switch (value) { - case 0: return RESTRICTED_METRIC_TYPE_UNSPECIFIED; - case 1: return COST_DATA; - case 2: return REVENUE_DATA; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RestrictedMetricType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RestrictedMetricType findValueByNumber(int number) { - return RestrictedMetricType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.CustomMetric.getDescriptor().getEnumTypes().get(2); - } - - private static final RestrictedMetricType[] VALUES = values(); - - public static RestrictedMetricType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RestrictedMetricType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARAMETER_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parameterName_ = ""; - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - @java.lang.Override - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - 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(); - parameterName_ = s; - return s; - } - } - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - 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(); - description_ = s; - return s; - } - } - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MEASUREMENT_UNIT_FIELD_NUMBER = 5; - private int measurementUnit_ = 0; - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for measurementUnit. - */ - @java.lang.Override public int getMeasurementUnitValue() { - return measurementUnit_; - } - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementUnit. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit getMeasurementUnit() { - com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit result = com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.forNumber(measurementUnit_); - return result == null ? com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.UNRECOGNIZED : result; - } - - public static final int SCOPE_FIELD_NUMBER = 6; - private int scope_ = 0; - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.CustomMetric.MetricScope getScope() { - com.google.analytics.admin.v1beta.CustomMetric.MetricScope result = com.google.analytics.admin.v1beta.CustomMetric.MetricScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1beta.CustomMetric.MetricScope.UNRECOGNIZED : result; - } - - public static final int RESTRICTED_METRIC_TYPE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private java.util.List restrictedMetricType_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType> restrictedMetricType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType>() { - public com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType convert(java.lang.Integer from) { - com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType result = com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType.forNumber(from); - return result == null ? com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType.UNRECOGNIZED : result; - } - }; - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the restrictedMetricType. - */ - @java.lang.Override - public java.util.List getRestrictedMetricTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType>(restrictedMetricType_, restrictedMetricType_converter_); - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of restrictedMetricType. - */ - @java.lang.Override - public int getRestrictedMetricTypeCount() { - return restrictedMetricType_.size(); - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The restrictedMetricType at the given index. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType getRestrictedMetricType(int index) { - return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for restrictedMetricType. - */ - @java.lang.Override - public java.util.List - getRestrictedMetricTypeValueList() { - return restrictedMetricType_; - } - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricType at the given index. - */ - @java.lang.Override - public int getRestrictedMetricTypeValue(int index) { - return restrictedMetricType_.get(index); - } - private int restrictedMetricTypeMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - 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 { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); - } - if (measurementUnit_ != com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.MEASUREMENT_UNIT_UNSPECIFIED.getNumber()) { - output.writeEnum(5, measurementUnit_); - } - if (scope_ != com.google.analytics.admin.v1beta.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED.getNumber()) { - output.writeEnum(6, scope_); - } - if (getRestrictedMetricTypeList().size() > 0) { - output.writeUInt32NoTag(66); - output.writeUInt32NoTag(restrictedMetricTypeMemoizedSerializedSize); - } - for (int i = 0; i < restrictedMetricType_.size(); i++) { - output.writeEnumNoTag(restrictedMetricType_.get(i)); - } - 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(parameterName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); - } - if (measurementUnit_ != com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.MEASUREMENT_UNIT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, measurementUnit_); - } - if (scope_ != com.google.analytics.admin.v1beta.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, scope_); - } - { - int dataSize = 0; - for (int i = 0; i < restrictedMetricType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(restrictedMetricType_.get(i)); - } - size += dataSize; - if (!getRestrictedMetricTypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }restrictedMetricTypeMemoizedSerializedSize = dataSize; - } - size += 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.admin.v1beta.CustomMetric)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.CustomMetric other = (com.google.analytics.admin.v1beta.CustomMetric) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getParameterName() - .equals(other.getParameterName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (measurementUnit_ != other.measurementUnit_) return false; - if (scope_ != other.scope_) return false; - if (!restrictedMetricType_.equals(other.restrictedMetricType_)) return false; - if (!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) + PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getParameterName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + MEASUREMENT_UNIT_FIELD_NUMBER; - hash = (53 * hash) + measurementUnit_; - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + scope_; - if (getRestrictedMetricTypeCount() > 0) { - hash = (37 * hash) + RESTRICTED_METRIC_TYPE_FIELD_NUMBER; - hash = (53 * hash) + restrictedMetricType_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.CustomMetric parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.CustomMetric parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.CustomMetric parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.CustomMetric prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A definition for a custom metric.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.CustomMetric} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.CustomMetric) - com.google.analytics.admin.v1beta.CustomMetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.CustomMetric.class, com.google.analytics.admin.v1beta.CustomMetric.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.CustomMetric.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - parameterName_ = ""; - displayName_ = ""; - description_ = ""; - measurementUnit_ = 0; - scope_ = 0; - restrictedMetricType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric build() { - com.google.analytics.admin.v1beta.CustomMetric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric buildPartial() { - com.google.analytics.admin.v1beta.CustomMetric result = new com.google.analytics.admin.v1beta.CustomMetric(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.CustomMetric result) { - if (((bitField0_ & 0x00000040) != 0)) { - restrictedMetricType_ = java.util.Collections.unmodifiableList(restrictedMetricType_); - bitField0_ = (bitField0_ & ~0x00000040); - } - result.restrictedMetricType_ = restrictedMetricType_; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.CustomMetric result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parameterName_ = parameterName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.measurementUnit_ = measurementUnit_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.scope_ = scope_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.CustomMetric) { - return mergeFrom((com.google.analytics.admin.v1beta.CustomMetric)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.CustomMetric other) { - if (other == com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getParameterName().isEmpty()) { - parameterName_ = other.parameterName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.measurementUnit_ != 0) { - setMeasurementUnitValue(other.getMeasurementUnitValue()); - } - if (other.scope_ != 0) { - setScopeValue(other.getScopeValue()); - } - if (!other.restrictedMetricType_.isEmpty()) { - if (restrictedMetricType_.isEmpty()) { - restrictedMetricType_ = other.restrictedMetricType_; - bitField0_ = (bitField0_ & ~0x00000040); - } else { - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.addAll(other.restrictedMetricType_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parameterName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 40: { - measurementUnit_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - scope_ = input.readEnum(); - bitField0_ |= 0x00000020; - break; - } // case 48 - case 64: { - int tmpRaw = input.readEnum(); - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(tmpRaw); - break; - } // case 64 - case 66: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.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. Resource name for this CustomMetric resource.
-     * Format: properties/{property}/customMetrics/{customMetric}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object parameterName_ = ""; - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - public java.lang.String getParameterName() { - java.lang.Object ref = parameterName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parameterName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - public com.google.protobuf.ByteString - getParameterNameBytes() { - java.lang.Object ref = parameterName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parameterName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearParameterName() { - parameterName_ = getDefaultInstance().getParameterName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. Tagging name for this custom metric.
-     *
-     * If this is an event-scoped metric, then this is the event parameter
-     * name.
-     *
-     * May only contain alphanumeric and underscore charactes, starting with a
-     * letter. Max length of 40 characters for event-scoped metrics.
-     * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for parameterName to set. - * @return This builder for chaining. - */ - public Builder setParameterNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parameterName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Required. Display name for this custom metric as shown in the Analytics UI.
-     * Max length of 82 characters, alphanumeric plus space and underscore
-     * starting with a letter. Legacy system-generated display names may contain
-     * square brackets, but updates to this field will never permit square
-     * brackets.
-     * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Optional. Description for this custom dimension.
-     * Max length of 150 characters.
-     * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int measurementUnit_ = 0; - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for measurementUnit. - */ - @java.lang.Override public int getMeasurementUnitValue() { - return measurementUnit_; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for measurementUnit to set. - * @return This builder for chaining. - */ - public Builder setMeasurementUnitValue(int value) { - measurementUnit_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementUnit. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit getMeasurementUnit() { - com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit result = com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.forNumber(measurementUnit_); - return result == null ? com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit.UNRECOGNIZED : result; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The measurementUnit to set. - * @return This builder for chaining. - */ - public Builder setMeasurementUnit(com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - measurementUnit_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. The type for the custom metric's value.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearMeasurementUnit() { - bitField0_ = (bitField0_ & ~0x00000010); - measurementUnit_ = 0; - onChanged(); - return this; - } - - private int scope_ = 0; - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - @java.lang.Override public int getScopeValue() { - return scope_; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for scope to set. - * @return This builder for chaining. - */ - public Builder setScopeValue(int value) { - scope_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric.MetricScope getScope() { - com.google.analytics.admin.v1beta.CustomMetric.MetricScope result = com.google.analytics.admin.v1beta.CustomMetric.MetricScope.forNumber(scope_); - return result == null ? com.google.analytics.admin.v1beta.CustomMetric.MetricScope.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @param value The scope to set. - * @return This builder for chaining. - */ - public Builder setScope(com.google.analytics.admin.v1beta.CustomMetric.MetricScope value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - scope_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The scope of this custom metric.
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000020); - scope_ = 0; - onChanged(); - return this; - } - - private java.util.List restrictedMetricType_ = - java.util.Collections.emptyList(); - private void ensureRestrictedMetricTypeIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { - restrictedMetricType_ = new java.util.ArrayList(restrictedMetricType_); - bitField0_ |= 0x00000040; - } - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the restrictedMetricType. - */ - public java.util.List getRestrictedMetricTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType>(restrictedMetricType_, restrictedMetricType_converter_); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of restrictedMetricType. - */ - public int getRestrictedMetricTypeCount() { - return restrictedMetricType_.size(); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The restrictedMetricType at the given index. - */ - public com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType getRestrictedMetricType(int index) { - return restrictedMetricType_converter_.convert(restrictedMetricType_.get(index)); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The restrictedMetricType to set. - * @return This builder for chaining. - */ - public Builder setRestrictedMetricType( - int index, com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addRestrictedMetricType(com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedMetricType( - java.lang.Iterable values) { - ensureRestrictedMetricTypeIsMutable(); - for (com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType value : values) { - restrictedMetricType_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearRestrictedMetricType() { - restrictedMetricType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for restrictedMetricType. - */ - public java.util.List - getRestrictedMetricTypeValueList() { - return java.util.Collections.unmodifiableList(restrictedMetricType_); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricType at the given index. - */ - public int getRestrictedMetricTypeValue(int index) { - return restrictedMetricType_.get(index); - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for restrictedMetricType to set. - * @return This builder for chaining. - */ - public Builder setRestrictedMetricTypeValue( - int index, int value) { - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addRestrictedMetricTypeValue(int value) { - ensureRestrictedMetricTypeIsMutable(); - restrictedMetricType_.add(value); - onChanged(); - return this; - } - /** - *
-     * Optional. Types of restricted data that this metric may contain. Required
-     * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-     * a non-CURRENCY measurement unit.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The enum numeric values on the wire for restrictedMetricType to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedMetricTypeValue( - java.lang.Iterable values) { - ensureRestrictedMetricTypeIsMutable(); - for (int value : values) { - restrictedMetricType_.add(value); - } - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.CustomMetric) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.CustomMetric) - private static final com.google.analytics.admin.v1beta.CustomMetric DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.CustomMetric(); - } - - public static com.google.analytics.admin.v1beta.CustomMetric getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CustomMetric parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java deleted file mode 100644 index bab0b8de610c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/CustomMetricOrBuilder.java +++ /dev/null @@ -1,210 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface CustomMetricOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.CustomMetric) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this CustomMetric resource.
-   * Format: properties/{property}/customMetrics/{customMetric}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The parameterName. - */ - java.lang.String getParameterName(); - /** - *
-   * Required. Immutable. Tagging name for this custom metric.
-   *
-   * If this is an event-scoped metric, then this is the event parameter
-   * name.
-   *
-   * May only contain alphanumeric and underscore charactes, starting with a
-   * letter. Max length of 40 characters for event-scoped metrics.
-   * 
- * - * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parameterName. - */ - com.google.protobuf.ByteString - getParameterNameBytes(); - - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Display name for this custom metric as shown in the Analytics UI.
-   * Max length of 82 characters, alphanumeric plus space and underscore
-   * starting with a letter. Legacy system-generated display names may contain
-   * square brackets, but updates to this field will never permit square
-   * brackets.
-   * 
- * - * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
-   * Optional. Description for this custom dimension.
-   * Max length of 150 characters.
-   * 
- * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for measurementUnit. - */ - int getMeasurementUnitValue(); - /** - *
-   * Required. The type for the custom metric's value.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementUnit. - */ - com.google.analytics.admin.v1beta.CustomMetric.MeasurementUnit getMeasurementUnit(); - - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for scope. - */ - int getScopeValue(); - /** - *
-   * Required. Immutable. The scope of this custom metric.
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; - * @return The scope. - */ - com.google.analytics.admin.v1beta.CustomMetric.MetricScope getScope(); - - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the restrictedMetricType. - */ - java.util.List getRestrictedMetricTypeList(); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of restrictedMetricType. - */ - int getRestrictedMetricTypeCount(); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The restrictedMetricType at the given index. - */ - com.google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType getRestrictedMetricType(int index); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for restrictedMetricType. - */ - java.util.List - getRestrictedMetricTypeValueList(); - /** - *
-   * Optional. Types of restricted data that this metric may contain. Required
-   * for metrics with CURRENCY measurement unit. Must be empty for metrics with
-   * a non-CURRENCY measurement unit.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric.RestrictedMetricType restricted_metric_type = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of restrictedMetricType at the given index. - */ - int getRestrictedMetricTypeValue(int index); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java deleted file mode 100644 index e38a43e7dff7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettings.java +++ /dev/null @@ -1,995 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Settings values for data retention. This is a singleton resource.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataRetentionSettings} - */ -public final class DataRetentionSettings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataRetentionSettings) - DataRetentionSettingsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataRetentionSettings.newBuilder() to construct. - private DataRetentionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataRetentionSettings() { - name_ = ""; - eventDataRetention_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataRetentionSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataRetentionSettings.class, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder.class); - } - - /** - *
-   * Valid values for the data retention duration.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration} - */ - public enum RetentionDuration - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Data retention time duration is not specified.
-     * 
- * - * RETENTION_DURATION_UNSPECIFIED = 0; - */ - RETENTION_DURATION_UNSPECIFIED(0), - /** - *
-     * The data retention time duration is 2 months.
-     * 
- * - * TWO_MONTHS = 1; - */ - TWO_MONTHS(1), - /** - *
-     * The data retention time duration is 14 months.
-     * 
- * - * FOURTEEN_MONTHS = 3; - */ - FOURTEEN_MONTHS(3), - /** - *
-     * The data retention time duration is 26 months.
-     * Available to 360 properties only.
-     * 
- * - * TWENTY_SIX_MONTHS = 4; - */ - TWENTY_SIX_MONTHS(4), - /** - *
-     * The data retention time duration is 38 months.
-     * Available to 360 properties only.
-     * 
- * - * THIRTY_EIGHT_MONTHS = 5; - */ - THIRTY_EIGHT_MONTHS(5), - /** - *
-     * The data retention time duration is 50 months.
-     * Available to 360 properties only.
-     * 
- * - * FIFTY_MONTHS = 6; - */ - FIFTY_MONTHS(6), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Data retention time duration is not specified.
-     * 
- * - * RETENTION_DURATION_UNSPECIFIED = 0; - */ - public static final int RETENTION_DURATION_UNSPECIFIED_VALUE = 0; - /** - *
-     * The data retention time duration is 2 months.
-     * 
- * - * TWO_MONTHS = 1; - */ - public static final int TWO_MONTHS_VALUE = 1; - /** - *
-     * The data retention time duration is 14 months.
-     * 
- * - * FOURTEEN_MONTHS = 3; - */ - public static final int FOURTEEN_MONTHS_VALUE = 3; - /** - *
-     * The data retention time duration is 26 months.
-     * Available to 360 properties only.
-     * 
- * - * TWENTY_SIX_MONTHS = 4; - */ - public static final int TWENTY_SIX_MONTHS_VALUE = 4; - /** - *
-     * The data retention time duration is 38 months.
-     * Available to 360 properties only.
-     * 
- * - * THIRTY_EIGHT_MONTHS = 5; - */ - public static final int THIRTY_EIGHT_MONTHS_VALUE = 5; - /** - *
-     * The data retention time duration is 50 months.
-     * Available to 360 properties only.
-     * 
- * - * FIFTY_MONTHS = 6; - */ - public static final int FIFTY_MONTHS_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RetentionDuration 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 RetentionDuration forNumber(int value) { - switch (value) { - case 0: return RETENTION_DURATION_UNSPECIFIED; - case 1: return TWO_MONTHS; - case 3: return FOURTEEN_MONTHS; - case 4: return TWENTY_SIX_MONTHS; - case 5: return THIRTY_EIGHT_MONTHS; - case 6: return FIFTY_MONTHS; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RetentionDuration> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RetentionDuration findValueByNumber(int number) { - return RetentionDuration.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.DataRetentionSettings.getDescriptor().getEnumTypes().get(0); - } - - private static final RetentionDuration[] VALUES = values(); - - public static RetentionDuration valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RetentionDuration(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration) - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EVENT_DATA_RETENTION_FIELD_NUMBER = 2; - private int eventDataRetention_ = 0; - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The enum numeric value on the wire for eventDataRetention. - */ - @java.lang.Override public int getEventDataRetentionValue() { - return eventDataRetention_; - } - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The eventDataRetention. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration getEventDataRetention() { - com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration result = com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.forNumber(eventDataRetention_); - return result == null ? com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.UNRECOGNIZED : result; - } - - public static final int RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER = 3; - private boolean resetUserDataOnNewActivity_ = false; - /** - *
-   * If true, reset the retention period for the user identifier with every
-   * event from that user.
-   * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return The resetUserDataOnNewActivity. - */ - @java.lang.Override - public boolean getResetUserDataOnNewActivity() { - return resetUserDataOnNewActivity_; - } - - 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 (eventDataRetention_ != com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.RETENTION_DURATION_UNSPECIFIED.getNumber()) { - output.writeEnum(2, eventDataRetention_); - } - if (resetUserDataOnNewActivity_ != false) { - output.writeBool(3, resetUserDataOnNewActivity_); - } - 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 (eventDataRetention_ != com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.RETENTION_DURATION_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, eventDataRetention_); - } - if (resetUserDataOnNewActivity_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, resetUserDataOnNewActivity_); - } - 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.admin.v1beta.DataRetentionSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DataRetentionSettings other = (com.google.analytics.admin.v1beta.DataRetentionSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (eventDataRetention_ != other.eventDataRetention_) return false; - if (getResetUserDataOnNewActivity() - != other.getResetUserDataOnNewActivity()) 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) + EVENT_DATA_RETENTION_FIELD_NUMBER; - hash = (53 * hash) + eventDataRetention_; - hash = (37 * hash) + RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getResetUserDataOnNewActivity()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataRetentionSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DataRetentionSettings 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; - } - /** - *
-   * Settings values for data retention. This is a singleton resource.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataRetentionSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataRetentionSettings) - com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataRetentionSettings.class, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DataRetentionSettings.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - eventDataRetention_ = 0; - resetUserDataOnNewActivity_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings build() { - com.google.analytics.admin.v1beta.DataRetentionSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings buildPartial() { - com.google.analytics.admin.v1beta.DataRetentionSettings result = new com.google.analytics.admin.v1beta.DataRetentionSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DataRetentionSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.eventDataRetention_ = eventDataRetention_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.resetUserDataOnNewActivity_ = resetUserDataOnNewActivity_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DataRetentionSettings) { - return mergeFrom((com.google.analytics.admin.v1beta.DataRetentionSettings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DataRetentionSettings other) { - if (other == com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.eventDataRetention_ != 0) { - setEventDataRetentionValue(other.getEventDataRetentionValue()); - } - if (other.getResetUserDataOnNewActivity() != false) { - setResetUserDataOnNewActivity(other.getResetUserDataOnNewActivity()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - eventDataRetention_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - resetUserDataOnNewActivity_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.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. Resource name for this DataRetentionSetting resource.
-     * Format: properties/{property}/dataRetentionSettings
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int eventDataRetention_ = 0; - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The enum numeric value on the wire for eventDataRetention. - */ - @java.lang.Override public int getEventDataRetentionValue() { - return eventDataRetention_; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param value The enum numeric value on the wire for eventDataRetention to set. - * @return This builder for chaining. - */ - public Builder setEventDataRetentionValue(int value) { - eventDataRetention_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The eventDataRetention. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration getEventDataRetention() { - com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration result = com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.forNumber(eventDataRetention_); - return result == null ? com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration.UNRECOGNIZED : result; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @param value The eventDataRetention to set. - * @return This builder for chaining. - */ - public Builder setEventDataRetention(com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - eventDataRetention_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The length of time that event-level data is retained.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return This builder for chaining. - */ - public Builder clearEventDataRetention() { - bitField0_ = (bitField0_ & ~0x00000002); - eventDataRetention_ = 0; - onChanged(); - return this; - } - - private boolean resetUserDataOnNewActivity_ ; - /** - *
-     * If true, reset the retention period for the user identifier with every
-     * event from that user.
-     * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return The resetUserDataOnNewActivity. - */ - @java.lang.Override - public boolean getResetUserDataOnNewActivity() { - return resetUserDataOnNewActivity_; - } - /** - *
-     * If true, reset the retention period for the user identifier with every
-     * event from that user.
-     * 
- * - * bool reset_user_data_on_new_activity = 3; - * @param value The resetUserDataOnNewActivity to set. - * @return This builder for chaining. - */ - public Builder setResetUserDataOnNewActivity(boolean value) { - - resetUserDataOnNewActivity_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * If true, reset the retention period for the user identifier with every
-     * event from that user.
-     * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return This builder for chaining. - */ - public Builder clearResetUserDataOnNewActivity() { - bitField0_ = (bitField0_ & ~0x00000004); - resetUserDataOnNewActivity_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataRetentionSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataRetentionSettings) - private static final com.google.analytics.admin.v1beta.DataRetentionSettings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataRetentionSettings(); - } - - public static com.google.analytics.admin.v1beta.DataRetentionSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataRetentionSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java deleted file mode 100644 index 5910cee6479b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataRetentionSettingsOrBuilder.java +++ /dev/null @@ -1,61 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface DataRetentionSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataRetentionSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name for this DataRetentionSetting resource.
-   * Format: properties/{property}/dataRetentionSettings
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The enum numeric value on the wire for eventDataRetention. - */ - int getEventDataRetentionValue(); - /** - *
-   * The length of time that event-level data is retained.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration event_data_retention = 2; - * @return The eventDataRetention. - */ - com.google.analytics.admin.v1beta.DataRetentionSettings.RetentionDuration getEventDataRetention(); - - /** - *
-   * If true, reset the retention period for the user identifier with every
-   * event from that user.
-   * 
- * - * bool reset_user_data_on_new_activity = 3; - * @return The resetUserDataOnNewActivity. - */ - boolean getResetUserDataOnNewActivity(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java deleted file mode 100644 index 25758543d551..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettings.java +++ /dev/null @@ -1,1024 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A resource message representing data sharing settings of a Google Analytics
- * account.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataSharingSettings} - */ -public final class DataSharingSettings extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataSharingSettings) - DataSharingSettingsOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataSharingSettings.newBuilder() to construct. - private DataSharingSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataSharingSettings() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataSharingSettings(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataSharingSettings.class, com.google.analytics.admin.v1beta.DataSharingSettings.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER = 2; - private boolean sharingWithGoogleSupportEnabled_ = false; - /** - *
-   * Allows Google support to access the data in order to help troubleshoot
-   * issues.
-   * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return The sharingWithGoogleSupportEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleSupportEnabled() { - return sharingWithGoogleSupportEnabled_; - } - - public static final int SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER = 3; - private boolean sharingWithGoogleAssignedSalesEnabled_ = false; - /** - *
-   * Allows Google sales teams that are assigned to the customer to access the
-   * data in order to suggest configuration changes to improve results.
-   * Sales team restrictions still apply when enabled.
-   * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return The sharingWithGoogleAssignedSalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAssignedSalesEnabled() { - return sharingWithGoogleAssignedSalesEnabled_; - } - - public static final int SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER = 4; - private boolean sharingWithGoogleAnySalesEnabled_ = false; - /** - *
-   * Allows any of Google sales to access the data in order to suggest
-   * configuration changes to improve results.
-   * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return The sharingWithGoogleAnySalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAnySalesEnabled() { - return sharingWithGoogleAnySalesEnabled_; - } - - public static final int SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER = 5; - private boolean sharingWithGoogleProductsEnabled_ = false; - /** - *
-   * Allows Google to use the data to improve other Google products or services.
-   * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return The sharingWithGoogleProductsEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleProductsEnabled() { - return sharingWithGoogleProductsEnabled_; - } - - public static final int SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER = 6; - private boolean sharingWithOthersEnabled_ = false; - /** - *
-   * Allows Google to share the data anonymously in aggregate form with others.
-   * 
- * - * bool sharing_with_others_enabled = 6; - * @return The sharingWithOthersEnabled. - */ - @java.lang.Override - public boolean getSharingWithOthersEnabled() { - return sharingWithOthersEnabled_; - } - - 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 (sharingWithGoogleSupportEnabled_ != false) { - output.writeBool(2, sharingWithGoogleSupportEnabled_); - } - if (sharingWithGoogleAssignedSalesEnabled_ != false) { - output.writeBool(3, sharingWithGoogleAssignedSalesEnabled_); - } - if (sharingWithGoogleAnySalesEnabled_ != false) { - output.writeBool(4, sharingWithGoogleAnySalesEnabled_); - } - if (sharingWithGoogleProductsEnabled_ != false) { - output.writeBool(5, sharingWithGoogleProductsEnabled_); - } - if (sharingWithOthersEnabled_ != false) { - output.writeBool(6, sharingWithOthersEnabled_); - } - 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 (sharingWithGoogleSupportEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(2, sharingWithGoogleSupportEnabled_); - } - if (sharingWithGoogleAssignedSalesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, sharingWithGoogleAssignedSalesEnabled_); - } - if (sharingWithGoogleAnySalesEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, sharingWithGoogleAnySalesEnabled_); - } - if (sharingWithGoogleProductsEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(5, sharingWithGoogleProductsEnabled_); - } - if (sharingWithOthersEnabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, sharingWithOthersEnabled_); - } - 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.admin.v1beta.DataSharingSettings)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DataSharingSettings other = (com.google.analytics.admin.v1beta.DataSharingSettings) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getSharingWithGoogleSupportEnabled() - != other.getSharingWithGoogleSupportEnabled()) return false; - if (getSharingWithGoogleAssignedSalesEnabled() - != other.getSharingWithGoogleAssignedSalesEnabled()) return false; - if (getSharingWithGoogleAnySalesEnabled() - != other.getSharingWithGoogleAnySalesEnabled()) return false; - if (getSharingWithGoogleProductsEnabled() - != other.getSharingWithGoogleProductsEnabled()) return false; - if (getSharingWithOthersEnabled() - != other.getSharingWithOthersEnabled()) 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) + SHARING_WITH_GOOGLE_SUPPORT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleSupportEnabled()); - hash = (37 * hash) + SHARING_WITH_GOOGLE_ASSIGNED_SALES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleAssignedSalesEnabled()); - hash = (37 * hash) + SHARING_WITH_GOOGLE_ANY_SALES_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleAnySalesEnabled()); - hash = (37 * hash) + SHARING_WITH_GOOGLE_PRODUCTS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithGoogleProductsEnabled()); - hash = (37 * hash) + SHARING_WITH_OTHERS_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getSharingWithOthersEnabled()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DataSharingSettings parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DataSharingSettings parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataSharingSettings parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DataSharingSettings prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing data sharing settings of a Google Analytics
-   * account.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataSharingSettings} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataSharingSettings) - com.google.analytics.admin.v1beta.DataSharingSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataSharingSettings.class, com.google.analytics.admin.v1beta.DataSharingSettings.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DataSharingSettings.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - sharingWithGoogleSupportEnabled_ = false; - sharingWithGoogleAssignedSalesEnabled_ = false; - sharingWithGoogleAnySalesEnabled_ = false; - sharingWithGoogleProductsEnabled_ = false; - sharingWithOthersEnabled_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataSharingSettings getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DataSharingSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataSharingSettings build() { - com.google.analytics.admin.v1beta.DataSharingSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataSharingSettings buildPartial() { - com.google.analytics.admin.v1beta.DataSharingSettings result = new com.google.analytics.admin.v1beta.DataSharingSettings(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DataSharingSettings result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.sharingWithGoogleSupportEnabled_ = sharingWithGoogleSupportEnabled_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sharingWithGoogleAssignedSalesEnabled_ = sharingWithGoogleAssignedSalesEnabled_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.sharingWithGoogleAnySalesEnabled_ = sharingWithGoogleAnySalesEnabled_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.sharingWithGoogleProductsEnabled_ = sharingWithGoogleProductsEnabled_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.sharingWithOthersEnabled_ = sharingWithOthersEnabled_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DataSharingSettings) { - return mergeFrom((com.google.analytics.admin.v1beta.DataSharingSettings)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DataSharingSettings other) { - if (other == com.google.analytics.admin.v1beta.DataSharingSettings.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getSharingWithGoogleSupportEnabled() != false) { - setSharingWithGoogleSupportEnabled(other.getSharingWithGoogleSupportEnabled()); - } - if (other.getSharingWithGoogleAssignedSalesEnabled() != false) { - setSharingWithGoogleAssignedSalesEnabled(other.getSharingWithGoogleAssignedSalesEnabled()); - } - if (other.getSharingWithGoogleAnySalesEnabled() != false) { - setSharingWithGoogleAnySalesEnabled(other.getSharingWithGoogleAnySalesEnabled()); - } - if (other.getSharingWithGoogleProductsEnabled() != false) { - setSharingWithGoogleProductsEnabled(other.getSharingWithGoogleProductsEnabled()); - } - if (other.getSharingWithOthersEnabled() != false) { - setSharingWithOthersEnabled(other.getSharingWithOthersEnabled()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - sharingWithGoogleSupportEnabled_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: { - sharingWithGoogleAssignedSalesEnabled_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: { - sharingWithGoogleAnySalesEnabled_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: { - sharingWithGoogleProductsEnabled_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 48: { - sharingWithOthersEnabled_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 48 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.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. Resource name.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean sharingWithGoogleSupportEnabled_ ; - /** - *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
-     * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return The sharingWithGoogleSupportEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleSupportEnabled() { - return sharingWithGoogleSupportEnabled_; - } - /** - *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
-     * 
- * - * bool sharing_with_google_support_enabled = 2; - * @param value The sharingWithGoogleSupportEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleSupportEnabled(boolean value) { - - sharingWithGoogleSupportEnabled_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Allows Google support to access the data in order to help troubleshoot
-     * issues.
-     * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleSupportEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); - sharingWithGoogleSupportEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithGoogleAssignedSalesEnabled_ ; - /** - *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
-     * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return The sharingWithGoogleAssignedSalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAssignedSalesEnabled() { - return sharingWithGoogleAssignedSalesEnabled_; - } - /** - *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
-     * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @param value The sharingWithGoogleAssignedSalesEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleAssignedSalesEnabled(boolean value) { - - sharingWithGoogleAssignedSalesEnabled_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Allows Google sales teams that are assigned to the customer to access the
-     * data in order to suggest configuration changes to improve results.
-     * Sales team restrictions still apply when enabled.
-     * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleAssignedSalesEnabled() { - bitField0_ = (bitField0_ & ~0x00000004); - sharingWithGoogleAssignedSalesEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithGoogleAnySalesEnabled_ ; - /** - *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
-     * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return The sharingWithGoogleAnySalesEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleAnySalesEnabled() { - return sharingWithGoogleAnySalesEnabled_; - } - /** - *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
-     * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @param value The sharingWithGoogleAnySalesEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { - - sharingWithGoogleAnySalesEnabled_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Allows any of Google sales to access the data in order to suggest
-     * configuration changes to improve results.
-     * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleAnySalesEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - sharingWithGoogleAnySalesEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithGoogleProductsEnabled_ ; - /** - *
-     * Allows Google to use the data to improve other Google products or services.
-     * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return The sharingWithGoogleProductsEnabled. - */ - @java.lang.Override - public boolean getSharingWithGoogleProductsEnabled() { - return sharingWithGoogleProductsEnabled_; - } - /** - *
-     * Allows Google to use the data to improve other Google products or services.
-     * 
- * - * bool sharing_with_google_products_enabled = 5; - * @param value The sharingWithGoogleProductsEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithGoogleProductsEnabled(boolean value) { - - sharingWithGoogleProductsEnabled_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Allows Google to use the data to improve other Google products or services.
-     * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return This builder for chaining. - */ - public Builder clearSharingWithGoogleProductsEnabled() { - bitField0_ = (bitField0_ & ~0x00000010); - sharingWithGoogleProductsEnabled_ = false; - onChanged(); - return this; - } - - private boolean sharingWithOthersEnabled_ ; - /** - *
-     * Allows Google to share the data anonymously in aggregate form with others.
-     * 
- * - * bool sharing_with_others_enabled = 6; - * @return The sharingWithOthersEnabled. - */ - @java.lang.Override - public boolean getSharingWithOthersEnabled() { - return sharingWithOthersEnabled_; - } - /** - *
-     * Allows Google to share the data anonymously in aggregate form with others.
-     * 
- * - * bool sharing_with_others_enabled = 6; - * @param value The sharingWithOthersEnabled to set. - * @return This builder for chaining. - */ - public Builder setSharingWithOthersEnabled(boolean value) { - - sharingWithOthersEnabled_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Allows Google to share the data anonymously in aggregate form with others.
-     * 
- * - * bool sharing_with_others_enabled = 6; - * @return This builder for chaining. - */ - public Builder clearSharingWithOthersEnabled() { - bitField0_ = (bitField0_ & ~0x00000020); - sharingWithOthersEnabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataSharingSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataSharingSettings) - private static final com.google.analytics.admin.v1beta.DataSharingSettings DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataSharingSettings(); - } - - public static com.google.analytics.admin.v1beta.DataSharingSettings getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSharingSettings parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataSharingSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java deleted file mode 100644 index 0f33586f1451..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataSharingSettingsOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface DataSharingSettingsOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataSharingSettings) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Allows Google support to access the data in order to help troubleshoot
-   * issues.
-   * 
- * - * bool sharing_with_google_support_enabled = 2; - * @return The sharingWithGoogleSupportEnabled. - */ - boolean getSharingWithGoogleSupportEnabled(); - - /** - *
-   * Allows Google sales teams that are assigned to the customer to access the
-   * data in order to suggest configuration changes to improve results.
-   * Sales team restrictions still apply when enabled.
-   * 
- * - * bool sharing_with_google_assigned_sales_enabled = 3; - * @return The sharingWithGoogleAssignedSalesEnabled. - */ - boolean getSharingWithGoogleAssignedSalesEnabled(); - - /** - *
-   * Allows any of Google sales to access the data in order to suggest
-   * configuration changes to improve results.
-   * 
- * - * bool sharing_with_google_any_sales_enabled = 4; - * @return The sharingWithGoogleAnySalesEnabled. - */ - boolean getSharingWithGoogleAnySalesEnabled(); - - /** - *
-   * Allows Google to use the data to improve other Google products or services.
-   * 
- * - * bool sharing_with_google_products_enabled = 5; - * @return The sharingWithGoogleProductsEnabled. - */ - boolean getSharingWithGoogleProductsEnabled(); - - /** - *
-   * Allows Google to share the data anonymously in aggregate form with others.
-   * 
- * - * bool sharing_with_others_enabled = 6; - * @return The sharingWithOthersEnabled. - */ - boolean getSharingWithOthersEnabled(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java deleted file mode 100644 index 2005fff5c4e5..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStream.java +++ /dev/null @@ -1,5000 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A resource message representing a data stream.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream} - */ -public final class DataStream extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream) - DataStreamOrBuilder { -private static final long serialVersionUID = 0L; - // Use DataStream.newBuilder() to construct. - private DataStream(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DataStream() { - name_ = ""; - type_ = 0; - displayName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DataStream(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.class, com.google.analytics.admin.v1beta.DataStream.Builder.class); - } - - /** - *
-   * The type of the data stream.
-   * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.DataStream.DataStreamType} - */ - public enum DataStreamType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-     * Type unknown or not specified.
-     * 
- * - * DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - DATA_STREAM_TYPE_UNSPECIFIED(0), - /** - *
-     * Web data stream.
-     * 
- * - * WEB_DATA_STREAM = 1; - */ - WEB_DATA_STREAM(1), - /** - *
-     * Android app data stream.
-     * 
- * - * ANDROID_APP_DATA_STREAM = 2; - */ - ANDROID_APP_DATA_STREAM(2), - /** - *
-     * iOS app data stream.
-     * 
- * - * IOS_APP_DATA_STREAM = 3; - */ - IOS_APP_DATA_STREAM(3), - UNRECOGNIZED(-1), - ; - - /** - *
-     * Type unknown or not specified.
-     * 
- * - * DATA_STREAM_TYPE_UNSPECIFIED = 0; - */ - public static final int DATA_STREAM_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-     * Web data stream.
-     * 
- * - * WEB_DATA_STREAM = 1; - */ - public static final int WEB_DATA_STREAM_VALUE = 1; - /** - *
-     * Android app data stream.
-     * 
- * - * ANDROID_APP_DATA_STREAM = 2; - */ - public static final int ANDROID_APP_DATA_STREAM_VALUE = 2; - /** - *
-     * iOS app data stream.
-     * 
- * - * IOS_APP_DATA_STREAM = 3; - */ - public static final int IOS_APP_DATA_STREAM_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static DataStreamType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static DataStreamType forNumber(int value) { - switch (value) { - case 0: return DATA_STREAM_TYPE_UNSPECIFIED; - case 1: return WEB_DATA_STREAM; - case 2: return ANDROID_APP_DATA_STREAM; - case 3: return IOS_APP_DATA_STREAM; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - DataStreamType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public DataStreamType findValueByNumber(int number) { - return DataStreamType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.DataStream.getDescriptor().getEnumTypes().get(0); - } - - private static final DataStreamType[] VALUES = values(); - - public static DataStreamType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private DataStreamType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.DataStream.DataStreamType) - } - - public interface WebStreamDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream.WebStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The measurementId. - */ - java.lang.String getMeasurementId(); - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for measurementId. - */ - com.google.protobuf.ByteString - getMeasurementIdBytes(); - - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString - getFirebaseAppIdBytes(); - - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The defaultUri. - */ - java.lang.String getDefaultUri(); - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The bytes for defaultUri. - */ - com.google.protobuf.ByteString - getDefaultUriBytes(); - } - /** - *
-   * Data specific to web streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream.WebStreamData} - */ - public static final class WebStreamData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream.WebStreamData) - WebStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use WebStreamData.newBuilder() to construct. - private WebStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private WebStreamData() { - measurementId_ = ""; - firebaseAppId_ = ""; - defaultUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new WebStreamData(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.WebStreamData.class, com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder.class); - } - - public static final int MEASUREMENT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object measurementId_ = ""; - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The measurementId. - */ - @java.lang.Override - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } - } - /** - *
-     * Output only. Analytics Measurement ID.
-     *
-     * Example: "G-1A2BCD345E"
-     * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for measurementId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object firebaseAppId_ = ""; - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - *
-     * Output only. ID of the corresponding web app in Firebase, if any.
-     * This ID can change if the web app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultUri_ = ""; - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The defaultUri. - */ - @java.lang.Override - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } - } - /** - *
-     * Domain name of the web app being measured, or empty.
-     * Example: "http://www.google.com", "https://www.google.com"
-     * 
- * - * string default_uri = 3; - * @return The bytes for defaultUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultUri_); - } - 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(measurementId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, measurementId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultUri_); - } - size += 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.admin.v1beta.DataStream.WebStreamData)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DataStream.WebStreamData other = (com.google.analytics.admin.v1beta.DataStream.WebStreamData) obj; - - if (!getMeasurementId() - .equals(other.getMeasurementId())) return false; - if (!getFirebaseAppId() - .equals(other.getFirebaseAppId())) return false; - if (!getDefaultUri() - .equals(other.getDefaultUri())) return false; - if (!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) + MEASUREMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementId().hashCode(); - hash = (37 * hash) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - hash = (37 * hash) + DEFAULT_URI_FIELD_NUMBER; - hash = (53 * hash) + getDefaultUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DataStream.WebStreamData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Data specific to web streams.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream.WebStreamData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream.WebStreamData) - com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.WebStreamData.class, com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DataStream.WebStreamData.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - measurementId_ = ""; - firebaseAppId_ = ""; - defaultUri_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamData getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamData build() { - com.google.analytics.admin.v1beta.DataStream.WebStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamData buildPartial() { - com.google.analytics.admin.v1beta.DataStream.WebStreamData result = new com.google.analytics.admin.v1beta.DataStream.WebStreamData(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DataStream.WebStreamData result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.measurementId_ = measurementId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.firebaseAppId_ = firebaseAppId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.defaultUri_ = defaultUri_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DataStream.WebStreamData) { - return mergeFrom((com.google.analytics.admin.v1beta.DataStream.WebStreamData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DataStream.WebStreamData other) { - if (other == com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance()) return this; - if (!other.getMeasurementId().isEmpty()) { - measurementId_ = other.measurementId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDefaultUri().isEmpty()) { - defaultUri_ = other.defaultUri_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - measurementId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - firebaseAppId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - defaultUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object measurementId_ = ""; - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The measurementId. - */ - public java.lang.String getMeasurementId() { - java.lang.Object ref = measurementId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - measurementId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for measurementId. - */ - public com.google.protobuf.ByteString - getMeasurementIdBytes() { - java.lang.Object ref = measurementId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - measurementId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - measurementId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearMeasurementId() { - measurementId_ = getDefaultInstance().getMeasurementId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Output only. Analytics Measurement ID.
-       *
-       * Example: "G-1A2BCD345E"
-       * 
- * - * string measurement_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for measurementId to set. - * @return This builder for chaining. - */ - public Builder setMeasurementIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - measurementId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object firebaseAppId_ = ""; - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - firebaseAppId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding web app in Firebase, if any.
-       * This ID can change if the web app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - firebaseAppId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object defaultUri_ = ""; - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @return The defaultUri. - */ - public java.lang.String getDefaultUri() { - java.lang.Object ref = defaultUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @return The bytes for defaultUri. - */ - public com.google.protobuf.ByteString - getDefaultUriBytes() { - java.lang.Object ref = defaultUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @param value The defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - defaultUri_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @return This builder for chaining. - */ - public Builder clearDefaultUri() { - defaultUri_ = getDefaultInstance().getDefaultUri(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-       * Domain name of the web app being measured, or empty.
-       * Example: "http://www.google.com", "https://www.google.com"
-       * 
- * - * string default_uri = 3; - * @param value The bytes for defaultUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - defaultUri_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream.WebStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream.WebStreamData) - private static final com.google.analytics.admin.v1beta.DataStream.WebStreamData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream.WebStreamData(); - } - - public static com.google.analytics.admin.v1beta.DataStream.WebStreamData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public WebStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface AndroidAppStreamDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString - getFirebaseAppIdBytes(); - - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The packageName. - */ - java.lang.String getPackageName(); - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for packageName. - */ - com.google.protobuf.ByteString - getPackageNameBytes(); - } - /** - *
-   * Data specific to Android app streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} - */ - public static final class AndroidAppStreamData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) - AndroidAppStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use AndroidAppStreamData.newBuilder() to construct. - private AndroidAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AndroidAppStreamData() { - firebaseAppId_ = ""; - packageName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AndroidAppStreamData(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.class, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder.class); - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object firebaseAppId_ = ""; - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - *
-     * Output only. ID of the corresponding Android app in Firebase, if any.
-     * This ID can change if the Android app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PACKAGE_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object packageName_ = ""; - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The packageName. - */ - @java.lang.Override - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } - } - /** - *
-     * Immutable. The package name for the app being measured.
-     * Example: "com.example.myandroidapp"
-     * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for packageName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packageName_); - } - 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(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, packageName_); - } - size += 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.admin.v1beta.DataStream.AndroidAppStreamData)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData other = (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) obj; - - if (!getFirebaseAppId() - .equals(other.getFirebaseAppId())) return false; - if (!getPackageName() - .equals(other.getPackageName())) 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) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - hash = (37 * hash) + PACKAGE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getPackageName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Data specific to Android app streams.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream.AndroidAppStreamData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.class, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - firebaseAppId_ = ""; - packageName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData build() { - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData buildPartial() { - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData result = new com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.firebaseAppId_ = firebaseAppId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.packageName_ = packageName_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) { - return mergeFrom((com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData other) { - if (other == com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance()) return this; - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getPackageName().isEmpty()) { - packageName_ = other.packageName_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - firebaseAppId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - packageName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object firebaseAppId_ = ""; - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding Android app in Firebase, if any.
-       * This ID can change if the Android app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object packageName_ = ""; - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The packageName. - */ - public java.lang.String getPackageName() { - java.lang.Object ref = packageName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - packageName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for packageName. - */ - public com.google.protobuf.ByteString - getPackageNameBytes() { - java.lang.Object ref = packageName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - packageName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - packageName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearPackageName() { - packageName_ = getDefaultInstance().getPackageName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Immutable. The package name for the app being measured.
-       * Example: "com.example.myandroidapp"
-       * 
- * - * string package_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for packageName to set. - * @return This builder for chaining. - */ - public Builder setPackageNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - packageName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) - private static final com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData(); - } - - public static com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AndroidAppStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface IosAppStreamDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream.IosAppStreamData) - com.google.protobuf.MessageOrBuilder { - - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - java.lang.String getFirebaseAppId(); - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - com.google.protobuf.ByteString - getFirebaseAppIdBytes(); - - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bundleId. - */ - java.lang.String getBundleId(); - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bytes for bundleId. - */ - com.google.protobuf.ByteString - getBundleIdBytes(); - } - /** - *
-   * Data specific to iOS app streams.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream.IosAppStreamData} - */ - public static final class IosAppStreamData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DataStream.IosAppStreamData) - IosAppStreamDataOrBuilder { - private static final long serialVersionUID = 0L; - // Use IosAppStreamData.newBuilder() to construct. - private IosAppStreamData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private IosAppStreamData() { - firebaseAppId_ = ""; - bundleId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new IosAppStreamData(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.class, com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder.class); - } - - public static final int FIREBASE_APP_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object firebaseAppId_ = ""; - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - @java.lang.Override - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } - } - /** - *
-     * Output only. ID of the corresponding iOS app in Firebase, if any.
-     * This ID can change if the iOS app is deleted and recreated.
-     * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BUNDLE_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object bundleId_ = ""; - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bundleId. - */ - @java.lang.Override - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } - } - /** - *
-     * Required. Immutable. The Apple App Store Bundle ID for the app
-     * Example: "com.example.myiosapp"
-     * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bytes for bundleId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bundleId_); - } - 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(firebaseAppId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, firebaseAppId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bundleId_); - } - size += 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.admin.v1beta.DataStream.IosAppStreamData)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData other = (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) obj; - - if (!getFirebaseAppId() - .equals(other.getFirebaseAppId())) return false; - if (!getBundleId() - .equals(other.getBundleId())) 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) + FIREBASE_APP_ID_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseAppId().hashCode(); - hash = (37 * hash) + BUNDLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getBundleId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DataStream.IosAppStreamData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-     * Data specific to iOS app streams.
-     * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream.IosAppStreamData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream.IosAppStreamData) - com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.class, com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - firebaseAppId_ = ""; - bundleId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData build() { - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData buildPartial() { - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData result = new com.google.analytics.admin.v1beta.DataStream.IosAppStreamData(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DataStream.IosAppStreamData result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.firebaseAppId_ = firebaseAppId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.bundleId_ = bundleId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) { - return mergeFrom((com.google.analytics.admin.v1beta.DataStream.IosAppStreamData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DataStream.IosAppStreamData other) { - if (other == com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance()) return this; - if (!other.getFirebaseAppId().isEmpty()) { - firebaseAppId_ = other.firebaseAppId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getBundleId().isEmpty()) { - bundleId_ = other.bundleId_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - firebaseAppId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - bundleId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object firebaseAppId_ = ""; - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The firebaseAppId. - */ - public java.lang.String getFirebaseAppId() { - java.lang.Object ref = firebaseAppId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - firebaseAppId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for firebaseAppId. - */ - public com.google.protobuf.ByteString - getFirebaseAppIdBytes() { - java.lang.Object ref = firebaseAppId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - firebaseAppId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearFirebaseAppId() { - firebaseAppId_ = getDefaultInstance().getFirebaseAppId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-       * Output only. ID of the corresponding iOS app in Firebase, if any.
-       * This ID can change if the iOS app is deleted and recreated.
-       * 
- * - * string firebase_app_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for firebaseAppId to set. - * @return This builder for chaining. - */ - public Builder setFirebaseAppIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - firebaseAppId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object bundleId_ = ""; - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bundleId. - */ - public java.lang.String getBundleId() { - java.lang.Object ref = bundleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bundleId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The bytes for bundleId. - */ - public com.google.protobuf.ByteString - getBundleIdBytes() { - java.lang.Object ref = bundleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - bundleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - bundleId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearBundleId() { - bundleId_ = getDefaultInstance().getBundleId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-       * Required. Immutable. The Apple App Store Bundle ID for the app
-       * Example: "com.example.myiosapp"
-       * 
- * - * string bundle_id = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for bundleId to set. - * @return This builder for chaining. - */ - public Builder setBundleIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - bundleId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream.IosAppStreamData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream.IosAppStreamData) - private static final com.google.analytics.admin.v1beta.DataStream.IosAppStreamData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream.IosAppStreamData(); - } - - public static com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public IosAppStreamData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - private int streamDataCase_ = 0; - @SuppressWarnings("serial") - private java.lang.Object streamData_; - public enum StreamDataCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - WEB_STREAM_DATA(6), - ANDROID_APP_STREAM_DATA(7), - IOS_APP_STREAM_DATA(8), - STREAMDATA_NOT_SET(0); - private final int value; - private StreamDataCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static StreamDataCase valueOf(int value) { - return forNumber(value); - } - - public static StreamDataCase forNumber(int value) { - switch (value) { - case 6: return WEB_STREAM_DATA; - case 7: return ANDROID_APP_STREAM_DATA; - case 8: return IOS_APP_STREAM_DATA; - case 0: return STREAMDATA_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public StreamDataCase - getStreamDataCase() { - return StreamDataCase.forNumber( - streamDataCase_); - } - - public static final int WEB_STREAM_DATA_FIELD_NUMBER = 6; - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return Whether the webStreamData field is set. - */ - @java.lang.Override - public boolean hasWebStreamData() { - return streamDataCase_ == 6; - } - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return The webStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamData getWebStreamData() { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); - } - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder() { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); - } - - public static final int ANDROID_APP_STREAM_DATA_FIELD_NUMBER = 7; - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return Whether the androidAppStreamData field is set. - */ - @java.lang.Override - public boolean hasAndroidAppStreamData() { - return streamDataCase_ == 7; - } - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return The androidAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData getAndroidAppStreamData() { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder getAndroidAppStreamDataOrBuilder() { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - - public static final int IOS_APP_STREAM_DATA_FIELD_NUMBER = 8; - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return Whether the iosAppStreamData field is set. - */ - @java.lang.Override - public boolean hasIosAppStreamData() { - return streamDataCase_ == 8; - } - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return The iosAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppStreamData() { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); - } - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder getIosAppStreamDataOrBuilder() { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - private int type_ = 0; - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The type. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.DataStream.DataStreamType getType() { - com.google.analytics.admin.v1beta.DataStream.DataStreamType result = com.google.analytics.admin.v1beta.DataStream.DataStreamType.forNumber(type_); - return result == null ? com.google.analytics.admin.v1beta.DataStream.DataStreamType.UNRECOGNIZED : result; - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != com.google.analytics.admin.v1beta.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); - } - if (createTime_ != null) { - output.writeMessage(4, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(5, getUpdateTime()); - } - if (streamDataCase_ == 6) { - output.writeMessage(6, (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_); - } - if (streamDataCase_ == 7) { - output.writeMessage(7, (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_); - } - if (streamDataCase_ == 8) { - output.writeMessage(8, (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_); - } - 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 (type_ != com.google.analytics.admin.v1beta.DataStream.DataStreamType.DATA_STREAM_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, type_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getUpdateTime()); - } - if (streamDataCase_ == 6) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_); - } - if (streamDataCase_ == 7) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_); - } - if (streamDataCase_ == 8) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_); - } - 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.admin.v1beta.DataStream)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DataStream other = (com.google.analytics.admin.v1beta.DataStream) obj; - - if (!getName() - .equals(other.getName())) return false; - if (type_ != other.type_) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getStreamDataCase().equals(other.getStreamDataCase())) return false; - switch (streamDataCase_) { - case 6: - if (!getWebStreamData() - .equals(other.getWebStreamData())) return false; - break; - case 7: - if (!getAndroidAppStreamData() - .equals(other.getAndroidAppStreamData())) return false; - break; - case 8: - if (!getIosAppStreamData() - .equals(other.getIosAppStreamData())) return false; - break; - case 0: - default: - } - if (!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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - switch (streamDataCase_) { - case 6: - hash = (37 * hash) + WEB_STREAM_DATA_FIELD_NUMBER; - hash = (53 * hash) + getWebStreamData().hashCode(); - break; - case 7: - hash = (37 * hash) + ANDROID_APP_STREAM_DATA_FIELD_NUMBER; - hash = (53 * hash) + getAndroidAppStreamData().hashCode(); - break; - case 8: - hash = (37 * hash) + IOS_APP_STREAM_DATA_FIELD_NUMBER; - hash = (53 * hash) + getIosAppStreamData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DataStream parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DataStream parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DataStream parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DataStream prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a data stream.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DataStream} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DataStream) - com.google.analytics.admin.v1beta.DataStreamOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DataStream.class, com.google.analytics.admin.v1beta.DataStream.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DataStream.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (webStreamDataBuilder_ != null) { - webStreamDataBuilder_.clear(); - } - if (androidAppStreamDataBuilder_ != null) { - androidAppStreamDataBuilder_.clear(); - } - if (iosAppStreamDataBuilder_ != null) { - iosAppStreamDataBuilder_.clear(); - } - name_ = ""; - type_ = 0; - displayName_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - streamDataCase_ = 0; - streamData_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_DataStream_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DataStream.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream build() { - com.google.analytics.admin.v1beta.DataStream result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream buildPartial() { - com.google.analytics.admin.v1beta.DataStream result = new com.google.analytics.admin.v1beta.DataStream(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DataStream result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - } - - private void buildPartialOneofs(com.google.analytics.admin.v1beta.DataStream result) { - result.streamDataCase_ = streamDataCase_; - result.streamData_ = this.streamData_; - if (streamDataCase_ == 6 && - webStreamDataBuilder_ != null) { - result.streamData_ = webStreamDataBuilder_.build(); - } - if (streamDataCase_ == 7 && - androidAppStreamDataBuilder_ != null) { - result.streamData_ = androidAppStreamDataBuilder_.build(); - } - if (streamDataCase_ == 8 && - iosAppStreamDataBuilder_ != null) { - result.streamData_ = iosAppStreamDataBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DataStream) { - return mergeFrom((com.google.analytics.admin.v1beta.DataStream)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DataStream other) { - if (other == com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - switch (other.getStreamDataCase()) { - case WEB_STREAM_DATA: { - mergeWebStreamData(other.getWebStreamData()); - break; - } - case ANDROID_APP_STREAM_DATA: { - mergeAndroidAppStreamData(other.getAndroidAppStreamData()); - break; - } - case IOS_APP_STREAM_DATA: { - mergeIosAppStreamData(other.getIosAppStreamData()); - break; - } - case STREAMDATA_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 10 - case 16: { - type_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 16 - case 26: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 26 - case 34: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 42: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000080; - break; - } // case 42 - case 50: { - input.readMessage( - getWebStreamDataFieldBuilder().getBuilder(), - extensionRegistry); - streamDataCase_ = 6; - break; - } // case 50 - case 58: { - input.readMessage( - getAndroidAppStreamDataFieldBuilder().getBuilder(), - extensionRegistry); - streamDataCase_ = 7; - break; - } // case 58 - case 66: { - input.readMessage( - getIosAppStreamDataFieldBuilder().getBuilder(), - extensionRegistry); - streamDataCase_ = 8; - break; - } // case 66 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int streamDataCase_ = 0; - private java.lang.Object streamData_; - public StreamDataCase - getStreamDataCase() { - return StreamDataCase.forNumber( - streamDataCase_); - } - - public Builder clearStreamData() { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.WebStreamData, com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder> webStreamDataBuilder_; - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return Whether the webStreamData field is set. - */ - @java.lang.Override - public boolean hasWebStreamData() { - return streamDataCase_ == 6; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return The webStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamData getWebStreamData() { - if (webStreamDataBuilder_ == null) { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); - } else { - if (streamDataCase_ == 6) { - return webStreamDataBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder setWebStreamData(com.google.analytics.admin.v1beta.DataStream.WebStreamData value) { - if (webStreamDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamData_ = value; - onChanged(); - } else { - webStreamDataBuilder_.setMessage(value); - } - streamDataCase_ = 6; - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder setWebStreamData( - com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder builderForValue) { - if (webStreamDataBuilder_ == null) { - streamData_ = builderForValue.build(); - onChanged(); - } else { - webStreamDataBuilder_.setMessage(builderForValue.build()); - } - streamDataCase_ = 6; - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder mergeWebStreamData(com.google.analytics.admin.v1beta.DataStream.WebStreamData value) { - if (webStreamDataBuilder_ == null) { - if (streamDataCase_ == 6 && - streamData_ != com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance()) { - streamData_ = com.google.analytics.admin.v1beta.DataStream.WebStreamData.newBuilder((com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_) - .mergeFrom(value).buildPartial(); - } else { - streamData_ = value; - } - onChanged(); - } else { - if (streamDataCase_ == 6) { - webStreamDataBuilder_.mergeFrom(value); - } else { - webStreamDataBuilder_.setMessage(value); - } - } - streamDataCase_ = 6; - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - public Builder clearWebStreamData() { - if (webStreamDataBuilder_ == null) { - if (streamDataCase_ == 6) { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - } - } else { - if (streamDataCase_ == 6) { - streamDataCase_ = 0; - streamData_ = null; - } - webStreamDataBuilder_.clear(); - } - return this; - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - public com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder getWebStreamDataBuilder() { - return getWebStreamDataFieldBuilder().getBuilder(); - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder() { - if ((streamDataCase_ == 6) && (webStreamDataBuilder_ != null)) { - return webStreamDataBuilder_.getMessageOrBuilder(); - } else { - if (streamDataCase_ == 6) { - return (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to web streams. Must be populated if type is
-     * WEB_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.WebStreamData, com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder> - getWebStreamDataFieldBuilder() { - if (webStreamDataBuilder_ == null) { - if (!(streamDataCase_ == 6)) { - streamData_ = com.google.analytics.admin.v1beta.DataStream.WebStreamData.getDefaultInstance(); - } - webStreamDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.WebStreamData, com.google.analytics.admin.v1beta.DataStream.WebStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder>( - (com.google.analytics.admin.v1beta.DataStream.WebStreamData) streamData_, - getParentForChildren(), - isClean()); - streamData_ = null; - } - streamDataCase_ = 6; - onChanged(); - return webStreamDataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder> androidAppStreamDataBuilder_; - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return Whether the androidAppStreamData field is set. - */ - @java.lang.Override - public boolean hasAndroidAppStreamData() { - return streamDataCase_ == 7; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return The androidAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData getAndroidAppStreamData() { - if (androidAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); - } else { - if (streamDataCase_ == 7) { - return androidAppStreamDataBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder setAndroidAppStreamData(com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData value) { - if (androidAppStreamDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamData_ = value; - onChanged(); - } else { - androidAppStreamDataBuilder_.setMessage(value); - } - streamDataCase_ = 7; - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder setAndroidAppStreamData( - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder builderForValue) { - if (androidAppStreamDataBuilder_ == null) { - streamData_ = builderForValue.build(); - onChanged(); - } else { - androidAppStreamDataBuilder_.setMessage(builderForValue.build()); - } - streamDataCase_ = 7; - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder mergeAndroidAppStreamData(com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData value) { - if (androidAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 7 && - streamData_ != com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance()) { - streamData_ = com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.newBuilder((com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_) - .mergeFrom(value).buildPartial(); - } else { - streamData_ = value; - } - onChanged(); - } else { - if (streamDataCase_ == 7) { - androidAppStreamDataBuilder_.mergeFrom(value); - } else { - androidAppStreamDataBuilder_.setMessage(value); - } - } - streamDataCase_ = 7; - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public Builder clearAndroidAppStreamData() { - if (androidAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 7) { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - } - } else { - if (streamDataCase_ == 7) { - streamDataCase_ = 0; - streamData_ = null; - } - androidAppStreamDataBuilder_.clear(); - } - return this; - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder getAndroidAppStreamDataBuilder() { - return getAndroidAppStreamDataFieldBuilder().getBuilder(); - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder getAndroidAppStreamDataOrBuilder() { - if ((streamDataCase_ == 7) && (androidAppStreamDataBuilder_ != null)) { - return androidAppStreamDataBuilder_.getMessageOrBuilder(); - } else { - if (streamDataCase_ == 7) { - return (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to Android app streams. Must be populated if type is
-     * ANDROID_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder> - getAndroidAppStreamDataFieldBuilder() { - if (androidAppStreamDataBuilder_ == null) { - if (!(streamDataCase_ == 7)) { - streamData_ = com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.getDefaultInstance(); - } - androidAppStreamDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder>( - (com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData) streamData_, - getParentForChildren(), - isClean()); - streamData_ = null; - } - streamDataCase_ = 7; - onChanged(); - return androidAppStreamDataBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData, com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder> iosAppStreamDataBuilder_; - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return Whether the iosAppStreamData field is set. - */ - @java.lang.Override - public boolean hasIosAppStreamData() { - return streamDataCase_ == 8; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return The iosAppStreamData. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppStreamData() { - if (iosAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); - } else { - if (streamDataCase_ == 8) { - return iosAppStreamDataBuilder_.getMessage(); - } - return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder setIosAppStreamData(com.google.analytics.admin.v1beta.DataStream.IosAppStreamData value) { - if (iosAppStreamDataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - streamData_ = value; - onChanged(); - } else { - iosAppStreamDataBuilder_.setMessage(value); - } - streamDataCase_ = 8; - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder setIosAppStreamData( - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder builderForValue) { - if (iosAppStreamDataBuilder_ == null) { - streamData_ = builderForValue.build(); - onChanged(); - } else { - iosAppStreamDataBuilder_.setMessage(builderForValue.build()); - } - streamDataCase_ = 8; - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder mergeIosAppStreamData(com.google.analytics.admin.v1beta.DataStream.IosAppStreamData value) { - if (iosAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 8 && - streamData_ != com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance()) { - streamData_ = com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.newBuilder((com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_) - .mergeFrom(value).buildPartial(); - } else { - streamData_ = value; - } - onChanged(); - } else { - if (streamDataCase_ == 8) { - iosAppStreamDataBuilder_.mergeFrom(value); - } else { - iosAppStreamDataBuilder_.setMessage(value); - } - } - streamDataCase_ = 8; - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public Builder clearIosAppStreamData() { - if (iosAppStreamDataBuilder_ == null) { - if (streamDataCase_ == 8) { - streamDataCase_ = 0; - streamData_ = null; - onChanged(); - } - } else { - if (streamDataCase_ == 8) { - streamDataCase_ = 0; - streamData_ = null; - } - iosAppStreamDataBuilder_.clear(); - } - return this; - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder getIosAppStreamDataBuilder() { - return getIosAppStreamDataFieldBuilder().getBuilder(); - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder getIosAppStreamDataOrBuilder() { - if ((streamDataCase_ == 8) && (iosAppStreamDataBuilder_ != null)) { - return iosAppStreamDataBuilder_.getMessageOrBuilder(); - } else { - if (streamDataCase_ == 8) { - return (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_; - } - return com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); - } - } - /** - *
-     * Data specific to iOS app streams. Must be populated if type is
-     * IOS_APP_DATA_STREAM.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData, com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder> - getIosAppStreamDataFieldBuilder() { - if (iosAppStreamDataBuilder_ == null) { - if (!(streamDataCase_ == 8)) { - streamData_ = com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.getDefaultInstance(); - } - iosAppStreamDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData, com.google.analytics.admin.v1beta.DataStream.IosAppStreamData.Builder, com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder>( - (com.google.analytics.admin.v1beta.DataStream.IosAppStreamData) streamData_, - getParentForChildren(), - isClean()); - streamData_ = null; - } - streamDataCase_ = 8; - onChanged(); - return iosAppStreamDataBuilder_; - } - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this Data Stream.
-     * Format: properties/{property_id}/dataStreams/{stream_id}
-     * Example: "properties/1000/dataStreams/2000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private int type_ = 0; - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override public int getTypeValue() { - return type_; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - type_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The type. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream.DataStreamType getType() { - com.google.analytics.admin.v1beta.DataStream.DataStreamType result = com.google.analytics.admin.v1beta.DataStream.DataStreamType.forNumber(type_); - return result == null ? com.google.analytics.admin.v1beta.DataStream.DataStreamType.UNRECOGNIZED : result; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.admin.v1beta.DataStream.DataStreamType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Required. Immutable. The type of this DataStream resource.
-     * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000010); - type_ = 0; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - *
-     * Human-readable display name for the Data Stream.
-     *
-     * Required for web data streams.
-     *
-     * The max allowed display name length is 255 UTF-16 code units.
-     * 
- * - * string display_name = 3; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000040); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this stream was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000080) != 0); - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000080); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000080; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when stream payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DataStream) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DataStream) - private static final com.google.analytics.admin.v1beta.DataStream DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DataStream(); - } - - public static com.google.analytics.admin.v1beta.DataStream getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataStream parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java deleted file mode 100644 index 2a7b5b6b882f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DataStreamOrBuilder.java +++ /dev/null @@ -1,226 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface DataStreamOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DataStream) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return Whether the webStreamData field is set. - */ - boolean hasWebStreamData(); - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - * @return The webStreamData. - */ - com.google.analytics.admin.v1beta.DataStream.WebStreamData getWebStreamData(); - /** - *
-   * Data specific to web streams. Must be populated if type is
-   * WEB_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.WebStreamData web_stream_data = 6; - */ - com.google.analytics.admin.v1beta.DataStream.WebStreamDataOrBuilder getWebStreamDataOrBuilder(); - - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return Whether the androidAppStreamData field is set. - */ - boolean hasAndroidAppStreamData(); - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - * @return The androidAppStreamData. - */ - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamData getAndroidAppStreamData(); - /** - *
-   * Data specific to Android app streams. Must be populated if type is
-   * ANDROID_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.AndroidAppStreamData android_app_stream_data = 7; - */ - com.google.analytics.admin.v1beta.DataStream.AndroidAppStreamDataOrBuilder getAndroidAppStreamDataOrBuilder(); - - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return Whether the iosAppStreamData field is set. - */ - boolean hasIosAppStreamData(); - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - * @return The iosAppStreamData. - */ - com.google.analytics.admin.v1beta.DataStream.IosAppStreamData getIosAppStreamData(); - /** - *
-   * Data specific to iOS app streams. Must be populated if type is
-   * IOS_APP_DATA_STREAM.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.IosAppStreamData ios_app_stream_data = 8; - */ - com.google.analytics.admin.v1beta.DataStream.IosAppStreamDataOrBuilder getIosAppStreamDataOrBuilder(); - - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this Data Stream.
-   * Format: properties/{property_id}/dataStreams/{stream_id}
-   * Example: "properties/1000/dataStreams/2000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - *
-   * Required. Immutable. The type of this DataStream resource.
-   * 
- * - * .google.analytics.admin.v1beta.DataStream.DataStreamType type = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED]; - * @return The type. - */ - com.google.analytics.admin.v1beta.DataStream.DataStreamType getType(); - - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Human-readable display name for the Data Stream.
-   *
-   * Required for web data streams.
-   *
-   * The max allowed display name length is 255 UTF-16 code units.
-   * 
- * - * string display_name = 3; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this stream was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when stream payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - com.google.analytics.admin.v1beta.DataStream.StreamDataCase getStreamDataCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java deleted file mode 100644 index 44e4921bd58a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for DeleteAccount RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteAccountRequest} - */ -public final class DeleteAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteAccountRequest) - DeleteAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteAccountRequest.newBuilder() to construct. - private DeleteAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteAccountRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteAccountRequest.class, com.google.analytics.admin.v1beta.DeleteAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.DeleteAccountRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DeleteAccountRequest other = (com.google.analytics.admin.v1beta.DeleteAccountRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DeleteAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteAccount RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteAccountRequest) - com.google.analytics.admin.v1beta.DeleteAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteAccountRequest.class, com.google.analytics.admin.v1beta.DeleteAccountRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DeleteAccountRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteAccountRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DeleteAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteAccountRequest build() { - com.google.analytics.admin.v1beta.DeleteAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteAccountRequest buildPartial() { - com.google.analytics.admin.v1beta.DeleteAccountRequest result = new com.google.analytics.admin.v1beta.DeleteAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DeleteAccountRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DeleteAccountRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.DeleteAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteAccountRequest other) { - if (other == com.google.analytics.admin.v1beta.DeleteAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Account to soft-delete.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.DeleteAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteAccountRequest) - private static final com.google.analytics.admin.v1beta.DeleteAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteAccountRequest(); - } - - public static com.google.analytics.admin.v1beta.DeleteAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java deleted file mode 100644 index 20cfff233a21..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteAccountRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface DeleteAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Account to soft-delete.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java deleted file mode 100644 index 49536a7f98b0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for DeleteConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteConversionEventRequest} - */ -public final class DeleteConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteConversionEventRequest) - DeleteConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteConversionEventRequest.newBuilder() to construct. - private DeleteConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteConversionEventRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteConversionEventRequest.class, com.google.analytics.admin.v1beta.DeleteConversionEventRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.DeleteConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DeleteConversionEventRequest other = (com.google.analytics.admin.v1beta.DeleteConversionEventRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DeleteConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteConversionEventRequest) - com.google.analytics.admin.v1beta.DeleteConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteConversionEventRequest.class, com.google.analytics.admin.v1beta.DeleteConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DeleteConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DeleteConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteConversionEventRequest build() { - com.google.analytics.admin.v1beta.DeleteConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteConversionEventRequest buildPartial() { - com.google.analytics.admin.v1beta.DeleteConversionEventRequest result = new com.google.analytics.admin.v1beta.DeleteConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DeleteConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DeleteConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.DeleteConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteConversionEventRequest other) { - if (other == com.google.analytics.admin.v1beta.DeleteConversionEventRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to delete.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.DeleteConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteConversionEventRequest) - private static final com.google.analytics.admin.v1beta.DeleteConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteConversionEventRequest(); - } - - public static com.google.analytics.admin.v1beta.DeleteConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java deleted file mode 100644 index f7e750ef6920..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface DeleteConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the conversion event to delete.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java deleted file mode 100644 index 5a62fb675e10..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for DeleteDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteDataStreamRequest} - */ -public final class DeleteDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteDataStreamRequest) - DeleteDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteDataStreamRequest.newBuilder() to construct. - private DeleteDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteDataStreamRequest.class, com.google.analytics.admin.v1beta.DeleteDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.DeleteDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DeleteDataStreamRequest other = (com.google.analytics.admin.v1beta.DeleteDataStreamRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DeleteDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteDataStreamRequest) - com.google.analytics.admin.v1beta.DeleteDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteDataStreamRequest.class, com.google.analytics.admin.v1beta.DeleteDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DeleteDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DeleteDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteDataStreamRequest build() { - com.google.analytics.admin.v1beta.DeleteDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteDataStreamRequest buildPartial() { - com.google.analytics.admin.v1beta.DeleteDataStreamRequest result = new com.google.analytics.admin.v1beta.DeleteDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DeleteDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DeleteDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.DeleteDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteDataStreamRequest other) { - if (other == com.google.analytics.admin.v1beta.DeleteDataStreamRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to delete.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @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; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.DeleteDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteDataStreamRequest) - private static final com.google.analytics.admin.v1beta.DeleteDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteDataStreamRequest(); - } - - public static com.google.analytics.admin.v1beta.DeleteDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java deleted file mode 100644 index c7ffb2703cce..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface DeleteDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DataStream to delete.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java deleted file mode 100644 index cbb7cf6d3b7b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for DeleteFirebaseLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} - */ -public final class DeleteFirebaseLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) - DeleteFirebaseLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteFirebaseLinkRequest.newBuilder() to construct. - private DeleteFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteFirebaseLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteFirebaseLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.class, com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.DeleteFirebaseLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest other = (com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteFirebaseLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteFirebaseLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.class, com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteFirebaseLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest build() { - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest buildPartial() { - com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest result = new com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest other) { - if (other == com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-     * Example: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.DeleteFirebaseLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) - private static final com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest(); - } - - public static com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteFirebaseLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteFirebaseLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java deleted file mode 100644 index 3b8cd011092e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteFirebaseLinkRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface DeleteFirebaseLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteFirebaseLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id}
-   * Example: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java deleted file mode 100644 index a6638eeee221..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequest.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for DeleteGoogleAdsLink RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} - */ -public final class DeleteGoogleAdsLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) - DeleteGoogleAdsLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteGoogleAdsLinkRequest.newBuilder() to construct. - private DeleteGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteGoogleAdsLinkRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteGoogleAdsLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.class, com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.DeleteGoogleAdsLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest other = (com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteGoogleAdsLink RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.class, com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest build() { - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest buildPartial() { - com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest result = new com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest other) { - if (other == com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234/googleAdsLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.DeleteGoogleAdsLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) - private static final com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest(); - } - - public static com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteGoogleAdsLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 1ffcbfad88eb..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface DeleteGoogleAdsLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteGoogleAdsLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. Example format: properties/1234/googleAdsLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java deleted file mode 100644 index 20292ef0f607..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for DeleteMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} - */ -public final class DeleteMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) - DeleteMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteMeasurementProtocolSecretRequest.newBuilder() to construct. - private DeleteMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteMeasurementProtocolSecretRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.DeleteMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeleteMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the MeasurementProtocolSecret to delete.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.DeleteMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index 2477b686f2f7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeleteMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface DeleteMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeleteMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the MeasurementProtocolSecret to delete.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java deleted file mode 100644 index c73b00c47f25..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for DeleteProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeletePropertyRequest} - */ -public final class DeletePropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.DeletePropertyRequest) - DeletePropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeletePropertyRequest.newBuilder() to construct. - private DeletePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeletePropertyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeletePropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeletePropertyRequest.class, com.google.analytics.admin.v1beta.DeletePropertyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.DeletePropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.DeletePropertyRequest other = (com.google.analytics.admin.v1beta.DeletePropertyRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.DeletePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.DeletePropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for DeleteProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.DeletePropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.DeletePropertyRequest) - com.google.analytics.admin.v1beta.DeletePropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.DeletePropertyRequest.class, com.google.analytics.admin.v1beta.DeletePropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.DeletePropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_DeletePropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeletePropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.DeletePropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeletePropertyRequest build() { - com.google.analytics.admin.v1beta.DeletePropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeletePropertyRequest buildPartial() { - com.google.analytics.admin.v1beta.DeletePropertyRequest result = new com.google.analytics.admin.v1beta.DeletePropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.DeletePropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.DeletePropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.DeletePropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.DeletePropertyRequest other) { - if (other == com.google.analytics.admin.v1beta.DeletePropertyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the Property to soft-delete.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.DeletePropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.DeletePropertyRequest) - private static final com.google.analytics.admin.v1beta.DeletePropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.DeletePropertyRequest(); - } - - public static com.google.analytics.admin.v1beta.DeletePropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.DeletePropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java deleted file mode 100644 index eaa84c19360c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/DeletePropertyRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface DeletePropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.DeletePropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the Property to soft-delete.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java deleted file mode 100644 index 32c15ca25adf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLink.java +++ /dev/null @@ -1,1012 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A link between a GA4 property and a Firebase project.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.FirebaseLink} - */ -public final class FirebaseLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.FirebaseLink) - FirebaseLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use FirebaseLink.newBuilder() to construct. - private FirebaseLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private FirebaseLink() { - name_ = ""; - project_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new FirebaseLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.FirebaseLink.class, com.google.analytics.admin.v1beta.FirebaseLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object project_ = ""; - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - @java.lang.Override - public java.lang.String getProject() { - java.lang.Object ref = project_; - 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(); - project_ = s; - return s; - } - } - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - 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(project_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - 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(project_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - 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.admin.v1beta.FirebaseLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.FirebaseLink other = (com.google.analytics.admin.v1beta.FirebaseLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.FirebaseLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.FirebaseLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.FirebaseLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.FirebaseLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 property and a Firebase project.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.FirebaseLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.FirebaseLink) - com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.FirebaseLink.class, com.google.analytics.admin.v1beta.FirebaseLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.FirebaseLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - project_ = ""; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink build() { - com.google.analytics.admin.v1beta.FirebaseLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink buildPartial() { - com.google.analytics.admin.v1beta.FirebaseLink result = new com.google.analytics.admin.v1beta.FirebaseLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.FirebaseLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.project_ = project_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.FirebaseLink) { - return mergeFrom((com.google.analytics.admin.v1beta.FirebaseLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.FirebaseLink other) { - if (other == com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getProject().isEmpty()) { - project_ = other.project_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.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. Example format: properties/1234/firebaseLinks/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - public java.lang.String getProject() { - java.lang.Object ref = project_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - project_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - public com.google.protobuf.ByteString - getProjectBytes() { - java.lang.Object ref = project_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - project_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The project to set. - * @return This builder for chaining. - */ - public Builder setProject( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - project_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearProject() { - project_ = getDefaultInstance().getProject(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. Firebase project resource name. When creating a FirebaseLink,
-     * you may provide this resource name using either a project number or project
-     * ID. Once this resource has been created, returned FirebaseLinks will always
-     * have a project_name that contains a project number.
-     *
-     * Format: 'projects/{project number}'
-     * Example: 'projects/1234'
-     * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for project to set. - * @return This builder for chaining. - */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - project_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this FirebaseLink was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.FirebaseLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.FirebaseLink) - private static final com.google.analytics.admin.v1beta.FirebaseLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.FirebaseLink(); - } - - public static com.google.analytics.admin.v1beta.FirebaseLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FirebaseLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java deleted file mode 100644 index 9c1bdecabd9e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/FirebaseLinkOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface FirebaseLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.FirebaseLink) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The project. - */ - java.lang.String getProject(); - /** - *
-   * Immutable. Firebase project resource name. When creating a FirebaseLink,
-   * you may provide this resource name using either a project number or project
-   * ID. Once this resource has been created, returned FirebaseLinks will always
-   * have a project_name that contains a project number.
-   *
-   * Format: 'projects/{project number}'
-   * Example: 'projects/1234'
-   * 
- * - * string project = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for project. - */ - com.google.protobuf.ByteString - getProjectBytes(); - - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this FirebaseLink was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java deleted file mode 100644 index 4597886d3d7f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetAccount RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetAccountRequest} - */ -public final class GetAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetAccountRequest) - GetAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetAccountRequest.newBuilder() to construct. - private GetAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetAccountRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetAccountRequest.class, com.google.analytics.admin.v1beta.GetAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetAccountRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetAccountRequest other = (com.google.analytics.admin.v1beta.GetAccountRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetAccount RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetAccountRequest) - com.google.analytics.admin.v1beta.GetAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetAccountRequest.class, com.google.analytics.admin.v1beta.GetAccountRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetAccountRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetAccountRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetAccountRequest build() { - com.google.analytics.admin.v1beta.GetAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetAccountRequest buildPartial() { - com.google.analytics.admin.v1beta.GetAccountRequest result = new com.google.analytics.admin.v1beta.GetAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetAccountRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetAccountRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetAccountRequest other) { - if (other == com.google.analytics.admin.v1beta.GetAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the account to lookup.
-     * Format: accounts/{account}
-     * Example: "accounts/100"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetAccountRequest) - private static final com.google.analytics.admin.v1beta.GetAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetAccountRequest(); - } - - public static com.google.analytics.admin.v1beta.GetAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java deleted file mode 100644 index 76dec26c5de2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetAccountRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the account to lookup.
-   * Format: accounts/{account}
-   * Example: "accounts/100"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java deleted file mode 100644 index 78f6e9f2dfcf..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetConversionEventRequest} - */ -public final class GetConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetConversionEventRequest) - GetConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetConversionEventRequest.newBuilder() to construct. - private GetConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetConversionEventRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetConversionEventRequest.class, com.google.analytics.admin.v1beta.GetConversionEventRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetConversionEventRequest other = (com.google.analytics.admin.v1beta.GetConversionEventRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetConversionEventRequest) - com.google.analytics.admin.v1beta.GetConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetConversionEventRequest.class, com.google.analytics.admin.v1beta.GetConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetConversionEventRequest build() { - com.google.analytics.admin.v1beta.GetConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetConversionEventRequest buildPartial() { - com.google.analytics.admin.v1beta.GetConversionEventRequest result = new com.google.analytics.admin.v1beta.GetConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetConversionEventRequest other) { - if (other == com.google.analytics.admin.v1beta.GetConversionEventRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the conversion event to retrieve.
-     * Format: properties/{property}/conversionEvents/{conversion_event}
-     * Example: "properties/123/conversionEvents/456"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetConversionEventRequest) - private static final com.google.analytics.admin.v1beta.GetConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetConversionEventRequest(); - } - - public static com.google.analytics.admin.v1beta.GetConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java deleted file mode 100644 index 0ca49b0a771f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The resource name of the conversion event to retrieve.
-   * Format: properties/{property}/conversionEvents/{conversion_event}
-   * Example: "properties/123/conversionEvents/456"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java deleted file mode 100644 index 11f6c1f25b3a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetCustomDimensionRequest} - */ -public final class GetCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetCustomDimensionRequest) - GetCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetCustomDimensionRequest.newBuilder() to construct. - private GetCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetCustomDimensionRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetCustomDimensionRequest.class, com.google.analytics.admin.v1beta.GetCustomDimensionRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetCustomDimensionRequest other = (com.google.analytics.admin.v1beta.GetCustomDimensionRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetCustomDimensionRequest) - com.google.analytics.admin.v1beta.GetCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetCustomDimensionRequest.class, com.google.analytics.admin.v1beta.GetCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomDimensionRequest build() { - com.google.analytics.admin.v1beta.GetCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1beta.GetCustomDimensionRequest result = new com.google.analytics.admin.v1beta.GetCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1beta.GetCustomDimensionRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomDimension to get.
-     * Example format: properties/1234/customDimensions/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetCustomDimensionRequest) - private static final com.google.analytics.admin.v1beta.GetCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1beta.GetCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 94a2ac02e74d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomDimension to get.
-   * Example format: properties/1234/customDimensions/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java deleted file mode 100644 index f2465b5c8b4d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetCustomMetricRequest} - */ -public final class GetCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetCustomMetricRequest) - GetCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetCustomMetricRequest.newBuilder() to construct. - private GetCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetCustomMetricRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetCustomMetricRequest.class, com.google.analytics.admin.v1beta.GetCustomMetricRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetCustomMetricRequest other = (com.google.analytics.admin.v1beta.GetCustomMetricRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetCustomMetricRequest) - com.google.analytics.admin.v1beta.GetCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetCustomMetricRequest.class, com.google.analytics.admin.v1beta.GetCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomMetricRequest build() { - com.google.analytics.admin.v1beta.GetCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1beta.GetCustomMetricRequest result = new com.google.analytics.admin.v1beta.GetCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1beta.GetCustomMetricRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the CustomMetric to get.
-     * Example format: properties/1234/customMetrics/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetCustomMetricRequest) - private static final com.google.analytics.admin.v1beta.GetCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1beta.GetCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java deleted file mode 100644 index 5e3f96e3e8dd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the CustomMetric to get.
-   * Example format: properties/1234/customMetrics/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java deleted file mode 100644 index 8a36393be38f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequest.java +++ /dev/null @@ -1,598 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetDataRetentionSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} - */ -public final class GetDataRetentionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) - GetDataRetentionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDataRetentionSettingsRequest.newBuilder() to construct. - private GetDataRetentionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataRetentionSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDataRetentionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.class, com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetDataRetentionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest other = (com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDataRetentionSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetDataRetentionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.class, com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest build() { - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest buildPartial() { - com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest result = new com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest other) { - if (other == com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format:
-     * properties/{property}/dataRetentionSettings
-     * Example: "properties/1000/dataRetentionSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetDataRetentionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) - private static final com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest(); - } - - public static com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataRetentionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataRetentionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index 1b84faa01607..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetDataRetentionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetDataRetentionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the settings to lookup.
-   * Format:
-   * properties/{property}/dataRetentionSettings
-   * Example: "properties/1000/dataRetentionSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java deleted file mode 100644 index 7d180827dd26..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetDataSharingSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetDataSharingSettingsRequest} - */ -public final class GetDataSharingSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) - GetDataSharingSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDataSharingSettingsRequest.newBuilder() to construct. - private GetDataSharingSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataSharingSettingsRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDataSharingSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.class, com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetDataSharingSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest other = (com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDataSharingSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetDataSharingSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.class, com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataSharingSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest build() { - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest buildPartial() { - com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest result = new com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest other) { - if (other == com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the settings to lookup.
-     * Format: accounts/{account}/dataSharingSettings
-     * Example: "accounts/1000/dataSharingSettings"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetDataSharingSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) - private static final com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest(); - } - - public static com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataSharingSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataSharingSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java deleted file mode 100644 index 41e1d9655ece..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataSharingSettingsRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetDataSharingSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetDataSharingSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the settings to lookup.
-   * Format: accounts/{account}/dataSharingSettings
-   * Example: "accounts/1000/dataSharingSettings"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java deleted file mode 100644 index 964e3032d5fa..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequest.java +++ /dev/null @@ -1,584 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetDataStreamRequest} - */ -public final class GetDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetDataStreamRequest) - GetDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetDataStreamRequest.newBuilder() to construct. - private GetDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetDataStreamRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetDataStreamRequest.class, com.google.analytics.admin.v1beta.GetDataStreamRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetDataStreamRequest other = (com.google.analytics.admin.v1beta.GetDataStreamRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetDataStreamRequest) - com.google.analytics.admin.v1beta.GetDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetDataStreamRequest.class, com.google.analytics.admin.v1beta.GetDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataStreamRequest build() { - com.google.analytics.admin.v1beta.GetDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataStreamRequest buildPartial() { - com.google.analytics.admin.v1beta.GetDataStreamRequest result = new com.google.analytics.admin.v1beta.GetDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetDataStreamRequest other) { - if (other == com.google.analytics.admin.v1beta.GetDataStreamRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the DataStream to get.
-     * Example format: properties/1234/dataStreams/5678
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetDataStreamRequest) - private static final com.google.analytics.admin.v1beta.GetDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetDataStreamRequest(); - } - - public static com.google.analytics.admin.v1beta.GetDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java deleted file mode 100644 index 7aeee8b2ff0f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,31 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the DataStream to get.
-   * Example format: properties/1234/dataStreams/5678
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java deleted file mode 100644 index f13d56bd014e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetMeasurementProtocolSecret RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} - */ -public final class GetMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) - GetMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetMeasurementProtocolSecretRequest.newBuilder() to construct. - private GetMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetMeasurementProtocolSecretRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetMeasurementProtocolSecret RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the measurement protocol secret to lookup.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index 29a992dbe343..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the measurement protocol secret to lookup.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java deleted file mode 100644 index f99518bab424..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequest.java +++ /dev/null @@ -1,591 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for GetProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetPropertyRequest} - */ -public final class GetPropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GetPropertyRequest) - GetPropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetPropertyRequest.newBuilder() to construct. - private GetPropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetPropertyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetPropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetPropertyRequest.class, com.google.analytics.admin.v1beta.GetPropertyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - 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_); - } - 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.admin.v1beta.GetPropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GetPropertyRequest other = (com.google.analytics.admin.v1beta.GetPropertyRequest) obj; - - if (!getName() - .equals(other.getName())) 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GetPropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GetPropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for GetProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GetPropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GetPropertyRequest) - com.google.analytics.admin.v1beta.GetPropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetPropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GetPropertyRequest.class, com.google.analytics.admin.v1beta.GetPropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GetPropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_GetPropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetPropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GetPropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetPropertyRequest build() { - com.google.analytics.admin.v1beta.GetPropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetPropertyRequest buildPartial() { - com.google.analytics.admin.v1beta.GetPropertyRequest result = new com.google.analytics.admin.v1beta.GetPropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GetPropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GetPropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.GetPropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GetPropertyRequest other) { - if (other == com.google.analytics.admin.v1beta.GetPropertyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The name of the property to lookup.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - 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.admin.v1beta.GetPropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GetPropertyRequest) - private static final com.google.analytics.admin.v1beta.GetPropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GetPropertyRequest(); - } - - public static com.google.analytics.admin.v1beta.GetPropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GetPropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java deleted file mode 100644 index 24140fc992d3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GetPropertyRequestOrBuilder.java +++ /dev/null @@ -1,33 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface GetPropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GetPropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the property to lookup.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java deleted file mode 100644 index 89f9380fe342..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLink.java +++ /dev/null @@ -1,1739 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A link between a GA4 property and a Google Ads account.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GoogleAdsLink} - */ -public final class GoogleAdsLink extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.GoogleAdsLink) - GoogleAdsLinkOrBuilder { -private static final long serialVersionUID = 0L; - // Use GoogleAdsLink.newBuilder() to construct. - private GoogleAdsLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GoogleAdsLink() { - name_ = ""; - customerId_ = ""; - creatorEmailAddress_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GoogleAdsLink(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GoogleAdsLink.class, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CUSTOMER_ID_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object customerId_ = ""; - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The customerId. - */ - @java.lang.Override - public java.lang.String getCustomerId() { - java.lang.Object ref = customerId_; - 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(); - customerId_ = s; - return s; - } - } - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for customerId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCustomerIdBytes() { - java.lang.Object ref = customerId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - customerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CAN_MANAGE_CLIENTS_FIELD_NUMBER = 4; - private boolean canManageClients_ = false; - /** - *
-   * Output only. If true, this link is for a Google Ads manager account.
-   * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The canManageClients. - */ - @java.lang.Override - public boolean getCanManageClients() { - return canManageClients_; - } - - public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 5; - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return Whether the adsPersonalizationEnabled field is set. - */ - @java.lang.Override - public boolean hasAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ != null; - } - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return The adsPersonalizationEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 8; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object creatorEmailAddress_ = ""; - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The creatorEmailAddress. - */ - @java.lang.Override - public java.lang.String getCreatorEmailAddress() { - java.lang.Object ref = creatorEmailAddress_; - 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(); - creatorEmailAddress_ = s; - return s; - } - } - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for creatorEmailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCreatorEmailAddressBytes() { - java.lang.Object ref = creatorEmailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creatorEmailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerId_); - } - if (canManageClients_ != false) { - output.writeBool(4, canManageClients_); - } - if (adsPersonalizationEnabled_ != null) { - output.writeMessage(5, getAdsPersonalizationEnabled()); - } - if (createTime_ != null) { - output.writeMessage(7, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(8, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, creatorEmailAddress_); - } - 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(customerId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerId_); - } - if (canManageClients_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, canManageClients_); - } - if (adsPersonalizationEnabled_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getAdsPersonalizationEnabled()); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, creatorEmailAddress_); - } - 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.admin.v1beta.GoogleAdsLink)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.GoogleAdsLink other = (com.google.analytics.admin.v1beta.GoogleAdsLink) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getCustomerId() - .equals(other.getCustomerId())) return false; - if (getCanManageClients() - != other.getCanManageClients()) return false; - if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; - if (hasAdsPersonalizationEnabled()) { - if (!getAdsPersonalizationEnabled() - .equals(other.getAdsPersonalizationEnabled())) return false; - } - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getCreatorEmailAddress() - .equals(other.getCreatorEmailAddress())) 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) + CUSTOMER_ID_FIELD_NUMBER; - hash = (53 * hash) + getCustomerId().hashCode(); - hash = (37 * hash) + CAN_MANAGE_CLIENTS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getCanManageClients()); - if (hasAdsPersonalizationEnabled()) { - hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); - } - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + CREATOR_EMAIL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getCreatorEmailAddress().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.GoogleAdsLink parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.GoogleAdsLink prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A link between a GA4 property and a Google Ads account.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.GoogleAdsLink} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.GoogleAdsLink) - com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.GoogleAdsLink.class, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.GoogleAdsLink.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - customerId_ = ""; - canManageClients_ = false; - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - creatorEmailAddress_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink build() { - com.google.analytics.admin.v1beta.GoogleAdsLink result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink buildPartial() { - com.google.analytics.admin.v1beta.GoogleAdsLink result = new com.google.analytics.admin.v1beta.GoogleAdsLink(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.GoogleAdsLink result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.customerId_ = customerId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.canManageClients_ = canManageClients_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_ == null - ? adsPersonalizationEnabled_ - : adsPersonalizationEnabledBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.creatorEmailAddress_ = creatorEmailAddress_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.GoogleAdsLink) { - return mergeFrom((com.google.analytics.admin.v1beta.GoogleAdsLink)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.GoogleAdsLink other) { - if (other == com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getCustomerId().isEmpty()) { - customerId_ = other.customerId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getCanManageClients() != false) { - setCanManageClients(other.getCanManageClients()); - } - if (other.hasAdsPersonalizationEnabled()) { - mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getCreatorEmailAddress().isEmpty()) { - creatorEmailAddress_ = other.creatorEmailAddress_; - bitField0_ |= 0x00000040; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: { - customerId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 32: { - canManageClients_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 32 - case 42: { - input.readMessage( - getAdsPersonalizationEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 42 - case 58: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 66: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 66 - case 74: { - creatorEmailAddress_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.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. Format:
-     * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-     *
-     * Note: googleAdsLinkId is not the Google Ads customer ID.
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object customerId_ = ""; - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The customerId. - */ - public java.lang.String getCustomerId() { - java.lang.Object ref = customerId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - customerId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for customerId. - */ - public com.google.protobuf.ByteString - getCustomerIdBytes() { - java.lang.Object ref = customerId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - customerId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The customerId to set. - * @return This builder for chaining. - */ - public Builder setCustomerId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - customerId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearCustomerId() { - customerId_ = getDefaultInstance().getCustomerId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Immutable. Google Ads customer ID.
-     * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for customerId to set. - * @return This builder for chaining. - */ - public Builder setCustomerIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - customerId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean canManageClients_ ; - /** - *
-     * Output only. If true, this link is for a Google Ads manager account.
-     * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The canManageClients. - */ - @java.lang.Override - public boolean getCanManageClients() { - return canManageClients_; - } - /** - *
-     * Output only. If true, this link is for a Google Ads manager account.
-     * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The canManageClients to set. - * @return This builder for chaining. - */ - public Builder setCanManageClients(boolean value) { - - canManageClients_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. If true, this link is for a Google Ads manager account.
-     * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCanManageClients() { - bitField0_ = (bitField0_ & ~0x00000004); - canManageClients_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.BoolValue adsPersonalizationEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> adsPersonalizationEnabledBuilder_; - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return Whether the adsPersonalizationEnabled field is set. - */ - public boolean hasAdsPersonalizationEnabled() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return The adsPersonalizationEnabled. - */ - public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { - if (adsPersonalizationEnabledBuilder_ == null) { - return adsPersonalizationEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } else { - return adsPersonalizationEnabledBuilder_.getMessage(); - } - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - adsPersonalizationEnabled_ = value; - } else { - adsPersonalizationEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder setAdsPersonalizationEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabled_ = builderForValue.build(); - } else { - adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { - if (adsPersonalizationEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - adsPersonalizationEnabled_ != null && - adsPersonalizationEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getAdsPersonalizationEnabledBuilder().mergeFrom(value); - } else { - adsPersonalizationEnabled_ = value; - } - } else { - adsPersonalizationEnabledBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public Builder clearAdsPersonalizationEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - adsPersonalizationEnabled_ = null; - if (adsPersonalizationEnabledBuilder_ != null) { - adsPersonalizationEnabledBuilder_.dispose(); - adsPersonalizationEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { - if (adsPersonalizationEnabledBuilder_ != null) { - return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); - } else { - return adsPersonalizationEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : adsPersonalizationEnabled_; - } - } - /** - *
-     * Enable personalized advertising features with this integration.
-     * Automatically publish my Google Analytics audience lists and Google
-     * Analytics remarketing events/parameters to the linked Google Ads account.
-     * If this field is not set on create/update, it will be defaulted to true.
-     * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getAdsPersonalizationEnabledFieldBuilder() { - if (adsPersonalizationEnabledBuilder_ == null) { - adsPersonalizationEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getAdsPersonalizationEnabled(), - getParentForChildren(), - isClean()); - adsPersonalizationEnabled_ = null; - } - return adsPersonalizationEnabledBuilder_; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000010); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when this link was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000020); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when this link was last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object creatorEmailAddress_ = ""; - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The creatorEmailAddress. - */ - public java.lang.String getCreatorEmailAddress() { - java.lang.Object ref = creatorEmailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - creatorEmailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for creatorEmailAddress. - */ - public com.google.protobuf.ByteString - getCreatorEmailAddressBytes() { - java.lang.Object ref = creatorEmailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - creatorEmailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The creatorEmailAddress to set. - * @return This builder for chaining. - */ - public Builder setCreatorEmailAddress( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - creatorEmailAddress_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearCreatorEmailAddress() { - creatorEmailAddress_ = getDefaultInstance().getCreatorEmailAddress(); - bitField0_ = (bitField0_ & ~0x00000040); - onChanged(); - return this; - } - /** - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for creatorEmailAddress to set. - * @return This builder for chaining. - */ - public Builder setCreatorEmailAddressBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - creatorEmailAddress_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.GoogleAdsLink) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.GoogleAdsLink) - private static final com.google.analytics.admin.v1beta.GoogleAdsLink DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.GoogleAdsLink(); - } - - public static com.google.analytics.admin.v1beta.GoogleAdsLink getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GoogleAdsLink parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java deleted file mode 100644 index f9609c019ba0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/GoogleAdsLinkOrBuilder.java +++ /dev/null @@ -1,177 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface GoogleAdsLinkOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.GoogleAdsLink) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Format:
-   * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
-   *
-   * Note: googleAdsLinkId is not the Google Ads customer ID.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The customerId. - */ - java.lang.String getCustomerId(); - /** - *
-   * Immutable. Google Ads customer ID.
-   * 
- * - * string customer_id = 3 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for customerId. - */ - com.google.protobuf.ByteString - getCustomerIdBytes(); - - /** - *
-   * Output only. If true, this link is for a Google Ads manager account.
-   * 
- * - * bool can_manage_clients = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The canManageClients. - */ - boolean getCanManageClients(); - - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return Whether the adsPersonalizationEnabled field is set. - */ - boolean hasAdsPersonalizationEnabled(); - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - * @return The adsPersonalizationEnabled. - */ - com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); - /** - *
-   * Enable personalized advertising features with this integration.
-   * Automatically publish my Google Analytics audience lists and Google
-   * Analytics remarketing events/parameters to the linked Google Ads account.
-   * If this field is not set on create/update, it will be defaulted to true.
-   * 
- * - * .google.protobuf.BoolValue ads_personalization_enabled = 5; - */ - com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); - - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when this link was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when this link was last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The creatorEmailAddress. - */ - java.lang.String getCreatorEmailAddress(); - /** - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for creatorEmailAddress. - */ - com.google.protobuf.ByteString - getCreatorEmailAddressBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java deleted file mode 100644 index 329f51e1315d..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/IndustryCategory.java +++ /dev/null @@ -1,558 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The category selected for this property, used for industry benchmarking.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.IndustryCategory} - */ -public enum IndustryCategory - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Industry category unspecified
-   * 
- * - * INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - INDUSTRY_CATEGORY_UNSPECIFIED(0), - /** - *
-   * Automotive
-   * 
- * - * AUTOMOTIVE = 1; - */ - AUTOMOTIVE(1), - /** - *
-   * Business and industrial markets
-   * 
- * - * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - BUSINESS_AND_INDUSTRIAL_MARKETS(2), - /** - *
-   * Finance
-   * 
- * - * FINANCE = 3; - */ - FINANCE(3), - /** - *
-   * Healthcare
-   * 
- * - * HEALTHCARE = 4; - */ - HEALTHCARE(4), - /** - *
-   * Technology
-   * 
- * - * TECHNOLOGY = 5; - */ - TECHNOLOGY(5), - /** - *
-   * Travel
-   * 
- * - * TRAVEL = 6; - */ - TRAVEL(6), - /** - *
-   * Other
-   * 
- * - * OTHER = 7; - */ - OTHER(7), - /** - *
-   * Arts and entertainment
-   * 
- * - * ARTS_AND_ENTERTAINMENT = 8; - */ - ARTS_AND_ENTERTAINMENT(8), - /** - *
-   * Beauty and fitness
-   * 
- * - * BEAUTY_AND_FITNESS = 9; - */ - BEAUTY_AND_FITNESS(9), - /** - *
-   * Books and literature
-   * 
- * - * BOOKS_AND_LITERATURE = 10; - */ - BOOKS_AND_LITERATURE(10), - /** - *
-   * Food and drink
-   * 
- * - * FOOD_AND_DRINK = 11; - */ - FOOD_AND_DRINK(11), - /** - *
-   * Games
-   * 
- * - * GAMES = 12; - */ - GAMES(12), - /** - *
-   * Hobbies and leisure
-   * 
- * - * HOBBIES_AND_LEISURE = 13; - */ - HOBBIES_AND_LEISURE(13), - /** - *
-   * Home and garden
-   * 
- * - * HOME_AND_GARDEN = 14; - */ - HOME_AND_GARDEN(14), - /** - *
-   * Internet and telecom
-   * 
- * - * INTERNET_AND_TELECOM = 15; - */ - INTERNET_AND_TELECOM(15), - /** - *
-   * Law and government
-   * 
- * - * LAW_AND_GOVERNMENT = 16; - */ - LAW_AND_GOVERNMENT(16), - /** - *
-   * News
-   * 
- * - * NEWS = 17; - */ - NEWS(17), - /** - *
-   * Online communities
-   * 
- * - * ONLINE_COMMUNITIES = 18; - */ - ONLINE_COMMUNITIES(18), - /** - *
-   * People and society
-   * 
- * - * PEOPLE_AND_SOCIETY = 19; - */ - PEOPLE_AND_SOCIETY(19), - /** - *
-   * Pets and animals
-   * 
- * - * PETS_AND_ANIMALS = 20; - */ - PETS_AND_ANIMALS(20), - /** - *
-   * Real estate
-   * 
- * - * REAL_ESTATE = 21; - */ - REAL_ESTATE(21), - /** - *
-   * Reference
-   * 
- * - * REFERENCE = 22; - */ - REFERENCE(22), - /** - *
-   * Science
-   * 
- * - * SCIENCE = 23; - */ - SCIENCE(23), - /** - *
-   * Sports
-   * 
- * - * SPORTS = 24; - */ - SPORTS(24), - /** - *
-   * Jobs and education
-   * 
- * - * JOBS_AND_EDUCATION = 25; - */ - JOBS_AND_EDUCATION(25), - /** - *
-   * Shopping
-   * 
- * - * SHOPPING = 26; - */ - SHOPPING(26), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Industry category unspecified
-   * 
- * - * INDUSTRY_CATEGORY_UNSPECIFIED = 0; - */ - public static final int INDUSTRY_CATEGORY_UNSPECIFIED_VALUE = 0; - /** - *
-   * Automotive
-   * 
- * - * AUTOMOTIVE = 1; - */ - public static final int AUTOMOTIVE_VALUE = 1; - /** - *
-   * Business and industrial markets
-   * 
- * - * BUSINESS_AND_INDUSTRIAL_MARKETS = 2; - */ - public static final int BUSINESS_AND_INDUSTRIAL_MARKETS_VALUE = 2; - /** - *
-   * Finance
-   * 
- * - * FINANCE = 3; - */ - public static final int FINANCE_VALUE = 3; - /** - *
-   * Healthcare
-   * 
- * - * HEALTHCARE = 4; - */ - public static final int HEALTHCARE_VALUE = 4; - /** - *
-   * Technology
-   * 
- * - * TECHNOLOGY = 5; - */ - public static final int TECHNOLOGY_VALUE = 5; - /** - *
-   * Travel
-   * 
- * - * TRAVEL = 6; - */ - public static final int TRAVEL_VALUE = 6; - /** - *
-   * Other
-   * 
- * - * OTHER = 7; - */ - public static final int OTHER_VALUE = 7; - /** - *
-   * Arts and entertainment
-   * 
- * - * ARTS_AND_ENTERTAINMENT = 8; - */ - public static final int ARTS_AND_ENTERTAINMENT_VALUE = 8; - /** - *
-   * Beauty and fitness
-   * 
- * - * BEAUTY_AND_FITNESS = 9; - */ - public static final int BEAUTY_AND_FITNESS_VALUE = 9; - /** - *
-   * Books and literature
-   * 
- * - * BOOKS_AND_LITERATURE = 10; - */ - public static final int BOOKS_AND_LITERATURE_VALUE = 10; - /** - *
-   * Food and drink
-   * 
- * - * FOOD_AND_DRINK = 11; - */ - public static final int FOOD_AND_DRINK_VALUE = 11; - /** - *
-   * Games
-   * 
- * - * GAMES = 12; - */ - public static final int GAMES_VALUE = 12; - /** - *
-   * Hobbies and leisure
-   * 
- * - * HOBBIES_AND_LEISURE = 13; - */ - public static final int HOBBIES_AND_LEISURE_VALUE = 13; - /** - *
-   * Home and garden
-   * 
- * - * HOME_AND_GARDEN = 14; - */ - public static final int HOME_AND_GARDEN_VALUE = 14; - /** - *
-   * Internet and telecom
-   * 
- * - * INTERNET_AND_TELECOM = 15; - */ - public static final int INTERNET_AND_TELECOM_VALUE = 15; - /** - *
-   * Law and government
-   * 
- * - * LAW_AND_GOVERNMENT = 16; - */ - public static final int LAW_AND_GOVERNMENT_VALUE = 16; - /** - *
-   * News
-   * 
- * - * NEWS = 17; - */ - public static final int NEWS_VALUE = 17; - /** - *
-   * Online communities
-   * 
- * - * ONLINE_COMMUNITIES = 18; - */ - public static final int ONLINE_COMMUNITIES_VALUE = 18; - /** - *
-   * People and society
-   * 
- * - * PEOPLE_AND_SOCIETY = 19; - */ - public static final int PEOPLE_AND_SOCIETY_VALUE = 19; - /** - *
-   * Pets and animals
-   * 
- * - * PETS_AND_ANIMALS = 20; - */ - public static final int PETS_AND_ANIMALS_VALUE = 20; - /** - *
-   * Real estate
-   * 
- * - * REAL_ESTATE = 21; - */ - public static final int REAL_ESTATE_VALUE = 21; - /** - *
-   * Reference
-   * 
- * - * REFERENCE = 22; - */ - public static final int REFERENCE_VALUE = 22; - /** - *
-   * Science
-   * 
- * - * SCIENCE = 23; - */ - public static final int SCIENCE_VALUE = 23; - /** - *
-   * Sports
-   * 
- * - * SPORTS = 24; - */ - public static final int SPORTS_VALUE = 24; - /** - *
-   * Jobs and education
-   * 
- * - * JOBS_AND_EDUCATION = 25; - */ - public static final int JOBS_AND_EDUCATION_VALUE = 25; - /** - *
-   * Shopping
-   * 
- * - * SHOPPING = 26; - */ - public static final int SHOPPING_VALUE = 26; - - - 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 IndustryCategory 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 IndustryCategory forNumber(int value) { - switch (value) { - case 0: return INDUSTRY_CATEGORY_UNSPECIFIED; - case 1: return AUTOMOTIVE; - case 2: return BUSINESS_AND_INDUSTRIAL_MARKETS; - case 3: return FINANCE; - case 4: return HEALTHCARE; - case 5: return TECHNOLOGY; - case 6: return TRAVEL; - case 7: return OTHER; - case 8: return ARTS_AND_ENTERTAINMENT; - case 9: return BEAUTY_AND_FITNESS; - case 10: return BOOKS_AND_LITERATURE; - case 11: return FOOD_AND_DRINK; - case 12: return GAMES; - case 13: return HOBBIES_AND_LEISURE; - case 14: return HOME_AND_GARDEN; - case 15: return INTERNET_AND_TELECOM; - case 16: return LAW_AND_GOVERNMENT; - case 17: return NEWS; - case 18: return ONLINE_COMMUNITIES; - case 19: return PEOPLE_AND_SOCIETY; - case 20: return PETS_AND_ANIMALS; - case 21: return REAL_ESTATE; - case 22: return REFERENCE; - case 23: return SCIENCE; - case 24: return SPORTS; - case 25: return JOBS_AND_EDUCATION; - case 26: return SHOPPING; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - IndustryCategory> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public IndustryCategory findValueByNumber(int number) { - return IndustryCategory.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(0); - } - - private static final IndustryCategory[] VALUES = values(); - - public static IndustryCategory valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private IndustryCategory(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.IndustryCategory) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java deleted file mode 100644 index 4617e97bc661..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequest.java +++ /dev/null @@ -1,692 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListAccountSummaries RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesRequest} - */ -public final class ListAccountSummariesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountSummariesRequest) - ListAccountSummariesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountSummariesRequest.newBuilder() to construct. - private ListAccountSummariesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountSummariesRequest() { - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountSummariesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountSummariesRequest.class, com.google.analytics.admin.v1beta.ListAccountSummariesRequest.Builder.class); - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 1; - private int pageSize_ = 0; - /** - *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (pageSize_ != 0) { - output.writeInt32(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); - } - 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.admin.v1beta.ListAccountSummariesRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListAccountSummariesRequest other = (com.google.analytics.admin.v1beta.ListAccountSummariesRequest) obj; - - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListAccountSummariesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAccountSummaries RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountSummariesRequest) - com.google.analytics.admin.v1beta.ListAccountSummariesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountSummariesRequest.class, com.google.analytics.admin.v1beta.ListAccountSummariesRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListAccountSummariesRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListAccountSummariesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesRequest build() { - com.google.analytics.admin.v1beta.ListAccountSummariesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesRequest buildPartial() { - com.google.analytics.admin.v1beta.ListAccountSummariesRequest result = new com.google.analytics.admin.v1beta.ListAccountSummariesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListAccountSummariesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListAccountSummariesRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListAccountSummariesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountSummariesRequest other) { - if (other == com.google.analytics.admin.v1beta.ListAccountSummariesRequest.getDefaultInstance()) return this; - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int pageSize_ ; - /** - *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000001); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountSummariesRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountSummariesRequest) - private static final com.google.analytics.admin.v1beta.ListAccountSummariesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountSummariesRequest(); - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountSummariesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java deleted file mode 100644 index 116cd44e530f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesRequestOrBuilder.java +++ /dev/null @@ -1,48 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListAccountSummariesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountSummariesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java deleted file mode 100644 index 1ca25d0514f2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListAccountSummaries RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesResponse} - */ -public final class ListAccountSummariesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountSummariesResponse) - ListAccountSummariesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountSummariesResponse.newBuilder() to construct. - private ListAccountSummariesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountSummariesResponse() { - accountSummaries_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountSummariesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountSummariesResponse.class, com.google.analytics.admin.v1beta.ListAccountSummariesResponse.Builder.class); - } - - public static final int ACCOUNT_SUMMARIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accountSummaries_; - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public java.util.List getAccountSummariesList() { - return accountSummaries_; - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public java.util.List - getAccountSummariesOrBuilderList() { - return accountSummaries_; - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public int getAccountSummariesCount() { - return accountSummaries_.size(); - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountSummary getAccountSummaries(int index) { - return accountSummaries_.get(index); - } - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountSummaryOrBuilder getAccountSummariesOrBuilder( - int index) { - return accountSummaries_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accountSummaries_.size(); i++) { - output.writeMessage(1, accountSummaries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accountSummaries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accountSummaries_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListAccountSummariesResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListAccountSummariesResponse other = (com.google.analytics.admin.v1beta.ListAccountSummariesResponse) obj; - - if (!getAccountSummariesList() - .equals(other.getAccountSummariesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getAccountSummariesCount() > 0) { - hash = (37 * hash) + ACCOUNT_SUMMARIES_FIELD_NUMBER; - hash = (53 * hash) + getAccountSummariesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListAccountSummariesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListAccountSummaries RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountSummariesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountSummariesResponse) - com.google.analytics.admin.v1beta.ListAccountSummariesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountSummariesResponse.class, com.google.analytics.admin.v1beta.ListAccountSummariesResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListAccountSummariesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accountSummariesBuilder_ == null) { - accountSummaries_ = java.util.Collections.emptyList(); - } else { - accountSummaries_ = null; - accountSummariesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountSummariesResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListAccountSummariesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesResponse build() { - com.google.analytics.admin.v1beta.ListAccountSummariesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesResponse buildPartial() { - com.google.analytics.admin.v1beta.ListAccountSummariesResponse result = new com.google.analytics.admin.v1beta.ListAccountSummariesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListAccountSummariesResponse result) { - if (accountSummariesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accountSummaries_ = java.util.Collections.unmodifiableList(accountSummaries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accountSummaries_ = accountSummaries_; - } else { - result.accountSummaries_ = accountSummariesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListAccountSummariesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListAccountSummariesResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListAccountSummariesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountSummariesResponse other) { - if (other == com.google.analytics.admin.v1beta.ListAccountSummariesResponse.getDefaultInstance()) return this; - if (accountSummariesBuilder_ == null) { - if (!other.accountSummaries_.isEmpty()) { - if (accountSummaries_.isEmpty()) { - accountSummaries_ = other.accountSummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountSummariesIsMutable(); - accountSummaries_.addAll(other.accountSummaries_); - } - onChanged(); - } - } else { - if (!other.accountSummaries_.isEmpty()) { - if (accountSummariesBuilder_.isEmpty()) { - accountSummariesBuilder_.dispose(); - accountSummariesBuilder_ = null; - accountSummaries_ = other.accountSummaries_; - bitField0_ = (bitField0_ & ~0x00000001); - accountSummariesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountSummariesFieldBuilder() : null; - } else { - accountSummariesBuilder_.addAllMessages(other.accountSummaries_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.AccountSummary m = - input.readMessage( - com.google.analytics.admin.v1beta.AccountSummary.parser(), - extensionRegistry); - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.add(m); - } else { - accountSummariesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accountSummaries_ = - java.util.Collections.emptyList(); - private void ensureAccountSummariesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accountSummaries_ = new java.util.ArrayList(accountSummaries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccountSummary, com.google.analytics.admin.v1beta.AccountSummary.Builder, com.google.analytics.admin.v1beta.AccountSummaryOrBuilder> accountSummariesBuilder_; - - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public java.util.List getAccountSummariesList() { - if (accountSummariesBuilder_ == null) { - return java.util.Collections.unmodifiableList(accountSummaries_); - } else { - return accountSummariesBuilder_.getMessageList(); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public int getAccountSummariesCount() { - if (accountSummariesBuilder_ == null) { - return accountSummaries_.size(); - } else { - return accountSummariesBuilder_.getCount(); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1beta.AccountSummary getAccountSummaries(int index) { - if (accountSummariesBuilder_ == null) { - return accountSummaries_.get(index); - } else { - return accountSummariesBuilder_.getMessage(index); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder setAccountSummaries( - int index, com.google.analytics.admin.v1beta.AccountSummary value) { - if (accountSummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountSummariesIsMutable(); - accountSummaries_.set(index, value); - onChanged(); - } else { - accountSummariesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder setAccountSummaries( - int index, com.google.analytics.admin.v1beta.AccountSummary.Builder builderForValue) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.set(index, builderForValue.build()); - onChanged(); - } else { - accountSummariesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries(com.google.analytics.admin.v1beta.AccountSummary value) { - if (accountSummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountSummariesIsMutable(); - accountSummaries_.add(value); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries( - int index, com.google.analytics.admin.v1beta.AccountSummary value) { - if (accountSummariesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountSummariesIsMutable(); - accountSummaries_.add(index, value); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries( - com.google.analytics.admin.v1beta.AccountSummary.Builder builderForValue) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.add(builderForValue.build()); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder addAccountSummaries( - int index, com.google.analytics.admin.v1beta.AccountSummary.Builder builderForValue) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.add(index, builderForValue.build()); - onChanged(); - } else { - accountSummariesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder addAllAccountSummaries( - java.lang.Iterable values) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accountSummaries_); - onChanged(); - } else { - accountSummariesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder clearAccountSummaries() { - if (accountSummariesBuilder_ == null) { - accountSummaries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountSummariesBuilder_.clear(); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public Builder removeAccountSummaries(int index) { - if (accountSummariesBuilder_ == null) { - ensureAccountSummariesIsMutable(); - accountSummaries_.remove(index); - onChanged(); - } else { - accountSummariesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1beta.AccountSummary.Builder getAccountSummariesBuilder( - int index) { - return getAccountSummariesFieldBuilder().getBuilder(index); - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1beta.AccountSummaryOrBuilder getAccountSummariesOrBuilder( - int index) { - if (accountSummariesBuilder_ == null) { - return accountSummaries_.get(index); } else { - return accountSummariesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public java.util.List - getAccountSummariesOrBuilderList() { - if (accountSummariesBuilder_ != null) { - return accountSummariesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accountSummaries_); - } - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1beta.AccountSummary.Builder addAccountSummariesBuilder() { - return getAccountSummariesFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance()); - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public com.google.analytics.admin.v1beta.AccountSummary.Builder addAccountSummariesBuilder( - int index) { - return getAccountSummariesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccountSummary.getDefaultInstance()); - } - /** - *
-     * Account summaries of all accounts the caller has access to.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - public java.util.List - getAccountSummariesBuilderList() { - return getAccountSummariesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccountSummary, com.google.analytics.admin.v1beta.AccountSummary.Builder, com.google.analytics.admin.v1beta.AccountSummaryOrBuilder> - getAccountSummariesFieldBuilder() { - if (accountSummariesBuilder_ == null) { - accountSummariesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccountSummary, com.google.analytics.admin.v1beta.AccountSummary.Builder, com.google.analytics.admin.v1beta.AccountSummaryOrBuilder>( - accountSummaries_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accountSummaries_ = null; - } - return accountSummariesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountSummariesResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountSummariesResponse) - private static final com.google.analytics.admin.v1beta.ListAccountSummariesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountSummariesResponse(); - } - - public static com.google.analytics.admin.v1beta.ListAccountSummariesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountSummariesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountSummariesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java deleted file mode 100644 index be2bff6f5018..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountSummariesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListAccountSummariesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountSummariesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - java.util.List - getAccountSummariesList(); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - com.google.analytics.admin.v1beta.AccountSummary getAccountSummaries(int index); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - int getAccountSummariesCount(); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - java.util.List - getAccountSummariesOrBuilderList(); - /** - *
-   * Account summaries of all accounts the caller has access to.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccountSummary account_summaries = 1; - */ - com.google.analytics.admin.v1beta.AccountSummaryOrBuilder getAccountSummariesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java deleted file mode 100644 index 2106de5860a8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequest.java +++ /dev/null @@ -1,783 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListAccounts RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsRequest} - */ -public final class ListAccountsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountsRequest) - ListAccountsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountsRequest.newBuilder() to construct. - private ListAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountsRequest() { - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountsRequest.class, com.google.analytics.admin.v1beta.ListAccountsRequest.Builder.class); - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 1; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHOW_DELETED_FIELD_NUMBER = 3; - private boolean showDeleted_ = false; - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Accounts in the
-   * results. Accounts can be inspected to determine whether they are deleted or
-   * not.
-   * 
- * - * bool show_deleted = 3; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - - 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 (pageSize_ != 0) { - output.writeInt32(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); - } - if (showDeleted_ != false) { - output.writeBool(3, showDeleted_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(1, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); - } - if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(3, showDeleted_); - } - 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.admin.v1beta.ListAccountsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListAccountsRequest other = (com.google.analytics.admin.v1beta.ListAccountsRequest) obj; - - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) 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) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListAccountsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAccounts RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountsRequest) - com.google.analytics.admin.v1beta.ListAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountsRequest.class, com.google.analytics.admin.v1beta.ListAccountsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListAccountsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - pageSize_ = 0; - pageToken_ = ""; - showDeleted_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListAccountsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsRequest build() { - com.google.analytics.admin.v1beta.ListAccountsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsRequest buildPartial() { - com.google.analytics.admin.v1beta.ListAccountsRequest result = new com.google.analytics.admin.v1beta.ListAccountsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListAccountsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.showDeleted_ = showDeleted_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListAccountsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListAccountsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountsRequest other) { - if (other == com.google.analytics.admin.v1beta.ListAccountsRequest.getDefaultInstance()) return this; - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getShowDeleted() != false) { - setShowDeleted(other.getShowDeleted()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - showDeleted_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 1; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000001); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListAccounts` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccounts` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 2; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean showDeleted_ ; - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Accounts in the
-     * results. Accounts can be inspected to determine whether they are deleted or
-     * not.
-     * 
- * - * bool show_deleted = 3; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Accounts in the
-     * results. Accounts can be inspected to determine whether they are deleted or
-     * not.
-     * 
- * - * bool show_deleted = 3; - * @param value The showDeleted to set. - * @return This builder for chaining. - */ - public Builder setShowDeleted(boolean value) { - - showDeleted_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Accounts in the
-     * results. Accounts can be inspected to determine whether they are deleted or
-     * not.
-     * 
- * - * bool show_deleted = 3; - * @return This builder for chaining. - */ - public Builder clearShowDeleted() { - bitField0_ = (bitField0_ & ~0x00000004); - showDeleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountsRequest) - private static final com.google.analytics.admin.v1beta.ListAccountsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountsRequest(); - } - - public static com.google.analytics.admin.v1beta.ListAccountsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java deleted file mode 100644 index 680ccc4f4a02..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListAccountsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 1; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListAccounts` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccounts` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 2; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Accounts in the
-   * results. Accounts can be inspected to determine whether they are deleted or
-   * not.
-   * 
- * - * bool show_deleted = 3; - * @return The showDeleted. - */ - boolean getShowDeleted(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java deleted file mode 100644 index 9e8bbf2dc646..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListAccounts RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsResponse} - */ -public final class ListAccountsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListAccountsResponse) - ListAccountsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListAccountsResponse.newBuilder() to construct. - private ListAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListAccountsResponse() { - accounts_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListAccountsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountsResponse.class, com.google.analytics.admin.v1beta.ListAccountsResponse.Builder.class); - } - - public static final int ACCOUNTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List accounts_; - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - @java.lang.Override - public java.util.List getAccountsList() { - return accounts_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - @java.lang.Override - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - @java.lang.Override - public int getAccountsCount() { - return accounts_.size(); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Account getAccounts(int index) { - return accounts_.get(index); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accounts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListAccountsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListAccountsResponse other = (com.google.analytics.admin.v1beta.ListAccountsResponse) obj; - - if (!getAccountsList() - .equals(other.getAccountsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListAccountsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListAccounts RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListAccountsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListAccountsResponse) - com.google.analytics.admin.v1beta.ListAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListAccountsResponse.class, com.google.analytics.admin.v1beta.ListAccountsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListAccountsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - } else { - accounts_ = null; - accountsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListAccountsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListAccountsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsResponse build() { - com.google.analytics.admin.v1beta.ListAccountsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsResponse buildPartial() { - com.google.analytics.admin.v1beta.ListAccountsResponse result = new com.google.analytics.admin.v1beta.ListAccountsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListAccountsResponse result) { - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListAccountsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListAccountsResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListAccountsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListAccountsResponse other) { - if (other == com.google.analytics.admin.v1beta.ListAccountsResponse.getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.Account m = - input.readMessage( - com.google.analytics.admin.v1beta.Account.parser(), - extensionRegistry); - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(m); - } else { - accountsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> accountsBuilder_; - - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public com.google.analytics.admin.v1beta.Account getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder setAccounts( - int index, com.google.analytics.admin.v1beta.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder setAccounts( - int index, com.google.analytics.admin.v1beta.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder addAccounts(com.google.analytics.admin.v1beta.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder addAccounts( - int index, com.google.analytics.admin.v1beta.Account value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder addAccounts( - com.google.analytics.admin.v1beta.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder addAccounts( - int index, com.google.analytics.admin.v1beta.Account.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public com.google.analytics.admin.v1beta.Account.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public com.google.analytics.admin.v1beta.Account.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.Account.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public com.google.analytics.admin.v1beta.Account.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.Account.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListAccountsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListAccountsResponse) - private static final com.google.analytics.admin.v1beta.ListAccountsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListAccountsResponse(); - } - - public static com.google.analytics.admin.v1beta.ListAccountsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListAccountsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java deleted file mode 100644 index 227c1921d242..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListAccountsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListAccountsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListAccountsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - java.util.List - getAccountsList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - com.google.analytics.admin.v1beta.Account getAccounts(int index); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - int getAccountsCount(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - java.util.List - getAccountsOrBuilderList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Account accounts = 1; - */ - com.google.analytics.admin.v1beta.AccountOrBuilder getAccountsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java deleted file mode 100644 index 61a3e94cc426..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListConversionEvents RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsRequest} - */ -public final class ListConversionEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListConversionEventsRequest) - ListConversionEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListConversionEventsRequest.newBuilder() to construct. - private ListConversionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListConversionEventsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListConversionEventsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListConversionEventsRequest.class, com.google.analytics.admin.v1beta.ListConversionEventsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1beta.ListConversionEventsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListConversionEventsRequest other = (com.google.analytics.admin.v1beta.ListConversionEventsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListConversionEventsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListConversionEvents RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListConversionEventsRequest) - com.google.analytics.admin.v1beta.ListConversionEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListConversionEventsRequest.class, com.google.analytics.admin.v1beta.ListConversionEventsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListConversionEventsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListConversionEventsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsRequest build() { - com.google.analytics.admin.v1beta.ListConversionEventsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsRequest buildPartial() { - com.google.analytics.admin.v1beta.ListConversionEventsRequest result = new com.google.analytics.admin.v1beta.ListConversionEventsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListConversionEventsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListConversionEventsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListConversionEventsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListConversionEventsRequest other) { - if (other == com.google.analytics.admin.v1beta.ListConversionEventsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent property.
-     * Example: 'properties/123'
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListConversionEventsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListConversionEventsRequest) - private static final com.google.analytics.admin.v1beta.ListConversionEventsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListConversionEventsRequest(); - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversionEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java deleted file mode 100644 index 4b1f4f98e963..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListConversionEventsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListConversionEventsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the parent property.
-   * Example: 'properties/123'
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java deleted file mode 100644 index 2113b86feb96..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListConversionEvents RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsResponse} - */ -public final class ListConversionEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListConversionEventsResponse) - ListConversionEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListConversionEventsResponse.newBuilder() to construct. - private ListConversionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListConversionEventsResponse() { - conversionEvents_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListConversionEventsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListConversionEventsResponse.class, com.google.analytics.admin.v1beta.ListConversionEventsResponse.Builder.class); - } - - public static final int CONVERSION_EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List conversionEvents_; - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public java.util.List getConversionEventsList() { - return conversionEvents_; - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public java.util.List - getConversionEventsOrBuilderList() { - return conversionEvents_; - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public int getConversionEventsCount() { - return conversionEvents_.size(); - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvents(int index) { - return conversionEvents_.get(index); - } - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventsOrBuilder( - int index) { - return conversionEvents_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < conversionEvents_.size(); i++) { - output.writeMessage(1, conversionEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < conversionEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, conversionEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListConversionEventsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListConversionEventsResponse other = (com.google.analytics.admin.v1beta.ListConversionEventsResponse) obj; - - if (!getConversionEventsList() - .equals(other.getConversionEventsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getConversionEventsCount() > 0) { - hash = (37 * hash) + CONVERSION_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getConversionEventsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListConversionEventsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListConversionEvents RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListConversionEventsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListConversionEventsResponse) - com.google.analytics.admin.v1beta.ListConversionEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListConversionEventsResponse.class, com.google.analytics.admin.v1beta.ListConversionEventsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListConversionEventsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (conversionEventsBuilder_ == null) { - conversionEvents_ = java.util.Collections.emptyList(); - } else { - conversionEvents_ = null; - conversionEventsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListConversionEventsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListConversionEventsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsResponse build() { - com.google.analytics.admin.v1beta.ListConversionEventsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsResponse buildPartial() { - com.google.analytics.admin.v1beta.ListConversionEventsResponse result = new com.google.analytics.admin.v1beta.ListConversionEventsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListConversionEventsResponse result) { - if (conversionEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.conversionEvents_ = conversionEvents_; - } else { - result.conversionEvents_ = conversionEventsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListConversionEventsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListConversionEventsResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListConversionEventsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListConversionEventsResponse other) { - if (other == com.google.analytics.admin.v1beta.ListConversionEventsResponse.getDefaultInstance()) return this; - if (conversionEventsBuilder_ == null) { - if (!other.conversionEvents_.isEmpty()) { - if (conversionEvents_.isEmpty()) { - conversionEvents_ = other.conversionEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureConversionEventsIsMutable(); - conversionEvents_.addAll(other.conversionEvents_); - } - onChanged(); - } - } else { - if (!other.conversionEvents_.isEmpty()) { - if (conversionEventsBuilder_.isEmpty()) { - conversionEventsBuilder_.dispose(); - conversionEventsBuilder_ = null; - conversionEvents_ = other.conversionEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - conversionEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getConversionEventsFieldBuilder() : null; - } else { - conversionEventsBuilder_.addAllMessages(other.conversionEvents_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.ConversionEvent m = - input.readMessage( - com.google.analytics.admin.v1beta.ConversionEvent.parser(), - extensionRegistry); - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.add(m); - } else { - conversionEventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List conversionEvents_ = - java.util.Collections.emptyList(); - private void ensureConversionEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - conversionEvents_ = new java.util.ArrayList(conversionEvents_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> conversionEventsBuilder_; - - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public java.util.List getConversionEventsList() { - if (conversionEventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(conversionEvents_); - } else { - return conversionEventsBuilder_.getMessageList(); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public int getConversionEventsCount() { - if (conversionEventsBuilder_ == null) { - return conversionEvents_.size(); - } else { - return conversionEventsBuilder_.getCount(); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvents(int index) { - if (conversionEventsBuilder_ == null) { - return conversionEvents_.get(index); - } else { - return conversionEventsBuilder_.getMessage(index); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder setConversionEvents( - int index, com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConversionEventsIsMutable(); - conversionEvents_.set(index, value); - onChanged(); - } else { - conversionEventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder setConversionEvents( - int index, com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.set(index, builderForValue.build()); - onChanged(); - } else { - conversionEventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents(com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConversionEventsIsMutable(); - conversionEvents_.add(value); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents( - int index, com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureConversionEventsIsMutable(); - conversionEvents_.add(index, value); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents( - com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.add(builderForValue.build()); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder addConversionEvents( - int index, com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.add(index, builderForValue.build()); - onChanged(); - } else { - conversionEventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder addAllConversionEvents( - java.lang.Iterable values) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, conversionEvents_); - onChanged(); - } else { - conversionEventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder clearConversionEvents() { - if (conversionEventsBuilder_ == null) { - conversionEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - conversionEventsBuilder_.clear(); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public Builder removeConversionEvents(int index) { - if (conversionEventsBuilder_ == null) { - ensureConversionEventsIsMutable(); - conversionEvents_.remove(index); - onChanged(); - } else { - conversionEventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventsBuilder( - int index) { - return getConversionEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventsOrBuilder( - int index) { - if (conversionEventsBuilder_ == null) { - return conversionEvents_.get(index); } else { - return conversionEventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public java.util.List - getConversionEventsOrBuilderList() { - if (conversionEventsBuilder_ != null) { - return conversionEventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(conversionEvents_); - } - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1beta.ConversionEvent.Builder addConversionEventsBuilder() { - return getConversionEventsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()); - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public com.google.analytics.admin.v1beta.ConversionEvent.Builder addConversionEventsBuilder( - int index) { - return getConversionEventsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()); - } - /** - *
-     * The requested conversion events
-     * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - public java.util.List - getConversionEventsBuilderList() { - return getConversionEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> - getConversionEventsFieldBuilder() { - if (conversionEventsBuilder_ == null) { - conversionEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( - conversionEvents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - conversionEvents_ = null; - } - return conversionEventsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListConversionEventsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListConversionEventsResponse) - private static final com.google.analytics.admin.v1beta.ListConversionEventsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListConversionEventsResponse(); - } - - public static com.google.analytics.admin.v1beta.ListConversionEventsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConversionEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListConversionEventsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java deleted file mode 100644 index 5e2af79f5de3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListConversionEventsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListConversionEventsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListConversionEventsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - java.util.List - getConversionEventsList(); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - com.google.analytics.admin.v1beta.ConversionEvent getConversionEvents(int index); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - int getConversionEventsCount(); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - java.util.List - getConversionEventsOrBuilderList(); - /** - *
-   * The requested conversion events
-   * 
- * - * repeated .google.analytics.admin.v1beta.ConversionEvent conversion_events = 1; - */ - com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java deleted file mode 100644 index 54e8c9a7ba60..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListCustomDimensions RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsRequest} - */ -public final class ListCustomDimensionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomDimensionsRequest) - ListCustomDimensionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomDimensionsRequest.newBuilder() to construct. - private ListCustomDimensionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomDimensionsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomDimensionsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.class, com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1beta.ListCustomDimensionsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest other = (com.google.analytics.admin.v1beta.ListCustomDimensionsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListCustomDimensionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListCustomDimensions RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomDimensionsRequest) - com.google.analytics.admin.v1beta.ListCustomDimensionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.class, com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest build() { - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest buildPartial() { - com.google.analytics.admin.v1beta.ListCustomDimensionsRequest result = new com.google.analytics.admin.v1beta.ListCustomDimensionsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListCustomDimensionsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListCustomDimensionsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListCustomDimensionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomDimensionsRequest other) { - if (other == com.google.analytics.admin.v1beta.ListCustomDimensionsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomDimensions`
-     * must match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomDimensionsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomDimensionsRequest) - private static final com.google.analytics.admin.v1beta.ListCustomDimensionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomDimensionsRequest(); - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomDimensionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java deleted file mode 100644 index 45a12651de22..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListCustomDimensionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomDimensionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomDimensions`
-   * must match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java deleted file mode 100644 index 307ab167b5c8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListCustomDimensions RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsResponse} - */ -public final class ListCustomDimensionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomDimensionsResponse) - ListCustomDimensionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomDimensionsResponse.newBuilder() to construct. - private ListCustomDimensionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomDimensionsResponse() { - customDimensions_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomDimensionsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.class, com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.Builder.class); - } - - public static final int CUSTOM_DIMENSIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List customDimensions_; - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public java.util.List getCustomDimensionsList() { - return customDimensions_; - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public java.util.List - getCustomDimensionsOrBuilderList() { - return customDimensions_; - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public int getCustomDimensionsCount() { - return customDimensions_.size(); - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension getCustomDimensions(int index) { - return customDimensions_.get(index); - } - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( - int index) { - return customDimensions_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < customDimensions_.size(); i++) { - output.writeMessage(1, customDimensions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < customDimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customDimensions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListCustomDimensionsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListCustomDimensionsResponse other = (com.google.analytics.admin.v1beta.ListCustomDimensionsResponse) obj; - - if (!getCustomDimensionsList() - .equals(other.getCustomDimensionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getCustomDimensionsCount() > 0) { - hash = (37 * hash) + CUSTOM_DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getCustomDimensionsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListCustomDimensionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListCustomDimensions RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomDimensionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomDimensionsResponse) - com.google.analytics.admin.v1beta.ListCustomDimensionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.class, com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (customDimensionsBuilder_ == null) { - customDimensions_ = java.util.Collections.emptyList(); - } else { - customDimensions_ = null; - customDimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomDimensionsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse build() { - com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse buildPartial() { - com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result = new com.google.analytics.admin.v1beta.ListCustomDimensionsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result) { - if (customDimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customDimensions_ = customDimensions_; - } else { - result.customDimensions_ = customDimensionsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListCustomDimensionsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListCustomDimensionsResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListCustomDimensionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomDimensionsResponse other) { - if (other == com.google.analytics.admin.v1beta.ListCustomDimensionsResponse.getDefaultInstance()) return this; - if (customDimensionsBuilder_ == null) { - if (!other.customDimensions_.isEmpty()) { - if (customDimensions_.isEmpty()) { - customDimensions_ = other.customDimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCustomDimensionsIsMutable(); - customDimensions_.addAll(other.customDimensions_); - } - onChanged(); - } - } else { - if (!other.customDimensions_.isEmpty()) { - if (customDimensionsBuilder_.isEmpty()) { - customDimensionsBuilder_.dispose(); - customDimensionsBuilder_ = null; - customDimensions_ = other.customDimensions_; - bitField0_ = (bitField0_ & ~0x00000001); - customDimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomDimensionsFieldBuilder() : null; - } else { - customDimensionsBuilder_.addAllMessages(other.customDimensions_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.CustomDimension m = - input.readMessage( - com.google.analytics.admin.v1beta.CustomDimension.parser(), - extensionRegistry); - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.add(m); - } else { - customDimensionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List customDimensions_ = - java.util.Collections.emptyList(); - private void ensureCustomDimensionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - customDimensions_ = new java.util.ArrayList(customDimensions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> customDimensionsBuilder_; - - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public java.util.List getCustomDimensionsList() { - if (customDimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(customDimensions_); - } else { - return customDimensionsBuilder_.getMessageList(); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public int getCustomDimensionsCount() { - if (customDimensionsBuilder_ == null) { - return customDimensions_.size(); - } else { - return customDimensionsBuilder_.getCount(); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimension getCustomDimensions(int index) { - if (customDimensionsBuilder_ == null) { - return customDimensions_.get(index); - } else { - return customDimensionsBuilder_.getMessage(index); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder setCustomDimensions( - int index, com.google.analytics.admin.v1beta.CustomDimension value) { - if (customDimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomDimensionsIsMutable(); - customDimensions_.set(index, value); - onChanged(); - } else { - customDimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder setCustomDimensions( - int index, com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - customDimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions(com.google.analytics.admin.v1beta.CustomDimension value) { - if (customDimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomDimensionsIsMutable(); - customDimensions_.add(value); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions( - int index, com.google.analytics.admin.v1beta.CustomDimension value) { - if (customDimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomDimensionsIsMutable(); - customDimensions_.add(index, value); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions( - com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.add(builderForValue.build()); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder addCustomDimensions( - int index, com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - customDimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder addAllCustomDimensions( - java.lang.Iterable values) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customDimensions_); - onChanged(); - } else { - customDimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder clearCustomDimensions() { - if (customDimensionsBuilder_ == null) { - customDimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - customDimensionsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public Builder removeCustomDimensions(int index) { - if (customDimensionsBuilder_ == null) { - ensureCustomDimensionsIsMutable(); - customDimensions_.remove(index); - onChanged(); - } else { - customDimensionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimension.Builder getCustomDimensionsBuilder( - int index) { - return getCustomDimensionsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( - int index) { - if (customDimensionsBuilder_ == null) { - return customDimensions_.get(index); } else { - return customDimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public java.util.List - getCustomDimensionsOrBuilderList() { - if (customDimensionsBuilder_ != null) { - return customDimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(customDimensions_); - } - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimension.Builder addCustomDimensionsBuilder() { - return getCustomDimensionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()); - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimension.Builder addCustomDimensionsBuilder( - int index) { - return getCustomDimensionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()); - } - /** - *
-     * List of CustomDimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - public java.util.List - getCustomDimensionsBuilderList() { - return getCustomDimensionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> - getCustomDimensionsFieldBuilder() { - if (customDimensionsBuilder_ == null) { - customDimensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder>( - customDimensions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - customDimensions_ = null; - } - return customDimensionsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomDimensionsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomDimensionsResponse) - private static final com.google.analytics.admin.v1beta.ListCustomDimensionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomDimensionsResponse(); - } - - public static com.google.analytics.admin.v1beta.ListCustomDimensionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomDimensionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomDimensionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java deleted file mode 100644 index d6325ea79d70..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomDimensionsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListCustomDimensionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomDimensionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - java.util.List - getCustomDimensionsList(); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - com.google.analytics.admin.v1beta.CustomDimension getCustomDimensions(int index); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - int getCustomDimensionsCount(); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - java.util.List - getCustomDimensionsOrBuilderList(); - /** - *
-   * List of CustomDimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomDimension custom_dimensions = 1; - */ - com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java deleted file mode 100644 index 1714d4c84f41..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListCustomMetrics RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsRequest} - */ -public final class ListCustomMetricsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomMetricsRequest) - ListCustomMetricsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomMetricsRequest.newBuilder() to construct. - private ListCustomMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomMetricsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomMetricsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomMetricsRequest.class, com.google.analytics.admin.v1beta.ListCustomMetricsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1beta.ListCustomMetricsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListCustomMetricsRequest other = (com.google.analytics.admin.v1beta.ListCustomMetricsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListCustomMetricsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListCustomMetrics RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomMetricsRequest) - com.google.analytics.admin.v1beta.ListCustomMetricsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomMetricsRequest.class, com.google.analytics.admin.v1beta.ListCustomMetricsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListCustomMetricsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListCustomMetricsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsRequest build() { - com.google.analytics.admin.v1beta.ListCustomMetricsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsRequest buildPartial() { - com.google.analytics.admin.v1beta.ListCustomMetricsRequest result = new com.google.analytics.admin.v1beta.ListCustomMetricsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListCustomMetricsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListCustomMetricsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListCustomMetricsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomMetricsRequest other) { - if (other == com.google.analytics.admin.v1beta.ListCustomMetricsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListCustomMetrics` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListCustomMetrics` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomMetricsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomMetricsRequest) - private static final com.google.analytics.admin.v1beta.ListCustomMetricsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomMetricsRequest(); - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomMetricsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java deleted file mode 100644 index 5a536091fe84..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListCustomMetricsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomMetricsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListCustomMetrics` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListCustomMetrics` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java deleted file mode 100644 index 75856c01fdf7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListCustomMetrics RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsResponse} - */ -public final class ListCustomMetricsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListCustomMetricsResponse) - ListCustomMetricsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListCustomMetricsResponse.newBuilder() to construct. - private ListCustomMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListCustomMetricsResponse() { - customMetrics_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListCustomMetricsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomMetricsResponse.class, com.google.analytics.admin.v1beta.ListCustomMetricsResponse.Builder.class); - } - - public static final int CUSTOM_METRICS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List customMetrics_; - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public java.util.List getCustomMetricsList() { - return customMetrics_; - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public java.util.List - getCustomMetricsOrBuilderList() { - return customMetrics_; - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public int getCustomMetricsCount() { - return customMetrics_.size(); - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric getCustomMetrics(int index) { - return customMetrics_.get(index); - } - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricsOrBuilder( - int index) { - return customMetrics_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < customMetrics_.size(); i++) { - output.writeMessage(1, customMetrics_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < customMetrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, customMetrics_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListCustomMetricsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListCustomMetricsResponse other = (com.google.analytics.admin.v1beta.ListCustomMetricsResponse) obj; - - if (!getCustomMetricsList() - .equals(other.getCustomMetricsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getCustomMetricsCount() > 0) { - hash = (37 * hash) + CUSTOM_METRICS_FIELD_NUMBER; - hash = (53 * hash) + getCustomMetricsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListCustomMetricsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListCustomMetrics RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListCustomMetricsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListCustomMetricsResponse) - com.google.analytics.admin.v1beta.ListCustomMetricsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListCustomMetricsResponse.class, com.google.analytics.admin.v1beta.ListCustomMetricsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListCustomMetricsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (customMetricsBuilder_ == null) { - customMetrics_ = java.util.Collections.emptyList(); - } else { - customMetrics_ = null; - customMetricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListCustomMetricsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListCustomMetricsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsResponse build() { - com.google.analytics.admin.v1beta.ListCustomMetricsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsResponse buildPartial() { - com.google.analytics.admin.v1beta.ListCustomMetricsResponse result = new com.google.analytics.admin.v1beta.ListCustomMetricsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListCustomMetricsResponse result) { - if (customMetricsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.customMetrics_ = customMetrics_; - } else { - result.customMetrics_ = customMetricsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListCustomMetricsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListCustomMetricsResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListCustomMetricsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListCustomMetricsResponse other) { - if (other == com.google.analytics.admin.v1beta.ListCustomMetricsResponse.getDefaultInstance()) return this; - if (customMetricsBuilder_ == null) { - if (!other.customMetrics_.isEmpty()) { - if (customMetrics_.isEmpty()) { - customMetrics_ = other.customMetrics_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCustomMetricsIsMutable(); - customMetrics_.addAll(other.customMetrics_); - } - onChanged(); - } - } else { - if (!other.customMetrics_.isEmpty()) { - if (customMetricsBuilder_.isEmpty()) { - customMetricsBuilder_.dispose(); - customMetricsBuilder_ = null; - customMetrics_ = other.customMetrics_; - bitField0_ = (bitField0_ & ~0x00000001); - customMetricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getCustomMetricsFieldBuilder() : null; - } else { - customMetricsBuilder_.addAllMessages(other.customMetrics_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.CustomMetric m = - input.readMessage( - com.google.analytics.admin.v1beta.CustomMetric.parser(), - extensionRegistry); - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.add(m); - } else { - customMetricsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List customMetrics_ = - java.util.Collections.emptyList(); - private void ensureCustomMetricsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - customMetrics_ = new java.util.ArrayList(customMetrics_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder> customMetricsBuilder_; - - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public java.util.List getCustomMetricsList() { - if (customMetricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(customMetrics_); - } else { - return customMetricsBuilder_.getMessageList(); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public int getCustomMetricsCount() { - if (customMetricsBuilder_ == null) { - return customMetrics_.size(); - } else { - return customMetricsBuilder_.getCount(); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetric getCustomMetrics(int index) { - if (customMetricsBuilder_ == null) { - return customMetrics_.get(index); - } else { - return customMetricsBuilder_.getMessage(index); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder setCustomMetrics( - int index, com.google.analytics.admin.v1beta.CustomMetric value) { - if (customMetricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomMetricsIsMutable(); - customMetrics_.set(index, value); - onChanged(); - } else { - customMetricsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder setCustomMetrics( - int index, com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.set(index, builderForValue.build()); - onChanged(); - } else { - customMetricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics(com.google.analytics.admin.v1beta.CustomMetric value) { - if (customMetricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomMetricsIsMutable(); - customMetrics_.add(value); - onChanged(); - } else { - customMetricsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics( - int index, com.google.analytics.admin.v1beta.CustomMetric value) { - if (customMetricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCustomMetricsIsMutable(); - customMetrics_.add(index, value); - onChanged(); - } else { - customMetricsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics( - com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.add(builderForValue.build()); - onChanged(); - } else { - customMetricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder addCustomMetrics( - int index, com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.add(index, builderForValue.build()); - onChanged(); - } else { - customMetricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder addAllCustomMetrics( - java.lang.Iterable values) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, customMetrics_); - onChanged(); - } else { - customMetricsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder clearCustomMetrics() { - if (customMetricsBuilder_ == null) { - customMetrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - customMetricsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public Builder removeCustomMetrics(int index) { - if (customMetricsBuilder_ == null) { - ensureCustomMetricsIsMutable(); - customMetrics_.remove(index); - onChanged(); - } else { - customMetricsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetric.Builder getCustomMetricsBuilder( - int index) { - return getCustomMetricsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricsOrBuilder( - int index) { - if (customMetricsBuilder_ == null) { - return customMetrics_.get(index); } else { - return customMetricsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public java.util.List - getCustomMetricsOrBuilderList() { - if (customMetricsBuilder_ != null) { - return customMetricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(customMetrics_); - } - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetric.Builder addCustomMetricsBuilder() { - return getCustomMetricsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()); - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetric.Builder addCustomMetricsBuilder( - int index) { - return getCustomMetricsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()); - } - /** - *
-     * List of CustomMetrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - public java.util.List - getCustomMetricsBuilderList() { - return getCustomMetricsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder> - getCustomMetricsFieldBuilder() { - if (customMetricsBuilder_ == null) { - customMetricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder>( - customMetrics_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - customMetrics_ = null; - } - return customMetricsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListCustomMetricsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListCustomMetricsResponse) - private static final com.google.analytics.admin.v1beta.ListCustomMetricsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListCustomMetricsResponse(); - } - - public static com.google.analytics.admin.v1beta.ListCustomMetricsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListCustomMetricsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListCustomMetricsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java deleted file mode 100644 index 0739aa73c8ac..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListCustomMetricsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListCustomMetricsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListCustomMetricsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - java.util.List - getCustomMetricsList(); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - com.google.analytics.admin.v1beta.CustomMetric getCustomMetrics(int index); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - int getCustomMetricsCount(); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - java.util.List - getCustomMetricsOrBuilderList(); - /** - *
-   * List of CustomMetrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.CustomMetric custom_metrics = 1; - */ - com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java deleted file mode 100644 index 17f982755860..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsRequest} - */ -public final class ListDataStreamsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListDataStreamsRequest) - ListDataStreamsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDataStreamsRequest.newBuilder() to construct. - private ListDataStreamsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDataStreamsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDataStreamsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListDataStreamsRequest.class, com.google.analytics.admin.v1beta.ListDataStreamsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1beta.ListDataStreamsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListDataStreamsRequest other = (com.google.analytics.admin.v1beta.ListDataStreamsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListDataStreamsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListDataStreamsRequest) - com.google.analytics.admin.v1beta.ListDataStreamsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListDataStreamsRequest.class, com.google.analytics.admin.v1beta.ListDataStreamsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListDataStreamsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListDataStreamsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsRequest build() { - com.google.analytics.admin.v1beta.ListDataStreamsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsRequest buildPartial() { - com.google.analytics.admin.v1beta.ListDataStreamsRequest result = new com.google.analytics.admin.v1beta.ListDataStreamsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListDataStreamsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListDataStreamsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListDataStreamsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListDataStreamsRequest other) { - if (other == com.google.analytics.admin.v1beta.ListDataStreamsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListDataStreams` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListDataStreams` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListDataStreamsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListDataStreamsRequest) - private static final com.google.analytics.admin.v1beta.ListDataStreamsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListDataStreamsRequest(); - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataStreamsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java deleted file mode 100644 index f3ef316c0bd2..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListDataStreamsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListDataStreamsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListDataStreams` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListDataStreams` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java deleted file mode 100644 index c1ebec821719..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListDataStreams RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsResponse} - */ -public final class ListDataStreamsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListDataStreamsResponse) - ListDataStreamsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListDataStreamsResponse.newBuilder() to construct. - private ListDataStreamsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListDataStreamsResponse() { - dataStreams_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListDataStreamsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListDataStreamsResponse.class, com.google.analytics.admin.v1beta.ListDataStreamsResponse.Builder.class); - } - - public static final int DATA_STREAMS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List dataStreams_; - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - @java.lang.Override - public java.util.List getDataStreamsList() { - return dataStreams_; - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - @java.lang.Override - public java.util.List - getDataStreamsOrBuilderList() { - return dataStreams_; - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - @java.lang.Override - public int getDataStreamsCount() { - return dataStreams_.size(); - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream getDataStreams(int index) { - return dataStreams_.get(index); - } - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamsOrBuilder( - int index) { - return dataStreams_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < dataStreams_.size(); i++) { - output.writeMessage(1, dataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dataStreams_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dataStreams_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += 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.admin.v1beta.ListDataStreamsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListDataStreamsResponse other = (com.google.analytics.admin.v1beta.ListDataStreamsResponse) obj; - - if (!getDataStreamsList() - .equals(other.getDataStreamsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getDataStreamsCount() > 0) { - hash = (37 * hash) + DATA_STREAMS_FIELD_NUMBER; - hash = (53 * hash) + getDataStreamsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListDataStreamsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListDataStreams RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListDataStreamsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListDataStreamsResponse) - com.google.analytics.admin.v1beta.ListDataStreamsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListDataStreamsResponse.class, com.google.analytics.admin.v1beta.ListDataStreamsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListDataStreamsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dataStreamsBuilder_ == null) { - dataStreams_ = java.util.Collections.emptyList(); - } else { - dataStreams_ = null; - dataStreamsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListDataStreamsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListDataStreamsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsResponse build() { - com.google.analytics.admin.v1beta.ListDataStreamsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsResponse buildPartial() { - com.google.analytics.admin.v1beta.ListDataStreamsResponse result = new com.google.analytics.admin.v1beta.ListDataStreamsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListDataStreamsResponse result) { - if (dataStreamsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dataStreams_ = java.util.Collections.unmodifiableList(dataStreams_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dataStreams_ = dataStreams_; - } else { - result.dataStreams_ = dataStreamsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListDataStreamsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListDataStreamsResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListDataStreamsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListDataStreamsResponse other) { - if (other == com.google.analytics.admin.v1beta.ListDataStreamsResponse.getDefaultInstance()) return this; - if (dataStreamsBuilder_ == null) { - if (!other.dataStreams_.isEmpty()) { - if (dataStreams_.isEmpty()) { - dataStreams_ = other.dataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDataStreamsIsMutable(); - dataStreams_.addAll(other.dataStreams_); - } - onChanged(); - } - } else { - if (!other.dataStreams_.isEmpty()) { - if (dataStreamsBuilder_.isEmpty()) { - dataStreamsBuilder_.dispose(); - dataStreamsBuilder_ = null; - dataStreams_ = other.dataStreams_; - bitField0_ = (bitField0_ & ~0x00000001); - dataStreamsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDataStreamsFieldBuilder() : null; - } else { - dataStreamsBuilder_.addAllMessages(other.dataStreams_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.DataStream m = - input.readMessage( - com.google.analytics.admin.v1beta.DataStream.parser(), - extensionRegistry); - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.add(m); - } else { - dataStreamsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List dataStreams_ = - java.util.Collections.emptyList(); - private void ensureDataStreamsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dataStreams_ = new java.util.ArrayList(dataStreams_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> dataStreamsBuilder_; - - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public java.util.List getDataStreamsList() { - if (dataStreamsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dataStreams_); - } else { - return dataStreamsBuilder_.getMessageList(); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public int getDataStreamsCount() { - if (dataStreamsBuilder_ == null) { - return dataStreams_.size(); - } else { - return dataStreamsBuilder_.getCount(); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1beta.DataStream getDataStreams(int index) { - if (dataStreamsBuilder_ == null) { - return dataStreams_.get(index); - } else { - return dataStreamsBuilder_.getMessage(index); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder setDataStreams( - int index, com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStreamsIsMutable(); - dataStreams_.set(index, value); - onChanged(); - } else { - dataStreamsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder setDataStreams( - int index, com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.set(index, builderForValue.build()); - onChanged(); - } else { - dataStreamsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder addDataStreams(com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStreamsIsMutable(); - dataStreams_.add(value); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder addDataStreams( - int index, com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDataStreamsIsMutable(); - dataStreams_.add(index, value); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder addDataStreams( - com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.add(builderForValue.build()); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder addDataStreams( - int index, com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.add(index, builderForValue.build()); - onChanged(); - } else { - dataStreamsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder addAllDataStreams( - java.lang.Iterable values) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dataStreams_); - onChanged(); - } else { - dataStreamsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder clearDataStreams() { - if (dataStreamsBuilder_ == null) { - dataStreams_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dataStreamsBuilder_.clear(); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public Builder removeDataStreams(int index) { - if (dataStreamsBuilder_ == null) { - ensureDataStreamsIsMutable(); - dataStreams_.remove(index); - onChanged(); - } else { - dataStreamsBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamsBuilder( - int index) { - return getDataStreamsFieldBuilder().getBuilder(index); - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamsOrBuilder( - int index) { - if (dataStreamsBuilder_ == null) { - return dataStreams_.get(index); } else { - return dataStreamsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public java.util.List - getDataStreamsOrBuilderList() { - if (dataStreamsBuilder_ != null) { - return dataStreamsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dataStreams_); - } - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1beta.DataStream.Builder addDataStreamsBuilder() { - return getDataStreamsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()); - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public com.google.analytics.admin.v1beta.DataStream.Builder addDataStreamsBuilder( - int index) { - return getDataStreamsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()); - } - /** - *
-     * List of DataStreams.
-     * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - public java.util.List - getDataStreamsBuilderList() { - return getDataStreamsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> - getDataStreamsFieldBuilder() { - if (dataStreamsBuilder_ == null) { - dataStreamsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder>( - dataStreams_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dataStreams_ = null; - } - return dataStreamsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListDataStreamsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListDataStreamsResponse) - private static final com.google.analytics.admin.v1beta.ListDataStreamsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListDataStreamsResponse(); - } - - public static com.google.analytics.admin.v1beta.ListDataStreamsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListDataStreamsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListDataStreamsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java deleted file mode 100644 index e19c266a35c8..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListDataStreamsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListDataStreamsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListDataStreamsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - java.util.List - getDataStreamsList(); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - com.google.analytics.admin.v1beta.DataStream getDataStreams(int index); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - int getDataStreamsCount(); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - java.util.List - getDataStreamsOrBuilderList(); - /** - *
-   * List of DataStreams.
-   * 
- * - * repeated .google.analytics.admin.v1beta.DataStream data_streams = 1; - */ - com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java deleted file mode 100644 index 1502eb64bcfe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequest.java +++ /dev/null @@ -1,863 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListFirebaseLinks RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksRequest} - */ -public final class ListFirebaseLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListFirebaseLinksRequest) - ListFirebaseLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListFirebaseLinksRequest.newBuilder() to construct. - private ListFirebaseLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListFirebaseLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListFirebaseLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.class, com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1beta.ListFirebaseLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest other = (com.google.analytics.admin.v1beta.ListFirebaseLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListFirebaseLinks RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListFirebaseLinksRequest) - com.google.analytics.admin.v1beta.ListFirebaseLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.class, com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest build() { - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest buildPartial() { - com.google.analytics.admin.v1beta.ListFirebaseLinksRequest result = new com.google.analytics.admin.v1beta.ListFirebaseLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListFirebaseLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListFirebaseLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListFirebaseLinksRequest other) { - if (other == com.google.analytics.admin.v1beta.ListFirebaseLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Format: properties/{property_id}
-     * Example: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListFirebaseLinks` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListFirebaseLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListFirebaseLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListFirebaseLinksRequest) - private static final com.google.analytics.admin.v1beta.ListFirebaseLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListFirebaseLinksRequest(); - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirebaseLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java deleted file mode 100644 index 5099b0e86234..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListFirebaseLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListFirebaseLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Format: properties/{property_id}
-   * Example: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListFirebaseLinks` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListFirebaseLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java deleted file mode 100644 index 44260686c348..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponse.java +++ /dev/null @@ -1,1044 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListFirebaseLinks RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksResponse} - */ -public final class ListFirebaseLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListFirebaseLinksResponse) - ListFirebaseLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListFirebaseLinksResponse.newBuilder() to construct. - private ListFirebaseLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListFirebaseLinksResponse() { - firebaseLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListFirebaseLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.class, com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.Builder.class); - } - - public static final int FIREBASE_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List firebaseLinks_; - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public java.util.List getFirebaseLinksList() { - return firebaseLinks_; - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public java.util.List - getFirebaseLinksOrBuilderList() { - return firebaseLinks_; - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public int getFirebaseLinksCount() { - return firebaseLinks_.size(); - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLinks(int index) { - return firebaseLinks_.get(index); - } - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( - int index) { - return firebaseLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < firebaseLinks_.size(); i++) { - output.writeMessage(1, firebaseLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < firebaseLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, firebaseLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListFirebaseLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListFirebaseLinksResponse other = (com.google.analytics.admin.v1beta.ListFirebaseLinksResponse) obj; - - if (!getFirebaseLinksList() - .equals(other.getFirebaseLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getFirebaseLinksCount() > 0) { - hash = (37 * hash) + FIREBASE_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListFirebaseLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListFirebaseLinks RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListFirebaseLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListFirebaseLinksResponse) - com.google.analytics.admin.v1beta.ListFirebaseLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.class, com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (firebaseLinksBuilder_ == null) { - firebaseLinks_ = java.util.Collections.emptyList(); - } else { - firebaseLinks_ = null; - firebaseLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListFirebaseLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse build() { - com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse buildPartial() { - com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result = new com.google.analytics.admin.v1beta.ListFirebaseLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result) { - if (firebaseLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - firebaseLinks_ = java.util.Collections.unmodifiableList(firebaseLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.firebaseLinks_ = firebaseLinks_; - } else { - result.firebaseLinks_ = firebaseLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListFirebaseLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListFirebaseLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListFirebaseLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListFirebaseLinksResponse other) { - if (other == com.google.analytics.admin.v1beta.ListFirebaseLinksResponse.getDefaultInstance()) return this; - if (firebaseLinksBuilder_ == null) { - if (!other.firebaseLinks_.isEmpty()) { - if (firebaseLinks_.isEmpty()) { - firebaseLinks_ = other.firebaseLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.addAll(other.firebaseLinks_); - } - onChanged(); - } - } else { - if (!other.firebaseLinks_.isEmpty()) { - if (firebaseLinksBuilder_.isEmpty()) { - firebaseLinksBuilder_.dispose(); - firebaseLinksBuilder_ = null; - firebaseLinks_ = other.firebaseLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - firebaseLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getFirebaseLinksFieldBuilder() : null; - } else { - firebaseLinksBuilder_.addAllMessages(other.firebaseLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.FirebaseLink m = - input.readMessage( - com.google.analytics.admin.v1beta.FirebaseLink.parser(), - extensionRegistry); - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(m); - } else { - firebaseLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List firebaseLinks_ = - java.util.Collections.emptyList(); - private void ensureFirebaseLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - firebaseLinks_ = new java.util.ArrayList(firebaseLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> firebaseLinksBuilder_; - - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public java.util.List getFirebaseLinksList() { - if (firebaseLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(firebaseLinks_); - } else { - return firebaseLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public int getFirebaseLinksCount() { - if (firebaseLinksBuilder_ == null) { - return firebaseLinks_.size(); - } else { - return firebaseLinksBuilder_.getCount(); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLinks(int index) { - if (firebaseLinksBuilder_ == null) { - return firebaseLinks_.get(index); - } else { - return firebaseLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder setFirebaseLinks( - int index, com.google.analytics.admin.v1beta.FirebaseLink value) { - if (firebaseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFirebaseLinksIsMutable(); - firebaseLinks_.set(index, value); - onChanged(); - } else { - firebaseLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder setFirebaseLinks( - int index, com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - firebaseLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks(com.google.analytics.admin.v1beta.FirebaseLink value) { - if (firebaseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(value); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks( - int index, com.google.analytics.admin.v1beta.FirebaseLink value) { - if (firebaseLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(index, value); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks( - com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(builderForValue.build()); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder addFirebaseLinks( - int index, com.google.analytics.admin.v1beta.FirebaseLink.Builder builderForValue) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - firebaseLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder addAllFirebaseLinks( - java.lang.Iterable values) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, firebaseLinks_); - onChanged(); - } else { - firebaseLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder clearFirebaseLinks() { - if (firebaseLinksBuilder_ == null) { - firebaseLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - firebaseLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public Builder removeFirebaseLinks(int index) { - if (firebaseLinksBuilder_ == null) { - ensureFirebaseLinksIsMutable(); - firebaseLinks_.remove(index); - onChanged(); - } else { - firebaseLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1beta.FirebaseLink.Builder getFirebaseLinksBuilder( - int index) { - return getFirebaseLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( - int index) { - if (firebaseLinksBuilder_ == null) { - return firebaseLinks_.get(index); } else { - return firebaseLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public java.util.List - getFirebaseLinksOrBuilderList() { - if (firebaseLinksBuilder_ != null) { - return firebaseLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(firebaseLinks_); - } - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1beta.FirebaseLink.Builder addFirebaseLinksBuilder() { - return getFirebaseLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()); - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public com.google.analytics.admin.v1beta.FirebaseLink.Builder addFirebaseLinksBuilder( - int index) { - return getFirebaseLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.FirebaseLink.getDefaultInstance()); - } - /** - *
-     * List of FirebaseLinks. This will have at most one value.
-     * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - public java.util.List - getFirebaseLinksBuilderList() { - return getFirebaseLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder> - getFirebaseLinksFieldBuilder() { - if (firebaseLinksBuilder_ == null) { - firebaseLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.FirebaseLink, com.google.analytics.admin.v1beta.FirebaseLink.Builder, com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder>( - firebaseLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - firebaseLinks_ = null; - } - return firebaseLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * Currently, Google Analytics supports only one FirebaseLink per property,
-     * so this will never be populated.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListFirebaseLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListFirebaseLinksResponse) - private static final com.google.analytics.admin.v1beta.ListFirebaseLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListFirebaseLinksResponse(); - } - - public static com.google.analytics.admin.v1beta.ListFirebaseLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListFirebaseLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListFirebaseLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java deleted file mode 100644 index 4e326861adcd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListFirebaseLinksResponseOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListFirebaseLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListFirebaseLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - java.util.List - getFirebaseLinksList(); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - com.google.analytics.admin.v1beta.FirebaseLink getFirebaseLinks(int index); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - int getFirebaseLinksCount(); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - java.util.List - getFirebaseLinksOrBuilderList(); - /** - *
-   * List of FirebaseLinks. This will have at most one value.
-   * 
- * - * repeated .google.analytics.admin.v1beta.FirebaseLink firebase_links = 1; - */ - com.google.analytics.admin.v1beta.FirebaseLinkOrBuilder getFirebaseLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * Currently, Google Analytics supports only one FirebaseLink per property,
-   * so this will never be populated.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java deleted file mode 100644 index 8382c0e76d00..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequest.java +++ /dev/null @@ -1,859 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListGoogleAdsLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} - */ -public final class ListGoogleAdsLinksRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) - ListGoogleAdsLinksRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListGoogleAdsLinksRequest.newBuilder() to construct. - private ListGoogleAdsLinksRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListGoogleAdsLinksRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListGoogleAdsLinksRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.class, com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1beta.ListGoogleAdsLinksRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest other = (com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListGoogleAdsLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.class, com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest build() { - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest buildPartial() { - com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest result = new com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest other) { - if (other == com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. Example format: properties/1234
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
-     * Provide this to retrieve the subsequent page.
-     *
-     * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) - private static final com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest(); - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGoogleAdsLinksRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java deleted file mode 100644 index 61e06a7549de..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListGoogleAdsLinksRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListGoogleAdsLinksRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. Example format: properties/1234
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
-   * Provide this to retrieve the subsequent page.
-   *
-   * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java deleted file mode 100644 index 899b674e9b72..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListGoogleAdsLinks RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} - */ -public final class ListGoogleAdsLinksResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) - ListGoogleAdsLinksResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListGoogleAdsLinksResponse.newBuilder() to construct. - private ListGoogleAdsLinksResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListGoogleAdsLinksResponse() { - googleAdsLinks_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListGoogleAdsLinksResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.class, com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.Builder.class); - } - - public static final int GOOGLE_ADS_LINKS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List googleAdsLinks_; - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public java.util.List getGoogleAdsLinksList() { - return googleAdsLinks_; - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public java.util.List - getGoogleAdsLinksOrBuilderList() { - return googleAdsLinks_; - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public int getGoogleAdsLinksCount() { - return googleAdsLinks_.size(); - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLinks(int index) { - return googleAdsLinks_.get(index); - } - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( - int index) { - return googleAdsLinks_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < googleAdsLinks_.size(); i++) { - output.writeMessage(1, googleAdsLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < googleAdsLinks_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, googleAdsLinks_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListGoogleAdsLinksResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse other = (com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) obj; - - if (!getGoogleAdsLinksList() - .equals(other.getGoogleAdsLinksList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getGoogleAdsLinksCount() > 0) { - hash = (37 * hash) + GOOGLE_ADS_LINKS_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLinksList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListGoogleAdsLinks RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListGoogleAdsLinksResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.class, com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (googleAdsLinksBuilder_ == null) { - googleAdsLinks_ = java.util.Collections.emptyList(); - } else { - googleAdsLinks_ = null; - googleAdsLinksBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListGoogleAdsLinksResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse build() { - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse buildPartial() { - com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result = new com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result) { - if (googleAdsLinksBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - googleAdsLinks_ = java.util.Collections.unmodifiableList(googleAdsLinks_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.googleAdsLinks_ = googleAdsLinks_; - } else { - result.googleAdsLinks_ = googleAdsLinksBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse other) { - if (other == com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse.getDefaultInstance()) return this; - if (googleAdsLinksBuilder_ == null) { - if (!other.googleAdsLinks_.isEmpty()) { - if (googleAdsLinks_.isEmpty()) { - googleAdsLinks_ = other.googleAdsLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.addAll(other.googleAdsLinks_); - } - onChanged(); - } - } else { - if (!other.googleAdsLinks_.isEmpty()) { - if (googleAdsLinksBuilder_.isEmpty()) { - googleAdsLinksBuilder_.dispose(); - googleAdsLinksBuilder_ = null; - googleAdsLinks_ = other.googleAdsLinks_; - bitField0_ = (bitField0_ & ~0x00000001); - googleAdsLinksBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getGoogleAdsLinksFieldBuilder() : null; - } else { - googleAdsLinksBuilder_.addAllMessages(other.googleAdsLinks_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.GoogleAdsLink m = - input.readMessage( - com.google.analytics.admin.v1beta.GoogleAdsLink.parser(), - extensionRegistry); - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(m); - } else { - googleAdsLinksBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List googleAdsLinks_ = - java.util.Collections.emptyList(); - private void ensureGoogleAdsLinksIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - googleAdsLinks_ = new java.util.ArrayList(googleAdsLinks_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> googleAdsLinksBuilder_; - - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public java.util.List getGoogleAdsLinksList() { - if (googleAdsLinksBuilder_ == null) { - return java.util.Collections.unmodifiableList(googleAdsLinks_); - } else { - return googleAdsLinksBuilder_.getMessageList(); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public int getGoogleAdsLinksCount() { - if (googleAdsLinksBuilder_ == null) { - return googleAdsLinks_.size(); - } else { - return googleAdsLinksBuilder_.getCount(); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLinks(int index) { - if (googleAdsLinksBuilder_ == null) { - return googleAdsLinks_.get(index); - } else { - return googleAdsLinksBuilder_.getMessage(index); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder setGoogleAdsLinks( - int index, com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.set(index, value); - onChanged(); - } else { - googleAdsLinksBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder setGoogleAdsLinks( - int index, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.set(index, builderForValue.build()); - onChanged(); - } else { - googleAdsLinksBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks(com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(value); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks( - int index, com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinksBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(index, value); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks( - com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(builderForValue.build()); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder addGoogleAdsLinks( - int index, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.add(index, builderForValue.build()); - onChanged(); - } else { - googleAdsLinksBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder addAllGoogleAdsLinks( - java.lang.Iterable values) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, googleAdsLinks_); - onChanged(); - } else { - googleAdsLinksBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder clearGoogleAdsLinks() { - if (googleAdsLinksBuilder_ == null) { - googleAdsLinks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - googleAdsLinksBuilder_.clear(); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public Builder removeGoogleAdsLinks(int index) { - if (googleAdsLinksBuilder_ == null) { - ensureGoogleAdsLinksIsMutable(); - googleAdsLinks_.remove(index); - onChanged(); - } else { - googleAdsLinksBuilder_.remove(index); - } - return this; - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinksBuilder( - int index) { - return getGoogleAdsLinksFieldBuilder().getBuilder(index); - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( - int index) { - if (googleAdsLinksBuilder_ == null) { - return googleAdsLinks_.get(index); } else { - return googleAdsLinksBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public java.util.List - getGoogleAdsLinksOrBuilderList() { - if (googleAdsLinksBuilder_ != null) { - return googleAdsLinksBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(googleAdsLinks_); - } - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder addGoogleAdsLinksBuilder() { - return getGoogleAdsLinksFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()); - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder addGoogleAdsLinksBuilder( - int index) { - return getGoogleAdsLinksFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()); - } - /** - *
-     * List of GoogleAdsLinks.
-     * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - public java.util.List - getGoogleAdsLinksBuilderList() { - return getGoogleAdsLinksFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> - getGoogleAdsLinksFieldBuilder() { - if (googleAdsLinksBuilder_ == null) { - googleAdsLinksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( - googleAdsLinks_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - googleAdsLinks_ = null; - } - return googleAdsLinksBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) - private static final com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse(); - } - - public static com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListGoogleAdsLinksResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListGoogleAdsLinksResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java deleted file mode 100644 index cc8ed4907857..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListGoogleAdsLinksResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListGoogleAdsLinksResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListGoogleAdsLinksResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - java.util.List - getGoogleAdsLinksList(); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLinks(int index); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - int getGoogleAdsLinksCount(); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - java.util.List - getGoogleAdsLinksOrBuilderList(); - /** - *
-   * List of GoogleAdsLinks.
-   * 
- * - * repeated .google.analytics.admin.v1beta.GoogleAdsLink google_ads_links = 1; - */ - com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinksOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java deleted file mode 100644 index afbc888d8da6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequest.java +++ /dev/null @@ -1,866 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} - */ -public final class ListMeasurementProtocolSecretsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) - ListMeasurementProtocolSecretsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListMeasurementProtocolSecretsRequest.newBuilder() to construct. - private ListMeasurementProtocolSecretsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMeasurementProtocolSecretsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListMeasurementProtocolSecretsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.class, com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 10 resources will be returned.
-   * The maximum value is 10. Higher values will be coerced to the maximum.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += 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.admin.v1beta.ListMeasurementProtocolSecretsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest other = (com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.class, com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest build() { - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest buildPartial() { - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest result = new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest other) { - if (other == com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object parent_ = ""; - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The resource name of the parent stream.
-     * Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-     * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 10 resources will be returned.
-     * The maximum value is 10. Higher values will be coerced to the maximum.
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 10 resources will be returned.
-     * The maximum value is 10. Higher values will be coerced to the maximum.
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return.
-     * If unspecified, at most 10 resources will be returned.
-     * The maximum value is 10. Higher values will be coerced to the maximum.
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) - private static final com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest(); - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMeasurementProtocolSecretsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java deleted file mode 100644 index 3e1397a7d79c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListMeasurementProtocolSecretsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Required. The resource name of the parent stream.
-   * Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets
-   * 
- * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * The maximum number of resources to return.
-   * If unspecified, at most 10 resources will be returned.
-   * The maximum value is 10. Higher values will be coerced to the maximum.
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java deleted file mode 100644 index 46d4dcfe4350..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} - */ -public final class ListMeasurementProtocolSecretsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) - ListMeasurementProtocolSecretsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListMeasurementProtocolSecretsResponse.newBuilder() to construct. - private ListMeasurementProtocolSecretsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListMeasurementProtocolSecretsResponse() { - measurementProtocolSecrets_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListMeasurementProtocolSecretsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.class, com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.Builder.class); - } - - public static final int MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List measurementProtocolSecrets_; - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public java.util.List getMeasurementProtocolSecretsList() { - return measurementProtocolSecrets_; - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public java.util.List - getMeasurementProtocolSecretsOrBuilderList() { - return measurementProtocolSecrets_; - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public int getMeasurementProtocolSecretsCount() { - return measurementProtocolSecrets_.size(); - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecrets(int index) { - return measurementProtocolSecrets_.get(index); - } - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretsOrBuilder( - int index) { - return measurementProtocolSecrets_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { - output.writeMessage(1, measurementProtocolSecrets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, measurementProtocolSecrets_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListMeasurementProtocolSecretsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse other = (com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) obj; - - if (!getMeasurementProtocolSecretsList() - .equals(other.getMeasurementProtocolSecretsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getMeasurementProtocolSecretsCount() > 0) { - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecretsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.class, com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (measurementProtocolSecretsBuilder_ == null) { - measurementProtocolSecrets_ = java.util.Collections.emptyList(); - } else { - measurementProtocolSecrets_ = null; - measurementProtocolSecretsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListMeasurementProtocolSecretsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse build() { - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse buildPartial() { - com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result = new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result) { - if (measurementProtocolSecretsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - measurementProtocolSecrets_ = java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.measurementProtocolSecrets_ = measurementProtocolSecrets_; - } else { - result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse other) { - if (other == com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse.getDefaultInstance()) return this; - if (measurementProtocolSecretsBuilder_ == null) { - if (!other.measurementProtocolSecrets_.isEmpty()) { - if (measurementProtocolSecrets_.isEmpty()) { - measurementProtocolSecrets_ = other.measurementProtocolSecrets_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.addAll(other.measurementProtocolSecrets_); - } - onChanged(); - } - } else { - if (!other.measurementProtocolSecrets_.isEmpty()) { - if (measurementProtocolSecretsBuilder_.isEmpty()) { - measurementProtocolSecretsBuilder_.dispose(); - measurementProtocolSecretsBuilder_ = null; - measurementProtocolSecrets_ = other.measurementProtocolSecrets_; - bitField0_ = (bitField0_ & ~0x00000001); - measurementProtocolSecretsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMeasurementProtocolSecretsFieldBuilder() : null; - } else { - measurementProtocolSecretsBuilder_.addAllMessages(other.measurementProtocolSecrets_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.MeasurementProtocolSecret m = - input.readMessage( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.parser(), - extensionRegistry); - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(m); - } else { - measurementProtocolSecretsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List measurementProtocolSecrets_ = - java.util.Collections.emptyList(); - private void ensureMeasurementProtocolSecretsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - measurementProtocolSecrets_ = new java.util.ArrayList(measurementProtocolSecrets_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretsBuilder_; - - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public java.util.List getMeasurementProtocolSecretsList() { - if (measurementProtocolSecretsBuilder_ == null) { - return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - } else { - return measurementProtocolSecretsBuilder_.getMessageList(); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public int getMeasurementProtocolSecretsCount() { - if (measurementProtocolSecretsBuilder_ == null) { - return measurementProtocolSecrets_.size(); - } else { - return measurementProtocolSecretsBuilder_.getCount(); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecrets(int index) { - if (measurementProtocolSecretsBuilder_ == null) { - return measurementProtocolSecrets_.get(index); - } else { - return measurementProtocolSecretsBuilder_.getMessage(index); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder setMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.set(index, value); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder setMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.set(index, builderForValue.build()); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets(com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(value); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(index, value); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(builderForValue.build()); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addMeasurementProtocolSecrets( - int index, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.add(index, builderForValue.build()); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder addAllMeasurementProtocolSecrets( - java.lang.Iterable values) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, measurementProtocolSecrets_); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder clearMeasurementProtocolSecrets() { - if (measurementProtocolSecretsBuilder_ == null) { - measurementProtocolSecrets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.clear(); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public Builder removeMeasurementProtocolSecrets(int index) { - if (measurementProtocolSecretsBuilder_ == null) { - ensureMeasurementProtocolSecretsIsMutable(); - measurementProtocolSecrets_.remove(index); - onChanged(); - } else { - measurementProtocolSecretsBuilder_.remove(index); - } - return this; - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretsBuilder( - int index) { - return getMeasurementProtocolSecretsFieldBuilder().getBuilder(index); - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretsOrBuilder( - int index) { - if (measurementProtocolSecretsBuilder_ == null) { - return measurementProtocolSecrets_.get(index); } else { - return measurementProtocolSecretsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public java.util.List - getMeasurementProtocolSecretsOrBuilderList() { - if (measurementProtocolSecretsBuilder_ != null) { - return measurementProtocolSecretsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); - } - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder addMeasurementProtocolSecretsBuilder() { - return getMeasurementProtocolSecretsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()); - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder addMeasurementProtocolSecretsBuilder( - int index) { - return getMeasurementProtocolSecretsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()); - } - /** - *
-     * A list of secrets for the parent stream specified in the request.
-     * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - public java.util.List - getMeasurementProtocolSecretsBuilderList() { - return getMeasurementProtocolSecretsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretsFieldBuilder() { - if (measurementProtocolSecretsBuilder_ == null) { - measurementProtocolSecretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( - measurementProtocolSecrets_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - measurementProtocolSecrets_ = null; - } - return measurementProtocolSecretsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) - private static final com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse(); - } - - public static com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListMeasurementProtocolSecretsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java deleted file mode 100644 index 3ad3e496dca6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListMeasurementProtocolSecretsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListMeasurementProtocolSecretsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListMeasurementProtocolSecretsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - java.util.List - getMeasurementProtocolSecretsList(); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecrets(int index); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - int getMeasurementProtocolSecretsCount(); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - java.util.List - getMeasurementProtocolSecretsOrBuilderList(); - /** - *
-   * A list of secrets for the parent stream specified in the request.
-   * 
- * - * repeated .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secrets = 1; - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java deleted file mode 100644 index f004af12bdea..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequest.java +++ /dev/null @@ -1,1052 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ListProperties RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesRequest} - */ -public final class ListPropertiesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListPropertiesRequest) - ListPropertiesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPropertiesRequest.newBuilder() to construct. - private ListPropertiesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPropertiesRequest() { - filter_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPropertiesRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListPropertiesRequest.class, com.google.analytics.admin.v1beta.ListPropertiesRequest.Builder.class); - } - - public static final int FILTER_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - 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(); - filter_ = s; - return s; - } - } - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHOW_DELETED_FIELD_NUMBER = 4; - private boolean showDeleted_ = false; - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Properties in the
-   * results. Properties can be inspected to determine whether they are deleted
-   * or not.
-   * 
- * - * bool show_deleted = 4; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - - 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(filter_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (showDeleted_ != false) { - output.writeBool(4, showDeleted_); - } - 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(filter_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, showDeleted_); - } - 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.admin.v1beta.ListPropertiesRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListPropertiesRequest other = (com.google.analytics.admin.v1beta.ListPropertiesRequest) obj; - - if (!getFilter() - .equals(other.getFilter())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (getShowDeleted() - != other.getShowDeleted()) 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) + FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFilter().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListPropertiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListPropertiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ListProperties RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListPropertiesRequest) - com.google.analytics.admin.v1beta.ListPropertiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListPropertiesRequest.class, com.google.analytics.admin.v1beta.ListPropertiesRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListPropertiesRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filter_ = ""; - pageSize_ = 0; - pageToken_ = ""; - showDeleted_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListPropertiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesRequest build() { - com.google.analytics.admin.v1beta.ListPropertiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesRequest buildPartial() { - com.google.analytics.admin.v1beta.ListPropertiesRequest result = new com.google.analytics.admin.v1beta.ListPropertiesRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListPropertiesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filter_ = filter_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.showDeleted_ = showDeleted_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListPropertiesRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ListPropertiesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListPropertiesRequest other) { - if (other == com.google.analytics.admin.v1beta.ListPropertiesRequest.getDefaultInstance()) return this; - if (!other.getFilter().isEmpty()) { - filter_ = other.filter_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.getShowDeleted() != false) { - setShowDeleted(other.getShowDeleted()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - filter_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - showDeleted_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object filter_ = ""; - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString - getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - filter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. An expression for filtering the results of the request.
-     * Fields eligible for filtering are:
-     * `parent:`(The resource name of the parent account/property) or
-     * `ancestor:`(The resource name of the parent account) or
-     * `firebase_project:`(The id or number of the linked firebase project).
-     * Some examples of filters:
-     *
-     * ```
-     * | Filter                      | Description                               |
-     * |-----------------------------|-------------------------------------------|
-     * | parent:accounts/123         | The account with account id: 123.       |
-     * | parent:properties/123       | The property with property id: 123.       |
-     * | ancestor:accounts/123       | The account with account id: 123.         |
-     * | firebase_project:project-id | The firebase project with id: project-id. |
-     * | firebase_project:123        | The firebase project with number: 123.    |
-     * ```
-     * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - filter_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * The maximum number of resources to return. The service may return
-     * fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
-     * 
- * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * A page token, received from a previous `ListProperties` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListProperties` must
-     * match the call that provided the page token.
-     * 
- * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private boolean showDeleted_ ; - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Properties in the
-     * results. Properties can be inspected to determine whether they are deleted
-     * or not.
-     * 
- * - * bool show_deleted = 4; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Properties in the
-     * results. Properties can be inspected to determine whether they are deleted
-     * or not.
-     * 
- * - * bool show_deleted = 4; - * @param value The showDeleted to set. - * @return This builder for chaining. - */ - public Builder setShowDeleted(boolean value) { - - showDeleted_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Whether to include soft-deleted (ie: "trashed") Properties in the
-     * results. Properties can be inspected to determine whether they are deleted
-     * or not.
-     * 
- * - * bool show_deleted = 4; - * @return This builder for chaining. - */ - public Builder clearShowDeleted() { - bitField0_ = (bitField0_ & ~0x00000008); - showDeleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListPropertiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListPropertiesRequest) - private static final com.google.analytics.admin.v1beta.ListPropertiesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListPropertiesRequest(); - } - - public static com.google.analytics.admin.v1beta.ListPropertiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPropertiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java deleted file mode 100644 index ae37c50be35e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListPropertiesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListPropertiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The filter. - */ - java.lang.String getFilter(); - /** - *
-   * Required. An expression for filtering the results of the request.
-   * Fields eligible for filtering are:
-   * `parent:`(The resource name of the parent account/property) or
-   * `ancestor:`(The resource name of the parent account) or
-   * `firebase_project:`(The id or number of the linked firebase project).
-   * Some examples of filters:
-   *
-   * ```
-   * | Filter                      | Description                               |
-   * |-----------------------------|-------------------------------------------|
-   * | parent:accounts/123         | The account with account id: 123.       |
-   * | parent:properties/123       | The property with property id: 123.       |
-   * | ancestor:accounts/123       | The account with account id: 123.         |
-   * | firebase_project:project-id | The firebase project with id: project-id. |
-   * | firebase_project:123        | The firebase project with number: 123.    |
-   * ```
-   * 
- * - * string filter = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for filter. - */ - com.google.protobuf.ByteString - getFilterBytes(); - - /** - *
-   * The maximum number of resources to return. The service may return
-   * fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
-   * 
- * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * A page token, received from a previous `ListProperties` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListProperties` must
-   * match the call that provided the page token.
-   * 
- * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
-   * Whether to include soft-deleted (ie: "trashed") Properties in the
-   * results. Properties can be inspected to determine whether they are deleted
-   * or not.
-   * 
- * - * bool show_deleted = 4; - * @return The showDeleted. - */ - boolean getShowDeleted(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java deleted file mode 100644 index e2612c8aa861..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ListProperties RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesResponse} - */ -public final class ListPropertiesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ListPropertiesResponse) - ListPropertiesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListPropertiesResponse.newBuilder() to construct. - private ListPropertiesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListPropertiesResponse() { - properties_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListPropertiesResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListPropertiesResponse.class, com.google.analytics.admin.v1beta.ListPropertiesResponse.Builder.class); - } - - public static final int PROPERTIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List properties_; - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - @java.lang.Override - public java.util.List getPropertiesList() { - return properties_; - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - @java.lang.Override - public java.util.List - getPropertiesOrBuilderList() { - return properties_; - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - @java.lang.Override - public int getPropertiesCount() { - return properties_.size(); - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Property getProperties(int index) { - return properties_.get(index); - } - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - return properties_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < properties_.size(); i++) { - output.writeMessage(1, properties_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < properties_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, properties_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.ListPropertiesResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ListPropertiesResponse other = (com.google.analytics.admin.v1beta.ListPropertiesResponse) obj; - - if (!getPropertiesList() - .equals(other.getPropertiesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getPropertiesCount() > 0) { - hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getPropertiesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ListPropertiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ListPropertiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ListProperties RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ListPropertiesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ListPropertiesResponse) - com.google.analytics.admin.v1beta.ListPropertiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ListPropertiesResponse.class, com.google.analytics.admin.v1beta.ListPropertiesResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ListPropertiesResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - } else { - properties_ = null; - propertiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ListPropertiesResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ListPropertiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesResponse build() { - com.google.analytics.admin.v1beta.ListPropertiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesResponse buildPartial() { - com.google.analytics.admin.v1beta.ListPropertiesResponse result = new com.google.analytics.admin.v1beta.ListPropertiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.ListPropertiesResponse result) { - if (propertiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - properties_ = java.util.Collections.unmodifiableList(properties_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.properties_ = properties_; - } else { - result.properties_ = propertiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ListPropertiesResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ListPropertiesResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ListPropertiesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ListPropertiesResponse other) { - if (other == com.google.analytics.admin.v1beta.ListPropertiesResponse.getDefaultInstance()) return this; - if (propertiesBuilder_ == null) { - if (!other.properties_.isEmpty()) { - if (properties_.isEmpty()) { - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePropertiesIsMutable(); - properties_.addAll(other.properties_); - } - onChanged(); - } - } else { - if (!other.properties_.isEmpty()) { - if (propertiesBuilder_.isEmpty()) { - propertiesBuilder_.dispose(); - propertiesBuilder_ = null; - properties_ = other.properties_; - bitField0_ = (bitField0_ & ~0x00000001); - propertiesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPropertiesFieldBuilder() : null; - } else { - propertiesBuilder_.addAllMessages(other.properties_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.Property m = - input.readMessage( - com.google.analytics.admin.v1beta.Property.parser(), - extensionRegistry); - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(m); - } else { - propertiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List properties_ = - java.util.Collections.emptyList(); - private void ensurePropertiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - properties_ = new java.util.ArrayList(properties_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> propertiesBuilder_; - - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public java.util.List getPropertiesList() { - if (propertiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(properties_); - } else { - return propertiesBuilder_.getMessageList(); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public int getPropertiesCount() { - if (propertiesBuilder_ == null) { - return properties_.size(); - } else { - return propertiesBuilder_.getCount(); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public com.google.analytics.admin.v1beta.Property getProperties(int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); - } else { - return propertiesBuilder_.getMessage(index); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder setProperties( - int index, com.google.analytics.admin.v1beta.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.set(index, value); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder setProperties( - int index, com.google.analytics.admin.v1beta.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.set(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder addProperties(com.google.analytics.admin.v1beta.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(value); - onChanged(); - } else { - propertiesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder addProperties( - int index, com.google.analytics.admin.v1beta.Property value) { - if (propertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePropertiesIsMutable(); - properties_.add(index, value); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder addProperties( - com.google.analytics.admin.v1beta.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder addProperties( - int index, com.google.analytics.admin.v1beta.Property.Builder builderForValue) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.add(index, builderForValue.build()); - onChanged(); - } else { - propertiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder addAllProperties( - java.lang.Iterable values) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, properties_); - onChanged(); - } else { - propertiesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder clearProperties() { - if (propertiesBuilder_ == null) { - properties_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - propertiesBuilder_.clear(); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public Builder removeProperties(int index) { - if (propertiesBuilder_ == null) { - ensurePropertiesIsMutable(); - properties_.remove(index); - onChanged(); - } else { - propertiesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public com.google.analytics.admin.v1beta.Property.Builder getPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().getBuilder(index); - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertiesOrBuilder( - int index) { - if (propertiesBuilder_ == null) { - return properties_.get(index); } else { - return propertiesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public java.util.List - getPropertiesOrBuilderList() { - if (propertiesBuilder_ != null) { - return propertiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(properties_); - } - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public com.google.analytics.admin.v1beta.Property.Builder addPropertiesBuilder() { - return getPropertiesFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.Property.getDefaultInstance()); - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public com.google.analytics.admin.v1beta.Property.Builder addPropertiesBuilder( - int index) { - return getPropertiesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.Property.getDefaultInstance()); - } - /** - *
-     * Results that matched the filter criteria and were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - public java.util.List - getPropertiesBuilderList() { - return getPropertiesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> - getPropertiesFieldBuilder() { - if (propertiesBuilder_ == null) { - propertiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder>( - properties_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - properties_ = null; - } - return propertiesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ListPropertiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ListPropertiesResponse) - private static final com.google.analytics.admin.v1beta.ListPropertiesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ListPropertiesResponse(); - } - - public static com.google.analytics.admin.v1beta.ListPropertiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPropertiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ListPropertiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java deleted file mode 100644 index 02f17dc7ff8f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ListPropertiesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ListPropertiesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ListPropertiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - java.util.List - getPropertiesList(); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - com.google.analytics.admin.v1beta.Property getProperties(int index); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - int getPropertiesCount(); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - java.util.List - getPropertiesOrBuilderList(); - /** - *
-   * Results that matched the filter criteria and were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.Property properties = 1; - */ - com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertiesOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java deleted file mode 100644 index 51f288cc322f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecret.java +++ /dev/null @@ -1,933 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A secret value used for sending hits to Measurement Protocol.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.MeasurementProtocolSecret} - */ -public final class MeasurementProtocolSecret extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.MeasurementProtocolSecret) - MeasurementProtocolSecretOrBuilder { -private static final long serialVersionUID = 0L; - // Use MeasurementProtocolSecret.newBuilder() to construct. - private MeasurementProtocolSecret(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private MeasurementProtocolSecret() { - name_ = ""; - displayName_ = ""; - secretValue_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new MeasurementProtocolSecret(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SECRET_VALUE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object secretValue_ = ""; - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The secretValue. - */ - @java.lang.Override - public java.lang.String getSecretValue() { - java.lang.Object ref = secretValue_; - 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(); - secretValue_ = s; - return s; - } - } - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for secretValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSecretValueBytes() { - java.lang.Object ref = secretValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secretValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretValue_); - } - 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(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretValue_); - } - 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.admin.v1beta.MeasurementProtocolSecret)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.MeasurementProtocolSecret other = (com.google.analytics.admin.v1beta.MeasurementProtocolSecret) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getSecretValue() - .equals(other.getSecretValue())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + SECRET_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getSecretValue().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.MeasurementProtocolSecret prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A secret value used for sending hits to Measurement Protocol.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.MeasurementProtocolSecret} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.MeasurementProtocolSecret) - com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.class, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.MeasurementProtocolSecret.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - secretValue_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret build() { - com.google.analytics.admin.v1beta.MeasurementProtocolSecret result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret buildPartial() { - com.google.analytics.admin.v1beta.MeasurementProtocolSecret result = new com.google.analytics.admin.v1beta.MeasurementProtocolSecret(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.MeasurementProtocolSecret result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.secretValue_ = secretValue_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.MeasurementProtocolSecret) { - return mergeFrom((com.google.analytics.admin.v1beta.MeasurementProtocolSecret)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.MeasurementProtocolSecret other) { - if (other == com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getSecretValue().isEmpty()) { - secretValue_ = other.secretValue_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - secretValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.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. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
-     * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this secret.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object secretValue_ = ""; - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The secretValue. - */ - public java.lang.String getSecretValue() { - java.lang.Object ref = secretValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - secretValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for secretValue. - */ - public com.google.protobuf.ByteString - getSecretValueBytes() { - java.lang.Object ref = secretValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - secretValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The secretValue to set. - * @return This builder for chaining. - */ - public Builder setSecretValue( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - secretValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearSecretValue() { - secretValue_ = getDefaultInstance().getSecretValue(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Output only. The measurement protocol secret value. Pass this value to the
-     * api_secret field of the Measurement Protocol API when sending hits to this
-     * secret's parent property.
-     * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for secretValue to set. - * @return This builder for chaining. - */ - public Builder setSecretValueBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - secretValue_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.MeasurementProtocolSecret) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.MeasurementProtocolSecret) - private static final com.google.analytics.admin.v1beta.MeasurementProtocolSecret DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.MeasurementProtocolSecret(); - } - - public static com.google.analytics.admin.v1beta.MeasurementProtocolSecret getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MeasurementProtocolSecret parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java deleted file mode 100644 index 98b8c54e79f3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/MeasurementProtocolSecretOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface MeasurementProtocolSecretOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.MeasurementProtocolSecret) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
-   * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Human-readable display name for this secret.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The secretValue. - */ - java.lang.String getSecretValue(); - /** - *
-   * Output only. The measurement protocol secret value. Pass this value to the
-   * api_secret field of the Measurement Protocol API when sending hits to this
-   * secret's parent property.
-   * 
- * - * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for secretValue. - */ - com.google.protobuf.ByteString - getSecretValueBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValue.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValue.java deleted file mode 100644 index 10881746a2a0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValue.java +++ /dev/null @@ -1,721 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * To represent a number.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.NumericValue} - */ -public final class NumericValue extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.NumericValue) - NumericValueOrBuilder { -private static final long serialVersionUID = 0L; - // Use NumericValue.newBuilder() to construct. - private NumericValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private NumericValue() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new NumericValue(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.NumericValue.class, com.google.analytics.admin.v1beta.NumericValue.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 { - INT64_VALUE(1), - DOUBLE_VALUE(2), - ONEVALUE_NOT_SET(0); - private final int value; - private OneValueCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static OneValueCase valueOf(int value) { - return forNumber(value); - } - - public static OneValueCase forNumber(int value) { - switch (value) { - case 1: return INT64_VALUE; - case 2: return DOUBLE_VALUE; - case 0: return ONEVALUE_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public OneValueCase - getOneValueCase() { - return OneValueCase.forNumber( - oneValueCase_); - } - - public static final int INT64_VALUE_FIELD_NUMBER = 1; - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - @java.lang.Override - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - @java.lang.Override - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - - public static final int DOUBLE_VALUE_FIELD_NUMBER = 2; - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (oneValueCase_ == 1) { - output.writeInt64( - 1, (long)((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - output.writeDouble( - 2, (double)((java.lang.Double) oneValue_)); - } - 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.CodedOutputStream - .computeInt64Size( - 1, (long)((java.lang.Long) oneValue_)); - } - if (oneValueCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeDoubleSize( - 2, (double)((java.lang.Double) 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.admin.v1beta.NumericValue)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.NumericValue other = (com.google.analytics.admin.v1beta.NumericValue) obj; - - if (!getOneValueCase().equals(other.getOneValueCase())) return false; - switch (oneValueCase_) { - case 1: - if (getInt64Value() - != other.getInt64Value()) return false; - break; - case 2: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits( - other.getDoubleValue())) return false; - break; - case 0: - default: - } - if (!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) + INT64_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getInt64Value()); - break; - case 2: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.NumericValue parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.NumericValue parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.NumericValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.NumericValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * To represent a number.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.NumericValue} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.NumericValue) - com.google.analytics.admin.v1beta.NumericValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.NumericValue.class, com.google.analytics.admin.v1beta.NumericValue.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.NumericValue.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - oneValueCase_ = 0; - oneValue_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AccessReportProto.internal_static_google_analytics_admin_v1beta_NumericValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValue getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValue build() { - com.google.analytics.admin.v1beta.NumericValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValue buildPartial() { - com.google.analytics.admin.v1beta.NumericValue result = new com.google.analytics.admin.v1beta.NumericValue(this); - if (bitField0_ != 0) { buildPartial0(result); } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.NumericValue result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.analytics.admin.v1beta.NumericValue result) { - result.oneValueCase_ = oneValueCase_; - result.oneValue_ = this.oneValue_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.NumericValue) { - return mergeFrom((com.google.analytics.admin.v1beta.NumericValue)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.NumericValue other) { - if (other == com.google.analytics.admin.v1beta.NumericValue.getDefaultInstance()) return this; - switch (other.getOneValueCase()) { - case INT64_VALUE: { - setInt64Value(other.getInt64Value()); - break; - } - case DOUBLE_VALUE: { - setDoubleValue(other.getDoubleValue()); - break; - } - case ONEVALUE_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - oneValue_ = input.readInt64(); - oneValueCase_ = 1; - break; - } // case 8 - case 17: { - oneValue_ = input.readDouble(); - oneValueCase_ = 2; - break; - } // case 17 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int oneValueCase_ = 0; - private java.lang.Object oneValue_; - public OneValueCase - getOneValueCase() { - return OneValueCase.forNumber( - oneValueCase_); - } - - public Builder clearOneValue() { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - public boolean hasInt64Value() { - return oneValueCase_ == 1; - } - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - public long getInt64Value() { - if (oneValueCase_ == 1) { - return (java.lang.Long) oneValue_; - } - return 0L; - } - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @param value The int64Value to set. - * @return This builder for chaining. - */ - public Builder setInt64Value(long value) { - - oneValueCase_ = 1; - oneValue_ = value; - onChanged(); - return this; - } - /** - *
-     * Integer value
-     * 
- * - * int64 int64_value = 1; - * @return This builder for chaining. - */ - public Builder clearInt64Value() { - if (oneValueCase_ == 1) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return oneValueCase_ == 2; - } - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - public double getDoubleValue() { - if (oneValueCase_ == 2) { - return (java.lang.Double) oneValue_; - } - return 0D; - } - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - - oneValueCase_ = 2; - oneValue_ = value; - onChanged(); - return this; - } - /** - *
-     * Double value
-     * 
- * - * double double_value = 2; - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (oneValueCase_ == 2) { - oneValueCase_ = 0; - oneValue_ = null; - onChanged(); - } - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.NumericValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.NumericValue) - private static final com.google.analytics.admin.v1beta.NumericValue DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.NumericValue(); - } - - public static com.google.analytics.admin.v1beta.NumericValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public NumericValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.NumericValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValueOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValueOrBuilder.java deleted file mode 100644 index 1ffb3acbf69c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/NumericValueOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/access_report.proto - -package com.google.analytics.admin.v1beta; - -public interface NumericValueOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.NumericValue) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return Whether the int64Value field is set. - */ - boolean hasInt64Value(); - /** - *
-   * Integer value
-   * 
- * - * int64 int64_value = 1; - * @return The int64Value. - */ - long getInt64Value(); - - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - /** - *
-   * Double value
-   * 
- * - * double double_value = 2; - * @return The doubleValue. - */ - double getDoubleValue(); - - com.google.analytics.admin.v1beta.NumericValue.OneValueCase getOneValueCase(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java deleted file mode 100644 index 5dc660abfaac..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/Property.java +++ /dev/null @@ -1,2904 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A resource message representing a Google Analytics GA4 property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.Property} - */ -public final class Property extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.Property) - PropertyOrBuilder { -private static final long serialVersionUID = 0L; - // Use Property.newBuilder() to construct. - private Property(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Property() { - name_ = ""; - propertyType_ = 0; - parent_ = ""; - displayName_ = ""; - industryCategory_ = 0; - timeZone_ = ""; - currencyCode_ = ""; - serviceLevel_ = 0; - account_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Property(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Property_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.Property.class, com.google.analytics.admin.v1beta.Property.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_TYPE_FIELD_NUMBER = 14; - private int propertyType_ = 0; - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The propertyType. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { - com.google.analytics.admin.v1beta.PropertyType result = com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; - } - - public static final int CREATE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp createTime_; - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return createTime_ != null; - } - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - public static final int UPDATE_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp updateTime_; - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return updateTime_ != null; - } - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int PARENT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INDUSTRY_CATEGORY_FIELD_NUMBER = 6; - private int industryCategory_ = 0; - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return The enum numeric value on the wire for industryCategory. - */ - @java.lang.Override public int getIndustryCategoryValue() { - return industryCategory_; - } - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return The industryCategory. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.IndustryCategory getIndustryCategory() { - com.google.analytics.admin.v1beta.IndustryCategory result = com.google.analytics.admin.v1beta.IndustryCategory.forNumber(industryCategory_); - return result == null ? com.google.analytics.admin.v1beta.IndustryCategory.UNRECOGNIZED : result; - } - - public static final int TIME_ZONE_FIELD_NUMBER = 7; - @SuppressWarnings("serial") - private volatile java.lang.Object timeZone_ = ""; - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The timeZone. - */ - @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for timeZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CURRENCY_CODE_FIELD_NUMBER = 8; - @SuppressWarnings("serial") - private volatile java.lang.Object currencyCode_ = ""; - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The currencyCode. - */ - @java.lang.Override - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - 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(); - currencyCode_ = s; - return s; - } - } - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The bytes for currencyCode. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_LEVEL_FIELD_NUMBER = 10; - private int serviceLevel_ = 0; - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for serviceLevel. - */ - @java.lang.Override public int getServiceLevelValue() { - return serviceLevel_; - } - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The serviceLevel. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.ServiceLevel getServiceLevel() { - com.google.analytics.admin.v1beta.ServiceLevel result = com.google.analytics.admin.v1beta.ServiceLevel.forNumber(serviceLevel_); - return result == null ? com.google.analytics.admin.v1beta.ServiceLevel.UNRECOGNIZED : result; - } - - public static final int DELETE_TIME_FIELD_NUMBER = 11; - private com.google.protobuf.Timestamp deleteTime_; - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deleteTime field is set. - */ - @java.lang.Override - public boolean hasDeleteTime() { - return deleteTime_ != null; - } - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleteTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getDeleteTime() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 12; - private com.google.protobuf.Timestamp expireTime_; - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the expireTime field is set. - */ - @java.lang.Override - public boolean hasExpireTime() { - return expireTime_ != null; - } - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The expireTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExpireTime() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - - public static final int ACCOUNT_FIELD_NUMBER = 13; - @SuppressWarnings("serial") - private volatile java.lang.Object account_ = ""; - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - 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(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - if (createTime_ != null) { - output.writeMessage(3, getCreateTime()); - } - if (updateTime_ != null) { - output.writeMessage(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); - } - if (industryCategory_ != com.google.analytics.admin.v1beta.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED.getNumber()) { - output.writeEnum(6, industryCategory_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); - } - if (serviceLevel_ != com.google.analytics.admin.v1beta.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { - output.writeEnum(10, serviceLevel_); - } - if (deleteTime_ != null) { - output.writeMessage(11, getDeleteTime()); - } - if (expireTime_ != null) { - output.writeMessage(12, getExpireTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 13, account_); - } - if (propertyType_ != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(14, propertyType_); - } - 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(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); - } - if (updateTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getUpdateTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); - } - if (industryCategory_ != com.google.analytics.admin.v1beta.IndustryCategory.INDUSTRY_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, industryCategory_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); - } - if (serviceLevel_ != com.google.analytics.admin.v1beta.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, serviceLevel_); - } - if (deleteTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(11, getDeleteTime()); - } - if (expireTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(12, getExpireTime()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, account_); - } - if (propertyType_ != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(14, propertyType_); - } - 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.admin.v1beta.Property)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.Property other = (com.google.analytics.admin.v1beta.Property) obj; - - if (!getName() - .equals(other.getName())) return false; - if (propertyType_ != other.propertyType_) return false; - if (hasCreateTime() != other.hasCreateTime()) return false; - if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; - } - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime() - .equals(other.getUpdateTime())) return false; - } - if (!getParent() - .equals(other.getParent())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (industryCategory_ != other.industryCategory_) return false; - if (!getTimeZone() - .equals(other.getTimeZone())) return false; - if (!getCurrencyCode() - .equals(other.getCurrencyCode())) return false; - if (serviceLevel_ != other.serviceLevel_) return false; - if (hasDeleteTime() != other.hasDeleteTime()) return false; - if (hasDeleteTime()) { - if (!getDeleteTime() - .equals(other.getDeleteTime())) return false; - } - if (hasExpireTime() != other.hasExpireTime()) return false; - if (hasExpireTime()) { - if (!getExpireTime() - .equals(other.getExpireTime())) return false; - } - if (!getAccount() - .equals(other.getAccount())) 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) + PROPERTY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + propertyType_; - if (hasCreateTime()) { - hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getCreateTime().hashCode(); - } - if (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + INDUSTRY_CATEGORY_FIELD_NUMBER; - hash = (53 * hash) + industryCategory_; - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; - hash = (53 * hash) + getCurrencyCode().hashCode(); - hash = (37 * hash) + SERVICE_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + serviceLevel_; - if (hasDeleteTime()) { - hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getDeleteTime().hashCode(); - } - if (hasExpireTime()) { - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - } - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.Property parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.Property parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Property parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.Property parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Property parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.Property parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Property parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.Property parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.Property parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.Property parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.Property parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.Property parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.Property prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A resource message representing a Google Analytics GA4 property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.Property} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.Property) - com.google.analytics.admin.v1beta.PropertyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Property_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.Property.class, com.google.analytics.admin.v1beta.Property.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.Property.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - propertyType_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - parent_ = ""; - displayName_ = ""; - industryCategory_ = 0; - timeZone_ = ""; - currencyCode_ = ""; - serviceLevel_ = 0; - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - account_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_Property_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Property getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.Property.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Property build() { - com.google.analytics.admin.v1beta.Property result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Property buildPartial() { - com.google.analytics.admin.v1beta.Property result = new com.google.analytics.admin.v1beta.Property(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.Property result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.propertyType_ = propertyType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null - ? updateTime_ - : updateTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.industryCategory_ = industryCategory_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.timeZone_ = timeZone_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.currencyCode_ = currencyCode_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.serviceLevel_ = serviceLevel_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.deleteTime_ = deleteTimeBuilder_ == null - ? deleteTime_ - : deleteTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000800) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null - ? expireTime_ - : expireTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.account_ = account_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.Property) { - return mergeFrom((com.google.analytics.admin.v1beta.Property)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.Property other) { - if (other == com.google.analytics.admin.v1beta.Property.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.propertyType_ != 0) { - setPropertyTypeValue(other.getPropertyTypeValue()); - } - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000020; - onChanged(); - } - if (other.industryCategory_ != 0) { - setIndustryCategoryValue(other.getIndustryCategoryValue()); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getCurrencyCode().isEmpty()) { - currencyCode_ = other.currencyCode_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.serviceLevel_ != 0) { - setServiceLevelValue(other.getServiceLevelValue()); - } - if (other.hasDeleteTime()) { - mergeDeleteTime(other.getDeleteTime()); - } - if (other.hasExpireTime()) { - mergeExpireTime(other.getExpireTime()); - } - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - bitField0_ |= 0x00001000; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getUpdateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 42 - case 48: { - industryCategory_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 48 - case 58: { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 58 - case 66: { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 66 - case 80: { - serviceLevel_ = input.readEnum(); - bitField0_ |= 0x00000200; - break; - } // case 80 - case 90: { - input.readMessage( - getDeleteTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 98: { - input.readMessage( - getExpireTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 98 - case 106: { - account_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; - break; - } // case 106 - case 112: { - propertyType_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 112 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Output only. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.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. Resource name of this property.
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int propertyType_ = 0; - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The enum numeric value on the wire for propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyTypeValue(int value) { - propertyType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The propertyType. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { - com.google.analytics.admin.v1beta.PropertyType result = com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyType(com.google.analytics.admin.v1beta.PropertyType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - propertyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Immutable. The property type for this Property resource. When creating a
-     * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-     * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-     * types cannot yet be created with the Google Analytics Admin API.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearPropertyType() { - bitField0_ = (bitField0_ & ~0x00000002); - propertyType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - public com.google.protobuf.Timestamp getCreateTime() { - if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } else { - return createTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000004); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getCreateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - } - /** - *
-     * Output only. Time when the entity was originally created.
-     * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getCreateTimeFieldBuilder() { - if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); - createTime_ = null; - } - return createTimeBuilder_; - } - - private com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000008) != 0); - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setUpdateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - updateTime_ != null && - updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000008); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return getUpdateTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - } - /** - *
-     * Output only. Time when entity payload fields were last updated.
-     * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getUpdateTimeFieldBuilder() { - if (updateTimeBuilder_ == null) { - updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getUpdateTime(), - getParentForChildren(), - isClean()); - updateTime_ = null; - } - return updateTimeBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - /** - *
-     * Immutable. Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/101"
-     * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - *
-     * Required. Human-readable display name for this property.
-     *
-     * The max allowed display name length is 100 UTF-16 code units.
-     * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private int industryCategory_ = 0; - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return The enum numeric value on the wire for industryCategory. - */ - @java.lang.Override public int getIndustryCategoryValue() { - return industryCategory_; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @param value The enum numeric value on the wire for industryCategory to set. - * @return This builder for chaining. - */ - public Builder setIndustryCategoryValue(int value) { - industryCategory_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return The industryCategory. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.IndustryCategory getIndustryCategory() { - com.google.analytics.admin.v1beta.IndustryCategory result = com.google.analytics.admin.v1beta.IndustryCategory.forNumber(industryCategory_); - return result == null ? com.google.analytics.admin.v1beta.IndustryCategory.UNRECOGNIZED : result; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @param value The industryCategory to set. - * @return This builder for chaining. - */ - public Builder setIndustryCategory(com.google.analytics.admin.v1beta.IndustryCategory value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - industryCategory_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Industry associated with this property
-     * Example: AUTOMOTIVE, FOOD_AND_DRINK
-     * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return This builder for chaining. - */ - public Builder clearIndustryCategory() { - bitField0_ = (bitField0_ & ~0x00000040); - industryCategory_ = 0; - onChanged(); - return this; - } - - private java.lang.Object timeZone_ = ""; - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - timeZone_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - /** - *
-     * Required. Reporting Time Zone, used as the day boundary for reports,
-     * regardless of where the data originates. If the time zone honors DST,
-     * Analytics will automatically adjust for the changes.
-     *
-     * NOTE: Changing the time zone only affects data going forward, and is not
-     * applied retroactively.
-     *
-     * Format: https://www.iana.org/time-zones
-     * Example: "America/Los_Angeles"
-     * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - timeZone_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object currencyCode_ = ""; - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @return The currencyCode. - */ - public java.lang.String getCurrencyCode() { - java.lang.Object ref = currencyCode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - currencyCode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @return The bytes for currencyCode. - */ - public com.google.protobuf.ByteString - getCurrencyCodeBytes() { - java.lang.Object ref = currencyCode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - currencyCode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @param value The currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - currencyCode_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @return This builder for chaining. - */ - public Builder clearCurrencyCode() { - currencyCode_ = getDefaultInstance().getCurrencyCode(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * The currency type used in reports involving monetary values.
-     *
-     *
-     * Format: https://en.wikipedia.org/wiki/ISO_4217
-     * Examples: "USD", "EUR", "JPY"
-     * 
- * - * string currency_code = 8; - * @param value The bytes for currencyCode to set. - * @return This builder for chaining. - */ - public Builder setCurrencyCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - currencyCode_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private int serviceLevel_ = 0; - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for serviceLevel. - */ - @java.lang.Override public int getServiceLevelValue() { - return serviceLevel_; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The enum numeric value on the wire for serviceLevel to set. - * @return This builder for chaining. - */ - public Builder setServiceLevelValue(int value) { - serviceLevel_ = value; - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The serviceLevel. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ServiceLevel getServiceLevel() { - com.google.analytics.admin.v1beta.ServiceLevel result = com.google.analytics.admin.v1beta.ServiceLevel.forNumber(serviceLevel_); - return result == null ? com.google.analytics.admin.v1beta.ServiceLevel.UNRECOGNIZED : result; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The serviceLevel to set. - * @return This builder for chaining. - */ - public Builder setServiceLevel(com.google.analytics.admin.v1beta.ServiceLevel value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000200; - serviceLevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * Output only. The Google Analytics service level that applies to this
-     * property.
-     * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearServiceLevel() { - bitField0_ = (bitField0_ & ~0x00000200); - serviceLevel_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp deleteTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> deleteTimeBuilder_; - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deleteTime field is set. - */ - public boolean hasDeleteTime() { - return ((bitField0_ & 0x00000400) != 0); - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleteTime. - */ - public com.google.protobuf.Timestamp getDeleteTime() { - if (deleteTimeBuilder_ == null) { - return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } else { - return deleteTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - deleteTime_ = value; - } else { - deleteTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setDeleteTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (deleteTimeBuilder_ == null) { - deleteTime_ = builderForValue.build(); - } else { - deleteTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { - if (deleteTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && - deleteTime_ != null && - deleteTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getDeleteTimeBuilder().mergeFrom(value); - } else { - deleteTime_ = value; - } - } else { - deleteTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearDeleteTime() { - bitField0_ = (bitField0_ & ~0x00000400); - deleteTime_ = null; - if (deleteTimeBuilder_ != null) { - deleteTimeBuilder_.dispose(); - deleteTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - bitField0_ |= 0x00000400; - onChanged(); - return getDeleteTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { - if (deleteTimeBuilder_ != null) { - return deleteTimeBuilder_.getMessageOrBuilder(); - } else { - return deleteTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; - } - } - /** - *
-     * Output only. If set, the time at which this property was trashed. If not
-     * set, then this property is not currently in the trash can.
-     * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getDeleteTimeFieldBuilder() { - if (deleteTimeBuilder_ == null) { - deleteTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getDeleteTime(), - getParentForChildren(), - isClean()); - deleteTime_ = null; - } - return deleteTimeBuilder_; - } - - private com.google.protobuf.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> expireTimeBuilder_; - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the expireTime field is set. - */ - public boolean hasExpireTime() { - return ((bitField0_ & 0x00000800) != 0); - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The expireTime. - */ - public com.google.protobuf.Timestamp getExpireTime() { - if (expireTimeBuilder_ == null) { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } else { - return expireTimeBuilder_.getMessage(); - } - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireTime_ = value; - } else { - expireTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder setExpireTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (expireTimeBuilder_ == null) { - expireTime_ = builderForValue.build(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) && - expireTime_ != null && - expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getExpireTimeBuilder().mergeFrom(value); - } else { - expireTime_ = value; - } - } else { - expireTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public Builder clearExpireTime() { - bitField0_ = (bitField0_ & ~0x00000800); - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return getExpireTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - if (expireTimeBuilder_ != null) { - return expireTimeBuilder_.getMessageOrBuilder(); - } else { - return expireTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - } - /** - *
-     * Output only. If set, the time at which this trashed property will be
-     * permanently deleted. If not set, then this property is not currently in the
-     * trash can and is not slated to be deleted.
-     * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), - getParentForChildren(), - isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - - private java.lang.Object account_ = ""; - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The account. - */ - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @param value The account to set. - * @return This builder for chaining. - */ - public Builder setAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - account_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearAccount() { - account_ = getDefaultInstance().getAccount(); - bitField0_ = (bitField0_ & ~0x00001000); - onChanged(); - return this; - } - /** - *
-     * Immutable. The resource name of the parent account
-     * Format: accounts/{account_id}
-     * Example: "accounts/123"
-     * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - account_ = value; - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.Property) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.Property) - private static final com.google.analytics.admin.v1beta.Property DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.Property(); - } - - public static com.google.analytics.admin.v1beta.Property getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Property parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.Property getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java deleted file mode 100644 index b89d650945ac..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyOrBuilder.java +++ /dev/null @@ -1,357 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface PropertyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.Property) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Output only. Resource name of this property.
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The enum numeric value on the wire for propertyType. - */ - int getPropertyTypeValue(); - /** - *
-   * Immutable. The property type for this Property resource. When creating a
-   * property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then
-   * "ORDINARY_PROPERTY" will be implied. "SUBPROPERTY" and "ROLLUP_PROPERTY"
-   * types cannot yet be created with the Google Analytics Admin API.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 14 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The propertyType. - */ - com.google.analytics.admin.v1beta.PropertyType getPropertyType(); - - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - /** - *
-   * Output only. Time when the entity was originally created.
-   * 
- * - * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - /** - *
-   * Output only. Time when entity payload fields were last updated.
-   * 
- * - * .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Immutable. Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/101"
-   * 
- * - * string parent = 2 [(.google.api.field_behavior) = IMMUTABLE]; - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Required. Human-readable display name for this property.
-   *
-   * The max allowed display name length is 100 UTF-16 code units.
-   * 
- * - * string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return The enum numeric value on the wire for industryCategory. - */ - int getIndustryCategoryValue(); - /** - *
-   * Industry associated with this property
-   * Example: AUTOMOTIVE, FOOD_AND_DRINK
-   * 
- * - * .google.analytics.admin.v1beta.IndustryCategory industry_category = 6; - * @return The industryCategory. - */ - com.google.analytics.admin.v1beta.IndustryCategory getIndustryCategory(); - - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The timeZone. - */ - java.lang.String getTimeZone(); - /** - *
-   * Required. Reporting Time Zone, used as the day boundary for reports,
-   * regardless of where the data originates. If the time zone honors DST,
-   * Analytics will automatically adjust for the changes.
-   *
-   * NOTE: Changing the time zone only affects data going forward, and is not
-   * applied retroactively.
-   *
-   * Format: https://www.iana.org/time-zones
-   * Example: "America/Los_Angeles"
-   * 
- * - * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString - getTimeZoneBytes(); - - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The currencyCode. - */ - java.lang.String getCurrencyCode(); - /** - *
-   * The currency type used in reports involving monetary values.
-   *
-   *
-   * Format: https://en.wikipedia.org/wiki/ISO_4217
-   * Examples: "USD", "EUR", "JPY"
-   * 
- * - * string currency_code = 8; - * @return The bytes for currencyCode. - */ - com.google.protobuf.ByteString - getCurrencyCodeBytes(); - - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The enum numeric value on the wire for serviceLevel. - */ - int getServiceLevelValue(); - /** - *
-   * Output only. The Google Analytics service level that applies to this
-   * property.
-   * 
- * - * .google.analytics.admin.v1beta.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The serviceLevel. - */ - com.google.analytics.admin.v1beta.ServiceLevel getServiceLevel(); - - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the deleteTime field is set. - */ - boolean hasDeleteTime(); - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The deleteTime. - */ - com.google.protobuf.Timestamp getDeleteTime(); - /** - *
-   * Output only. If set, the time at which this property was trashed. If not
-   * set, then this property is not currently in the trash can.
-   * 
- * - * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); - - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return Whether the expireTime field is set. - */ - boolean hasExpireTime(); - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The expireTime. - */ - com.google.protobuf.Timestamp getExpireTime(); - /** - *
-   * Output only. If set, the time at which this trashed property will be
-   * permanently deleted. If not set, then this property is not currently in the
-   * trash can and is not slated to be deleted.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - */ - com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); - - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The account. - */ - java.lang.String getAccount(); - /** - *
-   * Immutable. The resource name of the parent account
-   * Format: accounts/{account_id}
-   * Example: "accounts/123"
-   * 
- * - * string account = 13 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - com.google.protobuf.ByteString - getAccountBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java deleted file mode 100644 index 6922a433234c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummary.java +++ /dev/null @@ -1,1069 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * A virtual resource representing metadata for a GA4 property.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.PropertySummary} - */ -public final class PropertySummary extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.PropertySummary) - PropertySummaryOrBuilder { -private static final long serialVersionUID = 0L; - // Use PropertySummary.newBuilder() to construct. - private PropertySummary(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PropertySummary() { - property_ = ""; - displayName_ = ""; - propertyType_ = 0; - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PropertySummary(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.PropertySummary.class, com.google.analytics.admin.v1beta.PropertySummary.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_TYPE_FIELD_NUMBER = 3; - private int propertyType_ = 0; - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return The propertyType. - */ - @java.lang.Override public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { - com.google.analytics.admin.v1beta.PropertyType result = com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; - } - - public static final int PARENT_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); - } - if (propertyType_ != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(3, propertyType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parent_); - } - 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(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); - } - if (propertyType_ != com.google.analytics.admin.v1beta.PropertyType.PROPERTY_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, propertyType_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, parent_); - } - 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.admin.v1beta.PropertySummary)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.PropertySummary other = (com.google.analytics.admin.v1beta.PropertySummary) obj; - - if (!getProperty() - .equals(other.getProperty())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (propertyType_ != other.propertyType_) return false; - if (!getParent() - .equals(other.getParent())) 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) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + PROPERTY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + propertyType_; - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.PropertySummary parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.PropertySummary parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.PropertySummary parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.PropertySummary prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * A virtual resource representing metadata for a GA4 property.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.PropertySummary} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.PropertySummary) - com.google.analytics.admin.v1beta.PropertySummaryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.PropertySummary.class, com.google.analytics.admin.v1beta.PropertySummary.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.PropertySummary.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = ""; - displayName_ = ""; - propertyType_ = 0; - parent_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.ResourcesProto.internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertySummary getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertySummary build() { - com.google.analytics.admin.v1beta.PropertySummary result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertySummary buildPartial() { - com.google.analytics.admin.v1beta.PropertySummary result = new com.google.analytics.admin.v1beta.PropertySummary(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.PropertySummary result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.propertyType_ = propertyType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.parent_ = parent_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.PropertySummary) { - return mergeFrom((com.google.analytics.admin.v1beta.PropertySummary)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.PropertySummary other) { - if (other == com.google.analytics.admin.v1beta.PropertySummary.getDefaultInstance()) return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.propertyType_ != 0) { - setPropertyTypeValue(other.getPropertyTypeValue()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000008; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - propertyType_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object property_ = ""; - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Resource name of property referred to by this property summary
-     * Format: properties/{property_id}
-     * Example: "properties/1000"
-     * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Display name for the property referred to in this property summary.
-     * 
- * - * string display_name = 2; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int propertyType_ = 0; - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return The enum numeric value on the wire for propertyType. - */ - @java.lang.Override public int getPropertyTypeValue() { - return propertyType_; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @param value The enum numeric value on the wire for propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyTypeValue(int value) { - propertyType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return The propertyType. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertyType getPropertyType() { - com.google.analytics.admin.v1beta.PropertyType result = com.google.analytics.admin.v1beta.PropertyType.forNumber(propertyType_); - return result == null ? com.google.analytics.admin.v1beta.PropertyType.UNRECOGNIZED : result; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @param value The propertyType to set. - * @return This builder for chaining. - */ - public Builder setPropertyType(com.google.analytics.admin.v1beta.PropertyType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - propertyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
-     * The property's property type.
-     * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return This builder for chaining. - */ - public Builder clearPropertyType() { - bitField0_ = (bitField0_ & ~0x00000004); - propertyType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - parent_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Resource name of this property's logical parent.
-     *
-     * Note: The Property-Moving UI can be used to change the parent.
-     * Format: accounts/{account}, properties/{property}
-     * Example: "accounts/100", "properties/200"
-     * 
- * - * string parent = 4; - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.PropertySummary) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.PropertySummary) - private static final com.google.analytics.admin.v1beta.PropertySummary DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.PropertySummary(); - } - - public static com.google.analytics.admin.v1beta.PropertySummary getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PropertySummary parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertySummary getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java deleted file mode 100644 index f132a93bb090..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertySummaryOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public interface PropertySummaryOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.PropertySummary) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Resource name of property referred to by this property summary
-   * Format: properties/{property_id}
-   * Example: "properties/1000"
-   * 
- * - * string property = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
-   * Display name for the property referred to in this property summary.
-   * 
- * - * string display_name = 2; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return The enum numeric value on the wire for propertyType. - */ - int getPropertyTypeValue(); - /** - *
-   * The property's property type.
-   * 
- * - * .google.analytics.admin.v1beta.PropertyType property_type = 3; - * @return The propertyType. - */ - com.google.analytics.admin.v1beta.PropertyType getPropertyType(); - - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The parent. - */ - java.lang.String getParent(); - /** - *
-   * Resource name of this property's logical parent.
-   *
-   * Note: The Property-Moving UI can be used to change the parent.
-   * Format: accounts/{account}, properties/{property}
-   * Example: "accounts/100", "properties/200"
-   * 
- * - * string parent = 4; - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java deleted file mode 100644 index 054b81c31a6a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/PropertyType.java +++ /dev/null @@ -1,167 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Types of Property resources.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.PropertyType} - */ -public enum PropertyType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Unknown or unspecified property type
-   * 
- * - * PROPERTY_TYPE_UNSPECIFIED = 0; - */ - PROPERTY_TYPE_UNSPECIFIED(0), - /** - *
-   * Ordinary GA4 property
-   * 
- * - * PROPERTY_TYPE_ORDINARY = 1; - */ - PROPERTY_TYPE_ORDINARY(1), - /** - *
-   * GA4 subproperty
-   * 
- * - * PROPERTY_TYPE_SUBPROPERTY = 2; - */ - PROPERTY_TYPE_SUBPROPERTY(2), - /** - *
-   * GA4 rollup property
-   * 
- * - * PROPERTY_TYPE_ROLLUP = 3; - */ - PROPERTY_TYPE_ROLLUP(3), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Unknown or unspecified property type
-   * 
- * - * PROPERTY_TYPE_UNSPECIFIED = 0; - */ - public static final int PROPERTY_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
-   * Ordinary GA4 property
-   * 
- * - * PROPERTY_TYPE_ORDINARY = 1; - */ - public static final int PROPERTY_TYPE_ORDINARY_VALUE = 1; - /** - *
-   * GA4 subproperty
-   * 
- * - * PROPERTY_TYPE_SUBPROPERTY = 2; - */ - public static final int PROPERTY_TYPE_SUBPROPERTY_VALUE = 2; - /** - *
-   * GA4 rollup property
-   * 
- * - * PROPERTY_TYPE_ROLLUP = 3; - */ - public static final int PROPERTY_TYPE_ROLLUP_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 PropertyType 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 PropertyType forNumber(int value) { - switch (value) { - case 0: return PROPERTY_TYPE_UNSPECIFIED; - case 1: return PROPERTY_TYPE_ORDINARY; - case 2: return PROPERTY_TYPE_SUBPROPERTY; - case 3: return PROPERTY_TYPE_ROLLUP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PropertyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PropertyType findValueByNumber(int number) { - return PropertyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(5); - } - - private static final PropertyType[] VALUES = values(); - - public static PropertyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PropertyType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.PropertyType) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java deleted file mode 100644 index bc473b665991..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for ProvisionAccountTicket RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketRequest} - */ -public final class ProvisionAccountTicketRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) - ProvisionAccountTicketRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProvisionAccountTicketRequest.newBuilder() to construct. - private ProvisionAccountTicketRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProvisionAccountTicketRequest() { - redirectUri_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProvisionAccountTicketRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.class, com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.Account account_; - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return account_ != null; - } - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Account getAccount() { - return account_ == null ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { - return account_ == null ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } - - public static final int REDIRECT_URI_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object redirectUri_ = ""; - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The redirectUri. - */ - @java.lang.Override - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - 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(); - redirectUri_ = s; - return s; - } - } - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The bytes for redirectUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirectUri_ = 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 (account_ != null) { - output.writeMessage(1, getAccount()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccount()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); - } - 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.admin.v1beta.ProvisionAccountTicketRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest other = (com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) obj; - - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; - } - if (!getRedirectUri() - .equals(other.getRedirectUri())) 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 (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - } - hash = (37 * hash) + REDIRECT_URI_FIELD_NUMBER; - hash = (53 * hash) + getRedirectUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for ProvisionAccountTicket RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.class, com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - redirectUri_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest build() { - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest buildPartial() { - com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest result = new com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.account_ = accountBuilder_ == null - ? account_ - : accountBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.redirectUri_ = redirectUri_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest other) { - if (other == com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest.getDefaultInstance()) return this; - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - if (!other.getRedirectUri().isEmpty()) { - redirectUri_ = other.redirectUri_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAccountFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - redirectUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.Account account_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> accountBuilder_; - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return Whether the account field is set. - */ - public boolean hasAccount() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return The account. - */ - public com.google.analytics.admin.v1beta.Account getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } else { - return accountBuilder_.getMessage(); - } - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder setAccount(com.google.analytics.admin.v1beta.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - account_ = value; - } else { - accountBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder setAccount( - com.google.analytics.admin.v1beta.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder mergeAccount(com.google.analytics.admin.v1beta.Account value) { - if (accountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - account_ != null && - account_ != com.google.analytics.admin.v1beta.Account.getDefaultInstance()) { - getAccountBuilder().mergeFrom(value); - } else { - account_ = value; - } - } else { - accountBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public Builder clearAccount() { - bitField0_ = (bitField0_ & ~0x00000001); - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public com.google.analytics.admin.v1beta.Account.Builder getAccountBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAccountFieldBuilder().getBuilder(); - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); - } else { - return account_ == null ? - com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } - } - /** - *
-     * The account to create.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; - } - return accountBuilder_; - } - - private java.lang.Object redirectUri_ = ""; - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @return The redirectUri. - */ - public java.lang.String getRedirectUri() { - java.lang.Object ref = redirectUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - redirectUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @return The bytes for redirectUri. - */ - public com.google.protobuf.ByteString - getRedirectUriBytes() { - java.lang.Object ref = redirectUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - redirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @param value The redirectUri to set. - * @return This builder for chaining. - */ - public Builder setRedirectUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - redirectUri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @return This builder for chaining. - */ - public Builder clearRedirectUri() { - redirectUri_ = getDefaultInstance().getRedirectUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Redirect URI where the user will be sent after accepting Terms of Service.
-     * Must be configured in Cloud Console as a Redirect URI.
-     * 
- * - * string redirect_uri = 2; - * @param value The bytes for redirectUri to set. - * @return This builder for chaining. - */ - public Builder setRedirectUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - redirectUri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) - private static final com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest(); - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProvisionAccountTicketRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java deleted file mode 100644 index a7046d2362ca..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ProvisionAccountTicketRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ProvisionAccountTicketRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - * @return The account. - */ - com.google.analytics.admin.v1beta.Account getAccount(); - /** - *
-   * The account to create.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1; - */ - com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder(); - - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The redirectUri. - */ - java.lang.String getRedirectUri(); - /** - *
-   * Redirect URI where the user will be sent after accepting Terms of Service.
-   * Must be configured in Cloud Console as a Redirect URI.
-   * 
- * - * string redirect_uri = 2; - * @return The bytes for redirectUri. - */ - com.google.protobuf.ByteString - getRedirectUriBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java deleted file mode 100644 index 6f4a3078daad..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponse.java +++ /dev/null @@ -1,577 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for ProvisionAccountTicket RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketResponse} - */ -public final class ProvisionAccountTicketResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) - ProvisionAccountTicketResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ProvisionAccountTicketResponse.newBuilder() to construct. - private ProvisionAccountTicketResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ProvisionAccountTicketResponse() { - accountTicketId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ProvisionAccountTicketResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.class, com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.Builder.class); - } - - public static final int ACCOUNT_TICKET_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object accountTicketId_ = ""; - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The accountTicketId. - */ - @java.lang.Override - public java.lang.String getAccountTicketId() { - java.lang.Object ref = accountTicketId_; - 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(); - accountTicketId_ = s; - return s; - } - } - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The bytes for accountTicketId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountTicketIdBytes() { - java.lang.Object ref = accountTicketId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountTicketId_ = 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(accountTicketId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountTicketId_); - } - 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(accountTicketId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountTicketId_); - } - 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.admin.v1beta.ProvisionAccountTicketResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse other = (com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse) obj; - - if (!getAccountTicketId() - .equals(other.getAccountTicketId())) 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) + ACCOUNT_TICKET_ID_FIELD_NUMBER; - hash = (53 * hash) + getAccountTicketId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for ProvisionAccountTicket RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.ProvisionAccountTicketResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.class, com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - accountTicketId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_ProvisionAccountTicketResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse build() { - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse buildPartial() { - com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse result = new com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.accountTicketId_ = accountTicketId_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse other) { - if (other == com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse.getDefaultInstance()) return this; - if (!other.getAccountTicketId().isEmpty()) { - accountTicketId_ = other.accountTicketId_; - bitField0_ |= 0x00000001; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - accountTicketId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object accountTicketId_ = ""; - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @return The accountTicketId. - */ - public java.lang.String getAccountTicketId() { - java.lang.Object ref = accountTicketId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountTicketId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @return The bytes for accountTicketId. - */ - public com.google.protobuf.ByteString - getAccountTicketIdBytes() { - java.lang.Object ref = accountTicketId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountTicketId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @param value The accountTicketId to set. - * @return This builder for chaining. - */ - public Builder setAccountTicketId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - accountTicketId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @return This builder for chaining. - */ - public Builder clearAccountTicketId() { - accountTicketId_ = getDefaultInstance().getAccountTicketId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The param to be passed in the ToS link.
-     * 
- * - * string account_ticket_id = 1; - * @param value The bytes for accountTicketId to set. - * @return This builder for chaining. - */ - public Builder setAccountTicketIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - accountTicketId_ = 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.admin.v1beta.ProvisionAccountTicketResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) - private static final com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse(); - } - - public static com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProvisionAccountTicketResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.ProvisionAccountTicketResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java deleted file mode 100644 index a36b49d849a6..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ProvisionAccountTicketResponseOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface ProvisionAccountTicketResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.ProvisionAccountTicketResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The accountTicketId. - */ - java.lang.String getAccountTicketId(); - /** - *
-   * The param to be passed in the ToS link.
-   * 
- * - * string account_ticket_id = 1; - * @return The bytes for accountTicketId. - */ - com.google.protobuf.ByteString - getAccountTicketIdBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java deleted file mode 100644 index cb547ec4ba62..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ResourcesProto.java +++ /dev/null @@ -1,480 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -public final class ResourcesProto { - private ResourcesProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_Account_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_Property_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DataStream_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/analytics/admin/v1beta/resource" + - "s.proto\022\035google.analytics.admin.v1beta\032\037" + - "google/api/field_behavior.proto\032\031google/" + - "api/resource.proto\032\037google/protobuf/time" + - "stamp.proto\032\036google/protobuf/wrappers.pr" + - "oto\"\223\002\n\007Account\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\0225\n\013c" + - "reate_time\030\002 \001(\0132\032.google.protobuf.Times" + - "tampB\004\342A\001\003\0225\n\013update_time\030\003 \001(\0132\032.google" + - ".protobuf.TimestampB\004\342A\001\003\022\032\n\014display_nam" + - "e\030\004 \001(\tB\004\342A\001\002\022\023\n\013region_code\030\005 \001(\t\022\025\n\007de" + - "leted\030\006 \001(\010B\004\342A\001\003:>\352A;\n%analyticsadmin.g" + - "oogleapis.com/Account\022\022accounts/{account" + - "}\"\301\005\n\010Property\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022H\n\rpr" + - "operty_type\030\016 \001(\0162+.google.analytics.adm" + - "in.v1beta.PropertyTypeB\004\342A\001\005\0225\n\013create_t" + - "ime\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342" + - "A\001\003\0225\n\013update_time\030\004 \001(\0132\032.google.protob" + - "uf.TimestampB\004\342A\001\003\022\024\n\006parent\030\002 \001(\tB\004\342A\001\005" + - "\022\032\n\014display_name\030\005 \001(\tB\004\342A\001\002\022J\n\021industry" + - "_category\030\006 \001(\0162/.google.analytics.admin" + - ".v1beta.IndustryCategory\022\027\n\ttime_zone\030\007 " + - "\001(\tB\004\342A\001\002\022\025\n\rcurrency_code\030\010 \001(\t\022H\n\rserv" + - "ice_level\030\n \001(\0162+.google.analytics.admin" + - ".v1beta.ServiceLevelB\004\342A\001\003\0225\n\013delete_tim" + - "e\030\013 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + - "\003\0225\n\013expire_time\030\014 \001(\0132\032.google.protobuf" + - ".TimestampB\004\342A\001\003\022?\n\007account\030\r \001(\tB.\342A\001\005\372" + - "A\'\n%analyticsadmin.googleapis.com/Accoun" + - "t:B\352A?\n&analyticsadmin.googleapis.com/Pr" + - "operty\022\025properties/{property}\"\366\007\n\nDataSt" + - "ream\022R\n\017web_stream_data\030\006 \001(\01327.google.a" + - "nalytics.admin.v1beta.DataStream.WebStre" + - "amDataH\000\022a\n\027android_app_stream_data\030\007 \001(" + - "\0132>.google.analytics.admin.v1beta.DataSt" + - "ream.AndroidAppStreamDataH\000\022Y\n\023ios_app_s" + - "tream_data\030\010 \001(\0132:.google.analytics.admi" + - "n.v1beta.DataStream.IosAppStreamDataH\000\022\022" + - "\n\004name\030\001 \001(\tB\004\342A\001\003\022M\n\004type\030\002 \001(\01628.googl" + - "e.analytics.admin.v1beta.DataStream.Data" + - "StreamTypeB\005\342A\002\005\002\022\024\n\014display_name\030\003 \001(\t\022" + - "5\n\013create_time\030\004 \001(\0132\032.google.protobuf.T" + - "imestampB\004\342A\001\003\0225\n\013update_time\030\005 \001(\0132\032.go" + - "ogle.protobuf.TimestampB\004\342A\001\003\032a\n\rWebStre" + - "amData\022\034\n\016measurement_id\030\001 \001(\tB\004\342A\001\003\022\035\n\017" + - "firebase_app_id\030\002 \001(\tB\004\342A\001\003\022\023\n\013default_u" + - "ri\030\003 \001(\t\032Q\n\024AndroidAppStreamData\022\035\n\017fire" + - "base_app_id\030\001 \001(\tB\004\342A\001\003\022\032\n\014package_name\030" + - "\002 \001(\tB\004\342A\001\005\032K\n\020IosAppStreamData\022\035\n\017fireb" + - "ase_app_id\030\001 \001(\tB\004\342A\001\003\022\030\n\tbundle_id\030\002 \001(" + - "\tB\005\342A\002\005\002\"}\n\016DataStreamType\022 \n\034DATA_STREA" + - "M_TYPE_UNSPECIFIED\020\000\022\023\n\017WEB_DATA_STREAM\020" + - "\001\022\033\n\027ANDROID_APP_DATA_STREAM\020\002\022\027\n\023IOS_AP" + - "P_DATA_STREAM\020\003:^\352A[\n(analyticsadmin.goo" + - "gleapis.com/DataStream\022/properties/{prop" + - "erty}/dataStreams/{data_stream}B\r\n\013strea" + - "m_data\"\326\001\n\014FirebaseLink\022\022\n\004name\030\001 \001(\tB\004\342" + - "A\001\003\022\025\n\007project\030\002 \001(\tB\004\342A\001\005\0225\n\013create_tim" + - "e\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001" + - "\003:d\352Aa\n*analyticsadmin.googleapis.com/Fi" + - "rebaseLink\0223properties/{property}/fireba" + - "seLinks/{firebase_link}\"\236\003\n\rGoogleAdsLin" + - "k\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\031\n\013customer_id\030\003 \001" + - "(\tB\004\342A\001\005\022 \n\022can_manage_clients\030\004 \001(\010B\004\342A" + - "\001\003\022?\n\033ads_personalization_enabled\030\005 \001(\0132" + - "\032.google.protobuf.BoolValue\0225\n\013create_ti" + - "me\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A" + - "\001\003\0225\n\013update_time\030\010 \001(\0132\032.google.protobu" + - "f.TimestampB\004\342A\001\003\022#\n\025creator_email_addre" + - "ss\030\t \001(\tB\004\342A\001\003:h\352Ae\n+analyticsadmin.goog" + - "leapis.com/GoogleAdsLink\0226properties/{pr" + - "operty}/googleAdsLinks/{google_ads_link}" + - "\"\354\002\n\023DataSharingSettings\022\022\n\004name\030\001 \001(\tB\004" + - "\342A\001\003\022+\n#sharing_with_google_support_enab" + - "led\030\002 \001(\010\0222\n*sharing_with_google_assigne" + - "d_sales_enabled\030\003 \001(\010\022-\n%sharing_with_go" + - "ogle_any_sales_enabled\030\004 \001(\010\022,\n$sharing_" + - "with_google_products_enabled\030\005 \001(\010\022#\n\033sh" + - "aring_with_others_enabled\030\006 \001(\010:^\352A[\n1an" + - "alyticsadmin.googleapis.com/DataSharingS" + - "ettings\022&accounts/{account}/dataSharingS" + - "ettings\"\224\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t" + - "\022;\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.g" + - "oogleapis.com/Account\022\024\n\014display_name\030\003 " + - "\001(\t\022J\n\022property_summaries\030\004 \003(\0132..google" + - ".analytics.admin.v1beta.PropertySummary:" + - "U\352AR\n,analyticsadmin.googleapis.com/Acco" + - "untSummary\022\"accountSummaries/{account_su" + - "mmary}\"\272\001\n\017PropertySummary\022=\n\010property\030\001" + - " \001(\tB+\372A(\n&analyticsadmin.googleapis.com" + - "/Property\022\024\n\014display_name\030\002 \001(\t\022B\n\rprope" + - "rty_type\030\003 \001(\0162+.google.analytics.admin." + - "v1beta.PropertyType\022\016\n\006parent\030\004 \001(\t\"\221\002\n\031" + - "MeasurementProtocolSecret\022\022\n\004name\030\001 \001(\tB" + - "\004\342A\001\003\022\032\n\014display_name\030\002 \001(\tB\004\342A\001\002\022\032\n\014sec" + - "ret_value\030\003 \001(\tB\004\342A\001\003:\247\001\352A\243\001\n7analyticsa" + - "dmin.googleapis.com/MeasurementProtocolS" + - "ecret\022hproperties/{property}/dataStreams" + - "/{data_stream}/measurementProtocolSecret" + - "s/{measurement_protocol_secret}\"\210\002\n\022Chan" + - "geHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013change_tim" + - "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022<\n\na" + - "ctor_type\030\003 \001(\0162(.google.analytics.admin" + - ".v1beta.ActorType\022\030\n\020user_actor_email\030\004 " + - "\001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022C\n\007changes" + - "\030\006 \003(\01322.google.analytics.admin.v1beta.C" + - "hangeHistoryChange\"\252\007\n\023ChangeHistoryChan" + - "ge\022\020\n\010resource\030\001 \001(\t\0229\n\006action\030\002 \001(\0162).g" + - "oogle.analytics.admin.v1beta.ActionType\022" + - "h\n\026resource_before_change\030\003 \001(\0132H.google" + - ".analytics.admin.v1beta.ChangeHistoryCha" + - "nge.ChangeHistoryResource\022g\n\025resource_af" + - "ter_change\030\004 \001(\0132H.google.analytics.admi" + - "n.v1beta.ChangeHistoryChange.ChangeHisto" + - "ryResource\032\362\004\n\025ChangeHistoryResource\0229\n\007" + - "account\030\001 \001(\0132&.google.analytics.admin.v" + - "1beta.AccountH\000\022;\n\010property\030\002 \001(\0132\'.goog" + - "le.analytics.admin.v1beta.PropertyH\000\022D\n\r" + - "firebase_link\030\006 \001(\0132+.google.analytics.a" + - "dmin.v1beta.FirebaseLinkH\000\022G\n\017google_ads" + - "_link\030\007 \001(\0132,.google.analytics.admin.v1b" + - "eta.GoogleAdsLinkH\000\022J\n\020conversion_event\030" + - "\013 \001(\0132..google.analytics.admin.v1beta.Co" + - "nversionEventH\000\022_\n\033measurement_protocol_" + - "secret\030\014 \001(\01328.google.analytics.admin.v1" + - "beta.MeasurementProtocolSecretH\000\022W\n\027data" + - "_retention_settings\030\017 \001(\01324.google.analy" + - "tics.admin.v1beta.DataRetentionSettingsH" + - "\000\022@\n\013data_stream\030\022 \001(\0132).google.analytic" + - "s.admin.v1beta.DataStreamH\000B\n\n\010resource\"" + - "\356\003\n\017ConversionEvent\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022" + - "\030\n\nevent_name\030\002 \001(\tB\004\342A\001\005\0225\n\013create_time" + - "\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + - "\022\027\n\tdeletable\030\004 \001(\010B\004\342A\001\003\022\024\n\006custom\030\005 \001(" + - "\010B\004\342A\001\003\022f\n\017counting_method\030\006 \001(\0162G.googl" + - "e.analytics.admin.v1beta.ConversionEvent" + - ".ConversionCountingMethodB\004\342A\001\001\"p\n\030Conve" + - "rsionCountingMethod\022*\n&CONVERSION_COUNTI" + - "NG_METHOD_UNSPECIFIED\020\000\022\022\n\016ONCE_PER_EVEN" + - "T\020\001\022\024\n\020ONCE_PER_SESSION\020\002:m\352Aj\n-analytic" + - "sadmin.googleapis.com/ConversionEvent\0229p" + - "roperties/{property}/conversionEvents/{c" + - "onversion_event}\"\275\003\n\017CustomDimension\022\022\n\004" + - "name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_name\030\002 \001(\t" + - "B\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004\342A\001\002\022\031\n\013d" + - "escription\030\004 \001(\tB\004\342A\001\001\022S\n\005scope\030\005 \001(\0162=." + - "google.analytics.admin.v1beta.CustomDime" + - "nsion.DimensionScopeB\005\342A\002\002\005\022*\n\034disallow_" + - "ads_personalization\030\006 \001(\010B\004\342A\001\001\"P\n\016Dimen" + - "sionScope\022\037\n\033DIMENSION_SCOPE_UNSPECIFIED" + - "\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002\022\010\n\004ITEM\020\003:m\352Aj\n-" + - "analyticsadmin.googleapis.com/CustomDime" + - "nsion\0229properties/{property}/customDimen" + - "sions/{custom_dimension}\"\305\006\n\014CustomMetri" + - "c\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022\035\n\016parameter_name\030" + - "\002 \001(\tB\005\342A\002\002\005\022\032\n\014display_name\030\003 \001(\tB\004\342A\001\002" + - "\022\031\n\013description\030\004 \001(\tB\004\342A\001\001\022[\n\020measureme" + - "nt_unit\030\005 \001(\0162;.google.analytics.admin.v" + - "1beta.CustomMetric.MeasurementUnitB\004\342A\001\002" + - "\022M\n\005scope\030\006 \001(\01627.google.analytics.admin" + - ".v1beta.CustomMetric.MetricScopeB\005\342A\002\002\005\022" + - "f\n\026restricted_metric_type\030\010 \003(\0162@.google" + - ".analytics.admin.v1beta.CustomMetric.Res" + - "trictedMetricTypeB\004\342A\001\001\"\267\001\n\017MeasurementU" + - "nit\022 \n\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + - "\010STANDARD\020\001\022\014\n\010CURRENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006M" + - "ETERS\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MI" + - "LLISECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t" + - "\n\005HOURS\020\n\"6\n\013MetricScope\022\034\n\030METRIC_SCOPE" + - "_UNSPECIFIED\020\000\022\t\n\005EVENT\020\001\"_\n\024RestrictedM" + - "etricType\022&\n\"RESTRICTED_METRIC_TYPE_UNSP" + - "ECIFIED\020\000\022\r\n\tCOST_DATA\020\001\022\020\n\014REVENUE_DATA" + - "\020\002:d\352Aa\n*analyticsadmin.googleapis.com/C" + - "ustomMetric\0223properties/{property}/custo" + - "mMetrics/{custom_metric}\"\302\003\n\025DataRetenti" + - "onSettings\022\022\n\004name\030\001 \001(\tB\004\342A\001\003\022d\n\024event_" + - "data_retention\030\002 \001(\0162F.google.analytics." + - "admin.v1beta.DataRetentionSettings.Reten" + - "tionDuration\022\'\n\037reset_user_data_on_new_a" + - "ctivity\030\003 \001(\010\"\236\001\n\021RetentionDuration\022\"\n\036R" + - "ETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\nTWO_M" + - "ONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWENTY_S" + - "IX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020\005\022\020\n\014" + - "FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin.goog" + - "leapis.com/DataRetentionSettings\022+proper" + - "ties/{property}/dataRetentionSettings*\252\004" + - "\n\020IndustryCategory\022!\n\035INDUSTRY_CATEGORY_" + - "UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINES" + - "S_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022" + - "\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVE" + - "L\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAINMENT" + - "\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n\024BOOKS_AND_" + - "LITERATURE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005GAME" + - "S\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOME_AND" + - "_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017\022\026\n\022L" + - "AW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_" + - "COMMUNITIES\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023\022\024\n" + - "\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\t" + - "REFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022" + - "JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*f\n\014Se" + - "rviceLevel\022\035\n\031SERVICE_LEVEL_UNSPECIFIED\020" + - "\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n\024GOOG" + - "LE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026ACTOR" + - "_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020" + - "\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACTION_T" + - "YPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATE" + - "D\020\002\022\013\n\007DELETED\020\003*\377\002\n\031ChangeHistoryResour" + - "ceType\022,\n(CHANGE_HISTORY_RESOURCE_TYPE_U" + - "NSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022" + - "\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007\022" + - "\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONVERSI" + - "ON_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_SECRE" + - "T\020\n\022\033\n\027DATA_RETENTION_SETTINGS\020\r\022%\n!DISP" + - "LAY_VIDEO_360_ADVERTISER_LINK\020\016\022.\n*DISPL" + - "AY_VIDEO_360_ADVERTISER_LINK_PROPOSAL\020\017\022" + - "\017\n\013DATA_STREAM\020\022\022\030\n\024ATTRIBUTION_SETTINGS" + - "\020\024*\202\001\n\014PropertyType\022\035\n\031PROPERTY_TYPE_UNS" + - "PECIFIED\020\000\022\032\n\026PROPERTY_TYPE_ORDINARY\020\001\022\035" + - "\n\031PROPERTY_TYPE_SUBPROPERTY\020\002\022\030\n\024PROPERT" + - "Y_TYPE_ROLLUP\020\003By\n!com.google.analytics." + - "admin.v1betaB\016ResourcesProtoP\001ZBgoogle.g" + - "olang.org/genproto/googleapis/analytics/" + - "admin/v1beta;adminb\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.protobuf.WrappersProto.getDescriptor(), - }); - internal_static_google_analytics_admin_v1beta_Account_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_admin_v1beta_Account_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_Account_descriptor, - new java.lang.String[] { "Name", "CreateTime", "UpdateTime", "DisplayName", "RegionCode", "Deleted", }); - internal_static_google_analytics_admin_v1beta_Property_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_admin_v1beta_Property_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_Property_descriptor, - new java.lang.String[] { "Name", "PropertyType", "CreateTime", "UpdateTime", "Parent", "DisplayName", "IndustryCategory", "TimeZone", "CurrencyCode", "ServiceLevel", "DeleteTime", "ExpireTime", "Account", }); - internal_static_google_analytics_admin_v1beta_DataStream_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_admin_v1beta_DataStream_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DataStream_descriptor, - new java.lang.String[] { "WebStreamData", "AndroidAppStreamData", "IosAppStreamData", "Name", "Type", "DisplayName", "CreateTime", "UpdateTime", "StreamData", }); - internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor = - internal_static_google_analytics_admin_v1beta_DataStream_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DataStream_WebStreamData_descriptor, - new java.lang.String[] { "MeasurementId", "FirebaseAppId", "DefaultUri", }); - internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor = - internal_static_google_analytics_admin_v1beta_DataStream_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DataStream_AndroidAppStreamData_descriptor, - new java.lang.String[] { "FirebaseAppId", "PackageName", }); - internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor = - internal_static_google_analytics_admin_v1beta_DataStream_descriptor.getNestedTypes().get(2); - internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DataStream_IosAppStreamData_descriptor, - new java.lang.String[] { "FirebaseAppId", "BundleId", }); - internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_admin_v1beta_FirebaseLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_FirebaseLink_descriptor, - new java.lang.String[] { "Name", "Project", "CreateTime", }); - internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_admin_v1beta_GoogleAdsLink_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_GoogleAdsLink_descriptor, - new java.lang.String[] { "Name", "CustomerId", "CanManageClients", "AdsPersonalizationEnabled", "CreateTime", "UpdateTime", "CreatorEmailAddress", }); - internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_admin_v1beta_DataSharingSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DataSharingSettings_descriptor, - new java.lang.String[] { "Name", "SharingWithGoogleSupportEnabled", "SharingWithGoogleAssignedSalesEnabled", "SharingWithGoogleAnySalesEnabled", "SharingWithGoogleProductsEnabled", "SharingWithOthersEnabled", }); - internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_admin_v1beta_AccountSummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_AccountSummary_descriptor, - new java.lang.String[] { "Name", "Account", "DisplayName", "PropertySummaries", }); - internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_admin_v1beta_PropertySummary_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_PropertySummary_descriptor, - new java.lang.String[] { "Property", "DisplayName", "PropertyType", "Parent", }); - internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_MeasurementProtocolSecret_descriptor, - new java.lang.String[] { "Name", "DisplayName", "SecretValue", }); - internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ChangeHistoryEvent_descriptor, - new java.lang.String[] { "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", }); - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor, - new java.lang.String[] { "Resource", "Action", "ResourceBeforeChange", "ResourceAfterChange", }); - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor = - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ChangeHistoryChange_ChangeHistoryResource_descriptor, - new java.lang.String[] { "Account", "Property", "FirebaseLink", "GoogleAdsLink", "ConversionEvent", "MeasurementProtocolSecret", "DataRetentionSettings", "DataStream", "Resource", }); - internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_admin_v1beta_ConversionEvent_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_ConversionEvent_descriptor, - new java.lang.String[] { "Name", "EventName", "CreateTime", "Deletable", "Custom", "CountingMethod", }); - internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_admin_v1beta_CustomDimension_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CustomDimension_descriptor, - new java.lang.String[] { "Name", "ParameterName", "DisplayName", "Description", "Scope", "DisallowAdsPersonalization", }); - internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_admin_v1beta_CustomMetric_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_CustomMetric_descriptor, - new java.lang.String[] { "Name", "ParameterName", "DisplayName", "Description", "MeasurementUnit", "Scope", "RestrictedMetricType", }); - internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_admin_v1beta_DataRetentionSettings_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1beta_DataRetentionSettings_descriptor, - new java.lang.String[] { "Name", "EventDataRetention", "ResetUserDataOnNewActivity", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.protobuf.WrappersProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java deleted file mode 100644 index 953cb8297480..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequest.java +++ /dev/null @@ -1,3605 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The request for a Data Access Record Report.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportRequest} - */ -public final class RunAccessReportRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.RunAccessReportRequest) - RunAccessReportRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use RunAccessReportRequest.newBuilder() to construct. - private RunAccessReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RunAccessReportRequest() { - entity_ = ""; - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - dateRanges_ = java.util.Collections.emptyList(); - timeZone_ = ""; - orderBys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RunAccessReportRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.RunAccessReportRequest.class, com.google.analytics.admin.v1beta.RunAccessReportRequest.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object entity_ = ""; - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The entity. - */ - @java.lang.Override - public java.lang.String getEntity() { - java.lang.Object ref = entity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entity_ = s; - return s; - } - } - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The bytes for entity. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEntityBytes() { - java.lang.Object ref = entity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - entity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List dimensions_; - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index) { - return dimensions_.get(index); - } - - public static final int METRICS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List metrics_; - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetric getMetrics(int index) { - return metrics_.get(index); - } - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricOrBuilder getMetricsOrBuilder( - int index) { - return metrics_.get(index); - } - - public static final int DATE_RANGES_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List dateRanges_; - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List getDateRangesList() { - return dateRanges_; - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public java.util.List - getDateRangesOrBuilderList() { - return dateRanges_; - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public int getDateRangesCount() { - return dateRanges_.size(); - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDateRange getDateRanges(int index) { - return dateRanges_.get(index); - } - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index) { - return dateRanges_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1beta.AccessFilterExpression dimensionFilter_; - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return Whether the dimensionFilter field is set. - */ - @java.lang.Override - public boolean hasDimensionFilter() { - return dimensionFilter_ != null; - } - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression getDimensionFilter() { - return dimensionFilter_ == null ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return dimensionFilter_ == null ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 6; - private com.google.analytics.admin.v1beta.AccessFilterExpression metricFilter_; - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return Whether the metricFilter field is set. - */ - @java.lang.Override - public boolean hasMetricFilter() { - return metricFilter_ != null; - } - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpression getMetricFilter() { - return metricFilter_ == null ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder() { - return metricFilter_ == null ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } - - public static final int OFFSET_FIELD_NUMBER = 7; - private long offset_ = 0L; - /** - *
-   * The row count of the start row. The first row is counted as row 0. If
-   * offset is unspecified, it is treated as 0. If offset is zero, then this
-   * method will return the first page of results with `limit` entries.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 8; - private long limit_ = 0L; - /** - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   *
-   * The API may return fewer rows than the requested `limit`, if there aren't
-   * as many remaining rows as the `limit`. For instance, there are fewer than
-   * 300 possible values for the dimension `country`, so when reporting on only
-   * `country`, you can't get more than 300 rows, even if you set `limit` to a
-   * higher value.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int TIME_ZONE_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object timeZone_ = ""; - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The timeZone. - */ - @java.lang.Override - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } - } - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The bytes for timeZone. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_BYS_FIELD_NUMBER = 10; - @SuppressWarnings("serial") - private java.util.List orderBys_; - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List getOrderBysList() { - return orderBys_; - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public java.util.List - getOrderBysOrBuilderList() { - return orderBys_; - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public int getOrderBysCount() { - return orderBys_.size(); - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessOrderByOrBuilder getOrderBysOrBuilder( - int index) { - return orderBys_.get(index); - } - - public static final int RETURN_ENTITY_QUOTA_FIELD_NUMBER = 11; - private boolean returnEntityQuota_ = false; - /** - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-   * requests, this field must be false.
-   * 
- * - * bool return_entity_quota = 11; - * @return The returnEntityQuota. - */ - @java.lang.Override - public boolean getReturnEntityQuota() { - return returnEntityQuota_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(entity_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entity_); - } - for (int i = 0; i < dimensions_.size(); i++) { - output.writeMessage(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - output.writeMessage(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - output.writeMessage(4, dateRanges_.get(i)); - } - if (dimensionFilter_ != null) { - output.writeMessage(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(6, getMetricFilter()); - } - if (offset_ != 0L) { - output.writeInt64(7, offset_); - } - if (limit_ != 0L) { - output.writeInt64(8, limit_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, timeZone_); - } - for (int i = 0; i < orderBys_.size(); i++) { - output.writeMessage(10, orderBys_.get(i)); - } - if (returnEntityQuota_ != false) { - output.writeBool(11, returnEntityQuota_); - } - 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(entity_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, entity_); - } - for (int i = 0; i < dimensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, dimensions_.get(i)); - } - for (int i = 0; i < metrics_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, metrics_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, dateRanges_.get(i)); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getMetricFilter()); - } - if (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(7, offset_); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(8, limit_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, timeZone_); - } - for (int i = 0; i < orderBys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(10, orderBys_.get(i)); - } - if (returnEntityQuota_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, returnEntityQuota_); - } - size += 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.admin.v1beta.RunAccessReportRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.RunAccessReportRequest other = (com.google.analytics.admin.v1beta.RunAccessReportRequest) obj; - - if (!getEntity() - .equals(other.getEntity())) return false; - if (!getDimensionsList() - .equals(other.getDimensionsList())) return false; - if (!getMetricsList() - .equals(other.getMetricsList())) return false; - if (!getDateRangesList() - .equals(other.getDateRangesList())) return false; - if (hasDimensionFilter() != other.hasDimensionFilter()) return false; - if (hasDimensionFilter()) { - if (!getDimensionFilter() - .equals(other.getDimensionFilter())) return false; - } - if (hasMetricFilter() != other.hasMetricFilter()) return false; - if (hasMetricFilter()) { - if (!getMetricFilter() - .equals(other.getMetricFilter())) return false; - } - if (getOffset() - != other.getOffset()) return false; - if (getLimit() - != other.getLimit()) return false; - if (!getTimeZone() - .equals(other.getTimeZone())) return false; - if (!getOrderBysList() - .equals(other.getOrderBysList())) return false; - if (getReturnEntityQuota() - != other.getReturnEntityQuota()) return false; - if (!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) + ENTITY_FIELD_NUMBER; - hash = (53 * hash) + getEntity().hashCode(); - if (getDimensionsCount() > 0) { - hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionsList().hashCode(); - } - if (getMetricsCount() > 0) { - hash = (37 * hash) + METRICS_FIELD_NUMBER; - hash = (53 * hash) + getMetricsList().hashCode(); - } - if (getDateRangesCount() > 0) { - hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getDateRangesList().hashCode(); - } - if (hasDimensionFilter()) { - hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilter().hashCode(); - } - if (hasMetricFilter()) { - hash = (37 * hash) + METRIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getMetricFilter().hashCode(); - } - hash = (37 * hash) + OFFSET_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getOffset()); - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getLimit()); - hash = (37 * hash) + TIME_ZONE_FIELD_NUMBER; - hash = (53 * hash) + getTimeZone().hashCode(); - if (getOrderBysCount() > 0) { - hash = (37 * hash) + ORDER_BYS_FIELD_NUMBER; - hash = (53 * hash) + getOrderBysList().hashCode(); - } - hash = (37 * hash) + RETURN_ENTITY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getReturnEntityQuota()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.RunAccessReportRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.RunAccessReportRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The request for a Data Access Record Report.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.RunAccessReportRequest) - com.google.analytics.admin.v1beta.RunAccessReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.RunAccessReportRequest.class, com.google.analytics.admin.v1beta.RunAccessReportRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.RunAccessReportRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entity_ = ""; - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - } else { - dateRanges_ = null; - dateRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - dimensionFilter_ = null; - if (dimensionFilterBuilder_ != null) { - dimensionFilterBuilder_.dispose(); - dimensionFilterBuilder_ = null; - } - metricFilter_ = null; - if (metricFilterBuilder_ != null) { - metricFilterBuilder_.dispose(); - metricFilterBuilder_ = null; - } - offset_ = 0L; - limit_ = 0L; - timeZone_ = ""; - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - } else { - orderBys_ = null; - orderBysBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000200); - returnEntityQuota_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.RunAccessReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportRequest build() { - com.google.analytics.admin.v1beta.RunAccessReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportRequest buildPartial() { - com.google.analytics.admin.v1beta.RunAccessReportRequest result = new com.google.analytics.admin.v1beta.RunAccessReportRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.RunAccessReportRequest result) { - if (dimensionsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - dimensions_ = java.util.Collections.unmodifiableList(dimensions_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.dimensions_ = dimensions_; - } else { - result.dimensions_ = dimensionsBuilder_.build(); - } - if (metricsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - metrics_ = java.util.Collections.unmodifiableList(metrics_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.metrics_ = metrics_; - } else { - result.metrics_ = metricsBuilder_.build(); - } - if (dateRangesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.dateRanges_ = dateRanges_; - } else { - result.dateRanges_ = dateRangesBuilder_.build(); - } - if (orderBysBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { - orderBys_ = java.util.Collections.unmodifiableList(orderBys_); - bitField0_ = (bitField0_ & ~0x00000200); - } - result.orderBys_ = orderBys_; - } else { - result.orderBys_ = orderBysBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.RunAccessReportRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entity_ = entity_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.dimensionFilter_ = dimensionFilterBuilder_ == null - ? dimensionFilter_ - : dimensionFilterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.metricFilter_ = metricFilterBuilder_ == null - ? metricFilter_ - : metricFilterBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.offset_ = offset_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.limit_ = limit_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.timeZone_ = timeZone_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.returnEntityQuota_ = returnEntityQuota_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.RunAccessReportRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.RunAccessReportRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.RunAccessReportRequest other) { - if (other == com.google.analytics.admin.v1beta.RunAccessReportRequest.getDefaultInstance()) return this; - if (!other.getEntity().isEmpty()) { - entity_ = other.entity_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (dimensionsBuilder_ == null) { - if (!other.dimensions_.isEmpty()) { - if (dimensions_.isEmpty()) { - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureDimensionsIsMutable(); - dimensions_.addAll(other.dimensions_); - } - onChanged(); - } - } else { - if (!other.dimensions_.isEmpty()) { - if (dimensionsBuilder_.isEmpty()) { - dimensionsBuilder_.dispose(); - dimensionsBuilder_ = null; - dimensions_ = other.dimensions_; - bitField0_ = (bitField0_ & ~0x00000002); - dimensionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDimensionsFieldBuilder() : null; - } else { - dimensionsBuilder_.addAllMessages(other.dimensions_); - } - } - } - if (metricsBuilder_ == null) { - if (!other.metrics_.isEmpty()) { - if (metrics_.isEmpty()) { - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureMetricsIsMutable(); - metrics_.addAll(other.metrics_); - } - onChanged(); - } - } else { - if (!other.metrics_.isEmpty()) { - if (metricsBuilder_.isEmpty()) { - metricsBuilder_.dispose(); - metricsBuilder_ = null; - metrics_ = other.metrics_; - bitField0_ = (bitField0_ & ~0x00000004); - metricsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricsFieldBuilder() : null; - } else { - metricsBuilder_.addAllMessages(other.metrics_); - } - } - } - if (dateRangesBuilder_ == null) { - if (!other.dateRanges_.isEmpty()) { - if (dateRanges_.isEmpty()) { - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDateRangesIsMutable(); - dateRanges_.addAll(other.dateRanges_); - } - onChanged(); - } - } else { - if (!other.dateRanges_.isEmpty()) { - if (dateRangesBuilder_.isEmpty()) { - dateRangesBuilder_.dispose(); - dateRangesBuilder_ = null; - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - dateRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDateRangesFieldBuilder() : null; - } else { - dateRangesBuilder_.addAllMessages(other.dateRanges_); - } - } - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - if (other.getOffset() != 0L) { - setOffset(other.getOffset()); - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (!other.getTimeZone().isEmpty()) { - timeZone_ = other.timeZone_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (orderBysBuilder_ == null) { - if (!other.orderBys_.isEmpty()) { - if (orderBys_.isEmpty()) { - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000200); - } else { - ensureOrderBysIsMutable(); - orderBys_.addAll(other.orderBys_); - } - onChanged(); - } - } else { - if (!other.orderBys_.isEmpty()) { - if (orderBysBuilder_.isEmpty()) { - orderBysBuilder_.dispose(); - orderBysBuilder_ = null; - orderBys_ = other.orderBys_; - bitField0_ = (bitField0_ & ~0x00000200); - orderBysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getOrderBysFieldBuilder() : null; - } else { - orderBysBuilder_.addAllMessages(other.orderBys_); - } - } - } - if (other.getReturnEntityQuota() != false) { - setReturnEntityQuota(other.getReturnEntityQuota()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - entity_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1beta.AccessDimension m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessDimension.parser(), - extensionRegistry); - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(m); - } else { - dimensionsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.analytics.admin.v1beta.AccessMetric m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessMetric.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: { - com.google.analytics.admin.v1beta.AccessDateRange m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessDateRange.parser(), - extensionRegistry); - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(m); - } else { - dateRangesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: { - input.readMessage( - getDimensionFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: { - input.readMessage( - getMetricFilterFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 56: { - offset_ = input.readInt64(); - bitField0_ |= 0x00000040; - break; - } // case 56 - case 64: { - limit_ = input.readInt64(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - case 82: { - com.google.analytics.admin.v1beta.AccessOrderBy m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessOrderBy.parser(), - extensionRegistry); - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(m); - } else { - orderBysBuilder_.addMessage(m); - } - break; - } // case 82 - case 88: { - returnEntityQuota_ = input.readBool(); - bitField0_ |= 0x00000400; - break; - } // case 88 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object entity_ = ""; - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @return The entity. - */ - public java.lang.String getEntity() { - java.lang.Object ref = entity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @return The bytes for entity. - */ - public com.google.protobuf.ByteString - getEntityBytes() { - java.lang.Object ref = entity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - entity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @param value The entity to set. - * @return This builder for chaining. - */ - public Builder setEntity( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - entity_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @return This builder for chaining. - */ - public Builder clearEntity() { - entity_ = getDefaultInstance().getEntity(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * The Data Access Report supports requesting at the property level or account
-     * level. If requested at the account level, Data Access Reports include all
-     * access for all properties under that account.
-     *
-     * To request at the property level, entity should be for example
-     * 'properties/123' if "123" is your GA4 property ID. To request at the
-     * account level, entity should be for example 'accounts/1234' if "1234" is
-     * your GA4 Account ID.
-     * 
- * - * string entity = 1; - * @param value The bytes for entity to set. - * @return This builder for chaining. - */ - public Builder setEntityBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - entity_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List dimensions_ = - java.util.Collections.emptyList(); - private void ensureDimensionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - dimensions_ = new java.util.ArrayList(dimensions_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimension, com.google.analytics.admin.v1beta.AccessDimension.Builder, com.google.analytics.admin.v1beta.AccessDimensionOrBuilder> dimensionsBuilder_; - - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public java.util.List getDimensionsList() { - if (dimensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensions_); - } else { - return dimensionsBuilder_.getMessageList(); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1beta.AccessDimension getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.admin.v1beta.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.set(index, value); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.admin.v1beta.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.admin.v1beta.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.admin.v1beta.AccessDimension value) { - if (dimensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionsIsMutable(); - dimensions_.add(index, value); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.admin.v1beta.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.admin.v1beta.AccessDimension.Builder builderForValue) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder addAllDimensions( - java.lang.Iterable values) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dimensions_); - onChanged(); - } else { - dimensionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder clearDimensions() { - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - dimensionsBuilder_.clear(); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public Builder removeDimensions(int index) { - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.remove(index); - onChanged(); - } else { - dimensionsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1beta.AccessDimension.Builder getDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1beta.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public java.util.List - getDimensionsOrBuilderList() { - if (dimensionsBuilder_ != null) { - return dimensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensions_); - } - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1beta.AccessDimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance()); - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public com.google.analytics.admin.v1beta.AccessDimension.Builder addDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessDimension.getDefaultInstance()); - } - /** - *
-     * The dimensions requested and displayed in the response. Requests are
-     * allowed up to 9 dimensions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimension, com.google.analytics.admin.v1beta.AccessDimension.Builder, com.google.analytics.admin.v1beta.AccessDimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimension, com.google.analytics.admin.v1beta.AccessDimension.Builder, com.google.analytics.admin.v1beta.AccessDimensionOrBuilder>( - dimensions_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - dimensions_ = null; - } - return dimensionsBuilder_; - } - - private java.util.List metrics_ = - java.util.Collections.emptyList(); - private void ensureMetricsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - metrics_ = new java.util.ArrayList(metrics_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetric, com.google.analytics.admin.v1beta.AccessMetric.Builder, com.google.analytics.admin.v1beta.AccessMetricOrBuilder> metricsBuilder_; - - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public java.util.List getMetricsList() { - if (metricsBuilder_ == null) { - return java.util.Collections.unmodifiableList(metrics_); - } else { - return metricsBuilder_.getMessageList(); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1beta.AccessMetric getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.admin.v1beta.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.set(index, value); - onChanged(); - } else { - metricsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.admin.v1beta.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.set(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.admin.v1beta.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(value); - onChanged(); - } else { - metricsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.admin.v1beta.AccessMetric value) { - if (metricsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricsIsMutable(); - metrics_.add(index, value); - onChanged(); - } else { - metricsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder addMetrics( - com.google.analytics.admin.v1beta.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.admin.v1beta.AccessMetric.Builder builderForValue) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(index, builderForValue.build()); - onChanged(); - } else { - metricsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder addAllMetrics( - java.lang.Iterable values) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metrics_); - onChanged(); - } else { - metricsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder clearMetrics() { - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - metricsBuilder_.clear(); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public Builder removeMetrics(int index) { - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.remove(index); - onChanged(); - } else { - metricsBuilder_.remove(index); - } - return this; - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1beta.AccessMetric.Builder getMetricsBuilder( - int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1beta.AccessMetricOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public java.util.List - getMetricsOrBuilderList() { - if (metricsBuilder_ != null) { - return metricsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metrics_); - } - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1beta.AccessMetric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance()); - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public com.google.analytics.admin.v1beta.AccessMetric.Builder addMetricsBuilder( - int index) { - return getMetricsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessMetric.getDefaultInstance()); - } - /** - *
-     * The metrics requested and displayed in the response. Requests are allowed
-     * up to 10 metrics.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetric, com.google.analytics.admin.v1beta.AccessMetric.Builder, com.google.analytics.admin.v1beta.AccessMetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetric, com.google.analytics.admin.v1beta.AccessMetric.Builder, com.google.analytics.admin.v1beta.AccessMetricOrBuilder>( - metrics_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private java.util.List dateRanges_ = - java.util.Collections.emptyList(); - private void ensureDateRangesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - dateRanges_ = new java.util.ArrayList(dateRanges_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDateRange, com.google.analytics.admin.v1beta.AccessDateRange.Builder, com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder> dateRangesBuilder_; - - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public java.util.List getDateRangesList() { - if (dateRangesBuilder_ == null) { - return java.util.Collections.unmodifiableList(dateRanges_); - } else { - return dateRangesBuilder_.getMessageList(); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public int getDateRangesCount() { - if (dateRangesBuilder_ == null) { - return dateRanges_.size(); - } else { - return dateRangesBuilder_.getCount(); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1beta.AccessDateRange getDateRanges(int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); - } else { - return dateRangesBuilder_.getMessage(index); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.admin.v1beta.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.set(index, value); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.admin.v1beta.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.set(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges(com.google.analytics.admin.v1beta.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.admin.v1beta.AccessDateRange value) { - if (dateRangesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDateRangesIsMutable(); - dateRanges_.add(index, value); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - com.google.analytics.admin.v1beta.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.admin.v1beta.AccessDateRange.Builder builderForValue) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(index, builderForValue.build()); - onChanged(); - } else { - dateRangesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder addAllDateRanges( - java.lang.Iterable values) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dateRanges_); - onChanged(); - } else { - dateRangesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder clearDateRanges() { - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - dateRangesBuilder_.clear(); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public Builder removeDateRanges(int index) { - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.remove(index); - onChanged(); - } else { - dateRangesBuilder_.remove(index); - } - return this; - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1beta.AccessDateRange.Builder getDateRangesBuilder( - int index) { - return getDateRangesFieldBuilder().getBuilder(index); - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index) { - if (dateRangesBuilder_ == null) { - return dateRanges_.get(index); } else { - return dateRangesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public java.util.List - getDateRangesOrBuilderList() { - if (dateRangesBuilder_ != null) { - return dateRangesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dateRanges_); - } - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1beta.AccessDateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance()); - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public com.google.analytics.admin.v1beta.AccessDateRange.Builder addDateRangesBuilder( - int index) { - return getDateRangesFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessDateRange.getDefaultInstance()); - } - /** - *
-     * Date ranges of access records to read. If multiple date ranges are
-     * requested, each response row will contain a zero based date range index. If
-     * two date ranges overlap, the access records for the overlapping days is
-     * included in the response rows for both date ranges. Requests are allowed up
-     * to 2 date ranges.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDateRange, com.google.analytics.admin.v1beta.AccessDateRange.Builder, com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDateRange, com.google.analytics.admin.v1beta.AccessDateRange.Builder, com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder>( - dateRanges_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - private com.google.analytics.admin.v1beta.AccessFilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> dimensionFilterBuilder_; - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return Whether the dimensionFilter field is set. - */ - public boolean hasDimensionFilter() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return The dimensionFilter. - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } else { - return dimensionFilterBuilder_.getMessage(); - } - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter(com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dimensionFilter_ = value; - } else { - dimensionFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter( - com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = builderForValue.build(); - } else { - dimensionFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - public Builder mergeDimensionFilter(com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - dimensionFilter_ != null && - dimensionFilter_ != com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) { - getDimensionFilterBuilder().mergeFrom(value); - } else { - dimensionFilter_ = value; - } - } else { - dimensionFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - public Builder clearDimensionFilter() { - bitField0_ = (bitField0_ & ~0x00000010); - dimensionFilter_ = null; - if (dimensionFilterBuilder_ != null) { - dimensionFilterBuilder_.dispose(); - dimensionFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder getDimensionFilterBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getDimensionFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null ? - com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : dimensionFilter_; - } - } - /** - *
-     * Dimension filters let you restrict report response to specific
-     * dimension values which match the filter. For example, filtering on access
-     * records of a single user. To learn more, see [Fundamentals of Dimension
-     * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-     * for examples. Metrics cannot be used in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( - getDimensionFilter(), - getParentForChildren(), - isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.admin.v1beta.AccessFilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> metricFilterBuilder_; - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return Whether the metricFilter field is set. - */ - public boolean hasMetricFilter() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return The metricFilter. - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null ? com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } else { - return metricFilterBuilder_.getMessage(); - } - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - public Builder setMetricFilter(com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (metricFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metricFilter_ = value; - } else { - metricFilterBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - public Builder setMetricFilter( - com.google.analytics.admin.v1beta.AccessFilterExpression.Builder builderForValue) { - if (metricFilterBuilder_ == null) { - metricFilter_ = builderForValue.build(); - } else { - metricFilterBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - public Builder mergeMetricFilter(com.google.analytics.admin.v1beta.AccessFilterExpression value) { - if (metricFilterBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - metricFilter_ != null && - metricFilter_ != com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance()) { - getMetricFilterBuilder().mergeFrom(value); - } else { - metricFilter_ = value; - } - } else { - metricFilterBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - public Builder clearMetricFilter() { - bitField0_ = (bitField0_ & ~0x00000020); - metricFilter_ = null; - if (metricFilterBuilder_ != null) { - metricFilterBuilder_.dispose(); - metricFilterBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpression.Builder getMetricFilterBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getMetricFilterFieldBuilder().getBuilder(); - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - public com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null ? - com.google.analytics.admin.v1beta.AccessFilterExpression.getDefaultInstance() : metricFilter_; - } - } - /** - *
-     * Metric filters allow you to restrict report response to specific metric
-     * values which match the filter. Metric filters are applied after aggregating
-     * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-     * in this filter.
-     * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessFilterExpression, com.google.analytics.admin.v1beta.AccessFilterExpression.Builder, com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder>( - getMetricFilter(), - getParentForChildren(), - isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private long offset_ ; - /** - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - /** - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * @param value The offset to set. - * @return This builder for chaining. - */ - public Builder setOffset(long value) { - - offset_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * The row count of the start row. The first row is counted as row 0. If
-     * offset is unspecified, it is treated as 0. If offset is zero, then this
-     * method will return the first page of results with `limit` entries.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 7; - * @return This builder for chaining. - */ - public Builder clearOffset() { - bitField0_ = (bitField0_ & ~0x00000040); - offset_ = 0L; - onChanged(); - return this; - } - - private long limit_ ; - /** - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     *
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     *
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - - limit_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * The number of rows to return. If unspecified, 10,000 rows are returned. The
-     * API returns a maximum of 100,000 rows per request, no matter how many you
-     * ask for. `limit` must be positive.
-     *
-     * The API may return fewer rows than the requested `limit`, if there aren't
-     * as many remaining rows as the `limit`. For instance, there are fewer than
-     * 300 possible values for the dimension `country`, so when reporting on only
-     * `country`, you can't get more than 300 rows, even if you set `limit` to a
-     * higher value.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 8; - * @return This builder for chaining. - */ - public Builder clearLimit() { - bitField0_ = (bitField0_ & ~0x00000080); - limit_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object timeZone_ = ""; - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @return The timeZone. - */ - public java.lang.String getTimeZone() { - java.lang.Object ref = timeZone_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - timeZone_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @return The bytes for timeZone. - */ - public com.google.protobuf.ByteString - getTimeZoneBytes() { - java.lang.Object ref = timeZone_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - timeZone_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @param value The timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZone( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - timeZone_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @return This builder for chaining. - */ - public Builder clearTimeZone() { - timeZone_ = getDefaultInstance().getTimeZone(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * This request's time zone if specified. If unspecified, the property's time
-     * zone is used. The request's time zone is used to interpret the start & end
-     * dates of the report.
-     *
-     * Formatted as strings from the IANA Time Zone database
-     * (https://www.iana.org/time-zones); for example "America/New_York" or
-     * "Asia/Tokyo".
-     * 
- * - * string time_zone = 9; - * @param value The bytes for timeZone to set. - * @return This builder for chaining. - */ - public Builder setTimeZoneBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - timeZone_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private java.util.List orderBys_ = - java.util.Collections.emptyList(); - private void ensureOrderBysIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { - orderBys_ = new java.util.ArrayList(orderBys_); - bitField0_ |= 0x00000200; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderByOrBuilder> orderBysBuilder_; - - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public java.util.List getOrderBysList() { - if (orderBysBuilder_ == null) { - return java.util.Collections.unmodifiableList(orderBys_); - } else { - return orderBysBuilder_.getMessageList(); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public int getOrderBysCount() { - if (orderBysBuilder_ == null) { - return orderBys_.size(); - } else { - return orderBysBuilder_.getCount(); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1beta.AccessOrderBy getOrderBys(int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); - } else { - return orderBysBuilder_.getMessage(index); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder setOrderBys( - int index, com.google.analytics.admin.v1beta.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.set(index, value); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder setOrderBys( - int index, com.google.analytics.admin.v1beta.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.set(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys(com.google.analytics.admin.v1beta.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(value); - onChanged(); - } else { - orderBysBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - int index, com.google.analytics.admin.v1beta.AccessOrderBy value) { - if (orderBysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureOrderBysIsMutable(); - orderBys_.add(index, value); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - com.google.analytics.admin.v1beta.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder addOrderBys( - int index, com.google.analytics.admin.v1beta.AccessOrderBy.Builder builderForValue) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(index, builderForValue.build()); - onChanged(); - } else { - orderBysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder addAllOrderBys( - java.lang.Iterable values) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, orderBys_); - onChanged(); - } else { - orderBysBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder clearOrderBys() { - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - } else { - orderBysBuilder_.clear(); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public Builder removeOrderBys(int index) { - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.remove(index); - onChanged(); - } else { - orderBysBuilder_.remove(index); - } - return this; - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1beta.AccessOrderBy.Builder getOrderBysBuilder( - int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1beta.AccessOrderByOrBuilder getOrderBysOrBuilder( - int index) { - if (orderBysBuilder_ == null) { - return orderBys_.get(index); } else { - return orderBysBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public java.util.List - getOrderBysOrBuilderList() { - if (orderBysBuilder_ != null) { - return orderBysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(orderBys_); - } - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1beta.AccessOrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance()); - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public com.google.analytics.admin.v1beta.AccessOrderBy.Builder addOrderBysBuilder( - int index) { - return getOrderBysFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessOrderBy.getDefaultInstance()); - } - /** - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessOrderBy, com.google.analytics.admin.v1beta.AccessOrderBy.Builder, com.google.analytics.admin.v1beta.AccessOrderByOrBuilder>( - orderBys_, - ((bitField0_ & 0x00000200) != 0), - getParentForChildren(), - isClean()); - orderBys_ = null; - } - return orderBysBuilder_; - } - - private boolean returnEntityQuota_ ; - /** - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-     * requests, this field must be false.
-     * 
- * - * bool return_entity_quota = 11; - * @return The returnEntityQuota. - */ - @java.lang.Override - public boolean getReturnEntityQuota() { - return returnEntityQuota_; - } - /** - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-     * requests, this field must be false.
-     * 
- * - * bool return_entity_quota = 11; - * @param value The returnEntityQuota to set. - * @return This builder for chaining. - */ - public Builder setReturnEntityQuota(boolean value) { - - returnEntityQuota_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - /** - *
-     * Toggles whether to return the current state of this Analytics Property's
-     * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-     * requests, this field must be false.
-     * 
- * - * bool return_entity_quota = 11; - * @return This builder for chaining. - */ - public Builder clearReturnEntityQuota() { - bitField0_ = (bitField0_ & ~0x00000400); - returnEntityQuota_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.RunAccessReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.RunAccessReportRequest) - private static final com.google.analytics.admin.v1beta.RunAccessReportRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.RunAccessReportRequest(); - } - - public static com.google.analytics.admin.v1beta.RunAccessReportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAccessReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java deleted file mode 100644 index 5174e87eda72..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportRequestOrBuilder.java +++ /dev/null @@ -1,404 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface RunAccessReportRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.RunAccessReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The entity. - */ - java.lang.String getEntity(); - /** - *
-   * The Data Access Report supports requesting at the property level or account
-   * level. If requested at the account level, Data Access Reports include all
-   * access for all properties under that account.
-   *
-   * To request at the property level, entity should be for example
-   * 'properties/123' if "123" is your GA4 property ID. To request at the
-   * account level, entity should be for example 'accounts/1234' if "1234" is
-   * your GA4 Account ID.
-   * 
- * - * string entity = 1; - * @return The bytes for entity. - */ - com.google.protobuf.ByteString - getEntityBytes(); - - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - java.util.List - getDimensionsList(); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - com.google.analytics.admin.v1beta.AccessDimension getDimensions(int index); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - int getDimensionsCount(); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - *
-   * The dimensions requested and displayed in the response. Requests are
-   * allowed up to 9 dimensions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimension dimensions = 2; - */ - com.google.analytics.admin.v1beta.AccessDimensionOrBuilder getDimensionsOrBuilder( - int index); - - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - java.util.List - getMetricsList(); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - com.google.analytics.admin.v1beta.AccessMetric getMetrics(int index); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - int getMetricsCount(); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - *
-   * The metrics requested and displayed in the response. Requests are allowed
-   * up to 10 metrics.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetric metrics = 3; - */ - com.google.analytics.admin.v1beta.AccessMetricOrBuilder getMetricsOrBuilder( - int index); - - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - java.util.List - getDateRangesList(); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - com.google.analytics.admin.v1beta.AccessDateRange getDateRanges(int index); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - int getDateRangesCount(); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - java.util.List - getDateRangesOrBuilderList(); - /** - *
-   * Date ranges of access records to read. If multiple date ranges are
-   * requested, each response row will contain a zero based date range index. If
-   * two date ranges overlap, the access records for the overlapping days is
-   * included in the response rows for both date ranges. Requests are allowed up
-   * to 2 date ranges.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDateRange date_ranges = 4; - */ - com.google.analytics.admin.v1beta.AccessDateRangeOrBuilder getDateRangesOrBuilder( - int index); - - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return Whether the dimensionFilter field is set. - */ - boolean hasDimensionFilter(); - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - * @return The dimensionFilter. - */ - com.google.analytics.admin.v1beta.AccessFilterExpression getDimensionFilter(); - /** - *
-   * Dimension filters let you restrict report response to specific
-   * dimension values which match the filter. For example, filtering on access
-   * records of a single user. To learn more, see [Fundamentals of Dimension
-   * Filters](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#dimension_filters)
-   * for examples. Metrics cannot be used in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression dimension_filter = 5; - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return Whether the metricFilter field is set. - */ - boolean hasMetricFilter(); - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - * @return The metricFilter. - */ - com.google.analytics.admin.v1beta.AccessFilterExpression getMetricFilter(); - /** - *
-   * Metric filters allow you to restrict report response to specific metric
-   * values which match the filter. Metric filters are applied after aggregating
-   * the report's rows, similar to SQL having-clause. Dimensions cannot be used
-   * in this filter.
-   * 
- * - * .google.analytics.admin.v1beta.AccessFilterExpression metric_filter = 6; - */ - com.google.analytics.admin.v1beta.AccessFilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - *
-   * The row count of the start row. The first row is counted as row 0. If
-   * offset is unspecified, it is treated as 0. If offset is zero, then this
-   * method will return the first page of results with `limit` entries.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 7; - * @return The offset. - */ - long getOffset(); - - /** - *
-   * The number of rows to return. If unspecified, 10,000 rows are returned. The
-   * API returns a maximum of 100,000 rows per request, no matter how many you
-   * ask for. `limit` must be positive.
-   *
-   * The API may return fewer rows than the requested `limit`, if there aren't
-   * as many remaining rows as the `limit`. For instance, there are fewer than
-   * 300 possible values for the dimension `country`, so when reporting on only
-   * `country`, you can't get more than 300 rows, even if you set `limit` to a
-   * higher value.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 limit = 8; - * @return The limit. - */ - long getLimit(); - - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The timeZone. - */ - java.lang.String getTimeZone(); - /** - *
-   * This request's time zone if specified. If unspecified, the property's time
-   * zone is used. The request's time zone is used to interpret the start & end
-   * dates of the report.
-   *
-   * Formatted as strings from the IANA Time Zone database
-   * (https://www.iana.org/time-zones); for example "America/New_York" or
-   * "Asia/Tokyo".
-   * 
- * - * string time_zone = 9; - * @return The bytes for timeZone. - */ - com.google.protobuf.ByteString - getTimeZoneBytes(); - - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - java.util.List - getOrderBysList(); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - com.google.analytics.admin.v1beta.AccessOrderBy getOrderBys(int index); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - int getOrderBysCount(); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessOrderBy order_bys = 10; - */ - com.google.analytics.admin.v1beta.AccessOrderByOrBuilder getOrderBysOrBuilder( - int index); - - /** - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [AccessQuota](#AccessQuota). For account-level
-   * requests, this field must be false.
-   * 
- * - * bool return_entity_quota = 11; - * @return The returnEntityQuota. - */ - boolean getReturnEntityQuota(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponse.java deleted file mode 100644 index d1bf4cc9faa3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponse.java +++ /dev/null @@ -1,2186 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * The customized Data Access Record Report response.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportResponse} - */ -public final class RunAccessReportResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.RunAccessReportResponse) - RunAccessReportResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use RunAccessReportResponse.newBuilder() to construct. - private RunAccessReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private RunAccessReportResponse() { - dimensionHeaders_ = java.util.Collections.emptyList(); - metricHeaders_ = java.util.Collections.emptyList(); - rows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new RunAccessReportResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.RunAccessReportResponse.class, com.google.analytics.admin.v1beta.RunAccessReportResponse.Builder.class); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List dimensionHeaders_; - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List getDimensionHeadersList() { - return dimensionHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersOrBuilderList() { - return dimensionHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public int getDimensionHeadersCount() { - return dimensionHeaders_.size(); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionHeader getDimensionHeaders(int index) { - return dimensionHeaders_.get(index); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - return dimensionHeaders_.get(index); - } - - public static final int METRIC_HEADERS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private java.util.List metricHeaders_; - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List getMetricHeadersList() { - return metricHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List - getMetricHeadersOrBuilderList() { - return metricHeaders_; - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public int getMetricHeadersCount() { - return metricHeaders_.size(); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricHeader getMetricHeaders(int index) { - return metricHeaders_.get(index); - } - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - return metricHeaders_.get(index); - } - - public static final int ROWS_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List rows_; - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - @java.lang.Override - public java.util.List getRowsList() { - return rows_; - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - @java.lang.Override - public java.util.List - getRowsOrBuilderList() { - return rows_; - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessRow getRows(int index) { - return rows_.get(index); - } - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessRowOrBuilder getRowsOrBuilder( - int index) { - return rows_.get(index); - } - - public static final int ROW_COUNT_FIELD_NUMBER = 4; - private int rowCount_ = 0; - /** - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 4; - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - public static final int QUOTA_FIELD_NUMBER = 5; - private com.google.analytics.admin.v1beta.AccessQuota quota_; - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return Whether the quota field is set. - */ - @java.lang.Override - public boolean hasQuota() { - return quota_ != null; - } - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return The quota. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuota getQuota() { - return quota_ == null ? com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() : quota_; - } - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccessQuotaOrBuilder getQuotaOrBuilder() { - return quota_ == null ? com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() : quota_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < dimensionHeaders_.size(); i++) { - output.writeMessage(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - output.writeMessage(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(3, rows_.get(i)); - } - if (rowCount_ != 0) { - output.writeInt32(4, rowCount_); - } - if (quota_ != null) { - output.writeMessage(5, getQuota()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < dimensionHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, dimensionHeaders_.get(i)); - } - for (int i = 0; i < metricHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, rows_.get(i)); - } - if (rowCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(4, rowCount_); - } - if (quota_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getQuota()); - } - size += 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.admin.v1beta.RunAccessReportResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.RunAccessReportResponse other = (com.google.analytics.admin.v1beta.RunAccessReportResponse) obj; - - if (!getDimensionHeadersList() - .equals(other.getDimensionHeadersList())) return false; - if (!getMetricHeadersList() - .equals(other.getMetricHeadersList())) return false; - if (!getRowsList() - .equals(other.getRowsList())) return false; - if (getRowCount() - != other.getRowCount()) return false; - if (hasQuota() != other.hasQuota()) return false; - if (hasQuota()) { - if (!getQuota() - .equals(other.getQuota())) return false; - } - if (!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 (getDimensionHeadersCount() > 0) { - hash = (37 * hash) + DIMENSION_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getDimensionHeadersList().hashCode(); - } - if (getMetricHeadersCount() > 0) { - hash = (37 * hash) + METRIC_HEADERS_FIELD_NUMBER; - hash = (53 * hash) + getMetricHeadersList().hashCode(); - } - if (getRowsCount() > 0) { - hash = (37 * hash) + ROWS_FIELD_NUMBER; - hash = (53 * hash) + getRowsList().hashCode(); - } - hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getRowCount(); - if (hasQuota()) { - hash = (37 * hash) + QUOTA_FIELD_NUMBER; - hash = (53 * hash) + getQuota().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.RunAccessReportResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.RunAccessReportResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * The customized Data Access Record Report response.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.RunAccessReportResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.RunAccessReportResponse) - com.google.analytics.admin.v1beta.RunAccessReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.RunAccessReportResponse.class, com.google.analytics.admin.v1beta.RunAccessReportResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.RunAccessReportResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - } else { - dimensionHeaders_ = null; - dimensionHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - } else { - metricHeaders_ = null; - metricHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - } else { - rows_ = null; - rowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - rowCount_ = 0; - quota_ = null; - if (quotaBuilder_ != null) { - quotaBuilder_.dispose(); - quotaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_RunAccessReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.RunAccessReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportResponse build() { - com.google.analytics.admin.v1beta.RunAccessReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportResponse buildPartial() { - com.google.analytics.admin.v1beta.RunAccessReportResponse result = new com.google.analytics.admin.v1beta.RunAccessReportResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.RunAccessReportResponse result) { - if (dimensionHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dimensionHeaders_ = dimensionHeaders_; - } else { - result.dimensionHeaders_ = dimensionHeadersBuilder_.build(); - } - if (metricHeadersBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = java.util.Collections.unmodifiableList(metricHeaders_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.metricHeaders_ = metricHeaders_; - } else { - result.metricHeaders_ = metricHeadersBuilder_.build(); - } - if (rowsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - rows_ = java.util.Collections.unmodifiableList(rows_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.rows_ = rows_; - } else { - result.rows_ = rowsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.RunAccessReportResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.rowCount_ = rowCount_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.quota_ = quotaBuilder_ == null - ? quota_ - : quotaBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.RunAccessReportResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.RunAccessReportResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.RunAccessReportResponse other) { - if (other == com.google.analytics.admin.v1beta.RunAccessReportResponse.getDefaultInstance()) return this; - if (dimensionHeadersBuilder_ == null) { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeaders_.isEmpty()) { - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.addAll(other.dimensionHeaders_); - } - onChanged(); - } - } else { - if (!other.dimensionHeaders_.isEmpty()) { - if (dimensionHeadersBuilder_.isEmpty()) { - dimensionHeadersBuilder_.dispose(); - dimensionHeadersBuilder_ = null; - dimensionHeaders_ = other.dimensionHeaders_; - bitField0_ = (bitField0_ & ~0x00000001); - dimensionHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getDimensionHeadersFieldBuilder() : null; - } else { - dimensionHeadersBuilder_.addAllMessages(other.dimensionHeaders_); - } - } - } - if (metricHeadersBuilder_ == null) { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeaders_.isEmpty()) { - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureMetricHeadersIsMutable(); - metricHeaders_.addAll(other.metricHeaders_); - } - onChanged(); - } - } else { - if (!other.metricHeaders_.isEmpty()) { - if (metricHeadersBuilder_.isEmpty()) { - metricHeadersBuilder_.dispose(); - metricHeadersBuilder_ = null; - metricHeaders_ = other.metricHeaders_; - bitField0_ = (bitField0_ & ~0x00000002); - metricHeadersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getMetricHeadersFieldBuilder() : null; - } else { - metricHeadersBuilder_.addAllMessages(other.metricHeaders_); - } - } - } - if (rowsBuilder_ == null) { - if (!other.rows_.isEmpty()) { - if (rows_.isEmpty()) { - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRowsIsMutable(); - rows_.addAll(other.rows_); - } - onChanged(); - } - } else { - if (!other.rows_.isEmpty()) { - if (rowsBuilder_.isEmpty()) { - rowsBuilder_.dispose(); - rowsBuilder_ = null; - rows_ = other.rows_; - bitField0_ = (bitField0_ & ~0x00000004); - rowsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRowsFieldBuilder() : null; - } else { - rowsBuilder_.addAllMessages(other.rows_); - } - } - } - if (other.getRowCount() != 0) { - setRowCount(other.getRowCount()); - } - if (other.hasQuota()) { - mergeQuota(other.getQuota()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.AccessDimensionHeader m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessDimensionHeader.parser(), - extensionRegistry); - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(m); - } else { - dimensionHeadersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - com.google.analytics.admin.v1beta.AccessMetricHeader m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessMetricHeader.parser(), - extensionRegistry); - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(m); - } else { - metricHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - com.google.analytics.admin.v1beta.AccessRow m = - input.readMessage( - com.google.analytics.admin.v1beta.AccessRow.parser(), - extensionRegistry); - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(m); - } else { - rowsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: { - rowCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - input.readMessage( - getQuotaFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List dimensionHeaders_ = - java.util.Collections.emptyList(); - private void ensureDimensionHeadersIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = new java.util.ArrayList(dimensionHeaders_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimensionHeader, com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder, com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder> dimensionHeadersBuilder_; - - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public java.util.List getDimensionHeadersList() { - if (dimensionHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } else { - return dimensionHeadersBuilder_.getMessageList(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public int getDimensionHeadersCount() { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.size(); - } else { - return dimensionHeadersBuilder_.getCount(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionHeader getDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessage(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.admin.v1beta.AccessDimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders(com.google.analytics.admin.v1beta.AccessDimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.admin.v1beta.AccessDimensionHeader value) { - if (dimensionHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, value); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder addAllDimensionHeaders( - java.lang.Iterable values) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, dimensionHeaders_); - onChanged(); - } else { - dimensionHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder clearDimensionHeaders() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - dimensionHeadersBuilder_.clear(); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public Builder removeDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.remove(index); - onChanged(); - } else { - dimensionHeadersBuilder_.remove(index); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder getDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().getBuilder(index); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); } else { - return dimensionHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersOrBuilderList() { - if (dimensionHeadersBuilder_ != null) { - return dimensionHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(dimensionHeaders_); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessDimensionHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-     * matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimensionHeader, com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder, com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessDimensionHeader, com.google.analytics.admin.v1beta.AccessDimensionHeader.Builder, com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder>( - dimensionHeaders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - dimensionHeaders_ = null; - } - return dimensionHeadersBuilder_; - } - - private java.util.List metricHeaders_ = - java.util.Collections.emptyList(); - private void ensureMetricHeadersIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - metricHeaders_ = new java.util.ArrayList(metricHeaders_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetricHeader, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder, com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder> metricHeadersBuilder_; - - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public java.util.List getMetricHeadersList() { - if (metricHeadersBuilder_ == null) { - return java.util.Collections.unmodifiableList(metricHeaders_); - } else { - return metricHeadersBuilder_.getMessageList(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public int getMetricHeadersCount() { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.size(); - } else { - return metricHeadersBuilder_.getCount(); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricHeader getMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessage(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.admin.v1beta.AccessMetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, value); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders(com.google.analytics.admin.v1beta.AccessMetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.admin.v1beta.AccessMetricHeader value) { - if (metricHeadersBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, value); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - com.google.analytics.admin.v1beta.AccessMetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder addAllMetricHeaders( - java.lang.Iterable values) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, metricHeaders_); - onChanged(); - } else { - metricHeadersBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder clearMetricHeaders() { - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - metricHeadersBuilder_.clear(); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public Builder removeMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.remove(index); - onChanged(); - } else { - metricHeadersBuilder_.remove(index); - } - return this; - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricHeader.Builder getMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().getBuilder(index); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); } else { - return metricHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersOrBuilderList() { - if (metricHeadersBuilder_ != null) { - return metricHeadersBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(metricHeaders_); - } - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public com.google.analytics.admin.v1beta.AccessMetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessMetricHeader.getDefaultInstance()); - } - /** - *
-     * The header for a column in the report that corresponds to a specific
-     * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-     * the metrics present in rows.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetricHeader, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder, com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessMetricHeader, com.google.analytics.admin.v1beta.AccessMetricHeader.Builder, com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder>( - metricHeaders_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - metricHeaders_ = null; - } - return metricHeadersBuilder_; - } - - private java.util.List rows_ = - java.util.Collections.emptyList(); - private void ensureRowsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - rows_ = new java.util.ArrayList(rows_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessRow, com.google.analytics.admin.v1beta.AccessRow.Builder, com.google.analytics.admin.v1beta.AccessRowOrBuilder> rowsBuilder_; - - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public java.util.List getRowsList() { - if (rowsBuilder_ == null) { - return java.util.Collections.unmodifiableList(rows_); - } else { - return rowsBuilder_.getMessageList(); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public int getRowsCount() { - if (rowsBuilder_ == null) { - return rows_.size(); - } else { - return rowsBuilder_.getCount(); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1beta.AccessRow getRows(int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); - } else { - return rowsBuilder_.getMessage(index); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.admin.v1beta.AccessRow value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.set(index, value); - onChanged(); - } else { - rowsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.admin.v1beta.AccessRow.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.set(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder addRows(com.google.analytics.admin.v1beta.AccessRow value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(value); - onChanged(); - } else { - rowsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.admin.v1beta.AccessRow value) { - if (rowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRowsIsMutable(); - rows_.add(index, value); - onChanged(); - } else { - rowsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder addRows( - com.google.analytics.admin.v1beta.AccessRow.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.admin.v1beta.AccessRow.Builder builderForValue) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(index, builderForValue.build()); - onChanged(); - } else { - rowsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder addAllRows( - java.lang.Iterable values) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, rows_); - onChanged(); - } else { - rowsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder clearRows() { - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - rowsBuilder_.clear(); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public Builder removeRows(int index) { - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.remove(index); - onChanged(); - } else { - rowsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1beta.AccessRow.Builder getRowsBuilder( - int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1beta.AccessRowOrBuilder getRowsOrBuilder( - int index) { - if (rowsBuilder_ == null) { - return rows_.get(index); } else { - return rowsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public java.util.List - getRowsOrBuilderList() { - if (rowsBuilder_ != null) { - return rowsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(rows_); - } - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1beta.AccessRow.Builder addRowsBuilder() { - return getRowsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance()); - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public com.google.analytics.admin.v1beta.AccessRow.Builder addRowsBuilder( - int index) { - return getRowsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.AccessRow.getDefaultInstance()); - } - /** - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - public java.util.List - getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessRow, com.google.analytics.admin.v1beta.AccessRow.Builder, com.google.analytics.admin.v1beta.AccessRowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessRow, com.google.analytics.admin.v1beta.AccessRow.Builder, com.google.analytics.admin.v1beta.AccessRowOrBuilder>( - rows_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private int rowCount_ ; - /** - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 4; - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - /** - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 4; - * @param value The rowCount to set. - * @return This builder for chaining. - */ - public Builder setRowCount(int value) { - - rowCount_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - /** - *
-     * The total number of rows in the query result. `rowCount` is independent of
-     * the number of rows returned in the response, the `limit` request
-     * parameter, and the `offset` request parameter. For example if a query
-     * returns 175 rows and includes `limit` of 50 in the API request, the
-     * response will contain `rowCount` of 175 but only 50 rows.
-     *
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int32 row_count = 4; - * @return This builder for chaining. - */ - public Builder clearRowCount() { - bitField0_ = (bitField0_ & ~0x00000008); - rowCount_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.admin.v1beta.AccessQuota quota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuota, com.google.analytics.admin.v1beta.AccessQuota.Builder, com.google.analytics.admin.v1beta.AccessQuotaOrBuilder> quotaBuilder_; - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return Whether the quota field is set. - */ - public boolean hasQuota() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return The quota. - */ - public com.google.analytics.admin.v1beta.AccessQuota getQuota() { - if (quotaBuilder_ == null) { - return quota_ == null ? com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() : quota_; - } else { - return quotaBuilder_.getMessage(); - } - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - public Builder setQuota(com.google.analytics.admin.v1beta.AccessQuota value) { - if (quotaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - quota_ = value; - } else { - quotaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - public Builder setQuota( - com.google.analytics.admin.v1beta.AccessQuota.Builder builderForValue) { - if (quotaBuilder_ == null) { - quota_ = builderForValue.build(); - } else { - quotaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - public Builder mergeQuota(com.google.analytics.admin.v1beta.AccessQuota value) { - if (quotaBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) && - quota_ != null && - quota_ != com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance()) { - getQuotaBuilder().mergeFrom(value); - } else { - quota_ = value; - } - } else { - quotaBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - public Builder clearQuota() { - bitField0_ = (bitField0_ & ~0x00000010); - quota_ = null; - if (quotaBuilder_ != null) { - quotaBuilder_.dispose(); - quotaBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - public com.google.analytics.admin.v1beta.AccessQuota.Builder getQuotaBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return getQuotaFieldBuilder().getBuilder(); - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - public com.google.analytics.admin.v1beta.AccessQuotaOrBuilder getQuotaOrBuilder() { - if (quotaBuilder_ != null) { - return quotaBuilder_.getMessageOrBuilder(); - } else { - return quota_ == null ? - com.google.analytics.admin.v1beta.AccessQuota.getDefaultInstance() : quota_; - } - } - /** - *
-     * The quota state for this Analytics property including this request. This
-     * field doesn't work with account-level requests.
-     * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuota, com.google.analytics.admin.v1beta.AccessQuota.Builder, com.google.analytics.admin.v1beta.AccessQuotaOrBuilder> - getQuotaFieldBuilder() { - if (quotaBuilder_ == null) { - quotaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.AccessQuota, com.google.analytics.admin.v1beta.AccessQuota.Builder, com.google.analytics.admin.v1beta.AccessQuotaOrBuilder>( - getQuota(), - getParentForChildren(), - isClean()); - quota_ = null; - } - return quotaBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.RunAccessReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.RunAccessReportResponse) - private static final com.google.analytics.admin.v1beta.RunAccessReportResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.RunAccessReportResponse(); - } - - public static com.google.analytics.admin.v1beta.RunAccessReportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunAccessReportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.RunAccessReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponseOrBuilder.java deleted file mode 100644 index adcf4866e4dd..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/RunAccessReportResponseOrBuilder.java +++ /dev/null @@ -1,208 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface RunAccessReportResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.RunAccessReportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - java.util.List - getDimensionHeadersList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - com.google.analytics.admin.v1beta.AccessDimensionHeader getDimensionHeaders(int index); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - int getDimensionHeadersCount(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - java.util.List - getDimensionHeadersOrBuilderList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * dimension. The number of DimensionHeaders and ordering of DimensionHeaders
-   * matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessDimensionHeader dimension_headers = 1; - */ - com.google.analytics.admin.v1beta.AccessDimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index); - - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - com.google.analytics.admin.v1beta.AccessMetricHeader getMetricHeaders(int index); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - int getMetricHeadersCount(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersOrBuilderList(); - /** - *
-   * The header for a column in the report that corresponds to a specific
-   * metric. The number of MetricHeaders and ordering of MetricHeaders matches
-   * the metrics present in rows.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessMetricHeader metric_headers = 2; - */ - com.google.analytics.admin.v1beta.AccessMetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index); - - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - java.util.List - getRowsList(); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - com.google.analytics.admin.v1beta.AccessRow getRows(int index); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - int getRowsCount(); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - java.util.List - getRowsOrBuilderList(); - /** - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.admin.v1beta.AccessRow rows = 3; - */ - com.google.analytics.admin.v1beta.AccessRowOrBuilder getRowsOrBuilder( - int index); - - /** - *
-   * The total number of rows in the query result. `rowCount` is independent of
-   * the number of rows returned in the response, the `limit` request
-   * parameter, and the `offset` request parameter. For example if a query
-   * returns 175 rows and includes `limit` of 50 in the API request, the
-   * response will contain `rowCount` of 175 but only 50 rows.
-   *
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int32 row_count = 4; - * @return The rowCount. - */ - int getRowCount(); - - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return Whether the quota field is set. - */ - boolean hasQuota(); - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - * @return The quota. - */ - com.google.analytics.admin.v1beta.AccessQuota getQuota(); - /** - *
-   * The quota state for this Analytics property including this request. This
-   * field doesn't work with account-level requests.
-   * 
- * - * .google.analytics.admin.v1beta.AccessQuota quota = 5; - */ - com.google.analytics.admin.v1beta.AccessQuotaOrBuilder getQuotaOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java deleted file mode 100644 index a26c850beeff..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequest.java +++ /dev/null @@ -1,2442 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for SearchChangeHistoryEvents RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} - */ -public final class SearchChangeHistoryEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) - SearchChangeHistoryEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchChangeHistoryEventsRequest.newBuilder() to construct. - private SearchChangeHistoryEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchChangeHistoryEventsRequest() { - account_ = ""; - property_ = ""; - resourceType_ = java.util.Collections.emptyList(); - action_ = java.util.Collections.emptyList(); - actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchChangeHistoryEventsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.class, com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object account_ = ""; - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The account. - */ - @java.lang.Override - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } - } - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROPERTY_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object property_ = ""; - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The property. - */ - @java.lang.Override - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } - } - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private java.util.List resourceType_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType> resourceType_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType>() { - public com.google.analytics.admin.v1beta.ChangeHistoryResourceType convert(java.lang.Integer from) { - com.google.analytics.admin.v1beta.ChangeHistoryResourceType result = com.google.analytics.admin.v1beta.ChangeHistoryResourceType.forNumber(from); - return result == null ? com.google.analytics.admin.v1beta.ChangeHistoryResourceType.UNRECOGNIZED : result; - } - }; - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the resourceType. - */ - @java.lang.Override - public java.util.List getResourceTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType>(resourceType_, resourceType_converter_); - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of resourceType. - */ - @java.lang.Override - public int getResourceTypeCount() { - return resourceType_.size(); - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The resourceType at the given index. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryResourceType getResourceType(int index) { - return resourceType_converter_.convert(resourceType_.get(index)); - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for resourceType. - */ - @java.lang.Override - public java.util.List - getResourceTypeValueList() { - return resourceType_; - } - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of resourceType at the given index. - */ - @java.lang.Override - public int getResourceTypeValue(int index) { - return resourceType_.get(index); - } - private int resourceTypeMemoizedSerializedSize; - - public static final int ACTION_FIELD_NUMBER = 4; - @SuppressWarnings("serial") - private java.util.List action_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1beta.ActionType> action_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.admin.v1beta.ActionType>() { - public com.google.analytics.admin.v1beta.ActionType convert(java.lang.Integer from) { - com.google.analytics.admin.v1beta.ActionType result = com.google.analytics.admin.v1beta.ActionType.forNumber(from); - return result == null ? com.google.analytics.admin.v1beta.ActionType.UNRECOGNIZED : result; - } - }; - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the action. - */ - @java.lang.Override - public java.util.List getActionList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1beta.ActionType>(action_, action_converter_); - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of action. - */ - @java.lang.Override - public int getActionCount() { - return action_.size(); - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The action at the given index. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ActionType getAction(int index) { - return action_converter_.convert(action_.get(index)); - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for action. - */ - @java.lang.Override - public java.util.List - getActionValueList() { - return action_; - } - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of action at the given index. - */ - @java.lang.Override - public int getActionValue(int index) { - return action_.get(index); - } - private int actionMemoizedSerializedSize; - - public static final int ACTOR_EMAIL_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the actorEmail. - */ - public com.google.protobuf.ProtocolStringList - getActorEmailList() { - return actorEmail_; - } - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of actorEmail. - */ - public int getActorEmailCount() { - return actorEmail_.size(); - } - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The actorEmail at the given index. - */ - public java.lang.String getActorEmail(int index) { - return actorEmail_.get(index); - } - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the actorEmail at the given index. - */ - public com.google.protobuf.ByteString - getActorEmailBytes(int index) { - return actorEmail_.getByteString(index); - } - - public static final int EARLIEST_CHANGE_TIME_FIELD_NUMBER = 6; - private com.google.protobuf.Timestamp earliestChangeTime_; - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the earliestChangeTime field is set. - */ - @java.lang.Override - public boolean hasEarliestChangeTime() { - return earliestChangeTime_ != null; - } - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The earliestChangeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getEarliestChangeTime() { - return earliestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { - return earliestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } - - public static final int LATEST_CHANGE_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp latestChangeTime_; - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the latestChangeTime field is set. - */ - @java.lang.Override - public boolean hasLatestChangeTime() { - return latestChangeTime_ != null; - } - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The latestChangeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getLatestChangeTime() { - return latestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { - return latestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 8; - private int pageSize_ = 0; - /** - *
-   * Optional. The maximum number of ChangeHistoryEvent items to return.
-   * The service may return fewer than this value, even if there are additional
-   * pages. If unspecified, at most 50 items will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 9; - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); - } - if (getResourceTypeList().size() > 0) { - output.writeUInt32NoTag(26); - output.writeUInt32NoTag(resourceTypeMemoizedSerializedSize); - } - for (int i = 0; i < resourceType_.size(); i++) { - output.writeEnumNoTag(resourceType_.get(i)); - } - if (getActionList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(actionMemoizedSerializedSize); - } - for (int i = 0; i < action_.size(); i++) { - output.writeEnumNoTag(action_.get(i)); - } - for (int i = 0; i < actorEmail_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorEmail_.getRaw(i)); - } - if (earliestChangeTime_ != null) { - output.writeMessage(6, getEarliestChangeTime()); - } - if (latestChangeTime_ != null) { - output.writeMessage(7, getLatestChangeTime()); - } - if (pageSize_ != 0) { - output.writeInt32(8, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); - } - 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(account_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); - } - { - int dataSize = 0; - for (int i = 0; i < resourceType_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(resourceType_.get(i)); - } - size += dataSize; - if (!getResourceTypeList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }resourceTypeMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < action_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(action_.get(i)); - } - size += dataSize; - if (!getActionList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }actionMemoizedSerializedSize = dataSize; - } - { - int dataSize = 0; - for (int i = 0; i < actorEmail_.size(); i++) { - dataSize += computeStringSizeNoTag(actorEmail_.getRaw(i)); - } - size += dataSize; - size += 1 * getActorEmailList().size(); - } - if (earliestChangeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getEarliestChangeTime()); - } - if (latestChangeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(7, getLatestChangeTime()); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(8, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); - } - 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.admin.v1beta.SearchChangeHistoryEventsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest other = (com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) obj; - - if (!getAccount() - .equals(other.getAccount())) return false; - if (!getProperty() - .equals(other.getProperty())) return false; - if (!resourceType_.equals(other.resourceType_)) return false; - if (!action_.equals(other.action_)) return false; - if (!getActorEmailList() - .equals(other.getActorEmailList())) return false; - if (hasEarliestChangeTime() != other.hasEarliestChangeTime()) return false; - if (hasEarliestChangeTime()) { - if (!getEarliestChangeTime() - .equals(other.getEarliestChangeTime())) return false; - } - if (hasLatestChangeTime() != other.hasLatestChangeTime()) return false; - if (hasLatestChangeTime()) { - if (!getLatestChangeTime() - .equals(other.getLatestChangeTime())) return false; - } - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) 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) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getResourceTypeCount() > 0) { - hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + resourceType_.hashCode(); - } - if (getActionCount() > 0) { - hash = (37 * hash) + ACTION_FIELD_NUMBER; - hash = (53 * hash) + action_.hashCode(); - } - if (getActorEmailCount() > 0) { - hash = (37 * hash) + ACTOR_EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getActorEmailList().hashCode(); - } - if (hasEarliestChangeTime()) { - hash = (37 * hash) + EARLIEST_CHANGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getEarliestChangeTime().hashCode(); - } - if (hasLatestChangeTime()) { - hash = (37 * hash) + LATEST_CHANGE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getLatestChangeTime().hashCode(); - } - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for SearchChangeHistoryEvents RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.class, com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - account_ = ""; - property_ = ""; - resourceType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - action_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - earliestChangeTime_ = null; - if (earliestChangeTimeBuilder_ != null) { - earliestChangeTimeBuilder_.dispose(); - earliestChangeTimeBuilder_ = null; - } - latestChangeTime_ = null; - if (latestChangeTimeBuilder_ != null) { - latestChangeTimeBuilder_.dispose(); - latestChangeTimeBuilder_ = null; - } - pageSize_ = 0; - pageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest build() { - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest buildPartial() { - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result = new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result) { - if (((bitField0_ & 0x00000004) != 0)) { - resourceType_ = java.util.Collections.unmodifiableList(resourceType_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.resourceType_ = resourceType_; - if (((bitField0_ & 0x00000008) != 0)) { - action_ = java.util.Collections.unmodifiableList(action_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.action_ = action_; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.account_ = account_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.property_ = property_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - actorEmail_.makeImmutable(); - result.actorEmail_ = actorEmail_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.earliestChangeTime_ = earliestChangeTimeBuilder_ == null - ? earliestChangeTime_ - : earliestChangeTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.latestChangeTime_ = latestChangeTimeBuilder_ == null - ? latestChangeTime_ - : latestChangeTimeBuilder_.build(); - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest other) { - if (other == com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest.getDefaultInstance()) return this; - if (!other.getAccount().isEmpty()) { - account_ = other.account_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.resourceType_.isEmpty()) { - if (resourceType_.isEmpty()) { - resourceType_ = other.resourceType_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureResourceTypeIsMutable(); - resourceType_.addAll(other.resourceType_); - } - onChanged(); - } - if (!other.action_.isEmpty()) { - if (action_.isEmpty()) { - action_ = other.action_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureActionIsMutable(); - action_.addAll(other.action_); - } - onChanged(); - } - if (!other.actorEmail_.isEmpty()) { - if (actorEmail_.isEmpty()) { - actorEmail_ = other.actorEmail_; - bitField0_ |= 0x00000010; - } else { - ensureActorEmailIsMutable(); - actorEmail_.addAll(other.actorEmail_); - } - onChanged(); - } - if (other.hasEarliestChangeTime()) { - mergeEarliestChangeTime(other.getEarliestChangeTime()); - } - if (other.hasLatestChangeTime()) { - mergeLatestChangeTime(other.getLatestChangeTime()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000100; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - account_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - property_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - int tmpRaw = input.readEnum(); - ensureResourceTypeIsMutable(); - resourceType_.add(tmpRaw); - break; - } // case 24 - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureResourceTypeIsMutable(); - resourceType_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 26 - case 32: { - int tmpRaw = input.readEnum(); - ensureActionIsMutable(); - action_.add(tmpRaw); - break; - } // case 32 - case 34: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureActionIsMutable(); - action_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureActorEmailIsMutable(); - actorEmail_.add(s); - break; - } // case 42 - case 50: { - input.readMessage( - getEarliestChangeTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: { - input.readMessage( - getLatestChangeTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 58 - case 64: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 64 - case 74: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 74 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.lang.Object account_ = ""; - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The account. - */ - public java.lang.String getAccount() { - java.lang.Object ref = account_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - account_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - public com.google.protobuf.ByteString - getAccountBytes() { - java.lang.Object ref = account_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - account_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The account to set. - * @return This builder for chaining. - */ - public Builder setAccount( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - account_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearAccount() { - account_ = getDefaultInstance().getAccount(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
-     * Required. The account resource for which to return change history
-     * resources.
-     * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for account to set. - * @return This builder for chaining. - */ - public Builder setAccountBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - account_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object property_ = ""; - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The property. - */ - public java.lang.String getProperty() { - java.lang.Object ref = property_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - property_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - public com.google.protobuf.ByteString - getPropertyBytes() { - java.lang.Object ref = property_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - property_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @param value The property to set. - * @return This builder for chaining. - */ - public Builder setProperty( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - property_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearProperty() { - property_ = getDefaultInstance().getProperty(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * Optional. Resource name for a child property. If set, only return changes
-     * made to this property or its child resources.
-     * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @param value The bytes for property to set. - * @return This builder for chaining. - */ - public Builder setPropertyBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - property_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List resourceType_ = - java.util.Collections.emptyList(); - private void ensureResourceTypeIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - resourceType_ = new java.util.ArrayList(resourceType_); - bitField0_ |= 0x00000004; - } - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the resourceType. - */ - public java.util.List getResourceTypeList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1beta.ChangeHistoryResourceType>(resourceType_, resourceType_converter_); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of resourceType. - */ - public int getResourceTypeCount() { - return resourceType_.size(); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The resourceType at the given index. - */ - public com.google.analytics.admin.v1beta.ChangeHistoryResourceType getResourceType(int index) { - return resourceType_converter_.convert(resourceType_.get(index)); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceType( - int index, com.google.analytics.admin.v1beta.ChangeHistoryResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceTypeIsMutable(); - resourceType_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The resourceType to add. - * @return This builder for chaining. - */ - public Builder addResourceType(com.google.analytics.admin.v1beta.ChangeHistoryResourceType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureResourceTypeIsMutable(); - resourceType_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The resourceType to add. - * @return This builder for chaining. - */ - public Builder addAllResourceType( - java.lang.Iterable values) { - ensureResourceTypeIsMutable(); - for (com.google.analytics.admin.v1beta.ChangeHistoryResourceType value : values) { - resourceType_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearResourceType() { - resourceType_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for resourceType. - */ - public java.util.List - getResourceTypeValueList() { - return java.util.Collections.unmodifiableList(resourceType_); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of resourceType at the given index. - */ - public int getResourceTypeValue(int index) { - return resourceType_.get(index); - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for resourceType to set. - * @return This builder for chaining. - */ - public Builder setResourceTypeValue( - int index, int value) { - ensureResourceTypeIsMutable(); - resourceType_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for resourceType to add. - * @return This builder for chaining. - */ - public Builder addResourceTypeValue(int value) { - ensureResourceTypeIsMutable(); - resourceType_.add(value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are for a resource that
-     * matches at least one of these types.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The enum numeric values on the wire for resourceType to add. - * @return This builder for chaining. - */ - public Builder addAllResourceTypeValue( - java.lang.Iterable values) { - ensureResourceTypeIsMutable(); - for (int value : values) { - resourceType_.add(value); - } - onChanged(); - return this; - } - - private java.util.List action_ = - java.util.Collections.emptyList(); - private void ensureActionIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - action_ = new java.util.ArrayList(action_); - bitField0_ |= 0x00000008; - } - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the action. - */ - public java.util.List getActionList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.analytics.admin.v1beta.ActionType>(action_, action_converter_); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of action. - */ - public int getActionCount() { - return action_.size(); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The action at the given index. - */ - public com.google.analytics.admin.v1beta.ActionType getAction(int index) { - return action_converter_.convert(action_.get(index)); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The action to set. - * @return This builder for chaining. - */ - public Builder setAction( - int index, com.google.analytics.admin.v1beta.ActionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionIsMutable(); - action_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The action to add. - * @return This builder for chaining. - */ - public Builder addAction(com.google.analytics.admin.v1beta.ActionType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActionIsMutable(); - action_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The action to add. - * @return This builder for chaining. - */ - public Builder addAllAction( - java.lang.Iterable values) { - ensureActionIsMutable(); - for (com.google.analytics.admin.v1beta.ActionType value : values) { - action_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearAction() { - action_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for action. - */ - public java.util.List - getActionValueList() { - return java.util.Collections.unmodifiableList(action_); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of action at the given index. - */ - public int getActionValue(int index) { - return action_.get(index); - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for action to set. - * @return This builder for chaining. - */ - public Builder setActionValue( - int index, int value) { - ensureActionIsMutable(); - action_.set(index, value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for action to add. - * @return This builder for chaining. - */ - public Builder addActionValue(int value) { - ensureActionIsMutable(); - action_.add(value); - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes that match one or more of these types
-     * of actions.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The enum numeric values on the wire for action to add. - * @return This builder for chaining. - */ - public Builder addAllActionValue( - java.lang.Iterable values) { - ensureActionIsMutable(); - for (int value : values) { - action_.add(value); - } - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureActorEmailIsMutable() { - if (!actorEmail_.isModifiable()) { - actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); - } - bitField0_ |= 0x00000010; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the actorEmail. - */ - public com.google.protobuf.ProtocolStringList - getActorEmailList() { - actorEmail_.makeImmutable(); - return actorEmail_; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of actorEmail. - */ - public int getActorEmailCount() { - return actorEmail_.size(); - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The actorEmail at the given index. - */ - public java.lang.String getActorEmail(int index) { - return actorEmail_.get(index); - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the actorEmail at the given index. - */ - public com.google.protobuf.ByteString - getActorEmailBytes(int index) { - return actorEmail_.getByteString(index); - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index to set the value at. - * @param value The actorEmail to set. - * @return This builder for chaining. - */ - public Builder setActorEmail( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureActorEmailIsMutable(); - actorEmail_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The actorEmail to add. - * @return This builder for chaining. - */ - public Builder addActorEmail( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureActorEmailIsMutable(); - actorEmail_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param values The actorEmail to add. - * @return This builder for chaining. - */ - public Builder addAllActorEmail( - java.lang.Iterable values) { - ensureActorEmailIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, actorEmail_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearActorEmail() { - actorEmail_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes if they are made by a user in this
-     * list.
-     * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes of the actorEmail to add. - * @return This builder for chaining. - */ - public Builder addActorEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureActorEmailIsMutable(); - actorEmail_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp earliestChangeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> earliestChangeTimeBuilder_; - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the earliestChangeTime field is set. - */ - public boolean hasEarliestChangeTime() { - return ((bitField0_ & 0x00000020) != 0); - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The earliestChangeTime. - */ - public com.google.protobuf.Timestamp getEarliestChangeTime() { - if (earliestChangeTimeBuilder_ == null) { - return earliestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } else { - return earliestChangeTimeBuilder_.getMessage(); - } - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEarliestChangeTime(com.google.protobuf.Timestamp value) { - if (earliestChangeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - earliestChangeTime_ = value; - } else { - earliestChangeTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setEarliestChangeTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTime_ = builderForValue.build(); - } else { - earliestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeEarliestChangeTime(com.google.protobuf.Timestamp value) { - if (earliestChangeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) && - earliestChangeTime_ != null && - earliestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getEarliestChangeTimeBuilder().mergeFrom(value); - } else { - earliestChangeTime_ = value; - } - } else { - earliestChangeTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearEarliestChangeTime() { - bitField0_ = (bitField0_ & ~0x00000020); - earliestChangeTime_ = null; - if (earliestChangeTimeBuilder_ != null) { - earliestChangeTimeBuilder_.dispose(); - earliestChangeTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Timestamp.Builder getEarliestChangeTimeBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return getEarliestChangeTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { - if (earliestChangeTimeBuilder_ != null) { - return earliestChangeTimeBuilder_.getMessageOrBuilder(); - } else { - return earliestChangeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : earliestChangeTime_; - } - } - /** - *
-     * Optional. If set, only return changes made after this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getEarliestChangeTimeFieldBuilder() { - if (earliestChangeTimeBuilder_ == null) { - earliestChangeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getEarliestChangeTime(), - getParentForChildren(), - isClean()); - earliestChangeTime_ = null; - } - return earliestChangeTimeBuilder_; - } - - private com.google.protobuf.Timestamp latestChangeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> latestChangeTimeBuilder_; - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the latestChangeTime field is set. - */ - public boolean hasLatestChangeTime() { - return ((bitField0_ & 0x00000040) != 0); - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The latestChangeTime. - */ - public com.google.protobuf.Timestamp getLatestChangeTime() { - if (latestChangeTimeBuilder_ == null) { - return latestChangeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } else { - return latestChangeTimeBuilder_.getMessage(); - } - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setLatestChangeTime(com.google.protobuf.Timestamp value) { - if (latestChangeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - latestChangeTime_ = value; - } else { - latestChangeTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setLatestChangeTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (latestChangeTimeBuilder_ == null) { - latestChangeTime_ = builderForValue.build(); - } else { - latestChangeTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeLatestChangeTime(com.google.protobuf.Timestamp value) { - if (latestChangeTimeBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) && - latestChangeTime_ != null && - latestChangeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getLatestChangeTimeBuilder().mergeFrom(value); - } else { - latestChangeTime_ = value; - } - } else { - latestChangeTimeBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearLatestChangeTime() { - bitField0_ = (bitField0_ & ~0x00000040); - latestChangeTime_ = null; - if (latestChangeTimeBuilder_ != null) { - latestChangeTimeBuilder_.dispose(); - latestChangeTimeBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Timestamp.Builder getLatestChangeTimeBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return getLatestChangeTimeFieldBuilder().getBuilder(); - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { - if (latestChangeTimeBuilder_ != null) { - return latestChangeTimeBuilder_.getMessageOrBuilder(); - } else { - return latestChangeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : latestChangeTime_; - } - } - /** - *
-     * Optional. If set, only return changes made before this time (inclusive).
-     * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getLatestChangeTimeFieldBuilder() { - if (latestChangeTimeBuilder_ == null) { - latestChangeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLatestChangeTime(), - getParentForChildren(), - isClean()); - latestChangeTime_ = null; - } - return latestChangeTimeBuilder_; - } - - private int pageSize_ ; - /** - *
-     * Optional. The maximum number of ChangeHistoryEvent items to return.
-     * The service may return fewer than this value, even if there are additional
-     * pages. If unspecified, at most 50 items will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
-     * Optional. The maximum number of ChangeHistoryEvent items to return.
-     * The service may return fewer than this value, even if there are additional
-     * pages. If unspecified, at most 50 items will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - /** - *
-     * Optional. The maximum number of ChangeHistoryEvent items to return.
-     * The service may return fewer than this value, even if there are additional
-     * pages. If unspecified, at most 50 items will be returned.
-     * The maximum value is 200 (higher values will be coerced to the maximum).
-     * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000080); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - pageToken_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - /** - *
-     * Optional. A page token, received from a previous
-     * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-     * page. When paginating, all other parameters provided to
-     * `SearchChangeHistoryEvents` must match the call that provided the page
-     * token.
-     * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) - private static final com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest(); - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchChangeHistoryEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java deleted file mode 100644 index 4f3438091ed3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsRequestOrBuilder.java +++ /dev/null @@ -1,301 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface SearchChangeHistoryEventsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.SearchChangeHistoryEventsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The account. - */ - java.lang.String getAccount(); - /** - *
-   * Required. The account resource for which to return change history
-   * resources.
-   * 
- * - * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for account. - */ - com.google.protobuf.ByteString - getAccountBytes(); - - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The property. - */ - java.lang.String getProperty(); - /** - *
-   * Optional. Resource name for a child property. If set, only return changes
-   * made to this property or its child resources.
-   * 
- * - * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } - * @return The bytes for property. - */ - com.google.protobuf.ByteString - getPropertyBytes(); - - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the resourceType. - */ - java.util.List getResourceTypeList(); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of resourceType. - */ - int getResourceTypeCount(); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The resourceType at the given index. - */ - com.google.analytics.admin.v1beta.ChangeHistoryResourceType getResourceType(int index); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for resourceType. - */ - java.util.List - getResourceTypeValueList(); - /** - *
-   * Optional. If set, only return changes if they are for a resource that
-   * matches at least one of these types.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of resourceType at the given index. - */ - int getResourceTypeValue(int index); - - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the action. - */ - java.util.List getActionList(); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of action. - */ - int getActionCount(); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The action at the given index. - */ - com.google.analytics.admin.v1beta.ActionType getAction(int index); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the enum numeric values on the wire for action. - */ - java.util.List - getActionValueList(); - /** - *
-   * Optional. If set, only return changes that match one or more of these types
-   * of actions.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of action at the given index. - */ - int getActionValue(int index); - - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return A list containing the actorEmail. - */ - java.util.List - getActorEmailList(); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @return The count of actorEmail. - */ - int getActorEmailCount(); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the element to return. - * @return The actorEmail at the given index. - */ - java.lang.String getActorEmail(int index); - /** - *
-   * Optional. If set, only return changes if they are made by a user in this
-   * list.
-   * 
- * - * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; - * @param index The index of the value to return. - * @return The bytes of the actorEmail at the given index. - */ - com.google.protobuf.ByteString - getActorEmailBytes(int index); - - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the earliestChangeTime field is set. - */ - boolean hasEarliestChangeTime(); - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The earliestChangeTime. - */ - com.google.protobuf.Timestamp getEarliestChangeTime(); - /** - *
-   * Optional. If set, only return changes made after this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder(); - - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return Whether the latestChangeTime field is set. - */ - boolean hasLatestChangeTime(); - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - * @return The latestChangeTime. - */ - com.google.protobuf.Timestamp getLatestChangeTime(); - /** - *
-   * Optional. If set, only return changes made before this time (inclusive).
-   * 
- * - * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder(); - - /** - *
-   * Optional. The maximum number of ChangeHistoryEvent items to return.
-   * The service may return fewer than this value, even if there are additional
-   * pages. If unspecified, at most 50 items will be returned.
-   * The maximum value is 200 (higher values will be coerced to the maximum).
-   * 
- * - * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
-   * Optional. A page token, received from a previous
-   * `SearchChangeHistoryEvents` call. Provide this to retrieve the subsequent
-   * page. When paginating, all other parameters provided to
-   * `SearchChangeHistoryEvents` must match the call that provided the page
-   * token.
-   * 
- * - * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java deleted file mode 100644 index c46c83f42070..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponse.java +++ /dev/null @@ -1,1030 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Response message for SearchAccounts RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} - */ -public final class SearchChangeHistoryEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) - SearchChangeHistoryEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SearchChangeHistoryEventsResponse.newBuilder() to construct. - private SearchChangeHistoryEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SearchChangeHistoryEventsResponse() { - changeHistoryEvents_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SearchChangeHistoryEventsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.class, com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.Builder.class); - } - - public static final int CHANGE_HISTORY_EVENTS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private java.util.List changeHistoryEvents_; - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public java.util.List getChangeHistoryEventsList() { - return changeHistoryEvents_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public java.util.List - getChangeHistoryEventsOrBuilderList() { - return changeHistoryEvents_; - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public int getChangeHistoryEventsCount() { - return changeHistoryEvents_.size(); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryEvent getChangeHistoryEvents(int index) { - return changeHistoryEvents_.get(index); - } - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( - int index) { - return changeHistoryEvents_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < changeHistoryEvents_.size(); i++) { - output.writeMessage(1, changeHistoryEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < changeHistoryEvents_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, changeHistoryEvents_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - 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.admin.v1beta.SearchChangeHistoryEventsResponse)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse other = (com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) obj; - - if (!getChangeHistoryEventsList() - .equals(other.getChangeHistoryEventsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) 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 (getChangeHistoryEventsCount() > 0) { - hash = (37 * hash) + CHANGE_HISTORY_EVENTS_FIELD_NUMBER; - hash = (53 * hash) + getChangeHistoryEventsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Response message for SearchAccounts RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.class, com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (changeHistoryEventsBuilder_ == null) { - changeHistoryEvents_ = java.util.Collections.emptyList(); - } else { - changeHistoryEvents_ = null; - changeHistoryEventsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_SearchChangeHistoryEventsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse build() { - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse buildPartial() { - com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result = new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result) { - if (changeHistoryEventsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.changeHistoryEvents_ = changeHistoryEvents_; - } else { - result.changeHistoryEvents_ = changeHistoryEventsBuilder_.build(); - } - } - - private void buildPartial0(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) { - return mergeFrom((com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse other) { - if (other == com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse.getDefaultInstance()) return this; - if (changeHistoryEventsBuilder_ == null) { - if (!other.changeHistoryEvents_.isEmpty()) { - if (changeHistoryEvents_.isEmpty()) { - changeHistoryEvents_ = other.changeHistoryEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.addAll(other.changeHistoryEvents_); - } - onChanged(); - } - } else { - if (!other.changeHistoryEvents_.isEmpty()) { - if (changeHistoryEventsBuilder_.isEmpty()) { - changeHistoryEventsBuilder_.dispose(); - changeHistoryEventsBuilder_ = null; - changeHistoryEvents_ = other.changeHistoryEvents_; - bitField0_ = (bitField0_ & ~0x00000001); - changeHistoryEventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangeHistoryEventsFieldBuilder() : null; - } else { - changeHistoryEventsBuilder_.addAllMessages(other.changeHistoryEvents_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000002; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.analytics.admin.v1beta.ChangeHistoryEvent m = - input.readMessage( - com.google.analytics.admin.v1beta.ChangeHistoryEvent.parser(), - extensionRegistry); - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(m); - } else { - changeHistoryEventsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private java.util.List changeHistoryEvents_ = - java.util.Collections.emptyList(); - private void ensureChangeHistoryEventsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - changeHistoryEvents_ = new java.util.ArrayList(changeHistoryEvents_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryEvent, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder, com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder> changeHistoryEventsBuilder_; - - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public java.util.List getChangeHistoryEventsList() { - if (changeHistoryEventsBuilder_ == null) { - return java.util.Collections.unmodifiableList(changeHistoryEvents_); - } else { - return changeHistoryEventsBuilder_.getMessageList(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public int getChangeHistoryEventsCount() { - if (changeHistoryEventsBuilder_ == null) { - return changeHistoryEvents_.size(); - } else { - return changeHistoryEventsBuilder_.getCount(); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryEvent getChangeHistoryEvents(int index) { - if (changeHistoryEventsBuilder_ == null) { - return changeHistoryEvents_.get(index); - } else { - return changeHistoryEventsBuilder_.getMessage(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder setChangeHistoryEvents( - int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent value) { - if (changeHistoryEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.set(index, value); - onChanged(); - } else { - changeHistoryEventsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder setChangeHistoryEvents( - int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder builderForValue) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.set(index, builderForValue.build()); - onChanged(); - } else { - changeHistoryEventsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents(com.google.analytics.admin.v1beta.ChangeHistoryEvent value) { - if (changeHistoryEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(value); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents( - int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent value) { - if (changeHistoryEventsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(index, value); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents( - com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder builderForValue) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(builderForValue.build()); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addChangeHistoryEvents( - int index, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder builderForValue) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.add(index, builderForValue.build()); - onChanged(); - } else { - changeHistoryEventsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder addAllChangeHistoryEvents( - java.lang.Iterable values) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changeHistoryEvents_); - onChanged(); - } else { - changeHistoryEventsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder clearChangeHistoryEvents() { - if (changeHistoryEventsBuilder_ == null) { - changeHistoryEvents_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - changeHistoryEventsBuilder_.clear(); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public Builder removeChangeHistoryEvents(int index) { - if (changeHistoryEventsBuilder_ == null) { - ensureChangeHistoryEventsIsMutable(); - changeHistoryEvents_.remove(index); - onChanged(); - } else { - changeHistoryEventsBuilder_.remove(index); - } - return this; - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder getChangeHistoryEventsBuilder( - int index) { - return getChangeHistoryEventsFieldBuilder().getBuilder(index); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( - int index) { - if (changeHistoryEventsBuilder_ == null) { - return changeHistoryEvents_.get(index); } else { - return changeHistoryEventsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public java.util.List - getChangeHistoryEventsOrBuilderList() { - if (changeHistoryEventsBuilder_ != null) { - return changeHistoryEventsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(changeHistoryEvents_); - } - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder addChangeHistoryEventsBuilder() { - return getChangeHistoryEventsFieldBuilder().addBuilder( - com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder addChangeHistoryEventsBuilder( - int index) { - return getChangeHistoryEventsFieldBuilder().addBuilder( - index, com.google.analytics.admin.v1beta.ChangeHistoryEvent.getDefaultInstance()); - } - /** - *
-     * Results that were accessible to the caller.
-     * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - public java.util.List - getChangeHistoryEventsBuilderList() { - return getChangeHistoryEventsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryEvent, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder, com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder> - getChangeHistoryEventsFieldBuilder() { - if (changeHistoryEventsBuilder_ == null) { - changeHistoryEventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.admin.v1beta.ChangeHistoryEvent, com.google.analytics.admin.v1beta.ChangeHistoryEvent.Builder, com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder>( - changeHistoryEvents_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - changeHistoryEvents_ = null; - } - return changeHistoryEventsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
-     * A token, which can be sent as `page_token` to retrieve the next page.
-     * If this field is omitted, there are no subsequent pages.
-     * 
- * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) - private static final com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse(); - } - - public static com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchChangeHistoryEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java deleted file mode 100644 index f3a8f4299959..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/SearchChangeHistoryEventsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface SearchChangeHistoryEventsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.SearchChangeHistoryEventsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - java.util.List - getChangeHistoryEventsList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - com.google.analytics.admin.v1beta.ChangeHistoryEvent getChangeHistoryEvents(int index); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - int getChangeHistoryEventsCount(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - java.util.List - getChangeHistoryEventsOrBuilderList(); - /** - *
-   * Results that were accessible to the caller.
-   * 
- * - * repeated .google.analytics.admin.v1beta.ChangeHistoryEvent change_history_events = 1; - */ - com.google.analytics.admin.v1beta.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( - int index); - - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
-   * A token, which can be sent as `page_token` to retrieve the next page.
-   * If this field is omitted, there are no subsequent pages.
-   * 
- * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java deleted file mode 100644 index 146863f6db0a..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/ServiceLevel.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/resources.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Various levels of service for Google Analytics.
- * 
- * - * Protobuf enum {@code google.analytics.admin.v1beta.ServiceLevel} - */ -public enum ServiceLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
-   * Service level not specified or invalid.
-   * 
- * - * SERVICE_LEVEL_UNSPECIFIED = 0; - */ - SERVICE_LEVEL_UNSPECIFIED(0), - /** - *
-   * The standard version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_STANDARD = 1; - */ - GOOGLE_ANALYTICS_STANDARD(1), - /** - *
-   * The paid, premium version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_360 = 2; - */ - GOOGLE_ANALYTICS_360(2), - UNRECOGNIZED(-1), - ; - - /** - *
-   * Service level not specified or invalid.
-   * 
- * - * SERVICE_LEVEL_UNSPECIFIED = 0; - */ - public static final int SERVICE_LEVEL_UNSPECIFIED_VALUE = 0; - /** - *
-   * The standard version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_STANDARD = 1; - */ - public static final int GOOGLE_ANALYTICS_STANDARD_VALUE = 1; - /** - *
-   * The paid, premium version of Google Analytics.
-   * 
- * - * GOOGLE_ANALYTICS_360 = 2; - */ - public static final int GOOGLE_ANALYTICS_360_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ServiceLevel 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 ServiceLevel forNumber(int value) { - switch (value) { - case 0: return SERVICE_LEVEL_UNSPECIFIED; - case 1: return GOOGLE_ANALYTICS_STANDARD; - case 2: return GOOGLE_ANALYTICS_360; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServiceLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ServiceLevel findValueByNumber(int number) { - return ServiceLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.ResourcesProto.getDescriptor().getEnumTypes().get(1); - } - - private static final ServiceLevel[] VALUES = values(); - - public static ServiceLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ServiceLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1beta.ServiceLevel) -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java deleted file mode 100644 index 33dc24bbf99f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateAccount RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateAccountRequest} - */ -public final class UpdateAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateAccountRequest) - UpdateAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateAccountRequest.newBuilder() to construct. - private UpdateAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateAccountRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateAccountRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateAccountRequest.class, com.google.analytics.admin.v1beta.UpdateAccountRequest.Builder.class); - } - - public static final int ACCOUNT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.Account account_; - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the account field is set. - */ - @java.lang.Override - public boolean hasAccount() { - return account_ != null; - } - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The account. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Account getAccount() { - return account_ == null ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { - return account_ == null ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (account_ != null) { - output.writeMessage(1, getAccount()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (account_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getAccount()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdateAccountRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateAccountRequest other = (com.google.analytics.admin.v1beta.UpdateAccountRequest) obj; - - if (hasAccount() != other.hasAccount()) return false; - if (hasAccount()) { - if (!getAccount() - .equals(other.getAccount())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasAccount()) { - hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getAccount().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateAccount RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateAccountRequest) - com.google.analytics.admin.v1beta.UpdateAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateAccountRequest.class, com.google.analytics.admin.v1beta.UpdateAccountRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateAccountRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateAccountRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateAccountRequest build() { - com.google.analytics.admin.v1beta.UpdateAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateAccountRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateAccountRequest result = new com.google.analytics.admin.v1beta.UpdateAccountRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateAccountRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.account_ = accountBuilder_ == null - ? account_ - : accountBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateAccountRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateAccountRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateAccountRequest.getDefaultInstance()) return this; - if (other.hasAccount()) { - mergeAccount(other.getAccount()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getAccountFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.Account account_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> accountBuilder_; - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the account field is set. - */ - public boolean hasAccount() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The account. - */ - public com.google.analytics.admin.v1beta.Account getAccount() { - if (accountBuilder_ == null) { - return account_ == null ? com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } else { - return accountBuilder_.getMessage(); - } - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccount(com.google.analytics.admin.v1beta.Account value) { - if (accountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - account_ = value; - } else { - accountBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setAccount( - com.google.analytics.admin.v1beta.Account.Builder builderForValue) { - if (accountBuilder_ == null) { - account_ = builderForValue.build(); - } else { - accountBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeAccount(com.google.analytics.admin.v1beta.Account value) { - if (accountBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - account_ != null && - account_ != com.google.analytics.admin.v1beta.Account.getDefaultInstance()) { - getAccountBuilder().mergeFrom(value); - } else { - account_ = value; - } - } else { - accountBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearAccount() { - bitField0_ = (bitField0_ & ~0x00000001); - account_ = null; - if (accountBuilder_ != null) { - accountBuilder_.dispose(); - accountBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.Account.Builder getAccountBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getAccountFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder() { - if (accountBuilder_ != null) { - return accountBuilder_.getMessageOrBuilder(); - } else { - return account_ == null ? - com.google.analytics.admin.v1beta.Account.getDefaultInstance() : account_; - } - } - /** - *
-     * Required. The account to update.
-     * The account's `name` field is used to identify the account.
-     * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder> - getAccountFieldBuilder() { - if (accountBuilder_ == null) { - accountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Account, com.google.analytics.admin.v1beta.Account.Builder, com.google.analytics.admin.v1beta.AccountOrBuilder>( - getAccount(), - getParentForChildren(), - isClean()); - account_ = null; - } - return accountBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (for example, "field_to_update"). Omitted fields will not be updated.
-     * To replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateAccountRequest) - private static final com.google.analytics.admin.v1beta.UpdateAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateAccountRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java deleted file mode 100644 index fd4c443e5a8e..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateAccountRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the account field is set. - */ - boolean hasAccount(); - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The account. - */ - com.google.analytics.admin.v1beta.Account getAccount(); - /** - *
-   * Required. The account to update.
-   * The account's `name` field is used to identify the account.
-   * 
- * - * .google.analytics.admin.v1beta.Account account = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.AccountOrBuilder getAccountOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (for example, "field_to_update"). Omitted fields will not be updated.
-   * To replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequest.java deleted file mode 100644 index 20557e23d942..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateConversionEvent RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateConversionEventRequest} - */ -public final class UpdateConversionEventRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateConversionEventRequest) - UpdateConversionEventRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateConversionEventRequest.newBuilder() to construct. - private UpdateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateConversionEventRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateConversionEventRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateConversionEventRequest.class, com.google.analytics.admin.v1beta.UpdateConversionEventRequest.Builder.class); - } - - public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - @java.lang.Override - public boolean hasConversionEvent() { - return conversionEvent_ != null; - } - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { - return conversionEvent_ == null ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { - return conversionEvent_ == null ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (conversionEvent_ != null) { - output.writeMessage(1, getConversionEvent()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conversionEvent_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getConversionEvent()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdateConversionEventRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateConversionEventRequest other = (com.google.analytics.admin.v1beta.UpdateConversionEventRequest) obj; - - if (hasConversionEvent() != other.hasConversionEvent()) return false; - if (hasConversionEvent()) { - if (!getConversionEvent() - .equals(other.getConversionEvent())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasConversionEvent()) { - hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; - hash = (53 * hash) + getConversionEvent().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateConversionEventRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateConversionEvent RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateConversionEventRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateConversionEventRequest) - com.google.analytics.admin.v1beta.UpdateConversionEventRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateConversionEventRequest.class, com.google.analytics.admin.v1beta.UpdateConversionEventRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateConversionEventRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateConversionEventRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateConversionEventRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateConversionEventRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateConversionEventRequest build() { - com.google.analytics.admin.v1beta.UpdateConversionEventRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateConversionEventRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateConversionEventRequest result = new com.google.analytics.admin.v1beta.UpdateConversionEventRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateConversionEventRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.conversionEvent_ = conversionEventBuilder_ == null - ? conversionEvent_ - : conversionEventBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateConversionEventRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateConversionEventRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateConversionEventRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateConversionEventRequest.getDefaultInstance()) return this; - if (other.hasConversionEvent()) { - mergeConversionEvent(other.getConversionEvent()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getConversionEventFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.ConversionEvent conversionEvent_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> conversionEventBuilder_; - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - public boolean hasConversionEvent() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - public com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent() { - if (conversionEventBuilder_ == null) { - return conversionEvent_ == null ? com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } else { - return conversionEventBuilder_.getMessage(); - } - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - conversionEvent_ = value; - } else { - conversionEventBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setConversionEvent( - com.google.analytics.admin.v1beta.ConversionEvent.Builder builderForValue) { - if (conversionEventBuilder_ == null) { - conversionEvent_ = builderForValue.build(); - } else { - conversionEventBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeConversionEvent(com.google.analytics.admin.v1beta.ConversionEvent value) { - if (conversionEventBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - conversionEvent_ != null && - conversionEvent_ != com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance()) { - getConversionEventBuilder().mergeFrom(value); - } else { - conversionEvent_ = value; - } - } else { - conversionEventBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearConversionEvent() { - bitField0_ = (bitField0_ & ~0x00000001); - conversionEvent_ = null; - if (conversionEventBuilder_ != null) { - conversionEventBuilder_.dispose(); - conversionEventBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.ConversionEvent.Builder getConversionEventBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getConversionEventFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder() { - if (conversionEventBuilder_ != null) { - return conversionEventBuilder_.getMessageOrBuilder(); - } else { - return conversionEvent_ == null ? - com.google.analytics.admin.v1beta.ConversionEvent.getDefaultInstance() : conversionEvent_; - } - } - /** - *
-     * Required. The conversion event to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder> - getConversionEventFieldBuilder() { - if (conversionEventBuilder_ == null) { - conversionEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.ConversionEvent, com.google.analytics.admin.v1beta.ConversionEvent.Builder, com.google.analytics.admin.v1beta.ConversionEventOrBuilder>( - getConversionEvent(), - getParentForChildren(), - isClean()); - conversionEvent_ = null; - } - return conversionEventBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateConversionEventRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateConversionEventRequest) - private static final com.google.analytics.admin.v1beta.UpdateConversionEventRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateConversionEventRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateConversionEventRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateConversionEventRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateConversionEventRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequestOrBuilder.java deleted file mode 100644 index 5151ebef2258..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateConversionEventRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateConversionEventRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateConversionEventRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the conversionEvent field is set. - */ - boolean hasConversionEvent(); - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The conversionEvent. - */ - com.google.analytics.admin.v1beta.ConversionEvent getConversionEvent(); - /** - *
-   * Required. The conversion event to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.ConversionEventOrBuilder getConversionEventOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java deleted file mode 100644 index 3dda8668b905..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateCustomDimension RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomDimensionRequest} - */ -public final class UpdateCustomDimensionRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) - UpdateCustomDimensionRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateCustomDimensionRequest.newBuilder() to construct. - private UpdateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateCustomDimensionRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateCustomDimensionRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.class, com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.Builder.class); - } - - public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.CustomDimension customDimension_; - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return Whether the customDimension field is set. - */ - @java.lang.Override - public boolean hasCustomDimension() { - return customDimension_ != null; - } - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return The customDimension. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { - return customDimension_ == null ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - return customDimension_ == null ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (customDimension_ != null) { - output.writeMessage(1, getCustomDimension()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (customDimension_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomDimension()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdateCustomDimensionRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest other = (com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) obj; - - if (hasCustomDimension() != other.hasCustomDimension()) return false; - if (hasCustomDimension()) { - if (!getCustomDimension() - .equals(other.getCustomDimension())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasCustomDimension()) { - hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getCustomDimension().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateCustomDimension RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomDimensionRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.class, com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomDimensionRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest build() { - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest result = new com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.customDimension_ = customDimensionBuilder_ == null - ? customDimension_ - : customDimensionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest.getDefaultInstance()) return this; - if (other.hasCustomDimension()) { - mergeCustomDimension(other.getCustomDimension()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCustomDimensionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.CustomDimension customDimension_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> customDimensionBuilder_; - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return Whether the customDimension field is set. - */ - public boolean hasCustomDimension() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return The customDimension. - */ - public com.google.analytics.admin.v1beta.CustomDimension getCustomDimension() { - if (customDimensionBuilder_ == null) { - return customDimension_ == null ? com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } else { - return customDimensionBuilder_.getMessage(); - } - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public Builder setCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customDimension_ = value; - } else { - customDimensionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public Builder setCustomDimension( - com.google.analytics.admin.v1beta.CustomDimension.Builder builderForValue) { - if (customDimensionBuilder_ == null) { - customDimension_ = builderForValue.build(); - } else { - customDimensionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public Builder mergeCustomDimension(com.google.analytics.admin.v1beta.CustomDimension value) { - if (customDimensionBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customDimension_ != null && - customDimension_ != com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance()) { - getCustomDimensionBuilder().mergeFrom(value); - } else { - customDimension_ = value; - } - } else { - customDimensionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public Builder clearCustomDimension() { - bitField0_ = (bitField0_ & ~0x00000001); - customDimension_ = null; - if (customDimensionBuilder_ != null) { - customDimensionBuilder_.dispose(); - customDimensionBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimension.Builder getCustomDimensionBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCustomDimensionFieldBuilder().getBuilder(); - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - public com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { - if (customDimensionBuilder_ != null) { - return customDimensionBuilder_.getMessageOrBuilder(); - } else { - return customDimension_ == null ? - com.google.analytics.admin.v1beta.CustomDimension.getDefaultInstance() : customDimension_; - } - } - /** - *
-     * The CustomDimension to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder> - getCustomDimensionFieldBuilder() { - if (customDimensionBuilder_ == null) { - customDimensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomDimension, com.google.analytics.admin.v1beta.CustomDimension.Builder, com.google.analytics.admin.v1beta.CustomDimensionOrBuilder>( - getCustomDimension(), - getParentForChildren(), - isClean()); - customDimension_ = null; - } - return customDimensionBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) - private static final com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomDimensionRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomDimensionRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java deleted file mode 100644 index 935722bf0167..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomDimensionRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateCustomDimensionRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateCustomDimensionRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return Whether the customDimension field is set. - */ - boolean hasCustomDimension(); - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - * @return The customDimension. - */ - com.google.analytics.admin.v1beta.CustomDimension getCustomDimension(); - /** - *
-   * The CustomDimension to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomDimension custom_dimension = 1; - */ - com.google.analytics.admin.v1beta.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java deleted file mode 100644 index 70d0337211b7..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateCustomMetric RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomMetricRequest} - */ -public final class UpdateCustomMetricRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateCustomMetricRequest) - UpdateCustomMetricRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateCustomMetricRequest.newBuilder() to construct. - private UpdateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateCustomMetricRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateCustomMetricRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.class, com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.Builder.class); - } - - public static final int CUSTOM_METRIC_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.CustomMetric customMetric_; - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return Whether the customMetric field is set. - */ - @java.lang.Override - public boolean hasCustomMetric() { - return customMetric_ != null; - } - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return The customMetric. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { - return customMetric_ == null ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { - return customMetric_ == null ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (customMetric_ != null) { - output.writeMessage(1, getCustomMetric()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (customMetric_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getCustomMetric()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdateCustomMetricRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest other = (com.google.analytics.admin.v1beta.UpdateCustomMetricRequest) obj; - - if (hasCustomMetric() != other.hasCustomMetric()) return false; - if (hasCustomMetric()) { - if (!getCustomMetric() - .equals(other.getCustomMetric())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasCustomMetric()) { - hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; - hash = (53 * hash) + getCustomMetric().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateCustomMetric RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateCustomMetricRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateCustomMetricRequest) - com.google.analytics.admin.v1beta.UpdateCustomMetricRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.class, com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateCustomMetricRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest build() { - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateCustomMetricRequest result = new com.google.analytics.admin.v1beta.UpdateCustomMetricRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.customMetric_ = customMetricBuilder_ == null - ? customMetric_ - : customMetricBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateCustomMetricRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateCustomMetricRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateCustomMetricRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateCustomMetricRequest.getDefaultInstance()) return this; - if (other.hasCustomMetric()) { - mergeCustomMetric(other.getCustomMetric()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getCustomMetricFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.CustomMetric customMetric_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder> customMetricBuilder_; - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return Whether the customMetric field is set. - */ - public boolean hasCustomMetric() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return The customMetric. - */ - public com.google.analytics.admin.v1beta.CustomMetric getCustomMetric() { - if (customMetricBuilder_ == null) { - return customMetric_ == null ? com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } else { - return customMetricBuilder_.getMessage(); - } - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public Builder setCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - customMetric_ = value; - } else { - customMetricBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public Builder setCustomMetric( - com.google.analytics.admin.v1beta.CustomMetric.Builder builderForValue) { - if (customMetricBuilder_ == null) { - customMetric_ = builderForValue.build(); - } else { - customMetricBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public Builder mergeCustomMetric(com.google.analytics.admin.v1beta.CustomMetric value) { - if (customMetricBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - customMetric_ != null && - customMetric_ != com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance()) { - getCustomMetricBuilder().mergeFrom(value); - } else { - customMetric_ = value; - } - } else { - customMetricBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public Builder clearCustomMetric() { - bitField0_ = (bitField0_ & ~0x00000001); - customMetric_ = null; - if (customMetricBuilder_ != null) { - customMetricBuilder_.dispose(); - customMetricBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetric.Builder getCustomMetricBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getCustomMetricFieldBuilder().getBuilder(); - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - public com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder() { - if (customMetricBuilder_ != null) { - return customMetricBuilder_.getMessageOrBuilder(); - } else { - return customMetric_ == null ? - com.google.analytics.admin.v1beta.CustomMetric.getDefaultInstance() : customMetric_; - } - } - /** - *
-     * The CustomMetric to update
-     * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder> - getCustomMetricFieldBuilder() { - if (customMetricBuilder_ == null) { - customMetricBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.CustomMetric, com.google.analytics.admin.v1beta.CustomMetric.Builder, com.google.analytics.admin.v1beta.CustomMetricOrBuilder>( - getCustomMetric(), - getParentForChildren(), - isClean()); - customMetric_ = null; - } - return customMetricBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateCustomMetricRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateCustomMetricRequest) - private static final com.google.analytics.admin.v1beta.UpdateCustomMetricRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateCustomMetricRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateCustomMetricRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateCustomMetricRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateCustomMetricRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java deleted file mode 100644 index 9836ba3e85c9..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateCustomMetricRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateCustomMetricRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateCustomMetricRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return Whether the customMetric field is set. - */ - boolean hasCustomMetric(); - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - * @return The customMetric. - */ - com.google.analytics.admin.v1beta.CustomMetric getCustomMetric(); - /** - *
-   * The CustomMetric to update
-   * 
- * - * .google.analytics.admin.v1beta.CustomMetric custom_metric = 1; - */ - com.google.analytics.admin.v1beta.CustomMetricOrBuilder getCustomMetricOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java deleted file mode 100644 index 513c5d7228de..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequest.java +++ /dev/null @@ -1,919 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateDataRetentionSettings RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} - */ -public final class UpdateDataRetentionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) - UpdateDataRetentionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateDataRetentionSettingsRequest.newBuilder() to construct. - private UpdateDataRetentionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateDataRetentionSettingsRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateDataRetentionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.class, com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.Builder.class); - } - - public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.DataRetentionSettings dataRetentionSettings_; - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRetentionSettings field is set. - */ - @java.lang.Override - public boolean hasDataRetentionSettings() { - return dataRetentionSettings_ != null; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRetentionSettings. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { - return dataRetentionSettings_ == null ? com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - return dataRetentionSettings_ == null ? com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (dataRetentionSettings_ != null) { - output.writeMessage(1, getDataRetentionSettings()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataRetentionSettings_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataRetentionSettings()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdateDataRetentionSettingsRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest other = (com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) obj; - - if (hasDataRetentionSettings() != other.hasDataRetentionSettings()) return false; - if (hasDataRetentionSettings()) { - if (!getDataRetentionSettings() - .equals(other.getDataRetentionSettings())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasDataRetentionSettings()) { - hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getDataRetentionSettings().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateDataRetentionSettings RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.class, com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataRetentionSettings_ = null; - if (dataRetentionSettingsBuilder_ != null) { - dataRetentionSettingsBuilder_.dispose(); - dataRetentionSettingsBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataRetentionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest build() { - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest result = new com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataRetentionSettings_ = dataRetentionSettingsBuilder_ == null - ? dataRetentionSettings_ - : dataRetentionSettingsBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest.getDefaultInstance()) return this; - if (other.hasDataRetentionSettings()) { - mergeDataRetentionSettings(other.getDataRetentionSettings()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDataRetentionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.DataRetentionSettings dataRetentionSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataRetentionSettings, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> dataRetentionSettingsBuilder_; - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRetentionSettings field is set. - */ - public boolean hasDataRetentionSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRetentionSettings. - */ - public com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings() { - if (dataRetentionSettingsBuilder_ == null) { - return dataRetentionSettings_ == null ? com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } else { - return dataRetentionSettingsBuilder_.getMessage(); - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataRetentionSettings(com.google.analytics.admin.v1beta.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataRetentionSettings_ = value; - } else { - dataRetentionSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setDataRetentionSettings( - com.google.analytics.admin.v1beta.DataRetentionSettings.Builder builderForValue) { - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettings_ = builderForValue.build(); - } else { - dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeDataRetentionSettings(com.google.analytics.admin.v1beta.DataRetentionSettings value) { - if (dataRetentionSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dataRetentionSettings_ != null && - dataRetentionSettings_ != com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance()) { - getDataRetentionSettingsBuilder().mergeFrom(value); - } else { - dataRetentionSettings_ = value; - } - } else { - dataRetentionSettingsBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearDataRetentionSettings() { - bitField0_ = (bitField0_ & ~0x00000001); - dataRetentionSettings_ = null; - if (dataRetentionSettingsBuilder_ != null) { - dataRetentionSettingsBuilder_.dispose(); - dataRetentionSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.DataRetentionSettings.Builder getDataRetentionSettingsBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDataRetentionSettingsFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder() { - if (dataRetentionSettingsBuilder_ != null) { - return dataRetentionSettingsBuilder_.getMessageOrBuilder(); - } else { - return dataRetentionSettings_ == null ? - com.google.analytics.admin.v1beta.DataRetentionSettings.getDefaultInstance() : dataRetentionSettings_; - } - } - /** - *
-     * Required. The settings to update.
-     * The `name` field is used to identify the settings to be updated.
-     * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataRetentionSettings, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder> - getDataRetentionSettingsFieldBuilder() { - if (dataRetentionSettingsBuilder_ == null) { - dataRetentionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataRetentionSettings, com.google.analytics.admin.v1beta.DataRetentionSettings.Builder, com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder>( - getDataRetentionSettings(), - getParentForChildren(), - isClean()); - dataRetentionSettings_ = null; - } - return dataRetentionSettingsBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) - private static final com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataRetentionSettingsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java deleted file mode 100644 index c0dc82d09f03..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataRetentionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateDataRetentionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateDataRetentionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the dataRetentionSettings field is set. - */ - boolean hasDataRetentionSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The dataRetentionSettings. - */ - com.google.analytics.admin.v1beta.DataRetentionSettings getDataRetentionSettings(); - /** - *
-   * Required. The settings to update.
-   * The `name` field is used to identify the settings to be updated.
-   * 
- * - * .google.analytics.admin.v1beta.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.DataRetentionSettingsOrBuilder getDataRetentionSettingsOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java deleted file mode 100644 index 9c8b46dc1d9c..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequest.java +++ /dev/null @@ -1,895 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataStreamRequest} - */ -public final class UpdateDataStreamRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateDataStreamRequest) - UpdateDataStreamRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateDataStreamRequest.newBuilder() to construct. - private UpdateDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateDataStreamRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateDataStreamRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateDataStreamRequest.class, com.google.analytics.admin.v1beta.UpdateDataStreamRequest.Builder.class); - } - - public static final int DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.DataStream dataStream_; - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return Whether the dataStream field is set. - */ - @java.lang.Override - public boolean hasDataStream() { - return dataStream_ != null; - } - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return The dataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStream getDataStream() { - return dataStream_ == null ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { - return dataStream_ == null ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (dataStream_ != null) { - output.writeMessage(1, getDataStream()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataStream_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getDataStream()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += 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.admin.v1beta.UpdateDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateDataStreamRequest other = (com.google.analytics.admin.v1beta.UpdateDataStreamRequest) obj; - - if (hasDataStream() != other.hasDataStream()) return false; - if (hasDataStream()) { - if (!getDataStream() - .equals(other.getDataStream())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (!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 (hasDataStream()) { - hash = (37 * hash) + DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getDataStream().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateDataStreamRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateDataStreamRequest) - com.google.analytics.admin.v1beta.UpdateDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateDataStreamRequest.class, com.google.analytics.admin.v1beta.UpdateDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateDataStreamRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataStreamRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataStreamRequest build() { - com.google.analytics.admin.v1beta.UpdateDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataStreamRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateDataStreamRequest result = new com.google.analytics.admin.v1beta.UpdateDataStreamRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateDataStreamRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataStream_ = dataStreamBuilder_ == null - ? dataStream_ - : dataStreamBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateDataStreamRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateDataStreamRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateDataStreamRequest.getDefaultInstance()) return this; - if (other.hasDataStream()) { - mergeDataStream(other.getDataStream()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getDataStreamFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.DataStream dataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> dataStreamBuilder_; - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return Whether the dataStream field is set. - */ - public boolean hasDataStream() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return The dataStream. - */ - public com.google.analytics.admin.v1beta.DataStream getDataStream() { - if (dataStreamBuilder_ == null) { - return dataStream_ == null ? com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } else { - return dataStreamBuilder_.getMessage(); - } - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public Builder setDataStream(com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataStream_ = value; - } else { - dataStreamBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public Builder setDataStream( - com.google.analytics.admin.v1beta.DataStream.Builder builderForValue) { - if (dataStreamBuilder_ == null) { - dataStream_ = builderForValue.build(); - } else { - dataStreamBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public Builder mergeDataStream(com.google.analytics.admin.v1beta.DataStream value) { - if (dataStreamBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - dataStream_ != null && - dataStream_ != com.google.analytics.admin.v1beta.DataStream.getDefaultInstance()) { - getDataStreamBuilder().mergeFrom(value); - } else { - dataStream_ = value; - } - } else { - dataStreamBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public Builder clearDataStream() { - bitField0_ = (bitField0_ & ~0x00000001); - dataStream_ = null; - if (dataStreamBuilder_ != null) { - dataStreamBuilder_.dispose(); - dataStreamBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public com.google.analytics.admin.v1beta.DataStream.Builder getDataStreamBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getDataStreamFieldBuilder().getBuilder(); - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - public com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder() { - if (dataStreamBuilder_ != null) { - return dataStreamBuilder_.getMessageOrBuilder(); - } else { - return dataStream_ == null ? - com.google.analytics.admin.v1beta.DataStream.getDefaultInstance() : dataStream_; - } - } - /** - *
-     * The DataStream to update
-     * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder> - getDataStreamFieldBuilder() { - if (dataStreamBuilder_ == null) { - dataStreamBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.DataStream, com.google.analytics.admin.v1beta.DataStream.Builder, com.google.analytics.admin.v1beta.DataStreamOrBuilder>( - getDataStream(), - getParentForChildren(), - isClean()); - dataStream_ = null; - } - return dataStreamBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated. To replace the entire entity, use one path with the string "*" to
-     * match all fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateDataStreamRequest) - private static final com.google.analytics.admin.v1beta.UpdateDataStreamRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateDataStreamRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateDataStreamRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateDataStreamRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java deleted file mode 100644 index 1244d3988f12..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,69 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateDataStreamRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return Whether the dataStream field is set. - */ - boolean hasDataStream(); - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - * @return The dataStream. - */ - com.google.analytics.admin.v1beta.DataStream getDataStream(); - /** - *
-   * The DataStream to update
-   * 
- * - * .google.analytics.admin.v1beta.DataStream data_stream = 1; - */ - com.google.analytics.admin.v1beta.DataStreamOrBuilder getDataStreamOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated. To replace the entire entity, use one path with the string "*" to
-   * match all fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java deleted file mode 100644 index 88ed36604d95..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequest.java +++ /dev/null @@ -1,907 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateGoogleAdsLink RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} - */ -public final class UpdateGoogleAdsLinkRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) - UpdateGoogleAdsLinkRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateGoogleAdsLinkRequest.newBuilder() to construct. - private UpdateGoogleAdsLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateGoogleAdsLinkRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateGoogleAdsLinkRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.Builder.class); - } - - public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return Whether the googleAdsLink field is set. - */ - @java.lang.Override - public boolean hasGoogleAdsLink() { - return googleAdsLink_ != null; - } - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return The googleAdsLink. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - return googleAdsLink_ == null ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (googleAdsLink_ != null) { - output.writeMessage(1, getGoogleAdsLink()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (googleAdsLink_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getGoogleAdsLink()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdateGoogleAdsLinkRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest other = (com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) obj; - - if (hasGoogleAdsLink() != other.hasGoogleAdsLink()) return false; - if (hasGoogleAdsLink()) { - if (!getGoogleAdsLink() - .equals(other.getGoogleAdsLink())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasGoogleAdsLink()) { - hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; - hash = (53 * hash) + getGoogleAdsLink().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateGoogleAdsLink RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.class, com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateGoogleAdsLinkRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest build() { - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest result = new com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.googleAdsLink_ = googleAdsLinkBuilder_ == null - ? googleAdsLink_ - : googleAdsLinkBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest.getDefaultInstance()) return this; - if (other.hasGoogleAdsLink()) { - mergeGoogleAdsLink(other.getGoogleAdsLink()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getGoogleAdsLinkFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.GoogleAdsLink googleAdsLink_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> googleAdsLinkBuilder_; - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return Whether the googleAdsLink field is set. - */ - public boolean hasGoogleAdsLink() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return The googleAdsLink. - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink() { - if (googleAdsLinkBuilder_ == null) { - return googleAdsLink_ == null ? com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } else { - return googleAdsLinkBuilder_.getMessage(); - } - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public Builder setGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - googleAdsLink_ = value; - } else { - googleAdsLinkBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public Builder setGoogleAdsLink( - com.google.analytics.admin.v1beta.GoogleAdsLink.Builder builderForValue) { - if (googleAdsLinkBuilder_ == null) { - googleAdsLink_ = builderForValue.build(); - } else { - googleAdsLinkBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1beta.GoogleAdsLink value) { - if (googleAdsLinkBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - googleAdsLink_ != null && - googleAdsLink_ != com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance()) { - getGoogleAdsLinkBuilder().mergeFrom(value); - } else { - googleAdsLink_ = value; - } - } else { - googleAdsLinkBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public Builder clearGoogleAdsLink() { - bitField0_ = (bitField0_ & ~0x00000001); - googleAdsLink_ = null; - if (googleAdsLinkBuilder_ != null) { - googleAdsLinkBuilder_.dispose(); - googleAdsLinkBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getGoogleAdsLinkFieldBuilder().getBuilder(); - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - public com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { - if (googleAdsLinkBuilder_ != null) { - return googleAdsLinkBuilder_.getMessageOrBuilder(); - } else { - return googleAdsLink_ == null ? - com.google.analytics.admin.v1beta.GoogleAdsLink.getDefaultInstance() : googleAdsLink_; - } - } - /** - *
-     * The GoogleAdsLink to update
-     * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder> - getGoogleAdsLinkFieldBuilder() { - if (googleAdsLinkBuilder_ == null) { - googleAdsLinkBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.GoogleAdsLink, com.google.analytics.admin.v1beta.GoogleAdsLink.Builder, com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder>( - getGoogleAdsLink(), - getParentForChildren(), - isClean()); - googleAdsLink_ = null; - } - return googleAdsLinkBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) - private static final com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateGoogleAdsLinkRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java deleted file mode 100644 index 92525a4fe9fe..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateGoogleAdsLinkRequestOrBuilder.java +++ /dev/null @@ -1,72 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateGoogleAdsLinkRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateGoogleAdsLinkRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return Whether the googleAdsLink field is set. - */ - boolean hasGoogleAdsLink(); - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - * @return The googleAdsLink. - */ - com.google.analytics.admin.v1beta.GoogleAdsLink getGoogleAdsLink(); - /** - *
-   * The GoogleAdsLink to update
-   * 
- * - * .google.analytics.admin.v1beta.GoogleAdsLink google_ads_link = 1; - */ - com.google.analytics.admin.v1beta.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java deleted file mode 100644 index a66e29887bb3..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequest.java +++ /dev/null @@ -1,883 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateMeasurementProtocolSecret RPC
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} - */ -public final class UpdateMeasurementProtocolSecretRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) - UpdateMeasurementProtocolSecretRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateMeasurementProtocolSecretRequest.newBuilder() to construct. - private UpdateMeasurementProtocolSecretRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateMeasurementProtocolSecretRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateMeasurementProtocolSecretRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.Builder.class); - } - - public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - @java.lang.Override - public boolean hasMeasurementProtocolSecret() { - return measurementProtocolSecret_ != null; - } - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (measurementProtocolSecret_ != null) { - output.writeMessage(1, getMeasurementProtocolSecret()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (measurementProtocolSecret_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getMeasurementProtocolSecret()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdateMeasurementProtocolSecretRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest other = (com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) obj; - - if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; - if (hasMeasurementProtocolSecret()) { - if (!getMeasurementProtocolSecret() - .equals(other.getMeasurementProtocolSecret())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasMeasurementProtocolSecret()) { - hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; - hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateMeasurementProtocolSecret RPC
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.class, com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdateMeasurementProtocolSecretRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest build() { - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest result = new com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_ == null - ? measurementProtocolSecret_ - : measurementProtocolSecretBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest.getDefaultInstance()) return this; - if (other.hasMeasurementProtocolSecret()) { - mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getMeasurementProtocolSecretFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.MeasurementProtocolSecret measurementProtocolSecret_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> measurementProtocolSecretBuilder_; - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - public boolean hasMeasurementProtocolSecret() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret() { - if (measurementProtocolSecretBuilder_ == null) { - return measurementProtocolSecret_ == null ? com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } else { - return measurementProtocolSecretBuilder_.getMessage(); - } - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret(com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - measurementProtocolSecret_ = value; - } else { - measurementProtocolSecretBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setMeasurementProtocolSecret( - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder builderForValue) { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecret_ = builderForValue.build(); - } else { - measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeMeasurementProtocolSecret(com.google.analytics.admin.v1beta.MeasurementProtocolSecret value) { - if (measurementProtocolSecretBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - measurementProtocolSecret_ != null && - measurementProtocolSecret_ != com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance()) { - getMeasurementProtocolSecretBuilder().mergeFrom(value); - } else { - measurementProtocolSecret_ = value; - } - } else { - measurementProtocolSecretBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearMeasurementProtocolSecret() { - bitField0_ = (bitField0_ & ~0x00000001); - measurementProtocolSecret_ = null; - if (measurementProtocolSecretBuilder_ != null) { - measurementProtocolSecretBuilder_.dispose(); - measurementProtocolSecretBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder getMeasurementProtocolSecretBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getMeasurementProtocolSecretFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder() { - if (measurementProtocolSecretBuilder_ != null) { - return measurementProtocolSecretBuilder_.getMessageOrBuilder(); - } else { - return measurementProtocolSecret_ == null ? - com.google.analytics.admin.v1beta.MeasurementProtocolSecret.getDefaultInstance() : measurementProtocolSecret_; - } - } - /** - *
-     * Required. The measurement protocol secret to update.
-     * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder> - getMeasurementProtocolSecretFieldBuilder() { - if (measurementProtocolSecretBuilder_ == null) { - measurementProtocolSecretBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.MeasurementProtocolSecret, com.google.analytics.admin.v1beta.MeasurementProtocolSecret.Builder, com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder>( - getMeasurementProtocolSecret(), - getParentForChildren(), - isClean()); - measurementProtocolSecret_ = null; - } - return measurementProtocolSecretBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Omitted fields will not be
-     * updated.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) - private static final com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateMeasurementProtocolSecretRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java deleted file mode 100644 index f659ffe432c0..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdateMeasurementProtocolSecretRequestOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdateMeasurementProtocolSecretRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdateMeasurementProtocolSecretRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the measurementProtocolSecret field is set. - */ - boolean hasMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The measurementProtocolSecret. - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecret getMeasurementProtocolSecret(); - /** - *
-   * Required. The measurement protocol secret to update.
-   * 
- * - * .google.analytics.admin.v1beta.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.MeasurementProtocolSecretOrBuilder getMeasurementProtocolSecretOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Omitted fields will not be
-   * updated.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java deleted file mode 100644 index d8ef44f07b8f..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -/** - *
- * Request message for UpdateProperty RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdatePropertyRequest} - */ -public final class UpdatePropertyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1beta.UpdatePropertyRequest) - UpdatePropertyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdatePropertyRequest.newBuilder() to construct. - private UpdatePropertyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdatePropertyRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdatePropertyRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdatePropertyRequest.class, com.google.analytics.admin.v1beta.UpdatePropertyRequest.Builder.class); - } - - public static final int PROPERTY_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1beta.Property property_; - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - @java.lang.Override - public boolean hasProperty() { - return property_ != null; - } - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.Property getProperty() { - return property_ == null ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { - return property_ == null ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - 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 (property_ != null) { - output.writeMessage(1, getProperty()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (property_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getProperty()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - 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.admin.v1beta.UpdatePropertyRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1beta.UpdatePropertyRequest other = (com.google.analytics.admin.v1beta.UpdatePropertyRequest) obj; - - if (hasProperty() != other.hasProperty()) return false; - if (hasProperty()) { - if (!getProperty() - .equals(other.getProperty())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) 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 (hasProperty()) { - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.analytics.admin.v1beta.UpdatePropertyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
-   * Request message for UpdateProperty RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1beta.UpdatePropertyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1beta.UpdatePropertyRequest) - com.google.analytics.admin.v1beta.UpdatePropertyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1beta.UpdatePropertyRequest.class, com.google.analytics.admin.v1beta.UpdatePropertyRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1beta.UpdatePropertyRequest.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.analytics.admin.v1beta.AnalyticsAdminProto.internal_static_google_analytics_admin_v1beta_UpdatePropertyRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdatePropertyRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1beta.UpdatePropertyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdatePropertyRequest build() { - com.google.analytics.admin.v1beta.UpdatePropertyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdatePropertyRequest buildPartial() { - com.google.analytics.admin.v1beta.UpdatePropertyRequest result = new com.google.analytics.admin.v1beta.UpdatePropertyRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.analytics.admin.v1beta.UpdatePropertyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.property_ = propertyBuilder_ == null - ? property_ - : propertyBuilder_.build(); - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateMask_ = updateMaskBuilder_ == null - ? updateMask_ - : updateMaskBuilder_.build(); - } - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1beta.UpdatePropertyRequest) { - return mergeFrom((com.google.analytics.admin.v1beta.UpdatePropertyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.admin.v1beta.UpdatePropertyRequest other) { - if (other == com.google.analytics.admin.v1beta.UpdatePropertyRequest.getDefaultInstance()) return this; - if (other.hasProperty()) { - mergeProperty(other.getProperty()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - input.readMessage( - getPropertyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - input.readMessage( - getUpdateMaskFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - private int bitField0_; - - private com.google.analytics.admin.v1beta.Property property_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> propertyBuilder_; - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - public boolean hasProperty() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - public com.google.analytics.admin.v1beta.Property getProperty() { - if (propertyBuilder_ == null) { - return property_ == null ? com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } else { - return propertyBuilder_.getMessage(); - } - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty(com.google.analytics.admin.v1beta.Property value) { - if (propertyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - property_ = value; - } else { - propertyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setProperty( - com.google.analytics.admin.v1beta.Property.Builder builderForValue) { - if (propertyBuilder_ == null) { - property_ = builderForValue.build(); - } else { - propertyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeProperty(com.google.analytics.admin.v1beta.Property value) { - if (propertyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - property_ != null && - property_ != com.google.analytics.admin.v1beta.Property.getDefaultInstance()) { - getPropertyBuilder().mergeFrom(value); - } else { - property_ = value; - } - } else { - propertyBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearProperty() { - bitField0_ = (bitField0_ & ~0x00000001); - property_ = null; - if (propertyBuilder_ != null) { - propertyBuilder_.dispose(); - propertyBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.Property.Builder getPropertyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getPropertyFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder() { - if (propertyBuilder_ != null) { - return propertyBuilder_.getMessageOrBuilder(); - } else { - return property_ == null ? - com.google.analytics.admin.v1beta.Property.getDefaultInstance() : property_; - } - } - /** - *
-     * Required. The property to update.
-     * The property's `name` field is used to identify the property to be
-     * updated.
-     * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder> - getPropertyFieldBuilder() { - if (propertyBuilder_ == null) { - propertyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1beta.Property, com.google.analytics.admin.v1beta.Property.Builder, com.google.analytics.admin.v1beta.PropertyOrBuilder>( - getProperty(), - getParentForChildren(), - isClean()); - property_ = null; - } - return propertyBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - updateMask_ != null && - updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
-     * Required. The list of fields to be updated. Field names must be in snake
-     * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-     * replace the entire entity, use one path with the string "*" to match all
-     * fields.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1beta.UpdatePropertyRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1beta.UpdatePropertyRequest) - private static final com.google.analytics.admin.v1beta.UpdatePropertyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1beta.UpdatePropertyRequest(); - } - - public static com.google.analytics.admin.v1beta.UpdatePropertyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePropertyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.admin.v1beta.UpdatePropertyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java b/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java deleted file mode 100644 index 9c39ea58a58b..000000000000 --- a/owl-bot-staging/java-analytics-admin/v1beta/proto-google-analytics-admin-v1beta/src/main/java/com/google/analytics/admin/v1beta/UpdatePropertyRequestOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1beta/analytics_admin.proto - -package com.google.analytics.admin.v1beta; - -public interface UpdatePropertyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1beta.UpdatePropertyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the property field is set. - */ - boolean hasProperty(); - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The property. - */ - com.google.analytics.admin.v1beta.Property getProperty(); - /** - *
-   * Required. The property to update.
-   * The property's `name` field is used to identify the property to be
-   * updated.
-   * 
- * - * .google.analytics.admin.v1beta.Property property = 1 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.analytics.admin.v1beta.PropertyOrBuilder getPropertyOrBuilder(); - - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
-   * Required. The list of fields to be updated. Field names must be in snake
-   * case (e.g., "field_to_update"). Omitted fields will not be updated. To
-   * replace the entire entity, use one path with the string "*" to match all
-   * fields.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -}